@emilgroup/document-sdk 1.46.1-beta.2 → 1.46.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.
@@ -150,7 +150,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
150
150
  * @param {string} productSlug Product slug
151
151
  * @param {string} code Product document code
152
152
  * @param {string} [authorization] Bearer Token
153
- * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
153
+ * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
154
154
  * @param {*} [options] Override http request option.
155
155
  * @throws {RequiredError}
156
156
  */
@@ -267,7 +267,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
267
267
  * @param {*} [options] Override http request option.
268
268
  * @throws {RequiredError}
269
269
  */
270
- listProductDocuments0: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
270
+ listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
271
271
  if (options === void 0) { options = {}; }
272
272
  return __awaiter(_this, void 0, void 0, function () {
273
273
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -275,83 +275,7 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
275
275
  switch (_a.label) {
276
276
  case 0:
277
277
  // verify required parameter 'productSlug' is not null or undefined
278
- (0, common_1.assertParamExists)('listProductDocuments0', 'productSlug', productSlug);
279
- localVarPath = "/documentservice/v1/product-documents"
280
- .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
281
- localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
282
- if (configuration) {
283
- baseOptions = configuration.baseOptions;
284
- baseAccessToken = configuration.accessToken;
285
- }
286
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
287
- localVarHeaderParameter = {};
288
- localVarQueryParameter = {};
289
- // authentication bearer required
290
- // http bearer authentication required
291
- return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
292
- case 1:
293
- // authentication bearer required
294
- // http bearer authentication required
295
- _a.sent();
296
- if (pageSize !== undefined) {
297
- localVarQueryParameter['pageSize'] = pageSize;
298
- }
299
- if (pageToken !== undefined) {
300
- localVarQueryParameter['pageToken'] = pageToken;
301
- }
302
- if (filter !== undefined) {
303
- localVarQueryParameter['filter'] = filter;
304
- }
305
- if (search !== undefined) {
306
- localVarQueryParameter['search'] = search;
307
- }
308
- if (order !== undefined) {
309
- localVarQueryParameter['order'] = order;
310
- }
311
- if (expand !== undefined) {
312
- localVarQueryParameter['expand'] = expand;
313
- }
314
- if (filters !== undefined) {
315
- localVarQueryParameter['filters'] = filters;
316
- }
317
- if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
318
- localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
319
- }
320
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
321
- headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
322
- localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
323
- return [2 /*return*/, {
324
- url: (0, common_1.toPathString)(localVarUrlObj),
325
- options: localVarRequestOptions,
326
- }];
327
- }
328
- });
329
- });
330
- },
331
- /**
332
- * 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\"
333
- * @summary List product documents
334
- * @param {string} productSlug
335
- * @param {string} [authorization] Bearer Token
336
- * @param {number} [pageSize] Page size
337
- * @param {string} [pageToken] Page token
338
- * @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>
339
- * @param {string} [search] Search query
340
- * @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>
341
- * @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/>
342
- * @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>
343
- * @param {*} [options] Override http request option.
344
- * @throws {RequiredError}
345
- */
346
- listProductDocuments1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
347
- if (options === void 0) { options = {}; }
348
- return __awaiter(_this, void 0, void 0, function () {
349
- var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
350
- return __generator(this, function (_a) {
351
- switch (_a.label) {
352
- case 0:
353
- // verify required parameter 'productSlug' is not null or undefined
354
- (0, common_1.assertParamExists)('listProductDocuments1', 'productSlug', productSlug);
278
+ (0, common_1.assertParamExists)('listProductDocuments', 'productSlug', productSlug);
355
279
  localVarPath = "/documentservice/v1/product-documents/{productSlug}"
356
280
  .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
357
281
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -495,7 +419,7 @@ var ProductDocumentsApiFp = function (configuration) {
495
419
  * @param {string} productSlug Product slug
496
420
  * @param {string} code Product document code
497
421
  * @param {string} [authorization] Bearer Token
498
- * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
422
+ * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
499
423
  * @param {*} [options] Override http request option.
500
424
  * @throws {RequiredError}
501
425
  */
@@ -549,40 +473,12 @@ var ProductDocumentsApiFp = function (configuration) {
549
473
  * @param {*} [options] Override http request option.
550
474
  * @throws {RequiredError}
551
475
  */
552
- listProductDocuments0: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
553
- return __awaiter(this, void 0, void 0, function () {
554
- var localVarAxiosArgs;
555
- return __generator(this, function (_a) {
556
- switch (_a.label) {
557
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments0(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
558
- case 1:
559
- localVarAxiosArgs = _a.sent();
560
- return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
561
- }
562
- });
563
- });
564
- },
565
- /**
566
- * 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\"
567
- * @summary List product documents
568
- * @param {string} productSlug
569
- * @param {string} [authorization] Bearer Token
570
- * @param {number} [pageSize] Page size
571
- * @param {string} [pageToken] Page token
572
- * @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>
573
- * @param {string} [search] Search query
574
- * @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>
575
- * @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/>
576
- * @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>
577
- * @param {*} [options] Override http request option.
578
- * @throws {RequiredError}
579
- */
580
- listProductDocuments1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
476
+ listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
581
477
  return __awaiter(this, void 0, void 0, function () {
582
478
  var localVarAxiosArgs;
583
479
  return __generator(this, function (_a) {
584
480
  switch (_a.label) {
585
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
481
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options)];
586
482
  case 1:
587
483
  localVarAxiosArgs = _a.sent();
588
484
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -640,7 +536,7 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
640
536
  * @param {string} productSlug Product slug
641
537
  * @param {string} code Product document code
642
538
  * @param {string} [authorization] Bearer Token
643
- * @param {GetProductDocumentDownloadUrlRequestRestDto} [contentDisposition] Content disposition type
539
+ * @param {'attachment' | 'inline'} [contentDisposition] Content disposition override. Default will be depending on the document type.
644
540
  * @param {*} [options] Override http request option.
645
541
  * @throws {RequiredError}
646
542
  */
@@ -674,26 +570,8 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
674
570
  * @param {*} [options] Override http request option.
675
571
  * @throws {RequiredError}
676
572
  */
677
- listProductDocuments0: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
678
- return localVarFp.listProductDocuments0(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
679
- },
680
- /**
681
- * 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\"
682
- * @summary List product documents
683
- * @param {string} productSlug
684
- * @param {string} [authorization] Bearer Token
685
- * @param {number} [pageSize] Page size
686
- * @param {string} [pageToken] Page token
687
- * @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>
688
- * @param {string} [search] Search query
689
- * @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>
690
- * @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/>
691
- * @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>
692
- * @param {*} [options] Override http request option.
693
- * @throws {RequiredError}
694
- */
695
- listProductDocuments1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
696
- return localVarFp.listProductDocuments1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
573
+ listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
574
+ return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
697
575
  },
698
576
  /**
699
577
  * Upload a product document. **Required Permissions** \"document-management.documents.update\"
@@ -760,26 +638,14 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
760
638
  /**
761
639
  * 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\"
762
640
  * @summary List product documents
763
- * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
764
- * @param {*} [options] Override http request option.
765
- * @throws {RequiredError}
766
- * @memberof ProductDocumentsApi
767
- */
768
- ProductDocumentsApi.prototype.listProductDocuments0 = function (requestParameters, options) {
769
- var _this = this;
770
- 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); });
771
- };
772
- /**
773
- * 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\"
774
- * @summary List product documents
775
- * @param {ProductDocumentsApiListProductDocuments1Request} requestParameters Request parameters.
641
+ * @param {ProductDocumentsApiListProductDocumentsRequest} requestParameters Request parameters.
776
642
  * @param {*} [options] Override http request option.
777
643
  * @throws {RequiredError}
778
644
  * @memberof ProductDocumentsApi
779
645
  */
780
- ProductDocumentsApi.prototype.listProductDocuments1 = function (requestParameters, options) {
646
+ ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
781
647
  var _this = this;
782
- 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); });
648
+ 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); });
783
649
  };
784
650
  /**
785
651
  * 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",
3
- "version": "1.46.1-beta.2",
3
+ "version": "1.46.1-beta.3",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk",
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
-