@emilgroup/document-sdk 1.2.0 → 1.6.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.
- package/.openapi-generator/FILES +3 -0
- package/README.md +5 -22
- package/api/document-templates-api.ts +28 -18
- package/api/documents-api.ts +0 -4
- package/api/layouts-api.ts +0 -4
- package/api/product-documents-api.ts +116 -4
- package/api/search-keywords-api.ts +0 -4
- package/api/searchable-document-owners-api.ts +0 -4
- package/api/searchable-documents-api.ts +0 -4
- package/api.ts +0 -4
- package/base.ts +59 -93
- package/common.ts +0 -1
- package/configuration.ts +0 -8
- package/dist/api/document-templates-api.d.ts +20 -11
- package/dist/api/document-templates-api.js +23 -21
- package/dist/api/documents-api.js +7 -11
- package/dist/api/layouts-api.js +5 -9
- package/dist/api/product-documents-api.d.ts +65 -0
- package/dist/api/product-documents-api.js +102 -8
- package/dist/api/search-keywords-api.js +1 -5
- package/dist/api/searchable-document-owners-api.js +1 -5
- package/dist/api/searchable-documents-api.js +1 -5
- package/dist/base.d.ts +5 -9
- package/dist/base.js +40 -136
- package/dist/common.d.ts +0 -1
- package/dist/common.js +1 -2
- package/dist/configuration.d.ts +0 -7
- package/dist/models/create-doc-template-request-dto.d.ts +6 -0
- package/dist/models/doc-template-class.d.ts +6 -0
- package/dist/models/get-product-document-download-url-response-class.d.ts +24 -0
- package/dist/models/get-product-document-download-url-response-class.js +15 -0
- package/dist/models/grpc-create-doc-template-request-dto.d.ts +55 -0
- package/dist/models/grpc-create-doc-template-request-dto.js +15 -0
- package/dist/models/grpc-update-doc-template-request-dto.d.ts +61 -0
- package/dist/models/grpc-update-doc-template-request-dto.js +15 -0
- package/dist/models/index.d.ts +3 -0
- package/dist/models/index.js +3 -0
- package/dist/models/list-doc-template-request-dto.d.ts +6 -0
- package/dist/models/product-document-class.d.ts +17 -0
- package/dist/models/product-document-class.js +11 -1
- package/dist/models/update-doc-template-request-dto.d.ts +6 -0
- package/dist/models/upload-product-document-request-dto.d.ts +6 -0
- package/models/create-doc-template-request-dto.ts +6 -0
- package/models/doc-template-class.ts +6 -0
- package/models/get-product-document-download-url-response-class.ts +30 -0
- package/models/grpc-create-doc-template-request-dto.ts +61 -0
- package/models/grpc-update-doc-template-request-dto.ts +67 -0
- package/models/index.ts +3 -0
- package/models/list-doc-template-request-dto.ts +6 -0
- package/models/product-document-class.ts +18 -0
- package/models/update-doc-template-request-dto.ts +6 -0
- package/models/upload-product-document-request-dto.ts +6 -0
- package/package.json +3 -5
|
@@ -51,5 +51,11 @@ export interface CreateDocTemplateRequestDto {
|
|
|
51
51
|
* @memberof CreateDocTemplateRequestDto
|
|
52
52
|
*/
|
|
53
53
|
'productSlug'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The filename of the document template as it appears when sent to customers.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreateDocTemplateRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'label'?: string;
|
|
54
60
|
}
|
|
55
61
|
|
|
@@ -46,6 +46,12 @@ export interface DocTemplateClass {
|
|
|
46
46
|
* @memberof DocTemplateClass
|
|
47
47
|
*/
|
|
48
48
|
'slug': string;
|
|
49
|
+
/**
|
|
50
|
+
* The filename of the document template as it appears when sent to customers.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof DocTemplateClass
|
|
53
|
+
*/
|
|
54
|
+
'label'?: string;
|
|
49
55
|
/**
|
|
50
56
|
* Unique identifier referencing the layout.
|
|
51
57
|
* @type {number}
|
|
@@ -0,0 +1,30 @@
|
|
|
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 GetProductDocumentDownloadUrlResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface GetProductDocumentDownloadUrlResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Pre-signed url for downloading product documents.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof GetProductDocumentDownloadUrlResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'url': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
import { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GrpcCreateDocTemplateRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface GrpcCreateDocTemplateRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'layoutId': number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CreateHtmlTemplateDto}
|
|
45
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'bodyTemplate': CreateHtmlTemplateDto;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'productSlug'?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GrpcCreateDocTemplateRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'label'?: string;
|
|
60
|
+
}
|
|
61
|
+
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
import { CreateHtmlTemplateDto } from './create-html-template-dto';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface GrpcUpdateDocTemplateRequestDto
|
|
22
|
+
*/
|
|
23
|
+
export interface GrpcUpdateDocTemplateRequestDto {
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'name': string;
|
|
30
|
+
/**
|
|
31
|
+
*
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'slug': string;
|
|
36
|
+
/**
|
|
37
|
+
*
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'layoutId': number;
|
|
42
|
+
/**
|
|
43
|
+
*
|
|
44
|
+
* @type {CreateHtmlTemplateDto}
|
|
45
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'bodyTemplate': CreateHtmlTemplateDto;
|
|
48
|
+
/**
|
|
49
|
+
*
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'productSlug'?: string;
|
|
54
|
+
/**
|
|
55
|
+
*
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'label'?: string;
|
|
60
|
+
/**
|
|
61
|
+
*
|
|
62
|
+
* @type {number}
|
|
63
|
+
* @memberof GrpcUpdateDocTemplateRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'id': number;
|
|
66
|
+
}
|
|
67
|
+
|
package/models/index.ts
CHANGED
|
@@ -19,8 +19,11 @@ export * from './get-doc-template-response-class';
|
|
|
19
19
|
export * from './get-document-download-url-response-class';
|
|
20
20
|
export * from './get-layout-request-dto';
|
|
21
21
|
export * from './get-layout-response-class';
|
|
22
|
+
export * from './get-product-document-download-url-response-class';
|
|
22
23
|
export * from './get-product-document-response-class';
|
|
23
24
|
export * from './get-signed-s3-key-url-response-class';
|
|
25
|
+
export * from './grpc-create-doc-template-request-dto';
|
|
26
|
+
export * from './grpc-update-doc-template-request-dto';
|
|
24
27
|
export * from './html-template-class';
|
|
25
28
|
export * from './layout-class';
|
|
26
29
|
export * from './list-doc-template-request-dto';
|
|
@@ -68,6 +68,12 @@ 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}
|
|
@@ -104,5 +110,17 @@ export const ProductDocumentClassContentTypeEnum = {
|
|
|
104
110
|
} as const;
|
|
105
111
|
|
|
106
112
|
export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
|
|
113
|
+
export const ProductDocumentClassEntityTypeEnum = {
|
|
114
|
+
PolicyApplication: 'policy_application',
|
|
115
|
+
PolicyContract: 'policy_contract',
|
|
116
|
+
PolicyAddendum: 'policy_addendum',
|
|
117
|
+
InitialInvoice: 'initial_invoice',
|
|
118
|
+
CorrectionInvoice: 'correction_invoice',
|
|
119
|
+
RecurringInvoice: 'recurring_invoice',
|
|
120
|
+
SepaMandate: 'sepa_mandate',
|
|
121
|
+
Static: 'static'
|
|
122
|
+
} as const;
|
|
123
|
+
|
|
124
|
+
export type ProductDocumentClassEntityTypeEnum = typeof ProductDocumentClassEntityTypeEnum[keyof typeof ProductDocumentClassEntityTypeEnum];
|
|
107
125
|
|
|
108
126
|
|
|
@@ -51,6 +51,12 @@ export interface UpdateDocTemplateRequestDto {
|
|
|
51
51
|
* @memberof UpdateDocTemplateRequestDto
|
|
52
52
|
*/
|
|
53
53
|
'productSlug'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* The filename of the document template as it appears when sent to customers.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof UpdateDocTemplateRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'label'?: string;
|
|
54
60
|
/**
|
|
55
61
|
* Internal unique identifier for the object. You should not have to use this, use code instead.
|
|
56
62
|
* @type {number}
|
|
@@ -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",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "OpenAPI client for @emilgroup/document-sdk",
|
|
5
5
|
"author": "OpenAPI-Generator Contributors",
|
|
6
6
|
"keywords": [
|
|
@@ -18,12 +18,10 @@
|
|
|
18
18
|
"prepare": "npm run build"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"axios": "^0.27.2"
|
|
22
|
-
"form-data": "^4.0.0",
|
|
23
|
-
"url": "^0.11.0"
|
|
21
|
+
"axios": "^0.27.2"
|
|
24
22
|
},
|
|
25
23
|
"devDependencies": {
|
|
26
|
-
|
|
24
|
+
|
|
27
25
|
"typescript": "^4.0"
|
|
28
26
|
}
|
|
29
27
|
}
|