@emilgroup/public-api-sdk 1.12.0 → 1.14.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/documents-api.ts +107 -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/documents-api.d.ts +57 -0
- package/dist/api/documents-api.js +93 -0
- package/dist/api.d.ts +1 -0
- package/dist/api.js +1 -0
- package/dist/models/create-account-request-dto.d.ts +24 -24
- package/dist/models/create-document-request-dto.d.ts +8 -0
- package/dist/models/create-document-request-dto.js +9 -1
- package/dist/models/create-lead-request-dto.d.ts +20 -14
- package/dist/models/create-presigned-post-request-dto.d.ts +128 -0
- package/dist/models/create-presigned-post-request-dto.js +52 -0
- package/dist/models/create-presigned-post-response-class.d.ts +30 -0
- package/dist/models/create-presigned-post-response-class.js +15 -0
- package/dist/models/document-class.d.ts +8 -0
- package/dist/models/document-class.js +9 -1
- 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-policy-object-class.d.ts +8 -2
- package/dist/models/policy-object-request-dto.d.ts +11 -5
- package/dist/models/product-class.d.ts +6 -0
- package/dist/models/product-document-class.d.ts +8 -0
- package/dist/models/product-document-class.js +9 -1
- package/dist/models/update-lead-request-dto.d.ts +20 -14
- package/models/create-account-request-dto.ts +24 -24
- package/models/create-document-request-dto.ts +9 -1
- package/models/create-lead-request-dto.ts +20 -14
- package/models/create-presigned-post-request-dto.ts +138 -0
- package/models/create-presigned-post-response-class.ts +36 -0
- package/models/document-class.ts +9 -1
- package/models/index.ts +4 -0
- package/models/inline-response200.ts +48 -0
- package/models/inline-response503.ts +48 -0
- package/models/lead-policy-object-class.ts +8 -2
- package/models/policy-object-request-dto.ts +11 -5
- package/models/product-class.ts +6 -0
- package/models/product-document-class.ts +9 -1
- package/models/update-lead-request-dto.ts +20 -14
- package/package.json +2 -1
|
@@ -379,6 +379,55 @@ var DocumentsApiAxiosParamCreator = function (configuration) {
|
|
|
379
379
|
});
|
|
380
380
|
});
|
|
381
381
|
},
|
|
382
|
+
/**
|
|
383
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
384
|
+
* @summary Upload documents using pre-signed URL
|
|
385
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
386
|
+
* @param {string} [authorization] Bearer Token
|
|
387
|
+
* @param {*} [options] Override http request option.
|
|
388
|
+
* @throws {RequiredError}
|
|
389
|
+
*/
|
|
390
|
+
preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
391
|
+
if (options === void 0) { options = {}; }
|
|
392
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
393
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
394
|
+
return __generator(this, function (_a) {
|
|
395
|
+
switch (_a.label) {
|
|
396
|
+
case 0:
|
|
397
|
+
// verify required parameter 'createPresignedPostRequestDto' is not null or undefined
|
|
398
|
+
(0, common_1.assertParamExists)('preSignedPost', 'createPresignedPostRequestDto', createPresignedPostRequestDto);
|
|
399
|
+
localVarPath = "/publicapi/v1/documents/pre-signed-post";
|
|
400
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
401
|
+
if (configuration) {
|
|
402
|
+
baseOptions = configuration.baseOptions;
|
|
403
|
+
baseAccessToken = configuration.accessToken;
|
|
404
|
+
}
|
|
405
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
406
|
+
localVarHeaderParameter = {};
|
|
407
|
+
localVarQueryParameter = {};
|
|
408
|
+
// authentication bearer required
|
|
409
|
+
// http bearer authentication required
|
|
410
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
411
|
+
case 1:
|
|
412
|
+
// authentication bearer required
|
|
413
|
+
// http bearer authentication required
|
|
414
|
+
_a.sent();
|
|
415
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
416
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
417
|
+
}
|
|
418
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
419
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
420
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
421
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
422
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPresignedPostRequestDto, localVarRequestOptions, configuration);
|
|
423
|
+
return [2 /*return*/, {
|
|
424
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
425
|
+
options: localVarRequestOptions,
|
|
426
|
+
}];
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
});
|
|
430
|
+
},
|
|
382
431
|
};
|
|
383
432
|
};
|
|
384
433
|
exports.DocumentsApiAxiosParamCreator = DocumentsApiAxiosParamCreator;
|
|
@@ -505,6 +554,27 @@ var DocumentsApiFp = function (configuration) {
|
|
|
505
554
|
});
|
|
506
555
|
});
|
|
507
556
|
},
|
|
557
|
+
/**
|
|
558
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
559
|
+
* @summary Upload documents using pre-signed URL
|
|
560
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
561
|
+
* @param {string} [authorization] Bearer Token
|
|
562
|
+
* @param {*} [options] Override http request option.
|
|
563
|
+
* @throws {RequiredError}
|
|
564
|
+
*/
|
|
565
|
+
preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
566
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
567
|
+
var localVarAxiosArgs;
|
|
568
|
+
return __generator(this, function (_a) {
|
|
569
|
+
switch (_a.label) {
|
|
570
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.preSignedPost(createPresignedPostRequestDto, authorization, options)];
|
|
571
|
+
case 1:
|
|
572
|
+
localVarAxiosArgs = _a.sent();
|
|
573
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
574
|
+
}
|
|
575
|
+
});
|
|
576
|
+
});
|
|
577
|
+
},
|
|
508
578
|
};
|
|
509
579
|
};
|
|
510
580
|
exports.DocumentsApiFp = DocumentsApiFp;
|
|
@@ -581,6 +651,17 @@ var DocumentsApiFactory = function (configuration, basePath, axios) {
|
|
|
581
651
|
listProductDocuments: function (productCode, authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
582
652
|
return localVarFp.listProductDocuments(productCode, authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
583
653
|
},
|
|
654
|
+
/**
|
|
655
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
656
|
+
* @summary Upload documents using pre-signed URL
|
|
657
|
+
* @param {CreatePresignedPostRequestDto} createPresignedPostRequestDto
|
|
658
|
+
* @param {string} [authorization] Bearer Token
|
|
659
|
+
* @param {*} [options] Override http request option.
|
|
660
|
+
* @throws {RequiredError}
|
|
661
|
+
*/
|
|
662
|
+
preSignedPost: function (createPresignedPostRequestDto, authorization, options) {
|
|
663
|
+
return localVarFp.preSignedPost(createPresignedPostRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
664
|
+
},
|
|
584
665
|
};
|
|
585
666
|
};
|
|
586
667
|
exports.DocumentsApiFactory = DocumentsApiFactory;
|
|
@@ -655,6 +736,18 @@ var DocumentsApi = /** @class */ (function (_super) {
|
|
|
655
736
|
var _this = this;
|
|
656
737
|
return (0, exports.DocumentsApiFp)(this.configuration).listProductDocuments(requestParameters.productCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
657
738
|
};
|
|
739
|
+
/**
|
|
740
|
+
* This will create a URL that allows user upload its documents in Database.The URL can expire between 5 minutes and 7 days.
|
|
741
|
+
* @summary Upload documents using pre-signed URL
|
|
742
|
+
* @param {DocumentsApiPreSignedPostRequest} requestParameters Request parameters.
|
|
743
|
+
* @param {*} [options] Override http request option.
|
|
744
|
+
* @throws {RequiredError}
|
|
745
|
+
* @memberof DocumentsApi
|
|
746
|
+
*/
|
|
747
|
+
DocumentsApi.prototype.preSignedPost = function (requestParameters, options) {
|
|
748
|
+
var _this = this;
|
|
749
|
+
return (0, exports.DocumentsApiFp)(this.configuration).preSignedPost(requestParameters.createPresignedPostRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
750
|
+
};
|
|
658
751
|
return DocumentsApi;
|
|
659
752
|
}(base_1.BaseAPI));
|
|
660
753
|
exports.DocumentsApi = DocumentsApi;
|
package/dist/api.d.ts
CHANGED
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
export * from './api/address-completions-validations-api';
|
|
13
|
+
export * from './api/default-api';
|
|
13
14
|
export * from './api/documents-api';
|
|
14
15
|
export * from './api/leads-api';
|
|
15
16
|
export * from './api/notifications-api';
|
package/dist/api.js
CHANGED
|
@@ -28,6 +28,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
28
28
|
};
|
|
29
29
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
30
|
__exportStar(require("./api/address-completions-validations-api"), exports);
|
|
31
|
+
__exportStar(require("./api/default-api"), exports);
|
|
31
32
|
__exportStar(require("./api/documents-api"), exports);
|
|
32
33
|
__exportStar(require("./api/leads-api"), exports);
|
|
33
34
|
__exportStar(require("./api/notifications-api"), exports);
|
|
@@ -16,91 +16,91 @@
|
|
|
16
16
|
*/
|
|
17
17
|
export interface CreateAccountRequestDto {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Optional field to enter the honorific title you want to be called.
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof CreateAccountRequestDto
|
|
22
22
|
*/
|
|
23
23
|
'title'?: CreateAccountRequestDtoTitleEnum;
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The account\'s holder first name. The account\'s first name will be validated if the \'validate\' flag is set to true.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateAccountRequestDto
|
|
28
28
|
*/
|
|
29
|
-
'firstName'
|
|
29
|
+
'firstName'?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* The account\'s holder first name. The account\'s first name will be validated if the \'validate\' flag is set to true.
|
|
32
32
|
* @type {string}
|
|
33
33
|
* @memberof CreateAccountRequestDto
|
|
34
34
|
*/
|
|
35
|
-
'lastName'
|
|
35
|
+
'lastName'?: string;
|
|
36
36
|
/**
|
|
37
|
-
*
|
|
37
|
+
* The account\'s holder email address. It is displayed alongside the account in your dashboard and can be useful for searching and tracking. The account\'s email address will be validated if the \'validate\' flag is set to true.
|
|
38
38
|
* @type {string}
|
|
39
39
|
* @memberof CreateAccountRequestDto
|
|
40
40
|
*/
|
|
41
|
-
'email'
|
|
41
|
+
'email'?: string;
|
|
42
42
|
/**
|
|
43
|
-
*
|
|
43
|
+
* The account\'s holder gender. The account\'s gender will be validated if the \'validate\' flag is set to true.
|
|
44
44
|
* @type {string}
|
|
45
45
|
* @memberof CreateAccountRequestDto
|
|
46
46
|
*/
|
|
47
|
-
'gender'
|
|
47
|
+
'gender'?: CreateAccountRequestDtoGenderEnum;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* The account\'s holder street name. The account\'s street name will be validated if the \'validate\' flag is set to true.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CreateAccountRequestDto
|
|
52
52
|
*/
|
|
53
|
-
'street'
|
|
53
|
+
'street'?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* The account\'s holder ZIP or postal code. The account\'s ZIP or postal code will be validated if the \'validate\' flag is set to true.
|
|
56
56
|
* @type {string}
|
|
57
57
|
* @memberof CreateAccountRequestDto
|
|
58
58
|
*/
|
|
59
|
-
'zipCode'
|
|
59
|
+
'zipCode'?: string;
|
|
60
60
|
/**
|
|
61
|
-
*
|
|
61
|
+
* The account\'s holder city, district, suburb, town, or village. The account\'s city will be validated if the \'validate\' flag is set to true.
|
|
62
62
|
* @type {string}
|
|
63
63
|
* @memberof CreateAccountRequestDto
|
|
64
64
|
*/
|
|
65
|
-
'city'
|
|
65
|
+
'city'?: string;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* The account\'s holder house number. The account\'s house number will be validated if the \'validate\' flag is set to true.
|
|
68
68
|
* @type {string}
|
|
69
69
|
* @memberof CreateAccountRequestDto
|
|
70
70
|
*/
|
|
71
|
-
'houseNumber'
|
|
71
|
+
'houseNumber'?: string;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* The account\'s holder date of birth (Required for account of type person). The account\'s date of birth will be validated if the \'validate\' flag is set to true.
|
|
74
74
|
* @type {string}
|
|
75
75
|
* @memberof CreateAccountRequestDto
|
|
76
76
|
*/
|
|
77
77
|
'birthDate'?: string;
|
|
78
78
|
/**
|
|
79
|
-
*
|
|
79
|
+
* The account\'s holder phone number. The account\'s phone number will be validated if the \'validate\' flag is set to true.
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof CreateAccountRequestDto
|
|
82
82
|
*/
|
|
83
|
-
'phone'
|
|
83
|
+
'phone'?: string;
|
|
84
84
|
/**
|
|
85
|
-
*
|
|
85
|
+
* The account\'s type. Default value is person
|
|
86
86
|
* @type {string}
|
|
87
87
|
* @memberof CreateAccountRequestDto
|
|
88
88
|
*/
|
|
89
89
|
'type'?: CreateAccountRequestDtoTypeEnum;
|
|
90
90
|
/**
|
|
91
|
-
*
|
|
91
|
+
* The account\'s company name (Required for account of type org). The account\'s company name will be validated if the \'validate\' flag is set to true.
|
|
92
92
|
* @type {string}
|
|
93
93
|
* @memberof CreateAccountRequestDto
|
|
94
94
|
*/
|
|
95
95
|
'companyName'?: string;
|
|
96
96
|
/**
|
|
97
|
-
* Account number
|
|
97
|
+
* Account number.
|
|
98
98
|
* @type {string}
|
|
99
99
|
* @memberof CreateAccountRequestDto
|
|
100
100
|
*/
|
|
101
101
|
'accountNumber'?: string;
|
|
102
102
|
/**
|
|
103
|
-
*
|
|
103
|
+
* Optional custom fields for account. It could be included additional required/optional fields that the account would need for specific cases.
|
|
104
104
|
* @type {object}
|
|
105
105
|
* @memberof CreateAccountRequestDto
|
|
106
106
|
*/
|
|
@@ -103,5 +103,13 @@ export declare const CreateDocumentRequestDtoContentTypeEnum: {
|
|
|
103
103
|
readonly Html: "html";
|
|
104
104
|
readonly Json: "json";
|
|
105
105
|
readonly Xml: "xml";
|
|
106
|
+
readonly Txt: "txt";
|
|
107
|
+
readonly Zip: "zip";
|
|
108
|
+
readonly Tar: "tar";
|
|
109
|
+
readonly Rar: "rar";
|
|
110
|
+
readonly Mp4: "MP4";
|
|
111
|
+
readonly Mov: "MOV";
|
|
112
|
+
readonly Wmv: "WMV";
|
|
113
|
+
readonly Avi: "AVI";
|
|
106
114
|
};
|
|
107
115
|
export type CreateDocumentRequestDtoContentTypeEnum = typeof CreateDocumentRequestDtoContentTypeEnum[keyof typeof CreateDocumentRequestDtoContentTypeEnum];
|
|
@@ -27,5 +27,13 @@ exports.CreateDocumentRequestDtoContentTypeEnum = {
|
|
|
27
27
|
Docx: 'docx',
|
|
28
28
|
Html: 'html',
|
|
29
29
|
Json: 'json',
|
|
30
|
-
Xml: 'xml'
|
|
30
|
+
Xml: 'xml',
|
|
31
|
+
Txt: 'txt',
|
|
32
|
+
Zip: 'zip',
|
|
33
|
+
Tar: 'tar',
|
|
34
|
+
Rar: 'rar',
|
|
35
|
+
Mp4: 'MP4',
|
|
36
|
+
Mov: 'MOV',
|
|
37
|
+
Wmv: 'WMV',
|
|
38
|
+
Avi: 'AVI'
|
|
31
39
|
};
|
|
@@ -22,13 +22,13 @@ import { UploadedDocumentDto } from './uploaded-document-dto';
|
|
|
22
22
|
*/
|
|
23
23
|
export interface CreateLeadRequestDto {
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
25
|
+
* The lead code is used in cases where the lead has been initiated before the lead creation.
|
|
26
26
|
* @type {string}
|
|
27
27
|
* @memberof CreateLeadRequestDto
|
|
28
28
|
*/
|
|
29
29
|
'code'?: string;
|
|
30
30
|
/**
|
|
31
|
-
*
|
|
31
|
+
* 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.
|
|
32
32
|
* @type {number}
|
|
33
33
|
* @memberof CreateLeadRequestDto
|
|
34
34
|
*/
|
|
@@ -40,57 +40,63 @@ export interface CreateLeadRequestDto {
|
|
|
40
40
|
*/
|
|
41
41
|
'productCode': string;
|
|
42
42
|
/**
|
|
43
|
-
* Account. The create lead request should either contain accountCode or account.
|
|
43
|
+
* 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.
|
|
44
44
|
* @type {CreateAccountRequestDto}
|
|
45
45
|
* @memberof CreateLeadRequestDto
|
|
46
46
|
*/
|
|
47
47
|
'account'?: CreateAccountRequestDto;
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* The account code is used in cases where the account has been created before the lead. The create lead request should include either the \'accountCode\' or \'account\'. The account code will be validated if the \'validate\' flag is set to true.
|
|
50
50
|
* @type {string}
|
|
51
51
|
* @memberof CreateLeadRequestDto
|
|
52
52
|
*/
|
|
53
53
|
'accountCode'?: string;
|
|
54
54
|
/**
|
|
55
|
-
*
|
|
55
|
+
* 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
|
|
56
56
|
* @type {Array<PolicyObjectRequestDto>}
|
|
57
57
|
* @memberof CreateLeadRequestDto
|
|
58
58
|
*/
|
|
59
|
-
'policyObjects'
|
|
59
|
+
'policyObjects'?: Array<PolicyObjectRequestDto>;
|
|
60
60
|
/**
|
|
61
|
-
* Bank account details.
|
|
61
|
+
* 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.
|
|
62
62
|
* @type {CreateBankAccountRequestDto}
|
|
63
63
|
* @memberof CreateLeadRequestDto
|
|
64
64
|
*/
|
|
65
65
|
'bankAccount'?: CreateBankAccountRequestDto;
|
|
66
66
|
/**
|
|
67
|
-
*
|
|
67
|
+
* 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
|
|
68
68
|
* @type {object}
|
|
69
69
|
* @memberof CreateLeadRequestDto
|
|
70
70
|
*/
|
|
71
71
|
'customData'?: object;
|
|
72
72
|
/**
|
|
73
|
-
*
|
|
73
|
+
* 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.
|
|
74
74
|
* @type {UploadedDocumentDto}
|
|
75
75
|
* @memberof CreateLeadRequestDto
|
|
76
76
|
*/
|
|
77
77
|
'uploadedDocument'?: UploadedDocumentDto;
|
|
78
78
|
/**
|
|
79
|
-
* Lead status. Default values are \"created\", \"approved\" and \"declined\".
|
|
79
|
+
* Lead status. Default values are \"created\", \"approved\" and \"declined\". However, those can be extended using /lead-statuses endpoint from insuranceservice.
|
|
80
80
|
* @type {string}
|
|
81
81
|
* @memberof CreateLeadRequestDto
|
|
82
82
|
*/
|
|
83
83
|
'status'?: string;
|
|
84
84
|
/**
|
|
85
|
-
* Premium Override.
|
|
86
|
-
* @type {PremiumOverrideRequestDto}
|
|
85
|
+
* Premium Override is utilized to override the premium calculation. The premium formulas will be disregarded when this object is present. The premium override content will be validated if the \'validate\' flag is set to true.
|
|
86
|
+
* @type {Array<PremiumOverrideRequestDto>}
|
|
87
87
|
* @memberof CreateLeadRequestDto
|
|
88
88
|
*/
|
|
89
|
-
'premiumOverride'?: PremiumOverrideRequestDto
|
|
89
|
+
'premiumOverride'?: Array<PremiumOverrideRequestDto>;
|
|
90
90
|
/**
|
|
91
|
-
* Payment
|
|
91
|
+
* 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.
|
|
92
92
|
* @type {CreatePaymentMethodRequestDto}
|
|
93
93
|
* @memberof CreateLeadRequestDto
|
|
94
94
|
*/
|
|
95
95
|
'paymentMethod'?: CreatePaymentMethodRequestDto;
|
|
96
|
+
/**
|
|
97
|
+
* 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.
|
|
98
|
+
* @type {boolean}
|
|
99
|
+
* @memberof CreateLeadRequestDto
|
|
100
|
+
*/
|
|
101
|
+
'validate'?: boolean;
|
|
96
102
|
}
|
|
@@ -0,0 +1,128 @@
|
|
|
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 CreatePresignedPostRequestDto
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePresignedPostRequestDto {
|
|
18
|
+
/**
|
|
19
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof CreatePresignedPostRequestDto
|
|
22
|
+
*/
|
|
23
|
+
'templateSlug': string;
|
|
24
|
+
/**
|
|
25
|
+
* Document entity type.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePresignedPostRequestDto
|
|
28
|
+
*/
|
|
29
|
+
'entityType': string;
|
|
30
|
+
/**
|
|
31
|
+
* Unique identifier referencing the entity.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof CreatePresignedPostRequestDto
|
|
34
|
+
*/
|
|
35
|
+
'entityId'?: number;
|
|
36
|
+
/**
|
|
37
|
+
* Description of the document. Usually a short summary about the context in which the document is being used.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CreatePresignedPostRequestDto
|
|
40
|
+
*/
|
|
41
|
+
'description': string;
|
|
42
|
+
/**
|
|
43
|
+
* Unique identifier of the policy that this object belongs to.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CreatePresignedPostRequestDto
|
|
46
|
+
*/
|
|
47
|
+
'policyCode'?: string;
|
|
48
|
+
/**
|
|
49
|
+
* Unique identifier of the account that this object belongs to.
|
|
50
|
+
* @type {string}
|
|
51
|
+
* @memberof CreatePresignedPostRequestDto
|
|
52
|
+
*/
|
|
53
|
+
'accountCode'?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Unique identifier of the lead that this object belongs to.
|
|
56
|
+
* @type {string}
|
|
57
|
+
* @memberof CreatePresignedPostRequestDto
|
|
58
|
+
*/
|
|
59
|
+
'leadCode'?: string;
|
|
60
|
+
/**
|
|
61
|
+
* Identifier of the service that requested the creation of this document.
|
|
62
|
+
* @type {string}
|
|
63
|
+
* @memberof CreatePresignedPostRequestDto
|
|
64
|
+
*/
|
|
65
|
+
'requester': CreatePresignedPostRequestDtoRequesterEnum;
|
|
66
|
+
/**
|
|
67
|
+
* Extension of the file.
|
|
68
|
+
* @type {string}
|
|
69
|
+
* @memberof CreatePresignedPostRequestDto
|
|
70
|
+
*/
|
|
71
|
+
'contentType': CreatePresignedPostRequestDtoContentTypeEnum;
|
|
72
|
+
/**
|
|
73
|
+
* Content type of the file.
|
|
74
|
+
* @type {string}
|
|
75
|
+
* @memberof CreatePresignedPostRequestDto
|
|
76
|
+
*/
|
|
77
|
+
'isoContentType': string;
|
|
78
|
+
/**
|
|
79
|
+
* Name of the file the end user will see when he downloads it.
|
|
80
|
+
* @type {string}
|
|
81
|
+
* @memberof CreatePresignedPostRequestDto
|
|
82
|
+
*/
|
|
83
|
+
'filename': string;
|
|
84
|
+
/**
|
|
85
|
+
* A slug is a human-readable, unique identifier, used to identify a resource instead of a less human-readable identifier like an id.
|
|
86
|
+
* @type {string}
|
|
87
|
+
* @memberof CreatePresignedPostRequestDto
|
|
88
|
+
*/
|
|
89
|
+
'productSlug'?: string;
|
|
90
|
+
}
|
|
91
|
+
export declare const CreatePresignedPostRequestDtoRequesterEnum: {
|
|
92
|
+
readonly Accountservice: "accountservice";
|
|
93
|
+
readonly Insuranceservice: "insuranceservice";
|
|
94
|
+
readonly Billingservice: "billingservice";
|
|
95
|
+
readonly Tenantservice: "tenantservice";
|
|
96
|
+
readonly BookingFunnel: "bookingFunnel";
|
|
97
|
+
readonly Publicapi: "publicapi";
|
|
98
|
+
readonly Admin: "admin";
|
|
99
|
+
readonly Claimservice: "claimservice";
|
|
100
|
+
readonly Customerservice: "customerservice";
|
|
101
|
+
readonly Notificationservice: "notificationservice";
|
|
102
|
+
readonly Paymentservice: "paymentservice";
|
|
103
|
+
readonly Processmanager: "processmanager";
|
|
104
|
+
readonly Gdvservice: "gdvservice";
|
|
105
|
+
readonly Documentservice: "documentservice";
|
|
106
|
+
};
|
|
107
|
+
export type CreatePresignedPostRequestDtoRequesterEnum = typeof CreatePresignedPostRequestDtoRequesterEnum[keyof typeof CreatePresignedPostRequestDtoRequesterEnum];
|
|
108
|
+
export declare const CreatePresignedPostRequestDtoContentTypeEnum: {
|
|
109
|
+
readonly Pdf: "pdf";
|
|
110
|
+
readonly Jpg: "jpg";
|
|
111
|
+
readonly Png: "png";
|
|
112
|
+
readonly Gz: "gz";
|
|
113
|
+
readonly Csv: "csv";
|
|
114
|
+
readonly Doc: "doc";
|
|
115
|
+
readonly Docx: "docx";
|
|
116
|
+
readonly Html: "html";
|
|
117
|
+
readonly Json: "json";
|
|
118
|
+
readonly Xml: "xml";
|
|
119
|
+
readonly Txt: "txt";
|
|
120
|
+
readonly Zip: "zip";
|
|
121
|
+
readonly Tar: "tar";
|
|
122
|
+
readonly Rar: "rar";
|
|
123
|
+
readonly Mp4: "MP4";
|
|
124
|
+
readonly Mov: "MOV";
|
|
125
|
+
readonly Wmv: "WMV";
|
|
126
|
+
readonly Avi: "AVI";
|
|
127
|
+
};
|
|
128
|
+
export type CreatePresignedPostRequestDtoContentTypeEnum = typeof CreatePresignedPostRequestDtoContentTypeEnum[keyof typeof CreatePresignedPostRequestDtoContentTypeEnum];
|
|
@@ -0,0 +1,52 @@
|
|
|
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 });
|
|
16
|
+
exports.CreatePresignedPostRequestDtoContentTypeEnum = exports.CreatePresignedPostRequestDtoRequesterEnum = void 0;
|
|
17
|
+
exports.CreatePresignedPostRequestDtoRequesterEnum = {
|
|
18
|
+
Accountservice: 'accountservice',
|
|
19
|
+
Insuranceservice: 'insuranceservice',
|
|
20
|
+
Billingservice: 'billingservice',
|
|
21
|
+
Tenantservice: 'tenantservice',
|
|
22
|
+
BookingFunnel: 'bookingFunnel',
|
|
23
|
+
Publicapi: 'publicapi',
|
|
24
|
+
Admin: 'admin',
|
|
25
|
+
Claimservice: 'claimservice',
|
|
26
|
+
Customerservice: 'customerservice',
|
|
27
|
+
Notificationservice: 'notificationservice',
|
|
28
|
+
Paymentservice: 'paymentservice',
|
|
29
|
+
Processmanager: 'processmanager',
|
|
30
|
+
Gdvservice: 'gdvservice',
|
|
31
|
+
Documentservice: 'documentservice'
|
|
32
|
+
};
|
|
33
|
+
exports.CreatePresignedPostRequestDtoContentTypeEnum = {
|
|
34
|
+
Pdf: 'pdf',
|
|
35
|
+
Jpg: 'jpg',
|
|
36
|
+
Png: 'png',
|
|
37
|
+
Gz: 'gz',
|
|
38
|
+
Csv: 'csv',
|
|
39
|
+
Doc: 'doc',
|
|
40
|
+
Docx: 'docx',
|
|
41
|
+
Html: 'html',
|
|
42
|
+
Json: 'json',
|
|
43
|
+
Xml: 'xml',
|
|
44
|
+
Txt: 'txt',
|
|
45
|
+
Zip: 'zip',
|
|
46
|
+
Tar: 'tar',
|
|
47
|
+
Rar: 'rar',
|
|
48
|
+
Mp4: 'MP4',
|
|
49
|
+
Mov: 'MOV',
|
|
50
|
+
Wmv: 'WMV',
|
|
51
|
+
Avi: 'AVI'
|
|
52
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
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 CreatePresignedPostResponseClass
|
|
16
|
+
*/
|
|
17
|
+
export interface CreatePresignedPostResponseClass {
|
|
18
|
+
/**
|
|
19
|
+
* Upload document fields.
|
|
20
|
+
* @type {object}
|
|
21
|
+
* @memberof CreatePresignedPostResponseClass
|
|
22
|
+
*/
|
|
23
|
+
'fields': object;
|
|
24
|
+
/**
|
|
25
|
+
* Pre-signed Url.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof CreatePresignedPostResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'url': string;
|
|
30
|
+
}
|
|
@@ -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 });
|
|
@@ -126,5 +126,13 @@ export declare const DocumentClassContentTypeEnum: {
|
|
|
126
126
|
readonly Html: "html";
|
|
127
127
|
readonly Json: "json";
|
|
128
128
|
readonly Xml: "xml";
|
|
129
|
+
readonly Txt: "txt";
|
|
130
|
+
readonly Zip: "zip";
|
|
131
|
+
readonly Tar: "tar";
|
|
132
|
+
readonly Rar: "rar";
|
|
133
|
+
readonly Mp4: "MP4";
|
|
134
|
+
readonly Mov: "MOV";
|
|
135
|
+
readonly Wmv: "WMV";
|
|
136
|
+
readonly Avi: "AVI";
|
|
129
137
|
};
|
|
130
138
|
export type DocumentClassContentTypeEnum = typeof DocumentClassContentTypeEnum[keyof typeof DocumentClassContentTypeEnum];
|
package/dist/models/index.d.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';
|