@emilgroup/document-sdk-node 1.49.1-beta.27 → 1.49.1-beta.28
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 +20 -10
- package/api/documents-api.ts +44 -22
- package/api/docx-templates-api.ts +24 -12
- package/api/layouts-api.ts +20 -10
- package/api/product-documents-api.ts +24 -12
- package/api/search-keywords-api.ts +4 -2
- package/api/searchable-document-owners-api.ts +4 -2
- package/api/searchable-documents-api.ts +4 -2
- package/common.ts +3 -2
- package/dist/api/document-templates-api.d.ts +5 -5
- package/dist/api/document-templates-api.js +29 -18
- package/dist/api/documents-api.d.ts +11 -11
- package/dist/api/documents-api.js +68 -41
- package/dist/api/docx-templates-api.d.ts +6 -6
- package/dist/api/docx-templates-api.js +39 -23
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/layouts-api.d.ts +5 -5
- package/dist/api/layouts-api.js +29 -18
- package/dist/api/product-documents-api.d.ts +6 -6
- package/dist/api/product-documents-api.js +33 -21
- package/dist/api/search-keywords-api.d.ts +1 -1
- package/dist/api/search-keywords-api.js +4 -3
- package/dist/api/searchable-document-owners-api.d.ts +1 -1
- package/dist/api/searchable-document-owners-api.js +4 -3
- package/dist/api/searchable-documents-api.d.ts +1 -1
- package/dist/api/searchable-documents-api.js +4 -3
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- 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.28 --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.28
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -73,8 +73,10 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
73
73
|
// http bearer authentication required
|
|
74
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
77
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
78
|
+
if (authorizationValue) {
|
|
79
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
|
|
@@ -121,8 +123,10 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
121
123
|
// http bearer authentication required
|
|
122
124
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
125
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
127
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
128
|
+
if (authorizationValue) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
|
|
@@ -171,8 +175,10 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
171
175
|
localVarQueryParameter['expand'] = expand;
|
|
172
176
|
}
|
|
173
177
|
|
|
174
|
-
|
|
175
|
-
|
|
178
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
179
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
180
|
+
if (authorizationValue) {
|
|
181
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
176
182
|
}
|
|
177
183
|
|
|
178
184
|
|
|
@@ -242,8 +248,10 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
242
248
|
localVarQueryParameter['expand'] = expand;
|
|
243
249
|
}
|
|
244
250
|
|
|
245
|
-
|
|
246
|
-
|
|
251
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
252
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
253
|
+
if (authorizationValue) {
|
|
254
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
247
255
|
}
|
|
248
256
|
|
|
249
257
|
|
|
@@ -290,8 +298,10 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
290
298
|
// http bearer authentication required
|
|
291
299
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
292
300
|
|
|
293
|
-
|
|
294
|
-
|
|
301
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
302
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
303
|
+
if (authorizationValue) {
|
|
304
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
295
305
|
}
|
|
296
306
|
|
|
297
307
|
|
package/api/documents-api.ts
CHANGED
|
@@ -93,8 +93,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
93
93
|
// http bearer authentication required
|
|
94
94
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
97
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
98
|
+
if (authorizationValue) {
|
|
99
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
|
|
@@ -140,8 +142,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
140
142
|
// http bearer authentication required
|
|
141
143
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
142
144
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
146
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
147
|
+
if (authorizationValue) {
|
|
148
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
145
149
|
}
|
|
146
150
|
|
|
147
151
|
|
|
@@ -187,8 +191,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
187
191
|
// http bearer authentication required
|
|
188
192
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
189
193
|
|
|
190
|
-
|
|
191
|
-
|
|
194
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
195
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
196
|
+
if (authorizationValue) {
|
|
197
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
192
198
|
}
|
|
193
199
|
|
|
194
200
|
|
|
@@ -235,8 +241,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
235
241
|
// http bearer authentication required
|
|
236
242
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
237
243
|
|
|
238
|
-
|
|
239
|
-
|
|
244
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
245
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
246
|
+
if (authorizationValue) {
|
|
247
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
240
248
|
}
|
|
241
249
|
|
|
242
250
|
|
|
@@ -283,8 +291,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
283
291
|
// http bearer authentication required
|
|
284
292
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
285
293
|
|
|
286
|
-
|
|
287
|
-
|
|
294
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
295
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
296
|
+
if (authorizationValue) {
|
|
297
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
288
298
|
}
|
|
289
299
|
|
|
290
300
|
|
|
@@ -336,8 +346,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
336
346
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
337
347
|
}
|
|
338
348
|
|
|
339
|
-
|
|
340
|
-
|
|
349
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
350
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
351
|
+
if (authorizationValue) {
|
|
352
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
341
353
|
}
|
|
342
354
|
|
|
343
355
|
|
|
@@ -389,8 +401,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
389
401
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
390
402
|
}
|
|
391
403
|
|
|
392
|
-
|
|
393
|
-
|
|
404
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
405
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
406
|
+
if (authorizationValue) {
|
|
407
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
394
408
|
}
|
|
395
409
|
|
|
396
410
|
|
|
@@ -465,8 +479,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
465
479
|
localVarQueryParameter['filters'] = filters;
|
|
466
480
|
}
|
|
467
481
|
|
|
468
|
-
|
|
469
|
-
|
|
482
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
483
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
484
|
+
if (authorizationValue) {
|
|
485
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
470
486
|
}
|
|
471
487
|
|
|
472
488
|
|
|
@@ -509,8 +525,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
509
525
|
// http bearer authentication required
|
|
510
526
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
511
527
|
|
|
512
|
-
|
|
513
|
-
|
|
528
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
529
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
530
|
+
if (authorizationValue) {
|
|
531
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
514
532
|
}
|
|
515
533
|
|
|
516
534
|
|
|
@@ -556,8 +574,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
556
574
|
// http bearer authentication required
|
|
557
575
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
558
576
|
|
|
559
|
-
|
|
560
|
-
|
|
577
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
578
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
579
|
+
if (authorizationValue) {
|
|
580
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
561
581
|
}
|
|
562
582
|
|
|
563
583
|
|
|
@@ -607,8 +627,10 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
607
627
|
// http bearer authentication required
|
|
608
628
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
609
629
|
|
|
610
|
-
|
|
611
|
-
|
|
630
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
631
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
632
|
+
if (authorizationValue) {
|
|
633
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
612
634
|
}
|
|
613
635
|
|
|
614
636
|
|
|
@@ -76,8 +76,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
76
76
|
// http bearer authentication required
|
|
77
77
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
80
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
81
|
+
if (authorizationValue) {
|
|
82
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
|
|
@@ -121,8 +123,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
121
123
|
// http bearer authentication required
|
|
122
124
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
125
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
127
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
128
|
+
if (authorizationValue) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
|
|
@@ -166,8 +170,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
166
170
|
// http bearer authentication required
|
|
167
171
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
168
172
|
|
|
169
|
-
|
|
170
|
-
|
|
173
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
174
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
175
|
+
if (authorizationValue) {
|
|
176
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
171
177
|
}
|
|
172
178
|
|
|
173
179
|
|
|
@@ -242,8 +248,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
242
248
|
localVarQueryParameter['filters'] = filters;
|
|
243
249
|
}
|
|
244
250
|
|
|
245
|
-
|
|
246
|
-
|
|
251
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
252
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
253
|
+
if (authorizationValue) {
|
|
254
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
247
255
|
}
|
|
248
256
|
|
|
249
257
|
|
|
@@ -290,8 +298,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
290
298
|
// http bearer authentication required
|
|
291
299
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
292
300
|
|
|
293
|
-
|
|
294
|
-
|
|
301
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
302
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
303
|
+
if (authorizationValue) {
|
|
304
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
295
305
|
}
|
|
296
306
|
|
|
297
307
|
|
|
@@ -337,8 +347,10 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
337
347
|
// http bearer authentication required
|
|
338
348
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
339
349
|
|
|
340
|
-
|
|
341
|
-
|
|
350
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
351
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
352
|
+
if (authorizationValue) {
|
|
353
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
342
354
|
}
|
|
343
355
|
|
|
344
356
|
|
package/api/layouts-api.ts
CHANGED
|
@@ -73,8 +73,10 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
73
73
|
// http bearer authentication required
|
|
74
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
76
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
77
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
78
|
+
if (authorizationValue) {
|
|
79
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
78
80
|
}
|
|
79
81
|
|
|
80
82
|
|
|
@@ -121,8 +123,10 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
121
123
|
// http bearer authentication required
|
|
122
124
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
123
125
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
127
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
128
|
+
if (authorizationValue) {
|
|
129
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
126
130
|
}
|
|
127
131
|
|
|
128
132
|
|
|
@@ -173,8 +177,10 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
173
177
|
localVarQueryParameter['id'] = id2;
|
|
174
178
|
}
|
|
175
179
|
|
|
176
|
-
|
|
177
|
-
|
|
180
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
181
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
182
|
+
if (authorizationValue) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
178
184
|
}
|
|
179
185
|
|
|
180
186
|
|
|
@@ -249,8 +255,10 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
249
255
|
localVarQueryParameter['filters'] = filters;
|
|
250
256
|
}
|
|
251
257
|
|
|
252
|
-
|
|
253
|
-
|
|
258
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
259
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
260
|
+
if (authorizationValue) {
|
|
261
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
254
262
|
}
|
|
255
263
|
|
|
256
264
|
|
|
@@ -297,8 +305,10 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
297
305
|
// http bearer authentication required
|
|
298
306
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
299
307
|
|
|
300
|
-
|
|
301
|
-
|
|
308
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
309
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
310
|
+
if (authorizationValue) {
|
|
311
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
302
312
|
}
|
|
303
313
|
|
|
304
314
|
|
|
@@ -76,8 +76,10 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
76
76
|
// http bearer authentication required
|
|
77
77
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
80
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
81
|
+
if (authorizationValue) {
|
|
82
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
81
83
|
}
|
|
82
84
|
|
|
83
85
|
|
|
@@ -130,8 +132,10 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
130
132
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
131
133
|
}
|
|
132
134
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
136
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
137
|
+
if (authorizationValue) {
|
|
138
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
135
139
|
}
|
|
136
140
|
|
|
137
141
|
|
|
@@ -179,8 +183,10 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
179
183
|
// http bearer authentication required
|
|
180
184
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
181
185
|
|
|
182
|
-
|
|
183
|
-
|
|
186
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
187
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
188
|
+
if (authorizationValue) {
|
|
189
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
184
190
|
}
|
|
185
191
|
|
|
186
192
|
|
|
@@ -255,8 +261,10 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
255
261
|
localVarQueryParameter['filters'] = filters;
|
|
256
262
|
}
|
|
257
263
|
|
|
258
|
-
|
|
259
|
-
|
|
264
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
265
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
266
|
+
if (authorizationValue) {
|
|
267
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
260
268
|
}
|
|
261
269
|
|
|
262
270
|
|
|
@@ -335,8 +343,10 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
335
343
|
localVarQueryParameter['filters'] = filters;
|
|
336
344
|
}
|
|
337
345
|
|
|
338
|
-
|
|
339
|
-
|
|
346
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
347
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
348
|
+
if (authorizationValue) {
|
|
349
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
340
350
|
}
|
|
341
351
|
|
|
342
352
|
|
|
@@ -383,8 +393,10 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
383
393
|
// http bearer authentication required
|
|
384
394
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
385
395
|
|
|
386
|
-
|
|
387
|
-
|
|
396
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
397
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
398
|
+
if (authorizationValue) {
|
|
399
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
388
400
|
}
|
|
389
401
|
|
|
390
402
|
|
|
@@ -65,8 +65,10 @@ export const SearchKeywordsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
65
65
|
localVarQueryParameter['searchText'] = searchText;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
68
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
69
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
70
|
+
if (authorizationValue) {
|
|
71
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
70
72
|
}
|
|
71
73
|
|
|
72
74
|
|
|
@@ -93,8 +93,10 @@ export const SearchableDocumentOwnersApiAxiosParamCreator = function (configurat
|
|
|
93
93
|
localVarQueryParameter['filters'] = filters;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
96
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
97
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
98
|
+
if (authorizationValue) {
|
|
99
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
98
100
|
}
|
|
99
101
|
|
|
100
102
|
|
|
@@ -77,8 +77,10 @@ export const SearchableDocumentsApiAxiosParamCreator = function (configuration?:
|
|
|
77
77
|
localVarQueryParameter['product'] = product;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
// Only Authorization falls back to the configured token; an empty value is never sent.
|
|
81
|
+
const authorizationValue = 'Authorization'.toLowerCase() === 'authorization' ? (authorization || baseAccessToken) : authorization;
|
|
82
|
+
if (authorizationValue) {
|
|
83
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
82
84
|
}
|
|
83
85
|
|
|
84
86
|
|
package/common.ts
CHANGED
|
@@ -131,9 +131,10 @@ export const toPathString = function (url: URL) {
|
|
|
131
131
|
* @export
|
|
132
132
|
*/
|
|
133
133
|
export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {
|
|
134
|
-
|
|
134
|
+
// Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
|
|
135
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
135
136
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
136
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
137
|
+
return axios.request<T, R>(axiosRequestArgs) as Promise<R>;
|
|
137
138
|
};
|
|
138
139
|
}
|
|
139
140
|
|
|
@@ -345,7 +345,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
345
345
|
* @throws {RequiredError}
|
|
346
346
|
* @memberof DocumentTemplatesApi
|
|
347
347
|
*/
|
|
348
|
-
createDocTemplate(requestParameters: DocumentTemplatesApiCreateDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocTemplateResponseClass, any, {}>>;
|
|
348
|
+
createDocTemplate(requestParameters: DocumentTemplatesApiCreateDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateDocTemplateResponseClass, any, {}, any>>;
|
|
349
349
|
/**
|
|
350
350
|
* Permanently deletes the document template. Supply the unique code that was returned when you created the document template and this will delete it. **Required Permissions** \"document-management.templates.delete\"
|
|
351
351
|
* @summary Delete the document template
|
|
@@ -354,7 +354,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
354
354
|
* @throws {RequiredError}
|
|
355
355
|
* @memberof DocumentTemplatesApi
|
|
356
356
|
*/
|
|
357
|
-
deleteDocTemplate(requestParameters: DocumentTemplatesApiDeleteDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
|
|
357
|
+
deleteDocTemplate(requestParameters: DocumentTemplatesApiDeleteDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
|
|
358
358
|
/**
|
|
359
359
|
* Retrieves the details of the document template that was previously created. Supply the unique document template id that was returned when you created it and Emil Api will return the corresponding document template information. **Required Permissions** \"document-management.templates.view\"
|
|
360
360
|
* @summary Retrieve the document template
|
|
@@ -363,7 +363,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
363
363
|
* @throws {RequiredError}
|
|
364
364
|
* @memberof DocumentTemplatesApi
|
|
365
365
|
*/
|
|
366
|
-
getDocTemplate(requestParameters: DocumentTemplatesApiGetDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocTemplateResponseClass, any, {}>>;
|
|
366
|
+
getDocTemplate(requestParameters: DocumentTemplatesApiGetDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocTemplateResponseClass, any, {}, any>>;
|
|
367
367
|
/**
|
|
368
368
|
* Returns a list of document templates you have previously created. The document templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.templates.view\"
|
|
369
369
|
* @summary List document templates
|
|
@@ -372,7 +372,7 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
372
372
|
* @throws {RequiredError}
|
|
373
373
|
* @memberof DocumentTemplatesApi
|
|
374
374
|
*/
|
|
375
|
-
listDocTemplates(requestParameters?: DocumentTemplatesApiListDocTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocTemplatesResponseClass, any, {}>>;
|
|
375
|
+
listDocTemplates(requestParameters?: DocumentTemplatesApiListDocTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocTemplatesResponseClass, any, {}, any>>;
|
|
376
376
|
/**
|
|
377
377
|
* Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.templates.update\"
|
|
378
378
|
* @summary Update the document template
|
|
@@ -381,5 +381,5 @@ export declare class DocumentTemplatesApi extends BaseAPI {
|
|
|
381
381
|
* @throws {RequiredError}
|
|
382
382
|
* @memberof DocumentTemplatesApi
|
|
383
383
|
*/
|
|
384
|
-
updateDocTemplate(requestParameters: DocumentTemplatesApiUpdateDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocTemplateResponseClass, any, {}>>;
|
|
384
|
+
updateDocTemplate(requestParameters: DocumentTemplatesApiUpdateDocTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocTemplateResponseClass, any, {}, any>>;
|
|
385
385
|
}
|