@emilgroup/document-sdk-node 1.44.1-beta.2 → 1.44.1-beta.3

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.
@@ -154,7 +154,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
154
154
  * @param {string} productSlug Product slug
155
155
  * @param {string} code Product document code
156
156
  * @param {string} [authorization] Bearer Token
157
- * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
157
+ * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
158
158
  * @param {*} [options] Override http request option.
159
159
  * @throws {RequiredError}
160
160
  */
@@ -271,7 +271,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
271
271
  * @param {*} [options] Override http request option.
272
272
  * @throws {RequiredError}
273
273
  */
274
- listProductDocuments0: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
274
+ listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
275
275
  if (options === void 0) { options = {}; }
276
276
  return __awaiter(_this, void 0, void 0, function () {
277
277
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -279,83 +279,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
279
279
  switch (_a.label) {
280
280
  case 0:
281
281
  // verify required parameter 'productSlug' is not null or undefined
282
- (0, common_1.assertParamExists)('listProductDocuments0', 'productSlug', productSlug);
283
- localVarPath = "/documentservice/v1/product-documents"
284
- .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
285
- localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
286
- if (configuration) {
287
- baseOptions = configuration.baseOptions;
288
- baseAccessToken = configuration.accessToken;
289
- }
290
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
291
- localVarHeaderParameter = {};
292
- localVarQueryParameter = {};
293
- // authentication bearer required
294
- // http bearer authentication required
295
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
296
- case 1:
297
- // authentication bearer required
298
- // http bearer authentication required
299
- _a.sent();
300
- if (pageSize !== undefined) {
301
- localVarQueryParameter['pageSize'] = pageSize;
302
- }
303
- if (pageToken !== undefined) {
304
- localVarQueryParameter['pageToken'] = pageToken;
305
- }
306
- if (filter !== undefined) {
307
- localVarQueryParameter['filter'] = filter;
308
- }
309
- if (search !== undefined) {
310
- localVarQueryParameter['search'] = search;
311
- }
312
- if (order !== undefined) {
313
- localVarQueryParameter['order'] = order;
314
- }
315
- if (expand !== undefined) {
316
- localVarQueryParameter['expand'] = expand;
317
- }
318
- if (filters !== undefined) {
319
- localVarQueryParameter['filters'] = filters;
320
- }
321
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
322
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
323
- }
324
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
325
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
326
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
327
- return [2 /*return*/, {
328
- url: (0, common_1.toPathString)(localVarUrlObj),
329
- options: localVarRequestOptions,
330
- }];
331
- }
332
- });
333
- });
334
- },
335
- /**
336
- * 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\"
337
- * @summary List product documents
338
- * @param {string} productSlug
339
- * @param {string} [authorization] Bearer Token
340
- * @param {number} [pageSize] Page size
341
- * @param {string} [pageToken] Page token
342
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
343
- * @param {string} [search] Search query
344
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
345
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
346
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
347
- * @param {*} [options] Override http request option.
348
- * @throws {RequiredError}
349
- */
350
- listProductDocuments1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
351
- if (options === void 0) { options = {}; }
352
- return __awaiter(_this, void 0, void 0, function () {
353
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
354
- return __generator(this, function (_a) {
355
- switch (_a.label) {
356
- case 0:
357
- // verify required parameter 'productSlug' is not null or undefined
358
- (0, common_1.assertParamExists)('listProductDocuments1', 'productSlug', productSlug);
282
+ (0, common_1.assertParamExists)('listProductDocuments', 'productSlug', productSlug);
359
283
  localVarPath = "/documentservice/v1/product-documents/{productSlug}"
360
284
  .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
361
285
  localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -499,7 +423,7 @@ var ProductDocumentsApiFp = function (configuration) {
499
423
  * @param {string} productSlug Product slug
500
424
  * @param {string} code Product document code
501
425
  * @param {string} [authorization] Bearer Token
502
- * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
426
+ * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
503
427
  * @param {*} [options] Override http request option.
504
428
  * @throws {RequiredError}
505
429
  */
@@ -553,40 +477,12 @@ var ProductDocumentsApiFp = function (configuration) {
553
477
  * @param {*} [options] Override http request option.
554
478
  * @throws {RequiredError}
555
479
  */
556
- listProductDocuments0: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
557
- return __awaiter(this, void 0, void 0, function () {
558
- var localVarAxiosArgs;
559
- return __generator(this, function (_a) {
560
- switch (_a.label) {
561
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments0(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
562
- case 1:
563
- localVarAxiosArgs = _a.sent();
564
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
565
- }
566
- });
567
- });
568
- },
569
- /**
570
- * 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\"
571
- * @summary List product documents
572
- * @param {string} productSlug
573
- * @param {string} [authorization] Bearer Token
574
- * @param {number} [pageSize] Page size
575
- * @param {string} [pageToken] Page token
576
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
577
- * @param {string} [search] Search query
578
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
579
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
580
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
581
- * @param {*} [options] Override http request option.
582
- * @throws {RequiredError}
583
- */
584
- listProductDocuments1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
480
+ listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
585
481
  return __awaiter(this, void 0, void 0, function () {
586
482
  var localVarAxiosArgs;
587
483
  return __generator(this, function (_a) {
588
484
  switch (_a.label) {
589
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
485
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
590
486
  case 1:
591
487
  localVarAxiosArgs = _a.sent();
592
488
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -644,7 +540,7 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
644
540
  * @param {string} productSlug Product slug
645
541
  * @param {string} code Product document code
646
542
  * @param {string} [authorization] Bearer Token
647
- * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
543
+ * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
648
544
  * @param {*} [options] Override http request option.
649
545
  * @throws {RequiredError}
650
546
  */
@@ -678,26 +574,8 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
678
574
  * @param {*} [options] Override http request option.
679
575
  * @throws {RequiredError}
680
576
  */
681
- listProductDocuments0: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
682
- return localVarFp.listProductDocuments0(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
683
- },
684
- /**
685
- * 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\"
686
- * @summary List product documents
687
- * @param {string} productSlug
688
- * @param {string} [authorization] Bearer Token
689
- * @param {number} [pageSize] Page size
690
- * @param {string} [pageToken] Page token
691
- * @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
692
- * @param {string} [search] Search query
693
- * @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, createdAt, filename</i>
694
- * @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
695
- * @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: code, productSlug, productCode, type, createdAt, slug</i>
696
- * @param {*} [options] Override http request option.
697
- * @throws {RequiredError}
698
- */
699
- listProductDocuments1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
700
- return localVarFp.listProductDocuments1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
577
+ listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
578
+ return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
701
579
  },
702
580
  /**
703
581
  * Upload a product document. **Required Permissions** \"document-management.documents.update\"
@@ -764,26 +642,14 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
764
642
  /**
765
643
  * 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
644
  * @summary List product documents
767
- * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
768
- * @param {*} [options] Override http request option.
769
- * @throws {RequiredError}
770
- * @memberof ProductDocumentsApi
771
- */
772
- ProductDocumentsApi.prototype.listProductDocuments0 = function (requestParameters, options) {
773
- var _this = this;
774
- return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments0(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); });
775
- };
776
- /**
777
- * 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
- * @summary List product documents
779
- * @param {ProductDocumentsApiListProductDocuments1Request} requestParameters Request parameters.
645
+ * @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
780
646
  * @param {*} [options] Override http request option.
781
647
  * @throws {RequiredError}
782
648
  * @memberof ProductDocumentsApi
783
649
  */
784
- ProductDocumentsApi.prototype.listProductDocuments1 = function (requestParameters, options) {
650
+ ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
785
651
  var _this = this;
786
- return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments1(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); });
652
+ return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(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); });
787
653
  };
788
654
  /**
789
655
  * Upload a product document. **Required Permissions** \"document-management.documents.update\"
package/dist/api.d.ts CHANGED
@@ -9,10 +9,10 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ export * from './api/default-api';
12
13
  export * from './api/document-templates-api';
13
14
  export * from './api/documents-api';
14
15
  export * from './api/docx-templates-api';
15
- export * from './api/health-api';
16
16
  export * from './api/layouts-api';
17
17
  export * from './api/product-documents-api';
18
18
  export * from './api/search-keywords-api';
package/dist/api.js CHANGED
@@ -27,10 +27,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
27
27
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
28
28
  };
29
29
  Object.defineProperty(exports, "__esModule", { value: true });
30
+ __exportStar(require("./api/default-api"), exports);
30
31
  __exportStar(require("./api/document-templates-api"), exports);
31
32
  __exportStar(require("./api/documents-api"), exports);
32
33
  __exportStar(require("./api/docx-templates-api"), exports);
33
- __exportStar(require("./api/health-api"), exports);
34
34
  __exportStar(require("./api/layouts-api"), exports);
35
35
  __exportStar(require("./api/product-documents-api"), exports);
36
36
  __exportStar(require("./api/search-keywords-api"), exports);
@@ -25,7 +25,6 @@ export * from './get-docx-template-download-url-response-class';
25
25
  export * from './get-docx-template-response-class';
26
26
  export * from './get-layout-request-dto';
27
27
  export * from './get-layout-response-class';
28
- export * from './get-product-document-download-url-request-rest-dto';
29
28
  export * from './get-product-document-download-url-response-class';
30
29
  export * from './get-product-document-response-class';
31
30
  export * from './get-signed-s3-key-url-response-class';
@@ -41,7 +41,6 @@ __exportStar(require("./get-docx-template-download-url-response-class"), exports
41
41
  __exportStar(require("./get-docx-template-response-class"), exports);
42
42
  __exportStar(require("./get-layout-request-dto"), exports);
43
43
  __exportStar(require("./get-layout-response-class"), exports);
44
- __exportStar(require("./get-product-document-download-url-request-rest-dto"), exports);
45
44
  __exportStar(require("./get-product-document-download-url-response-class"), exports);
46
45
  __exportStar(require("./get-product-document-response-class"), exports);
47
46
  __exportStar(require("./get-signed-s3-key-url-response-class"), exports);
package/models/index.ts CHANGED
@@ -25,7 +25,6 @@ export * from './get-docx-template-download-url-response-class';
25
25
  export * from './get-docx-template-response-class';
26
26
  export * from './get-layout-request-dto';
27
27
  export * from './get-layout-response-class';
28
- export * from './get-product-document-download-url-request-rest-dto';
29
28
  export * from './get-product-document-download-url-response-class';
30
29
  export * from './get-product-document-response-class';
31
30
  export * from './get-signed-s3-key-url-response-class';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk-node",
3
- "version": "1.44.1-beta.2",
3
+ "version": "1.44.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,29 +0,0 @@
1
- /**
2
- * EMIL DocumentService
3
- * The EMIL DocumentService API description
4
- *
5
- * The version of the OpenAPI document: 1.0
6
- * Contact: kontakt@emil.de
7
- *
8
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
- * https://openapi-generator.tech
10
- * Do not edit the class manually.
11
- */
12
- /**
13
- *
14
- * @export
15
- * @interface GetProductDocumentDownloadUrlRequestRestDto
16
- */
17
- export interface GetProductDocumentDownloadUrlRequestRestDto {
18
- /**
19
- * Content disposition override. Default will be depending on the document type.
20
- * @type {string}
21
- * @memberof GetProductDocumentDownloadUrlRequestRestDto
22
- */
23
- 'contentDisposition'?: GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum;
24
- }
25
- export declare const GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum: {
26
- readonly Attachment: "attachment";
27
- readonly Inline: "inline";
28
- };
29
- export type GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = typeof GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum[keyof typeof GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum];
@@ -1,20 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * EMIL DocumentService
6
- * The EMIL DocumentService API description
7
- *
8
- * The version of the OpenAPI document: 1.0
9
- * Contact: kontakt@emil.de
10
- *
11
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
- * https://openapi-generator.tech
13
- * Do not edit the class manually.
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = void 0;
17
- exports.GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = {
18
- Attachment: 'attachment',
19
- Inline: 'inline'
20
- };
@@ -1,38 +0,0 @@
1
- /* tslint:disable */
2
- /* eslint-disable */
3
- /**
4
- * EMIL DocumentService
5
- * The EMIL DocumentService API description
6
- *
7
- * The version of the OpenAPI document: 1.0
8
- * Contact: kontakt@emil.de
9
- *
10
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
- * https://openapi-generator.tech
12
- * Do not edit the class manually.
13
- */
14
-
15
-
16
-
17
- /**
18
- *
19
- * @export
20
- * @interface GetProductDocumentDownloadUrlRequestRestDto
21
- */
22
- export interface GetProductDocumentDownloadUrlRequestRestDto {
23
- /**
24
- * Content disposition override. Default will be depending on the document type.
25
- * @type {string}
26
- * @memberof GetProductDocumentDownloadUrlRequestRestDto
27
- */
28
- 'contentDisposition'?: GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum;
29
- }
30
-
31
- export const GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = {
32
- Attachment: 'attachment',
33
- Inline: 'inline'
34
- } as const;
35
-
36
- export type GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum = typeof GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum[keyof typeof GetProductDocumentDownloadUrlRequestRestDtoContentDispositionEnum];
37
-
38
-