@emilgroup/document-sdk-node 1.49.1-beta.28 → 1.49.1-beta.29
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 +35 -20
- package/api/documents-api.ts +77 -44
- package/api/docx-templates-api.ts +42 -24
- package/api/health-api.ts +1 -1
- package/api/layouts-api.ts +35 -20
- package/api/product-documents-api.ts +42 -24
- package/api/search-keywords-api.ts +7 -4
- package/api/searchable-document-owners-api.ts +7 -4
- package/api/searchable-documents-api.ts +7 -4
- package/base.ts +4 -0
- package/dist/api/document-templates-api.js +56 -38
- package/dist/api/documents-api.js +126 -85
- package/dist/api/docx-templates-api.js +70 -47
- package/dist/api/health-api.js +1 -1
- package/dist/api/layouts-api.js +56 -38
- package/dist/api/product-documents-api.js +66 -45
- package/dist/api/search-keywords-api.js +10 -7
- package/dist/api/searchable-document-owners-api.js +10 -7
- package/dist/api/searchable-documents-api.js +10 -7
- package/dist/base.d.ts +1 -0
- package/dist/base.js +3 -0
- package/package.json +1 -1
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.29 --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.29
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -73,9 +73,12 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
73
73
|
// http bearer authentication required
|
|
74
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
75
|
|
|
76
|
-
// Only Authorization falls back to the configured token
|
|
77
|
-
|
|
78
|
-
|
|
76
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
77
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
79
82
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
80
83
|
}
|
|
81
84
|
|
|
@@ -123,9 +126,12 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
123
126
|
// http bearer authentication required
|
|
124
127
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
128
|
|
|
126
|
-
// Only Authorization falls back to the configured token
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
129
135
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
136
|
}
|
|
131
137
|
|
|
@@ -175,9 +181,12 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
175
181
|
localVarQueryParameter['expand'] = expand;
|
|
176
182
|
}
|
|
177
183
|
|
|
178
|
-
// Only Authorization falls back to the configured token
|
|
179
|
-
|
|
180
|
-
|
|
184
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
185
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
181
190
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
182
191
|
}
|
|
183
192
|
|
|
@@ -248,9 +257,12 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
248
257
|
localVarQueryParameter['expand'] = expand;
|
|
249
258
|
}
|
|
250
259
|
|
|
251
|
-
// Only Authorization falls back to the configured token
|
|
252
|
-
|
|
253
|
-
|
|
260
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
261
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
254
266
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
255
267
|
}
|
|
256
268
|
|
|
@@ -298,9 +310,12 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
298
310
|
// http bearer authentication required
|
|
299
311
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
300
312
|
|
|
301
|
-
// Only Authorization falls back to the configured token
|
|
302
|
-
|
|
303
|
-
|
|
313
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
314
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
304
319
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
305
320
|
}
|
|
306
321
|
|
|
@@ -640,7 +655,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
640
655
|
* @memberof DocumentTemplatesApi
|
|
641
656
|
*/
|
|
642
657
|
public createDocTemplate(requestParameters: DocumentTemplatesApiCreateDocTemplateRequest, options?: AxiosRequestConfig) {
|
|
643
|
-
return DocumentTemplatesApiFp(this.configuration).createDocTemplate(requestParameters.createDocTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
658
|
+
return DocumentTemplatesApiFp(this.configuration).createDocTemplate(requestParameters.createDocTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
644
659
|
}
|
|
645
660
|
|
|
646
661
|
/**
|
|
@@ -652,7 +667,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
652
667
|
* @memberof DocumentTemplatesApi
|
|
653
668
|
*/
|
|
654
669
|
public deleteDocTemplate(requestParameters: DocumentTemplatesApiDeleteDocTemplateRequest, options?: AxiosRequestConfig) {
|
|
655
|
-
return DocumentTemplatesApiFp(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
670
|
+
return DocumentTemplatesApiFp(this.configuration).deleteDocTemplate(requestParameters.id, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
656
671
|
}
|
|
657
672
|
|
|
658
673
|
/**
|
|
@@ -664,7 +679,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
664
679
|
* @memberof DocumentTemplatesApi
|
|
665
680
|
*/
|
|
666
681
|
public getDocTemplate(requestParameters: DocumentTemplatesApiGetDocTemplateRequest, options?: AxiosRequestConfig) {
|
|
667
|
-
return DocumentTemplatesApiFp(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
682
|
+
return DocumentTemplatesApiFp(this.configuration).getDocTemplate(requestParameters.id, requestParameters.authorization, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
668
683
|
}
|
|
669
684
|
|
|
670
685
|
/**
|
|
@@ -676,7 +691,7 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
676
691
|
* @memberof DocumentTemplatesApi
|
|
677
692
|
*/
|
|
678
693
|
public listDocTemplates(requestParameters: DocumentTemplatesApiListDocTemplatesRequest = {}, options?: AxiosRequestConfig) {
|
|
679
|
-
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));
|
|
694
|
+
return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
680
695
|
}
|
|
681
696
|
|
|
682
697
|
/**
|
|
@@ -688,6 +703,6 @@ export class DocumentTemplatesApi extends BaseAPI {
|
|
|
688
703
|
* @memberof DocumentTemplatesApi
|
|
689
704
|
*/
|
|
690
705
|
public updateDocTemplate(requestParameters: DocumentTemplatesApiUpdateDocTemplateRequest, options?: AxiosRequestConfig) {
|
|
691
|
-
return DocumentTemplatesApiFp(this.configuration).updateDocTemplate(requestParameters.id, requestParameters.updateDocTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
706
|
+
return DocumentTemplatesApiFp(this.configuration).updateDocTemplate(requestParameters.id, requestParameters.updateDocTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
692
707
|
}
|
|
693
708
|
}
|
package/api/documents-api.ts
CHANGED
|
@@ -93,9 +93,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
93
93
|
// http bearer authentication required
|
|
94
94
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
95
95
|
|
|
96
|
-
// Only Authorization falls back to the configured token
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
97
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
99
102
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
100
103
|
}
|
|
101
104
|
|
|
@@ -142,9 +145,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
142
145
|
// http bearer authentication required
|
|
143
146
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
144
147
|
|
|
145
|
-
// Only Authorization falls back to the configured token
|
|
146
|
-
|
|
147
|
-
|
|
148
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
149
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
148
154
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
149
155
|
}
|
|
150
156
|
|
|
@@ -191,9 +197,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
191
197
|
// http bearer authentication required
|
|
192
198
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
193
199
|
|
|
194
|
-
// Only Authorization falls back to the configured token
|
|
195
|
-
|
|
196
|
-
|
|
200
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
201
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
197
206
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
198
207
|
}
|
|
199
208
|
|
|
@@ -241,9 +250,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
241
250
|
// http bearer authentication required
|
|
242
251
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
243
252
|
|
|
244
|
-
// Only Authorization falls back to the configured token
|
|
245
|
-
|
|
246
|
-
|
|
253
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
254
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
247
259
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
248
260
|
}
|
|
249
261
|
|
|
@@ -291,9 +303,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
291
303
|
// http bearer authentication required
|
|
292
304
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
293
305
|
|
|
294
|
-
// Only Authorization falls back to the configured token
|
|
295
|
-
|
|
296
|
-
|
|
306
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
307
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
297
312
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
298
313
|
}
|
|
299
314
|
|
|
@@ -346,9 +361,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
346
361
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
347
362
|
}
|
|
348
363
|
|
|
349
|
-
// Only Authorization falls back to the configured token
|
|
350
|
-
|
|
351
|
-
|
|
364
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
365
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
352
370
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
353
371
|
}
|
|
354
372
|
|
|
@@ -401,9 +419,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
401
419
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
402
420
|
}
|
|
403
421
|
|
|
404
|
-
// Only Authorization falls back to the configured token
|
|
405
|
-
|
|
406
|
-
|
|
422
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
423
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
407
428
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
408
429
|
}
|
|
409
430
|
|
|
@@ -479,9 +500,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
479
500
|
localVarQueryParameter['filters'] = filters;
|
|
480
501
|
}
|
|
481
502
|
|
|
482
|
-
// Only Authorization falls back to the configured token
|
|
483
|
-
|
|
484
|
-
|
|
503
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
504
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
485
509
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
486
510
|
}
|
|
487
511
|
|
|
@@ -525,9 +549,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
525
549
|
// http bearer authentication required
|
|
526
550
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
527
551
|
|
|
528
|
-
// Only Authorization falls back to the configured token
|
|
529
|
-
|
|
530
|
-
|
|
552
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
553
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
531
558
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
532
559
|
}
|
|
533
560
|
|
|
@@ -574,9 +601,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
574
601
|
// http bearer authentication required
|
|
575
602
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
576
603
|
|
|
577
|
-
// Only Authorization falls back to the configured token
|
|
578
|
-
|
|
579
|
-
|
|
604
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
605
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
580
610
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
581
611
|
}
|
|
582
612
|
|
|
@@ -627,9 +657,12 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
627
657
|
// http bearer authentication required
|
|
628
658
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
629
659
|
|
|
630
|
-
// Only Authorization falls back to the configured token
|
|
631
|
-
|
|
632
|
-
|
|
660
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
661
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
633
666
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
634
667
|
}
|
|
635
668
|
|
|
@@ -1260,7 +1293,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1260
1293
|
* @memberof DocumentsApi
|
|
1261
1294
|
*/
|
|
1262
1295
|
public createDocument(requestParameters: DocumentsApiCreateDocumentRequest, options?: AxiosRequestConfig) {
|
|
1263
|
-
return DocumentsApiFp(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1296
|
+
return DocumentsApiFp(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1264
1297
|
}
|
|
1265
1298
|
|
|
1266
1299
|
/**
|
|
@@ -1272,7 +1305,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1272
1305
|
* @memberof DocumentsApi
|
|
1273
1306
|
*/
|
|
1274
1307
|
public createPresignedPost(requestParameters: DocumentsApiCreatePresignedPostRequest, options?: AxiosRequestConfig) {
|
|
1275
|
-
return DocumentsApiFp(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1308
|
+
return DocumentsApiFp(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1276
1309
|
}
|
|
1277
1310
|
|
|
1278
1311
|
/**
|
|
@@ -1284,7 +1317,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1284
1317
|
* @memberof DocumentsApi
|
|
1285
1318
|
*/
|
|
1286
1319
|
public createQrBillDocument(requestParameters: DocumentsApiCreateQrBillDocumentRequest, options?: AxiosRequestConfig) {
|
|
1287
|
-
return DocumentsApiFp(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1320
|
+
return DocumentsApiFp(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1288
1321
|
}
|
|
1289
1322
|
|
|
1290
1323
|
/**
|
|
@@ -1296,7 +1329,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1296
1329
|
* @memberof DocumentsApi
|
|
1297
1330
|
*/
|
|
1298
1331
|
public deleteDocument(requestParameters: DocumentsApiDeleteDocumentRequest, options?: AxiosRequestConfig) {
|
|
1299
|
-
return DocumentsApiFp(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1332
|
+
return DocumentsApiFp(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1300
1333
|
}
|
|
1301
1334
|
|
|
1302
1335
|
/**
|
|
@@ -1308,7 +1341,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1308
1341
|
* @memberof DocumentsApi
|
|
1309
1342
|
*/
|
|
1310
1343
|
public exportDocument(requestParameters: DocumentsApiExportDocumentRequest, options?: AxiosRequestConfig) {
|
|
1311
|
-
return DocumentsApiFp(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1344
|
+
return DocumentsApiFp(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1312
1345
|
}
|
|
1313
1346
|
|
|
1314
1347
|
/**
|
|
@@ -1320,7 +1353,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1320
1353
|
* @memberof DocumentsApi
|
|
1321
1354
|
*/
|
|
1322
1355
|
public getDocumentDownloadUrl(requestParameters: DocumentsApiGetDocumentDownloadUrlRequest, options?: AxiosRequestConfig) {
|
|
1323
|
-
return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, options).then((request) => request(this.axios, this.basePath));
|
|
1356
|
+
return DocumentsApiFp(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1324
1357
|
}
|
|
1325
1358
|
|
|
1326
1359
|
/**
|
|
@@ -1332,7 +1365,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1332
1365
|
* @memberof DocumentsApi
|
|
1333
1366
|
*/
|
|
1334
1367
|
public getSignedS3keyUrl(requestParameters: DocumentsApiGetSignedS3keyUrlRequest, options?: AxiosRequestConfig) {
|
|
1335
|
-
return DocumentsApiFp(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, requestParameters.contentDisposition, options).then((request) => request(this.axios, this.basePath));
|
|
1368
|
+
return DocumentsApiFp(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, requestParameters.contentDisposition, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1336
1369
|
}
|
|
1337
1370
|
|
|
1338
1371
|
/**
|
|
@@ -1344,7 +1377,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1344
1377
|
* @memberof DocumentsApi
|
|
1345
1378
|
*/
|
|
1346
1379
|
public listDocuments(requestParameters: DocumentsApiListDocumentsRequest = {}, options?: AxiosRequestConfig) {
|
|
1347
|
-
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));
|
|
1380
|
+
return DocumentsApiFp(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1348
1381
|
}
|
|
1349
1382
|
|
|
1350
1383
|
/**
|
|
@@ -1356,7 +1389,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1356
1389
|
* @memberof DocumentsApi
|
|
1357
1390
|
*/
|
|
1358
1391
|
public mergeDocuments(requestParameters: DocumentsApiMergeDocumentsRequest, options?: AxiosRequestConfig) {
|
|
1359
|
-
return DocumentsApiFp(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1392
|
+
return DocumentsApiFp(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1360
1393
|
}
|
|
1361
1394
|
|
|
1362
1395
|
/**
|
|
@@ -1368,7 +1401,7 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1368
1401
|
* @memberof DocumentsApi
|
|
1369
1402
|
*/
|
|
1370
1403
|
public saveExternalDocument(requestParameters: DocumentsApiSaveExternalDocumentRequest, options?: AxiosRequestConfig) {
|
|
1371
|
-
return DocumentsApiFp(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1404
|
+
return DocumentsApiFp(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1372
1405
|
}
|
|
1373
1406
|
|
|
1374
1407
|
/**
|
|
@@ -1380,6 +1413,6 @@ export class DocumentsApi extends BaseAPI {
|
|
|
1380
1413
|
* @memberof DocumentsApi
|
|
1381
1414
|
*/
|
|
1382
1415
|
public updateDocument(requestParameters: DocumentsApiUpdateDocumentRequest, options?: AxiosRequestConfig) {
|
|
1383
|
-
return DocumentsApiFp(this.configuration).updateDocument(requestParameters.code, requestParameters.updateDocumentRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1416
|
+
return DocumentsApiFp(this.configuration).updateDocument(requestParameters.code, requestParameters.updateDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
1384
1417
|
}
|
|
1385
1418
|
}
|
|
@@ -76,9 +76,12 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
76
76
|
// http bearer authentication required
|
|
77
77
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
78
78
|
|
|
79
|
-
// Only Authorization falls back to the configured token
|
|
80
|
-
|
|
81
|
-
|
|
79
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
80
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
82
85
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
83
86
|
}
|
|
84
87
|
|
|
@@ -123,9 +126,12 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
123
126
|
// http bearer authentication required
|
|
124
127
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
128
|
|
|
126
|
-
// Only Authorization falls back to the configured token
|
|
127
|
-
|
|
128
|
-
|
|
129
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
130
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
129
135
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
130
136
|
}
|
|
131
137
|
|
|
@@ -170,9 +176,12 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
170
176
|
// http bearer authentication required
|
|
171
177
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
172
178
|
|
|
173
|
-
// Only Authorization falls back to the configured token
|
|
174
|
-
|
|
175
|
-
|
|
179
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
180
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
176
185
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
177
186
|
}
|
|
178
187
|
|
|
@@ -248,9 +257,12 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
248
257
|
localVarQueryParameter['filters'] = filters;
|
|
249
258
|
}
|
|
250
259
|
|
|
251
|
-
// Only Authorization falls back to the configured token
|
|
252
|
-
|
|
253
|
-
|
|
260
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
261
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
254
266
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
255
267
|
}
|
|
256
268
|
|
|
@@ -298,9 +310,12 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
298
310
|
// http bearer authentication required
|
|
299
311
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
300
312
|
|
|
301
|
-
// Only Authorization falls back to the configured token
|
|
302
|
-
|
|
303
|
-
|
|
313
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
314
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
304
319
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
305
320
|
}
|
|
306
321
|
|
|
@@ -347,9 +362,12 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
347
362
|
// http bearer authentication required
|
|
348
363
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
349
364
|
|
|
350
|
-
// Only Authorization falls back to the configured token
|
|
351
|
-
|
|
352
|
-
|
|
365
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
366
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
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) {
|
|
353
371
|
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
354
372
|
}
|
|
355
373
|
|
|
@@ -733,7 +751,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
733
751
|
* @memberof DocxTemplatesApi
|
|
734
752
|
*/
|
|
735
753
|
public deleteDocxTemplate(requestParameters: DocxTemplatesApiDeleteDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
736
|
-
return DocxTemplatesApiFp(this.configuration).deleteDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
754
|
+
return DocxTemplatesApiFp(this.configuration).deleteDocxTemplate(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
737
755
|
}
|
|
738
756
|
|
|
739
757
|
/**
|
|
@@ -745,7 +763,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
745
763
|
* @memberof DocxTemplatesApi
|
|
746
764
|
*/
|
|
747
765
|
public downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
748
|
-
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
766
|
+
return DocxTemplatesApiFp(this.configuration).downloadDocxTemplate(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
749
767
|
}
|
|
750
768
|
|
|
751
769
|
/**
|
|
@@ -757,7 +775,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
757
775
|
* @memberof DocxTemplatesApi
|
|
758
776
|
*/
|
|
759
777
|
public getDocxTemplate(requestParameters: DocxTemplatesApiGetDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
760
|
-
return DocxTemplatesApiFp(this.configuration).getDocxTemplate(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
778
|
+
return DocxTemplatesApiFp(this.configuration).getDocxTemplate(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
761
779
|
}
|
|
762
780
|
|
|
763
781
|
/**
|
|
@@ -769,7 +787,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
769
787
|
* @memberof DocxTemplatesApi
|
|
770
788
|
*/
|
|
771
789
|
public listDocxTemplates(requestParameters: DocxTemplatesApiListDocxTemplatesRequest = {}, options?: AxiosRequestConfig) {
|
|
772
|
-
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));
|
|
790
|
+
return DocxTemplatesApiFp(this.configuration).listDocxTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
773
791
|
}
|
|
774
792
|
|
|
775
793
|
/**
|
|
@@ -781,7 +799,7 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
781
799
|
* @memberof DocxTemplatesApi
|
|
782
800
|
*/
|
|
783
801
|
public updateDocxTemplate(requestParameters: DocxTemplatesApiUpdateDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
784
|
-
return DocxTemplatesApiFp(this.configuration).updateDocxTemplate(requestParameters.code, requestParameters.sharedUpdateDocxTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
802
|
+
return DocxTemplatesApiFp(this.configuration).updateDocxTemplate(requestParameters.code, requestParameters.sharedUpdateDocxTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
785
803
|
}
|
|
786
804
|
|
|
787
805
|
/**
|
|
@@ -793,6 +811,6 @@ export class DocxTemplatesApi extends BaseAPI {
|
|
|
793
811
|
* @memberof DocxTemplatesApi
|
|
794
812
|
*/
|
|
795
813
|
public uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig) {
|
|
796
|
-
return DocxTemplatesApiFp(this.configuration).uploadDocxTemplate(requestParameters.uploadDocxTemplateRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
814
|
+
return DocxTemplatesApiFp(this.configuration).uploadDocxTemplate(requestParameters.uploadDocxTemplateRequestDto, requestParameters.authorization, this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
797
815
|
}
|
|
798
816
|
}
|
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(options).then((request) => request(this.axios, this.basePath));
|
|
126
|
+
return HealthApiFp(this.configuration).check(this.withOwner(options)).then((request) => request(this.axios, this.basePath));
|
|
127
127
|
}
|
|
128
128
|
}
|