@emilgroup/document-sdk-node 1.49.1-beta.34 → 1.49.1-beta.35
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
|
@@ -489,7 +489,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
489
489
|
* @throws {RequiredError}
|
|
490
490
|
* @memberof ProductDocumentsApi
|
|
491
491
|
*/
|
|
492
|
-
deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}>>;
|
|
492
|
+
deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, any, {}, any>>;
|
|
493
493
|
/**
|
|
494
494
|
* Get a pre-signed download url for the given product document. **Required Permissions** \"document-management.documents.view\"
|
|
495
495
|
* @summary Get pre-signed url for downloading product document
|
|
@@ -498,7 +498,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
498
498
|
* @throws {RequiredError}
|
|
499
499
|
* @memberof ProductDocumentsApi
|
|
500
500
|
*/
|
|
501
|
-
downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, any, {}>>;
|
|
501
|
+
downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, any, {}, any>>;
|
|
502
502
|
/**
|
|
503
503
|
* Get a product document. **Required Permissions** \"document-management.documents.view\"
|
|
504
504
|
* @summary Retrieve the product document
|
|
@@ -507,7 +507,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
507
507
|
* @throws {RequiredError}
|
|
508
508
|
* @memberof ProductDocumentsApi
|
|
509
509
|
*/
|
|
510
|
-
getProductDocument(requestParameters: ProductDocumentsApiGetProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentResponseClass, any, {}>>;
|
|
510
|
+
getProductDocument(requestParameters: ProductDocumentsApiGetProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentResponseClass, any, {}, any>>;
|
|
511
511
|
/**
|
|
512
512
|
* Returns a list of product documents you have previously created. The product 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\"
|
|
513
513
|
* @summary List product documents
|
|
@@ -516,7 +516,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
516
516
|
* @throws {RequiredError}
|
|
517
517
|
* @memberof ProductDocumentsApi
|
|
518
518
|
*/
|
|
519
|
-
listProductDocuments(requestParameters?: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
|
|
519
|
+
listProductDocuments(requestParameters?: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}, any>>;
|
|
520
520
|
/**
|
|
521
521
|
* Returns a list of product documents you have previously created. The product 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\"
|
|
522
522
|
* @summary List product documents
|
|
@@ -525,7 +525,7 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
525
525
|
* @throws {RequiredError}
|
|
526
526
|
* @memberof ProductDocumentsApi
|
|
527
527
|
*/
|
|
528
|
-
listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}>>;
|
|
528
|
+
listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, any, {}, any>>;
|
|
529
529
|
/**
|
|
530
530
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
531
531
|
* @summary Create the product document
|
|
@@ -534,5 +534,5 @@ export declare class ProductDocumentsApi extends BaseAPI {
|
|
|
534
534
|
* @throws {RequiredError}
|
|
535
535
|
* @memberof ProductDocumentsApi
|
|
536
536
|
*/
|
|
537
|
-
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
|
|
537
|
+
uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}, any>>;
|
|
538
538
|
}
|
|
@@ -108,9 +108,10 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
108
108
|
deleteProductDocument: function (code, productSlug, authorization, options) {
|
|
109
109
|
if (options === void 0) { options = {}; }
|
|
110
110
|
return __awaiter(_this, void 0, void 0, function () {
|
|
111
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
112
|
-
|
|
113
|
-
|
|
111
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
112
|
+
var _a;
|
|
113
|
+
return __generator(this, function (_b) {
|
|
114
|
+
switch (_b.label) {
|
|
114
115
|
case 0:
|
|
115
116
|
// verify required parameter 'code' is not null or undefined
|
|
116
117
|
(0, common_1.assertParamExists)('deleteProductDocument', 'code', code);
|
|
@@ -129,13 +130,19 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
129
130
|
localVarQueryParameter = {};
|
|
130
131
|
// authentication bearer required
|
|
131
132
|
// http bearer authentication required
|
|
132
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
133
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
134
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
135
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
136
|
+
];
|
|
133
137
|
case 1:
|
|
134
138
|
// authentication bearer required
|
|
135
139
|
// http bearer authentication required
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
140
|
+
_b.sent();
|
|
141
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
142
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
143
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
144
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
145
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
139
146
|
}
|
|
140
147
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
141
148
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -161,9 +168,10 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
161
168
|
downloadProductDocument: function (productSlug, code, authorization, contentDisposition, options) {
|
|
162
169
|
if (options === void 0) { options = {}; }
|
|
163
170
|
return __awaiter(_this, void 0, void 0, function () {
|
|
164
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
|
-
|
|
166
|
-
|
|
171
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
172
|
+
var _a;
|
|
173
|
+
return __generator(this, function (_b) {
|
|
174
|
+
switch (_b.label) {
|
|
167
175
|
case 0:
|
|
168
176
|
// verify required parameter 'productSlug' is not null or undefined
|
|
169
177
|
(0, common_1.assertParamExists)('downloadProductDocument', 'productSlug', productSlug);
|
|
@@ -186,12 +194,15 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
186
194
|
case 1:
|
|
187
195
|
// authentication bearer required
|
|
188
196
|
// http bearer authentication required
|
|
189
|
-
|
|
197
|
+
_b.sent();
|
|
190
198
|
if (contentDisposition !== undefined) {
|
|
191
199
|
localVarQueryParameter['contentDisposition'] = contentDisposition;
|
|
192
200
|
}
|
|
193
|
-
|
|
194
|
-
|
|
201
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
202
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
203
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
204
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
205
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
195
206
|
}
|
|
196
207
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
197
208
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -216,9 +227,10 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
216
227
|
getProductDocument: function (productSlug, code, authorization, options) {
|
|
217
228
|
if (options === void 0) { options = {}; }
|
|
218
229
|
return __awaiter(_this, void 0, void 0, function () {
|
|
219
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
220
|
-
|
|
221
|
-
|
|
230
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
231
|
+
var _a;
|
|
232
|
+
return __generator(this, function (_b) {
|
|
233
|
+
switch (_b.label) {
|
|
222
234
|
case 0:
|
|
223
235
|
// verify required parameter 'productSlug' is not null or undefined
|
|
224
236
|
(0, common_1.assertParamExists)('getProductDocument', 'productSlug', productSlug);
|
|
@@ -237,13 +249,19 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
237
249
|
localVarQueryParameter = {};
|
|
238
250
|
// authentication bearer required
|
|
239
251
|
// http bearer authentication required
|
|
240
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
252
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
253
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
254
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
255
|
+
];
|
|
241
256
|
case 1:
|
|
242
257
|
// authentication bearer required
|
|
243
258
|
// http bearer authentication required
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
259
|
+
_b.sent();
|
|
260
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
261
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
262
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
263
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
264
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
247
265
|
}
|
|
248
266
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
249
267
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -273,9 +291,10 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
273
291
|
listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
274
292
|
if (options === void 0) { options = {}; }
|
|
275
293
|
return __awaiter(_this, void 0, void 0, function () {
|
|
276
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
277
|
-
|
|
278
|
-
|
|
294
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
295
|
+
var _a;
|
|
296
|
+
return __generator(this, function (_b) {
|
|
297
|
+
switch (_b.label) {
|
|
279
298
|
case 0:
|
|
280
299
|
localVarPath = "/documentservice/v1/product-documents";
|
|
281
300
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -292,7 +311,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
292
311
|
case 1:
|
|
293
312
|
// authentication bearer required
|
|
294
313
|
// http bearer authentication required
|
|
295
|
-
|
|
314
|
+
_b.sent();
|
|
296
315
|
if (pageSize !== undefined) {
|
|
297
316
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
298
317
|
}
|
|
@@ -314,8 +333,11 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
314
333
|
if (filters !== undefined) {
|
|
315
334
|
localVarQueryParameter['filters'] = filters;
|
|
316
335
|
}
|
|
317
|
-
|
|
318
|
-
|
|
336
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
337
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
338
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
339
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
340
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
319
341
|
}
|
|
320
342
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
321
343
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -346,9 +368,10 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
346
368
|
listProductDocumentsByProduct: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
347
369
|
if (options === void 0) { options = {}; }
|
|
348
370
|
return __awaiter(_this, void 0, void 0, function () {
|
|
349
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
350
|
-
|
|
351
|
-
|
|
371
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
372
|
+
var _a;
|
|
373
|
+
return __generator(this, function (_b) {
|
|
374
|
+
switch (_b.label) {
|
|
352
375
|
case 0:
|
|
353
376
|
// verify required parameter 'productSlug' is not null or undefined
|
|
354
377
|
(0, common_1.assertParamExists)('listProductDocumentsByProduct', 'productSlug', productSlug);
|
|
@@ -368,7 +391,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
368
391
|
case 1:
|
|
369
392
|
// authentication bearer required
|
|
370
393
|
// http bearer authentication required
|
|
371
|
-
|
|
394
|
+
_b.sent();
|
|
372
395
|
if (pageSize !== undefined) {
|
|
373
396
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
374
397
|
}
|
|
@@ -390,8 +413,11 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
390
413
|
if (filters !== undefined) {
|
|
391
414
|
localVarQueryParameter['filters'] = filters;
|
|
392
415
|
}
|
|
393
|
-
|
|
394
|
-
|
|
416
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
417
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
418
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
419
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
420
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
395
421
|
}
|
|
396
422
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
397
423
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -416,9 +442,10 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
416
442
|
uploadProductDocument: function (productSlug, uploadProductDocumentRequestDto, authorization, options) {
|
|
417
443
|
if (options === void 0) { options = {}; }
|
|
418
444
|
return __awaiter(_this, void 0, void 0, function () {
|
|
419
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
420
|
-
|
|
421
|
-
|
|
445
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
446
|
+
var _a;
|
|
447
|
+
return __generator(this, function (_b) {
|
|
448
|
+
switch (_b.label) {
|
|
422
449
|
case 0:
|
|
423
450
|
// verify required parameter 'productSlug' is not null or undefined
|
|
424
451
|
(0, common_1.assertParamExists)('uploadProductDocument', 'productSlug', productSlug);
|
|
@@ -436,13 +463,19 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
436
463
|
localVarQueryParameter = {};
|
|
437
464
|
// authentication bearer required
|
|
438
465
|
// http bearer authentication required
|
|
439
|
-
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
466
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)
|
|
467
|
+
// Only Authorization falls back to the configured token. Without a session it is sent as before, empty when
|
|
468
|
+
// no token is stored, so a refused call still refreshes; a session call (account header) sends none.
|
|
469
|
+
];
|
|
440
470
|
case 1:
|
|
441
471
|
// authentication bearer required
|
|
442
472
|
// http bearer authentication required
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
473
|
+
_b.sent();
|
|
474
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
475
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
476
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
477
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
478
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
446
479
|
}
|
|
447
480
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
448
481
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
@@ -729,7 +762,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
729
762
|
*/
|
|
730
763
|
ProductDocumentsApi.prototype.deleteProductDocument = function (requestParameters, options) {
|
|
731
764
|
var _this = this;
|
|
732
|
-
return (0, exports.ProductDocumentsApiFp)(this.configuration).deleteProductDocument(requestParameters.code, requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
765
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).deleteProductDocument(requestParameters.code, requestParameters.productSlug, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
733
766
|
};
|
|
734
767
|
/**
|
|
735
768
|
* Get a pre-signed download url for the given product document. **Required Permissions** \"document-management.documents.view\"
|
|
@@ -741,7 +774,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
741
774
|
*/
|
|
742
775
|
ProductDocumentsApi.prototype.downloadProductDocument = function (requestParameters, options) {
|
|
743
776
|
var _this = this;
|
|
744
|
-
return (0, exports.ProductDocumentsApiFp)(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
777
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).downloadProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, requestParameters.contentDisposition, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
745
778
|
};
|
|
746
779
|
/**
|
|
747
780
|
* Get a product document. **Required Permissions** \"document-management.documents.view\"
|
|
@@ -753,7 +786,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
753
786
|
*/
|
|
754
787
|
ProductDocumentsApi.prototype.getProductDocument = function (requestParameters, options) {
|
|
755
788
|
var _this = this;
|
|
756
|
-
return (0, exports.ProductDocumentsApiFp)(this.configuration).getProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
789
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).getProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
757
790
|
};
|
|
758
791
|
/**
|
|
759
792
|
* Returns a list of product documents you have previously created. The product 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\"
|
|
@@ -766,7 +799,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
766
799
|
ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
|
|
767
800
|
var _this = this;
|
|
768
801
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
769
|
-
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(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); });
|
|
802
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(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); });
|
|
770
803
|
};
|
|
771
804
|
/**
|
|
772
805
|
* Returns a list of product documents you have previously created. The product 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\"
|
|
@@ -778,7 +811,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
778
811
|
*/
|
|
779
812
|
ProductDocumentsApi.prototype.listProductDocumentsByProduct = function (requestParameters, options) {
|
|
780
813
|
var _this = this;
|
|
781
|
-
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocumentsByProduct(requestParameters.productSlug, 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); });
|
|
814
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocumentsByProduct(requestParameters.productSlug, 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); });
|
|
782
815
|
};
|
|
783
816
|
/**
|
|
784
817
|
* Upload a product document. **Required Permissions** \"document-management.documents.update\"
|
|
@@ -790,7 +823,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
|
|
|
790
823
|
*/
|
|
791
824
|
ProductDocumentsApi.prototype.uploadProductDocument = function (requestParameters, options) {
|
|
792
825
|
var _this = this;
|
|
793
|
-
return (0, exports.ProductDocumentsApiFp)(this.configuration).uploadProductDocument(requestParameters.productSlug, requestParameters.uploadProductDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
826
|
+
return (0, exports.ProductDocumentsApiFp)(this.configuration).uploadProductDocument(requestParameters.productSlug, requestParameters.uploadProductDocumentRequestDto, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
794
827
|
};
|
|
795
828
|
return ProductDocumentsApi;
|
|
796
829
|
}(base_1.BaseAPI));
|
|
@@ -92,5 +92,5 @@ export declare class SearchKeywordsApi extends BaseAPI {
|
|
|
92
92
|
* @throws {RequiredError}
|
|
93
93
|
* @memberof SearchKeywordsApi
|
|
94
94
|
*/
|
|
95
|
-
listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchKeywordsResponseClass, any, {}>>;
|
|
95
|
+
listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchKeywordsResponseClass, any, {}, any>>;
|
|
96
96
|
}
|
|
@@ -107,9 +107,10 @@ var SearchKeywordsApiAxiosParamCreator = function (configuration) {
|
|
|
107
107
|
listSearchKeywords: function (searchText, 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 'searchText' is not null or undefined
|
|
115
116
|
(0, common_1.assertParamExists)('listSearchKeywords', 'searchText', searchText);
|
|
@@ -128,12 +129,15 @@ var SearchKeywordsApiAxiosParamCreator = function (configuration) {
|
|
|
128
129
|
case 1:
|
|
129
130
|
// authentication bearer required
|
|
130
131
|
// http bearer authentication required
|
|
131
|
-
|
|
132
|
+
_b.sent();
|
|
132
133
|
if (searchText !== undefined) {
|
|
133
134
|
localVarQueryParameter['searchText'] = searchText;
|
|
134
135
|
}
|
|
135
|
-
|
|
136
|
-
|
|
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);
|
|
137
141
|
}
|
|
138
142
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
139
143
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -222,7 +226,7 @@ var SearchKeywordsApi = /** @class */ (function (_super) {
|
|
|
222
226
|
*/
|
|
223
227
|
SearchKeywordsApi.prototype.listSearchKeywords = function (requestParameters, options) {
|
|
224
228
|
var _this = this;
|
|
225
|
-
return (0, exports.SearchKeywordsApiFp)(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
229
|
+
return (0, exports.SearchKeywordsApiFp)(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
226
230
|
};
|
|
227
231
|
return SearchKeywordsApi;
|
|
228
232
|
}(base_1.BaseAPI));
|
|
@@ -146,5 +146,5 @@ export declare class SearchableDocumentOwnersApi extends BaseAPI {
|
|
|
146
146
|
* @throws {RequiredError}
|
|
147
147
|
* @memberof SearchableDocumentOwnersApi
|
|
148
148
|
*/
|
|
149
|
-
listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any, {}>>;
|
|
149
|
+
listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any, {}, any>>;
|
|
150
150
|
}
|
|
@@ -113,9 +113,10 @@ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
|
|
|
113
113
|
listSearchableDocumentOwners: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
114
114
|
if (options === void 0) { options = {}; }
|
|
115
115
|
return __awaiter(_this, void 0, void 0, function () {
|
|
116
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
117
|
-
|
|
118
|
-
|
|
116
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
117
|
+
var _a;
|
|
118
|
+
return __generator(this, function (_b) {
|
|
119
|
+
switch (_b.label) {
|
|
119
120
|
case 0:
|
|
120
121
|
localVarPath = "/documentservice/v1/searchable-document-owners";
|
|
121
122
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -132,7 +133,7 @@ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
|
|
|
132
133
|
case 1:
|
|
133
134
|
// authentication bearer required
|
|
134
135
|
// http bearer authentication required
|
|
135
|
-
|
|
136
|
+
_b.sent();
|
|
136
137
|
if (pageSize !== undefined) {
|
|
137
138
|
localVarQueryParameter['pageSize'] = pageSize;
|
|
138
139
|
}
|
|
@@ -154,8 +155,11 @@ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
|
|
|
154
155
|
if (filters !== undefined) {
|
|
155
156
|
localVarQueryParameter['filters'] = filters;
|
|
156
157
|
}
|
|
157
|
-
|
|
158
|
-
|
|
158
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
159
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
160
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
161
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
162
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
159
163
|
}
|
|
160
164
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
161
165
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -257,7 +261,7 @@ var SearchableDocumentOwnersApi = /** @class */ (function (_super) {
|
|
|
257
261
|
SearchableDocumentOwnersApi.prototype.listSearchableDocumentOwners = function (requestParameters, options) {
|
|
258
262
|
var _this = this;
|
|
259
263
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
260
|
-
return (0, exports.SearchableDocumentOwnersApiFp)(this.configuration).listSearchableDocumentOwners(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); });
|
|
264
|
+
return (0, exports.SearchableDocumentOwnersApiFp)(this.configuration).listSearchableDocumentOwners(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); });
|
|
261
265
|
};
|
|
262
266
|
return SearchableDocumentOwnersApi;
|
|
263
267
|
}(base_1.BaseAPI));
|
|
@@ -110,5 +110,5 @@ export declare class SearchableDocumentsApi extends BaseAPI {
|
|
|
110
110
|
* @throws {RequiredError}
|
|
111
111
|
* @memberof SearchableDocumentsApi
|
|
112
112
|
*/
|
|
113
|
-
listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentsResponseClass, any, {}>>;
|
|
113
|
+
listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentsResponseClass, any, {}, any>>;
|
|
114
114
|
}
|
|
@@ -109,9 +109,10 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
109
109
|
listSearchableDocuments: function (searchText, ownerIds, authorization, product, options) {
|
|
110
110
|
if (options === void 0) { options = {}; }
|
|
111
111
|
return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
-
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
|
|
113
|
+
var _a;
|
|
114
|
+
return __generator(this, function (_b) {
|
|
115
|
+
switch (_b.label) {
|
|
115
116
|
case 0:
|
|
116
117
|
// verify required parameter 'searchText' is not null or undefined
|
|
117
118
|
(0, common_1.assertParamExists)('listSearchableDocuments', 'searchText', searchText);
|
|
@@ -132,7 +133,7 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
132
133
|
case 1:
|
|
133
134
|
// authentication bearer required
|
|
134
135
|
// http bearer authentication required
|
|
135
|
-
|
|
136
|
+
_b.sent();
|
|
136
137
|
if (searchText !== undefined) {
|
|
137
138
|
localVarQueryParameter['searchText'] = searchText;
|
|
138
139
|
}
|
|
@@ -142,8 +143,11 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
142
143
|
if (product !== undefined) {
|
|
143
144
|
localVarQueryParameter['product'] = product;
|
|
144
145
|
}
|
|
145
|
-
|
|
146
|
-
|
|
146
|
+
authorizationIsAuth = 'Authorization'.toLowerCase() === 'authorization';
|
|
147
|
+
authorizationValue = authorizationIsAuth ? (authorization || baseAccessToken) : authorization;
|
|
148
|
+
authorizationKeepEmpty = authorizationIsAuth && authorizationValue === '' && !((_a = baseOptions === null || baseOptions === void 0 ? void 0 : baseOptions.headers) === null || _a === void 0 ? void 0 : _a['X-Emil-Account']);
|
|
149
|
+
if (authorizationValue || authorizationKeepEmpty) {
|
|
150
|
+
localVarHeaderParameter['Authorization'] = String(authorizationValue);
|
|
147
151
|
}
|
|
148
152
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
149
153
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
@@ -236,7 +240,7 @@ var SearchableDocumentsApi = /** @class */ (function (_super) {
|
|
|
236
240
|
*/
|
|
237
241
|
SearchableDocumentsApi.prototype.listSearchableDocuments = function (requestParameters, options) {
|
|
238
242
|
var _this = this;
|
|
239
|
-
return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, requestParameters.product, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
243
|
+
return (0, exports.SearchableDocumentsApiFp)(this.configuration).listSearchableDocuments(requestParameters.searchText, requestParameters.ownerIds, requestParameters.authorization, requestParameters.product, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
240
244
|
};
|
|
241
245
|
return SearchableDocumentsApi;
|
|
242
246
|
}(base_1.BaseAPI));
|
package/dist/base.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export declare class BaseAPI {
|
|
|
63
63
|
protected configuration: Configuration;
|
|
64
64
|
private username?;
|
|
65
65
|
private password?;
|
|
66
|
+
protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
|
|
66
67
|
constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
|
|
67
68
|
initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
|
|
68
69
|
private loadCredentials;
|
package/dist/base.js
CHANGED
|
@@ -163,6 +163,9 @@ var BaseAPI = /** @class */ (function () {
|
|
|
163
163
|
}
|
|
164
164
|
this.attachInterceptor(axios);
|
|
165
165
|
}
|
|
166
|
+
BaseAPI.prototype.withOwner = function (options) {
|
|
167
|
+
return __assign({}, options);
|
|
168
|
+
};
|
|
166
169
|
BaseAPI.prototype.initialize = function (env, targetWorkspace) {
|
|
167
170
|
if (env === void 0) { env = Environment.Production; }
|
|
168
171
|
return __awaiter(this, void 0, void 0, function () {
|
package/dist/common.d.ts
CHANGED
|
@@ -63,7 +63,7 @@ export declare const toPathString: (url: URL) => string;
|
|
|
63
63
|
*
|
|
64
64
|
* @export
|
|
65
65
|
*/
|
|
66
|
-
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
66
|
+
export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any, {}, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
|
|
67
67
|
/**
|
|
68
68
|
* EMIL DocumentService
|
|
69
69
|
* The EMIL DocumentService API description
|
package/dist/common.js
CHANGED
|
@@ -234,6 +234,7 @@ exports.toPathString = toPathString;
|
|
|
234
234
|
* @export
|
|
235
235
|
*/
|
|
236
236
|
var createRequestFunction = function (axiosArgs, globalAxios, BASE_PATH, configuration) {
|
|
237
|
+
// Typed by hand: since axios 1.20, request() returns an internal axios type that SDK declarations cannot name.
|
|
237
238
|
return function (axios, basePath) {
|
|
238
239
|
if (axios === void 0) { axios = globalAxios; }
|
|
239
240
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@emilgroup/document-sdk-node",
|
|
3
|
-
"version": "1.49.1-beta.
|
|
3
|
+
"version": "1.49.1-beta.35",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/document-sdk-node",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "1.
|
|
21
|
+
"axios": "1.20.0",
|
|
22
22
|
"form-data": "^4.0.0",
|
|
23
23
|
"url": "^0.11.0"
|
|
24
24
|
},
|