@emilgroup/document-sdk-node 1.49.1-beta.40 → 1.49.1-beta.41

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.
@@ -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, {}, any>>;
492
+ deleteProductDocument(requestParameters: ProductDocumentsApiDeleteProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<object, 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, {}, any>>;
501
+ downloadProductDocument(requestParameters: ProductDocumentsApiDownloadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentDownloadUrlResponseClass, 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, {}, any>>;
510
+ getProductDocument(requestParameters: ProductDocumentsApiGetProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<GetProductDocumentResponseClass, 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, {}, any>>;
519
+ listProductDocuments(requestParameters?: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, 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, {}, any>>;
528
+ listProductDocumentsByProduct(requestParameters: ProductDocumentsApiListProductDocumentsByProductRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListProductDocumentsResponseClass, 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, {}, any>>;
537
+ uploadProductDocument(requestParameters: ProductDocumentsApiUploadProductDocumentRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreatePresignedPostResponseClass, any, {}>>;
538
538
  }
@@ -108,10 +108,9 @@ 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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
112
- var _a;
113
- return __generator(this, function (_b) {
114
- switch (_b.label) {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
115
114
  case 0:
116
115
  // verify required parameter 'code' is not null or undefined
117
116
  (0, common_1.assertParamExists)('deleteProductDocument', 'code', code);
@@ -130,19 +129,13 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
130
129
  localVarQueryParameter = {};
131
130
  // authentication bearer required
132
131
  // http bearer authentication required
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
- ];
132
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
137
133
  case 1:
138
134
  // authentication bearer required
139
135
  // http bearer authentication required
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);
136
+ _a.sent();
137
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
138
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
146
139
  }
147
140
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
148
141
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -168,10 +161,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
168
161
  downloadProductDocument: function (productSlug, code, authorization, contentDisposition, options) {
169
162
  if (options === void 0) { options = {}; }
170
163
  return __awaiter(_this, void 0, void 0, function () {
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) {
164
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
165
+ return __generator(this, function (_a) {
166
+ switch (_a.label) {
175
167
  case 0:
176
168
  // verify required parameter 'productSlug' is not null or undefined
177
169
  (0, common_1.assertParamExists)('downloadProductDocument', 'productSlug', productSlug);
@@ -194,15 +186,12 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
194
186
  case 1:
195
187
  // authentication bearer required
196
188
  // http bearer authentication required
197
- _b.sent();
189
+ _a.sent();
198
190
  if (contentDisposition !== undefined) {
199
191
  localVarQueryParameter['contentDisposition'] = contentDisposition;
200
192
  }
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);
193
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
194
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
206
195
  }
207
196
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
208
197
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -227,10 +216,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
227
216
  getProductDocument: function (productSlug, code, authorization, options) {
228
217
  if (options === void 0) { options = {}; }
229
218
  return __awaiter(_this, void 0, void 0, function () {
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) {
219
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
220
+ return __generator(this, function (_a) {
221
+ switch (_a.label) {
234
222
  case 0:
235
223
  // verify required parameter 'productSlug' is not null or undefined
236
224
  (0, common_1.assertParamExists)('getProductDocument', 'productSlug', productSlug);
@@ -249,19 +237,13 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
249
237
  localVarQueryParameter = {};
250
238
  // authentication bearer required
251
239
  // http bearer authentication required
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
- ];
240
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
256
241
  case 1:
257
242
  // authentication bearer required
258
243
  // http bearer authentication required
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);
244
+ _a.sent();
245
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
246
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
265
247
  }
266
248
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
267
249
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -291,10 +273,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
291
273
  listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
292
274
  if (options === void 0) { options = {}; }
293
275
  return __awaiter(_this, void 0, void 0, function () {
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) {
276
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
277
+ return __generator(this, function (_a) {
278
+ switch (_a.label) {
298
279
  case 0:
299
280
  localVarPath = "/documentservice/v1/product-documents";
300
281
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -311,7 +292,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
311
292
  case 1:
312
293
  // authentication bearer required
313
294
  // http bearer authentication required
314
- _b.sent();
295
+ _a.sent();
315
296
  if (pageSize !== undefined) {
316
297
  localVarQueryParameter['pageSize'] = pageSize;
317
298
  }
@@ -333,11 +314,8 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
333
314
  if (filters !== undefined) {
334
315
  localVarQueryParameter['filters'] = filters;
335
316
  }
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);
317
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
318
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
341
319
  }
342
320
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
343
321
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -368,10 +346,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
368
346
  listProductDocumentsByProduct: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
369
347
  if (options === void 0) { options = {}; }
370
348
  return __awaiter(_this, void 0, void 0, function () {
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) {
349
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
350
+ return __generator(this, function (_a) {
351
+ switch (_a.label) {
375
352
  case 0:
376
353
  // verify required parameter 'productSlug' is not null or undefined
377
354
  (0, common_1.assertParamExists)('listProductDocumentsByProduct', 'productSlug', productSlug);
@@ -391,7 +368,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
391
368
  case 1:
392
369
  // authentication bearer required
393
370
  // http bearer authentication required
394
- _b.sent();
371
+ _a.sent();
395
372
  if (pageSize !== undefined) {
396
373
  localVarQueryParameter['pageSize'] = pageSize;
397
374
  }
@@ -413,11 +390,8 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
413
390
  if (filters !== undefined) {
414
391
  localVarQueryParameter['filters'] = filters;
415
392
  }
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);
393
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
394
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
421
395
  }
422
396
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
423
397
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -442,10 +416,9 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
442
416
  uploadProductDocument: function (productSlug, uploadProductDocumentRequestDto, authorization, options) {
443
417
  if (options === void 0) { options = {}; }
444
418
  return __awaiter(_this, void 0, void 0, function () {
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) {
419
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
420
+ return __generator(this, function (_a) {
421
+ switch (_a.label) {
449
422
  case 0:
450
423
  // verify required parameter 'productSlug' is not null or undefined
451
424
  (0, common_1.assertParamExists)('uploadProductDocument', 'productSlug', productSlug);
@@ -463,19 +436,13 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
463
436
  localVarQueryParameter = {};
464
437
  // authentication bearer required
465
438
  // http bearer authentication required
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
- ];
439
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
470
440
  case 1:
471
441
  // authentication bearer required
472
442
  // http bearer authentication required
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);
443
+ _a.sent();
444
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
445
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
479
446
  }
480
447
  localVarHeaderParameter['Content-Type'] = 'application/json';
481
448
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
@@ -762,7 +729,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
762
729
  */
763
730
  ProductDocumentsApi.prototype.deleteProductDocument = function (requestParameters, options) {
764
731
  var _this = this;
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); });
732
+ return (0, exports.ProductDocumentsApiFp)(this.configuration).deleteProductDocument(requestParameters.code, requestParameters.productSlug, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
766
733
  };
767
734
  /**
768
735
  * Get a pre-signed download url for the given product document. **Required Permissions** \"document-management.documents.view\"
@@ -774,7 +741,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
774
741
  */
775
742
  ProductDocumentsApi.prototype.downloadProductDocument = function (requestParameters, options) {
776
743
  var _this = this;
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); });
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); });
778
745
  };
779
746
  /**
780
747
  * Get a product document. **Required Permissions** \"document-management.documents.view\"
@@ -786,7 +753,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
786
753
  */
787
754
  ProductDocumentsApi.prototype.getProductDocument = function (requestParameters, options) {
788
755
  var _this = this;
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); });
756
+ return (0, exports.ProductDocumentsApiFp)(this.configuration).getProductDocument(requestParameters.productSlug, requestParameters.code, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
790
757
  };
791
758
  /**
792
759
  * 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\"
@@ -799,7 +766,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
799
766
  ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
800
767
  var _this = this;
801
768
  if (requestParameters === void 0) { requestParameters = {}; }
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); });
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); });
803
770
  };
804
771
  /**
805
772
  * 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\"
@@ -811,7 +778,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
811
778
  */
812
779
  ProductDocumentsApi.prototype.listProductDocumentsByProduct = function (requestParameters, options) {
813
780
  var _this = this;
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); });
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); });
815
782
  };
816
783
  /**
817
784
  * Upload a product document. **Required Permissions** \"document-management.documents.update\"
@@ -823,7 +790,7 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
823
790
  */
824
791
  ProductDocumentsApi.prototype.uploadProductDocument = function (requestParameters, options) {
825
792
  var _this = this;
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); });
793
+ return (0, exports.ProductDocumentsApiFp)(this.configuration).uploadProductDocument(requestParameters.productSlug, requestParameters.uploadProductDocumentRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
827
794
  };
828
795
  return ProductDocumentsApi;
829
796
  }(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, {}, any>>;
95
+ listSearchKeywords(requestParameters: SearchKeywordsApiListSearchKeywordsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchKeywordsResponseClass, any, {}>>;
96
96
  }
@@ -107,10 +107,9 @@ 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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
111
- var _a;
112
- return __generator(this, function (_b) {
113
- switch (_b.label) {
110
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
111
+ return __generator(this, function (_a) {
112
+ switch (_a.label) {
114
113
  case 0:
115
114
  // verify required parameter 'searchText' is not null or undefined
116
115
  (0, common_1.assertParamExists)('listSearchKeywords', 'searchText', searchText);
@@ -129,15 +128,12 @@ var SearchKeywordsApiAxiosParamCreator = function (configuration) {
129
128
  case 1:
130
129
  // authentication bearer required
131
130
  // http bearer authentication required
132
- _b.sent();
131
+ _a.sent();
133
132
  if (searchText !== undefined) {
134
133
  localVarQueryParameter['searchText'] = searchText;
135
134
  }
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);
135
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
136
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
141
137
  }
142
138
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
143
139
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -226,7 +222,7 @@ var SearchKeywordsApi = /** @class */ (function (_super) {
226
222
  */
227
223
  SearchKeywordsApi.prototype.listSearchKeywords = function (requestParameters, options) {
228
224
  var _this = this;
229
- return (0, exports.SearchKeywordsApiFp)(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, this.withOwner(options)).then(function (request) { return request(_this.axios, _this.basePath); });
225
+ return (0, exports.SearchKeywordsApiFp)(this.configuration).listSearchKeywords(requestParameters.searchText, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
230
226
  };
231
227
  return SearchKeywordsApi;
232
228
  }(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, {}, any>>;
149
+ listSearchableDocumentOwners(requestParameters?: SearchableDocumentOwnersApiListSearchableDocumentOwnersRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentOwnersResponseClass, any, {}>>;
150
150
  }
@@ -113,10 +113,9 @@ 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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
117
- var _a;
118
- return __generator(this, function (_b) {
119
- switch (_b.label) {
116
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
117
+ return __generator(this, function (_a) {
118
+ switch (_a.label) {
120
119
  case 0:
121
120
  localVarPath = "/documentservice/v1/searchable-document-owners";
122
121
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -133,7 +132,7 @@ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
133
132
  case 1:
134
133
  // authentication bearer required
135
134
  // http bearer authentication required
136
- _b.sent();
135
+ _a.sent();
137
136
  if (pageSize !== undefined) {
138
137
  localVarQueryParameter['pageSize'] = pageSize;
139
138
  }
@@ -155,11 +154,8 @@ var SearchableDocumentOwnersApiAxiosParamCreator = function (configuration) {
155
154
  if (filters !== undefined) {
156
155
  localVarQueryParameter['filters'] = filters;
157
156
  }
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);
157
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
158
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
163
159
  }
164
160
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
165
161
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -261,7 +257,7 @@ var SearchableDocumentOwnersApi = /** @class */ (function (_super) {
261
257
  SearchableDocumentOwnersApi.prototype.listSearchableDocumentOwners = function (requestParameters, options) {
262
258
  var _this = this;
263
259
  if (requestParameters === void 0) { requestParameters = {}; }
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); });
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); });
265
261
  };
266
262
  return SearchableDocumentOwnersApi;
267
263
  }(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, {}, any>>;
113
+ listSearchableDocuments(requestParameters: SearchableDocumentsApiListSearchableDocumentsRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListSearchableDocumentsResponseClass, any, {}>>;
114
114
  }
@@ -109,10 +109,9 @@ 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, authorizationIsAuth, authorizationValue, authorizationKeepEmpty, headersFromBaseOptions;
113
- var _a;
114
- return __generator(this, function (_b) {
115
- switch (_b.label) {
112
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
113
+ return __generator(this, function (_a) {
114
+ switch (_a.label) {
116
115
  case 0:
117
116
  // verify required parameter 'searchText' is not null or undefined
118
117
  (0, common_1.assertParamExists)('listSearchableDocuments', 'searchText', searchText);
@@ -133,7 +132,7 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
133
132
  case 1:
134
133
  // authentication bearer required
135
134
  // http bearer authentication required
136
- _b.sent();
135
+ _a.sent();
137
136
  if (searchText !== undefined) {
138
137
  localVarQueryParameter['searchText'] = searchText;
139
138
  }
@@ -143,11 +142,8 @@ var SearchableDocumentsApiAxiosParamCreator = function (configuration) {
143
142
  if (product !== undefined) {
144
143
  localVarQueryParameter['product'] = product;
145
144
  }
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);
145
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
146
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
151
147
  }
152
148
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
153
149
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -240,7 +236,7 @@ var SearchableDocumentsApi = /** @class */ (function (_super) {
240
236
  */
241
237
  SearchableDocumentsApi.prototype.listSearchableDocuments = function (requestParameters, options) {
242
238
  var _this = this;
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); });
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); });
244
240
  };
245
241
  return SearchableDocumentsApi;
246
242
  }(base_1.BaseAPI));
package/dist/base.d.ts CHANGED
@@ -63,7 +63,6 @@ export declare class BaseAPI {
63
63
  protected configuration: Configuration;
64
64
  private username?;
65
65
  private password?;
66
- protected withOwner(options?: AxiosRequestConfig): AxiosRequestConfig;
67
66
  constructor(configuration?: Configuration, basePath?: string, axios?: AxiosInstance);
68
67
  initialize(env?: Environment, targetWorkspace?: string): Promise<void>;
69
68
  private loadCredentials;
package/dist/base.js CHANGED
@@ -163,9 +163,6 @@ var BaseAPI = /** @class */ (function () {
163
163
  }
164
164
  this.attachInterceptor(axios);
165
165
  }
166
- BaseAPI.prototype.withOwner = function (options) {
167
- return __assign({}, options);
168
- };
169
166
  BaseAPI.prototype.initialize = function (env, targetWorkspace) {
170
167
  if (env === void 0) { env = Environment.Production; }
171
168
  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, {}, 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, {}>>(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,7 +234,6 @@ 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.
238
237
  return function (axios, basePath) {
239
238
  if (axios === void 0) { axios = globalAxios; }
240
239
  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.40",
3
+ "version": "1.49.1-beta.41",
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.20.0",
21
+ "axios": "1.18.0",
22
22
  "form-data": "^4.0.0",
23
23
  "url": "^0.11.0"
24
24
  },