@emilgroup/insurance-sdk-node 1.46.0 → 1.47.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 +2 -0
- package/README.md +2 -2
- package/api/insured-object-types-api.ts +20 -6
- package/api/insured-objects-api.ts +20 -6
- package/api/named-ranges-api.ts +20 -6
- package/api/policies-api.ts +245 -16
- package/api/premium-formulas-api.ts +20 -6
- package/api/product-factors-api.ts +20 -6
- package/api/product-fields-api.ts +40 -12
- package/api/products-api.ts +20 -6
- package/dist/api/insured-object-types-api.d.ts +12 -3
- package/dist/api/insured-object-types-api.js +12 -6
- package/dist/api/insured-objects-api.d.ts +12 -3
- package/dist/api/insured-objects-api.js +12 -6
- package/dist/api/named-ranges-api.d.ts +12 -3
- package/dist/api/named-ranges-api.js +12 -6
- package/dist/api/policies-api.d.ts +147 -10
- package/dist/api/policies-api.js +161 -15
- package/dist/api/premium-formulas-api.d.ts +12 -3
- package/dist/api/premium-formulas-api.js +12 -6
- package/dist/api/product-factors-api.d.ts +12 -3
- package/dist/api/product-factors-api.js +12 -6
- package/dist/api/product-fields-api.d.ts +24 -6
- package/dist/api/product-fields-api.js +24 -12
- package/dist/api/products-api.d.ts +12 -3
- package/dist/api/products-api.js +12 -6
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/list-policy-version-response-class.d.ts +43 -0
- package/dist/models/list-policy-version-response-class.js +15 -0
- package/dist/models/list-policy-versions-request-dto.d.ts +66 -0
- package/dist/models/list-policy-versions-request-dto.js +15 -0
- package/dist/models/list-request-dto.d.ts +6 -0
- package/models/index.ts +2 -0
- package/models/list-policy-version-response-class.ts +49 -0
- package/models/list-policy-versions-request-dto.ts +72 -0
- package/models/list-request-dto.ts +6 -0
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -112,6 +112,8 @@ models/list-leads-response-class.ts
|
|
|
112
112
|
models/list-named-ranges-response-class.ts
|
|
113
113
|
models/list-policies-response-class.ts
|
|
114
114
|
models/list-policy-objects-response-class.ts
|
|
115
|
+
models/list-policy-version-response-class.ts
|
|
116
|
+
models/list-policy-versions-request-dto.ts
|
|
115
117
|
models/list-premium-formulas-response-class.ts
|
|
116
118
|
models/list-product-factors-response-class.ts
|
|
117
119
|
models/list-product-field-types-response-class.ts
|
package/README.md
CHANGED
|
@@ -17,11 +17,11 @@ Although this package can be used in both TypeScript and JavaScript, it is inten
|
|
|
17
17
|
Navigate to the folder of your consuming project and run one of the following commands:
|
|
18
18
|
|
|
19
19
|
```
|
|
20
|
-
npm install @emilgroup/insurance-sdk-node@1.
|
|
20
|
+
npm install @emilgroup/insurance-sdk-node@1.47.0 --save
|
|
21
21
|
```
|
|
22
22
|
or
|
|
23
23
|
```
|
|
24
|
-
yarn add @emilgroup/insurance-sdk-node@1.
|
|
24
|
+
yarn add @emilgroup/insurance-sdk-node@1.47.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
|
@@ -42,10 +42,11 @@ export const InsuredObjectTypesApiAxiosParamCreator = function (configuration?:
|
|
|
42
42
|
* @param {string} [search] Search query.
|
|
43
43
|
* @param {string} [order] Ordering criteria.
|
|
44
44
|
* @param {string} [expand] Extra fields to fetch.
|
|
45
|
+
* @param {string} [filters]
|
|
45
46
|
* @param {*} [options] Override http request option.
|
|
46
47
|
* @throws {RequiredError}
|
|
47
48
|
*/
|
|
48
|
-
listInsuredObjectTypes: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
|
+
listInsuredObjectTypes: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
49
50
|
const localVarPath = `/insuranceservice/v1/insured-object-types`;
|
|
50
51
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
51
52
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -88,6 +89,10 @@ export const InsuredObjectTypesApiAxiosParamCreator = function (configuration?:
|
|
|
88
89
|
localVarQueryParameter['expand'] = expand;
|
|
89
90
|
}
|
|
90
91
|
|
|
92
|
+
if (filters !== undefined) {
|
|
93
|
+
localVarQueryParameter['filters'] = filters;
|
|
94
|
+
}
|
|
95
|
+
|
|
91
96
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
92
97
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
93
98
|
}
|
|
@@ -123,11 +128,12 @@ export const InsuredObjectTypesApiFp = function(configuration?: Configuration) {
|
|
|
123
128
|
* @param {string} [search] Search query.
|
|
124
129
|
* @param {string} [order] Ordering criteria.
|
|
125
130
|
* @param {string} [expand] Extra fields to fetch.
|
|
131
|
+
* @param {string} [filters]
|
|
126
132
|
* @param {*} [options] Override http request option.
|
|
127
133
|
* @throws {RequiredError}
|
|
128
134
|
*/
|
|
129
|
-
async listInsuredObjectTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInsuredObjectTypesResponseClass>> {
|
|
130
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listInsuredObjectTypes(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
135
|
+
async listInsuredObjectTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInsuredObjectTypesResponseClass>> {
|
|
136
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInsuredObjectTypes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
131
137
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
132
138
|
},
|
|
133
139
|
}
|
|
@@ -150,11 +156,12 @@ export const InsuredObjectTypesApiFactory = function (configuration?: Configurat
|
|
|
150
156
|
* @param {string} [search] Search query.
|
|
151
157
|
* @param {string} [order] Ordering criteria.
|
|
152
158
|
* @param {string} [expand] Extra fields to fetch.
|
|
159
|
+
* @param {string} [filters]
|
|
153
160
|
* @param {*} [options] Override http request option.
|
|
154
161
|
* @throws {RequiredError}
|
|
155
162
|
*/
|
|
156
|
-
listInsuredObjectTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListInsuredObjectTypesResponseClass> {
|
|
157
|
-
return localVarFp.listInsuredObjectTypes(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
163
|
+
listInsuredObjectTypes(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInsuredObjectTypesResponseClass> {
|
|
164
|
+
return localVarFp.listInsuredObjectTypes(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
158
165
|
},
|
|
159
166
|
};
|
|
160
167
|
};
|
|
@@ -213,6 +220,13 @@ export interface InsuredObjectTypesApiListInsuredObjectTypesRequest {
|
|
|
213
220
|
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
214
221
|
*/
|
|
215
222
|
readonly expand?: string
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {string}
|
|
227
|
+
* @memberof InsuredObjectTypesApiListInsuredObjectTypes
|
|
228
|
+
*/
|
|
229
|
+
readonly filters?: string
|
|
216
230
|
}
|
|
217
231
|
|
|
218
232
|
/**
|
|
@@ -231,6 +245,6 @@ export class InsuredObjectTypesApi extends BaseAPI {
|
|
|
231
245
|
* @memberof InsuredObjectTypesApi
|
|
232
246
|
*/
|
|
233
247
|
public listInsuredObjectTypes(requestParameters: InsuredObjectTypesApiListInsuredObjectTypesRequest = {}, options?: AxiosRequestConfig) {
|
|
234
|
-
return InsuredObjectTypesApiFp(this.configuration).listInsuredObjectTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
248
|
+
return InsuredObjectTypesApiFp(this.configuration).listInsuredObjectTypes(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
235
249
|
}
|
|
236
250
|
}
|
|
@@ -187,10 +187,11 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
187
187
|
* @param {string} [search] Search query.
|
|
188
188
|
* @param {string} [order] Ordering criteria.
|
|
189
189
|
* @param {string} [expand] Extra fields to fetch.
|
|
190
|
+
* @param {string} [filters]
|
|
190
191
|
* @param {*} [options] Override http request option.
|
|
191
192
|
* @throws {RequiredError}
|
|
192
193
|
*/
|
|
193
|
-
listInsuredObjects: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
194
|
+
listInsuredObjects: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
194
195
|
const localVarPath = `/insuranceservice/v1/insured-objects`;
|
|
195
196
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
196
197
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -233,6 +234,10 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
233
234
|
localVarQueryParameter['expand'] = expand;
|
|
234
235
|
}
|
|
235
236
|
|
|
237
|
+
if (filters !== undefined) {
|
|
238
|
+
localVarQueryParameter['filters'] = filters;
|
|
239
|
+
}
|
|
240
|
+
|
|
236
241
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
237
242
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
238
243
|
}
|
|
@@ -305,11 +310,12 @@ export const InsuredObjectsApiFp = function(configuration?: Configuration) {
|
|
|
305
310
|
* @param {string} [search] Search query.
|
|
306
311
|
* @param {string} [order] Ordering criteria.
|
|
307
312
|
* @param {string} [expand] Extra fields to fetch.
|
|
313
|
+
* @param {string} [filters]
|
|
308
314
|
* @param {*} [options] Override http request option.
|
|
309
315
|
* @throws {RequiredError}
|
|
310
316
|
*/
|
|
311
|
-
async listInsuredObjects(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInsuredObjectsResponseClass>> {
|
|
312
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listInsuredObjects(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
317
|
+
async listInsuredObjects(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListInsuredObjectsResponseClass>> {
|
|
318
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listInsuredObjects(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
313
319
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
314
320
|
},
|
|
315
321
|
}
|
|
@@ -366,11 +372,12 @@ export const InsuredObjectsApiFactory = function (configuration?: Configuration,
|
|
|
366
372
|
* @param {string} [search] Search query.
|
|
367
373
|
* @param {string} [order] Ordering criteria.
|
|
368
374
|
* @param {string} [expand] Extra fields to fetch.
|
|
375
|
+
* @param {string} [filters]
|
|
369
376
|
* @param {*} [options] Override http request option.
|
|
370
377
|
* @throws {RequiredError}
|
|
371
378
|
*/
|
|
372
|
-
listInsuredObjects(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListInsuredObjectsResponseClass> {
|
|
373
|
-
return localVarFp.listInsuredObjects(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
379
|
+
listInsuredObjects(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListInsuredObjectsResponseClass> {
|
|
380
|
+
return localVarFp.listInsuredObjects(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
374
381
|
},
|
|
375
382
|
};
|
|
376
383
|
};
|
|
@@ -499,6 +506,13 @@ export interface InsuredObjectsApiListInsuredObjectsRequest {
|
|
|
499
506
|
* @memberof InsuredObjectsApiListInsuredObjects
|
|
500
507
|
*/
|
|
501
508
|
readonly expand?: string
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
*
|
|
512
|
+
* @type {string}
|
|
513
|
+
* @memberof InsuredObjectsApiListInsuredObjects
|
|
514
|
+
*/
|
|
515
|
+
readonly filters?: string
|
|
502
516
|
}
|
|
503
517
|
|
|
504
518
|
/**
|
|
@@ -553,6 +567,6 @@ export class InsuredObjectsApi extends BaseAPI {
|
|
|
553
567
|
* @memberof InsuredObjectsApi
|
|
554
568
|
*/
|
|
555
569
|
public listInsuredObjects(requestParameters: InsuredObjectsApiListInsuredObjectsRequest = {}, options?: AxiosRequestConfig) {
|
|
556
|
-
return InsuredObjectsApiFp(this.configuration).listInsuredObjects(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
570
|
+
return InsuredObjectsApiFp(this.configuration).listInsuredObjects(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
557
571
|
}
|
|
558
572
|
}
|
package/api/named-ranges-api.ts
CHANGED
|
@@ -263,10 +263,11 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
263
263
|
* @param {string} [search] Search query.
|
|
264
264
|
* @param {string} [order] Ordering criteria.
|
|
265
265
|
* @param {string} [expand] Extra fields to fetch.
|
|
266
|
+
* @param {string} [filters]
|
|
266
267
|
* @param {*} [options] Override http request option.
|
|
267
268
|
* @throws {RequiredError}
|
|
268
269
|
*/
|
|
269
|
-
listNamedRanges: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
270
|
+
listNamedRanges: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
270
271
|
const localVarPath = `/insuranceservice/v1/named-ranges`;
|
|
271
272
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
272
273
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -309,6 +310,10 @@ export const NamedRangesApiAxiosParamCreator = function (configuration?: Configu
|
|
|
309
310
|
localVarQueryParameter['expand'] = expand;
|
|
310
311
|
}
|
|
311
312
|
|
|
313
|
+
if (filters !== undefined) {
|
|
314
|
+
localVarQueryParameter['filters'] = filters;
|
|
315
|
+
}
|
|
316
|
+
|
|
312
317
|
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
313
318
|
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
314
319
|
}
|
|
@@ -448,11 +453,12 @@ export const NamedRangesApiFp = function(configuration?: Configuration) {
|
|
|
448
453
|
* @param {string} [search] Search query.
|
|
449
454
|
* @param {string} [order] Ordering criteria.
|
|
450
455
|
* @param {string} [expand] Extra fields to fetch.
|
|
456
|
+
* @param {string} [filters]
|
|
451
457
|
* @param {*} [options] Override http request option.
|
|
452
458
|
* @throws {RequiredError}
|
|
453
459
|
*/
|
|
454
|
-
async listNamedRanges(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNamedRangesResponseClass>> {
|
|
455
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listNamedRanges(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
460
|
+
async listNamedRanges(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListNamedRangesResponseClass>> {
|
|
461
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listNamedRanges(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
456
462
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
457
463
|
},
|
|
458
464
|
/**
|
|
@@ -537,11 +543,12 @@ export const NamedRangesApiFactory = function (configuration?: Configuration, ba
|
|
|
537
543
|
* @param {string} [search] Search query.
|
|
538
544
|
* @param {string} [order] Ordering criteria.
|
|
539
545
|
* @param {string} [expand] Extra fields to fetch.
|
|
546
|
+
* @param {string} [filters]
|
|
540
547
|
* @param {*} [options] Override http request option.
|
|
541
548
|
* @throws {RequiredError}
|
|
542
549
|
*/
|
|
543
|
-
listNamedRanges(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, options?: any): AxiosPromise<ListNamedRangesResponseClass> {
|
|
544
|
-
return localVarFp.listNamedRanges(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
550
|
+
listNamedRanges(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListNamedRangesResponseClass> {
|
|
551
|
+
return localVarFp.listNamedRanges(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
545
552
|
},
|
|
546
553
|
/**
|
|
547
554
|
* Updates the specified named range by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
@@ -731,6 +738,13 @@ export interface NamedRangesApiListNamedRangesRequest {
|
|
|
731
738
|
* @memberof NamedRangesApiListNamedRanges
|
|
732
739
|
*/
|
|
733
740
|
readonly expand?: string
|
|
741
|
+
|
|
742
|
+
/**
|
|
743
|
+
*
|
|
744
|
+
* @type {string}
|
|
745
|
+
* @memberof NamedRangesApiListNamedRanges
|
|
746
|
+
*/
|
|
747
|
+
readonly filters?: string
|
|
734
748
|
}
|
|
735
749
|
|
|
736
750
|
/**
|
|
@@ -825,7 +839,7 @@ export class NamedRangesApi extends BaseAPI {
|
|
|
825
839
|
* @memberof NamedRangesApi
|
|
826
840
|
*/
|
|
827
841
|
public listNamedRanges(requestParameters: NamedRangesApiListNamedRangesRequest = {}, options?: AxiosRequestConfig) {
|
|
828
|
-
return NamedRangesApiFp(this.configuration).listNamedRanges(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
842
|
+
return NamedRangesApiFp(this.configuration).listNamedRanges(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
829
843
|
}
|
|
830
844
|
|
|
831
845
|
/**
|