@emilgroup/document-sdk-node 1.49.1-beta.32 → 1.49.1-beta.34
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.
- package/README.md +2 -2
- package/api/document-templates-api.ts +15 -40
- package/api/documents-api.ts +33 -88
- package/api/docx-templates-api.ts +18 -48
- package/api/health-api.ts +1 -1
- package/api/layouts-api.ts +15 -40
- package/api/product-documents-api.ts +18 -48
- package/api/search-keywords-api.ts +3 -8
- package/api/searchable-document-owners-api.ts +3 -8
- package/api/searchable-documents-api.ts +3 -8
- package/base.ts +0 -4
- package/common.ts +2 -3
- package/dist/api/document-templates-api.d.ts +5 -5
- package/dist/api/document-templates-api.js +38 -67
- package/dist/api/documents-api.d.ts +11 -11
- package/dist/api/documents-api.js +85 -153
- package/dist/api/docx-templates-api.d.ts +6 -6
- package/dist/api/docx-templates-api.js +47 -86
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/layouts-api.d.ts +5 -5
- package/dist/api/layouts-api.js +38 -67
- package/dist/api/product-documents-api.d.ts +6 -6
- package/dist/api/product-documents-api.js +45 -78
- package/dist/api/search-keywords-api.d.ts +1 -1
- package/dist/api/search-keywords-api.js +7 -11
- package/dist/api/searchable-document-owners-api.d.ts +1 -1
- package/dist/api/searchable-document-owners-api.js +7 -11
- package/dist/api/searchable-documents-api.d.ts +1 -1
- package/dist/api/searchable-documents-api.js +7 -11
- package/dist/base.d.ts +0 -1
- package/dist/base.js +0 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +0 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/document-sdk-node@1.49.1-beta.
|
|
20
|
+
npm install @emilgroup/document-sdk-node@1.49.1-beta.34 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/document-sdk-node@1.49.1-beta.
|
|
24
|
+
yarn add @emilgroup/document-sdk-node@1.49.1-beta.34
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -73,13 +73,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
73
73
|
// http bearer authentication required
|
|
74
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
79
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
80
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
81
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
82
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
83
78
|
}
|
|
84
79
|
|
|
85
80
|
|
|
@@ -126,13 +121,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
126
121
|
// http bearer authentication required
|
|
127
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
128
123
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
132
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
133
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
134
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
135
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
136
126
|
}
|
|
137
127
|
|
|
138
128
|
|
|
@@ -181,13 +171,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
181
171
|
localVarQueryParameter['expand'] = expand;
|
|
182
172
|
}
|
|
183
173
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
187
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
188
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
189
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
190
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
174
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
175
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
191
176
|
}
|
|
192
177
|
|
|
193
178
|
|
|
@@ -257,13 +242,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
257
242
|
localVarQueryParameter['expand'] = expand;
|
|
258
243
|
}
|
|
259
244
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
263
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
264
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
265
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
266
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
245
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
246
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
267
247
|
}
|
|
268
248
|
|
|
269
249
|
|
|
@@ -310,13 +290,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
310
290
|
// http bearer authentication required
|
|
311
291
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
312
292
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
316
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
317
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
318
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
319
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
293
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
294
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
320
295
|
}
|
|
321
296
|
|
|
322
297
|
|
|
@@ -655,7 +630,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
655
630
|
* @memberof DocumentTemplatesApi
|
|
656
631
|
*/
|
|
657
632
|
public createDocTemplate(requestParameters: DocumentTemplatesApiCreateDocTemplateRequest, options?: AxiosRequestConfig) {
|
|
658
|
-
return DocumentTemplatesApiFp(this.configuration).createDocTemplate(requestParameters.createDocTemplateRequestDto, requestParameters.authorization,
|
|
633
|
+
return DocumentTemplatesApiFp(this.configuration).createDocTemplate(requestParameters.createDocTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
659
634
|
}
|
|
660
635
|
|
|
661
636
|
/**
|
|
@@ -667,7 +642,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
667
642
|
* @memberof DocumentTemplatesApi
|
|
668
643
|
*/
|
|
669
644
|
public deleteDocTemplate(requestParameters: DocumentTemplatesApiDeleteDocTemplateRequest, options?: AxiosRequestConfig) {
|
|
670
|
-
return DocumentTemplatesApiFp(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization,
|
|
645
|
+
return DocumentTemplatesApiFp(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
671
646
|
}
|
|
672
647
|
|
|
673
648
|
/**
|
|
@@ -679,7 +654,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
679
654
|
* @memberof DocumentTemplatesApi
|
|
680
655
|
*/
|
|
681
656
|
public getDocTemplate(requestParameters: DocumentTemplatesApiGetDocTemplateRequest, options?: AxiosRequestConfig) {
|
|
682
|
-
return DocumentTemplatesApiFp(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand,
|
|
657
|
+
return DocumentTemplatesApiFp(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
683
658
|
}
|
|
684
659
|
|
|
685
660
|
/**
|
|
@@ -691,7 +666,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
691
666
|
* @memberof DocumentTemplatesApi
|
|
692
667
|
*/
|
|
693
668
|
public listDocTemplates(requestParameters: DocumentTemplatesApiListDocTemplatesRequest = {}, options?: AxiosRequestConfig) {
|
|
694
|
-
return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand,
|
|
669
|
+
return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
695
670
|
}
|
|
696
671
|
|
|
697
672
|
/**
|
|
@@ -703,6 +678,6 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
703
678
|
* @memberof DocumentTemplatesApi
|
|
704
679
|
*/
|
|
705
680
|
public updateDocTemplate(requestParameters: DocumentTemplatesApiUpdateDocTemplateRequest, options?: AxiosRequestConfig) {
|
|
706
|
-
return DocumentTemplatesApiFp(this.configuration).updateDocTemplate(requestParameters.id, requestParameters.updateDocTemplateRequestDto, requestParameters.authorization,
|
|
681
|
+
return DocumentTemplatesApiFp(this.configuration).updateDocTemplate(requestParameters.id, requestParameters.updateDocTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
707
682
|
}
|
|
708
683
|
}
|
package/api/documents-api.ts
CHANGED
|
@@ -93,13 +93,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
93
93
|
// http bearer authentication required
|
|
94
94
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
99
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
100
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
101
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
102
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
96
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
97
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
103
98
|
}
|
|
104
99
|
|
|
105
100
|
|
|
@@ -145,13 +140,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
145
140
|
// http bearer authentication required
|
|
146
141
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
147
142
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
151
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
152
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
153
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
154
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
143
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
144
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
155
145
|
}
|
|
156
146
|
|
|
157
147
|
|
|
@@ -197,13 +187,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
197
187
|
// http bearer authentication required
|
|
198
188
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
199
189
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
203
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
204
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
205
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
206
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
191
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
207
192
|
}
|
|
208
193
|
|
|
209
194
|
|
|
@@ -250,13 +235,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
250
235
|
// http bearer authentication required
|
|
251
236
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
252
237
|
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
256
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
257
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
258
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
259
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
238
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
239
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
260
240
|
}
|
|
261
241
|
|
|
262
242
|
|
|
@@ -303,13 +283,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
303
283
|
// http bearer authentication required
|
|
304
284
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
305
285
|
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
309
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
310
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
311
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
312
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
286
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
287
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
313
288
|
}
|
|
314
289
|
|
|
315
290
|
|
|
@@ -361,13 +336,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
361
336
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
362
337
|
}
|
|
363
338
|
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
367
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
368
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
369
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
370
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
339
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
340
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
371
341
|
}
|
|
372
342
|
|
|
373
343
|
|
|
@@ -419,13 +389,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
419
389
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
420
390
|
}
|
|
421
391
|
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
425
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
426
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
427
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
428
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
392
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
393
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
429
394
|
}
|
|
430
395
|
|
|
431
396
|
|
|
@@ -500,13 +465,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
500
465
|
localVarQueryParameter['filters'] = filters;
|
|
501
466
|
}
|
|
502
467
|
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
506
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
507
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
508
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
509
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
468
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
469
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
510
470
|
}
|
|
511
471
|
|
|
512
472
|
|
|
@@ -549,13 +509,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
549
509
|
// http bearer authentication required
|
|
550
510
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
551
511
|
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
555
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
556
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
557
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
558
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
512
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
513
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
559
514
|
}
|
|
560
515
|
|
|
561
516
|
|
|
@@ -601,13 +556,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
601
556
|
// http bearer authentication required
|
|
602
557
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
603
558
|
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
607
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
608
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
609
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
610
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
559
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
560
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
611
561
|
}
|
|
612
562
|
|
|
613
563
|
|
|
@@ -657,13 +607,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
657
607
|
// http bearer authentication required
|
|
658
608
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
659
609
|
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
663
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
664
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
665
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
666
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
610
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
611
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
667
612
|
}
|
|
668
613
|
|
|
669
614
|
|
|
@@ -1293,7 +1238,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1293
1238
|
* @memberof DocumentsApi
|
|
1294
1239
|
*/
|
|
1295
1240
|
public createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig) {
|
|
1296
|
-
return DocumentsApiFp(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization,
|
|
1241
|
+
return DocumentsApiFp(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1297
1242
|
}
|
|
1298
1243
|
|
|
1299
1244
|
/**
|
|
@@ -1305,7 +1250,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1305
1250
|
* @memberof DocumentsApi
|
|
1306
1251
|
*/
|
|
1307
1252
|
public createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig) {
|
|
1308
|
-
return DocumentsApiFp(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization,
|
|
1253
|
+
return DocumentsApiFp(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1309
1254
|
}
|
|
1310
1255
|
|
|
1311
1256
|
/**
|
|
@@ -1317,7 +1262,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1317
1262
|
* @memberof DocumentsApi
|
|
1318
1263
|
*/
|
|
1319
1264
|
public createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig) {
|
|
1320
|
-
return DocumentsApiFp(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization,
|
|
1265
|
+
return DocumentsApiFp(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1321
1266
|
}
|
|
1322
1267
|
|
|
1323
1268
|
/**
|
|
@@ -1329,7 +1274,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1329
1274
|
* @memberof DocumentsApi
|
|
1330
1275
|
*/
|
|
1331
1276
|
public deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig) {
|
|
1332
|
-
return DocumentsApiFp(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization,
|
|
1277
|
+
return DocumentsApiFp(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1333
1278
|
}
|
|
1334
1279
|
|
|
1335
1280
|
/**
|
|
@@ -1341,7 +1286,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1341
1286
|
* @memberof DocumentsApi
|
|
1342
1287
|
*/
|
|
1343
1288
|
public exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig) {
|
|
1344
|
-
return DocumentsApiFp(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization,
|
|
1289
|
+
return DocumentsApiFp(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1345
1290
|
}
|
|
1346
1291
|
|
|
1347
1292
|
/**
|
|
@@ -1353,7 +1298,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1353
1298
|
* @memberof DocumentsApi
|
|
1354
1299
|
*/
|
|
1355
1300
|
public getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig) {
|
|
1356
|
-
return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition,
|
|
1301
|
+
return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, options).then((request) => request(this.axios, this.basePath));
|
|
1357
1302
|
}
|
|
1358
1303
|
|
|
1359
1304
|
/**
|
|
@@ -1365,7 +1310,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1365
1310
|
* @memberof DocumentsApi
|
|
1366
1311
|
*/
|
|
1367
1312
|
public getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig) {
|
|
1368
|
-
return DocumentsApiFp(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, requestParameters.contentDisposition,
|
|
1313
|
+
return DocumentsApiFp(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, requestParameters.contentDisposition, options).then((request) => request(this.axios, this.basePath));
|
|
1369
1314
|
}
|
|
1370
1315
|
|
|
1371
1316
|
/**
|
|
@@ -1377,7 +1322,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1377
1322
|
* @memberof DocumentsApi
|
|
1378
1323
|
*/
|
|
1379
1324
|
public listDocuments(requestParameters: DocumentsApiListDocumentsRequest = {}, options?: AxiosRequestConfig) {
|
|
1380
|
-
return DocumentsApiFp(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
1325
|
+
return DocumentsApiFp(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
1381
1326
|
}
|
|
1382
1327
|
|
|
1383
1328
|
/**
|
|
@@ -1389,7 +1334,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1389
1334
|
* @memberof DocumentsApi
|
|
1390
1335
|
*/
|
|
1391
1336
|
public mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig) {
|
|
1392
|
-
return DocumentsApiFp(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization,
|
|
1337
|
+
return DocumentsApiFp(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1393
1338
|
}
|
|
1394
1339
|
|
|
1395
1340
|
/**
|
|
@@ -1401,7 +1346,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1401
1346
|
* @memberof DocumentsApi
|
|
1402
1347
|
*/
|
|
1403
1348
|
public saveExternalDocument(requestParameters: DocumentsApiSaveExternalDocumentRequest, options?: AxiosRequestConfig) {
|
|
1404
|
-
return DocumentsApiFp(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization,
|
|
1349
|
+
return DocumentsApiFp(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1405
1350
|
}
|
|
1406
1351
|
|
|
1407
1352
|
/**
|
|
@@ -1413,6 +1358,6 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1413
1358
|
* @memberof DocumentsApi
|
|
1414
1359
|
*/
|
|
1415
1360
|
public updateDocument(requestParameters: DocumentsApiUpdateDocumentRequest, options?: AxiosRequestConfig) {
|
|
1416
|
-
return DocumentsApiFp(this.configuration).updateDocument(requestParameters.code, requestParameters.updateDocumentRequestDto, requestParameters.authorization,
|
|
1361
|
+
return DocumentsApiFp(this.configuration).updateDocument(requestParameters.code, requestParameters.updateDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1417
1362
|
}
|
|
1418
1363
|
}
|
|
@@ -76,13 +76,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
76
76
|
// http bearer authentication required
|
|
77
77
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
82
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
83
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
84
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
85
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
79
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
80
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
86
81
|
}
|
|
87
82
|
|
|
88
83
|
|
|
@@ -126,13 +121,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
126
121
|
// http bearer authentication required
|
|
127
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
128
123
|
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
132
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
133
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
134
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
135
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
136
126
|
}
|
|
137
127
|
|
|
138
128
|
|
|
@@ -176,13 +166,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
176
166
|
// http bearer authentication required
|
|
177
167
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
178
168
|
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
182
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
183
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
184
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
185
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
169
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
170
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
186
171
|
}
|
|
187
172
|
|
|
188
173
|
|
|
@@ -257,13 +242,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
257
242
|
localVarQueryParameter['filters'] = filters;
|
|
258
243
|
}
|
|
259
244
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
263
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
264
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
265
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
266
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
245
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
246
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
267
247
|
}
|
|
268
248
|
|
|
269
249
|
|
|
@@ -310,13 +290,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
310
290
|
// http bearer authentication required
|
|
311
291
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
312
292
|
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
316
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
317
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
318
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
319
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
293
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
294
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
320
295
|
}
|
|
321
296
|
|
|
322
297
|
|
|
@@ -362,13 +337,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
362
337
|
// http bearer authentication required
|
|
363
338
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
364
339
|
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
const authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
368
|
-
const authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
369
|
-
const authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !baseOptions?.headers?.['X-Emil-Account'];
|
|
370
|
-
if (authorizationValue || authorizationKeepEmpty) {
|
|
371
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
340
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
341
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
372
342
|
}
|
|
373
343
|
|
|
374
344
|
|
|
@@ -751,7 +721,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
751
721
|
* @memberof DocxTemplatesApi
|
|
752
722
|
*/
|
|
753
723
|
public deleteDocxTemplate(requestParameters: DocxTemplatesApiDeleteDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
754
|
-
return DocxTemplatesApiFp(this.configuration).deleteDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
724
|
+
return DocxTemplatesApiFp(this.configuration).deleteDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
755
725
|
}
|
|
756
726
|
|
|
757
727
|
/**
|
|
@@ -763,7 +733,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
763
733
|
* @memberof DocxTemplatesApi
|
|
764
734
|
*/
|
|
765
735
|
public downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
766
|
-
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
736
|
+
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
767
737
|
}
|
|
768
738
|
|
|
769
739
|
/**
|
|
@@ -775,7 +745,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
775
745
|
* @memberof DocxTemplatesApi
|
|
776
746
|
*/
|
|
777
747
|
public getDocxTemplate(requestParameters: DocxTemplatesApiGetDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
778
|
-
return DocxTemplatesApiFp(this.configuration).getDocxTemplate(requestParameters.code, requestParameters.authorization,
|
|
748
|
+
return DocxTemplatesApiFp(this.configuration).getDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
779
749
|
}
|
|
780
750
|
|
|
781
751
|
/**
|
|
@@ -787,7 +757,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
787
757
|
* @memberof DocxTemplatesApi
|
|
788
758
|
*/
|
|
789
759
|
public listDocxTemplates(requestParameters: DocxTemplatesApiListDocxTemplatesRequest = {}, options?: AxiosRequestConfig) {
|
|
790
|
-
return DocxTemplatesApiFp(this.configuration).listDocxTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters,
|
|
760
|
+
return DocxTemplatesApiFp(this.configuration).listDocxTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
791
761
|
}
|
|
792
762
|
|
|
793
763
|
/**
|
|
@@ -799,7 +769,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
799
769
|
* @memberof DocxTemplatesApi
|
|
800
770
|
*/
|
|
801
771
|
public updateDocxTemplate(requestParameters: DocxTemplatesApiUpdateDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
802
|
-
return DocxTemplatesApiFp(this.configuration).updateDocxTemplate(requestParameters.code, requestParameters.sharedUpdateDocxTemplateRequestDto, requestParameters.authorization,
|
|
772
|
+
return DocxTemplatesApiFp(this.configuration).updateDocxTemplate(requestParameters.code, requestParameters.sharedUpdateDocxTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
803
773
|
}
|
|
804
774
|
|
|
805
775
|
/**
|
|
@@ -811,6 +781,6 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
811
781
|
* @memberof DocxTemplatesApi
|
|
812
782
|
*/
|
|
813
783
|
public uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
814
|
-
return DocxTemplatesApiFp(this.configuration).uploadDocxTemplate(requestParameters.uploadDocxTemplateRequestDto, requestParameters.authorization,
|
|
784
|
+
return DocxTemplatesApiFp(this.configuration).uploadDocxTemplate(requestParameters.uploadDocxTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
815
785
|
}
|
|
816
786
|
}
|
package/api/health-api.ts
CHANGED
|
@@ -123,6 +123,6 @@ export class HealthApi extends BaseAPI {
|
|
|
123
123
|
* @memberof HealthApi
|
|
124
124
|
*/
|
|
125
125
|
public check(options?: AxiosRequestConfig) {
|
|
126
|
-
return HealthApiFp(this.configuration).check(
|
|
126
|
+
return HealthApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
127
127
|
}
|
|
128
128
|
}
|