@emilgroup/document-sdk-node 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +2 -2
  3. package/api/default-api.ts +124 -0
  4. package/api/docx-templates-api.ts +558 -0
  5. package/api/product-documents-api.ts +8 -4
  6. package/api.ts +4 -0
  7. package/dist/api/default-api.d.ts +66 -0
  8. package/dist/api/default-api.js +200 -0
  9. package/dist/api/docx-templates-api.d.ts +316 -0
  10. package/dist/api/docx-templates-api.js +542 -0
  11. package/dist/api/product-documents-api.d.ts +8 -4
  12. package/dist/api/product-documents-api.js +8 -4
  13. package/dist/api.d.ts +2 -0
  14. package/dist/api.js +2 -0
  15. package/dist/models/create-document-request-dto.d.ts +17 -0
  16. package/dist/models/create-document-request-dto.js +5 -1
  17. package/dist/models/create-presigned-post-request-dto.d.ts +6 -0
  18. package/dist/models/index.d.ts +4 -0
  19. package/dist/models/index.js +4 -0
  20. package/dist/models/inline-response200.d.ts +54 -0
  21. package/dist/models/inline-response200.js +15 -0
  22. package/dist/models/inline-response503.d.ts +54 -0
  23. package/dist/models/inline-response503.js +15 -0
  24. package/dist/models/shared-update-docx-template-request-dto.d.ts +36 -0
  25. package/dist/models/shared-update-docx-template-request-dto.js +15 -0
  26. package/dist/models/upload-docx-template-request-dto.d.ts +54 -0
  27. package/dist/models/upload-docx-template-request-dto.js +15 -0
  28. package/models/create-document-request-dto.ts +18 -0
  29. package/models/create-presigned-post-request-dto.ts +6 -0
  30. package/models/index.ts +4 -0
  31. package/models/inline-response200.ts +48 -0
  32. package/models/inline-response503.ts +48 -0
  33. package/models/shared-update-docx-template-request-dto.ts +42 -0
  34. package/models/upload-docx-template-request-dto.ts +60 -0
  35. package/package.json +2 -2
@@ -0,0 +1,558 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EMIL DocumentService
5
+ * The EMIL DocumentService API description
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ * Contact: kontakt@emil.de
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { SharedUpdateDocxTemplateRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { UploadDocxTemplateRequestDto } from '../models';
27
+ // URLSearchParams not necessarily used
28
+ // @ts-ignore
29
+ import { URL, URLSearchParams } from 'url';
30
+ const FormData = require('form-data');
31
+ /**
32
+ * DocxTemplatesApi - axios parameter creator
33
+ * @export
34
+ */
35
+ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Configuration) {
36
+ return {
37
+ /**
38
+ * Get a docx template.
39
+ * @summary Retrieve the docx template
40
+ * @param {string} code
41
+ * @param {string} [authorization] Bearer Token
42
+ * @param {*} [options] Override http request option.
43
+ * @throws {RequiredError}
44
+ */
45
+ getDocxTemplate: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
46
+ // verify required parameter 'code' is not null or undefined
47
+ assertParamExists('getDocxTemplate', 'code', code)
48
+ const localVarPath = `/documentservice/v1/docx-templates/{code}`
49
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
50
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
51
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
52
+ let baseOptions;
53
+ let baseAccessToken;
54
+ if (configuration) {
55
+ baseOptions = configuration.baseOptions;
56
+ baseAccessToken = configuration.accessToken;
57
+ }
58
+
59
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
60
+ const localVarHeaderParameter = {} as any;
61
+ const localVarQueryParameter = {} as any;
62
+
63
+ // authentication bearer required
64
+ // http bearer authentication required
65
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
66
+
67
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
68
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
69
+ }
70
+
71
+
72
+
73
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
74
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
75
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
76
+
77
+ return {
78
+ url: toPathString(localVarUrlObj),
79
+ options: localVarRequestOptions,
80
+ };
81
+ },
82
+ /**
83
+ * Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
84
+ * @summary List docx templates
85
+ * @param {string} [authorization] Bearer Token
86
+ * @param {number} [pageSize] Page size
87
+ * @param {string} [pageToken] Page token
88
+ * @param {string} [filter] List filter
89
+ * @param {string} [search] Search query
90
+ * @param {string} [order] Ordering criteria
91
+ * @param {string} [expand] Extra fields to fetch
92
+ * @param {*} [options] Override http request option.
93
+ * @throws {RequiredError}
94
+ */
95
+ listDocxTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
96
+ const localVarPath = `/documentservice/v1/docx-templates`;
97
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
98
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
99
+ let baseOptions;
100
+ let baseAccessToken;
101
+ if (configuration) {
102
+ baseOptions = configuration.baseOptions;
103
+ baseAccessToken = configuration.accessToken;
104
+ }
105
+
106
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
107
+ const localVarHeaderParameter = {} as any;
108
+ const localVarQueryParameter = {} as any;
109
+
110
+ // authentication bearer required
111
+ // http bearer authentication required
112
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
113
+
114
+ if (pageSize !== undefined) {
115
+ localVarQueryParameter['pageSize'] = pageSize;
116
+ }
117
+
118
+ if (pageToken !== undefined) {
119
+ localVarQueryParameter['pageToken'] = pageToken;
120
+ }
121
+
122
+ if (filter !== undefined) {
123
+ localVarQueryParameter['filter'] = filter;
124
+ }
125
+
126
+ if (search !== undefined) {
127
+ localVarQueryParameter['search'] = search;
128
+ }
129
+
130
+ if (order !== undefined) {
131
+ localVarQueryParameter['order'] = order;
132
+ }
133
+
134
+ if (expand !== undefined) {
135
+ localVarQueryParameter['expand'] = expand;
136
+ }
137
+
138
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
139
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
140
+ }
141
+
142
+
143
+
144
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
145
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
146
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
147
+
148
+ return {
149
+ url: toPathString(localVarUrlObj),
150
+ options: localVarRequestOptions,
151
+ };
152
+ },
153
+ /**
154
+ * Updates a docx template metadata.
155
+ * @summary Update the docx template
156
+ * @param {string} code
157
+ * @param {SharedUpdateDocxTemplateRequestDto} sharedUpdateDocxTemplateRequestDto
158
+ * @param {string} [authorization] Bearer Token
159
+ * @param {*} [options] Override http request option.
160
+ * @throws {RequiredError}
161
+ */
162
+ updateDocxTemplate: async (code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
163
+ // verify required parameter 'code' is not null or undefined
164
+ assertParamExists('updateDocxTemplate', 'code', code)
165
+ // verify required parameter 'sharedUpdateDocxTemplateRequestDto' is not null or undefined
166
+ assertParamExists('updateDocxTemplate', 'sharedUpdateDocxTemplateRequestDto', sharedUpdateDocxTemplateRequestDto)
167
+ const localVarPath = `/documentservice/v1/docx-templates/{code}`
168
+ .replace(`{${"code"}}`, encodeURIComponent(String(code)));
169
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
171
+ let baseOptions;
172
+ let baseAccessToken;
173
+ if (configuration) {
174
+ baseOptions = configuration.baseOptions;
175
+ baseAccessToken = configuration.accessToken;
176
+ }
177
+
178
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
179
+ const localVarHeaderParameter = {} as any;
180
+ const localVarQueryParameter = {} as any;
181
+
182
+ // authentication bearer required
183
+ // http bearer authentication required
184
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
185
+
186
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
187
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
188
+ }
189
+
190
+
191
+
192
+ localVarHeaderParameter['Content-Type'] = 'application/json';
193
+
194
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
195
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
196
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
197
+ localVarRequestOptions.data = serializeDataIfNeeded(sharedUpdateDocxTemplateRequestDto, localVarRequestOptions, configuration)
198
+
199
+ return {
200
+ url: toPathString(localVarUrlObj),
201
+ options: localVarRequestOptions,
202
+ };
203
+ },
204
+ /**
205
+ * Upload a docx template via a presigned Url.
206
+ * @summary Upload a docx template.
207
+ * @param {UploadDocxTemplateRequestDto} uploadDocxTemplateRequestDto
208
+ * @param {string} [authorization] Bearer Token
209
+ * @param {*} [options] Override http request option.
210
+ * @throws {RequiredError}
211
+ */
212
+ uploadDocxTemplate: async (uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
213
+ // verify required parameter 'uploadDocxTemplateRequestDto' is not null or undefined
214
+ assertParamExists('uploadDocxTemplate', 'uploadDocxTemplateRequestDto', uploadDocxTemplateRequestDto)
215
+ const localVarPath = `/documentservice/v1/docx-templates`;
216
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
217
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
218
+ let baseOptions;
219
+ let baseAccessToken;
220
+ if (configuration) {
221
+ baseOptions = configuration.baseOptions;
222
+ baseAccessToken = configuration.accessToken;
223
+ }
224
+
225
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
226
+ const localVarHeaderParameter = {} as any;
227
+ const localVarQueryParameter = {} as any;
228
+
229
+ // authentication bearer required
230
+ // http bearer authentication required
231
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
232
+
233
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
234
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
235
+ }
236
+
237
+
238
+
239
+ localVarHeaderParameter['Content-Type'] = 'application/json';
240
+
241
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
242
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
243
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
244
+ localVarRequestOptions.data = serializeDataIfNeeded(uploadDocxTemplateRequestDto, localVarRequestOptions, configuration)
245
+
246
+ return {
247
+ url: toPathString(localVarUrlObj),
248
+ options: localVarRequestOptions,
249
+ };
250
+ },
251
+ }
252
+ };
253
+
254
+ /**
255
+ * DocxTemplatesApi - functional programming interface
256
+ * @export
257
+ */
258
+ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
259
+ const localVarAxiosParamCreator = DocxTemplatesApiAxiosParamCreator(configuration)
260
+ return {
261
+ /**
262
+ * Get a docx template.
263
+ * @summary Retrieve the docx template
264
+ * @param {string} code
265
+ * @param {string} [authorization] Bearer Token
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
270
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getDocxTemplate(code, authorization, options);
271
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
272
+ },
273
+ /**
274
+ * Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
275
+ * @summary List docx templates
276
+ * @param {string} [authorization] Bearer Token
277
+ * @param {number} [pageSize] Page size
278
+ * @param {string} [pageToken] Page token
279
+ * @param {string} [filter] List filter
280
+ * @param {string} [search] Search query
281
+ * @param {string} [order] Ordering criteria
282
+ * @param {string} [expand] Extra fields to fetch
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ async listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
287
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
288
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
289
+ },
290
+ /**
291
+ * Updates a docx template metadata.
292
+ * @summary Update the docx template
293
+ * @param {string} code
294
+ * @param {SharedUpdateDocxTemplateRequestDto} sharedUpdateDocxTemplateRequestDto
295
+ * @param {string} [authorization] Bearer Token
296
+ * @param {*} [options] Override http request option.
297
+ * @throws {RequiredError}
298
+ */
299
+ async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
300
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options);
301
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
302
+ },
303
+ /**
304
+ * Upload a docx template via a presigned Url.
305
+ * @summary Upload a docx template.
306
+ * @param {UploadDocxTemplateRequestDto} uploadDocxTemplateRequestDto
307
+ * @param {string} [authorization] Bearer Token
308
+ * @param {*} [options] Override http request option.
309
+ * @throws {RequiredError}
310
+ */
311
+ async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
312
+ const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
313
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
314
+ },
315
+ }
316
+ };
317
+
318
+ /**
319
+ * DocxTemplatesApi - factory interface
320
+ * @export
321
+ */
322
+ export const DocxTemplatesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
323
+ const localVarFp = DocxTemplatesApiFp(configuration)
324
+ return {
325
+ /**
326
+ * Get a docx template.
327
+ * @summary Retrieve the docx template
328
+ * @param {string} code
329
+ * @param {string} [authorization] Bearer Token
330
+ * @param {*} [options] Override http request option.
331
+ * @throws {RequiredError}
332
+ */
333
+ getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<object> {
334
+ return localVarFp.getDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
335
+ },
336
+ /**
337
+ * Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
338
+ * @summary List docx templates
339
+ * @param {string} [authorization] Bearer Token
340
+ * @param {number} [pageSize] Page size
341
+ * @param {string} [pageToken] Page token
342
+ * @param {string} [filter] List filter
343
+ * @param {string} [search] Search query
344
+ * @param {string} [order] Ordering criteria
345
+ * @param {string} [expand] Extra fields to fetch
346
+ * @param {*} [options] Override http request option.
347
+ * @throws {RequiredError}
348
+ */
349
+ listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<object> {
350
+ return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
351
+ },
352
+ /**
353
+ * Updates a docx template metadata.
354
+ * @summary Update the docx template
355
+ * @param {string} code
356
+ * @param {SharedUpdateDocxTemplateRequestDto} sharedUpdateDocxTemplateRequestDto
357
+ * @param {string} [authorization] Bearer Token
358
+ * @param {*} [options] Override http request option.
359
+ * @throws {RequiredError}
360
+ */
361
+ updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
362
+ return localVarFp.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
363
+ },
364
+ /**
365
+ * Upload a docx template via a presigned Url.
366
+ * @summary Upload a docx template.
367
+ * @param {UploadDocxTemplateRequestDto} uploadDocxTemplateRequestDto
368
+ * @param {string} [authorization] Bearer Token
369
+ * @param {*} [options] Override http request option.
370
+ * @throws {RequiredError}
371
+ */
372
+ uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
373
+ return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
374
+ },
375
+ };
376
+ };
377
+
378
+ /**
379
+ * Request parameters for getDocxTemplate operation in DocxTemplatesApi.
380
+ * @export
381
+ * @interface DocxTemplatesApiGetDocxTemplateRequest
382
+ */
383
+ export interface DocxTemplatesApiGetDocxTemplateRequest {
384
+ /**
385
+ *
386
+ * @type {string}
387
+ * @memberof DocxTemplatesApiGetDocxTemplate
388
+ */
389
+ readonly code: string
390
+
391
+ /**
392
+ * Bearer Token
393
+ * @type {string}
394
+ * @memberof DocxTemplatesApiGetDocxTemplate
395
+ */
396
+ readonly authorization?: string
397
+ }
398
+
399
+ /**
400
+ * Request parameters for listDocxTemplates operation in DocxTemplatesApi.
401
+ * @export
402
+ * @interface DocxTemplatesApiListDocxTemplatesRequest
403
+ */
404
+ export interface DocxTemplatesApiListDocxTemplatesRequest {
405
+ /**
406
+ * Bearer Token
407
+ * @type {string}
408
+ * @memberof DocxTemplatesApiListDocxTemplates
409
+ */
410
+ readonly authorization?: string
411
+
412
+ /**
413
+ * Page size
414
+ * @type {number}
415
+ * @memberof DocxTemplatesApiListDocxTemplates
416
+ */
417
+ readonly pageSize?: number
418
+
419
+ /**
420
+ * Page token
421
+ * @type {string}
422
+ * @memberof DocxTemplatesApiListDocxTemplates
423
+ */
424
+ readonly pageToken?: string
425
+
426
+ /**
427
+ * List filter
428
+ * @type {string}
429
+ * @memberof DocxTemplatesApiListDocxTemplates
430
+ */
431
+ readonly filter?: string
432
+
433
+ /**
434
+ * Search query
435
+ * @type {string}
436
+ * @memberof DocxTemplatesApiListDocxTemplates
437
+ */
438
+ readonly search?: string
439
+
440
+ /**
441
+ * Ordering criteria
442
+ * @type {string}
443
+ * @memberof DocxTemplatesApiListDocxTemplates
444
+ */
445
+ readonly order?: string
446
+
447
+ /**
448
+ * Extra fields to fetch
449
+ * @type {string}
450
+ * @memberof DocxTemplatesApiListDocxTemplates
451
+ */
452
+ readonly expand?: string
453
+ }
454
+
455
+ /**
456
+ * Request parameters for updateDocxTemplate operation in DocxTemplatesApi.
457
+ * @export
458
+ * @interface DocxTemplatesApiUpdateDocxTemplateRequest
459
+ */
460
+ export interface DocxTemplatesApiUpdateDocxTemplateRequest {
461
+ /**
462
+ *
463
+ * @type {string}
464
+ * @memberof DocxTemplatesApiUpdateDocxTemplate
465
+ */
466
+ readonly code: string
467
+
468
+ /**
469
+ *
470
+ * @type {SharedUpdateDocxTemplateRequestDto}
471
+ * @memberof DocxTemplatesApiUpdateDocxTemplate
472
+ */
473
+ readonly sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto
474
+
475
+ /**
476
+ * Bearer Token
477
+ * @type {string}
478
+ * @memberof DocxTemplatesApiUpdateDocxTemplate
479
+ */
480
+ readonly authorization?: string
481
+ }
482
+
483
+ /**
484
+ * Request parameters for uploadDocxTemplate operation in DocxTemplatesApi.
485
+ * @export
486
+ * @interface DocxTemplatesApiUploadDocxTemplateRequest
487
+ */
488
+ export interface DocxTemplatesApiUploadDocxTemplateRequest {
489
+ /**
490
+ *
491
+ * @type {UploadDocxTemplateRequestDto}
492
+ * @memberof DocxTemplatesApiUploadDocxTemplate
493
+ */
494
+ readonly uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto
495
+
496
+ /**
497
+ * Bearer Token
498
+ * @type {string}
499
+ * @memberof DocxTemplatesApiUploadDocxTemplate
500
+ */
501
+ readonly authorization?: string
502
+ }
503
+
504
+ /**
505
+ * DocxTemplatesApi - object-oriented interface
506
+ * @export
507
+ * @class DocxTemplatesApi
508
+ * @extends {BaseAPI}
509
+ */
510
+ export class DocxTemplatesApi extends BaseAPI {
511
+ /**
512
+ * Get a docx template.
513
+ * @summary Retrieve the docx template
514
+ * @param {DocxTemplatesApiGetDocxTemplateRequest} requestParameters Request parameters.
515
+ * @param {*} [options] Override http request option.
516
+ * @throws {RequiredError}
517
+ * @memberof DocxTemplatesApi
518
+ */
519
+ public getDocxTemplate(requestParameters: DocxTemplatesApiGetDocxTemplateRequest, options?: AxiosRequestConfig) {
520
+ return DocxTemplatesApiFp(this.configuration).getDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
521
+ }
522
+
523
+ /**
524
+ * Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
525
+ * @summary List docx templates
526
+ * @param {DocxTemplatesApiListDocxTemplatesRequest} requestParameters Request parameters.
527
+ * @param {*} [options] Override http request option.
528
+ * @throws {RequiredError}
529
+ * @memberof DocxTemplatesApi
530
+ */
531
+ public listDocxTemplates(requestParameters: DocxTemplatesApiListDocxTemplatesRequest = {}, options?: AxiosRequestConfig) {
532
+ return DocxTemplatesApiFp(this.configuration).listDocxTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
533
+ }
534
+
535
+ /**
536
+ * Updates a docx template metadata.
537
+ * @summary Update the docx template
538
+ * @param {DocxTemplatesApiUpdateDocxTemplateRequest} requestParameters Request parameters.
539
+ * @param {*} [options] Override http request option.
540
+ * @throws {RequiredError}
541
+ * @memberof DocxTemplatesApi
542
+ */
543
+ public updateDocxTemplate(requestParameters: DocxTemplatesApiUpdateDocxTemplateRequest, options?: AxiosRequestConfig) {
544
+ return DocxTemplatesApiFp(this.configuration).updateDocxTemplate(requestParameters.code, requestParameters.sharedUpdateDocxTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
545
+ }
546
+
547
+ /**
548
+ * Upload a docx template via a presigned Url.
549
+ * @summary Upload a docx template.
550
+ * @param {DocxTemplatesApiUploadDocxTemplateRequest} requestParameters Request parameters.
551
+ * @param {*} [options] Override http request option.
552
+ * @throws {RequiredError}
553
+ * @memberof DocxTemplatesApi
554
+ */
555
+ public uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig) {
556
+ return DocxTemplatesApiFp(this.configuration).uploadDocxTemplate(requestParameters.uploadDocxTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
557
+ }
558
+ }
@@ -90,7 +90,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
90
90
  };
91
91
  },
92
92
  /**
93
- *
93
+ * Get a pre-signed download url for the given product document.
94
+ * @summary Get pre-signed url for downloading product document
94
95
  * @param {string} productSlug
95
96
  * @param {string} code
96
97
  * @param {string} [authorization] Bearer Token
@@ -336,7 +337,8 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
336
337
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
337
338
  },
338
339
  /**
339
- *
340
+ * Get a pre-signed download url for the given product document.
341
+ * @summary Get pre-signed url for downloading product document
340
342
  * @param {string} productSlug
341
343
  * @param {string} code
342
344
  * @param {string} [authorization] Bearer Token
@@ -414,7 +416,8 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
414
416
  return localVarFp.deleteProductDocument(code, productSlug, authorization, options).then((request) => request(axios, basePath));
415
417
  },
416
418
  /**
417
- *
419
+ * Get a pre-signed download url for the given product document.
420
+ * @summary Get pre-signed url for downloading product document
418
421
  * @param {string} productSlug
419
422
  * @param {string} code
420
423
  * @param {string} [authorization] Bearer Token
@@ -663,7 +666,8 @@ export class ProductDocumentsApi extends BaseAPI {
663
666
  }
664
667
 
665
668
  /**
666
- *
669
+ * Get a pre-signed download url for the given product document.
670
+ * @summary Get pre-signed url for downloading product document
667
671
  * @param {ProductDocumentsApiDownloadProductDocumentRequest} requestParameters Request parameters.
668
672
  * @param {*} [options] Override http request option.
669
673
  * @throws {RequiredError}
package/api.ts CHANGED
@@ -24,8 +24,10 @@ import FormData from 'form-data'
24
24
  import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
25
25
  // @ts-ignore
26
26
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
27
+ import { DefaultApi } from './api';
27
28
  import { DocumentTemplatesApi } from './api';
28
29
  import { DocumentsApi } from './api';
30
+ import { DocxTemplatesApi } from './api';
29
31
  import { LayoutsApi } from './api';
30
32
  import { ProductDocumentsApi } from './api';
31
33
  import { SearchKeywordsApi } from './api';
@@ -33,8 +35,10 @@ import { SearchableDocumentOwnersApi } from './api';
33
35
  import { SearchableDocumentsApi } from './api';
34
36
 
35
37
 
38
+ export * from './api/default-api';
36
39
  export * from './api/document-templates-api';
37
40
  export * from './api/documents-api';
41
+ export * from './api/docx-templates-api';
38
42
  export * from './api/layouts-api';
39
43
  export * from './api/product-documents-api';
40
44
  export * from './api/search-keywords-api';
@@ -0,0 +1,66 @@
1
+ /**
2
+ * EMIL DocumentService
3
+ * The EMIL DocumentService API description
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ * Contact: kontakt@emil.de
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
+ import { Configuration } from '../configuration';
14
+ import { RequestArgs, BaseAPI } from '../base';
15
+ import { InlineResponse200 } from '../models';
16
+ /**
17
+ * DefaultApi - axios parameter creator
18
+ * @export
19
+ */
20
+ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
21
+ /**
22
+ *
23
+ * @param {*} [options] Override http request option.
24
+ * @throws {RequiredError}
25
+ */
26
+ check: (options?: AxiosRequestConfig) => Promise<RequestArgs>;
27
+ };
28
+ /**
29
+ * DefaultApi - functional programming interface
30
+ * @export
31
+ */
32
+ export declare const DefaultApiFp: (configuration?: Configuration) => {
33
+ /**
34
+ *
35
+ * @param {*} [options] Override http request option.
36
+ * @throws {RequiredError}
37
+ */
38
+ check(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse200>>;
39
+ };
40
+ /**
41
+ * DefaultApi - factory interface
42
+ * @export
43
+ */
44
+ export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
45
+ /**
46
+ *
47
+ * @param {*} [options] Override http request option.
48
+ * @throws {RequiredError}
49
+ */
50
+ check(options?: any): AxiosPromise<InlineResponse200>;
51
+ };
52
+ /**
53
+ * DefaultApi - object-oriented interface
54
+ * @export
55
+ * @class DefaultApi
56
+ * @extends {BaseAPI}
57
+ */
58
+ export declare class DefaultApi extends BaseAPI {
59
+ /**
60
+ *
61
+ * @param {*} [options] Override http request option.
62
+ * @throws {RequiredError}
63
+ * @memberof DefaultApi
64
+ */
65
+ check(options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<InlineResponse200, any>>;
66
+ }