@emilgroup/insurance-sdk-node 1.51.0 → 1.53.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 +33 -1
- package/README.md +18 -2
- package/api/commission-agreement-products-api.ts +710 -0
- package/api/commission-agreement-versions-api.ts +592 -0
- package/api/commission-agreements-api.ts +697 -0
- package/api/commission-recipients-api.ts +696 -0
- package/api/{default-api.ts → health-check-api.ts} +21 -17
- package/api/insured-objects-api.ts +5 -2
- package/api/leads-api.ts +4 -4
- package/api/policies-api.ts +176 -221
- package/api.ts +10 -2
- package/dist/api/commission-agreement-products-api.d.ts +403 -0
- package/dist/api/commission-agreement-products-api.js +652 -0
- package/dist/api/commission-agreement-versions-api.d.ts +337 -0
- package/dist/api/commission-agreement-versions-api.js +555 -0
- package/dist/api/commission-agreements-api.d.ts +394 -0
- package/dist/api/commission-agreements-api.js +646 -0
- package/dist/api/commission-recipients-api.d.ts +394 -0
- package/dist/api/commission-recipients-api.js +646 -0
- package/dist/api/health-check-api.d.ts +70 -0
- package/dist/api/{default-api.js → health-check-api.js} +30 -26
- package/dist/api/insured-objects-api.js +4 -2
- package/dist/api/leads-api.d.ts +4 -4
- package/dist/api/leads-api.js +4 -4
- package/dist/api/policies-api.d.ts +134 -161
- package/dist/api/policies-api.js +129 -151
- package/dist/api.d.ts +5 -1
- package/dist/api.js +5 -1
- package/dist/models/booking-funnel-class.d.ts +6 -0
- package/dist/models/commission-agreement-class.d.ts +89 -0
- package/dist/models/commission-agreement-class.js +23 -0
- package/dist/models/commission-agreement-item-class.d.ts +66 -0
- package/dist/models/commission-agreement-item-class.js +15 -0
- package/dist/models/commission-agreement-product-class.d.ts +72 -0
- package/dist/models/commission-agreement-product-class.js +15 -0
- package/dist/models/commission-agreement-version-class.d.ts +79 -0
- package/dist/models/commission-agreement-version-class.js +15 -0
- package/dist/models/commission-recipient-class.d.ts +78 -0
- package/dist/models/commission-recipient-class.js +15 -0
- package/dist/models/create-booking-funnel-request-dto.d.ts +6 -0
- package/dist/models/create-commission-agreement-item-dto.d.ts +36 -0
- package/dist/models/create-commission-agreement-item-dto.js +15 -0
- package/dist/models/create-commission-agreement-product-request-dto.d.ts +42 -0
- package/dist/models/create-commission-agreement-product-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-product-response-class.js +15 -0
- package/dist/models/create-commission-agreement-request-dto.d.ts +75 -0
- package/dist/models/create-commission-agreement-request-dto.js +23 -0
- package/dist/models/create-commission-agreement-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-response-class.js +15 -0
- package/dist/models/create-commission-agreement-version-request-dto.d.ts +49 -0
- package/dist/models/create-commission-agreement-version-request-dto.js +15 -0
- package/dist/models/create-commission-agreement-version-response-class.d.ts +25 -0
- package/dist/models/create-commission-agreement-version-response-class.js +15 -0
- package/dist/models/create-commission-recipient-request-dto.d.ts +48 -0
- package/dist/models/create-commission-recipient-request-dto.js +15 -0
- package/dist/models/create-commission-recipient-response-class.d.ts +25 -0
- package/dist/models/create-commission-recipient-response-class.js +15 -0
- package/dist/models/get-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-product-response-class.js +15 -0
- package/dist/models/get-commission-agreement-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-response-class.js +15 -0
- package/dist/models/get-commission-agreement-version-response-class.d.ts +25 -0
- package/dist/models/get-commission-agreement-version-response-class.js +15 -0
- package/dist/models/get-commission-recipient-response-class.d.ts +25 -0
- package/dist/models/get-commission-recipient-response-class.js +15 -0
- package/dist/models/index.d.ts +28 -0
- package/dist/models/index.js +28 -0
- package/dist/models/list-commission-agreement-products-response-class.d.ts +31 -0
- package/dist/models/list-commission-agreement-products-response-class.js +15 -0
- package/dist/models/list-commission-agreement-versions-response-class.d.ts +31 -0
- package/dist/models/list-commission-agreement-versions-response-class.js +15 -0
- package/dist/models/list-commission-agreements-response-class.d.ts +31 -0
- package/dist/models/list-commission-agreements-response-class.js +15 -0
- package/dist/models/list-commission-recipients-response-class.d.ts +31 -0
- package/dist/models/list-commission-recipients-response-class.js +15 -0
- package/dist/models/patch-booking-funnel-request-dto.d.ts +6 -0
- package/dist/models/update-booking-funnel-request-dto.d.ts +6 -0
- package/dist/models/update-commission-agreement-product-request-dto.d.ts +42 -0
- package/dist/models/update-commission-agreement-product-request-dto.js +15 -0
- package/dist/models/update-commission-agreement-product-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-product-response-class.js +15 -0
- package/dist/models/update-commission-agreement-request-dto.d.ts +44 -0
- package/dist/models/update-commission-agreement-request-dto.js +23 -0
- package/dist/models/update-commission-agreement-response-class.d.ts +25 -0
- package/dist/models/update-commission-agreement-response-class.js +15 -0
- package/dist/models/update-commission-recipient-request-dto.d.ts +48 -0
- package/dist/models/update-commission-recipient-request-dto.js +15 -0
- package/dist/models/update-commission-recipient-response-class.d.ts +25 -0
- package/dist/models/update-commission-recipient-response-class.js +15 -0
- package/models/booking-funnel-class.ts +6 -0
- package/models/commission-agreement-class.ts +98 -0
- package/models/commission-agreement-item-class.ts +72 -0
- package/models/commission-agreement-product-class.ts +78 -0
- package/models/commission-agreement-version-class.ts +85 -0
- package/models/commission-recipient-class.ts +84 -0
- package/models/create-booking-funnel-request-dto.ts +6 -0
- package/models/create-commission-agreement-item-dto.ts +42 -0
- package/models/create-commission-agreement-product-request-dto.ts +48 -0
- package/models/create-commission-agreement-product-response-class.ts +31 -0
- package/models/create-commission-agreement-request-dto.ts +84 -0
- package/models/create-commission-agreement-response-class.ts +31 -0
- package/models/create-commission-agreement-version-request-dto.ts +55 -0
- package/models/create-commission-agreement-version-response-class.ts +31 -0
- package/models/create-commission-recipient-request-dto.ts +54 -0
- package/models/create-commission-recipient-response-class.ts +31 -0
- package/models/get-commission-agreement-product-response-class.ts +31 -0
- package/models/get-commission-agreement-response-class.ts +31 -0
- package/models/get-commission-agreement-version-response-class.ts +31 -0
- package/models/get-commission-recipient-response-class.ts +31 -0
- package/models/index.ts +28 -0
- package/models/list-commission-agreement-products-response-class.ts +37 -0
- package/models/list-commission-agreement-versions-response-class.ts +37 -0
- package/models/list-commission-agreements-response-class.ts +37 -0
- package/models/list-commission-recipients-response-class.ts +37 -0
- package/models/patch-booking-funnel-request-dto.ts +6 -0
- package/models/update-booking-funnel-request-dto.ts +6 -0
- package/models/update-commission-agreement-product-request-dto.ts +48 -0
- package/models/update-commission-agreement-product-response-class.ts +31 -0
- package/models/update-commission-agreement-request-dto.ts +53 -0
- package/models/update-commission-agreement-response-class.ts +31 -0
- package/models/update-commission-recipient-request-dto.ts +54 -0
- package/models/update-commission-recipient-response-class.ts +31 -0
- package/package.json +1 -1
- package/dist/api/default-api.d.ts +0 -66
|
@@ -29,13 +29,14 @@ import { InlineResponse503 } from '../models';
|
|
|
29
29
|
import { URL, URLSearchParams } from 'url';
|
|
30
30
|
const FormData = require('form-data');
|
|
31
31
|
/**
|
|
32
|
-
*
|
|
32
|
+
* HealthCheckApi - axios parameter creator
|
|
33
33
|
* @export
|
|
34
34
|
*/
|
|
35
|
-
export const
|
|
35
|
+
export const HealthCheckApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
36
|
return {
|
|
37
37
|
/**
|
|
38
|
-
*
|
|
38
|
+
* Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
39
|
+
* @summary Health Check
|
|
39
40
|
* @param {*} [options] Override http request option.
|
|
40
41
|
* @throws {RequiredError}
|
|
41
42
|
*/
|
|
@@ -69,14 +70,15 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati
|
|
|
69
70
|
};
|
|
70
71
|
|
|
71
72
|
/**
|
|
72
|
-
*
|
|
73
|
+
* HealthCheckApi - functional programming interface
|
|
73
74
|
* @export
|
|
74
75
|
*/
|
|
75
|
-
export const
|
|
76
|
-
const localVarAxiosParamCreator =
|
|
76
|
+
export const HealthCheckApiFp = function(configuration?: Configuration) {
|
|
77
|
+
const localVarAxiosParamCreator = HealthCheckApiAxiosParamCreator(configuration)
|
|
77
78
|
return {
|
|
78
79
|
/**
|
|
79
|
-
*
|
|
80
|
+
* Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
81
|
+
* @summary Health Check
|
|
80
82
|
* @param {*} [options] Override http request option.
|
|
81
83
|
* @throws {RequiredError}
|
|
82
84
|
*/
|
|
@@ -88,14 +90,15 @@ export const DefaultApiFp = function(configuration?: Configuration) {
|
|
|
88
90
|
};
|
|
89
91
|
|
|
90
92
|
/**
|
|
91
|
-
*
|
|
93
|
+
* HealthCheckApi - factory interface
|
|
92
94
|
* @export
|
|
93
95
|
*/
|
|
94
|
-
export const
|
|
95
|
-
const localVarFp =
|
|
96
|
+
export const HealthCheckApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
97
|
+
const localVarFp = HealthCheckApiFp(configuration)
|
|
96
98
|
return {
|
|
97
99
|
/**
|
|
98
|
-
*
|
|
100
|
+
* Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
101
|
+
* @summary Health Check
|
|
99
102
|
* @param {*} [options] Override http request option.
|
|
100
103
|
* @throws {RequiredError}
|
|
101
104
|
*/
|
|
@@ -106,19 +109,20 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa
|
|
|
106
109
|
};
|
|
107
110
|
|
|
108
111
|
/**
|
|
109
|
-
*
|
|
112
|
+
* HealthCheckApi - object-oriented interface
|
|
110
113
|
* @export
|
|
111
|
-
* @class
|
|
114
|
+
* @class HealthCheckApi
|
|
112
115
|
* @extends {BaseAPI}
|
|
113
116
|
*/
|
|
114
|
-
export class
|
|
117
|
+
export class HealthCheckApi extends BaseAPI {
|
|
115
118
|
/**
|
|
116
|
-
*
|
|
119
|
+
* Returns the health status of the insurance service. This endpoint is used to monitor the operational status of the insurance service. It typically returns a simple status indicator, such as \'UP\' or \'OK\', confirming that the service is operational and available.
|
|
120
|
+
* @summary Health Check
|
|
117
121
|
* @param {*} [options] Override http request option.
|
|
118
122
|
* @throws {RequiredError}
|
|
119
|
-
* @memberof
|
|
123
|
+
* @memberof HealthCheckApi
|
|
120
124
|
*/
|
|
121
125
|
public check(options?: AxiosRequestConfig) {
|
|
122
|
-
return
|
|
126
|
+
return HealthCheckApiFp(this.configuration).check(options).then((request) => request(this.axios, this.basePath));
|
|
123
127
|
}
|
|
124
128
|
}
|
|
@@ -143,8 +143,7 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
143
143
|
// verify required parameter 'id' is not null or undefined
|
|
144
144
|
assertParamExists('getInsuredObject', 'id', id)
|
|
145
145
|
const localVarPath = `/insuranceservice/v1/insured-objects/{id}`
|
|
146
|
-
.replace(`{${"id"}}`, encodeURIComponent(String(id)))
|
|
147
|
-
.replace(`{${"expand"}}`, encodeURIComponent(String(expand)));
|
|
146
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
148
147
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
149
148
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
150
149
|
let baseOptions;
|
|
@@ -162,6 +161,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
162
161
|
// http bearer authentication required
|
|
163
162
|
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
164
163
|
|
|
164
|
+
if (expand !== undefined) {
|
|
165
|
+
localVarQueryParameter['expand'] = expand;
|
|
166
|
+
}
|
|
167
|
+
|
|
165
168
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
166
169
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
167
170
|
}
|
package/api/leads-api.ts
CHANGED
|
@@ -54,7 +54,7 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
54
54
|
return {
|
|
55
55
|
/**
|
|
56
56
|
* This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
|
|
57
|
-
* @summary
|
|
57
|
+
* @summary Clone the lead
|
|
58
58
|
* @param {string} code Unique identifier for the object.
|
|
59
59
|
* @param {CloneLeadRequestDto} cloneLeadRequestDto
|
|
60
60
|
* @param {string} [authorization] Bearer Token
|
|
@@ -580,7 +580,7 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
580
580
|
return {
|
|
581
581
|
/**
|
|
582
582
|
* This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
|
|
583
|
-
* @summary
|
|
583
|
+
* @summary Clone the lead
|
|
584
584
|
* @param {string} code Unique identifier for the object.
|
|
585
585
|
* @param {CloneLeadRequestDto} cloneLeadRequestDto
|
|
586
586
|
* @param {string} [authorization] Bearer Token
|
|
@@ -721,7 +721,7 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
721
721
|
return {
|
|
722
722
|
/**
|
|
723
723
|
* This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
|
|
724
|
-
* @summary
|
|
724
|
+
* @summary Clone the lead
|
|
725
725
|
* @param {string} code Unique identifier for the object.
|
|
726
726
|
* @param {CloneLeadRequestDto} cloneLeadRequestDto
|
|
727
727
|
* @param {string} [authorization] Bearer Token
|
|
@@ -1139,7 +1139,7 @@ export interface LeadsApiUpdateLeadSyncRequest {
|
|
|
1139
1139
|
export class LeadsApi extends BaseAPI {
|
|
1140
1140
|
/**
|
|
1141
1141
|
* This endpoint clones the lead and updates account and status data. It effectively initiates a new lead creation workflow, including the creation of an account, policy, and banking information.
|
|
1142
|
-
* @summary
|
|
1142
|
+
* @summary Clone the lead
|
|
1143
1143
|
* @param {LeadsApiCloneLeadRequest} requestParameters Request parameters.
|
|
1144
1144
|
* @param {*} [options] Override http request option.
|
|
1145
1145
|
* @throws {RequiredError}
|