@emilgroup/document-sdk-node 1.49.1-beta.4 → 1.49.1-beta.40
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 +40 -15
- package/api/documents-api.ts +88 -33
- package/api/docx-templates-api.ts +48 -18
- package/api/health-api.ts +1 -1
- package/api/layouts-api.ts +40 -15
- package/api/product-documents-api.ts +48 -18
- package/api/search-keywords-api.ts +8 -3
- package/api/searchable-document-owners-api.ts +8 -3
- package/api/searchable-documents-api.ts +8 -3
- package/base.ts +4 -0
- package/common.ts +3 -2
- package/dist/api/document-templates-api.d.ts +5 -5
- package/dist/api/document-templates-api.js +67 -38
- package/dist/api/documents-api.d.ts +11 -11
- package/dist/api/documents-api.js +153 -85
- package/dist/api/docx-templates-api.d.ts +6 -6
- package/dist/api/docx-templates-api.js +86 -47
- package/dist/api/health-api.d.ts +1 -1
- package/dist/api/health-api.js +1 -1
- package/dist/api/layouts-api.d.ts +5 -5
- package/dist/api/layouts-api.js +67 -38
- package/dist/api/product-documents-api.d.ts +6 -6
- package/dist/api/product-documents-api.js +78 -45
- package/dist/api/search-keywords-api.d.ts +1 -1
- package/dist/api/search-keywords-api.js +11 -7
- package/dist/api/searchable-document-owners-api.d.ts +1 -1
- package/dist/api/searchable-document-owners-api.js +11 -7
- package/dist/api/searchable-documents-api.d.ts +1 -1
- package/dist/api/searchable-documents-api.js +11 -7
- package/dist/base.d.ts +1 -0
- package/dist/base.js +3 -0
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -0
- package/package.json +2 -2
|
@@ -107,9 +107,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
createDocument: function (createDocumentRequestDto, authorization, options) {
|
|
108
108
|
if (options === void 0) { options = {}; }
|
|
109
109
|
return __awaiter(_this, void 0, void 0, function () {
|
|
110
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
111
|
+
var _a;
|
|
112
|
+
return __generator(this, function (_b) {
|
|
113
|
+
switch (_b.label) {
|
|
113
114
|
case 0:
|
|
114
115
|
// verify required parameter 'createDocumentRequestDto' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('createDocument', 'createDocumentRequestDto', createDocumentRequestDto);
|
|
@@ -124,13 +125,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
124
125
|
localVarQueryParameter = {};
|
|
125
126
|
// authentication bearer required
|
|
126
127
|
// http bearer authentication required
|
|
127
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
128
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
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
|
+
];
|
|
128
132
|
case 1:
|
|
129
133
|
// authentication bearer required
|
|
130
134
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
135
|
+
_b.sent();
|
|
136
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
137
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
138
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
139
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
140
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
134
141
|
}
|
|
135
142
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
136
143
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -156,9 +163,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
156
163
|
createPresignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
157
164
|
if (options === void 0) { options = {}; }
|
|
158
165
|
return __awaiter(_this, void 0, void 0, function () {
|
|
159
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
160
|
-
|
|
161
|
-
|
|
166
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
167
|
+
var _a;
|
|
168
|
+
return __generator(this, function (_b) {
|
|
169
|
+
switch (_b.label) {
|
|
162
170
|
case 0:
|
|
163
171
|
// verify required parameter 'createPresignedPostRequestDto' is not null or undefined
|
|
164
172
|
(0, common_1.assertParamExists)('createPresignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
|
|
@@ -173,13 +181,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
173
181
|
localVarQueryParameter = {};
|
|
174
182
|
// authentication bearer required
|
|
175
183
|
// http bearer authentication required
|
|
176
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
184
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
185
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
186
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
187
|
+
];
|
|
177
188
|
case 1:
|
|
178
189
|
// authentication bearer required
|
|
179
190
|
// http bearer authentication required
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
191
|
+
_b.sent();
|
|
192
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
193
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
194
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
195
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
196
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
183
197
|
}
|
|
184
198
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
185
199
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -205,9 +219,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
205
219
|
createQrBillDocument: function (createQrBillDocumentRequestDto, authorization, options) {
|
|
206
220
|
if (options === void 0) { options = {}; }
|
|
207
221
|
return __awaiter(_this, void 0, void 0, function () {
|
|
208
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
209
|
-
|
|
210
|
-
|
|
222
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
223
|
+
var _a;
|
|
224
|
+
return __generator(this, function (_b) {
|
|
225
|
+
switch (_b.label) {
|
|
211
226
|
case 0:
|
|
212
227
|
// verify required parameter 'createQrBillDocumentRequestDto' is not null or undefined
|
|
213
228
|
(0, common_1.assertParamExists)('createQrBillDocument', 'createQrBillDocumentRequestDto', createQrBillDocumentRequestDto);
|
|
@@ -222,13 +237,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
222
237
|
localVarQueryParameter = {};
|
|
223
238
|
// authentication bearer required
|
|
224
239
|
// http bearer authentication required
|
|
225
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
240
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
241
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
242
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
243
|
+
];
|
|
226
244
|
case 1:
|
|
227
245
|
// authentication bearer required
|
|
228
246
|
// http bearer authentication required
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
247
|
+
_b.sent();
|
|
248
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
249
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
250
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
251
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
252
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
232
253
|
}
|
|
233
254
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
234
255
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -254,9 +275,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
254
275
|
deleteDocument: function (code, authorization, options) {
|
|
255
276
|
if (options === void 0) { options = {}; }
|
|
256
277
|
return __awaiter(_this, void 0, void 0, function () {
|
|
257
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
258
|
-
|
|
259
|
-
|
|
278
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
279
|
+
var _a;
|
|
280
|
+
return __generator(this, function (_b) {
|
|
281
|
+
switch (_b.label) {
|
|
260
282
|
case 0:
|
|
261
283
|
// verify required parameter 'code' is not null or undefined
|
|
262
284
|
(0, common_1.assertParamExists)('deleteDocument', 'code', code);
|
|
@@ -272,13 +294,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
272
294
|
localVarQueryParameter = {};
|
|
273
295
|
// authentication bearer required
|
|
274
296
|
// http bearer authentication required
|
|
275
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
297
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
298
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
299
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
300
|
+
];
|
|
276
301
|
case 1:
|
|
277
302
|
// authentication bearer required
|
|
278
303
|
// http bearer authentication required
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
304
|
+
_b.sent();
|
|
305
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
306
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
307
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
308
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
309
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
282
310
|
}
|
|
283
311
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
284
312
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -303,9 +331,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
303
331
|
exportDocument: function (code, exportDocumentRequestDto, authorization, options) {
|
|
304
332
|
if (options === void 0) { options = {}; }
|
|
305
333
|
return __awaiter(_this, void 0, void 0, function () {
|
|
306
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
307
|
-
|
|
308
|
-
|
|
334
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
335
|
+
var _a;
|
|
336
|
+
return __generator(this, function (_b) {
|
|
337
|
+
switch (_b.label) {
|
|
309
338
|
case 0:
|
|
310
339
|
// verify required parameter 'code' is not null or undefined
|
|
311
340
|
(0, common_1.assertParamExists)('exportDocument', 'code', code);
|
|
@@ -323,13 +352,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
323
352
|
localVarQueryParameter = {};
|
|
324
353
|
// authentication bearer required
|
|
325
354
|
// http bearer authentication required
|
|
326
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
355
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
356
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
357
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
358
|
+
];
|
|
327
359
|
case 1:
|
|
328
360
|
// authentication bearer required
|
|
329
361
|
// http bearer authentication required
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
362
|
+
_b.sent();
|
|
363
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
364
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
365
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
366
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
367
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
333
368
|
}
|
|
334
369
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
335
370
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -356,9 +391,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
356
391
|
getDocumentDownloadUrl: function (code, authorization, contentDisposition, options) {
|
|
357
392
|
if (options === void 0) { options = {}; }
|
|
358
393
|
return __awaiter(_this, void 0, void 0, function () {
|
|
359
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
360
|
-
|
|
361
|
-
|
|
394
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
395
|
+
var _a;
|
|
396
|
+
return __generator(this, function (_b) {
|
|
397
|
+
switch (_b.label) {
|
|
362
398
|
case 0:
|
|
363
399
|
// verify required parameter 'code' is not null or undefined
|
|
364
400
|
(0, common_1.assertParamExists)('getDocumentDownloadUrl', 'code', code);
|
|
@@ -378,12 +414,15 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
378
414
|
case 1:
|
|
379
415
|
// authentication bearer required
|
|
380
416
|
// http bearer authentication required
|
|
381
|
-
|
|
417
|
+
_b.sent();
|
|
382
418
|
if (contentDisposition !== undefined) {
|
|
383
419
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
384
420
|
}
|
|
385
|
-
|
|
386
|
-
|
|
421
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
422
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
423
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
424
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
425
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
387
426
|
}
|
|
388
427
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
389
428
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -408,9 +447,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
408
447
|
getSignedS3keyUrl: function (s3Key, authorization, contentDisposition, options) {
|
|
409
448
|
if (options === void 0) { options = {}; }
|
|
410
449
|
return __awaiter(_this, void 0, void 0, function () {
|
|
411
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
412
|
-
|
|
413
|
-
|
|
450
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
451
|
+
var _a;
|
|
452
|
+
return __generator(this, function (_b) {
|
|
453
|
+
switch (_b.label) {
|
|
414
454
|
case 0:
|
|
415
455
|
// verify required parameter 's3Key' is not null or undefined
|
|
416
456
|
(0, common_1.assertParamExists)('getSignedS3keyUrl', 's3Key', s3Key);
|
|
@@ -429,15 +469,18 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
429
469
|
case 1:
|
|
430
470
|
// authentication bearer required
|
|
431
471
|
// http bearer authentication required
|
|
432
|
-
|
|
472
|
+
_b.sent();
|
|
433
473
|
if (s3Key !== undefined) {
|
|
434
474
|
localVarQueryParameter['s3Key'] = s3Key;
|
|
435
475
|
}
|
|
436
476
|
if (contentDisposition !== undefined) {
|
|
437
477
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
438
478
|
}
|
|
439
|
-
|
|
440
|
-
|
|
479
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
480
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
481
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
482
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
483
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
441
484
|
}
|
|
442
485
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
443
486
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -467,9 +510,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
467
510
|
listDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
468
511
|
if (options === void 0) { options = {}; }
|
|
469
512
|
return __awaiter(_this, void 0, void 0, function () {
|
|
470
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
471
|
-
|
|
472
|
-
|
|
513
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
514
|
+
var _a;
|
|
515
|
+
return __generator(this, function (_b) {
|
|
516
|
+
switch (_b.label) {
|
|
473
517
|
case 0:
|
|
474
518
|
localVarPath = "/documentservice/v1/documents";
|
|
475
519
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -486,7 +530,7 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
486
530
|
case 1:
|
|
487
531
|
// authentication bearer required
|
|
488
532
|
// http bearer authentication required
|
|
489
|
-
|
|
533
|
+
_b.sent();
|
|
490
534
|
if (pageSize !== undefined) {
|
|
491
535
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
492
536
|
}
|
|
@@ -508,8 +552,11 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
508
552
|
if (filters !== undefined) {
|
|
509
553
|
localVarQueryParameter['filters'] = filters;
|
|
510
554
|
}
|
|
511
|
-
|
|
512
|
-
|
|
555
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
556
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
557
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
558
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
559
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
513
560
|
}
|
|
514
561
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
515
562
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -533,9 +580,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
533
580
|
mergeDocuments: function (mergeDocumentsRequestDto, authorization, options) {
|
|
534
581
|
if (options === void 0) { options = {}; }
|
|
535
582
|
return __awaiter(_this, void 0, void 0, function () {
|
|
536
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
537
|
-
|
|
538
|
-
|
|
583
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
584
|
+
var _a;
|
|
585
|
+
return __generator(this, function (_b) {
|
|
586
|
+
switch (_b.label) {
|
|
539
587
|
case 0:
|
|
540
588
|
// verify required parameter 'mergeDocumentsRequestDto' is not null or undefined
|
|
541
589
|
(0, common_1.assertParamExists)('mergeDocuments', 'mergeDocumentsRequestDto', mergeDocumentsRequestDto);
|
|
@@ -550,13 +598,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
550
598
|
localVarQueryParameter = {};
|
|
551
599
|
// authentication bearer required
|
|
552
600
|
// http bearer authentication required
|
|
553
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
601
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
602
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
603
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
604
|
+
];
|
|
554
605
|
case 1:
|
|
555
606
|
// authentication bearer required
|
|
556
607
|
// http bearer authentication required
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
608
|
+
_b.sent();
|
|
609
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
610
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
611
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
612
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
613
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
560
614
|
}
|
|
561
615
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
562
616
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -582,9 +636,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
582
636
|
saveExternalDocument: function (saveExternalDocumentRequestDto, authorization, options) {
|
|
583
637
|
if (options === void 0) { options = {}; }
|
|
584
638
|
return __awaiter(_this, void 0, void 0, function () {
|
|
585
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
586
|
-
|
|
587
|
-
|
|
639
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
640
|
+
var _a;
|
|
641
|
+
return __generator(this, function (_b) {
|
|
642
|
+
switch (_b.label) {
|
|
588
643
|
case 0:
|
|
589
644
|
// verify required parameter 'saveExternalDocumentRequestDto' is not null or undefined
|
|
590
645
|
(0, common_1.assertParamExists)('saveExternalDocument', 'saveExternalDocumentRequestDto', saveExternalDocumentRequestDto);
|
|
@@ -599,13 +654,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
599
654
|
localVarQueryParameter = {};
|
|
600
655
|
// authentication bearer required
|
|
601
656
|
// http bearer authentication required
|
|
602
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
657
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
658
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
659
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
660
|
+
];
|
|
603
661
|
case 1:
|
|
604
662
|
// authentication bearer required
|
|
605
663
|
// http bearer authentication required
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
664
|
+
_b.sent();
|
|
665
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
666
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
667
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
668
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
669
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
609
670
|
}
|
|
610
671
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
611
672
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -632,9 +693,10 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
632
693
|
updateDocument: function (code, updateDocumentRequestDto, authorization, options) {
|
|
633
694
|
if (options === void 0) { options = {}; }
|
|
634
695
|
return __awaiter(_this, void 0, void 0, function () {
|
|
635
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
636
|
-
|
|
637
|
-
|
|
696
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
697
|
+
var _a;
|
|
698
|
+
return __generator(this, function (_b) {
|
|
699
|
+
switch (_b.label) {
|
|
638
700
|
case 0:
|
|
639
701
|
// verify required parameter 'code' is not null or undefined
|
|
640
702
|
(0, common_1.assertParamExists)('updateDocument', 'code', code);
|
|
@@ -652,13 +714,19 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
652
714
|
localVarQueryParameter = {};
|
|
653
715
|
// authentication bearer required
|
|
654
716
|
// http bearer authentication required
|
|
655
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
717
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
718
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
719
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
720
|
+
];
|
|
656
721
|
case 1:
|
|
657
722
|
// authentication bearer required
|
|
658
723
|
// http bearer authentication required
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
724
|
+
_b.sent();
|
|
725
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
726
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
727
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
728
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
729
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
662
730
|
}
|
|
663
731
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
664
732
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -1089,7 +1157,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1089
1157
|
*/
|
|
1090
1158
|
DocumentsApi.prototype.createDocument = function (requestParameters, options) {
|
|
1091
1159
|
var _this = this;
|
|
1092
|
-
return (0, exports.DocumentsApiFp)(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1160
|
+
return (0, exports.DocumentsApiFp)(this.configuration).createDocument(requestParameters.createDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1093
1161
|
};
|
|
1094
1162
|
/**
|
|
1095
1163
|
* This will create a URL that allows user upload its documents in Database.The URL will be expires between 5 minutes to 7 days. **Required Permissions** \"document-management.documents.create\"
|
|
@@ -1101,7 +1169,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1101
1169
|
*/
|
|
1102
1170
|
DocumentsApi.prototype.createPresignedPost = function (requestParameters, options) {
|
|
1103
1171
|
var _this = this;
|
|
1104
|
-
return (0, exports.DocumentsApiFp)(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1172
|
+
return (0, exports.DocumentsApiFp)(this.configuration).createPresignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1105
1173
|
};
|
|
1106
1174
|
/**
|
|
1107
1175
|
* Creates a Swiss QR bill PDF document **Required Permissions** \"document-management.documents.create\"
|
|
@@ -1113,7 +1181,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1113
1181
|
*/
|
|
1114
1182
|
DocumentsApi.prototype.createQrBillDocument = function (requestParameters, options) {
|
|
1115
1183
|
var _this = this;
|
|
1116
|
-
return (0, exports.DocumentsApiFp)(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1184
|
+
return (0, exports.DocumentsApiFp)(this.configuration).createQrBillDocument(requestParameters.createQrBillDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1117
1185
|
};
|
|
1118
1186
|
/**
|
|
1119
1187
|
* Permanently deletes the document. Supply the unique code that was returned when you created the document and this will delete it. **Required Permissions** \"document-management.documents.delete\"
|
|
@@ -1125,7 +1193,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1125
1193
|
*/
|
|
1126
1194
|
DocumentsApi.prototype.deleteDocument = function (requestParameters, options) {
|
|
1127
1195
|
var _this = this;
|
|
1128
|
-
return (0, exports.DocumentsApiFp)(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1196
|
+
return (0, exports.DocumentsApiFp)(this.configuration).deleteDocument(requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1129
1197
|
};
|
|
1130
1198
|
/**
|
|
1131
1199
|
* This will fetch an internal document and export it to a third party API **Required Permissions** \"document-management.documents.create\"
|
|
@@ -1137,7 +1205,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1137
1205
|
*/
|
|
1138
1206
|
DocumentsApi.prototype.exportDocument = function (requestParameters, options) {
|
|
1139
1207
|
var _this = this;
|
|
1140
|
-
return (0, exports.DocumentsApiFp)(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1208
|
+
return (0, exports.DocumentsApiFp)(this.configuration).exportDocument(requestParameters.code, requestParameters.exportDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1141
1209
|
};
|
|
1142
1210
|
/**
|
|
1143
1211
|
* This will return a presigned URL to download the document. **Required Permissions** \"document-management.documents.view\"
|
|
@@ -1149,7 +1217,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1149
1217
|
*/
|
|
1150
1218
|
DocumentsApi.prototype.getDocumentDownloadUrl = function (requestParameters, options) {
|
|
1151
1219
|
var _this = this;
|
|
1152
|
-
return (0, exports.DocumentsApiFp)(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1220
|
+
return (0, exports.DocumentsApiFp)(this.configuration).getDocumentDownloadUrl(requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1153
1221
|
};
|
|
1154
1222
|
/**
|
|
1155
1223
|
* This will return a presigned URL for a random S3 key
|
|
@@ -1161,7 +1229,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1161
1229
|
*/
|
|
1162
1230
|
DocumentsApi.prototype.getSignedS3keyUrl = function (requestParameters, options) {
|
|
1163
1231
|
var _this = this;
|
|
1164
|
-
return (0, exports.DocumentsApiFp)(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, requestParameters.contentDisposition, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1232
|
+
return (0, exports.DocumentsApiFp)(this.configuration).getSignedS3keyUrl(requestParameters.s3Key, requestParameters.authorization, requestParameters.contentDisposition, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1165
1233
|
};
|
|
1166
1234
|
/**
|
|
1167
1235
|
* Returns a list of documents you have previously created. The documents are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.documents.view\"
|
|
@@ -1174,7 +1242,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1174
1242
|
DocumentsApi.prototype.listDocuments = function (requestParameters, options) {
|
|
1175
1243
|
var _this = this;
|
|
1176
1244
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
1177
|
-
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1245
|
+
return (0, exports.DocumentsApiFp)(this.configuration).listDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1178
1246
|
};
|
|
1179
1247
|
/**
|
|
1180
1248
|
* Merges 2-5 PDF documents into a single PDF **Required Permissions** \"document-management.documents.delete\"
|
|
@@ -1186,7 +1254,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1186
1254
|
*/
|
|
1187
1255
|
DocumentsApi.prototype.mergeDocuments = function (requestParameters, options) {
|
|
1188
1256
|
var _this = this;
|
|
1189
|
-
return (0, exports.DocumentsApiFp)(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1257
|
+
return (0, exports.DocumentsApiFp)(this.configuration).mergeDocuments(requestParameters.mergeDocumentsRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1190
1258
|
};
|
|
1191
1259
|
/**
|
|
1192
1260
|
* This will save an external document in the database and return it. This is useful if one needs to call a third party API and store the document in EIS and then, for instance, send it to a client. **Required Permissions** \"document-management.documents.create\"
|
|
@@ -1198,7 +1266,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1198
1266
|
*/
|
|
1199
1267
|
DocumentsApi.prototype.saveExternalDocument = function (requestParameters, options) {
|
|
1200
1268
|
var _this = this;
|
|
1201
|
-
return (0, exports.DocumentsApiFp)(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1269
|
+
return (0, exports.DocumentsApiFp)(this.configuration).saveExternalDocument(requestParameters.saveExternalDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1202
1270
|
};
|
|
1203
1271
|
/**
|
|
1204
1272
|
* Updates the specified document by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"document-management.documents.update\"
|
|
@@ -1210,7 +1278,7 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
1210
1278
|
*/
|
|
1211
1279
|
DocumentsApi.prototype.updateDocument = function (requestParameters, options) {
|
|
1212
1280
|
var _this = this;
|
|
1213
|
-
return (0, exports.DocumentsApiFp)(this.configuration).updateDocument(requestParameters.code, requestParameters.updateDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1281
|
+
return (0, exports.DocumentsApiFp)(this.configuration).updateDocument(requestParameters.code, requestParameters.updateDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1214
1282
|
};
|
|
1215
1283
|
return DocumentsApi;
|
|
1216
1284
|
}(base_1.BaseAPI));
|
|
@@ -392,7 +392,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
|
|
|
392
392
|
* @throws {RequiredError}
|
|
393
393
|
* @memberof DocxTemplatesApi
|
|
394
394
|
*/
|
|
395
|
-
deleteDocxTemplate(requestParameters: DocxTemplatesApiDeleteDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}>>;
|
|
395
|
+
deleteDocxTemplate(requestParameters: DocxTemplatesApiDeleteDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<DeleteResponseClass, any, {}, any>>;
|
|
396
396
|
/**
|
|
397
397
|
* Get a pre-signed download url for the given docx template. **Required Permissions** \"document-management.docx-templates.view\"
|
|
398
398
|
* @summary Get pre-signed url for downloading docx template
|
|
@@ -401,7 +401,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
|
|
|
401
401
|
* @throws {RequiredError}
|
|
402
402
|
* @memberof DocxTemplatesApi
|
|
403
403
|
*/
|
|
404
|
-
downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocxTemplateDownloadUrlResponseClass, any, {}>>;
|
|
404
|
+
downloadDocxTemplate(requestParameters: DocxTemplatesApiDownloadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocxTemplateDownloadUrlResponseClass, any, {}, any>>;
|
|
405
405
|
/**
|
|
406
406
|
* Get a docx template. **Required Permissions** \"document-management.docx-templates.view\"
|
|
407
407
|
* @summary Retrieve the docx template
|
|
@@ -410,7 +410,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
|
|
|
410
410
|
* @throws {RequiredError}
|
|
411
411
|
* @memberof DocxTemplatesApi
|
|
412
412
|
*/
|
|
413
|
-
getDocxTemplate(requestParameters: DocxTemplatesApiGetDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocxTemplateResponseClass, any, {}>>;
|
|
413
|
+
getDocxTemplate(requestParameters: DocxTemplatesApiGetDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetDocxTemplateResponseClass, any, {}, any>>;
|
|
414
414
|
/**
|
|
415
415
|
* Returns a list of docx templates you have previously created. The docx templates are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation. **Required Permissions** \"document-management.docx-templates.view\"
|
|
416
416
|
* @summary List docx templates
|
|
@@ -419,7 +419,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
|
|
|
419
419
|
* @throws {RequiredError}
|
|
420
420
|
* @memberof DocxTemplatesApi
|
|
421
421
|
*/
|
|
422
|
-
listDocxTemplates(requestParameters?: DocxTemplatesApiListDocxTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocxTemplatesResponseClass, any, {}>>;
|
|
422
|
+
listDocxTemplates(requestParameters?: DocxTemplatesApiListDocxTemplatesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListDocxTemplatesResponseClass, any, {}, any>>;
|
|
423
423
|
/**
|
|
424
424
|
* Updates a docx template metadata. **Required Permissions** \"document-management.docx-templates.update\"
|
|
425
425
|
* @summary Update the docx template
|
|
@@ -428,7 +428,7 @@ export declare class DocxTemplatesApi extends BaseAPI {
|
|
|
428
428
|
* @throws {RequiredError}
|
|
429
429
|
* @memberof DocxTemplatesApi
|
|
430
430
|
*/
|
|
431
|
-
updateDocxTemplate(requestParameters: DocxTemplatesApiUpdateDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocxTemplateResponseClass, any, {}>>;
|
|
431
|
+
updateDocxTemplate(requestParameters: DocxTemplatesApiUpdateDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<UpdateDocxTemplateResponseClass, any, {}, any>>;
|
|
432
432
|
/**
|
|
433
433
|
* Upload a docx template via a presigned Url. **Required Permissions** \"document-management.docx-templates.create\"
|
|
434
434
|
* @summary Upload a docx template.
|
|
@@ -437,5 +437,5 @@ export declare class DocxTemplatesApi extends BaseAPI {
|
|
|
437
437
|
* @throws {RequiredError}
|
|
438
438
|
* @memberof DocxTemplatesApi
|
|
439
439
|
*/
|
|
440
|
-
uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
|
|
440
|
+
uploadDocxTemplate(requestParameters: DocxTemplatesApiUploadDocxTemplateRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}, any>>;
|
|
441
441
|
}
|