@emilgroup/document-sdk-node 1.49.1-beta.26 → 1.49.1-beta.27
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 +10 -20
- package/api/documents-api.ts +22 -44
- package/api/docx-templates-api.ts +12 -24
- package/api/layouts-api.ts +10 -20
- package/api/product-documents-api.ts +12 -24
- package/api/search-keywords-api.ts +2 -4
- package/api/searchable-document-owners-api.ts +2 -4
- package/api/searchable-documents-api.ts +2 -4
- package/common.ts +2 -3
- package/dist/api/document-templates-api.d.ts +5 -5
- package/dist/api/document-templates-api.js +18 -29
- package/dist/api/documents-api.d.ts +11 -11
- package/dist/api/documents-api.js +41 -68
- package/dist/api/docx-templates-api.d.ts +6 -6
- package/dist/api/docx-templates-api.js +23 -39
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/layouts-api.d.ts +5 -5
- package/dist/api/layouts-api.js +18 -29
- package/dist/api/product-documents-api.d.ts +6 -6
- package/dist/api/product-documents-api.js +21 -33
- package/dist/api/search-keywords-api.d.ts +1 -1
- package/dist/api/search-keywords-api.js +3 -4
- package/dist/api/searchable-document-owners-api.d.ts +1 -1
- package/dist/api/searchable-document-owners-api.js +3 -4
- package/dist/api/searchable-documents-api.d.ts +1 -1
- package/dist/api/searchable-documents-api.js +3 -4
- 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.27 --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.27
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `DocumentsApi`.
|
|
@@ -73,10 +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
|
-
if (authorizationValue) {
|
|
79
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
|
|
@@ -123,10 +121,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
123
121
|
// http bearer authentication required
|
|
124
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
123
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (authorizationValue) {
|
|
129
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
126
|
}
|
|
131
127
|
|
|
132
128
|
|
|
@@ -175,10 +171,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
175
171
|
localVarQueryParameter['expand'] = expand;
|
|
176
172
|
}
|
|
177
173
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
if (authorizationValue) {
|
|
181
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
174
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
175
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
182
176
|
}
|
|
183
177
|
|
|
184
178
|
|
|
@@ -248,10 +242,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
248
242
|
localVarQueryParameter['expand'] = expand;
|
|
249
243
|
}
|
|
250
244
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
if (authorizationValue) {
|
|
254
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
245
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
246
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
255
247
|
}
|
|
256
248
|
|
|
257
249
|
|
|
@@ -298,10 +290,8 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
|
|
|
298
290
|
// http bearer authentication required
|
|
299
291
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
300
292
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
if (authorizationValue) {
|
|
304
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
293
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
294
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
305
295
|
}
|
|
306
296
|
|
|
307
297
|
|
package/api/documents-api.ts
CHANGED
|
@@ -93,10 +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
|
-
if (authorizationValue) {
|
|
99
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
96
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
97
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
|
|
@@ -142,10 +140,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
142
140
|
// http bearer authentication required
|
|
143
141
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
144
142
|
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
if (authorizationValue) {
|
|
148
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
143
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
144
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
149
145
|
}
|
|
150
146
|
|
|
151
147
|
|
|
@@ -191,10 +187,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
191
187
|
// http bearer authentication required
|
|
192
188
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
193
189
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
if (authorizationValue) {
|
|
197
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
190
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
191
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
198
192
|
}
|
|
199
193
|
|
|
200
194
|
|
|
@@ -241,10 +235,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
241
235
|
// http bearer authentication required
|
|
242
236
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
243
237
|
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
if (authorizationValue) {
|
|
247
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
238
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
239
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
248
240
|
}
|
|
249
241
|
|
|
250
242
|
|
|
@@ -291,10 +283,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
291
283
|
// http bearer authentication required
|
|
292
284
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
293
285
|
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
if (authorizationValue) {
|
|
297
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
286
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
287
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
298
288
|
}
|
|
299
289
|
|
|
300
290
|
|
|
@@ -346,10 +336,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
346
336
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
347
337
|
}
|
|
348
338
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
if (authorizationValue) {
|
|
352
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
339
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
340
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
353
341
|
}
|
|
354
342
|
|
|
355
343
|
|
|
@@ -401,10 +389,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
401
389
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
402
390
|
}
|
|
403
391
|
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
if (authorizationValue) {
|
|
407
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
392
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
393
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
408
394
|
}
|
|
409
395
|
|
|
410
396
|
|
|
@@ -479,10 +465,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
479
465
|
localVarQueryParameter['filters'] = filters;
|
|
480
466
|
}
|
|
481
467
|
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
if (authorizationValue) {
|
|
485
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
468
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
469
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
486
470
|
}
|
|
487
471
|
|
|
488
472
|
|
|
@@ -525,10 +509,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
525
509
|
// http bearer authentication required
|
|
526
510
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
527
511
|
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
if (authorizationValue) {
|
|
531
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
512
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
513
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
532
514
|
}
|
|
533
515
|
|
|
534
516
|
|
|
@@ -574,10 +556,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
574
556
|
// http bearer authentication required
|
|
575
557
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
576
558
|
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
if (authorizationValue) {
|
|
580
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
559
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
560
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
581
561
|
}
|
|
582
562
|
|
|
583
563
|
|
|
@@ -627,10 +607,8 @@ export const DocumentsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
627
607
|
// http bearer authentication required
|
|
628
608
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
629
609
|
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
if (authorizationValue) {
|
|
633
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
610
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
611
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
634
612
|
}
|
|
635
613
|
|
|
636
614
|
|
|
@@ -76,10 +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
|
-
if (authorizationValue) {
|
|
82
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
79
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
80
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
|
|
@@ -123,10 +121,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
123
121
|
// http bearer authentication required
|
|
124
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
123
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (authorizationValue) {
|
|
129
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
126
|
}
|
|
131
127
|
|
|
132
128
|
|
|
@@ -170,10 +166,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
170
166
|
// http bearer authentication required
|
|
171
167
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
172
168
|
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
if (authorizationValue) {
|
|
176
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
169
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
170
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
177
171
|
}
|
|
178
172
|
|
|
179
173
|
|
|
@@ -248,10 +242,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
248
242
|
localVarQueryParameter['filters'] = filters;
|
|
249
243
|
}
|
|
250
244
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
if (authorizationValue) {
|
|
254
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
245
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
246
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
255
247
|
}
|
|
256
248
|
|
|
257
249
|
|
|
@@ -298,10 +290,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
298
290
|
// http bearer authentication required
|
|
299
291
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
300
292
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
if (authorizationValue) {
|
|
304
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
293
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
294
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
305
295
|
}
|
|
306
296
|
|
|
307
297
|
|
|
@@ -347,10 +337,8 @@ export const DocxTemplatesApiAxiosParamCreator = function (configuration?: Confi
|
|
|
347
337
|
// http bearer authentication required
|
|
348
338
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
349
339
|
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
if (authorizationValue) {
|
|
353
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
340
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
341
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
354
342
|
}
|
|
355
343
|
|
|
356
344
|
|
package/api/layouts-api.ts
CHANGED
|
@@ -73,10 +73,8 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
73
73
|
// http bearer authentication required
|
|
74
74
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
75
75
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
if (authorizationValue) {
|
|
79
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
76
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
77
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
80
78
|
}
|
|
81
79
|
|
|
82
80
|
|
|
@@ -123,10 +121,8 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
123
121
|
// http bearer authentication required
|
|
124
122
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
125
123
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
if (authorizationValue) {
|
|
129
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
124
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
125
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
130
126
|
}
|
|
131
127
|
|
|
132
128
|
|
|
@@ -177,10 +173,8 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
177
173
|
localVarQueryParameter['id'] = id2;
|
|
178
174
|
}
|
|
179
175
|
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
if (authorizationValue) {
|
|
183
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
176
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
177
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
184
178
|
}
|
|
185
179
|
|
|
186
180
|
|
|
@@ -255,10 +249,8 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
255
249
|
localVarQueryParameter['filters'] = filters;
|
|
256
250
|
}
|
|
257
251
|
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
if (authorizationValue) {
|
|
261
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
252
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
253
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
262
254
|
}
|
|
263
255
|
|
|
264
256
|
|
|
@@ -305,10 +297,8 @@ export const LayoutsApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
305
297
|
// http bearer authentication required
|
|
306
298
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
307
299
|
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
if (authorizationValue) {
|
|
311
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
300
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
301
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
312
302
|
}
|
|
313
303
|
|
|
314
304
|
|
|
@@ -76,10 +76,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
76
76
|
// http bearer authentication required
|
|
77
77
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
if (authorizationValue) {
|
|
82
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
79
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
80
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
83
81
|
}
|
|
84
82
|
|
|
85
83
|
|
|
@@ -132,10 +130,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
132
130
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
133
131
|
}
|
|
134
132
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
if (authorizationValue) {
|
|
138
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
133
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
134
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
139
135
|
}
|
|
140
136
|
|
|
141
137
|
|
|
@@ -183,10 +179,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
183
179
|
// http bearer authentication required
|
|
184
180
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
185
181
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
if (authorizationValue) {
|
|
189
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
182
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
183
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
190
184
|
}
|
|
191
185
|
|
|
192
186
|
|
|
@@ -261,10 +255,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
261
255
|
localVarQueryParameter['filters'] = filters;
|
|
262
256
|
}
|
|
263
257
|
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
if (authorizationValue) {
|
|
267
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
258
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
259
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
268
260
|
}
|
|
269
261
|
|
|
270
262
|
|
|
@@ -343,10 +335,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
343
335
|
localVarQueryParameter['filters'] = filters;
|
|
344
336
|
}
|
|
345
337
|
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
if (authorizationValue) {
|
|
349
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
338
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
339
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
350
340
|
}
|
|
351
341
|
|
|
352
342
|
|
|
@@ -393,10 +383,8 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
|
|
|
393
383
|
// http bearer authentication required
|
|
394
384
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
395
385
|
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
if (authorizationValue) {
|
|
399
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
386
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
387
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
400
388
|
}
|
|
401
389
|
|
|
402
390
|
|
|
@@ -65,10 +65,8 @@ export const SearchKeywordsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
65
65
|
localVarQueryParameter['searchText'] = searchText;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
if (authorizationValue) {
|
|
71
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
68
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
69
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
72
70
|
}
|
|
73
71
|
|
|
74
72
|
|
|
@@ -93,10 +93,8 @@ export const SearchableDocumentOwnersApiAxiosParamCreator = function (configurat
|
|
|
93
93
|
localVarQueryParameter['filters'] = filters;
|
|
94
94
|
}
|
|
95
95
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
if (authorizationValue) {
|
|
99
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
96
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
97
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
|
|
@@ -77,10 +77,8 @@ export const SearchableDocumentsApiAxiosParamCreator = function (configuration?:
|
|
|
77
77
|
localVarQueryParameter['product'] = product;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
if (authorizationValue) {
|
|
83
|
-
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
80
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
81
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
|
package/common.ts
CHANGED
|
@@ -131,10 +131,9 @@ 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
|
-
|
|
135
|
-
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH): Promise<R> => {
|
|
134
|
+
return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
136
135
|
const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url};
|
|
137
|
-
return axios.request<T, R>(axiosRequestArgs)
|
|
136
|
+
return axios.request<T, R>(axiosRequestArgs);
|
|
138
137
|
};
|
|
139
138
|
}
|
|
140
139
|
|
|
@@ -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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
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, {}>>;
|
|
385
385
|
}
|