@emilgroup/document-sdk 1.12.0 → 1.12.2

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.
@@ -77,7 +77,6 @@ models/update-html-template-dto.ts
77
77
  models/update-layout-request-dto.ts
78
78
  models/update-layout-response-class.ts
79
79
  models/upload-docx-template-request-dto.ts
80
- models/upload-docx-template-response-class.ts
81
80
  models/upload-product-document-request-dto.ts
82
81
  package.json
83
82
  tsconfig.json
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@1.12.0 --save
20
+ npm install @emilgroup/document-sdk@1.12.2 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/document-sdk@1.12.0
24
+ yarn add @emilgroup/document-sdk@1.12.2
25
25
  ```
26
26
 
27
27
  And then you can import `DocumentsApi`.
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { CreatePresignedPostResponseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { DeleteResponseClass } from '../models';
25
27
  // @ts-ignore
26
28
  import { GetDocxTemplateDownloadUrlResponseClass } from '../models';
@@ -34,8 +36,6 @@ import { SharedUpdateDocxTemplateRequestDto } from '../models';
34
36
  import { UpdateDocxTemplateResponseClass } from '../models';
35
37
  // @ts-ignore
36
38
  import { UploadDocxTemplateRequestDto } from '../models';
37
- // @ts-ignore
38
- import { UploadDocxTemplateResponseClass } from '../models';
39
39
  /**
40
40
  * DocxTemplatesApi - axios parameter creator
41
41
  * @export
@@ -430,7 +430,7 @@ export const DocxTemplatesApiFp = function(configuration?: Configuration) {
430
430
  * @param {*} [options] Override http request option.
431
431
  * @throws {RequiredError}
432
432
  */
433
- async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UploadDocxTemplateResponseClass>> {
433
+ async uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
434
434
  const localVarAxiosArgs = await localVarAxiosParamCreator.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options);
435
435
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
436
436
  },
@@ -513,7 +513,7 @@ export const DocxTemplatesApiFactory = function (configuration?: Configuration,
513
513
  * @param {*} [options] Override http request option.
514
514
  * @throws {RequiredError}
515
515
  */
516
- uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<UploadDocxTemplateResponseClass> {
516
+ uploadDocxTemplate(uploadDocxTemplateRequestDto: UploadDocxTemplateRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
517
517
  return localVarFp.uploadDocxTemplate(uploadDocxTemplateRequestDto, authorization, options).then((request) => request(axios, basePath));
518
518
  },
519
519
  };
@@ -21,14 +21,14 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { CreatePresignedPostResponseClass } from '../models';
25
+ // @ts-ignore
24
26
  import { GetProductDocumentDownloadUrlResponseClass } from '../models';
25
27
  // @ts-ignore
26
28
  import { GetProductDocumentResponseClass } from '../models';
27
29
  // @ts-ignore
28
30
  import { ListProductDocumentsResponseClass } from '../models';
29
31
  // @ts-ignore
30
- import { ProductDocumentClass } from '../models';
31
- // @ts-ignore
32
32
  import { UploadProductDocumentRequestDto } from '../models';
33
33
  /**
34
34
  * ProductDocumentsApi - axios parameter creator
@@ -186,6 +186,82 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
186
186
  /**
187
187
  * 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.
188
188
  * @summary List product documents
189
+ * @param {string} productSlug
190
+ * @param {string} [authorization] Bearer Token
191
+ * @param {number} [pageSize] Page size
192
+ * @param {string} [pageToken] Page token
193
+ * @param {string} [filter] List filter
194
+ * @param {string} [search] Search query
195
+ * @param {string} [order] Ordering criteria
196
+ * @param {string} [expand] Extra fields to fetch
197
+ * @param {*} [options] Override http request option.
198
+ * @throws {RequiredError}
199
+ */
200
+ listProductDocuments: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
201
+ // verify required parameter 'productSlug' is not null or undefined
202
+ assertParamExists('listProductDocuments', 'productSlug', productSlug)
203
+ const localVarPath = `/documentservice/v1/documents/product/{productSlug}`
204
+ .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
205
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
206
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
207
+ let baseOptions;
208
+ let baseAccessToken;
209
+ if (configuration) {
210
+ baseOptions = configuration.baseOptions;
211
+ baseAccessToken = configuration.accessToken;
212
+ }
213
+
214
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
215
+ const localVarHeaderParameter = {} as any;
216
+ const localVarQueryParameter = {} as any;
217
+
218
+ // authentication bearer required
219
+ // http bearer authentication required
220
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
221
+
222
+ if (pageSize !== undefined) {
223
+ localVarQueryParameter['pageSize'] = pageSize;
224
+ }
225
+
226
+ if (pageToken !== undefined) {
227
+ localVarQueryParameter['pageToken'] = pageToken;
228
+ }
229
+
230
+ if (filter !== undefined) {
231
+ localVarQueryParameter['filter'] = filter;
232
+ }
233
+
234
+ if (search !== undefined) {
235
+ localVarQueryParameter['search'] = search;
236
+ }
237
+
238
+ if (order !== undefined) {
239
+ localVarQueryParameter['order'] = order;
240
+ }
241
+
242
+ if (expand !== undefined) {
243
+ localVarQueryParameter['expand'] = expand;
244
+ }
245
+
246
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
247
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
248
+ }
249
+
250
+
251
+
252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
255
+
256
+ return {
257
+ url: toPathString(localVarUrlObj),
258
+ options: localVarRequestOptions,
259
+ };
260
+ },
261
+ /**
262
+ * 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.
263
+ * @summary List product documents
264
+ * @param {string} productSlug
189
265
  * @param {string} [authorization] Bearer Token
190
266
  * @param {number} [pageSize] Page size
191
267
  * @param {string} [pageToken] Page token
@@ -196,8 +272,11 @@ export const ProductDocumentsApiAxiosParamCreator = function (configuration?: Co
196
272
  * @param {*} [options] Override http request option.
197
273
  * @throws {RequiredError}
198
274
  */
199
- listProductDocuments: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
200
- const localVarPath = `/documentservice/v1/documents/product`;
275
+ listProductDocuments_1: async (productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
276
+ // verify required parameter 'productSlug' is not null or undefined
277
+ assertParamExists('listProductDocuments_1', 'productSlug', productSlug)
278
+ const localVarPath = `/documentservice/v1/documents/product`
279
+ .replace(`{${"productSlug"}}`, encodeURIComponent(String(productSlug)));
201
280
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
202
281
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
203
282
  let baseOptions;
@@ -357,6 +436,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
357
436
  /**
358
437
  * 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.
359
438
  * @summary List product documents
439
+ * @param {string} productSlug
360
440
  * @param {string} [authorization] Bearer Token
361
441
  * @param {number} [pageSize] Page size
362
442
  * @param {string} [pageToken] Page token
@@ -367,8 +447,26 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
367
447
  * @param {*} [options] Override http request option.
368
448
  * @throws {RequiredError}
369
449
  */
370
- async listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
371
- const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options);
450
+ async listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
451
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options);
452
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
453
+ },
454
+ /**
455
+ * 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.
456
+ * @summary List product documents
457
+ * @param {string} productSlug
458
+ * @param {string} [authorization] Bearer Token
459
+ * @param {number} [pageSize] Page size
460
+ * @param {string} [pageToken] Page token
461
+ * @param {string} [filter] List filter
462
+ * @param {string} [search] Search query
463
+ * @param {string} [order] Ordering criteria
464
+ * @param {string} [expand] Extra fields to fetch
465
+ * @param {*} [options] Override http request option.
466
+ * @throws {RequiredError}
467
+ */
468
+ async listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListProductDocumentsResponseClass>> {
469
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options);
372
470
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
373
471
  },
374
472
  /**
@@ -380,7 +478,7 @@ export const ProductDocumentsApiFp = function(configuration?: Configuration) {
380
478
  * @param {*} [options] Override http request option.
381
479
  * @throws {RequiredError}
382
480
  */
383
- async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ProductDocumentClass>> {
481
+ async uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePresignedPostResponseClass>> {
384
482
  const localVarAxiosArgs = await localVarAxiosParamCreator.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options);
385
483
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
386
484
  },
@@ -433,6 +531,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
433
531
  /**
434
532
  * 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.
435
533
  * @summary List product documents
534
+ * @param {string} productSlug
436
535
  * @param {string} [authorization] Bearer Token
437
536
  * @param {number} [pageSize] Page size
438
537
  * @param {string} [pageToken] Page token
@@ -443,8 +542,25 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
443
542
  * @param {*} [options] Override http request option.
444
543
  * @throws {RequiredError}
445
544
  */
446
- listProductDocuments(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
447
- return localVarFp.listProductDocuments(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
545
+ listProductDocuments(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
546
+ return localVarFp.listProductDocuments(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
547
+ },
548
+ /**
549
+ * 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.
550
+ * @summary List product documents
551
+ * @param {string} productSlug
552
+ * @param {string} [authorization] Bearer Token
553
+ * @param {number} [pageSize] Page size
554
+ * @param {string} [pageToken] Page token
555
+ * @param {string} [filter] List filter
556
+ * @param {string} [search] Search query
557
+ * @param {string} [order] Ordering criteria
558
+ * @param {string} [expand] Extra fields to fetch
559
+ * @param {*} [options] Override http request option.
560
+ * @throws {RequiredError}
561
+ */
562
+ listProductDocuments_1(productSlug: string, authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListProductDocumentsResponseClass> {
563
+ return localVarFp.listProductDocuments_1(productSlug, authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
448
564
  },
449
565
  /**
450
566
  * Upload a product document.
@@ -455,7 +571,7 @@ export const ProductDocumentsApiFactory = function (configuration?: Configuratio
455
571
  * @param {*} [options] Override http request option.
456
572
  * @throws {RequiredError}
457
573
  */
458
- uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<ProductDocumentClass> {
574
+ uploadProductDocument(productSlug: string, uploadProductDocumentRequestDto: UploadProductDocumentRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePresignedPostResponseClass> {
459
575
  return localVarFp.uploadProductDocument(productSlug, uploadProductDocumentRequestDto, authorization, options).then((request) => request(axios, basePath));
460
576
  },
461
577
  };
@@ -551,6 +667,13 @@ export interface ProductDocumentsApiGetProductDocumentRequest {
551
667
  * @interface ProductDocumentsApiListProductDocumentsRequest
552
668
  */
553
669
  export interface ProductDocumentsApiListProductDocumentsRequest {
670
+ /**
671
+ *
672
+ * @type {string}
673
+ * @memberof ProductDocumentsApiListProductDocuments
674
+ */
675
+ readonly productSlug: string
676
+
554
677
  /**
555
678
  * Bearer Token
556
679
  * @type {string}
@@ -601,6 +724,69 @@ export interface ProductDocumentsApiListProductDocumentsRequest {
601
724
  readonly expand?: string
602
725
  }
603
726
 
727
+ /**
728
+ * Request parameters for listProductDocuments_1 operation in ProductDocumentsApi.
729
+ * @export
730
+ * @interface ProductDocumentsApiListProductDocuments0Request
731
+ */
732
+ export interface ProductDocumentsApiListProductDocuments0Request {
733
+ /**
734
+ *
735
+ * @type {string}
736
+ * @memberof ProductDocumentsApiListProductDocuments0
737
+ */
738
+ readonly productSlug: string
739
+
740
+ /**
741
+ * Bearer Token
742
+ * @type {string}
743
+ * @memberof ProductDocumentsApiListProductDocuments0
744
+ */
745
+ readonly authorization?: string
746
+
747
+ /**
748
+ * Page size
749
+ * @type {number}
750
+ * @memberof ProductDocumentsApiListProductDocuments0
751
+ */
752
+ readonly pageSize?: number
753
+
754
+ /**
755
+ * Page token
756
+ * @type {string}
757
+ * @memberof ProductDocumentsApiListProductDocuments0
758
+ */
759
+ readonly pageToken?: string
760
+
761
+ /**
762
+ * List filter
763
+ * @type {string}
764
+ * @memberof ProductDocumentsApiListProductDocuments0
765
+ */
766
+ readonly filter?: string
767
+
768
+ /**
769
+ * Search query
770
+ * @type {string}
771
+ * @memberof ProductDocumentsApiListProductDocuments0
772
+ */
773
+ readonly search?: string
774
+
775
+ /**
776
+ * Ordering criteria
777
+ * @type {string}
778
+ * @memberof ProductDocumentsApiListProductDocuments0
779
+ */
780
+ readonly order?: string
781
+
782
+ /**
783
+ * Extra fields to fetch
784
+ * @type {string}
785
+ * @memberof ProductDocumentsApiListProductDocuments0
786
+ */
787
+ readonly expand?: string
788
+ }
789
+
604
790
  /**
605
791
  * Request parameters for uploadProductDocument operation in ProductDocumentsApi.
606
792
  * @export
@@ -680,8 +866,20 @@ export class ProductDocumentsApi extends BaseAPI {
680
866
  * @throws {RequiredError}
681
867
  * @memberof ProductDocumentsApi
682
868
  */
683
- public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest = {}, options?: AxiosRequestConfig) {
684
- return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
869
+ public listProductDocuments(requestParameters: ProductDocumentsApiListProductDocumentsRequest, options?: AxiosRequestConfig) {
870
+ return ProductDocumentsApiFp(this.configuration).listProductDocuments(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
871
+ }
872
+
873
+ /**
874
+ * 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.
875
+ * @summary List product documents
876
+ * @param {ProductDocumentsApiListProductDocuments0Request} requestParameters Request parameters.
877
+ * @param {*} [options] Override http request option.
878
+ * @throws {RequiredError}
879
+ * @memberof ProductDocumentsApi
880
+ */
881
+ public listProductDocuments_1(requestParameters: ProductDocumentsApiListProductDocuments0Request, options?: AxiosRequestConfig) {
882
+ return ProductDocumentsApiFp(this.configuration).listProductDocuments_1(requestParameters.productSlug, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
685
883
  }
686
884
 
687
885
  /**
@@ -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';
@@ -28,21 +28,21 @@ export interface InlineResponse200 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: string; }; }}
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
32
  * @memberof InlineResponse200
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: string; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
38
  * @memberof InlineResponse200
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: string; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: string; }; }}
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
44
  * @memberof InlineResponse200
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: string; }; };
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
47
  }
48
48
 
@@ -28,21 +28,21 @@ export interface InlineResponse503 {
28
28
  'status'?: string;
29
29
  /**
30
30
  *
31
- * @type {{ [key: string]: { [key: string]: string; }; }}
31
+ * @type {{ [key: string]: { [key: string]: object; }; }}
32
32
  * @memberof InlineResponse503
33
33
  */
34
- 'info'?: { [key: string]: { [key: string]: string; }; } | null;
34
+ 'info'?: { [key: string]: { [key: string]: object; }; } | null;
35
35
  /**
36
36
  *
37
- * @type {{ [key: string]: { [key: string]: string; }; }}
37
+ * @type {{ [key: string]: { [key: string]: object; }; }}
38
38
  * @memberof InlineResponse503
39
39
  */
40
- 'error'?: { [key: string]: { [key: string]: string; }; } | null;
40
+ 'error'?: { [key: string]: { [key: string]: object; }; } | null;
41
41
  /**
42
42
  *
43
- * @type {{ [key: string]: { [key: string]: string; }; }}
43
+ * @type {{ [key: string]: { [key: string]: object; }; }}
44
44
  * @memberof InlineResponse503
45
45
  */
46
- 'details'?: { [key: string]: { [key: string]: string; }; };
46
+ 'details'?: { [key: string]: { [key: string]: object; }; };
47
47
  }
48
48
 
@@ -69,7 +69,7 @@ export interface ProductDocumentClass {
69
69
  */
70
70
  's3Key': string;
71
71
  /**
72
- * Type of the document expressed with its file extension.
72
+ * Extension of the file.
73
73
  * @type {string}
74
74
  * @memberof ProductDocumentClass
75
75
  */
@@ -79,7 +79,13 @@ export interface ProductDocumentClass {
79
79
  * @type {string}
80
80
  * @memberof ProductDocumentClass
81
81
  */
82
- 'entityType': ProductDocumentClassEntityTypeEnum;
82
+ 'entityType': string;
83
+ /**
84
+ * The file name the end user will see when downloading it.
85
+ * @type {string}
86
+ * @memberof ProductDocumentClass
87
+ */
88
+ 'filename': string;
83
89
  /**
84
90
  * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
85
91
  * @type {string}
@@ -110,35 +116,11 @@ export const ProductDocumentClassContentTypeEnum = {
110
116
  Pdf: 'pdf',
111
117
  Jpg: 'jpg',
112
118
  Png: 'png',
113
- Gz: 'gz',
114
119
  Csv: 'csv',
115
120
  Doc: 'doc',
116
- Docx: 'docx',
117
- Html: 'html',
118
- Json: 'json',
119
- Xml: 'xml',
120
- Txt: 'txt',
121
- Zip: 'zip',
122
- Tar: 'tar',
123
- Rar: 'rar',
124
- Mp4: 'MP4',
125
- Mov: 'MOV',
126
- Wmv: 'WMV',
127
- Avi: 'AVI'
121
+ Docx: 'docx'
128
122
  } as const;
129
123
 
130
124
  export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
131
- export const ProductDocumentClassEntityTypeEnum = {
132
- PolicyApplication: 'policy_application',
133
- PolicyContract: 'policy_contract',
134
- PolicyAddendum: 'policy_addendum',
135
- InitialInvoice: 'initial_invoice',
136
- CorrectionInvoice: 'correction_invoice',
137
- RecurringInvoice: 'recurring_invoice',
138
- SepaMandate: 'sepa_mandate',
139
- Static: 'static'
140
- } as const;
141
-
142
- export type ProductDocumentClassEntityTypeEnum = typeof ProductDocumentClassEntityTypeEnum[keyof typeof ProductDocumentClassEntityTypeEnum];
143
125
 
144
126
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/document-sdk",
3
- "version": "1.12.0",
3
+ "version": "1.12.2",
4
4
  "description": "OpenAPI client for @emilgroup/document-sdk",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -1,36 +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 UploadDocxTemplateResponseClass
21
- */
22
- export interface UploadDocxTemplateResponseClass {
23
- /**
24
- * Pre-signed url for uploading the docx template.
25
- * @type {string}
26
- * @memberof UploadDocxTemplateResponseClass
27
- */
28
- 'url': string;
29
- /**
30
- * Upload document fields.
31
- * @type {object}
32
- * @memberof UploadDocxTemplateResponseClass
33
- */
34
- 'fields': object;
35
- }
36
-