@emilgroup/document-sdk 1.7.0 → 1.7.1

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.
@@ -1,554 +0,0 @@
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
- /**
28
- * DocxTemplatesApi - axios parameter creator
29
- * @export
30
- */
31
- export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Configuration) {
32
- return {
33
- /**
34
- * Get a docx template.
35
- * @summary Retrieve the docx template
36
- * @param {string} code
37
- * @param {string} [authorization] Bearer Token
38
- * @param {*} [options] Override http request option.
39
- * @throws {RequiredError}
40
- */
41
- getDocxTemplate: async (code: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
42
- // verify required parameter 'code' is not null or undefined
43
- assertParamExists('getDocxTemplate', 'code', code)
44
- const localVarPath = `/documentservice/v1/docx-templates/{code}`
45
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
46
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
47
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
48
- let baseOptions;
49
- let baseAccessToken;
50
- if (configuration) {
51
- baseOptions = configuration.baseOptions;
52
- baseAccessToken = configuration.accessToken;
53
- }
54
-
55
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
56
- const localVarHeaderParameter = {} as any;
57
- const localVarQueryParameter = {} as any;
58
-
59
- // authentication bearer required
60
- // http bearer authentication required
61
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
62
-
63
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
64
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
65
- }
66
-
67
-
68
-
69
- setSearchParams(localVarUrlObj, localVarQueryParameter);
70
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
71
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
72
-
73
- return {
74
- url: toPathString(localVarUrlObj),
75
- options: localVarRequestOptions,
76
- };
77
- },
78
- /**
79
- * 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.
80
- * @summary List docx templates
81
- * @param {string} [authorization] Bearer Token
82
- * @param {number} [pageSize] Page size
83
- * @param {string} [pageToken] Page token
84
- * @param {string} [filter] List filter
85
- * @param {string} [search] Search query
86
- * @param {string} [order] Ordering criteria
87
- * @param {string} [expand] Extra fields to fetch
88
- * @param {*} [options] Override http request option.
89
- * @throws {RequiredError}
90
- */
91
- listDocxTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
92
- const localVarPath = `/documentservice/v1/docx-templates`;
93
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
94
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
95
- let baseOptions;
96
- let baseAccessToken;
97
- if (configuration) {
98
- baseOptions = configuration.baseOptions;
99
- baseAccessToken = configuration.accessToken;
100
- }
101
-
102
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
103
- const localVarHeaderParameter = {} as any;
104
- const localVarQueryParameter = {} as any;
105
-
106
- // authentication bearer required
107
- // http bearer authentication required
108
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
109
-
110
- if (pageSize !== undefined) {
111
- localVarQueryParameter['pageSize'] = pageSize;
112
- }
113
-
114
- if (pageToken !== undefined) {
115
- localVarQueryParameter['pageToken'] = pageToken;
116
- }
117
-
118
- if (filter !== undefined) {
119
- localVarQueryParameter['filter'] = filter;
120
- }
121
-
122
- if (search !== undefined) {
123
- localVarQueryParameter['search'] = search;
124
- }
125
-
126
- if (order !== undefined) {
127
- localVarQueryParameter['order'] = order;
128
- }
129
-
130
- if (expand !== undefined) {
131
- localVarQueryParameter['expand'] = expand;
132
- }
133
-
134
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
135
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
136
- }
137
-
138
-
139
-
140
- setSearchParams(localVarUrlObj, localVarQueryParameter);
141
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
143
-
144
- return {
145
- url: toPathString(localVarUrlObj),
146
- options: localVarRequestOptions,
147
- };
148
- },
149
- /**
150
- * Updates a docx template metadata.
151
- * @summary Update the docx template
152
- * @param {string} code
153
- * @param {SharedUpdateDocxTemplateRequestDto} sharedUpdateDocxTemplateRequestDto
154
- * @param {string} [authorization] Bearer Token
155
- * @param {*} [options] Override http request option.
156
- * @throws {RequiredError}
157
- */
158
- updateDocxTemplate: async (code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
159
- // verify required parameter 'code' is not null or undefined
160
- assertParamExists('updateDocxTemplate', 'code', code)
161
- // verify required parameter 'sharedUpdateDocxTemplateRequestDto' is not null or undefined
162
- assertParamExists('updateDocxTemplate', 'sharedUpdateDocxTemplateRequestDto', sharedUpdateDocxTemplateRequestDto)
163
- const localVarPath = `/documentservice/v1/docx-templates/{code}`
164
- .replace(`{${"code"}}`, encodeURIComponent(String(code)));
165
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
166
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
167
- let baseOptions;
168
- let baseAccessToken;
169
- if (configuration) {
170
- baseOptions = configuration.baseOptions;
171
- baseAccessToken = configuration.accessToken;
172
- }
173
-
174
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
175
- const localVarHeaderParameter = {} as any;
176
- const localVarQueryParameter = {} as any;
177
-
178
- // authentication bearer required
179
- // http bearer authentication required
180
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
181
-
182
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
183
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
184
- }
185
-
186
-
187
-
188
- localVarHeaderParameter['Content-Type'] = 'application/json';
189
-
190
- setSearchParams(localVarUrlObj, localVarQueryParameter);
191
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
192
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
193
- localVarRequestOptions.data = serializeDataIfNeeded(sharedUpdateDocxTemplateRequestDto, localVarRequestOptions, configuration)
194
-
195
- return {
196
- url: toPathString(localVarUrlObj),
197
- options: localVarRequestOptions,
198
- };
199
- },
200
- /**
201
- * Upload a docx template via a presigned Url.
202
- * @summary Upload a docx template.
203
- * @param {UploadDocxTemplateRequestDto} uploadDocxTemplateRequestDto
204
- * @param {string} [authorization] Bearer Token
205
- * @param {*} [options] Override http request option.
206
- * @throws {RequiredError}
207
- */
208
- uploadDocxTemplate: async (uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
209
- // verify required parameter 'uploadDocxTemplateRequestDto' is not null or undefined
210
- assertParamExists('uploadDocxTemplate', 'uploadDocxTemplateRequestDto', uploadDocxTemplateRequestDto)
211
- const localVarPath = `/documentservice/v1/docx-templates`;
212
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
213
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
214
- let baseOptions;
215
- let baseAccessToken;
216
- if (configuration) {
217
- baseOptions = configuration.baseOptions;
218
- baseAccessToken = configuration.accessToken;
219
- }
220
-
221
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
222
- const localVarHeaderParameter = {} as any;
223
- const localVarQueryParameter = {} as any;
224
-
225
- // authentication bearer required
226
- // http bearer authentication required
227
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
228
-
229
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
230
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
231
- }
232
-
233
-
234
-
235
- localVarHeaderParameter['Content-Type'] = 'application/json';
236
-
237
- setSearchParams(localVarUrlObj, localVarQueryParameter);
238
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
239
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
240
- localVarRequestOptions.data = serializeDataIfNeeded(uploadDocxTemplateRequestDto, localVarRequestOptions, configuration)
241
-
242
- return {
243
- url: toPathString(localVarUrlObj),
244
- options: localVarRequestOptions,
245
- };
246
- },
247
- }
248
- };
249
-
250
- /**
251
- * DocxTemplatesApi - functional programming interface
252
- * @export
253
- */
254
- export const DocxTemplatesApiFp = function(configuration?: Configuration) {
255
- const localVarAxiosParamCreator = DocxTemplatesApiAxiosParamCreator(configuration)
256
- return {
257
- /**
258
- * Get a docx template.
259
- * @summary Retrieve the docx template
260
- * @param {string} code
261
- * @param {string} [authorization] Bearer Token
262
- * @param {*} [options] Override http request option.
263
- * @throws {RequiredError}
264
- */
265
- async getDocxTemplate(code: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
266
- const localVarAxiosArgs = await localVarAxiosParamCreator.getDocxTemplate(code, authorization, options);
267
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
268
- },
269
- /**
270
- * 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.
271
- * @summary List docx templates
272
- * @param {string} [authorization] Bearer Token
273
- * @param {number} [pageSize] Page size
274
- * @param {string} [pageToken] Page token
275
- * @param {string} [filter] List filter
276
- * @param {string} [search] Search query
277
- * @param {string} [order] Ordering criteria
278
- * @param {string} [expand] Extra fields to fetch
279
- * @param {*} [options] Override http request option.
280
- * @throws {RequiredError}
281
- */
282
- 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>> {
283
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
284
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
285
- },
286
- /**
287
- * Updates a docx template metadata.
288
- * @summary Update the docx template
289
- * @param {string} code
290
- * @param {SharedUpdateDocxTemplateRequestDto} sharedUpdateDocxTemplateRequestDto
291
- * @param {string} [authorization] Bearer Token
292
- * @param {*} [options] Override http request option.
293
- * @throws {RequiredError}
294
- */
295
- async updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
296
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options);
297
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
298
- },
299
- /**
300
- * Upload a docx template via a presigned Url.
301
- * @summary Upload a docx template.
302
- * @param {UploadDocxTemplateRequestDto} uploadDocxTemplateRequestDto
303
- * @param {string} [authorization] Bearer Token
304
- * @param {*} [options] Override http request option.
305
- * @throws {RequiredError}
306
- */
307
- async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
308
- const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
309
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
310
- },
311
- }
312
- };
313
-
314
- /**
315
- * DocxTemplatesApi - factory interface
316
- * @export
317
- */
318
- export const DocxTemplatesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
319
- const localVarFp = DocxTemplatesApiFp(configuration)
320
- return {
321
- /**
322
- * Get a docx template.
323
- * @summary Retrieve the docx template
324
- * @param {string} code
325
- * @param {string} [authorization] Bearer Token
326
- * @param {*} [options] Override http request option.
327
- * @throws {RequiredError}
328
- */
329
- getDocxTemplate(code: string, authorization?: string, options?: any): AxiosPromise<object> {
330
- return localVarFp.getDocxTemplate(code, authorization, options).then((request) => request(axios, basePath));
331
- },
332
- /**
333
- * 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.
334
- * @summary List docx templates
335
- * @param {string} [authorization] Bearer Token
336
- * @param {number} [pageSize] Page size
337
- * @param {string} [pageToken] Page token
338
- * @param {string} [filter] List filter
339
- * @param {string} [search] Search query
340
- * @param {string} [order] Ordering criteria
341
- * @param {string} [expand] Extra fields to fetch
342
- * @param {*} [options] Override http request option.
343
- * @throws {RequiredError}
344
- */
345
- listDocxTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<object> {
346
- return localVarFp.listDocxTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
347
- },
348
- /**
349
- * Updates a docx template metadata.
350
- * @summary Update the docx template
351
- * @param {string} code
352
- * @param {SharedUpdateDocxTemplateRequestDto} sharedUpdateDocxTemplateRequestDto
353
- * @param {string} [authorization] Bearer Token
354
- * @param {*} [options] Override http request option.
355
- * @throws {RequiredError}
356
- */
357
- updateDocxTemplate(code: string, sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
358
- return localVarFp.updateDocxTemplate(code, sharedUpdateDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
359
- },
360
- /**
361
- * Upload a docx template via a presigned Url.
362
- * @summary Upload a docx template.
363
- * @param {UploadDocxTemplateRequestDto} uploadDocxTemplateRequestDto
364
- * @param {string} [authorization] Bearer Token
365
- * @param {*} [options] Override http request option.
366
- * @throws {RequiredError}
367
- */
368
- uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<object> {
369
- return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
370
- },
371
- };
372
- };
373
-
374
- /**
375
- * Request parameters for getDocxTemplate operation in DocxTemplatesApi.
376
- * @export
377
- * @interface DocxTemplatesApiGetDocxTemplateRequest
378
- */
379
- export interface DocxTemplatesApiGetDocxTemplateRequest {
380
- /**
381
- *
382
- * @type {string}
383
- * @memberof DocxTemplatesApiGetDocxTemplate
384
- */
385
- readonly code: string
386
-
387
- /**
388
- * Bearer Token
389
- * @type {string}
390
- * @memberof DocxTemplatesApiGetDocxTemplate
391
- */
392
- readonly authorization?: string
393
- }
394
-
395
- /**
396
- * Request parameters for listDocxTemplates operation in DocxTemplatesApi.
397
- * @export
398
- * @interface DocxTemplatesApiListDocxTemplatesRequest
399
- */
400
- export interface DocxTemplatesApiListDocxTemplatesRequest {
401
- /**
402
- * Bearer Token
403
- * @type {string}
404
- * @memberof DocxTemplatesApiListDocxTemplates
405
- */
406
- readonly authorization?: string
407
-
408
- /**
409
- * Page size
410
- * @type {number}
411
- * @memberof DocxTemplatesApiListDocxTemplates
412
- */
413
- readonly pageSize?: number
414
-
415
- /**
416
- * Page token
417
- * @type {string}
418
- * @memberof DocxTemplatesApiListDocxTemplates
419
- */
420
- readonly pageToken?: string
421
-
422
- /**
423
- * List filter
424
- * @type {string}
425
- * @memberof DocxTemplatesApiListDocxTemplates
426
- */
427
- readonly filter?: string
428
-
429
- /**
430
- * Search query
431
- * @type {string}
432
- * @memberof DocxTemplatesApiListDocxTemplates
433
- */
434
- readonly search?: string
435
-
436
- /**
437
- * Ordering criteria
438
- * @type {string}
439
- * @memberof DocxTemplatesApiListDocxTemplates
440
- */
441
- readonly order?: string
442
-
443
- /**
444
- * Extra fields to fetch
445
- * @type {string}
446
- * @memberof DocxTemplatesApiListDocxTemplates
447
- */
448
- readonly expand?: string
449
- }
450
-
451
- /**
452
- * Request parameters for updateDocxTemplate operation in DocxTemplatesApi.
453
- * @export
454
- * @interface DocxTemplatesApiUpdateDocxTemplateRequest
455
- */
456
- export interface DocxTemplatesApiUpdateDocxTemplateRequest {
457
- /**
458
- *
459
- * @type {string}
460
- * @memberof DocxTemplatesApiUpdateDocxTemplate
461
- */
462
- readonly code: string
463
-
464
- /**
465
- *
466
- * @type {SharedUpdateDocxTemplateRequestDto}
467
- * @memberof DocxTemplatesApiUpdateDocxTemplate
468
- */
469
- readonly sharedUpdateDocxTemplateRequestDto: SharedUpdateDocxTemplateRequestDto
470
-
471
- /**
472
- * Bearer Token
473
- * @type {string}
474
- * @memberof DocxTemplatesApiUpdateDocxTemplate
475
- */
476
- readonly authorization?: string
477
- }
478
-
479
- /**
480
- * Request parameters for uploadDocxTemplate operation in DocxTemplatesApi.
481
- * @export
482
- * @interface DocxTemplatesApiUploadDocxTemplateRequest
483
- */
484
- export interface DocxTemplatesApiUploadDocxTemplateRequest {
485
- /**
486
- *
487
- * @type {UploadDocxTemplateRequestDto}
488
- * @memberof DocxTemplatesApiUploadDocxTemplate
489
- */
490
- readonly uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto
491
-
492
- /**
493
- * Bearer Token
494
- * @type {string}
495
- * @memberof DocxTemplatesApiUploadDocxTemplate
496
- */
497
- readonly authorization?: string
498
- }
499
-
500
- /**
501
- * DocxTemplatesApi - object-oriented interface
502
- * @export
503
- * @class DocxTemplatesApi
504
- * @extends {BaseAPI}
505
- */
506
- export class DocxTemplatesApi extends BaseAPI {
507
- /**
508
- * Get a docx template.
509
- * @summary Retrieve the docx template
510
- * @param {DocxTemplatesApiGetDocxTemplateRequest} requestParameters Request parameters.
511
- * @param {*} [options] Override http request option.
512
- * @throws {RequiredError}
513
- * @memberof DocxTemplatesApi
514
- */
515
- public getDocxTemplate(requestParameters: DocxTemplatesApiGetDocxTemplateRequest, options?: AxiosRequestConfig) {
516
- return DocxTemplatesApiFp(this.configuration).getDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
517
- }
518
-
519
- /**
520
- * 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.
521
- * @summary List docx templates
522
- * @param {DocxTemplatesApiListDocxTemplatesRequest} requestParameters Request parameters.
523
- * @param {*} [options] Override http request option.
524
- * @throws {RequiredError}
525
- * @memberof DocxTemplatesApi
526
- */
527
- public listDocxTemplates(requestParameters: DocxTemplatesApiListDocxTemplatesRequest = {}, options?: AxiosRequestConfig) {
528
- 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));
529
- }
530
-
531
- /**
532
- * Updates a docx template metadata.
533
- * @summary Update the docx template
534
- * @param {DocxTemplatesApiUpdateDocxTemplateRequest} requestParameters Request parameters.
535
- * @param {*} [options] Override http request option.
536
- * @throws {RequiredError}
537
- * @memberof DocxTemplatesApi
538
- */
539
- public updateDocxTemplate(requestParameters: DocxTemplatesApiUpdateDocxTemplateRequest, options?: AxiosRequestConfig) {
540
- return DocxTemplatesApiFp(this.configuration).updateDocxTemplate(requestParameters.code, requestParameters.sharedUpdateDocxTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
541
- }
542
-
543
- /**
544
- * Upload a docx template via a presigned Url.
545
- * @summary Upload a docx template.
546
- * @param {DocxTemplatesApiUploadDocxTemplateRequest} requestParameters Request parameters.
547
- * @param {*} [options] Override http request option.
548
- * @throws {RequiredError}
549
- * @memberof DocxTemplatesApi
550
- */
551
- public uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig) {
552
- return DocxTemplatesApiFp(this.configuration).uploadDocxTemplate(requestParameters.uploadDocxTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
553
- }
554
- }