@emilgroup/insurance-sdk-node 1.25.0 → 1.26.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.
@@ -20,6 +20,8 @@ common.ts
20
20
  configuration.ts
21
21
  git_push.sh
22
22
  index.ts
23
+ models/activate-policy-request-dto.ts
24
+ models/activate-policy-response-class.ts
23
25
  models/calculate-custom-premium-request-dto.ts
24
26
  models/calculate-premium-request-dto.ts
25
27
  models/clone-product-version-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.25.0 --save
20
+ npm install @emilgroup/insurance-sdk-node@1.26.0 --save
21
21
  ```
22
22
  or
23
23
  ```
24
- yarn add @emilgroup/insurance-sdk-node@1.25.0
24
+ yarn add @emilgroup/insurance-sdk-node@1.26.0
25
25
  ```
26
26
 
27
27
  And then you can import `PoliciesApi`.
@@ -21,6 +21,10 @@ 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 { ActivatePolicyRequestDto } from '../models';
25
+ // @ts-ignore
26
+ import { ActivatePolicyResponseClass } from '../models';
27
+ // @ts-ignore
24
28
  import { CreatePolicyRequestDto } from '../models';
25
29
  // @ts-ignore
26
30
  import { CreatePolicyResponseClass } from '../models';
@@ -52,6 +56,57 @@ const FormData = require('form-data');
52
56
  */
53
57
  export const PoliciesApiAxiosParamCreator = function (configuration?: Configuration) {
54
58
  return {
59
+ /**
60
+ * Request to activate an existing suspended policy by tenant.
61
+ * @summary Activate a suspended policy by tenant
62
+ * @param {string} policyCode The policy code.
63
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
64
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
65
+ * @param {*} [options] Override http request option.
66
+ * @throws {RequiredError}
67
+ */
68
+ activatePolicy: async (policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
69
+ // verify required parameter 'policyCode' is not null or undefined
70
+ assertParamExists('activatePolicy', 'policyCode', policyCode)
71
+ // verify required parameter 'activatePolicyRequestDto' is not null or undefined
72
+ assertParamExists('activatePolicy', 'activatePolicyRequestDto', activatePolicyRequestDto)
73
+ const localVarPath = `/insuranceservice/v1/policies/{policyCode}/activate`
74
+ .replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
75
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
76
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
77
+ let baseOptions;
78
+ let baseAccessToken;
79
+ if (configuration) {
80
+ baseOptions = configuration.baseOptions;
81
+ baseAccessToken = configuration.accessToken;
82
+ }
83
+
84
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
85
+ const localVarHeaderParameter = {} as any;
86
+ const localVarQueryParameter = {} as any;
87
+
88
+ // authentication bearer required
89
+ // http bearer authentication required
90
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
91
+
92
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
93
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
94
+ }
95
+
96
+
97
+
98
+ localVarHeaderParameter['Content-Type'] = 'application/json';
99
+
100
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
101
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
102
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
103
+ localVarRequestOptions.data = serializeDataIfNeeded(activatePolicyRequestDto, localVarRequestOptions, configuration)
104
+
105
+ return {
106
+ url: toPathString(localVarUrlObj),
107
+ options: localVarRequestOptions,
108
+ };
109
+ },
55
110
  /**
56
111
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
57
112
  * @summary Create the policy
@@ -205,14 +260,14 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
205
260
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
206
261
  * @param {number} [pageSize] Page size.
207
262
  * @param {string} [pageToken] Page token.
208
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
263
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
209
264
  * @param {string} [search] Search query.
210
265
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
211
266
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
212
267
  * @param {*} [options] Override http request option.
213
268
  * @throws {RequiredError}
214
269
  */
215
- listPolicies: async (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | '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> => {
270
+ listPolicies: async (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> => {
216
271
  const localVarPath = `/insuranceservice/v1/policies`;
217
272
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
218
273
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -484,6 +539,19 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
484
539
  export const PoliciesApiFp = function(configuration?: Configuration) {
485
540
  const localVarAxiosParamCreator = PoliciesApiAxiosParamCreator(configuration)
486
541
  return {
542
+ /**
543
+ * Request to activate an existing suspended policy by tenant.
544
+ * @summary Activate a suspended policy by tenant
545
+ * @param {string} policyCode The policy code.
546
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
547
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
548
+ * @param {*} [options] Override http request option.
549
+ * @throws {RequiredError}
550
+ */
551
+ async activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivatePolicyResponseClass>> {
552
+ const localVarAxiosArgs = await localVarAxiosParamCreator.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options);
553
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
554
+ },
487
555
  /**
488
556
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
489
557
  * @summary Create the policy
@@ -528,14 +596,14 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
528
596
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
529
597
  * @param {number} [pageSize] Page size.
530
598
  * @param {string} [pageToken] Page token.
531
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
599
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
532
600
  * @param {string} [search] Search query.
533
601
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
534
602
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
535
603
  * @param {*} [options] Override http request option.
536
604
  * @throws {RequiredError}
537
605
  */
538
- async listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | '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>> {
606
+ async 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>> {
539
607
  const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options);
540
608
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
541
609
  },
@@ -601,6 +669,18 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
601
669
  export const PoliciesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
602
670
  const localVarFp = PoliciesApiFp(configuration)
603
671
  return {
672
+ /**
673
+ * Request to activate an existing suspended policy by tenant.
674
+ * @summary Activate a suspended policy by tenant
675
+ * @param {string} policyCode The policy code.
676
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
677
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
678
+ * @param {*} [options] Override http request option.
679
+ * @throws {RequiredError}
680
+ */
681
+ activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<ActivatePolicyResponseClass> {
682
+ return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
683
+ },
604
684
  /**
605
685
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
606
686
  * @summary Create the policy
@@ -642,14 +722,14 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
642
722
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
643
723
  * @param {number} [pageSize] Page size.
644
724
  * @param {string} [pageToken] Page token.
645
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
725
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
646
726
  * @param {string} [search] Search query.
647
727
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
648
728
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
649
729
  * @param {*} [options] Override http request option.
650
730
  * @throws {RequiredError}
651
731
  */
652
- listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | '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> {
732
+ 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> {
653
733
  return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, options).then((request) => request(axios, basePath));
654
734
  },
655
735
  /**
@@ -703,6 +783,34 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
703
783
  };
704
784
  };
705
785
 
786
+ /**
787
+ * Request parameters for activatePolicy operation in PoliciesApi.
788
+ * @export
789
+ * @interface PoliciesApiActivatePolicyRequest
790
+ */
791
+ export interface PoliciesApiActivatePolicyRequest {
792
+ /**
793
+ * The policy code.
794
+ * @type {string}
795
+ * @memberof PoliciesApiActivatePolicy
796
+ */
797
+ readonly policyCode: string
798
+
799
+ /**
800
+ *
801
+ * @type {ActivatePolicyRequestDto}
802
+ * @memberof PoliciesApiActivatePolicy
803
+ */
804
+ readonly activatePolicyRequestDto: ActivatePolicyRequestDto
805
+
806
+ /**
807
+ * Bearer Token: provided by the login endpoint under the name accessToken.
808
+ * @type {string}
809
+ * @memberof PoliciesApiActivatePolicy
810
+ */
811
+ readonly authorization?: string
812
+ }
813
+
706
814
  /**
707
815
  * Request parameters for createPolicy operation in PoliciesApi.
708
816
  * @export
@@ -809,10 +917,10 @@ export interface PoliciesApiListPoliciesRequest {
809
917
 
810
918
  /**
811
919
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
812
- * @type {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
920
+ * @type {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
813
921
  * @memberof PoliciesApiListPolicies
814
922
  */
815
- readonly filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'
923
+ readonly filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'
816
924
 
817
925
  /**
818
926
  * Search query.
@@ -955,6 +1063,18 @@ export interface PoliciesApiWithdrawPolicyRequest {
955
1063
  * @extends {BaseAPI}
956
1064
  */
957
1065
  export class PoliciesApi extends BaseAPI {
1066
+ /**
1067
+ * Request to activate an existing suspended policy by tenant.
1068
+ * @summary Activate a suspended policy by tenant
1069
+ * @param {PoliciesApiActivatePolicyRequest} requestParameters Request parameters.
1070
+ * @param {*} [options] Override http request option.
1071
+ * @throws {RequiredError}
1072
+ * @memberof PoliciesApi
1073
+ */
1074
+ public activatePolicy(requestParameters: PoliciesApiActivatePolicyRequest, options?: AxiosRequestConfig) {
1075
+ return PoliciesApiFp(this.configuration).activatePolicy(requestParameters.policyCode, requestParameters.activatePolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
1076
+ }
1077
+
958
1078
  /**
959
1079
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
960
1080
  * @summary Create the policy
@@ -12,6 +12,8 @@
12
12
  import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
13
13
  import { Configuration } from '../configuration';
14
14
  import { RequestArgs, BaseAPI } from '../base';
15
+ import { ActivatePolicyRequestDto } from '../models';
16
+ import { ActivatePolicyResponseClass } from '../models';
15
17
  import { CreatePolicyRequestDto } from '../models';
16
18
  import { CreatePolicyResponseClass } from '../models';
17
19
  import { GetPolicyResponseClass } from '../models';
@@ -28,6 +30,16 @@ import { WithdrawPolicyResponseClass } from '../models';
28
30
  * @export
29
31
  */
30
32
  export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuration) => {
33
+ /**
34
+ * Request to activate an existing suspended policy by tenant.
35
+ * @summary Activate a suspended policy by tenant
36
+ * @param {string} policyCode The policy code.
37
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
38
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
39
+ * @param {*} [options] Override http request option.
40
+ * @throws {RequiredError}
41
+ */
42
+ activatePolicy: (policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
43
  /**
32
44
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
33
45
  * @summary Create the policy
@@ -63,14 +75,14 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
63
75
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
64
76
  * @param {number} [pageSize] Page size.
65
77
  * @param {string} [pageToken] Page token.
66
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
78
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
67
79
  * @param {string} [search] Search query.
68
80
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
69
81
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
70
82
  * @param {*} [options] Override http request option.
71
83
  * @throws {RequiredError}
72
84
  */
73
- listPolicies: (authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | '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>;
85
+ 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>;
74
86
  /**
75
87
  * Request to suspend an existing policy by tenant.
76
88
  * @summary Suspend a policy by tenant
@@ -117,6 +129,16 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
117
129
  * @export
118
130
  */
119
131
  export declare const PoliciesApiFp: (configuration?: Configuration) => {
132
+ /**
133
+ * Request to activate an existing suspended policy by tenant.
134
+ * @summary Activate a suspended policy by tenant
135
+ * @param {string} policyCode The policy code.
136
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
137
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
138
+ * @param {*} [options] Override http request option.
139
+ * @throws {RequiredError}
140
+ */
141
+ activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ActivatePolicyResponseClass>>;
120
142
  /**
121
143
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
122
144
  * @summary Create the policy
@@ -152,14 +174,14 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
152
174
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
153
175
  * @param {number} [pageSize] Page size.
154
176
  * @param {string} [pageToken] Page token.
155
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
177
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
156
178
  * @param {string} [search] Search query.
157
179
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
158
180
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
159
181
  * @param {*} [options] Override http request option.
160
182
  * @throws {RequiredError}
161
183
  */
162
- listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | '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>>;
184
+ 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>>;
163
185
  /**
164
186
  * Request to suspend an existing policy by tenant.
165
187
  * @summary Suspend a policy by tenant
@@ -206,6 +228,16 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
206
228
  * @export
207
229
  */
208
230
  export declare const PoliciesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
231
+ /**
232
+ * Request to activate an existing suspended policy by tenant.
233
+ * @summary Activate a suspended policy by tenant
234
+ * @param {string} policyCode The policy code.
235
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
236
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
237
+ * @param {*} [options] Override http request option.
238
+ * @throws {RequiredError}
239
+ */
240
+ activatePolicy(policyCode: string, activatePolicyRequestDto: ActivatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<ActivatePolicyResponseClass>;
209
241
  /**
210
242
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
211
243
  * @summary Create the policy
@@ -241,14 +273,14 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
241
273
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
242
274
  * @param {number} [pageSize] Page size.
243
275
  * @param {string} [pageToken] Page token.
244
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
276
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
245
277
  * @param {string} [search] Search query.
246
278
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
247
279
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
248
280
  * @param {*} [options] Override http request option.
249
281
  * @throws {RequiredError}
250
282
  */
251
- listPolicies(authorization?: string, pageSize?: number, pageToken?: string, filter?: 'code' | '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>;
283
+ 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>;
252
284
  /**
253
285
  * Request to suspend an existing policy by tenant.
254
286
  * @summary Suspend a policy by tenant
@@ -290,6 +322,31 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
290
322
  */
291
323
  withdrawPolicy(policyCode: string, body: object, authorization?: string, options?: any): AxiosPromise<WithdrawPolicyResponseClass>;
292
324
  };
325
+ /**
326
+ * Request parameters for activatePolicy operation in PoliciesApi.
327
+ * @export
328
+ * @interface PoliciesApiActivatePolicyRequest
329
+ */
330
+ export interface PoliciesApiActivatePolicyRequest {
331
+ /**
332
+ * The policy code.
333
+ * @type {string}
334
+ * @memberof PoliciesApiActivatePolicy
335
+ */
336
+ readonly policyCode: string;
337
+ /**
338
+ *
339
+ * @type {ActivatePolicyRequestDto}
340
+ * @memberof PoliciesApiActivatePolicy
341
+ */
342
+ readonly activatePolicyRequestDto: ActivatePolicyRequestDto;
343
+ /**
344
+ * Bearer Token: provided by the login endpoint under the name accessToken.
345
+ * @type {string}
346
+ * @memberof PoliciesApiActivatePolicy
347
+ */
348
+ readonly authorization?: string;
349
+ }
293
350
  /**
294
351
  * Request parameters for createPolicy operation in PoliciesApi.
295
352
  * @export
@@ -385,10 +442,10 @@ export interface PoliciesApiListPoliciesRequest {
385
442
  readonly pageToken?: string;
386
443
  /**
387
444
  * Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
388
- * @type {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
445
+ * @type {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'}
389
446
  * @memberof PoliciesApiListPolicies
390
447
  */
391
- readonly filter?: 'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData';
448
+ readonly filter?: 'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData';
392
449
  /**
393
450
  * Search query.
394
451
  * @type {string}
@@ -515,6 +572,15 @@ export interface PoliciesApiWithdrawPolicyRequest {
515
572
  * @extends {BaseAPI}
516
573
  */
517
574
  export declare class PoliciesApi extends BaseAPI {
575
+ /**
576
+ * Request to activate an existing suspended policy by tenant.
577
+ * @summary Activate a suspended policy by tenant
578
+ * @param {PoliciesApiActivatePolicyRequest} requestParameters Request parameters.
579
+ * @param {*} [options] Override http request option.
580
+ * @throws {RequiredError}
581
+ * @memberof PoliciesApi
582
+ */
583
+ activatePolicy(requestParameters: PoliciesApiActivatePolicyRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<ActivatePolicyResponseClass, any>>;
518
584
  /**
519
585
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
520
586
  * @summary Create the policy
@@ -96,6 +96,59 @@ var FormData = require('form-data');
96
96
  var PoliciesApiAxiosParamCreator = function (configuration) {
97
97
  var _this = this;
98
98
  return {
99
+ /**
100
+ * Request to activate an existing suspended policy by tenant.
101
+ * @summary Activate a suspended policy by tenant
102
+ * @param {string} policyCode The policy code.
103
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
104
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
105
+ * @param {*} [options] Override http request option.
106
+ * @throws {RequiredError}
107
+ */
108
+ activatePolicy: function (policyCode, activatePolicyRequestDto, authorization, options) {
109
+ if (options === void 0) { options = {}; }
110
+ return __awaiter(_this, void 0, void 0, function () {
111
+ var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
112
+ return __generator(this, function (_a) {
113
+ switch (_a.label) {
114
+ case 0:
115
+ // verify required parameter 'policyCode' is not null or undefined
116
+ (0, common_1.assertParamExists)('activatePolicy', 'policyCode', policyCode);
117
+ // verify required parameter 'activatePolicyRequestDto' is not null or undefined
118
+ (0, common_1.assertParamExists)('activatePolicy', 'activatePolicyRequestDto', activatePolicyRequestDto);
119
+ localVarPath = "/insuranceservice/v1/policies/{policyCode}/activate"
120
+ .replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
121
+ localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
122
+ if (configuration) {
123
+ baseOptions = configuration.baseOptions;
124
+ baseAccessToken = configuration.accessToken;
125
+ }
126
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
127
+ localVarHeaderParameter = {};
128
+ localVarQueryParameter = {};
129
+ // authentication bearer required
130
+ // http bearer authentication required
131
+ return [4 /*yield*/, (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration)];
132
+ case 1:
133
+ // authentication bearer required
134
+ // http bearer authentication required
135
+ _a.sent();
136
+ if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
137
+ localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
138
+ }
139
+ localVarHeaderParameter['Content-Type'] = 'application/json';
140
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
141
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
142
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
143
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(activatePolicyRequestDto, localVarRequestOptions, configuration);
144
+ return [2 /*return*/, {
145
+ url: (0, common_1.toPathString)(localVarUrlObj),
146
+ options: localVarRequestOptions,
147
+ }];
148
+ }
149
+ });
150
+ });
151
+ },
99
152
  /**
100
153
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
101
154
  * @summary Create the policy
@@ -255,7 +308,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
255
308
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
256
309
  * @param {number} [pageSize] Page size.
257
310
  * @param {string} [pageToken] Page token.
258
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
311
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
259
312
  * @param {string} [search] Search query.
260
313
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
261
314
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
@@ -539,6 +592,28 @@ exports.PoliciesApiAxiosParamCreator = PoliciesApiAxiosParamCreator;
539
592
  var PoliciesApiFp = function (configuration) {
540
593
  var localVarAxiosParamCreator = (0, exports.PoliciesApiAxiosParamCreator)(configuration);
541
594
  return {
595
+ /**
596
+ * Request to activate an existing suspended policy by tenant.
597
+ * @summary Activate a suspended policy by tenant
598
+ * @param {string} policyCode The policy code.
599
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
600
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ */
604
+ activatePolicy: function (policyCode, activatePolicyRequestDto, authorization, options) {
605
+ return __awaiter(this, void 0, void 0, function () {
606
+ var localVarAxiosArgs;
607
+ return __generator(this, function (_a) {
608
+ switch (_a.label) {
609
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options)];
610
+ case 1:
611
+ localVarAxiosArgs = _a.sent();
612
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
613
+ }
614
+ });
615
+ });
616
+ },
542
617
  /**
543
618
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
544
619
  * @summary Create the policy
@@ -610,7 +685,7 @@ var PoliciesApiFp = function (configuration) {
610
685
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
611
686
  * @param {number} [pageSize] Page size.
612
687
  * @param {string} [pageToken] Page token.
613
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
688
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
614
689
  * @param {string} [search] Search query.
615
690
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
616
691
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
@@ -728,6 +803,18 @@ exports.PoliciesApiFp = PoliciesApiFp;
728
803
  var PoliciesApiFactory = function (configuration, basePath, axios) {
729
804
  var localVarFp = (0, exports.PoliciesApiFp)(configuration);
730
805
  return {
806
+ /**
807
+ * Request to activate an existing suspended policy by tenant.
808
+ * @summary Activate a suspended policy by tenant
809
+ * @param {string} policyCode The policy code.
810
+ * @param {ActivatePolicyRequestDto} activatePolicyRequestDto
811
+ * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
812
+ * @param {*} [options] Override http request option.
813
+ * @throws {RequiredError}
814
+ */
815
+ activatePolicy: function (policyCode, activatePolicyRequestDto, authorization, options) {
816
+ return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
817
+ },
731
818
  /**
732
819
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
733
820
  * @summary Create the policy
@@ -769,7 +856,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
769
856
  * @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
770
857
  * @param {number} [pageSize] Page size.
771
858
  * @param {string} [pageToken] Page token.
772
- * @param {'code' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
859
+ * @param {'code' | 'leadCode' | 'policyNumber' | 'accountCode' | 'statuses' | 'productName' | 'productType' | 'createdAt' | 'policyStartDate' | 'policyData'} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
773
860
  * @param {string} [search] Search query.
774
861
  * @param {'policyNumber' | 'createdAt'} [order] Order allowing you to specify the desired order of entities retrieved from the server.
775
862
  * @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
@@ -841,6 +928,18 @@ var PoliciesApi = /** @class */ (function (_super) {
841
928
  function PoliciesApi() {
842
929
  return _super !== null && _super.apply(this, arguments) || this;
843
930
  }
931
+ /**
932
+ * Request to activate an existing suspended policy by tenant.
933
+ * @summary Activate a suspended policy by tenant
934
+ * @param {PoliciesApiActivatePolicyRequest} requestParameters Request parameters.
935
+ * @param {*} [options] Override http request option.
936
+ * @throws {RequiredError}
937
+ * @memberof PoliciesApi
938
+ */
939
+ PoliciesApi.prototype.activatePolicy = function (requestParameters, options) {
940
+ var _this = this;
941
+ return (0, exports.PoliciesApiFp)(this.configuration).activatePolicy(requestParameters.policyCode, requestParameters.activatePolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
942
+ };
844
943
  /**
845
944
  * This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
846
945
  * @summary Create the policy
@@ -0,0 +1,24 @@
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface ActivatePolicyRequestDto
16
+ */
17
+ export interface ActivatePolicyRequestDto {
18
+ /**
19
+ * Activate from.
20
+ * @type {string}
21
+ * @memberof ActivatePolicyRequestDto
22
+ */
23
+ 'from'?: string;
24
+ }
@@ -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 ActivatePolicyResponseClass
17
+ */
18
+ export interface ActivatePolicyResponseClass {
19
+ /**
20
+ * Policy.
21
+ * @type {PolicyClass}
22
+ * @memberof ActivatePolicyResponseClass
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 });
@@ -1,3 +1,5 @@
1
+ export * from './activate-policy-request-dto';
2
+ export * from './activate-policy-response-class';
1
3
  export * from './calculate-custom-premium-request-dto';
2
4
  export * from './calculate-premium-request-dto';
3
5
  export * from './clone-product-version-request-dto';
@@ -14,6 +14,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./activate-policy-request-dto"), exports);
18
+ __exportStar(require("./activate-policy-response-class"), exports);
17
19
  __exportStar(require("./calculate-custom-premium-request-dto"), exports);
18
20
  __exportStar(require("./calculate-premium-request-dto"), exports);
19
21
  __exportStar(require("./clone-product-version-request-dto"), exports);
@@ -0,0 +1,30 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface ActivatePolicyRequestDto
21
+ */
22
+ export interface ActivatePolicyRequestDto {
23
+ /**
24
+ * Activate from.
25
+ * @type {string}
26
+ * @memberof ActivatePolicyRequestDto
27
+ */
28
+ 'from'?: string;
29
+ }
30
+
@@ -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 ActivatePolicyResponseClass
22
+ */
23
+ export interface ActivatePolicyResponseClass {
24
+ /**
25
+ * Policy.
26
+ * @type {PolicyClass}
27
+ * @memberof ActivatePolicyResponseClass
28
+ */
29
+ 'policy': PolicyClass;
30
+ }
31
+
package/models/index.ts CHANGED
@@ -1,3 +1,5 @@
1
+ export * from './activate-policy-request-dto';
2
+ export * from './activate-policy-response-class';
1
3
  export * from './calculate-custom-premium-request-dto';
2
4
  export * from './calculate-premium-request-dto';
3
5
  export * from './clone-product-version-request-dto';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emilgroup/insurance-sdk-node",
3
- "version": "1.25.0",
3
+ "version": "1.26.0",
4
4
  "description": "OpenAPI client for @emilgroup/insurance-sdk-node",
5
5
  "author": "OpenAPI-Generator Contributors",
6
6
  "keywords": [