@emilgroup/document-sdk 1.12.3 → 1.20.0

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.
@@ -251,6 +251,79 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
251
251
  /**
252
252
  * 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.
253
253
  * @summary List product documents
254
+ * @param {string} productSlug
255
+ * @param {string} [authorization] Bearer Token
256
+ * @param {number} [pageSize] Page size
257
+ * @param {string} [pageToken] Page token
258
+ * @param {string} [filter] List filter
259
+ * @param {string} [search] Search query
260
+ * @param {string} [order] Ordering criteria
261
+ * @param {string} [expand] Extra fields to fetch
262
+ * @param {*} [options] Override http request option.
263
+ * @throws {RequiredError}
264
+ */
265
+ listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
266
+ if (options === void 0) { options = {}; }
267
+ return __awaiter(_this, void 0, void 0, function () {
268
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
269
+ return __generator(this, function (_a) {
270
+ switch (_a.label) {
271
+ case 0:
272
+ // verify required parameter 'productSlug' is not null or undefined
273
+ (0, common_1.assertParamExists)('listProductDocuments', 'productSlug', productSlug);
274
+ localVarPath = "/documentservice/v1/documents/product/{productSlug}"
275
+ .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
276
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
277
+ if (configuration) {
278
+ baseOptions = configuration.baseOptions;
279
+ baseAccessToken = configuration.accessToken;
280
+ }
281
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
282
+ localVarHeaderParameter = {};
283
+ localVarQueryParameter = {};
284
+ // authentication bearer required
285
+ // http bearer authentication required
286
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
287
+ case 1:
288
+ // authentication bearer required
289
+ // http bearer authentication required
290
+ _a.sent();
291
+ if (pageSize !== undefined) {
292
+ localVarQueryParameter['pageSize'] = pageSize;
293
+ }
294
+ if (pageToken !== undefined) {
295
+ localVarQueryParameter['pageToken'] = pageToken;
296
+ }
297
+ if (filter !== undefined) {
298
+ localVarQueryParameter['filter'] = filter;
299
+ }
300
+ if (search !== undefined) {
301
+ localVarQueryParameter['search'] = search;
302
+ }
303
+ if (order !== undefined) {
304
+ localVarQueryParameter['order'] = order;
305
+ }
306
+ if (expand !== undefined) {
307
+ localVarQueryParameter['expand'] = expand;
308
+ }
309
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
310
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
311
+ }
312
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
313
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
314
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
315
+ return [2 /*return*/, {
316
+ url: (0, common_1.toPathString)(localVarUrlObj),
317
+ options: localVarRequestOptions,
318
+ }];
319
+ }
320
+ });
321
+ });
322
+ },
323
+ /**
324
+ * 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.
325
+ * @summary List product documents
326
+ * @param {string} productSlug
254
327
  * @param {string} [authorization] Bearer Token
255
328
  * @param {number} [pageSize] Page size
256
329
  * @param {string} [pageToken] Page token
@@ -261,14 +334,17 @@ var ProductDocumentsApiAxiosParamCreator = function (configuration) {
261
334
  * @param {*} [options] Override http request option.
262
335
  * @throws {RequiredError}
263
336
  */
264
- listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
337
+ listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
265
338
  if (options === void 0) { options = {}; }
266
339
  return __awaiter(_this, void 0, void 0, function () {
267
340
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
268
341
  return __generator(this, function (_a) {
269
342
  switch (_a.label) {
270
343
  case 0:
271
- localVarPath = "/documentservice/v1/documents/product";
344
+ // verify required parameter 'productSlug' is not null or undefined
345
+ (0, common_1.assertParamExists)('listProductDocuments_1', 'productSlug', productSlug);
346
+ localVarPath = "/documentservice/v1/documents/product"
347
+ .replace("{".concat("productSlug", "}"), encodeURIComponent(String(productSlug)));
272
348
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
273
349
  if (configuration) {
274
350
  baseOptions = configuration.baseOptions;
@@ -448,6 +524,34 @@ var ProductDocumentsApiFp = function (configuration) {
448
524
  /**
449
525
  * 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.
450
526
  * @summary List product documents
527
+ * @param {string} productSlug
528
+ * @param {string} [authorization] Bearer Token
529
+ * @param {number} [pageSize] Page size
530
+ * @param {string} [pageToken] Page token
531
+ * @param {string} [filter] List filter
532
+ * @param {string} [search] Search query
533
+ * @param {string} [order] Ordering criteria
534
+ * @param {string} [expand] Extra fields to fetch
535
+ * @param {*} [options] Override http request option.
536
+ * @throws {RequiredError}
537
+ */
538
+ listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
539
+ return __awaiter(this, void 0, void 0, function () {
540
+ var localVarAxiosArgs;
541
+ return __generator(this, function (_a) {
542
+ switch (_a.label) {
543
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options)];
544
+ case 1:
545
+ localVarAxiosArgs = _a.sent();
546
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
547
+ }
548
+ });
549
+ });
550
+ },
551
+ /**
552
+ * 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.
553
+ * @summary List product documents
554
+ * @param {string} productSlug
451
555
  * @param {string} [authorization] Bearer Token
452
556
  * @param {number} [pageSize] Page size
453
557
  * @param {string} [pageToken] Page token
@@ -458,12 +562,12 @@ var ProductDocumentsApiFp = function (configuration) {
458
562
  * @param {*} [options] Override http request option.
459
563
  * @throws {RequiredError}
460
564
  */
461
- listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
565
+ listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
462
566
  return __awaiter(this, void 0, void 0, function () {
463
567
  var localVarAxiosArgs;
464
568
  return __generator(this, function (_a) {
465
569
  switch (_a.label) {
466
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options)];
570
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options)];
467
571
  case 1:
468
572
  localVarAxiosArgs = _a.sent();
469
573
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -542,6 +646,7 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
542
646
  /**
543
647
  * 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.
544
648
  * @summary List product documents
649
+ * @param {string} productSlug
545
650
  * @param {string} [authorization] Bearer Token
546
651
  * @param {number} [pageSize] Page size
547
652
  * @param {string} [pageToken] Page token
@@ -552,8 +657,25 @@ var ProductDocumentsApiFactory = function (configuration, basePath, axios) {
552
657
  * @param {*} [options] Override http request option.
553
658
  * @throws {RequiredError}
554
659
  */
555
- listProductDocuments: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
556
- return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
660
+ listProductDocuments: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
661
+ return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
662
+ },
663
+ /**
664
+ * 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.
665
+ * @summary List product documents
666
+ * @param {string} productSlug
667
+ * @param {string} [authorization] Bearer Token
668
+ * @param {number} [pageSize] Page size
669
+ * @param {string} [pageToken] Page token
670
+ * @param {string} [filter] List filter
671
+ * @param {string} [search] Search query
672
+ * @param {string} [order] Ordering criteria
673
+ * @param {string} [expand] Extra fields to fetch
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ listProductDocuments_1: function (productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options) {
678
+ return localVarFp.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
557
679
  },
558
680
  /**
559
681
  * Upload a product document.
@@ -627,8 +749,19 @@ var ProductDocumentsApi = /** @class */ (function (_super) {
627
749
  */
628
750
  ProductDocumentsApi.prototype.listProductDocuments = function (requestParameters, options) {
629
751
  var _this = this;
630
- if (requestParameters === void 0) { requestParameters = {}; }
631
- return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
752
+ return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
753
+ };
754
+ /**
755
+ * 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.
756
+ * @summary List product documents
757
+ * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ * @memberof ProductDocumentsApi
761
+ */
762
+ ProductDocumentsApi.prototype.listProductDocuments_1 = function (requestParameters, options) {
763
+ var _this = this;
764
+ return (0, exports.ProductDocumentsApiFp)(this.configuration).listProductDocuments_1(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
632
765
  };
633
766
  /**
634
767
  * Upload a product document.
package/dist/base.js CHANGED
@@ -125,6 +125,7 @@ var BaseAPI = /** @class */ (function () {
125
125
  if (configuration) {
126
126
  this.configuration = configuration;
127
127
  this.basePath = configuration.basePath || this.basePath;
128
+ this.configuration.accessToken = this.tokenData.accessToken ? "Bearer ".concat(this.tokenData.accessToken) : '';
128
129
  }
129
130
  else {
130
131
  var _a = this.tokenData, accessToken = _a.accessToken, username = _a.username;
@@ -32,7 +32,7 @@ export interface CreateDocumentRequestDto {
32
32
  * @type {string}
33
33
  * @memberof CreateDocumentRequestDto
34
34
  */
35
- 'entityType': CreateDocumentRequestDtoEntityTypeEnum;
35
+ 'entityType': string;
36
36
  /**
37
37
  * Specifies the document creation strategy to be used, either synchronous or asynchronous.
38
38
  * @type {string}
@@ -112,17 +112,6 @@ export interface CreateDocumentRequestDto {
112
112
  */
113
113
  'engine'?: CreateDocumentRequestDtoEngineEnum;
114
114
  }
115
- export declare const CreateDocumentRequestDtoEntityTypeEnum: {
116
- readonly PolicyApplication: "policy_application";
117
- readonly PolicyContract: "policy_contract";
118
- readonly PolicyAddendum: "policy_addendum";
119
- readonly InitialInvoice: "initial_invoice";
120
- readonly CorrectionInvoice: "correction_invoice";
121
- readonly RecurringInvoice: "recurring_invoice";
122
- readonly SepaMandate: "sepa_mandate";
123
- readonly Static: "static";
124
- };
125
- export type CreateDocumentRequestDtoEntityTypeEnum = typeof CreateDocumentRequestDtoEntityTypeEnum[keyof typeof CreateDocumentRequestDtoEntityTypeEnum];
126
115
  export declare const CreateDocumentRequestDtoStrategyEnum: {
127
116
  readonly Sync: "Sync";
128
117
  readonly Async: "Async";
@@ -13,17 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = exports.CreateDocumentRequestDtoStrategyEnum = exports.CreateDocumentRequestDtoEntityTypeEnum = void 0;
17
- exports.CreateDocumentRequestDtoEntityTypeEnum = {
18
- PolicyApplication: 'policy_application',
19
- PolicyContract: 'policy_contract',
20
- PolicyAddendum: 'policy_addendum',
21
- InitialInvoice: 'initial_invoice',
22
- CorrectionInvoice: 'correction_invoice',
23
- RecurringInvoice: 'recurring_invoice',
24
- SepaMandate: 'sepa_mandate',
25
- Static: 'static'
26
- };
16
+ exports.CreateDocumentRequestDtoEngineEnum = exports.CreateDocumentRequestDtoContentTypeEnum = exports.CreateDocumentRequestDtoRequesterEnum = exports.CreateDocumentRequestDtoStrategyEnum = void 0;
27
17
  exports.CreateDocumentRequestDtoStrategyEnum = {
28
18
  Sync: 'Sync',
29
19
  Async: 'Async'
@@ -38,7 +38,7 @@ export interface DocumentClass {
38
38
  * @type {string}
39
39
  * @memberof DocumentClass
40
40
  */
41
- 'entityType': DocumentClassEntityTypeEnum;
41
+ 'entityType': string;
42
42
  /**
43
43
  * Payload used to replace variables in the template.
44
44
  * @type {object}
@@ -118,17 +118,6 @@ export interface DocumentClass {
118
118
  */
119
119
  'ern': string;
120
120
  }
121
- export declare const DocumentClassEntityTypeEnum: {
122
- readonly PolicyApplication: "policy_application";
123
- readonly PolicyContract: "policy_contract";
124
- readonly PolicyAddendum: "policy_addendum";
125
- readonly InitialInvoice: "initial_invoice";
126
- readonly CorrectionInvoice: "correction_invoice";
127
- readonly RecurringInvoice: "recurring_invoice";
128
- readonly SepaMandate: "sepa_mandate";
129
- readonly Static: "static";
130
- };
131
- export type DocumentClassEntityTypeEnum = typeof DocumentClassEntityTypeEnum[keyof typeof DocumentClassEntityTypeEnum];
132
121
  export declare const DocumentClassRequesterEnum: {
133
122
  readonly Accountservice: "accountservice";
134
123
  readonly Insuranceservice: "insuranceservice";
@@ -13,17 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.DocumentClassContentTypeEnum = exports.DocumentClassRequesterEnum = exports.DocumentClassEntityTypeEnum = void 0;
17
- exports.DocumentClassEntityTypeEnum = {
18
- PolicyApplication: 'policy_application',
19
- PolicyContract: 'policy_contract',
20
- PolicyAddendum: 'policy_addendum',
21
- InitialInvoice: 'initial_invoice',
22
- CorrectionInvoice: 'correction_invoice',
23
- RecurringInvoice: 'recurring_invoice',
24
- SepaMandate: 'sepa_mandate',
25
- Static: 'static'
26
- };
16
+ exports.DocumentClassContentTypeEnum = exports.DocumentClassRequesterEnum = void 0;
27
17
  exports.DocumentClassRequesterEnum = {
28
18
  Accountservice: 'accountservice',
29
19
  Insuranceservice: 'insuranceservice',
@@ -62,7 +62,7 @@ export interface DocxTemplateClass {
62
62
  * @type {string}
63
63
  * @memberof DocxTemplateClass
64
64
  */
65
- 'entityType': DocxTemplateClassEntityTypeEnum;
65
+ 'entityType': string;
66
66
  /**
67
67
  * Name of the file the end user will see when he downloads it.
68
68
  * @type {string}
@@ -88,14 +88,3 @@ export interface DocxTemplateClass {
88
88
  */
89
89
  'updatedAt': string;
90
90
  }
91
- export declare const DocxTemplateClassEntityTypeEnum: {
92
- readonly PolicyApplication: "policy_application";
93
- readonly PolicyContract: "policy_contract";
94
- readonly PolicyAddendum: "policy_addendum";
95
- readonly InitialInvoice: "initial_invoice";
96
- readonly CorrectionInvoice: "correction_invoice";
97
- readonly RecurringInvoice: "recurring_invoice";
98
- readonly SepaMandate: "sepa_mandate";
99
- readonly Static: "static";
100
- };
101
- export type DocxTemplateClassEntityTypeEnum = typeof DocxTemplateClassEntityTypeEnum[keyof typeof DocxTemplateClassEntityTypeEnum];
@@ -13,14 +13,3 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.DocxTemplateClassEntityTypeEnum = void 0;
17
- exports.DocxTemplateClassEntityTypeEnum = {
18
- PolicyApplication: 'policy_application',
19
- PolicyContract: 'policy_contract',
20
- PolicyAddendum: 'policy_addendum',
21
- InitialInvoice: 'initial_invoice',
22
- CorrectionInvoice: 'correction_invoice',
23
- RecurringInvoice: 'recurring_invoice',
24
- SepaMandate: 'sepa_mandate',
25
- Static: 'static'
26
- };
@@ -57,5 +57,4 @@ export * from './update-html-template-dto';
57
57
  export * from './update-layout-request-dto';
58
58
  export * from './update-layout-response-class';
59
59
  export * from './upload-docx-template-request-dto';
60
- export * from './upload-docx-template-response-class';
61
60
  export * from './upload-product-document-request-dto';
@@ -73,5 +73,4 @@ __exportStar(require("./update-html-template-dto"), exports);
73
73
  __exportStar(require("./update-layout-request-dto"), exports);
74
74
  __exportStar(require("./update-layout-response-class"), exports);
75
75
  __exportStar(require("./upload-docx-template-request-dto"), exports);
76
- __exportStar(require("./upload-docx-template-response-class"), exports);
77
76
  __exportStar(require("./upload-product-document-request-dto"), exports);
@@ -23,32 +23,32 @@ export interface InlineResponse200 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse200
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse200
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse200
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -23,32 +23,32 @@ export interface InlineResponse503 {
23
23
  'status'?: string;
24
24
  /**
25
25
  *
26
- * @type {{ [key: string]: { [key: string]: string; }; }}
26
+ * @type {{ [key: string]: { [key: string]: object; }; }}
27
27
  * @memberof InlineResponse503
28
28
  */
29
29
  'info'?: {
30
30
  [key: string]: {
31
- [key: string]: string;
31
+ [key: string]: object;
32
32
  };
33
33
  } | null;
34
34
  /**
35
35
  *
36
- * @type {{ [key: string]: { [key: string]: string; }; }}
36
+ * @type {{ [key: string]: { [key: string]: object; }; }}
37
37
  * @memberof InlineResponse503
38
38
  */
39
39
  'error'?: {
40
40
  [key: string]: {
41
- [key: string]: string;
41
+ [key: string]: object;
42
42
  };
43
43
  } | null;
44
44
  /**
45
45
  *
46
- * @type {{ [key: string]: { [key: string]: string; }; }}
46
+ * @type {{ [key: string]: { [key: string]: object; }; }}
47
47
  * @memberof InlineResponse503
48
48
  */
49
49
  'details'?: {
50
50
  [key: string]: {
51
- [key: string]: string;
51
+ [key: string]: object;
52
52
  };
53
53
  };
54
54
  }
@@ -64,7 +64,7 @@ export interface ProductDocumentClass {
64
64
  */
65
65
  's3Key': string;
66
66
  /**
67
- * Type of the document expressed with its file extension.
67
+ * Extension of the file.
68
68
  * @type {string}
69
69
  * @memberof ProductDocumentClass
70
70
  */
@@ -74,7 +74,13 @@ export interface ProductDocumentClass {
74
74
  * @type {string}
75
75
  * @memberof ProductDocumentClass
76
76
  */
77
- 'entityType': ProductDocumentClassEntityTypeEnum;
77
+ 'entityType': string;
78
+ /**
79
+ * The file name the end user will see when downloading it.
80
+ * @type {string}
81
+ * @memberof ProductDocumentClass
82
+ */
83
+ 'filename': string;
78
84
  /**
79
85
  * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
80
86
  * @type {string}
@@ -104,31 +110,8 @@ export declare const ProductDocumentClassContentTypeEnum: {
104
110
  readonly Pdf: "pdf";
105
111
  readonly Jpg: "jpg";
106
112
  readonly Png: "png";
107
- readonly Gz: "gz";
108
113
  readonly Csv: "csv";
109
114
  readonly Doc: "doc";
110
115
  readonly Docx: "docx";
111
- readonly Html: "html";
112
- readonly Json: "json";
113
- readonly Xml: "xml";
114
- readonly Txt: "txt";
115
- readonly Zip: "zip";
116
- readonly Tar: "tar";
117
- readonly Rar: "rar";
118
- readonly Mp4: "MP4";
119
- readonly Mov: "MOV";
120
- readonly Wmv: "WMV";
121
- readonly Avi: "AVI";
122
116
  };
123
117
  export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
124
- export declare const ProductDocumentClassEntityTypeEnum: {
125
- readonly PolicyApplication: "policy_application";
126
- readonly PolicyContract: "policy_contract";
127
- readonly PolicyAddendum: "policy_addendum";
128
- readonly InitialInvoice: "initial_invoice";
129
- readonly CorrectionInvoice: "correction_invoice";
130
- readonly RecurringInvoice: "recurring_invoice";
131
- readonly SepaMandate: "sepa_mandate";
132
- readonly Static: "static";
133
- };
134
- export type ProductDocumentClassEntityTypeEnum = typeof ProductDocumentClassEntityTypeEnum[keyof typeof ProductDocumentClassEntityTypeEnum];
@@ -13,34 +13,12 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ProductDocumentClassEntityTypeEnum = exports.ProductDocumentClassContentTypeEnum = void 0;
16
+ exports.ProductDocumentClassContentTypeEnum = void 0;
17
17
  exports.ProductDocumentClassContentTypeEnum = {
18
18
  Pdf: 'pdf',
19
19
  Jpg: 'jpg',
20
20
  Png: 'png',
21
- Gz: 'gz',
22
21
  Csv: 'csv',
23
22
  Doc: 'doc',
24
- Docx: 'docx',
25
- Html: 'html',
26
- Json: 'json',
27
- Xml: 'xml',
28
- Txt: 'txt',
29
- Zip: 'zip',
30
- Tar: 'tar',
31
- Rar: 'rar',
32
- Mp4: 'MP4',
33
- Mov: 'MOV',
34
- Wmv: 'WMV',
35
- Avi: 'AVI'
36
- };
37
- exports.ProductDocumentClassEntityTypeEnum = {
38
- PolicyApplication: 'policy_application',
39
- PolicyContract: 'policy_contract',
40
- PolicyAddendum: 'policy_addendum',
41
- InitialInvoice: 'initial_invoice',
42
- CorrectionInvoice: 'correction_invoice',
43
- RecurringInvoice: 'recurring_invoice',
44
- SepaMandate: 'sepa_mandate',
45
- Static: 'static'
23
+ Docx: 'docx'
46
24
  };
@@ -37,7 +37,7 @@ export interface CreateDocumentRequestDto {
37
37
  * @type {string}
38
38
  * @memberof CreateDocumentRequestDto
39
39
  */
40
- 'entityType': CreateDocumentRequestDtoEntityTypeEnum;
40
+ 'entityType': string;
41
41
  /**
42
42
  * Specifies the document creation strategy to be used, either synchronous or asynchronous.
43
43
  * @type {string}
@@ -118,18 +118,6 @@ export interface CreateDocumentRequestDto {
118
118
  'engine'?: CreateDocumentRequestDtoEngineEnum;
119
119
  }
120
120
 
121
- export const CreateDocumentRequestDtoEntityTypeEnum = {
122
- PolicyApplication: 'policy_application',
123
- PolicyContract: 'policy_contract',
124
- PolicyAddendum: 'policy_addendum',
125
- InitialInvoice: 'initial_invoice',
126
- CorrectionInvoice: 'correction_invoice',
127
- RecurringInvoice: 'recurring_invoice',
128
- SepaMandate: 'sepa_mandate',
129
- Static: 'static'
130
- } as const;
131
-
132
- export type CreateDocumentRequestDtoEntityTypeEnum = typeof CreateDocumentRequestDtoEntityTypeEnum[keyof typeof CreateDocumentRequestDtoEntityTypeEnum];
133
121
  export const CreateDocumentRequestDtoStrategyEnum = {
134
122
  Sync: 'Sync',
135
123
  Async: 'Async'
@@ -43,7 +43,7 @@ export interface DocumentClass {
43
43
  * @type {string}
44
44
  * @memberof DocumentClass
45
45
  */
46
- 'entityType': DocumentClassEntityTypeEnum;
46
+ 'entityType': string;
47
47
  /**
48
48
  * Payload used to replace variables in the template.
49
49
  * @type {object}
@@ -124,18 +124,6 @@ export interface DocumentClass {
124
124
  'ern': string;
125
125
  }
126
126
 
127
- export const DocumentClassEntityTypeEnum = {
128
- PolicyApplication: 'policy_application',
129
- PolicyContract: 'policy_contract',
130
- PolicyAddendum: 'policy_addendum',
131
- InitialInvoice: 'initial_invoice',
132
- CorrectionInvoice: 'correction_invoice',
133
- RecurringInvoice: 'recurring_invoice',
134
- SepaMandate: 'sepa_mandate',
135
- Static: 'static'
136
- } as const;
137
-
138
- export type DocumentClassEntityTypeEnum = typeof DocumentClassEntityTypeEnum[keyof typeof DocumentClassEntityTypeEnum];
139
127
  export const DocumentClassRequesterEnum = {
140
128
  Accountservice: 'accountservice',
141
129
  Insuranceservice: 'insuranceservice',
@@ -67,7 +67,7 @@ export interface DocxTemplateClass {
67
67
  * @type {string}
68
68
  * @memberof DocxTemplateClass
69
69
  */
70
- 'entityType': DocxTemplateClassEntityTypeEnum;
70
+ 'entityType': string;
71
71
  /**
72
72
  * Name of the file the end user will see when he downloads it.
73
73
  * @type {string}
@@ -94,17 +94,3 @@ export interface DocxTemplateClass {
94
94
  'updatedAt': string;
95
95
  }
96
96
 
97
- export const DocxTemplateClassEntityTypeEnum = {
98
- PolicyApplication: 'policy_application',
99
- PolicyContract: 'policy_contract',
100
- PolicyAddendum: 'policy_addendum',
101
- InitialInvoice: 'initial_invoice',
102
- CorrectionInvoice: 'correction_invoice',
103
- RecurringInvoice: 'recurring_invoice',
104
- SepaMandate: 'sepa_mandate',
105
- Static: 'static'
106
- } as const;
107
-
108
- export type DocxTemplateClassEntityTypeEnum = typeof DocxTemplateClassEntityTypeEnum[keyof typeof DocxTemplateClassEntityTypeEnum];
109
-
110
-
package/models/index.ts CHANGED
@@ -57,5 +57,4 @@ export * from './update-html-template-dto';
57
57
  export * from './update-layout-request-dto';
58
58
  export * from './update-layout-response-class';
59
59
  export * from './upload-docx-template-request-dto';
60
- export * from './upload-docx-template-response-class';
61
60
  export * from './upload-product-document-request-dto';