@emilgroup/public-api-sdk 1.14.1 → 1.15.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 +5 -0
- package/README.md +2 -2
- package/api/default-api.ts +120 -0
- package/api/leads-api.ts +326 -0
- package/api.ts +2 -0
- package/dist/api/default-api.d.ts +66 -0
- package/dist/api/default-api.js +196 -0
- package/dist/api/leads-api.d.ts +176 -0
- package/dist/api/leads-api.js +285 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/create-document-request-dto.d.ts +17 -0
- package/dist/models/create-document-request-dto.js +5 -1
- package/dist/models/create-lead-async-response-class.d.ts +24 -0
- package/dist/models/create-lead-async-response-class.js +15 -0
- package/dist/models/create-lead-request-dto.d.ts +8 -2
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/dist/models/inline-response200.d.ts +54 -0
- package/dist/models/inline-response200.js +15 -0
- package/dist/models/inline-response503.d.ts +54 -0
- package/dist/models/inline-response503.js +15 -0
- package/dist/models/lead-sync-response-class.d.ts +24 -0
- package/dist/models/lead-sync-response-class.js +15 -0
- package/dist/models/update-lead-request-dto.d.ts +10 -4
- package/models/create-document-request-dto.ts +18 -0
- package/models/create-lead-async-response-class.ts +30 -0
- package/models/create-lead-request-dto.ts +8 -2
- package/models/index.ts +4 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/lead-sync-response-class.ts +30 -0
- package/models/update-lead-request-dto.ts +10 -4
- package/package.json +1 -1
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Emil PublicAPI
|
|
3
|
+
* The Emil Public API description
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
* Contact: kontakt@emil.de
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface LeadSyncResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface LeadSyncResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof LeadSyncResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'variables': object;
|
|
24
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Emil PublicAPI
|
|
6
|
+
* The Emil Public API description
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
* Contact: kontakt@emil.de
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -34,10 +34,16 @@ export interface UpdateLeadRequestDto {
|
|
|
34
34
|
'productVersionId'?: number;
|
|
35
35
|
/**
|
|
36
36
|
* Unique identifier of the product that this object belongs to.
|
|
37
|
-
* @type {
|
|
37
|
+
* @type {object}
|
|
38
|
+
* @memberof UpdateLeadRequestDto
|
|
39
|
+
*/
|
|
40
|
+
'productCode': object;
|
|
41
|
+
/**
|
|
42
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
43
|
+
* @type {object}
|
|
38
44
|
* @memberof UpdateLeadRequestDto
|
|
39
45
|
*/
|
|
40
|
-
'
|
|
46
|
+
'productSlug': object;
|
|
41
47
|
/**
|
|
42
48
|
* 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.
|
|
43
49
|
* @type {CreateAccountRequestDto}
|
|
@@ -52,10 +58,10 @@ export interface UpdateLeadRequestDto {
|
|
|
52
58
|
'policyObjects'?: Array<PolicyObjectRequestDto>;
|
|
53
59
|
/**
|
|
54
60
|
* 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.
|
|
55
|
-
* @type {
|
|
61
|
+
* @type {CreateBankAccountRequestDto}
|
|
56
62
|
* @memberof UpdateLeadRequestDto
|
|
57
63
|
*/
|
|
58
|
-
'bankAccount'?:
|
|
64
|
+
'bankAccount'?: CreateBankAccountRequestDto;
|
|
59
65
|
/**
|
|
60
66
|
* 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
|
|
61
67
|
* @type {object}
|
|
@@ -92,6 +92,18 @@ export interface CreateDocumentRequestDto {
|
|
|
92
92
|
* @memberof CreateDocumentRequestDto
|
|
93
93
|
*/
|
|
94
94
|
'filename'?: string;
|
|
95
|
+
/**
|
|
96
|
+
* If true, the default margins will be skipped when generating the document.
|
|
97
|
+
* @type {boolean}
|
|
98
|
+
* @memberof CreateDocumentRequestDto
|
|
99
|
+
*/
|
|
100
|
+
'shouldSkipDefaultMargins'?: boolean;
|
|
101
|
+
/**
|
|
102
|
+
* Type of the document engine to use to generate the document. Defaults to HTML.
|
|
103
|
+
* @type {string}
|
|
104
|
+
* @memberof CreateDocumentRequestDto
|
|
105
|
+
*/
|
|
106
|
+
'engine'?: CreateDocumentRequestDtoEngineEnum;
|
|
95
107
|
}
|
|
96
108
|
|
|
97
109
|
export const CreateDocumentRequestDtoRequesterEnum = {
|
|
@@ -121,5 +133,11 @@ export const CreateDocumentRequestDtoContentTypeEnum = {
|
|
|
121
133
|
} as const;
|
|
122
134
|
|
|
123
135
|
export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
|
|
136
|
+
export const CreateDocumentRequestDtoEngineEnum = {
|
|
137
|
+
Docx: 'docx',
|
|
138
|
+
Html: 'html'
|
|
139
|
+
} as const;
|
|
140
|
+
|
|
141
|
+
export type CreateDocumentRequestDtoEngineEnum = typeof CreateDocumentRequestDtoEngineEnum[keyof typeof CreateDocumentRequestDtoEngineEnum];
|
|
124
142
|
|
|
125
143
|
|
|
@@ -0,0 +1,30 @@
|
|
|
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 CreateLeadAsyncResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface CreateLeadAsyncResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
* Unique identifier of the lead that this object belongs to.
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof CreateLeadAsyncResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'code': string;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -40,10 +40,16 @@ export interface CreateLeadRequestDto {
|
|
|
40
40
|
'productVersionId'?: number;
|
|
41
41
|
/**
|
|
42
42
|
* Unique identifier of the product that this object belongs to.
|
|
43
|
-
* @type {
|
|
43
|
+
* @type {object}
|
|
44
|
+
* @memberof CreateLeadRequestDto
|
|
45
|
+
*/
|
|
46
|
+
'productCode': object;
|
|
47
|
+
/**
|
|
48
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
49
|
+
* @type {object}
|
|
44
50
|
* @memberof CreateLeadRequestDto
|
|
45
51
|
*/
|
|
46
|
-
'
|
|
52
|
+
'productSlug': object;
|
|
47
53
|
/**
|
|
48
54
|
* 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.
|
|
49
55
|
* @type {CreateAccountRequestDto}
|
package/models/index.ts
CHANGED
|
@@ -14,6 +14,7 @@ export * from './create-custom-application-response-class';
|
|
|
14
14
|
export * from './create-document-request-dto';
|
|
15
15
|
export * from './create-estimated-invoice-request-dto';
|
|
16
16
|
export * from './create-estimated-invoice-response-class';
|
|
17
|
+
export * from './create-lead-async-response-class';
|
|
17
18
|
export * from './create-lead-request-dto';
|
|
18
19
|
export * from './create-lead-response-class';
|
|
19
20
|
export * from './create-payment-method-request-dto';
|
|
@@ -33,6 +34,8 @@ export * from './initiate-payment-setup-request-dto';
|
|
|
33
34
|
export * from './initiate-payment-setup-response-class';
|
|
34
35
|
export * from './initiate-stripe-payment-setup-request-dto';
|
|
35
36
|
export * from './initiate-stripe-payment-setup-response-class';
|
|
37
|
+
export * from './inline-response200';
|
|
38
|
+
export * from './inline-response503';
|
|
36
39
|
export * from './insured-object-class';
|
|
37
40
|
export * from './insured-object-type-class';
|
|
38
41
|
export * from './invoice-class';
|
|
@@ -43,6 +46,7 @@ export * from './lead-bank-account-class';
|
|
|
43
46
|
export * from './lead-class';
|
|
44
47
|
export * from './lead-policy-class';
|
|
45
48
|
export * from './lead-policy-object-class';
|
|
49
|
+
export * from './lead-sync-response-class';
|
|
46
50
|
export * from './list-documents-response-class';
|
|
47
51
|
export * from './list-product-documents-response-class';
|
|
48
52
|
export * from './list-products-response-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
|
+
|
|
@@ -0,0 +1,30 @@
|
|
|
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 LeadSyncResponseClass
|
|
21
|
+
*/
|
|
22
|
+
export interface LeadSyncResponseClass {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {object}
|
|
26
|
+
* @memberof LeadSyncResponseClass
|
|
27
|
+
*/
|
|
28
|
+
'variables': object;
|
|
29
|
+
}
|
|
30
|
+
|
|
@@ -39,10 +39,16 @@ export interface UpdateLeadRequestDto {
|
|
|
39
39
|
'productVersionId'?: number;
|
|
40
40
|
/**
|
|
41
41
|
* Unique identifier of the product that this object belongs to.
|
|
42
|
-
* @type {
|
|
42
|
+
* @type {object}
|
|
43
|
+
* @memberof UpdateLeadRequestDto
|
|
44
|
+
*/
|
|
45
|
+
'productCode': object;
|
|
46
|
+
/**
|
|
47
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
48
|
+
* @type {object}
|
|
43
49
|
* @memberof UpdateLeadRequestDto
|
|
44
50
|
*/
|
|
45
|
-
'
|
|
51
|
+
'productSlug': object;
|
|
46
52
|
/**
|
|
47
53
|
* 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
54
|
* @type {CreateAccountRequestDto}
|
|
@@ -57,10 +63,10 @@ export interface UpdateLeadRequestDto {
|
|
|
57
63
|
'policyObjects'?: Array<PolicyObjectRequestDto>;
|
|
58
64
|
/**
|
|
59
65
|
* 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 {
|
|
66
|
+
* @type {CreateBankAccountRequestDto}
|
|
61
67
|
* @memberof UpdateLeadRequestDto
|
|
62
68
|
*/
|
|
63
|
-
'bankAccount'?:
|
|
69
|
+
'bankAccount'?: CreateBankAccountRequestDto;
|
|
64
70
|
/**
|
|
65
71
|
* 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
|
|
66
72
|
* @type {object}
|