@emilgroup/insurance-sdk-node 1.7.3 → 1.8.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 +0 -1
- package/README.md +2 -2
- package/api/insured-objects-api.ts +101 -0
- package/api/leads-api.ts +8 -8
- package/api/policies-api.ts +21 -6
- package/api/product-factors-api.ts +4 -4
- package/api/product-versions-api.ts +0 -103
- package/dist/api/insured-objects-api.d.ts +55 -0
- package/dist/api/insured-objects-api.js +92 -0
- package/dist/api/leads-api.d.ts +8 -8
- package/dist/api/leads-api.js +8 -8
- package/dist/api/policies-api.d.ts +12 -3
- package/dist/api/policies-api.js +13 -6
- package/dist/api/product-factors-api.d.ts +4 -4
- package/dist/api/product-factors-api.js +4 -4
- package/dist/api/product-versions-api.d.ts +0 -53
- package/dist/api/product-versions-api.js +0 -89
- package/dist/models/index.d.ts +0 -1
- package/dist/models/index.js +0 -1
- package/models/index.ts +0 -1
- package/package.json +2 -2
- package/dist/models/clone-product-version-response-class.d.ts +0 -25
- package/dist/models/clone-product-version-response-class.js +0 -15
- package/models/clone-product-version-response-class.ts +0 -31
package/.openapi-generator/FILES
CHANGED
|
@@ -20,7 +20,6 @@ index.ts
|
|
|
20
20
|
models/calculate-custom-premium-request-dto.ts
|
|
21
21
|
models/calculate-premium-request-dto.ts
|
|
22
22
|
models/clone-product-version-request-dto.ts
|
|
23
|
-
models/clone-product-version-response-class.ts
|
|
24
23
|
models/create-account-request-dto.ts
|
|
25
24
|
models/create-bank-account-request-dto.ts
|
|
26
25
|
models/create-custom-application-request-dto.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.8.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.8.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
|
@@ -85,6 +85,51 @@ export const InsuredObjectsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
85
85
|
options: localVarRequestOptions,
|
|
86
86
|
};
|
|
87
87
|
},
|
|
88
|
+
/**
|
|
89
|
+
* Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
|
|
90
|
+
* @summary Delete the insured object
|
|
91
|
+
* @param {string} id
|
|
92
|
+
* @param {string} [authorization] Bearer Token
|
|
93
|
+
* @param {*} [options] Override http request option.
|
|
94
|
+
* @throws {RequiredError}
|
|
95
|
+
*/
|
|
96
|
+
deleteInsuredObject: async (id: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
97
|
+
// verify required parameter 'id' is not null or undefined
|
|
98
|
+
assertParamExists('deleteInsuredObject', 'id', id)
|
|
99
|
+
const localVarPath = `/insuranceservice/v1/insured-objects/{id}`
|
|
100
|
+
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
|
|
101
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
102
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
103
|
+
let baseOptions;
|
|
104
|
+
let baseAccessToken;
|
|
105
|
+
if (configuration) {
|
|
106
|
+
baseOptions = configuration.baseOptions;
|
|
107
|
+
baseAccessToken = configuration.accessToken;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
111
|
+
const localVarHeaderParameter = {} as any;
|
|
112
|
+
const localVarQueryParameter = {} as any;
|
|
113
|
+
|
|
114
|
+
// authentication bearer required
|
|
115
|
+
// http bearer authentication required
|
|
116
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
117
|
+
|
|
118
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
119
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
125
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
126
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
127
|
+
|
|
128
|
+
return {
|
|
129
|
+
url: toPathString(localVarUrlObj),
|
|
130
|
+
options: localVarRequestOptions,
|
|
131
|
+
};
|
|
132
|
+
},
|
|
88
133
|
/**
|
|
89
134
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
90
135
|
* @summary Retrieve the insured object
|
|
@@ -225,6 +270,18 @@ export const InsuredObjectsApiFp = function(configuration?: Configuration) {
|
|
|
225
270
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createInsuredObject(createInsuredObjectRequestDto, authorization, options);
|
|
226
271
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
227
272
|
},
|
|
273
|
+
/**
|
|
274
|
+
* Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
|
|
275
|
+
* @summary Delete the insured object
|
|
276
|
+
* @param {string} id
|
|
277
|
+
* @param {string} [authorization] Bearer Token
|
|
278
|
+
* @param {*} [options] Override http request option.
|
|
279
|
+
* @throws {RequiredError}
|
|
280
|
+
*/
|
|
281
|
+
async deleteInsuredObject(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
282
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteInsuredObject(id, authorization, options);
|
|
283
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
284
|
+
},
|
|
228
285
|
/**
|
|
229
286
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
230
287
|
* @summary Retrieve the insured object
|
|
@@ -276,6 +333,17 @@ export const InsuredObjectsApiFactory = function (configuration?: Configuration,
|
|
|
276
333
|
createInsuredObject(createInsuredObjectRequestDto: CreateInsuredObjectRequestDto, authorization?: string, options?: any): AxiosPromise<CreateInsuredObjectResponseClass> {
|
|
277
334
|
return localVarFp.createInsuredObject(createInsuredObjectRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
278
335
|
},
|
|
336
|
+
/**
|
|
337
|
+
* Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
|
|
338
|
+
* @summary Delete the insured object
|
|
339
|
+
* @param {string} id
|
|
340
|
+
* @param {string} [authorization] Bearer Token
|
|
341
|
+
* @param {*} [options] Override http request option.
|
|
342
|
+
* @throws {RequiredError}
|
|
343
|
+
*/
|
|
344
|
+
deleteInsuredObject(id: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
345
|
+
return localVarFp.deleteInsuredObject(id, authorization, options).then((request) => request(axios, basePath));
|
|
346
|
+
},
|
|
279
347
|
/**
|
|
280
348
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
281
349
|
* @summary Retrieve the insured object
|
|
@@ -328,6 +396,27 @@ export interface InsuredObjectsApiCreateInsuredObjectRequest {
|
|
|
328
396
|
readonly authorization?: string
|
|
329
397
|
}
|
|
330
398
|
|
|
399
|
+
/**
|
|
400
|
+
* Request parameters for deleteInsuredObject operation in InsuredObjectsApi.
|
|
401
|
+
* @export
|
|
402
|
+
* @interface InsuredObjectsApiDeleteInsuredObjectRequest
|
|
403
|
+
*/
|
|
404
|
+
export interface InsuredObjectsApiDeleteInsuredObjectRequest {
|
|
405
|
+
/**
|
|
406
|
+
*
|
|
407
|
+
* @type {string}
|
|
408
|
+
* @memberof InsuredObjectsApiDeleteInsuredObject
|
|
409
|
+
*/
|
|
410
|
+
readonly id: string
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Bearer Token
|
|
414
|
+
* @type {string}
|
|
415
|
+
* @memberof InsuredObjectsApiDeleteInsuredObject
|
|
416
|
+
*/
|
|
417
|
+
readonly authorization?: string
|
|
418
|
+
}
|
|
419
|
+
|
|
331
420
|
/**
|
|
332
421
|
* Request parameters for getInsuredObject operation in InsuredObjectsApi.
|
|
333
422
|
* @export
|
|
@@ -431,6 +520,18 @@ export class InsuredObjectsApi extends BaseAPI {
|
|
|
431
520
|
return InsuredObjectsApiFp(this.configuration).createInsuredObject(requestParameters.createInsuredObjectRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
432
521
|
}
|
|
433
522
|
|
|
523
|
+
/**
|
|
524
|
+
* Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
|
|
525
|
+
* @summary Delete the insured object
|
|
526
|
+
* @param {InsuredObjectsApiDeleteInsuredObjectRequest} requestParameters Request parameters.
|
|
527
|
+
* @param {*} [options] Override http request option.
|
|
528
|
+
* @throws {RequiredError}
|
|
529
|
+
* @memberof InsuredObjectsApi
|
|
530
|
+
*/
|
|
531
|
+
public deleteInsuredObject(requestParameters: InsuredObjectsApiDeleteInsuredObjectRequest, options?: AxiosRequestConfig) {
|
|
532
|
+
return InsuredObjectsApiFp(this.configuration).deleteInsuredObject(requestParameters.id, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
533
|
+
}
|
|
534
|
+
|
|
434
535
|
/**
|
|
435
536
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
436
537
|
* @summary Retrieve the insured object
|
package/api/leads-api.ts
CHANGED
|
@@ -142,8 +142,8 @@ export const LeadsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
142
142
|
};
|
|
143
143
|
},
|
|
144
144
|
/**
|
|
145
|
-
* Returns a list of
|
|
146
|
-
* @summary List
|
|
145
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
146
|
+
* @summary List leads
|
|
147
147
|
* @param {string} [authorization] Bearer Token
|
|
148
148
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
149
149
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -299,8 +299,8 @@ export const LeadsApiFp = function(configuration?: Configuration) {
|
|
|
299
299
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
300
300
|
},
|
|
301
301
|
/**
|
|
302
|
-
* Returns a list of
|
|
303
|
-
* @summary List
|
|
302
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
303
|
+
* @summary List leads
|
|
304
304
|
* @param {string} [authorization] Bearer Token
|
|
305
305
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
306
306
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -362,8 +362,8 @@ export const LeadsApiFactory = function (configuration?: Configuration, basePath
|
|
|
362
362
|
return localVarFp.getLead(code, expand, authorization, options).then((request) => request(axios, basePath));
|
|
363
363
|
},
|
|
364
364
|
/**
|
|
365
|
-
* Returns a list of
|
|
366
|
-
* @summary List
|
|
365
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
366
|
+
* @summary List leads
|
|
367
367
|
* @param {string} [authorization] Bearer Token
|
|
368
368
|
* @param {any} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 100. Default: 10.
|
|
369
369
|
* @param {any} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
@@ -557,8 +557,8 @@ export class LeadsApi extends BaseAPI {
|
|
|
557
557
|
}
|
|
558
558
|
|
|
559
559
|
/**
|
|
560
|
-
* Returns a list of
|
|
561
|
-
* @summary List
|
|
560
|
+
* Returns a list of leads you have previously created. The leads are returned in sorted order, with the oldest one appearing first. For more information about pagination, read the Pagination documentation.
|
|
561
|
+
* @summary List leads
|
|
562
562
|
* @param {LeadsApiListLeadsRequest} requestParameters Request parameters.
|
|
563
563
|
* @param {*} [options] Override http request option.
|
|
564
564
|
* @throws {RequiredError}
|
package/api/policies-api.ts
CHANGED
|
@@ -427,13 +427,16 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
427
427
|
* Withdraw policy by tenant.
|
|
428
428
|
* @summary Withdraw policy by tenant
|
|
429
429
|
* @param {string} policyCode The policy code.
|
|
430
|
+
* @param {object} body
|
|
430
431
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
431
432
|
* @param {*} [options] Override http request option.
|
|
432
433
|
* @throws {RequiredError}
|
|
433
434
|
*/
|
|
434
|
-
withdrawPolicy: async (policyCode: string, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
435
|
+
withdrawPolicy: async (policyCode: string, body: object, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
435
436
|
// verify required parameter 'policyCode' is not null or undefined
|
|
436
437
|
assertParamExists('withdrawPolicy', 'policyCode', policyCode)
|
|
438
|
+
// verify required parameter 'body' is not null or undefined
|
|
439
|
+
assertParamExists('withdrawPolicy', 'body', body)
|
|
437
440
|
const localVarPath = `/insuranceservice/v1/policies/{policyCode}/withdraw`
|
|
438
441
|
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
|
|
439
442
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -459,9 +462,12 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
459
462
|
|
|
460
463
|
|
|
461
464
|
|
|
465
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
466
|
+
|
|
462
467
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
463
468
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
464
469
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
470
|
+
localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)
|
|
465
471
|
|
|
466
472
|
return {
|
|
467
473
|
url: toPathString(localVarUrlObj),
|
|
@@ -576,12 +582,13 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
576
582
|
* Withdraw policy by tenant.
|
|
577
583
|
* @summary Withdraw policy by tenant
|
|
578
584
|
* @param {string} policyCode The policy code.
|
|
585
|
+
* @param {object} body
|
|
579
586
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
580
587
|
* @param {*} [options] Override http request option.
|
|
581
588
|
* @throws {RequiredError}
|
|
582
589
|
*/
|
|
583
|
-
async withdrawPolicy(policyCode: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyResponseClass>> {
|
|
584
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawPolicy(policyCode, authorization, options);
|
|
590
|
+
async withdrawPolicy(policyCode: string, body: object, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WithdrawPolicyResponseClass>> {
|
|
591
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.withdrawPolicy(policyCode, body, authorization, options);
|
|
585
592
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
586
593
|
},
|
|
587
594
|
}
|
|
@@ -685,12 +692,13 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
685
692
|
* Withdraw policy by tenant.
|
|
686
693
|
* @summary Withdraw policy by tenant
|
|
687
694
|
* @param {string} policyCode The policy code.
|
|
695
|
+
* @param {object} body
|
|
688
696
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
689
697
|
* @param {*} [options] Override http request option.
|
|
690
698
|
* @throws {RequiredError}
|
|
691
699
|
*/
|
|
692
|
-
withdrawPolicy(policyCode: string, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyResponseClass> {
|
|
693
|
-
return localVarFp.withdrawPolicy(policyCode, authorization, options).then((request) => request(axios, basePath));
|
|
700
|
+
withdrawPolicy(policyCode: string, body: object, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyResponseClass> {
|
|
701
|
+
return localVarFp.withdrawPolicy(policyCode, body, authorization, options).then((request) => request(axios, basePath));
|
|
694
702
|
},
|
|
695
703
|
};
|
|
696
704
|
};
|
|
@@ -925,6 +933,13 @@ export interface PoliciesApiWithdrawPolicyRequest {
|
|
|
925
933
|
*/
|
|
926
934
|
readonly policyCode: string
|
|
927
935
|
|
|
936
|
+
/**
|
|
937
|
+
*
|
|
938
|
+
* @type {object}
|
|
939
|
+
* @memberof PoliciesApiWithdrawPolicy
|
|
940
|
+
*/
|
|
941
|
+
readonly body: object
|
|
942
|
+
|
|
928
943
|
/**
|
|
929
944
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
930
945
|
* @type {string}
|
|
@@ -1033,6 +1048,6 @@ export class PoliciesApi extends BaseAPI {
|
|
|
1033
1048
|
* @memberof PoliciesApi
|
|
1034
1049
|
*/
|
|
1035
1050
|
public withdrawPolicy(requestParameters: PoliciesApiWithdrawPolicyRequest, options?: AxiosRequestConfig) {
|
|
1036
|
-
return PoliciesApiFp(this.configuration).withdrawPolicy(requestParameters.policyCode, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1051
|
+
return PoliciesApiFp(this.configuration).withdrawPolicy(requestParameters.policyCode, requestParameters.body, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1037
1052
|
}
|
|
1038
1053
|
}
|
|
@@ -170,7 +170,7 @@ export const ProductFactorsApiAxiosParamCreator = function (configuration?: Conf
|
|
|
170
170
|
},
|
|
171
171
|
/**
|
|
172
172
|
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
173
|
-
* @summary
|
|
173
|
+
* @summary List product factors for version
|
|
174
174
|
* @param {number} productVersionId Unique identifier referencing the product Version.
|
|
175
175
|
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All).
|
|
176
176
|
* @param {string} [authorization] Bearer Token
|
|
@@ -445,7 +445,7 @@ export const ProductFactorsApiFp = function(configuration?: Configuration) {
|
|
|
445
445
|
},
|
|
446
446
|
/**
|
|
447
447
|
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
448
|
-
* @summary
|
|
448
|
+
* @summary List product factors for version
|
|
449
449
|
* @param {number} productVersionId Unique identifier referencing the product Version.
|
|
450
450
|
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All).
|
|
451
451
|
* @param {string} [authorization] Bearer Token
|
|
@@ -538,7 +538,7 @@ export const ProductFactorsApiFactory = function (configuration?: Configuration,
|
|
|
538
538
|
},
|
|
539
539
|
/**
|
|
540
540
|
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
541
|
-
* @summary
|
|
541
|
+
* @summary List product factors for version
|
|
542
542
|
* @param {number} productVersionId Unique identifier referencing the product Version.
|
|
543
543
|
* @param {string} values Which values to return for every factor (None or Short for short value lists only or All).
|
|
544
544
|
* @param {string} [authorization] Bearer Token
|
|
@@ -841,7 +841,7 @@ export class ProductFactorsApi extends BaseAPI {
|
|
|
841
841
|
|
|
842
842
|
/**
|
|
843
843
|
* Returns product factors without values (values=none), or with values if their number less or equal to 200 (values=short), or with all values (values=all - this may take several seconds).
|
|
844
|
-
* @summary
|
|
844
|
+
* @summary List product factors for version
|
|
845
845
|
* @param {ProductFactorsApiGetProductFactorsForVersionRequest} requestParameters Request parameters.
|
|
846
846
|
* @param {*} [options] Override http request option.
|
|
847
847
|
* @throws {RequiredError}
|
|
@@ -21,10 +21,6 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
-
import { CloneProductVersionRequestDto } from '../models';
|
|
25
|
-
// @ts-ignore
|
|
26
|
-
import { CloneProductVersionResponseClass } from '../models';
|
|
27
|
-
// @ts-ignore
|
|
28
24
|
import { GetProductVersionResponseClass } from '../models';
|
|
29
25
|
// @ts-ignore
|
|
30
26
|
import { UpdateProductVersionRequestDto } from '../models';
|
|
@@ -40,52 +36,6 @@ const FormData = require('form-data');
|
|
|
40
36
|
*/
|
|
41
37
|
export const ProductVersionsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
42
38
|
return {
|
|
43
|
-
/**
|
|
44
|
-
*
|
|
45
|
-
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
46
|
-
* @param {string} [authorization] Bearer Token
|
|
47
|
-
* @param {*} [options] Override http request option.
|
|
48
|
-
* @throws {RequiredError}
|
|
49
|
-
*/
|
|
50
|
-
cloneProductVersion: async (cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
51
|
-
// verify required parameter 'cloneProductVersionRequestDto' is not null or undefined
|
|
52
|
-
assertParamExists('cloneProductVersion', 'cloneProductVersionRequestDto', cloneProductVersionRequestDto)
|
|
53
|
-
const localVarPath = `/insuranceservice/v1/product-versions/clone`;
|
|
54
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
55
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
56
|
-
let baseOptions;
|
|
57
|
-
let baseAccessToken;
|
|
58
|
-
if (configuration) {
|
|
59
|
-
baseOptions = configuration.baseOptions;
|
|
60
|
-
baseAccessToken = configuration.accessToken;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
64
|
-
const localVarHeaderParameter = {} as any;
|
|
65
|
-
const localVarQueryParameter = {} as any;
|
|
66
|
-
|
|
67
|
-
// authentication bearer required
|
|
68
|
-
// http bearer authentication required
|
|
69
|
-
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
70
|
-
|
|
71
|
-
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
72
|
-
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
78
|
-
|
|
79
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
80
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
81
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
82
|
-
localVarRequestOptions.data = serializeDataIfNeeded(cloneProductVersionRequestDto, localVarRequestOptions, configuration)
|
|
83
|
-
|
|
84
|
-
return {
|
|
85
|
-
url: toPathString(localVarUrlObj),
|
|
86
|
-
options: localVarRequestOptions,
|
|
87
|
-
};
|
|
88
|
-
},
|
|
89
39
|
/**
|
|
90
40
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
91
41
|
* @summary Retrieve the product version
|
|
@@ -199,17 +149,6 @@ export const ProductVersionsApiAxiosParamCreator = function (configuration?: Con
|
|
|
199
149
|
export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
200
150
|
const localVarAxiosParamCreator = ProductVersionsApiAxiosParamCreator(configuration)
|
|
201
151
|
return {
|
|
202
|
-
/**
|
|
203
|
-
*
|
|
204
|
-
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
205
|
-
* @param {string} [authorization] Bearer Token
|
|
206
|
-
* @param {*} [options] Override http request option.
|
|
207
|
-
* @throws {RequiredError}
|
|
208
|
-
*/
|
|
209
|
-
async cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CloneProductVersionResponseClass>> {
|
|
210
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.cloneProductVersion(cloneProductVersionRequestDto, authorization, options);
|
|
211
|
-
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
212
|
-
},
|
|
213
152
|
/**
|
|
214
153
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
215
154
|
* @summary Retrieve the product version
|
|
@@ -246,16 +185,6 @@ export const ProductVersionsApiFp = function(configuration?: Configuration) {
|
|
|
246
185
|
export const ProductVersionsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
247
186
|
const localVarFp = ProductVersionsApiFp(configuration)
|
|
248
187
|
return {
|
|
249
|
-
/**
|
|
250
|
-
*
|
|
251
|
-
* @param {CloneProductVersionRequestDto} cloneProductVersionRequestDto
|
|
252
|
-
* @param {string} [authorization] Bearer Token
|
|
253
|
-
* @param {*} [options] Override http request option.
|
|
254
|
-
* @throws {RequiredError}
|
|
255
|
-
*/
|
|
256
|
-
cloneProductVersion(cloneProductVersionRequestDto: CloneProductVersionRequestDto, authorization?: string, options?: any): AxiosPromise<CloneProductVersionResponseClass> {
|
|
257
|
-
return localVarFp.cloneProductVersion(cloneProductVersionRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
258
|
-
},
|
|
259
188
|
/**
|
|
260
189
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
261
190
|
* @summary Retrieve the product version
|
|
@@ -283,27 +212,6 @@ export const ProductVersionsApiFactory = function (configuration?: Configuration
|
|
|
283
212
|
};
|
|
284
213
|
};
|
|
285
214
|
|
|
286
|
-
/**
|
|
287
|
-
* Request parameters for cloneProductVersion operation in ProductVersionsApi.
|
|
288
|
-
* @export
|
|
289
|
-
* @interface ProductVersionsApiCloneProductVersionRequest
|
|
290
|
-
*/
|
|
291
|
-
export interface ProductVersionsApiCloneProductVersionRequest {
|
|
292
|
-
/**
|
|
293
|
-
*
|
|
294
|
-
* @type {CloneProductVersionRequestDto}
|
|
295
|
-
* @memberof ProductVersionsApiCloneProductVersion
|
|
296
|
-
*/
|
|
297
|
-
readonly cloneProductVersionRequestDto: CloneProductVersionRequestDto
|
|
298
|
-
|
|
299
|
-
/**
|
|
300
|
-
* Bearer Token
|
|
301
|
-
* @type {string}
|
|
302
|
-
* @memberof ProductVersionsApiCloneProductVersion
|
|
303
|
-
*/
|
|
304
|
-
readonly authorization?: string
|
|
305
|
-
}
|
|
306
|
-
|
|
307
215
|
/**
|
|
308
216
|
* Request parameters for getProductVersion operation in ProductVersionsApi.
|
|
309
217
|
* @export
|
|
@@ -367,17 +275,6 @@ export interface ProductVersionsApiUpdateProductVersionRequest {
|
|
|
367
275
|
* @extends {BaseAPI}
|
|
368
276
|
*/
|
|
369
277
|
export class ProductVersionsApi extends BaseAPI {
|
|
370
|
-
/**
|
|
371
|
-
*
|
|
372
|
-
* @param {ProductVersionsApiCloneProductVersionRequest} requestParameters Request parameters.
|
|
373
|
-
* @param {*} [options] Override http request option.
|
|
374
|
-
* @throws {RequiredError}
|
|
375
|
-
* @memberof ProductVersionsApi
|
|
376
|
-
*/
|
|
377
|
-
public cloneProductVersion(requestParameters: ProductVersionsApiCloneProductVersionRequest, options?: AxiosRequestConfig) {
|
|
378
|
-
return ProductVersionsApiFp(this.configuration).cloneProductVersion(requestParameters.cloneProductVersionRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
379
|
-
}
|
|
380
|
-
|
|
381
278
|
/**
|
|
382
279
|
* Retrieves the details of the product version that was previously created. Supply the unique product version id that was returned when you created it and Emil Api will return the corresponding product version information.
|
|
383
280
|
* @summary Retrieve the product version
|
|
@@ -30,6 +30,15 @@ export declare const InsuredObjectsApiAxiosParamCreator: (configuration?: Config
|
|
|
30
30
|
* @throws {RequiredError}
|
|
31
31
|
*/
|
|
32
32
|
createInsuredObject: (createInsuredObjectRequestDto: CreateInsuredObjectRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
|
+
/**
|
|
34
|
+
* Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
|
|
35
|
+
* @summary Delete the insured object
|
|
36
|
+
* @param {string} id
|
|
37
|
+
* @param {string} [authorization] Bearer Token
|
|
38
|
+
* @param {*} [options] Override http request option.
|
|
39
|
+
* @throws {RequiredError}
|
|
40
|
+
*/
|
|
41
|
+
deleteInsuredObject: (id: string, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
33
42
|
/**
|
|
34
43
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
35
44
|
* @summary Retrieve the insured object
|
|
@@ -69,6 +78,15 @@ export declare const InsuredObjectsApiFp: (configuration?: Configuration) => {
|
|
|
69
78
|
* @throws {RequiredError}
|
|
70
79
|
*/
|
|
71
80
|
createInsuredObject(createInsuredObjectRequestDto: CreateInsuredObjectRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateInsuredObjectResponseClass>>;
|
|
81
|
+
/**
|
|
82
|
+
* Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
|
|
83
|
+
* @summary Delete the insured object
|
|
84
|
+
* @param {string} id
|
|
85
|
+
* @param {string} [authorization] Bearer Token
|
|
86
|
+
* @param {*} [options] Override http request option.
|
|
87
|
+
* @throws {RequiredError}
|
|
88
|
+
*/
|
|
89
|
+
deleteInsuredObject(id: string, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
|
|
72
90
|
/**
|
|
73
91
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
74
92
|
* @summary Retrieve the insured object
|
|
@@ -108,6 +126,15 @@ export declare const InsuredObjectsApiFactory: (configuration?: Configuration, b
|
|
|
108
126
|
* @throws {RequiredError}
|
|
109
127
|
*/
|
|
110
128
|
createInsuredObject(createInsuredObjectRequestDto: CreateInsuredObjectRequestDto, authorization?: string, options?: any): AxiosPromise<CreateInsuredObjectResponseClass>;
|
|
129
|
+
/**
|
|
130
|
+
* Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
|
|
131
|
+
* @summary Delete the insured object
|
|
132
|
+
* @param {string} id
|
|
133
|
+
* @param {string} [authorization] Bearer Token
|
|
134
|
+
* @param {*} [options] Override http request option.
|
|
135
|
+
* @throws {RequiredError}
|
|
136
|
+
*/
|
|
137
|
+
deleteInsuredObject(id: string, authorization?: string, options?: any): AxiosPromise<void>;
|
|
111
138
|
/**
|
|
112
139
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
113
140
|
* @summary Retrieve the insured object
|
|
@@ -152,6 +179,25 @@ export interface InsuredObjectsApiCreateInsuredObjectRequest {
|
|
|
152
179
|
*/
|
|
153
180
|
readonly authorization?: string;
|
|
154
181
|
}
|
|
182
|
+
/**
|
|
183
|
+
* Request parameters for deleteInsuredObject operation in InsuredObjectsApi.
|
|
184
|
+
* @export
|
|
185
|
+
* @interface InsuredObjectsApiDeleteInsuredObjectRequest
|
|
186
|
+
*/
|
|
187
|
+
export interface InsuredObjectsApiDeleteInsuredObjectRequest {
|
|
188
|
+
/**
|
|
189
|
+
*
|
|
190
|
+
* @type {string}
|
|
191
|
+
* @memberof InsuredObjectsApiDeleteInsuredObject
|
|
192
|
+
*/
|
|
193
|
+
readonly id: string;
|
|
194
|
+
/**
|
|
195
|
+
* Bearer Token
|
|
196
|
+
* @type {string}
|
|
197
|
+
* @memberof InsuredObjectsApiDeleteInsuredObject
|
|
198
|
+
*/
|
|
199
|
+
readonly authorization?: string;
|
|
200
|
+
}
|
|
155
201
|
/**
|
|
156
202
|
* Request parameters for getInsuredObject operation in InsuredObjectsApi.
|
|
157
203
|
* @export
|
|
@@ -242,6 +288,15 @@ export declare class InsuredObjectsApi extends BaseAPI {
|
|
|
242
288
|
* @memberof InsuredObjectsApi
|
|
243
289
|
*/
|
|
244
290
|
createInsuredObject(requestParameters: InsuredObjectsApiCreateInsuredObjectRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<CreateInsuredObjectResponseClass, any>>;
|
|
291
|
+
/**
|
|
292
|
+
* Permanently deletes the insured object. Supply the unique id that was returned when you created the insured object and this will delete it.
|
|
293
|
+
* @summary Delete the insured object
|
|
294
|
+
* @param {InsuredObjectsApiDeleteInsuredObjectRequest} requestParameters Request parameters.
|
|
295
|
+
* @param {*} [options] Override http request option.
|
|
296
|
+
* @throws {RequiredError}
|
|
297
|
+
* @memberof InsuredObjectsApi
|
|
298
|
+
*/
|
|
299
|
+
deleteInsuredObject(requestParameters: InsuredObjectsApiDeleteInsuredObjectRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any>>;
|
|
245
300
|
/**
|
|
246
301
|
* Retrieves the details of the insured object that was previously created. Supply the unique insured object id that was returned when you created it and Emil Api will return the corresponding insured object information.
|
|
247
302
|
* @summary Retrieve the insured object
|