@emilgroup/document-sdk-node 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
17
17
  Navigate to the folder of your consuming project and run one of the following commands:
18
18
 
19
19
  ```
20
- npm install @emilgroup/document-sdk-node@1.4.0 --save
20
+ npm install @emilgroup/document-sdk-node@1.4.1 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk-node@1.4.0
24
+ yarn add @emilgroup/document-sdk-node@1.4.1
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -193,12 +193,13 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
193
193
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
194
194
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
195
195
  * @param {string} [filter] Filter response by productSlug, slug and name.
196
+ * @param {string} [search] Search document templates by name | slug
196
197
  * @param {string} [order] Order response by createdAt.
197
198
  * @param {string} [expand] Expand response by bodyTemplate.
198
199
  * @param {*} [options] Override http request option.
199
200
  * @throws {RequiredError}
200
201
  */
201
- listDocTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
+ listDocTemplates: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
202
203
  const localVarPath = `/documentservice/v1/doc-templates`;
203
204
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
204
205
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -229,6 +230,10 @@ export const DocumentTemplatesApiAxiosParamCreator = function (configuration?: C
229
230
  localVarQueryParameter['filter'] = filter;
230
231
  }
231
232
 
233
+ if (search !== undefined) {
234
+ localVarQueryParameter['search'] = search;
235
+ }
236
+
232
237
  if (order !== undefined) {
233
238
  localVarQueryParameter['order'] = order;
234
239
  }
@@ -357,13 +362,14 @@ export const DocumentTemplatesApiFp = function(configuration?: Configuration) {
357
362
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
358
363
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
359
364
  * @param {string} [filter] Filter response by productSlug, slug and name.
365
+ * @param {string} [search] Search document templates by name | slug
360
366
  * @param {string} [order] Order response by createdAt.
361
367
  * @param {string} [expand] Expand response by bodyTemplate.
362
368
  * @param {*} [options] Override http request option.
363
369
  * @throws {RequiredError}
364
370
  */
365
- async listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>> {
366
- const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options);
371
+ async listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>> {
372
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options);
367
373
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
368
374
  },
369
375
  /**
@@ -430,13 +436,14 @@ export const DocumentTemplatesApiFactory = function (configuration?: Configurati
430
436
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
431
437
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
432
438
  * @param {string} [filter] Filter response by productSlug, slug and name.
439
+ * @param {string} [search] Search document templates by name | slug
433
440
  * @param {string} [order] Order response by createdAt.
434
441
  * @param {string} [expand] Expand response by bodyTemplate.
435
442
  * @param {*} [options] Override http request option.
436
443
  * @throws {RequiredError}
437
444
  */
438
- listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass> {
439
- return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options).then((request) => request(axios, basePath));
445
+ listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass> {
446
+ return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
440
447
  },
441
448
  /**
442
449
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -557,6 +564,13 @@ export interface DocumentTemplatesApiListDocTemplatesRequest {
557
564
  */
558
565
  readonly filter?: string
559
566
 
567
+ /**
568
+ * Search document templates by name | slug
569
+ * @type {string}
570
+ * @memberof DocumentTemplatesApiListDocTemplates
571
+ */
572
+ readonly search?: string
573
+
560
574
  /**
561
575
  * Order response by createdAt.
562
576
  * @type {string}
@@ -652,7 +666,7 @@ export class DocumentTemplatesApi extends BaseAPI {
652
666
  * @memberof DocumentTemplatesApi
653
667
  */
654
668
  public listDocTemplates(requestParameters: DocumentTemplatesApiListDocTemplatesRequest = {}, options?: AxiosRequestConfig) {
655
- return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
669
+ return DocumentTemplatesApiFp(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
656
670
  }
657
671
 
658
672
  /**
@@ -59,12 +59,13 @@ export declare const DocumentTemplatesApiAxiosParamCreator: (configuration?: Con
59
59
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
60
60
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
61
61
  * @param {string} [filter] Filter response by productSlug, slug and name.
62
+ * @param {string} [search] Search document templates by name | slug
62
63
  * @param {string} [order] Order response by createdAt.
63
64
  * @param {string} [expand] Expand response by bodyTemplate.
64
65
  * @param {*} [options] Override http request option.
65
66
  * @throws {RequiredError}
66
67
  */
67
- listDocTemplates: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
+ listDocTemplates: (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
68
69
  /**
69
70
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
70
71
  * @summary Update the document template
@@ -116,12 +117,13 @@ export declare const DocumentTemplatesApiFp: (configuration?: Configuration) =>
116
117
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
117
118
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
118
119
  * @param {string} [filter] Filter response by productSlug, slug and name.
120
+ * @param {string} [search] Search document templates by name | slug
119
121
  * @param {string} [order] Order response by createdAt.
120
122
  * @param {string} [expand] Expand response by bodyTemplate.
121
123
  * @param {*} [options] Override http request option.
122
124
  * @throws {RequiredError}
123
125
  */
124
- listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>>;
126
+ listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListDocTemplatesResponseClass>>;
125
127
  /**
126
128
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
127
129
  * @summary Update the document template
@@ -173,12 +175,13 @@ export declare const DocumentTemplatesApiFactory: (configuration?: Configuration
173
175
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
174
176
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
175
177
  * @param {string} [filter] Filter response by productSlug, slug and name.
178
+ * @param {string} [search] Search document templates by name | slug
176
179
  * @param {string} [order] Order response by createdAt.
177
180
  * @param {string} [expand] Expand response by bodyTemplate.
178
181
  * @param {*} [options] Override http request option.
179
182
  * @throws {RequiredError}
180
183
  */
181
- listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass>;
184
+ listDocTemplates(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListDocTemplatesResponseClass>;
182
185
  /**
183
186
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
184
187
  * @summary Update the document template
@@ -283,6 +286,12 @@ export interface DocumentTemplatesApiListDocTemplatesRequest {
283
286
  * @memberof DocumentTemplatesApiListDocTemplates
284
287
  */
285
288
  readonly filter?: string;
289
+ /**
290
+ * Search document templates by name | slug
291
+ * @type {string}
292
+ * @memberof DocumentTemplatesApiListDocTemplates
293
+ */
294
+ readonly search?: string;
286
295
  /**
287
296
  * Order response by createdAt.
288
297
  * @type {string}
@@ -252,12 +252,13 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
252
252
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
253
253
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
254
254
  * @param {string} [filter] Filter response by productSlug, slug and name.
255
+ * @param {string} [search] Search document templates by name | slug
255
256
  * @param {string} [order] Order response by createdAt.
256
257
  * @param {string} [expand] Expand response by bodyTemplate.
257
258
  * @param {*} [options] Override http request option.
258
259
  * @throws {RequiredError}
259
260
  */
260
- listDocTemplates: function (authorization, pageSize, pageToken, filter, order, expand, options) {
261
+ listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
261
262
  if (options === void 0) { options = {}; }
262
263
  return __awaiter(_this, void 0, void 0, function () {
263
264
  var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -289,6 +290,9 @@ var DocumentTemplatesApiAxiosParamCreator = function (configuration) {
289
290
  if (filter !== undefined) {
290
291
  localVarQueryParameter['filter'] = filter;
291
292
  }
293
+ if (search !== undefined) {
294
+ localVarQueryParameter['search'] = search;
295
+ }
292
296
  if (order !== undefined) {
293
297
  localVarQueryParameter['order'] = order;
294
298
  }
@@ -443,17 +447,18 @@ var DocumentTemplatesApiFp = function (configuration) {
443
447
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
444
448
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
445
449
  * @param {string} [filter] Filter response by productSlug, slug and name.
450
+ * @param {string} [search] Search document templates by name | slug
446
451
  * @param {string} [order] Order response by createdAt.
447
452
  * @param {string} [expand] Expand response by bodyTemplate.
448
453
  * @param {*} [options] Override http request option.
449
454
  * @throws {RequiredError}
450
455
  */
451
- listDocTemplates: function (authorization, pageSize, pageToken, filter, order, expand, options) {
456
+ listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
452
457
  return __awaiter(this, void 0, void 0, function () {
453
458
  var localVarAxiosArgs;
454
459
  return __generator(this, function (_a) {
455
460
  switch (_a.label) {
456
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options)];
461
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options)];
457
462
  case 1:
458
463
  localVarAxiosArgs = _a.sent();
459
464
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -534,13 +539,14 @@ var DocumentTemplatesApiFactory = function (configuration, basePath, axios) {
534
539
  * @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
535
540
  * @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken&#x3D;1, your subsequent call can include pageToken&#x3D;2 in order to fetch the next page of the list.
536
541
  * @param {string} [filter] Filter response by productSlug, slug and name.
542
+ * @param {string} [search] Search document templates by name | slug
537
543
  * @param {string} [order] Order response by createdAt.
538
544
  * @param {string} [expand] Expand response by bodyTemplate.
539
545
  * @param {*} [options] Override http request option.
540
546
  * @throws {RequiredError}
541
547
  */
542
- listDocTemplates: function (authorization, pageSize, pageToken, filter, order, expand, options) {
543
- return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, order, expand, options).then(function (request) { return request(axios, basePath); });
548
+ listDocTemplates: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
549
+ return localVarFp.listDocTemplates(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
544
550
  },
545
551
  /**
546
552
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -615,7 +621,7 @@ var DocumentTemplatesApi = /** @class */ (function (_super) {
615
621
  DocumentTemplatesApi.prototype.listDocTemplates = function (requestParameters, options) {
616
622
  var _this = this;
617
623
  if (requestParameters === void 0) { requestParameters = {}; }
618
- return (0, exports.DocumentTemplatesApiFp)(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
624
+ return (0, exports.DocumentTemplatesApiFp)(this.configuration).listDocTemplates(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
619
625
  };
620
626
  /**
621
627
  * Updates the specified document template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
@@ -33,6 +33,12 @@ export interface ListDocTemplateRequestDto {
33
33
  * @memberof ListDocTemplateRequestDto
34
34
  */
35
35
  'filter'?: string;
36
+ /**
37
+ *
38
+ * @type {string}
39
+ * @memberof ListDocTemplateRequestDto
40
+ */
41
+ 'search'?: string;
36
42
  /**
37
43
  *
38
44
  * @type {string}
@@ -63,12 +63,24 @@ export interface ProductDocumentClass {
63
63
  * @memberof ProductDocumentClass
64
64
  */
65
65
  'contentType': ProductDocumentClassContentTypeEnum;
66
+ /**
67
+ * Product Document entity type.
68
+ * @type {string}
69
+ * @memberof ProductDocumentClass
70
+ */
71
+ 'entityType': ProductDocumentClassEntityTypeEnum;
66
72
  /**
67
73
  * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
68
74
  * @type {string}
69
75
  * @memberof ProductDocumentClass
70
76
  */
71
77
  'productSlug': string;
78
+ /**
79
+ * Product document filename
80
+ * @type {string}
81
+ * @memberof ProductDocumentClass
82
+ */
83
+ 'filename'?: string;
72
84
  /**
73
85
  * Time at which the object was created.
74
86
  * @type {string}
@@ -97,3 +109,14 @@ export declare const ProductDocumentClassContentTypeEnum: {
97
109
  readonly Avi: "AVI";
98
110
  };
99
111
  export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
112
+ export declare const ProductDocumentClassEntityTypeEnum: {
113
+ readonly PolicyApplication: "policy_application";
114
+ readonly PolicyContract: "policy_contract";
115
+ readonly PolicyAddendum: "policy_addendum";
116
+ readonly InitialInvoice: "initial_invoice";
117
+ readonly CorrectionInvoice: "correction_invoice";
118
+ readonly RecurringInvoice: "recurring_invoice";
119
+ readonly SepaMandate: "sepa_mandate";
120
+ readonly Static: "static";
121
+ };
122
+ export type ProductDocumentClassEntityTypeEnum = typeof ProductDocumentClassEntityTypeEnum[keyof typeof ProductDocumentClassEntityTypeEnum];
@@ -13,7 +13,7 @@
13
13
  * Do not edit the class manually.
14
14
  */
15
15
  Object.defineProperty(exports, "__esModule", { value: true });
16
- exports.ProductDocumentClassContentTypeEnum = void 0;
16
+ exports.ProductDocumentClassEntityTypeEnum = exports.ProductDocumentClassContentTypeEnum = void 0;
17
17
  exports.ProductDocumentClassContentTypeEnum = {
18
18
  Pdf: 'pdf',
19
19
  Jpg: 'jpg',
@@ -34,3 +34,13 @@ exports.ProductDocumentClassContentTypeEnum = {
34
34
  Wmv: 'WMV',
35
35
  Avi: 'AVI'
36
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'
46
+ };
@@ -45,6 +45,12 @@ export interface UploadProductDocumentRequestDto {
45
45
  * @memberof UploadProductDocumentRequestDto
46
46
  */
47
47
  'type': string;
48
+ /**
49
+ * Entity type of the product document.
50
+ * @type {string}
51
+ * @memberof UploadProductDocumentRequestDto
52
+ */
53
+ 'entityType': string;
48
54
  /**
49
55
  * Id of the product version, and is optional. If not provided, the document will be attached to the latest version of the product.
50
56
  * @type {number}
@@ -38,6 +38,12 @@ export interface ListDocTemplateRequestDto {
38
38
  * @memberof ListDocTemplateRequestDto
39
39
  */
40
40
  'filter'?: string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof ListDocTemplateRequestDto
45
+ */
46
+ 'search'?: string;
41
47
  /**
42
48
  *
43
49
  * @type {string}
@@ -68,12 +68,24 @@ export interface ProductDocumentClass {
68
68
  * @memberof ProductDocumentClass
69
69
  */
70
70
  'contentType': ProductDocumentClassContentTypeEnum;
71
+ /**
72
+ * Product Document entity type.
73
+ * @type {string}
74
+ * @memberof ProductDocumentClass
75
+ */
76
+ 'entityType': ProductDocumentClassEntityTypeEnum;
71
77
  /**
72
78
  * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
73
79
  * @type {string}
74
80
  * @memberof ProductDocumentClass
75
81
  */
76
82
  'productSlug': string;
83
+ /**
84
+ * Product document filename
85
+ * @type {string}
86
+ * @memberof ProductDocumentClass
87
+ */
88
+ 'filename'?: string;
77
89
  /**
78
90
  * Time at which the object was created.
79
91
  * @type {string}
@@ -104,5 +116,17 @@ export const ProductDocumentClassContentTypeEnum = {
104
116
  } as const;
105
117
 
106
118
  export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
119
+ export const ProductDocumentClassEntityTypeEnum = {
120
+ PolicyApplication: 'policy_application',
121
+ PolicyContract: 'policy_contract',
122
+ PolicyAddendum: 'policy_addendum',
123
+ InitialInvoice: 'initial_invoice',
124
+ CorrectionInvoice: 'correction_invoice',
125
+ RecurringInvoice: 'recurring_invoice',
126
+ SepaMandate: 'sepa_mandate',
127
+ Static: 'static'
128
+ } as const;
129
+
130
+ export type ProductDocumentClassEntityTypeEnum = typeof ProductDocumentClassEntityTypeEnum[keyof typeof ProductDocumentClassEntityTypeEnum];
107
131
 
108
132
 
@@ -50,6 +50,12 @@ export interface UploadProductDocumentRequestDto {
50
50
  * @memberof UploadProductDocumentRequestDto
51
51
  */
52
52
  'type': string;
53
+ /**
54
+ * Entity type of the product document.
55
+ * @type {string}
56
+ * @memberof UploadProductDocumentRequestDto
57
+ */
58
+ 'entityType': string;
53
59
  /**
54
60
  * Id of the product version, and is optional. If not provided, the document will be attached to the latest version of the product.
55
61
  * @type {number}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk-node",
3
- "version": "1.4.0",
3
+ "version": "1.4.1",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [