@emilgroup/document-sdk-node 1.12.2 → 1.12.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.
- package/.openapi-generator/FILES +1 -0
- package/README.md +2 -2
- package/api/docx-templates-api.ts +4 -4
- package/api/product-documents-api.ts +12 -210
- package/dist/api/docx-templates-api.d.ts +4 -4
- package/dist/api/product-documents-api.d.ts +8 -126
- package/dist/api/product-documents-api.js +8 -141
- package/dist/models/create-document-request-dto.d.ts +12 -1
- package/dist/models/create-document-request-dto.js +11 -1
- package/dist/models/document-class.d.ts +12 -1
- package/dist/models/document-class.js +11 -1
- package/dist/models/docx-template-class.d.ts +12 -1
- package/dist/models/docx-template-class.js +11 -0
- package/dist/models/index.d.ts +1 -0
- package/dist/models/index.js +1 -0
- package/dist/models/inline-response200.d.ts +6 -6
- package/dist/models/inline-response503.d.ts +6 -6
- package/dist/models/product-document-class.d.ts +25 -8
- package/dist/models/product-document-class.js +24 -2
- package/dist/models/upload-docx-template-response-class.d.ts +30 -0
- package/dist/models/upload-docx-template-response-class.js +15 -0
- package/models/create-document-request-dto.ts +13 -1
- package/models/document-class.ts +13 -1
- package/models/docx-template-class.ts +15 -1
- package/models/index.ts +1 -0
- package/models/inline-response200.ts +6 -6
- package/models/inline-response503.ts +6 -6
- package/models/product-document-class.ts +27 -9
- package/models/upload-docx-template-response-class.ts +36 -0
- package/package.json +1 -1
|
@@ -67,7 +67,7 @@ export interface DocxTemplateClass {
|
|
|
67
67
|
* @type {string}
|
|
68
68
|
* @memberof DocxTemplateClass
|
|
69
69
|
*/
|
|
70
|
-
'entityType':
|
|
70
|
+
'entityType': DocxTemplateClassEntityTypeEnum;
|
|
71
71
|
/**
|
|
72
72
|
* Name of the file the end user will see when he downloads it.
|
|
73
73
|
* @type {string}
|
|
@@ -94,3 +94,17 @@ 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,4 +57,5 @@ 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';
|
|
60
61
|
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]:
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
32
32
|
* @memberof InlineResponse200
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
38
38
|
* @memberof InlineResponse200
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
44
44
|
* @memberof InlineResponse200
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: string; }; };
|
|
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]:
|
|
31
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
32
32
|
* @memberof InlineResponse503
|
|
33
33
|
*/
|
|
34
|
-
'info'?: { [key: string]: { [key: string]:
|
|
34
|
+
'info'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
35
35
|
/**
|
|
36
36
|
*
|
|
37
|
-
* @type {{ [key: string]: { [key: string]:
|
|
37
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
38
38
|
* @memberof InlineResponse503
|
|
39
39
|
*/
|
|
40
|
-
'error'?: { [key: string]: { [key: string]:
|
|
40
|
+
'error'?: { [key: string]: { [key: string]: string; }; } | null;
|
|
41
41
|
/**
|
|
42
42
|
*
|
|
43
|
-
* @type {{ [key: string]: { [key: string]:
|
|
43
|
+
* @type {{ [key: string]: { [key: string]: string; }; }}
|
|
44
44
|
* @memberof InlineResponse503
|
|
45
45
|
*/
|
|
46
|
-
'details'?: { [key: string]: { [key: string]:
|
|
46
|
+
'details'?: { [key: string]: { [key: string]: string; }; };
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -69,7 +69,7 @@ export interface ProductDocumentClass {
|
|
|
69
69
|
*/
|
|
70
70
|
's3Key': string;
|
|
71
71
|
/**
|
|
72
|
-
*
|
|
72
|
+
* Type of the document expressed with its file extension.
|
|
73
73
|
* @type {string}
|
|
74
74
|
* @memberof ProductDocumentClass
|
|
75
75
|
*/
|
|
@@ -79,13 +79,7 @@ export interface ProductDocumentClass {
|
|
|
79
79
|
* @type {string}
|
|
80
80
|
* @memberof ProductDocumentClass
|
|
81
81
|
*/
|
|
82
|
-
'entityType':
|
|
83
|
-
/**
|
|
84
|
-
* The file name the end user will see when downloading it.
|
|
85
|
-
* @type {string}
|
|
86
|
-
* @memberof ProductDocumentClass
|
|
87
|
-
*/
|
|
88
|
-
'filename': string;
|
|
82
|
+
'entityType': ProductDocumentClassEntityTypeEnum;
|
|
89
83
|
/**
|
|
90
84
|
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
91
85
|
* @type {string}
|
|
@@ -116,11 +110,35 @@ export const ProductDocumentClassContentTypeEnum = {
|
|
|
116
110
|
Pdf: 'pdf',
|
|
117
111
|
Jpg: 'jpg',
|
|
118
112
|
Png: 'png',
|
|
113
|
+
Gz: 'gz',
|
|
119
114
|
Csv: 'csv',
|
|
120
115
|
Doc: 'doc',
|
|
121
|
-
Docx: 'docx'
|
|
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'
|
|
122
128
|
} as const;
|
|
123
129
|
|
|
124
130
|
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];
|
|
125
143
|
|
|
126
144
|
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
|