@emilgroup/insurance-sdk-node 1.30.0 → 1.31.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/policies-api.ts +120 -0
- package/dist/api/policies-api.d.ts +66 -0
- package/dist/api/policies-api.js +99 -0
- package/dist/models/index.d.ts +2 -0
- package/dist/models/index.js +2 -0
- package/dist/models/patch-policy-request-dto.d.ts +50 -0
- package/dist/models/patch-policy-request-dto.js +15 -0
- package/dist/models/patch-policy-response-class.d.ts +25 -0
- package/dist/models/patch-policy-response-class.js +15 -0
- package/dist/models/policy-class.d.ts +1 -1
- package/dist/models/update-policy-request-dto.d.ts +1 -1
- package/dist/models/update-policy-request-dto.js +1 -1
- package/models/index.ts +2 -0
- package/models/patch-policy-request-dto.ts +56 -0
- package/models/patch-policy-response-class.ts +31 -0
- package/models/policy-class.ts +1 -1
- package/models/update-policy-request-dto.ts +1 -1
- package/package.json +1 -1
package/.openapi-generator/FILES
CHANGED
|
@@ -104,6 +104,8 @@ models/list-request-dto.ts
|
|
|
104
104
|
models/named-range-class.ts
|
|
105
105
|
models/patch-lead-request-dto.ts
|
|
106
106
|
models/patch-lead-response-class.ts
|
|
107
|
+
models/patch-policy-request-dto.ts
|
|
108
|
+
models/patch-policy-response-class.ts
|
|
107
109
|
models/policy-class.ts
|
|
108
110
|
models/policy-object-class.ts
|
|
109
111
|
models/policy-object-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.31.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.31.0
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
And then you can import `PoliciesApi`.
|
package/api/policies-api.ts
CHANGED
|
@@ -33,6 +33,10 @@ import { GetPolicyResponseClass } from '../models';
|
|
|
33
33
|
// @ts-ignore
|
|
34
34
|
import { ListPoliciesResponseClass } from '../models';
|
|
35
35
|
// @ts-ignore
|
|
36
|
+
import { PatchPolicyRequestDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
38
|
+
import { PatchPolicyResponseClass } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
36
40
|
import { SuspendPolicyRequestDto } from '../models';
|
|
37
41
|
// @ts-ignore
|
|
38
42
|
import { SuspendPolicyResponseClass } from '../models';
|
|
@@ -325,6 +329,57 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
325
329
|
options: localVarRequestOptions,
|
|
326
330
|
};
|
|
327
331
|
},
|
|
332
|
+
/**
|
|
333
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
334
|
+
* @summary Update the policy
|
|
335
|
+
* @param {string} code Unique identifier for the object.
|
|
336
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
337
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
338
|
+
* @param {*} [options] Override http request option.
|
|
339
|
+
* @throws {RequiredError}
|
|
340
|
+
*/
|
|
341
|
+
patchPolicy: async (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
342
|
+
// verify required parameter 'code' is not null or undefined
|
|
343
|
+
assertParamExists('patchPolicy', 'code', code)
|
|
344
|
+
// verify required parameter 'patchPolicyRequestDto' is not null or undefined
|
|
345
|
+
assertParamExists('patchPolicy', 'patchPolicyRequestDto', patchPolicyRequestDto)
|
|
346
|
+
const localVarPath = `/insuranceservice/v1/policies/{code}`
|
|
347
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
348
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
349
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
350
|
+
let baseOptions;
|
|
351
|
+
let baseAccessToken;
|
|
352
|
+
if (configuration) {
|
|
353
|
+
baseOptions = configuration.baseOptions;
|
|
354
|
+
baseAccessToken = configuration.accessToken;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
358
|
+
const localVarHeaderParameter = {} as any;
|
|
359
|
+
const localVarQueryParameter = {} as any;
|
|
360
|
+
|
|
361
|
+
// authentication bearer required
|
|
362
|
+
// http bearer authentication required
|
|
363
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
364
|
+
|
|
365
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
366
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
372
|
+
|
|
373
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
374
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
375
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
376
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchPolicyRequestDto, localVarRequestOptions, configuration)
|
|
377
|
+
|
|
378
|
+
return {
|
|
379
|
+
url: toPathString(localVarUrlObj),
|
|
380
|
+
options: localVarRequestOptions,
|
|
381
|
+
};
|
|
382
|
+
},
|
|
328
383
|
/**
|
|
329
384
|
* Request to suspend an existing policy by tenant.
|
|
330
385
|
* @summary Suspend a policy by tenant
|
|
@@ -607,6 +662,19 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
607
662
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options);
|
|
608
663
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
609
664
|
},
|
|
665
|
+
/**
|
|
666
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
667
|
+
* @summary Update the policy
|
|
668
|
+
* @param {string} code Unique identifier for the object.
|
|
669
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
670
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
671
|
+
* @param {*} [options] Override http request option.
|
|
672
|
+
* @throws {RequiredError}
|
|
673
|
+
*/
|
|
674
|
+
async patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
|
|
675
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchPolicy(code, patchPolicyRequestDto, authorization, options);
|
|
676
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
677
|
+
},
|
|
610
678
|
/**
|
|
611
679
|
* Request to suspend an existing policy by tenant.
|
|
612
680
|
* @summary Suspend a policy by tenant
|
|
@@ -732,6 +800,18 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
732
800
|
listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass> {
|
|
733
801
|
return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
|
|
734
802
|
},
|
|
803
|
+
/**
|
|
804
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
805
|
+
* @summary Update the policy
|
|
806
|
+
* @param {string} code Unique identifier for the object.
|
|
807
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
808
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
809
|
+
* @param {*} [options] Override http request option.
|
|
810
|
+
* @throws {RequiredError}
|
|
811
|
+
*/
|
|
812
|
+
patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
|
|
813
|
+
return localVarFp.patchPolicy(code, patchPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
814
|
+
},
|
|
735
815
|
/**
|
|
736
816
|
* Request to suspend an existing policy by tenant.
|
|
737
817
|
* @summary Suspend a policy by tenant
|
|
@@ -944,6 +1024,34 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
944
1024
|
readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'
|
|
945
1025
|
}
|
|
946
1026
|
|
|
1027
|
+
/**
|
|
1028
|
+
* Request parameters for patchPolicy operation in PoliciesApi.
|
|
1029
|
+
* @export
|
|
1030
|
+
* @interface PoliciesApiPatchPolicyRequest
|
|
1031
|
+
*/
|
|
1032
|
+
export interface PoliciesApiPatchPolicyRequest {
|
|
1033
|
+
/**
|
|
1034
|
+
* Unique identifier for the object.
|
|
1035
|
+
* @type {string}
|
|
1036
|
+
* @memberof PoliciesApiPatchPolicy
|
|
1037
|
+
*/
|
|
1038
|
+
readonly code: string
|
|
1039
|
+
|
|
1040
|
+
/**
|
|
1041
|
+
*
|
|
1042
|
+
* @type {PatchPolicyRequestDto}
|
|
1043
|
+
* @memberof PoliciesApiPatchPolicy
|
|
1044
|
+
*/
|
|
1045
|
+
readonly patchPolicyRequestDto: PatchPolicyRequestDto
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1049
|
+
* @type {string}
|
|
1050
|
+
* @memberof PoliciesApiPatchPolicy
|
|
1051
|
+
*/
|
|
1052
|
+
readonly authorization?: string
|
|
1053
|
+
}
|
|
1054
|
+
|
|
947
1055
|
/**
|
|
948
1056
|
* Request parameters for suspendPolicy operation in PoliciesApi.
|
|
949
1057
|
* @export
|
|
@@ -1123,6 +1231,18 @@ export class PoliciesApi extends BaseAPI {
|
|
|
1123
1231
|
return PoliciesApiFp(this.configuration).listPolicies(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then((request) => request(this.axios, this.basePath));
|
|
1124
1232
|
}
|
|
1125
1233
|
|
|
1234
|
+
/**
|
|
1235
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1236
|
+
* @summary Update the policy
|
|
1237
|
+
* @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
* @memberof PoliciesApi
|
|
1241
|
+
*/
|
|
1242
|
+
public patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig) {
|
|
1243
|
+
return PoliciesApiFp(this.configuration).patchPolicy(requestParameters.code, requestParameters.patchPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1126
1246
|
/**
|
|
1127
1247
|
* Request to suspend an existing policy by tenant.
|
|
1128
1248
|
* @summary Suspend a policy by tenant
|
|
@@ -18,6 +18,8 @@ import { CreatePolicyRequestDto } from '../models';
|
|
|
18
18
|
import { CreatePolicyResponseClass } from '../models';
|
|
19
19
|
import { GetPolicyResponseClass } from '../models';
|
|
20
20
|
import { ListPoliciesResponseClass } from '../models';
|
|
21
|
+
import { PatchPolicyRequestDto } from '../models';
|
|
22
|
+
import { PatchPolicyResponseClass } from '../models';
|
|
21
23
|
import { SuspendPolicyRequestDto } from '../models';
|
|
22
24
|
import { SuspendPolicyResponseClass } from '../models';
|
|
23
25
|
import { TerminatePolicyRequestDto } from '../models';
|
|
@@ -83,6 +85,16 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
83
85
|
* @throws {RequiredError}
|
|
84
86
|
*/
|
|
85
87
|
listPolicies: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
88
|
+
/**
|
|
89
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
90
|
+
* @summary Update the policy
|
|
91
|
+
* @param {string} code Unique identifier for the object.
|
|
92
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
93
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
94
|
+
* @param {*} [options] Override http request option.
|
|
95
|
+
* @throws {RequiredError}
|
|
96
|
+
*/
|
|
97
|
+
patchPolicy: (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
86
98
|
/**
|
|
87
99
|
* Request to suspend an existing policy by tenant.
|
|
88
100
|
* @summary Suspend a policy by tenant
|
|
@@ -182,6 +194,16 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
182
194
|
* @throws {RequiredError}
|
|
183
195
|
*/
|
|
184
196
|
listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>>;
|
|
197
|
+
/**
|
|
198
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
199
|
+
* @summary Update the policy
|
|
200
|
+
* @param {string} code Unique identifier for the object.
|
|
201
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
202
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
203
|
+
* @param {*} [options] Override http request option.
|
|
204
|
+
* @throws {RequiredError}
|
|
205
|
+
*/
|
|
206
|
+
patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
|
|
185
207
|
/**
|
|
186
208
|
* Request to suspend an existing policy by tenant.
|
|
187
209
|
* @summary Suspend a policy by tenant
|
|
@@ -281,6 +303,16 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
281
303
|
* @throws {RequiredError}
|
|
282
304
|
*/
|
|
283
305
|
listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData', search?: string, order?: 'policyNumber' | 'createdAt', expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas', options?: any): AxiosPromise<ListPoliciesResponseClass>;
|
|
306
|
+
/**
|
|
307
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
308
|
+
* @summary Update the policy
|
|
309
|
+
* @param {string} code Unique identifier for the object.
|
|
310
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
311
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
312
|
+
* @param {*} [options] Override http request option.
|
|
313
|
+
* @throws {RequiredError}
|
|
314
|
+
*/
|
|
315
|
+
patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
|
|
284
316
|
/**
|
|
285
317
|
* Request to suspend an existing policy by tenant.
|
|
286
318
|
* @summary Suspend a policy by tenant
|
|
@@ -465,6 +497,31 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
465
497
|
*/
|
|
466
498
|
readonly expand?: 'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas';
|
|
467
499
|
}
|
|
500
|
+
/**
|
|
501
|
+
* Request parameters for patchPolicy operation in PoliciesApi.
|
|
502
|
+
* @export
|
|
503
|
+
* @interface PoliciesApiPatchPolicyRequest
|
|
504
|
+
*/
|
|
505
|
+
export interface PoliciesApiPatchPolicyRequest {
|
|
506
|
+
/**
|
|
507
|
+
* Unique identifier for the object.
|
|
508
|
+
* @type {string}
|
|
509
|
+
* @memberof PoliciesApiPatchPolicy
|
|
510
|
+
*/
|
|
511
|
+
readonly code: string;
|
|
512
|
+
/**
|
|
513
|
+
*
|
|
514
|
+
* @type {PatchPolicyRequestDto}
|
|
515
|
+
* @memberof PoliciesApiPatchPolicy
|
|
516
|
+
*/
|
|
517
|
+
readonly patchPolicyRequestDto: PatchPolicyRequestDto;
|
|
518
|
+
/**
|
|
519
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
520
|
+
* @type {string}
|
|
521
|
+
* @memberof PoliciesApiPatchPolicy
|
|
522
|
+
*/
|
|
523
|
+
readonly authorization?: string;
|
|
524
|
+
}
|
|
468
525
|
/**
|
|
469
526
|
* Request parameters for suspendPolicy operation in PoliciesApi.
|
|
470
527
|
* @export
|
|
@@ -617,6 +674,15 @@ export declare class PoliciesApi extends BaseAPI {
|
|
|
617
674
|
* @memberof PoliciesApi
|
|
618
675
|
*/
|
|
619
676
|
listPolicies(requestParameters?: PoliciesApiListPoliciesRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ListPoliciesResponseClass, any>>;
|
|
677
|
+
/**
|
|
678
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
679
|
+
* @summary Update the policy
|
|
680
|
+
* @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
|
|
681
|
+
* @param {*} [options] Override http request option.
|
|
682
|
+
* @throws {RequiredError}
|
|
683
|
+
* @memberof PoliciesApi
|
|
684
|
+
*/
|
|
685
|
+
patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<PatchPolicyResponseClass, any>>;
|
|
620
686
|
/**
|
|
621
687
|
* Request to suspend an existing policy by tenant.
|
|
622
688
|
* @summary Suspend a policy by tenant
|
package/dist/api/policies-api.js
CHANGED
|
@@ -370,6 +370,59 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
370
370
|
});
|
|
371
371
|
});
|
|
372
372
|
},
|
|
373
|
+
/**
|
|
374
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
375
|
+
* @summary Update the policy
|
|
376
|
+
* @param {string} code Unique identifier for the object.
|
|
377
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
378
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
379
|
+
* @param {*} [options] Override http request option.
|
|
380
|
+
* @throws {RequiredError}
|
|
381
|
+
*/
|
|
382
|
+
patchPolicy: function (code, patchPolicyRequestDto, authorization, options) {
|
|
383
|
+
if (options === void 0) { options = {}; }
|
|
384
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
385
|
+
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
386
|
+
return __generator(this, function (_a) {
|
|
387
|
+
switch (_a.label) {
|
|
388
|
+
case 0:
|
|
389
|
+
// verify required parameter 'code' is not null or undefined
|
|
390
|
+
(0, common_1.assertParamExists)('patchPolicy', 'code', code);
|
|
391
|
+
// verify required parameter 'patchPolicyRequestDto' is not null or undefined
|
|
392
|
+
(0, common_1.assertParamExists)('patchPolicy', 'patchPolicyRequestDto', patchPolicyRequestDto);
|
|
393
|
+
localVarPath = "/insuranceservice/v1/policies/{code}"
|
|
394
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
395
|
+
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
396
|
+
if (configuration) {
|
|
397
|
+
baseOptions = configuration.baseOptions;
|
|
398
|
+
baseAccessToken = configuration.accessToken;
|
|
399
|
+
}
|
|
400
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
401
|
+
localVarHeaderParameter = {};
|
|
402
|
+
localVarQueryParameter = {};
|
|
403
|
+
// authentication bearer required
|
|
404
|
+
// http bearer authentication required
|
|
405
|
+
return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
|
|
406
|
+
case 1:
|
|
407
|
+
// authentication bearer required
|
|
408
|
+
// http bearer authentication required
|
|
409
|
+
_a.sent();
|
|
410
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
411
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
412
|
+
}
|
|
413
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
414
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
415
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
416
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
417
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchPolicyRequestDto, localVarRequestOptions, configuration);
|
|
418
|
+
return [2 /*return*/, {
|
|
419
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
420
|
+
options: localVarRequestOptions,
|
|
421
|
+
}];
|
|
422
|
+
}
|
|
423
|
+
});
|
|
424
|
+
});
|
|
425
|
+
},
|
|
373
426
|
/**
|
|
374
427
|
* Request to suspend an existing policy by tenant.
|
|
375
428
|
* @summary Suspend a policy by tenant
|
|
@@ -705,6 +758,28 @@ var PoliciesApiFp = function (configuration) {
|
|
|
705
758
|
});
|
|
706
759
|
});
|
|
707
760
|
},
|
|
761
|
+
/**
|
|
762
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
763
|
+
* @summary Update the policy
|
|
764
|
+
* @param {string} code Unique identifier for the object.
|
|
765
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
766
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
767
|
+
* @param {*} [options] Override http request option.
|
|
768
|
+
* @throws {RequiredError}
|
|
769
|
+
*/
|
|
770
|
+
patchPolicy: function (code, patchPolicyRequestDto, authorization, options) {
|
|
771
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
772
|
+
var localVarAxiosArgs;
|
|
773
|
+
return __generator(this, function (_a) {
|
|
774
|
+
switch (_a.label) {
|
|
775
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchPolicy(code, patchPolicyRequestDto, authorization, options)];
|
|
776
|
+
case 1:
|
|
777
|
+
localVarAxiosArgs = _a.sent();
|
|
778
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
779
|
+
}
|
|
780
|
+
});
|
|
781
|
+
});
|
|
782
|
+
},
|
|
708
783
|
/**
|
|
709
784
|
* Request to suspend an existing policy by tenant.
|
|
710
785
|
* @summary Suspend a policy by tenant
|
|
@@ -866,6 +941,18 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
866
941
|
listPolicies: function (authorization, pageSize, pageToken, filter, search, order, expand, options) {
|
|
867
942
|
return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options).then(function (request) { return request(axios, basePath); });
|
|
868
943
|
},
|
|
944
|
+
/**
|
|
945
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
946
|
+
* @summary Update the policy
|
|
947
|
+
* @param {string} code Unique identifier for the object.
|
|
948
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
949
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
*/
|
|
953
|
+
patchPolicy: function (code, patchPolicyRequestDto, authorization, options) {
|
|
954
|
+
return localVarFp.patchPolicy(code, patchPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
955
|
+
},
|
|
869
956
|
/**
|
|
870
957
|
* Request to suspend an existing policy by tenant.
|
|
871
958
|
* @summary Suspend a policy by tenant
|
|
@@ -989,6 +1076,18 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
989
1076
|
if (requestParameters === void 0) { requestParameters = {}; }
|
|
990
1077
|
return (0, exports.PoliciesApiFp)(this.configuration).listPolicies(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
991
1078
|
};
|
|
1079
|
+
/**
|
|
1080
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1081
|
+
* @summary Update the policy
|
|
1082
|
+
* @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
|
|
1083
|
+
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @throws {RequiredError}
|
|
1085
|
+
* @memberof PoliciesApi
|
|
1086
|
+
*/
|
|
1087
|
+
PoliciesApi.prototype.patchPolicy = function (requestParameters, options) {
|
|
1088
|
+
var _this = this;
|
|
1089
|
+
return (0, exports.PoliciesApiFp)(this.configuration).patchPolicy(requestParameters.code, requestParameters.patchPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1090
|
+
};
|
|
992
1091
|
/**
|
|
993
1092
|
* Request to suspend an existing policy by tenant.
|
|
994
1093
|
* @summary Suspend a policy by tenant
|
package/dist/models/index.d.ts
CHANGED
|
@@ -81,6 +81,8 @@ export * from './list-request-dto';
|
|
|
81
81
|
export * from './named-range-class';
|
|
82
82
|
export * from './patch-lead-request-dto';
|
|
83
83
|
export * from './patch-lead-response-class';
|
|
84
|
+
export * from './patch-policy-request-dto';
|
|
85
|
+
export * from './patch-policy-response-class';
|
|
84
86
|
export * from './policy-class';
|
|
85
87
|
export * from './policy-object-class';
|
|
86
88
|
export * from './policy-object-dto';
|
package/dist/models/index.js
CHANGED
|
@@ -97,6 +97,8 @@ __exportStar(require("./list-request-dto"), exports);
|
|
|
97
97
|
__exportStar(require("./named-range-class"), exports);
|
|
98
98
|
__exportStar(require("./patch-lead-request-dto"), exports);
|
|
99
99
|
__exportStar(require("./patch-lead-response-class"), exports);
|
|
100
|
+
__exportStar(require("./patch-policy-request-dto"), exports);
|
|
101
|
+
__exportStar(require("./patch-policy-response-class"), exports);
|
|
100
102
|
__exportStar(require("./policy-class"), exports);
|
|
101
103
|
__exportStar(require("./policy-object-class"), exports);
|
|
102
104
|
__exportStar(require("./policy-object-dto"), exports);
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService 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
|
+
import { PolicyObjectDto } from './policy-object-dto';
|
|
13
|
+
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface PatchPolicyRequestDto
|
|
18
|
+
*/
|
|
19
|
+
export interface PatchPolicyRequestDto {
|
|
20
|
+
/**
|
|
21
|
+
* Policy objects
|
|
22
|
+
* @type {Array<PolicyObjectDto>}
|
|
23
|
+
* @memberof PatchPolicyRequestDto
|
|
24
|
+
*/
|
|
25
|
+
'policyObjects': Array<PolicyObjectDto>;
|
|
26
|
+
/**
|
|
27
|
+
* Date from which the policy should be updated. This will create a new timeline starting from this date.
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof PatchPolicyRequestDto
|
|
30
|
+
*/
|
|
31
|
+
'from': string;
|
|
32
|
+
/**
|
|
33
|
+
* Date to which the policy should be updated. This will create a new timeline finishing at this date.
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof PatchPolicyRequestDto
|
|
36
|
+
*/
|
|
37
|
+
'to'?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Premium Override
|
|
40
|
+
* @type {PremiumOverrideRequestDto}
|
|
41
|
+
* @memberof PatchPolicyRequestDto
|
|
42
|
+
*/
|
|
43
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
44
|
+
/**
|
|
45
|
+
* Unique identifier of the policy that this object belongs to.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof PatchPolicyRequestDto
|
|
48
|
+
*/
|
|
49
|
+
'policyNumber'?: string;
|
|
50
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService 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 });
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* EMIL InsuranceService
|
|
3
|
+
* The EMIL InsuranceService 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
|
+
import { PolicyClass } from './policy-class';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface PatchPolicyResponseClass
|
|
17
|
+
*/
|
|
18
|
+
export interface PatchPolicyResponseClass {
|
|
19
|
+
/**
|
|
20
|
+
* Policy
|
|
21
|
+
* @type {PolicyClass}
|
|
22
|
+
* @memberof PatchPolicyResponseClass
|
|
23
|
+
*/
|
|
24
|
+
'policy': PolicyClass;
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* EMIL InsuranceService
|
|
6
|
+
* The EMIL InsuranceService 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 });
|
|
@@ -60,7 +60,7 @@ export interface PolicyClass {
|
|
|
60
60
|
*/
|
|
61
61
|
'accountCode': string;
|
|
62
62
|
/**
|
|
63
|
-
* Policy status. This property shows different statuses depending on the status of a policy: ACTIVE,
|
|
63
|
+
* Policy status. This property shows different statuses depending on the status of a policy: ACTIVE, WITHDRAWN, TERMINATED, SUSPENDED.
|
|
64
64
|
* @type {string}
|
|
65
65
|
* @memberof PolicyClass
|
|
66
66
|
*/
|
|
@@ -62,7 +62,7 @@ export interface UpdatePolicyRequestDto {
|
|
|
62
62
|
}
|
|
63
63
|
export declare const UpdatePolicyRequestDtoStatusEnum: {
|
|
64
64
|
readonly Active: "ACTIVE";
|
|
65
|
-
readonly
|
|
65
|
+
readonly Withdrawn: "WITHDRAWN";
|
|
66
66
|
readonly Terminated: "TERMINATED";
|
|
67
67
|
readonly Suspended: "SUSPENDED";
|
|
68
68
|
};
|
|
@@ -16,7 +16,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
16
16
|
exports.UpdatePolicyRequestDtoStatusEnum = void 0;
|
|
17
17
|
exports.UpdatePolicyRequestDtoStatusEnum = {
|
|
18
18
|
Active: 'ACTIVE',
|
|
19
|
-
|
|
19
|
+
Withdrawn: 'WITHDRAWN',
|
|
20
20
|
Terminated: 'TERMINATED',
|
|
21
21
|
Suspended: 'SUSPENDED'
|
|
22
22
|
};
|
package/models/index.ts
CHANGED
|
@@ -81,6 +81,8 @@ export * from './list-request-dto';
|
|
|
81
81
|
export * from './named-range-class';
|
|
82
82
|
export * from './patch-lead-request-dto';
|
|
83
83
|
export * from './patch-lead-response-class';
|
|
84
|
+
export * from './patch-policy-request-dto';
|
|
85
|
+
export * from './patch-policy-response-class';
|
|
84
86
|
export * from './policy-class';
|
|
85
87
|
export * from './policy-object-class';
|
|
86
88
|
export * from './policy-object-dto';
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { PolicyObjectDto } from './policy-object-dto';
|
|
17
|
+
import { PremiumOverrideRequestDto } from './premium-override-request-dto';
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @export
|
|
22
|
+
* @interface PatchPolicyRequestDto
|
|
23
|
+
*/
|
|
24
|
+
export interface PatchPolicyRequestDto {
|
|
25
|
+
/**
|
|
26
|
+
* Policy objects
|
|
27
|
+
* @type {Array<PolicyObjectDto>}
|
|
28
|
+
* @memberof PatchPolicyRequestDto
|
|
29
|
+
*/
|
|
30
|
+
'policyObjects': Array<PolicyObjectDto>;
|
|
31
|
+
/**
|
|
32
|
+
* Date from which the policy should be updated. This will create a new timeline starting from this date.
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof PatchPolicyRequestDto
|
|
35
|
+
*/
|
|
36
|
+
'from': string;
|
|
37
|
+
/**
|
|
38
|
+
* Date to which the policy should be updated. This will create a new timeline finishing at this date.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof PatchPolicyRequestDto
|
|
41
|
+
*/
|
|
42
|
+
'to'?: string;
|
|
43
|
+
/**
|
|
44
|
+
* Premium Override
|
|
45
|
+
* @type {PremiumOverrideRequestDto}
|
|
46
|
+
* @memberof PatchPolicyRequestDto
|
|
47
|
+
*/
|
|
48
|
+
'premiumOverride'?: PremiumOverrideRequestDto;
|
|
49
|
+
/**
|
|
50
|
+
* Unique identifier of the policy that this object belongs to.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof PatchPolicyRequestDto
|
|
53
|
+
*/
|
|
54
|
+
'policyNumber'?: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* EMIL InsuranceService
|
|
5
|
+
* The EMIL InsuranceService API description
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
* Contact: kontakt@emil.de
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import { PolicyClass } from './policy-class';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* @export
|
|
21
|
+
* @interface PatchPolicyResponseClass
|
|
22
|
+
*/
|
|
23
|
+
export interface PatchPolicyResponseClass {
|
|
24
|
+
/**
|
|
25
|
+
* Policy
|
|
26
|
+
* @type {PolicyClass}
|
|
27
|
+
* @memberof PatchPolicyResponseClass
|
|
28
|
+
*/
|
|
29
|
+
'policy': PolicyClass;
|
|
30
|
+
}
|
|
31
|
+
|
package/models/policy-class.ts
CHANGED
|
@@ -65,7 +65,7 @@ export interface PolicyClass {
|
|
|
65
65
|
*/
|
|
66
66
|
'accountCode': string;
|
|
67
67
|
/**
|
|
68
|
-
* Policy status. This property shows different statuses depending on the status of a policy: ACTIVE,
|
|
68
|
+
* Policy status. This property shows different statuses depending on the status of a policy: ACTIVE, WITHDRAWN, TERMINATED, SUSPENDED.
|
|
69
69
|
* @type {string}
|
|
70
70
|
* @memberof PolicyClass
|
|
71
71
|
*/
|