@emilgroup/public-api-sdk-node 1.14.0 → 1.16.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.
Files changed (48) hide show
  1. package/.openapi-generator/FILES +5 -0
  2. package/README.md +2 -2
  3. package/api/default-api.ts +124 -0
  4. package/api/documents-api.ts +107 -0
  5. package/api.ts +2 -0
  6. package/dist/api/default-api.d.ts +66 -0
  7. package/dist/api/default-api.js +200 -0
  8. package/dist/api/documents-api.d.ts +57 -0
  9. package/dist/api/documents-api.js +93 -0
  10. package/dist/api.d.ts +1 -0
  11. package/dist/api.js +1 -0
  12. package/dist/models/create-account-request-dto.d.ts +24 -24
  13. package/dist/models/create-document-request-dto.d.ts +8 -0
  14. package/dist/models/create-document-request-dto.js +9 -1
  15. package/dist/models/create-lead-request-dto.d.ts +20 -14
  16. package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
  17. package/dist/models/create-presigned-post-request-dto.js +52 -0
  18. package/dist/models/create-presigned-post-response-class.d.ts +30 -0
  19. package/dist/models/create-presigned-post-response-class.js +15 -0
  20. package/dist/models/document-class.d.ts +8 -0
  21. package/dist/models/document-class.js +9 -1
  22. package/dist/models/index.d.ts +4 -0
  23. package/dist/models/index.js +4 -0
  24. package/dist/models/inline-response200.d.ts +54 -0
  25. package/dist/models/inline-response200.js +15 -0
  26. package/dist/models/inline-response503.d.ts +54 -0
  27. package/dist/models/inline-response503.js +15 -0
  28. package/dist/models/lead-policy-object-class.d.ts +8 -2
  29. package/dist/models/policy-object-request-dto.d.ts +11 -5
  30. package/dist/models/product-class.d.ts +6 -0
  31. package/dist/models/product-document-class.d.ts +8 -0
  32. package/dist/models/product-document-class.js +9 -1
  33. package/dist/models/update-lead-request-dto.d.ts +20 -14
  34. package/models/create-account-request-dto.ts +24 -24
  35. package/models/create-document-request-dto.ts +9 -1
  36. package/models/create-lead-request-dto.ts +20 -14
  37. package/models/create-presigned-post-request-dto.ts +138 -0
  38. package/models/create-presigned-post-response-class.ts +36 -0
  39. package/models/document-class.ts +9 -1
  40. package/models/index.ts +4 -0
  41. package/models/inline-response200.ts +48 -0
  42. package/models/inline-response503.ts +48 -0
  43. package/models/lead-policy-object-class.ts +8 -2
  44. package/models/policy-object-request-dto.ts +11 -5
  45. package/models/product-class.ts +6 -0
  46. package/models/product-document-class.ts +9 -1
  47. package/models/update-lead-request-dto.ts +20 -14
  48. package/package.json +2 -2
@@ -0,0 +1,138 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public 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 CreatePresignedPostRequestDto
21
+ */
22
+ export interface CreatePresignedPostRequestDto {
23
+ /**
24
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
25
+ * @type {string}
26
+ * @memberof CreatePresignedPostRequestDto
27
+ */
28
+ 'templateSlug': string;
29
+ /**
30
+ * Document entity type.
31
+ * @type {string}
32
+ * @memberof CreatePresignedPostRequestDto
33
+ */
34
+ 'entityType': string;
35
+ /**
36
+ * Unique identifier referencing the entity.
37
+ * @type {number}
38
+ * @memberof CreatePresignedPostRequestDto
39
+ */
40
+ 'entityId'?: number;
41
+ /**
42
+ * Description of the document. Usually a short summary about the context in which the document is being used.
43
+ * @type {string}
44
+ * @memberof CreatePresignedPostRequestDto
45
+ */
46
+ 'description': string;
47
+ /**
48
+ * Unique identifier of the policy that this object belongs to.
49
+ * @type {string}
50
+ * @memberof CreatePresignedPostRequestDto
51
+ */
52
+ 'policyCode'?: string;
53
+ /**
54
+ * Unique identifier of the account that this object belongs to.
55
+ * @type {string}
56
+ * @memberof CreatePresignedPostRequestDto
57
+ */
58
+ 'accountCode'?: string;
59
+ /**
60
+ * Unique identifier of the lead that this object belongs to.
61
+ * @type {string}
62
+ * @memberof CreatePresignedPostRequestDto
63
+ */
64
+ 'leadCode'?: string;
65
+ /**
66
+ * Identifier of the service that requested the creation of this document.
67
+ * @type {string}
68
+ * @memberof CreatePresignedPostRequestDto
69
+ */
70
+ 'requester': CreatePresignedPostRequestDtoRequesterEnum;
71
+ /**
72
+ * Extension of the file.
73
+ * @type {string}
74
+ * @memberof CreatePresignedPostRequestDto
75
+ */
76
+ 'contentType': CreatePresignedPostRequestDtoContentTypeEnum;
77
+ /**
78
+ * Content type of the file.
79
+ * @type {string}
80
+ * @memberof CreatePresignedPostRequestDto
81
+ */
82
+ 'isoContentType': string;
83
+ /**
84
+ * Name of the file the end user will see when he downloads it.
85
+ * @type {string}
86
+ * @memberof CreatePresignedPostRequestDto
87
+ */
88
+ 'filename': string;
89
+ /**
90
+ * A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
91
+ * @type {string}
92
+ * @memberof CreatePresignedPostRequestDto
93
+ */
94
+ 'productSlug'?: string;
95
+ }
96
+
97
+ export const CreatePresignedPostRequestDtoRequesterEnum = {
98
+ Accountservice: 'accountservice',
99
+ Insuranceservice: 'insuranceservice',
100
+ Billingservice: 'billingservice',
101
+ Tenantservice: 'tenantservice',
102
+ BookingFunnel: 'bookingFunnel',
103
+ Publicapi: 'publicapi',
104
+ Admin: 'admin',
105
+ Claimservice: 'claimservice',
106
+ Customerservice: 'customerservice',
107
+ Notificationservice: 'notificationservice',
108
+ Paymentservice: 'paymentservice',
109
+ Processmanager: 'processmanager',
110
+ Gdvservice: 'gdvservice',
111
+ Documentservice: 'documentservice'
112
+ } as const;
113
+
114
+ export type CreatePresignedPostRequestDtoRequesterEnum = typeof CreatePresignedPostRequestDtoRequesterEnum[keyof typeof CreatePresignedPostRequestDtoRequesterEnum];
115
+ export const CreatePresignedPostRequestDtoContentTypeEnum = {
116
+ Pdf: 'pdf',
117
+ Jpg: 'jpg',
118
+ Png: 'png',
119
+ Gz: 'gz',
120
+ Csv: 'csv',
121
+ Doc: 'doc',
122
+ Docx: 'docx',
123
+ Html: 'html',
124
+ Json: 'json',
125
+ Xml: 'xml',
126
+ Txt: 'txt',
127
+ Zip: 'zip',
128
+ Tar: 'tar',
129
+ Rar: 'rar',
130
+ Mp4: 'MP4',
131
+ Mov: 'MOV',
132
+ Wmv: 'WMV',
133
+ Avi: 'AVI'
134
+ } as const;
135
+
136
+ export type CreatePresignedPostRequestDtoContentTypeEnum = typeof CreatePresignedPostRequestDtoContentTypeEnum[keyof typeof CreatePresignedPostRequestDtoContentTypeEnum];
137
+
138
+
@@ -0,0 +1,36 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public 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 CreatePresignedPostResponseClass
21
+ */
22
+ export interface CreatePresignedPostResponseClass {
23
+ /**
24
+ * Upload document fields.
25
+ * @type {object}
26
+ * @memberof CreatePresignedPostResponseClass
27
+ */
28
+ 'fields': object;
29
+ /**
30
+ * Pre-signed Url.
31
+ * @type {string}
32
+ * @memberof CreatePresignedPostResponseClass
33
+ */
34
+ 'url': string;
35
+ }
36
+
@@ -133,7 +133,15 @@ export const DocumentClassContentTypeEnum = {
133
133
  Docx: 'docx',
134
134
  Html: 'html',
135
135
  Json: 'json',
136
- Xml: 'xml'
136
+ Xml: 'xml',
137
+ Txt: 'txt',
138
+ Zip: 'zip',
139
+ Tar: 'tar',
140
+ Rar: 'rar',
141
+ Mp4: 'MP4',
142
+ Mov: 'MOV',
143
+ Wmv: 'WMV',
144
+ Avi: 'AVI'
137
145
  } as const;
138
146
 
139
147
  export type DocumentClassContentTypeEnum = typeof DocumentClassContentTypeEnum[keyof typeof DocumentClassContentTypeEnum];
package/models/index.ts CHANGED
@@ -17,6 +17,8 @@ export * from './create-estimated-invoice-response-class';
17
17
  export * from './create-lead-request-dto';
18
18
  export * from './create-lead-response-class';
19
19
  export * from './create-payment-method-request-dto';
20
+ export * from './create-presigned-post-request-dto';
21
+ export * from './create-presigned-post-response-class';
20
22
  export * from './document-class';
21
23
  export * from './get-custom-css-response-class';
22
24
  export * from './get-lead-response-class';
@@ -31,6 +33,8 @@ export * from './initiate-payment-setup-request-dto';
31
33
  export * from './initiate-payment-setup-response-class';
32
34
  export * from './initiate-stripe-payment-setup-request-dto';
33
35
  export * from './initiate-stripe-payment-setup-response-class';
36
+ export * from './inline-response200';
37
+ export * from './inline-response503';
34
38
  export * from './insured-object-class';
35
39
  export * from './insured-object-type-class';
36
40
  export * from './invoice-class';
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public 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 InlineResponse200
21
+ */
22
+ export interface InlineResponse200 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse200
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse200
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse200
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse200
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
@@ -0,0 +1,48 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Emil PublicAPI
5
+ * The Emil Public 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 InlineResponse503
21
+ */
22
+ export interface InlineResponse503 {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof InlineResponse503
27
+ */
28
+ 'status'?: string;
29
+ /**
30
+ *
31
+ * @type {{ [key: string]: { [key: string]: string; }; }}
32
+ * @memberof InlineResponse503
33
+ */
34
+ 'info'?: { [key: string]: { [key: string]: string; }; } | null;
35
+ /**
36
+ *
37
+ * @type {{ [key: string]: { [key: string]: string; }; }}
38
+ * @memberof InlineResponse503
39
+ */
40
+ 'error'?: { [key: string]: { [key: string]: string; }; } | null;
41
+ /**
42
+ *
43
+ * @type {{ [key: string]: { [key: string]: string; }; }}
44
+ * @memberof InlineResponse503
45
+ */
46
+ 'details'?: { [key: string]: { [key: string]: string; }; };
47
+ }
48
+
@@ -22,10 +22,16 @@
22
22
  export interface LeadPolicyObjectClass {
23
23
  /**
24
24
  * Unique identifier referencing the insured object.
25
- * @type {number}
25
+ * @type {object}
26
+ * @memberof LeadPolicyObjectClass
27
+ */
28
+ 'insuredObjectId': object;
29
+ /**
30
+ * Insured object name.
31
+ * @type {object}
26
32
  * @memberof LeadPolicyObjectClass
27
33
  */
28
- 'insuredObjectId': number;
34
+ 'insuredObjectName'?: object;
29
35
  /**
30
36
  * Insured object data.
31
37
  * @type {object}
@@ -21,17 +21,23 @@
21
21
  */
22
22
  export interface PolicyObjectRequestDto {
23
23
  /**
24
- * Unique identifier referencing the insured object.
25
- * @type {number}
24
+ * The id of the insured object to be used in the policy. The insured object id will be validated if the \'validate\' flag is set to true.
25
+ * @type {object}
26
+ * @memberof PolicyObjectRequestDto
27
+ */
28
+ 'insuredObjectId'?: object;
29
+ /**
30
+ * Insured object name. Human readable identifier of insured object. Can be used instead of insuredObjectId
31
+ * @type {string}
26
32
  * @memberof PolicyObjectRequestDto
27
33
  */
28
- 'insuredObjectId': number;
34
+ 'insuredObjectName'?: string;
29
35
  /**
30
- * Insured object data.
36
+ * Insured object data. The date will be validated if the \'validate\' flag is set to true.
31
37
  * @type {object}
32
38
  * @memberof PolicyObjectRequestDto
33
39
  */
34
- 'data': object;
40
+ 'data'?: object;
35
41
  /**
36
42
  *
37
43
  * @type {string}
@@ -76,5 +76,11 @@ export interface ProductClass {
76
76
  * @memberof ProductClass
77
77
  */
78
78
  'updatedAt': string;
79
+ /**
80
+ * Default language of the product.
81
+ * @type {string}
82
+ * @memberof ProductClass
83
+ */
84
+ 'defaultLanguage': string;
79
85
  }
80
86
 
@@ -92,7 +92,15 @@ export const ProductDocumentClassContentTypeEnum = {
92
92
  Docx: 'docx',
93
93
  Html: 'html',
94
94
  Json: 'json',
95
- Xml: 'xml'
95
+ Xml: 'xml',
96
+ Txt: 'txt',
97
+ Zip: 'zip',
98
+ Tar: 'tar',
99
+ Rar: 'rar',
100
+ Mp4: 'MP4',
101
+ Mov: 'MOV',
102
+ Wmv: 'WMV',
103
+ Avi: 'AVI'
96
104
  } as const;
97
105
 
98
106
  export type ProductDocumentClassContentTypeEnum = typeof ProductDocumentClassContentTypeEnum[keyof typeof ProductDocumentClassContentTypeEnum];
@@ -26,13 +26,13 @@ import { UploadedDocumentDto } from './uploaded-document-dto';
26
26
  */
27
27
  export interface UpdateLeadRequestDto {
28
28
  /**
29
- * Unique identifier for the object.
29
+ * The lead code is used in cases where the lead has been initiated before the lead creation.
30
30
  * @type {string}
31
31
  * @memberof UpdateLeadRequestDto
32
32
  */
33
33
  'code': string;
34
34
  /**
35
- * Unique identifier referencing the product version.
35
+ * The product version id of the product version to be used for the lead. The product version id will be validated if the \'validate\' flag is set to true.
36
36
  * @type {number}
37
37
  * @memberof UpdateLeadRequestDto
38
38
  */
@@ -44,46 +44,52 @@ export interface UpdateLeadRequestDto {
44
44
  */
45
45
  'productCode': string;
46
46
  /**
47
- *
47
+ * Account object. The create lead request should either contain accountCode or account. The account content will be validated if the \'validate\' flag is set to true. an empty object is required if \'validate flag is set to false.
48
+ * @type {CreateAccountRequestDto}
49
+ * @memberof UpdateLeadRequestDto
50
+ */
51
+ 'account': CreateAccountRequestDto;
52
+ /**
53
+ * The policy objects contains necessary information to create a policy. The Policy objects array will be validated if the \'validate\' flag is set to true
48
54
  * @type {Array<PolicyObjectRequestDto>}
49
55
  * @memberof UpdateLeadRequestDto
50
56
  */
51
- 'policyObjects': Array<PolicyObjectRequestDto>;
57
+ 'policyObjects'?: Array<PolicyObjectRequestDto>;
52
58
  /**
53
- * Bank account details
54
- * @type {CreateBankAccountRequestDto}
59
+ * Bank account details, to be used for direct debit payments, the created bank account will be attached to the lead for later use, such as paying claims. The bank account content will be validated if the \'validate\' flag is set to true.
60
+ * @type {Array<CreateBankAccountRequestDto>}
55
61
  * @memberof UpdateLeadRequestDto
56
62
  */
57
- 'bankAccount'?: CreateBankAccountRequestDto;
63
+ 'bankAccount'?: Array<CreateBankAccountRequestDto>;
58
64
  /**
59
- * Custom data.
65
+ * Optional custom data for the lead. This field is useful for edge cases where the lead requires additional data for the risk carrier, such as creating an application in the risk carrier platform or performing a premium calculation. The custom data should include three main entities: \'data\', \'provider\', and \'productCode\'. The \'data\' entity contains information used in the risk carrier platform, the \'provider\' field contains the name of the provider (usually the risk carrier\'s name), the provider must be supported in EMIL, The \'productCode\' field contains the product code in EMIL
60
66
  * @type {object}
61
67
  * @memberof UpdateLeadRequestDto
62
68
  */
63
69
  'customData'?: object;
64
70
  /**
65
- * Codes for documents to be uploaded.
71
+ * Used to pass pre-uploaded documents to the lead. By providing the codes of the uploaded documents, they will be attached to the lead. The uploaded document content will be validated if the \'validate\' flag is set to true.
66
72
  * @type {UploadedDocumentDto}
67
73
  * @memberof UpdateLeadRequestDto
68
74
  */
69
75
  'uploadedDocument'?: UploadedDocumentDto;
70
76
  /**
71
- * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
77
+ * Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
72
78
  * @type {string}
73
79
  * @memberof UpdateLeadRequestDto
74
80
  */
75
81
  'status': string;
76
82
  /**
77
- * Payment Method.
83
+ * Payment method, used to for payment method support, such as SEPA, invoice, etc. The payment method content will be validated if the \'validate\' flag is set to true.
78
84
  * @type {CreatePaymentMethodRequestDto}
79
85
  * @memberof UpdateLeadRequestDto
80
86
  */
81
87
  'paymentMethod'?: CreatePaymentMethodRequestDto;
82
88
  /**
83
- *
84
- * @type {CreateAccountRequestDto}
89
+ * The validation indicator, with a default value of true, serves as a toggle. When set to false, it allows the bypassing of validation—a useful option for saving leads for later processing. This feature provides flexibility by enabling users to choose whether to enforce validation checks during the current stage or defer them for a subsequent time.
90
+ * @type {boolean}
85
91
  * @memberof UpdateLeadRequestDto
86
92
  */
87
- 'account': CreateAccountRequestDto;
93
+ 'validate'?: boolean;
88
94
  }
89
95
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/public-api-sdk-node",
3
- "version": "1.14.0",
3
+ "version": "1.16.0",
4
4
  "description": "OpenAPI client for @emilgroup/public-api-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [
@@ -23,7 +23,7 @@
23
23
  "url": "^0.11.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@types/node": "^12.11.5",
26
+ "@types/node": "^12.11.5",
27
27
  "typescript": "^4.0"
28
28
  }
29
29
  }