@emilgroup/insurance-sdk-node 1.29.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.
Files changed (39) hide show
  1. package/.openapi-generator/FILES +3 -0
  2. package/README.md +2 -2
  3. package/api/policies-api.ts +120 -0
  4. package/dist/api/policies-api.d.ts +66 -0
  5. package/dist/api/policies-api.js +99 -0
  6. package/dist/models/calculate-product-fields-request-dto.d.ts +31 -0
  7. package/dist/models/calculate-product-fields-request-dto.js +15 -0
  8. package/dist/models/create-named-range-request-dto.d.ts +6 -0
  9. package/dist/models/create-product-field-request-dto.d.ts +6 -0
  10. package/dist/models/index.d.ts +3 -0
  11. package/dist/models/index.js +3 -0
  12. package/dist/models/named-range-class.d.ts +6 -0
  13. package/dist/models/patch-policy-request-dto.d.ts +50 -0
  14. package/dist/models/patch-policy-request-dto.js +15 -0
  15. package/dist/models/patch-policy-response-class.d.ts +25 -0
  16. package/dist/models/patch-policy-response-class.js +15 -0
  17. package/dist/models/policy-class.d.ts +1 -1
  18. package/dist/models/product-field-class.d.ts +6 -0
  19. package/dist/models/shared-product-field-class.d.ts +6 -0
  20. package/dist/models/shared-update-named-range-request-dto.d.ts +6 -0
  21. package/dist/models/update-named-range-request-dto.d.ts +6 -0
  22. package/dist/models/update-policy-request-dto.d.ts +7 -1
  23. package/dist/models/update-policy-request-dto.js +1 -1
  24. package/dist/models/update-product-field-request-dto.d.ts +6 -0
  25. package/models/calculate-product-fields-request-dto.ts +37 -0
  26. package/models/create-named-range-request-dto.ts +6 -0
  27. package/models/create-product-field-request-dto.ts +6 -0
  28. package/models/index.ts +3 -0
  29. package/models/named-range-class.ts +6 -0
  30. package/models/patch-policy-request-dto.ts +56 -0
  31. package/models/patch-policy-response-class.ts +31 -0
  32. package/models/policy-class.ts +1 -1
  33. package/models/product-field-class.ts +6 -0
  34. package/models/shared-product-field-class.ts +6 -0
  35. package/models/shared-update-named-range-request-dto.ts +6 -0
  36. package/models/update-named-range-request-dto.ts +6 -0
  37. package/models/update-policy-request-dto.ts +7 -1
  38. package/models/update-product-field-request-dto.ts +6 -0
  39. package/package.json +1 -1
@@ -24,6 +24,7 @@ models/activate-policy-request-dto.ts
24
24
  models/activate-policy-response-class.ts
25
25
  models/calculate-custom-premium-request-dto.ts
26
26
  models/calculate-premium-request-dto.ts
27
+ models/calculate-product-fields-request-dto.ts
27
28
  models/clone-product-version-request-dto.ts
28
29
  models/create-account-request-dto.ts
29
30
  models/create-bank-account-request-dto.ts
@@ -103,6 +104,8 @@ models/list-request-dto.ts
103
104
  models/named-range-class.ts
104
105
  models/patch-lead-request-dto.ts
105
106
  models/patch-lead-response-class.ts
107
+ models/patch-policy-request-dto.ts
108
+ models/patch-policy-response-class.ts
106
109
  models/policy-class.ts
107
110
  models/policy-object-class.ts
108
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.29.0 --save
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.29.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.31.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -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
@@ -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
@@ -0,0 +1,31 @@
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
+ /**
14
+ *
15
+ * @export
16
+ * @interface CalculateProductFieldsRequestDto
17
+ */
18
+ export interface CalculateProductFieldsRequestDto {
19
+ /**
20
+ * Unique identifier referencing the product version.
21
+ * @type {number}
22
+ * @memberof CalculateProductFieldsRequestDto
23
+ */
24
+ 'productVersionId': number;
25
+ /**
26
+ * Policy Objects.
27
+ * @type {Array<PolicyObjectDto>}
28
+ * @memberof CalculateProductFieldsRequestDto
29
+ */
30
+ 'policyObjects': Array<PolicyObjectDto>;
31
+ }
@@ -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 });
@@ -34,6 +34,12 @@ export interface CreateNamedRangeRequestDto {
34
34
  * @memberof CreateNamedRangeRequestDto
35
35
  */
36
36
  'hasHeader': boolean;
37
+ /**
38
+ * number of header rows (rows to skip) in the named range table
39
+ * @type {number}
40
+ * @memberof CreateNamedRangeRequestDto
41
+ */
42
+ 'headerRows'?: number;
37
43
  /**
38
44
  * File contents encoded as Base64 string.
39
45
  * @type {string}
@@ -111,6 +111,12 @@ export interface CreateProductFieldRequestDto {
111
111
  * @memberof CreateProductFieldRequestDto
112
112
  */
113
113
  'bfLabel'?: string;
114
+ /**
115
+ * Expression to calculate the field.
116
+ * @type {string}
117
+ * @memberof CreateProductFieldRequestDto
118
+ */
119
+ 'expression'?: string;
114
120
  /**
115
121
  * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
116
122
  * @type {object}
@@ -2,6 +2,7 @@ export * from './activate-policy-request-dto';
2
2
  export * from './activate-policy-response-class';
3
3
  export * from './calculate-custom-premium-request-dto';
4
4
  export * from './calculate-premium-request-dto';
5
+ export * from './calculate-product-fields-request-dto';
5
6
  export * from './clone-product-version-request-dto';
6
7
  export * from './create-account-request-dto';
7
8
  export * from './create-bank-account-request-dto';
@@ -80,6 +81,8 @@ export * from './list-request-dto';
80
81
  export * from './named-range-class';
81
82
  export * from './patch-lead-request-dto';
82
83
  export * from './patch-lead-response-class';
84
+ export * from './patch-policy-request-dto';
85
+ export * from './patch-policy-response-class';
83
86
  export * from './policy-class';
84
87
  export * from './policy-object-class';
85
88
  export * from './policy-object-dto';
@@ -18,6 +18,7 @@ __exportStar(require("./activate-policy-request-dto"), exports);
18
18
  __exportStar(require("./activate-policy-response-class"), exports);
19
19
  __exportStar(require("./calculate-custom-premium-request-dto"), exports);
20
20
  __exportStar(require("./calculate-premium-request-dto"), exports);
21
+ __exportStar(require("./calculate-product-fields-request-dto"), exports);
21
22
  __exportStar(require("./clone-product-version-request-dto"), exports);
22
23
  __exportStar(require("./create-account-request-dto"), exports);
23
24
  __exportStar(require("./create-bank-account-request-dto"), exports);
@@ -96,6 +97,8 @@ __exportStar(require("./list-request-dto"), exports);
96
97
  __exportStar(require("./named-range-class"), exports);
97
98
  __exportStar(require("./patch-lead-request-dto"), exports);
98
99
  __exportStar(require("./patch-lead-response-class"), exports);
100
+ __exportStar(require("./patch-policy-request-dto"), exports);
101
+ __exportStar(require("./patch-policy-response-class"), exports);
99
102
  __exportStar(require("./policy-class"), exports);
100
103
  __exportStar(require("./policy-object-class"), exports);
101
104
  __exportStar(require("./policy-object-dto"), exports);
@@ -39,6 +39,12 @@ export interface NamedRangeClass {
39
39
  * @memberof NamedRangeClass
40
40
  */
41
41
  'hasHeader': boolean;
42
+ /**
43
+ * number of header rows (rows to skip) in the named range table
44
+ * @type {number}
45
+ * @memberof NamedRangeClass
46
+ */
47
+ 'headerRows': number;
42
48
  /**
43
49
  * Type of the file with the named range (CSV, XLS or XLSX).
44
50
  * @type {string}
@@ -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, WITHDRAW, TERMINATED, SUSPENDED.
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
  */
@@ -99,6 +99,12 @@ export interface ProductFieldClass {
99
99
  * @memberof ProductFieldClass
100
100
  */
101
101
  'defaultValue': object | null;
102
+ /**
103
+ * Expression to calculate the field.
104
+ * @type {string}
105
+ * @memberof ProductFieldClass
106
+ */
107
+ 'expression': string;
102
108
  /**
103
109
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
104
110
  * @type {object}
@@ -99,6 +99,12 @@ export interface SharedProductFieldClass {
99
99
  * @memberof SharedProductFieldClass
100
100
  */
101
101
  'defaultValue': object | null;
102
+ /**
103
+ * Expression to calculate the field.
104
+ * @type {string}
105
+ * @memberof SharedProductFieldClass
106
+ */
107
+ 'expression': string;
102
108
  /**
103
109
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
104
110
  * @type {object}
@@ -33,4 +33,10 @@ export interface SharedUpdateNamedRangeRequestDto {
33
33
  * @memberof SharedUpdateNamedRangeRequestDto
34
34
  */
35
35
  'hasHeader': boolean;
36
+ /**
37
+ * number of header rows (rows to skip) in the named range table
38
+ * @type {number}
39
+ * @memberof SharedUpdateNamedRangeRequestDto
40
+ */
41
+ 'headerRows'?: number;
36
42
  }
@@ -27,4 +27,10 @@ export interface UpdateNamedRangeRequestDto {
27
27
  * @memberof UpdateNamedRangeRequestDto
28
28
  */
29
29
  'hasHeader': boolean;
30
+ /**
31
+ * number of header rows (rows to skip) in the named range table
32
+ * @type {number}
33
+ * @memberof UpdateNamedRangeRequestDto
34
+ */
35
+ 'headerRows'?: number;
30
36
  }
@@ -53,10 +53,16 @@ export interface UpdatePolicyRequestDto {
53
53
  * @memberof UpdatePolicyRequestDto
54
54
  */
55
55
  'leadCode'?: string;
56
+ /**
57
+ * Unique identifier of the policy that this object belongs to.
58
+ * @type {string}
59
+ * @memberof UpdatePolicyRequestDto
60
+ */
61
+ 'policyNumber'?: string;
56
62
  }
57
63
  export declare const UpdatePolicyRequestDtoStatusEnum: {
58
64
  readonly Active: "ACTIVE";
59
- readonly Withdraw: "WITHDRAW";
65
+ readonly Withdrawn: "WITHDRAWN";
60
66
  readonly Terminated: "TERMINATED";
61
67
  readonly Suspended: "SUSPENDED";
62
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
- Withdraw: 'WITHDRAW',
19
+ Withdrawn: 'WITHDRAWN',
20
20
  Terminated: 'TERMINATED',
21
21
  Suspended: 'SUSPENDED'
22
22
  };
@@ -105,6 +105,12 @@ export interface UpdateProductFieldRequestDto {
105
105
  * @memberof UpdateProductFieldRequestDto
106
106
  */
107
107
  'bfLabel'?: string;
108
+ /**
109
+ * Expression to calculate the field.
110
+ * @type {string}
111
+ * @memberof UpdateProductFieldRequestDto
112
+ */
113
+ 'expression'?: string;
108
114
  /**
109
115
  * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
110
116
  * @type {object}
@@ -0,0 +1,37 @@
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
+
18
+ /**
19
+ *
20
+ * @export
21
+ * @interface CalculateProductFieldsRequestDto
22
+ */
23
+ export interface CalculateProductFieldsRequestDto {
24
+ /**
25
+ * Unique identifier referencing the product version.
26
+ * @type {number}
27
+ * @memberof CalculateProductFieldsRequestDto
28
+ */
29
+ 'productVersionId': number;
30
+ /**
31
+ * Policy Objects.
32
+ * @type {Array<PolicyObjectDto>}
33
+ * @memberof CalculateProductFieldsRequestDto
34
+ */
35
+ 'policyObjects': Array<PolicyObjectDto>;
36
+ }
37
+
@@ -39,6 +39,12 @@ export interface CreateNamedRangeRequestDto {
39
39
  * @memberof CreateNamedRangeRequestDto
40
40
  */
41
41
  'hasHeader': boolean;
42
+ /**
43
+ * number of header rows (rows to skip) in the named range table
44
+ * @type {number}
45
+ * @memberof CreateNamedRangeRequestDto
46
+ */
47
+ 'headerRows'?: number;
42
48
  /**
43
49
  * File contents encoded as Base64 string.
44
50
  * @type {string}
@@ -116,6 +116,12 @@ export interface CreateProductFieldRequestDto {
116
116
  * @memberof CreateProductFieldRequestDto
117
117
  */
118
118
  'bfLabel'?: string;
119
+ /**
120
+ * Expression to calculate the field.
121
+ * @type {string}
122
+ * @memberof CreateProductFieldRequestDto
123
+ */
124
+ 'expression'?: string;
119
125
  /**
120
126
  * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
121
127
  * @type {object}
package/models/index.ts CHANGED
@@ -2,6 +2,7 @@ export * from './activate-policy-request-dto';
2
2
  export * from './activate-policy-response-class';
3
3
  export * from './calculate-custom-premium-request-dto';
4
4
  export * from './calculate-premium-request-dto';
5
+ export * from './calculate-product-fields-request-dto';
5
6
  export * from './clone-product-version-request-dto';
6
7
  export * from './create-account-request-dto';
7
8
  export * from './create-bank-account-request-dto';
@@ -80,6 +81,8 @@ export * from './list-request-dto';
80
81
  export * from './named-range-class';
81
82
  export * from './patch-lead-request-dto';
82
83
  export * from './patch-lead-response-class';
84
+ export * from './patch-policy-request-dto';
85
+ export * from './patch-policy-response-class';
83
86
  export * from './policy-class';
84
87
  export * from './policy-object-class';
85
88
  export * from './policy-object-dto';
@@ -44,6 +44,12 @@ export interface NamedRangeClass {
44
44
  * @memberof NamedRangeClass
45
45
  */
46
46
  'hasHeader': boolean;
47
+ /**
48
+ * number of header rows (rows to skip) in the named range table
49
+ * @type {number}
50
+ * @memberof NamedRangeClass
51
+ */
52
+ 'headerRows': number;
47
53
  /**
48
54
  * Type of the file with the named range (CSV, XLS or XLSX).
49
55
  * @type {string}
@@ -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
+
@@ -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, WITHDRAW, TERMINATED, SUSPENDED.
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
  */
@@ -104,6 +104,12 @@ export interface ProductFieldClass {
104
104
  * @memberof ProductFieldClass
105
105
  */
106
106
  'defaultValue': object | null;
107
+ /**
108
+ * Expression to calculate the field.
109
+ * @type {string}
110
+ * @memberof ProductFieldClass
111
+ */
112
+ 'expression': string;
107
113
  /**
108
114
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
109
115
  * @type {object}
@@ -104,6 +104,12 @@ export interface SharedProductFieldClass {
104
104
  * @memberof SharedProductFieldClass
105
105
  */
106
106
  'defaultValue': object | null;
107
+ /**
108
+ * Expression to calculate the field.
109
+ * @type {string}
110
+ * @memberof SharedProductFieldClass
111
+ */
112
+ 'expression': string;
107
113
  /**
108
114
  * Minimum value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
109
115
  * @type {object}
@@ -38,5 +38,11 @@ export interface SharedUpdateNamedRangeRequestDto {
38
38
  * @memberof SharedUpdateNamedRangeRequestDto
39
39
  */
40
40
  'hasHeader': boolean;
41
+ /**
42
+ * number of header rows (rows to skip) in the named range table
43
+ * @type {number}
44
+ * @memberof SharedUpdateNamedRangeRequestDto
45
+ */
46
+ 'headerRows'?: number;
41
47
  }
42
48
 
@@ -32,5 +32,11 @@ export interface UpdateNamedRangeRequestDto {
32
32
  * @memberof UpdateNamedRangeRequestDto
33
33
  */
34
34
  'hasHeader': boolean;
35
+ /**
36
+ * number of header rows (rows to skip) in the named range table
37
+ * @type {number}
38
+ * @memberof UpdateNamedRangeRequestDto
39
+ */
40
+ 'headerRows'?: number;
35
41
  }
36
42
 
@@ -58,11 +58,17 @@ export interface UpdatePolicyRequestDto {
58
58
  * @memberof UpdatePolicyRequestDto
59
59
  */
60
60
  'leadCode'?: string;
61
+ /**
62
+ * Unique identifier of the policy that this object belongs to.
63
+ * @type {string}
64
+ * @memberof UpdatePolicyRequestDto
65
+ */
66
+ 'policyNumber'?: string;
61
67
  }
62
68
 
63
69
  export const UpdatePolicyRequestDtoStatusEnum = {
64
70
  Active: 'ACTIVE',
65
- Withdraw: 'WITHDRAW',
71
+ Withdrawn: 'WITHDRAWN',
66
72
  Terminated: 'TERMINATED',
67
73
  Suspended: 'SUSPENDED'
68
74
  } as const;
@@ -110,6 +110,12 @@ export interface UpdateProductFieldRequestDto {
110
110
  * @memberof UpdateProductFieldRequestDto
111
111
  */
112
112
  'bfLabel'?: string;
113
+ /**
114
+ * Expression to calculate the field.
115
+ * @type {string}
116
+ * @memberof UpdateProductFieldRequestDto
117
+ */
118
+ 'expression'?: string;
113
119
  /**
114
120
  * Default value of the field. For the field type date-time, it should be { \"templated\" : \"{{today}}\" }
115
121
  * @type {object}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.29.0",
3
+ "version": "1.31.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [