@emilgroup/insurance-sdk-node 1.48.0 → 1.48.1-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +21 -8
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +4 -4
- package/api/default-api.ts +8 -4
- package/api/emil-functions-api.ts +1314 -0
- package/api/insured-object-types-api.ts +4 -4
- package/api/insured-objects-api.ts +9 -6
- package/api/lead-statuses-api.ts +96 -12
- package/api/named-ranges-api.ts +4 -4
- package/api/partner-roles-api.ts +683 -0
- package/api/policies-api.ts +167 -180
- package/api/premium-formulas-api.ts +4 -4
- package/api/product-factors-api.ts +4 -4
- package/api/product-fields-api.ts +8 -8
- package/api/products-api.ts +12 -12
- package/api.ts +4 -2
- package/dist/api/booking-funnels-api.d.ts +4 -4
- package/dist/api/booking-funnels-api.js +4 -4
- package/dist/api/default-api.d.ts +8 -4
- package/dist/api/default-api.js +8 -4
- package/dist/api/emil-functions-api.d.ts +727 -0
- package/dist/api/emil-functions-api.js +1202 -0
- package/dist/api/insured-object-types-api.d.ts +4 -4
- package/dist/api/insured-object-types-api.js +3 -3
- package/dist/api/insured-objects-api.d.ts +4 -4
- package/dist/api/insured-objects-api.js +7 -5
- package/dist/api/lead-statuses-api.d.ts +63 -9
- package/dist/api/lead-statuses-api.js +45 -9
- package/dist/api/named-ranges-api.d.ts +4 -4
- package/dist/api/named-ranges-api.js +3 -3
- package/dist/api/partner-roles-api.d.ts +385 -0
- package/dist/api/{policy-partner-roles-api.js → partner-roles-api.js} +139 -139
- package/dist/api/policies-api.d.ts +131 -140
- package/dist/api/policies-api.js +114 -120
- package/dist/api/premium-formulas-api.d.ts +4 -4
- package/dist/api/premium-formulas-api.js +3 -3
- package/dist/api/product-factors-api.d.ts +4 -4
- package/dist/api/product-factors-api.js +3 -3
- package/dist/api/product-fields-api.d.ts +8 -8
- package/dist/api/product-fields-api.js +6 -6
- package/dist/api/products-api.d.ts +12 -12
- package/dist/api/products-api.js +9 -9
- package/dist/api.d.ts +2 -1
- package/dist/api.js +2 -1
- package/dist/models/booking-funnel-class.d.ts +1 -1
- package/dist/models/create-booking-funnel-request-dto.d.ts +1 -1
- package/dist/models/create-emil-function-request-dto.d.ts +42 -0
- package/dist/models/create-emil-function-secret-request-dto.d.ts +36 -0
- package/dist/models/{update-policy-partner-role-request-dto.d.ts → create-partner-role-request-dto.d.ts} +6 -6
- package/dist/models/{get-policy-partner-role-response-class.d.ts → create-partner-role-response-class.d.ts} +7 -7
- package/dist/models/create-product-request-dto.d.ts +1 -1
- package/dist/models/emil-function-class.d.ts +60 -0
- package/dist/models/{create-policy-partner-role-response-class.d.ts → emil-function-secret-class.d.ts} +12 -7
- package/dist/models/execute-emil-function-request-dto.d.ts +24 -0
- package/dist/models/get-emil-function-secret-response-class.d.ts +24 -0
- package/dist/models/get-emil-function-secret-response-class.js +15 -0
- package/dist/models/{update-policy-partner-role-response-class.d.ts → get-partner-role-response-class.d.ts} +7 -7
- package/dist/models/get-partner-role-response-class.js +15 -0
- package/dist/models/get-product-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +19 -7
- package/dist/models/index.js +19 -7
- package/dist/models/insured-object-type-class.d.ts +1 -1
- package/dist/models/invoice-item-class.d.ts +12 -0
- package/dist/models/lead-class.d.ts +8 -1
- package/dist/models/lead-status-class.d.ts +1 -1
- package/dist/models/list-emil-function-secrets-response-class.d.ts +25 -0
- package/dist/models/list-emil-function-secrets-response-class.js +15 -0
- package/dist/models/{list-policy-partner-roles-response-class.d.ts → list-emil-functions-response-class.d.ts} +8 -8
- package/dist/models/list-emil-functions-response-class.js +15 -0
- package/dist/models/list-partner-roles-response-class.d.ts +31 -0
- package/dist/models/list-partner-roles-response-class.js +15 -0
- package/dist/models/list-policy-versions-request-dto.d.ts +1 -1
- package/dist/models/list-request-dto.d.ts +1 -1
- package/dist/models/partner-class.d.ts +60 -0
- package/dist/models/partner-class.js +15 -0
- package/dist/models/partner-link-class.d.ts +86 -0
- package/dist/models/partner-link-class.js +15 -0
- package/dist/models/{policy-partner-role-class.d.ts → partner-role-class.d.ts} +10 -10
- package/dist/models/partner-role-class.js +15 -0
- package/dist/models/patch-draft-policy-request-dto.d.ts +1 -1
- package/dist/models/policy-class.d.ts +7 -0
- package/dist/models/product-class.d.ts +1 -1
- package/dist/models/shared-update-named-range-request-dto.d.ts +1 -1
- package/dist/models/status-transition-rule-class.d.ts +1 -1
- package/dist/models/update-emil-function-request-dto.d.ts +42 -0
- package/dist/models/update-emil-function-request-dto.js +15 -0
- package/dist/models/update-emil-function-secret-request-dto.d.ts +30 -0
- package/dist/models/update-emil-function-secret-request-dto.js +15 -0
- package/dist/models/update-named-range-request-dto.d.ts +1 -1
- package/dist/models/{create-policy-partner-role-request-dto.d.ts → update-partner-role-request-dto.d.ts} +6 -6
- package/dist/models/update-partner-role-request-dto.js +15 -0
- package/dist/models/update-partner-role-response-class.d.ts +25 -0
- package/dist/models/update-partner-role-response-class.js +15 -0
- package/dist/models/update-product-request-dto.d.ts +1 -1
- package/models/booking-funnel-class.ts +1 -1
- package/models/create-booking-funnel-request-dto.ts +1 -1
- package/models/create-emil-function-request-dto.ts +48 -0
- package/models/create-emil-function-secret-request-dto.ts +42 -0
- package/models/{update-policy-partner-role-request-dto.ts → create-partner-role-request-dto.ts} +6 -6
- package/models/{get-policy-partner-role-response-class.ts → create-partner-role-response-class.ts} +7 -7
- package/models/create-product-request-dto.ts +1 -1
- package/models/emil-function-class.ts +66 -0
- package/models/{update-policy-partner-role-response-class.ts → emil-function-secret-class.ts} +12 -7
- package/models/execute-emil-function-request-dto.ts +30 -0
- package/models/get-emil-function-secret-response-class.ts +30 -0
- package/models/{create-policy-partner-role-response-class.ts → get-partner-role-response-class.ts} +7 -7
- package/models/get-product-request-dto.ts +1 -1
- package/models/index.ts +19 -7
- package/models/insured-object-type-class.ts +1 -1
- package/models/invoice-item-class.ts +12 -0
- package/models/lead-class.ts +8 -1
- package/models/lead-status-class.ts +1 -1
- package/models/list-emil-function-secrets-response-class.ts +31 -0
- package/models/{list-policy-partner-roles-response-class.ts → list-emil-functions-response-class.ts} +8 -8
- package/models/list-partner-roles-response-class.ts +37 -0
- package/models/list-policy-versions-request-dto.ts +1 -1
- package/models/list-request-dto.ts +1 -1
- package/models/partner-class.ts +66 -0
- package/models/partner-link-class.ts +92 -0
- package/models/{policy-partner-role-class.ts → partner-role-class.ts} +10 -10
- package/models/patch-draft-policy-request-dto.ts +1 -1
- package/models/policy-class.ts +7 -0
- package/models/product-class.ts +1 -1
- package/models/shared-update-named-range-request-dto.ts +1 -1
- package/models/status-transition-rule-class.ts +1 -1
- package/models/update-emil-function-request-dto.ts +48 -0
- package/models/update-emil-function-secret-request-dto.ts +36 -0
- package/models/update-named-range-request-dto.ts +1 -1
- package/models/{create-policy-partner-role-request-dto.ts → update-partner-role-request-dto.ts} +6 -6
- package/models/update-partner-role-response-class.ts +31 -0
- package/models/update-product-request-dto.ts +1 -1
- package/package.json +1 -1
- package/api/policy-partner-roles-api.ts +0 -683
- package/dist/api/policy-partner-roles-api.d.ts +0 -385
- /package/dist/models/{create-policy-partner-role-request-dto.js → create-emil-function-request-dto.js} +0 -0
- /package/dist/models/{create-policy-partner-role-response-class.js → create-emil-function-secret-request-dto.js} +0 -0
- /package/dist/models/{get-policy-partner-role-response-class.js → create-partner-role-request-dto.js} +0 -0
- /package/dist/models/{list-policy-partner-roles-response-class.js → create-partner-role-response-class.js} +0 -0
- /package/dist/models/{policy-partner-role-class.js → emil-function-class.js} +0 -0
- /package/dist/models/{update-policy-partner-role-request-dto.js → emil-function-secret-class.js} +0 -0
- /package/dist/models/{update-policy-partner-role-response-class.js → execute-emil-function-request-dto.js} +0 -0
package/api/policies-api.ts
CHANGED
|
@@ -122,17 +122,21 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
122
122
|
};
|
|
123
123
|
},
|
|
124
124
|
/**
|
|
125
|
-
* This will create a policy in the database.
|
|
126
|
-
* @summary Create the policy
|
|
127
|
-
* @param {
|
|
125
|
+
* This will create a draft policy in the database.
|
|
126
|
+
* @summary Create the draft-policy
|
|
127
|
+
* @param {string} policyCode
|
|
128
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
128
129
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
129
130
|
* @param {*} [options] Override http request option.
|
|
130
131
|
* @throws {RequiredError}
|
|
131
132
|
*/
|
|
132
|
-
|
|
133
|
-
// verify required parameter '
|
|
134
|
-
assertParamExists('
|
|
135
|
-
|
|
133
|
+
createDraftPolicy: async (policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
134
|
+
// verify required parameter 'policyCode' is not null or undefined
|
|
135
|
+
assertParamExists('createDraftPolicy', 'policyCode', policyCode)
|
|
136
|
+
// verify required parameter 'createDraftPolicyRequestDto' is not null or undefined
|
|
137
|
+
assertParamExists('createDraftPolicy', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto)
|
|
138
|
+
const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
|
|
139
|
+
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
|
|
136
140
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
137
141
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
138
142
|
let baseOptions;
|
|
@@ -161,7 +165,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
161
165
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
162
166
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
163
167
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
164
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
168
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDraftPolicyRequestDto, localVarRequestOptions, configuration)
|
|
165
169
|
|
|
166
170
|
return {
|
|
167
171
|
url: toPathString(localVarUrlObj),
|
|
@@ -169,21 +173,17 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
169
173
|
};
|
|
170
174
|
},
|
|
171
175
|
/**
|
|
172
|
-
* This will create a
|
|
173
|
-
* @summary Create the
|
|
174
|
-
* @param {
|
|
175
|
-
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
176
|
+
* 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.
|
|
177
|
+
* @summary Create the policy
|
|
178
|
+
* @param {CreatePolicyRequestDto} createPolicyRequestDto
|
|
176
179
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
177
180
|
* @param {*} [options] Override http request option.
|
|
178
181
|
* @throws {RequiredError}
|
|
179
182
|
*/
|
|
180
|
-
|
|
181
|
-
// verify required parameter '
|
|
182
|
-
assertParamExists('
|
|
183
|
-
|
|
184
|
-
assertParamExists('createPolicy_1', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto)
|
|
185
|
-
const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
|
|
186
|
-
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
|
|
183
|
+
createPolicy: async (createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
184
|
+
// verify required parameter 'createPolicyRequestDto' is not null or undefined
|
|
185
|
+
assertParamExists('createPolicy', 'createPolicyRequestDto', createPolicyRequestDto)
|
|
186
|
+
const localVarPath = `/insuranceservice/v1/policies`;
|
|
187
187
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
188
188
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
189
189
|
let baseOptions;
|
|
@@ -212,7 +212,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
212
212
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
213
213
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
214
214
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
215
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
215
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPolicyRequestDto, localVarRequestOptions, configuration)
|
|
216
216
|
|
|
217
217
|
return {
|
|
218
218
|
url: toPathString(localVarUrlObj),
|
|
@@ -333,11 +333,11 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
333
333
|
* @summary Retrieve the policy
|
|
334
334
|
* @param {string} code Unique identifier for the object.
|
|
335
335
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
336
|
-
* @param {
|
|
336
|
+
* @param {string} [expand] You can expand policy in this endpoint. \' + \'By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
|
|
337
337
|
* @param {*} [options] Override http request option.
|
|
338
338
|
* @throws {RequiredError}
|
|
339
339
|
*/
|
|
340
|
-
getPolicy: async (code: string, authorization?: string, expand?:
|
|
340
|
+
getPolicy: async (code: string, authorization?: string, expand?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
341
341
|
// verify required parameter 'code' is not null or undefined
|
|
342
342
|
assertParamExists('getPolicy', 'code', code)
|
|
343
343
|
const localVarPath = `/insuranceservice/v1/policies/{code}`
|
|
@@ -437,12 +437,12 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
437
437
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
438
438
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
439
439
|
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
440
|
-
* @param {
|
|
440
|
+
* @param {any} [expand] You can expand policy versions list in this endpoint. \' + \'By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
|
|
441
441
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
442
442
|
* @param {*} [options] Override http request option.
|
|
443
443
|
* @throws {RequiredError}
|
|
444
444
|
*/
|
|
445
|
-
listPolicies: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?:
|
|
445
|
+
listPolicies: async (authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
446
446
|
const localVarPath = `/insuranceservice/v1/policies`;
|
|
447
447
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
448
448
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -663,21 +663,21 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
663
663
|
};
|
|
664
664
|
},
|
|
665
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}
|
|
669
|
-
* @param {
|
|
666
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
667
|
+
* @summary Update the draft-policy
|
|
668
|
+
* @param {string} policyCode The policy code of the draft policy to
|
|
669
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
670
670
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
671
671
|
* @param {*} [options] Override http request option.
|
|
672
672
|
* @throws {RequiredError}
|
|
673
673
|
*/
|
|
674
|
-
|
|
675
|
-
// verify required parameter '
|
|
676
|
-
assertParamExists('
|
|
677
|
-
// verify required parameter '
|
|
678
|
-
assertParamExists('
|
|
679
|
-
const localVarPath = `/insuranceservice/v1/policies/{
|
|
680
|
-
.replace(`{${"
|
|
674
|
+
patchDraftPolicy: async (policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
675
|
+
// verify required parameter 'policyCode' is not null or undefined
|
|
676
|
+
assertParamExists('patchDraftPolicy', 'policyCode', policyCode)
|
|
677
|
+
// verify required parameter 'patchDraftPolicyRequestDto' is not null or undefined
|
|
678
|
+
assertParamExists('patchDraftPolicy', 'patchDraftPolicyRequestDto', patchDraftPolicyRequestDto)
|
|
679
|
+
const localVarPath = `/insuranceservice/v1/policies/{policyCode}/draft`
|
|
680
|
+
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)));
|
|
681
681
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
682
682
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
683
683
|
let baseOptions;
|
|
@@ -706,7 +706,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
706
706
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
707
707
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
708
708
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
709
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
709
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchDraftPolicyRequestDto, localVarRequestOptions, configuration)
|
|
710
710
|
|
|
711
711
|
return {
|
|
712
712
|
url: toPathString(localVarUrlObj),
|
|
@@ -714,24 +714,20 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
714
714
|
};
|
|
715
715
|
},
|
|
716
716
|
/**
|
|
717
|
-
* Updates the specified
|
|
718
|
-
* @summary Update the
|
|
719
|
-
* @param {string}
|
|
720
|
-
* @param {
|
|
721
|
-
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
717
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
718
|
+
* @summary Update the policy
|
|
719
|
+
* @param {string} code Unique identifier for the object.
|
|
720
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
722
721
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
723
722
|
* @param {*} [options] Override http request option.
|
|
724
723
|
* @throws {RequiredError}
|
|
725
724
|
*/
|
|
726
|
-
|
|
727
|
-
// verify required parameter 'policyCode' is not null or undefined
|
|
728
|
-
assertParamExists('patchPolicy_2', 'policyCode', policyCode)
|
|
725
|
+
patchPolicy: async (code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
729
726
|
// verify required parameter 'code' is not null or undefined
|
|
730
|
-
assertParamExists('
|
|
731
|
-
// verify required parameter '
|
|
732
|
-
assertParamExists('
|
|
733
|
-
const localVarPath = `/insuranceservice/v1/policies/{
|
|
734
|
-
.replace(`{${"policyCode"}}`, encodeURIComponent(String(policyCode)))
|
|
727
|
+
assertParamExists('patchPolicy', 'code', code)
|
|
728
|
+
// verify required parameter 'patchPolicyRequestDto' is not null or undefined
|
|
729
|
+
assertParamExists('patchPolicy', 'patchPolicyRequestDto', patchPolicyRequestDto)
|
|
730
|
+
const localVarPath = `/insuranceservice/v1/policies/{code}`
|
|
735
731
|
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
736
732
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
737
733
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -761,7 +757,7 @@ export const PoliciesApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
761
757
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
762
758
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
763
759
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
764
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
760
|
+
localVarRequestOptions.data = serializeDataIfNeeded(patchPolicyRequestDto, localVarRequestOptions, configuration)
|
|
765
761
|
|
|
766
762
|
return {
|
|
767
763
|
url: toPathString(localVarUrlObj),
|
|
@@ -996,28 +992,28 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
996
992
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
997
993
|
},
|
|
998
994
|
/**
|
|
999
|
-
* This will create a policy in the database.
|
|
1000
|
-
* @summary Create the policy
|
|
1001
|
-
* @param {
|
|
995
|
+
* This will create a draft policy in the database.
|
|
996
|
+
* @summary Create the draft-policy
|
|
997
|
+
* @param {string} policyCode
|
|
998
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1002
999
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1003
1000
|
* @param {*} [options] Override http request option.
|
|
1004
1001
|
* @throws {RequiredError}
|
|
1005
1002
|
*/
|
|
1006
|
-
async
|
|
1007
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1003
|
+
async createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
|
|
1004
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options);
|
|
1008
1005
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1009
1006
|
},
|
|
1010
1007
|
/**
|
|
1011
|
-
* This will create a
|
|
1012
|
-
* @summary Create the
|
|
1013
|
-
* @param {
|
|
1014
|
-
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1008
|
+
* 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.
|
|
1009
|
+
* @summary Create the policy
|
|
1010
|
+
* @param {CreatePolicyRequestDto} createPolicyRequestDto
|
|
1015
1011
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1016
1012
|
* @param {*} [options] Override http request option.
|
|
1017
1013
|
* @throws {RequiredError}
|
|
1018
1014
|
*/
|
|
1019
|
-
async
|
|
1020
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1015
|
+
async createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>> {
|
|
1016
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createPolicy(createPolicyRequestDto, authorization, options);
|
|
1021
1017
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1022
1018
|
},
|
|
1023
1019
|
/**
|
|
@@ -1052,11 +1048,11 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
1052
1048
|
* @summary Retrieve the policy
|
|
1053
1049
|
* @param {string} code Unique identifier for the object.
|
|
1054
1050
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1055
|
-
* @param {
|
|
1051
|
+
* @param {string} [expand] You can expand policy in this endpoint. \' + \'By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
|
|
1056
1052
|
* @param {*} [options] Override http request option.
|
|
1057
1053
|
* @throws {RequiredError}
|
|
1058
1054
|
*/
|
|
1059
|
-
async getPolicy(code: string, authorization?: string, expand?:
|
|
1055
|
+
async getPolicy(code: string, authorization?: string, expand?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetPolicyResponseClass>> {
|
|
1060
1056
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getPolicy(code, authorization, expand, options);
|
|
1061
1057
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1062
1058
|
},
|
|
@@ -1082,12 +1078,12 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
1082
1078
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1083
1079
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1084
1080
|
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1085
|
-
* @param {
|
|
1081
|
+
* @param {any} [expand] You can expand policy versions list in this endpoint. \' + \'By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
|
|
1086
1082
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
1087
1083
|
* @param {*} [options] Override http request option.
|
|
1088
1084
|
* @throws {RequiredError}
|
|
1089
1085
|
*/
|
|
1090
|
-
async listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?:
|
|
1086
|
+
async listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListPoliciesResponseClass>> {
|
|
1091
1087
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
1092
1088
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1093
1089
|
},
|
|
@@ -1129,30 +1125,29 @@ export const PoliciesApiFp = function(configuration?: Configuration) {
|
|
|
1129
1125
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1130
1126
|
},
|
|
1131
1127
|
/**
|
|
1132
|
-
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1133
|
-
* @summary Update the policy
|
|
1134
|
-
* @param {string}
|
|
1135
|
-
* @param {
|
|
1128
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1129
|
+
* @summary Update the draft-policy
|
|
1130
|
+
* @param {string} policyCode The policy code of the draft policy to
|
|
1131
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1136
1132
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1137
1133
|
* @param {*} [options] Override http request option.
|
|
1138
1134
|
* @throws {RequiredError}
|
|
1139
1135
|
*/
|
|
1140
|
-
async
|
|
1141
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1136
|
+
async patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
|
|
1137
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options);
|
|
1142
1138
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1143
1139
|
},
|
|
1144
1140
|
/**
|
|
1145
|
-
* Updates the specified
|
|
1146
|
-
* @summary Update the
|
|
1147
|
-
* @param {string}
|
|
1148
|
-
* @param {
|
|
1149
|
-
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1141
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1142
|
+
* @summary Update the policy
|
|
1143
|
+
* @param {string} code Unique identifier for the object.
|
|
1144
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
1150
1145
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1151
1146
|
* @param {*} [options] Override http request option.
|
|
1152
1147
|
* @throws {RequiredError}
|
|
1153
1148
|
*/
|
|
1154
|
-
async
|
|
1155
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.
|
|
1149
|
+
async patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>> {
|
|
1150
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.patchPolicy(code, patchPolicyRequestDto, authorization, options);
|
|
1156
1151
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
1157
1152
|
},
|
|
1158
1153
|
/**
|
|
@@ -1230,27 +1225,27 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1230
1225
|
return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1231
1226
|
},
|
|
1232
1227
|
/**
|
|
1233
|
-
* This will create a policy in the database.
|
|
1234
|
-
* @summary Create the policy
|
|
1235
|
-
* @param {
|
|
1228
|
+
* This will create a draft policy in the database.
|
|
1229
|
+
* @summary Create the draft-policy
|
|
1230
|
+
* @param {string} policyCode
|
|
1231
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1236
1232
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1237
1233
|
* @param {*} [options] Override http request option.
|
|
1238
1234
|
* @throws {RequiredError}
|
|
1239
1235
|
*/
|
|
1240
|
-
|
|
1241
|
-
return localVarFp.
|
|
1236
|
+
createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
|
|
1237
|
+
return localVarFp.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1242
1238
|
},
|
|
1243
1239
|
/**
|
|
1244
|
-
* This will create a
|
|
1245
|
-
* @summary Create the
|
|
1246
|
-
* @param {
|
|
1247
|
-
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1240
|
+
* 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.
|
|
1241
|
+
* @summary Create the policy
|
|
1242
|
+
* @param {CreatePolicyRequestDto} createPolicyRequestDto
|
|
1248
1243
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1249
1244
|
* @param {*} [options] Override http request option.
|
|
1250
1245
|
* @throws {RequiredError}
|
|
1251
1246
|
*/
|
|
1252
|
-
|
|
1253
|
-
return localVarFp.
|
|
1247
|
+
createPolicy(createPolicyRequestDto: CreatePolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass> {
|
|
1248
|
+
return localVarFp.createPolicy(createPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1254
1249
|
},
|
|
1255
1250
|
/**
|
|
1256
1251
|
* Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
|
|
@@ -1282,11 +1277,11 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1282
1277
|
* @summary Retrieve the policy
|
|
1283
1278
|
* @param {string} code Unique identifier for the object.
|
|
1284
1279
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1285
|
-
* @param {
|
|
1280
|
+
* @param {string} [expand] You can expand policy in this endpoint. \' + \'By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
|
|
1286
1281
|
* @param {*} [options] Override http request option.
|
|
1287
1282
|
* @throws {RequiredError}
|
|
1288
1283
|
*/
|
|
1289
|
-
getPolicy(code: string, authorization?: string, expand?:
|
|
1284
|
+
getPolicy(code: string, authorization?: string, expand?: string, options?: any): AxiosPromise<GetPolicyResponseClass> {
|
|
1290
1285
|
return localVarFp.getPolicy(code, authorization, expand, options).then((request) => request(axios, basePath));
|
|
1291
1286
|
},
|
|
1292
1287
|
/**
|
|
@@ -1310,12 +1305,12 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1310
1305
|
* @param {any} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, leadCode, policyNumber, holder, policyStartDate, productSlug, productVersionId, productId, accountCode, productName, status, statuses, createdAt, policyData</i>
|
|
1311
1306
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1312
1307
|
* @param {any} [order] Order allowing you to specify the desired order of entities retrieved from the server.<br/> <br/> <i>Allowed values: id, policyNumber, createdAt, updatedAt, policyStartDate, productVersionId, productId</i>
|
|
1313
|
-
* @param {
|
|
1308
|
+
* @param {any} [expand] You can expand policy versions list in this endpoint. \' + \'By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
|
|
1314
1309
|
* @param {any} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
1315
1310
|
* @param {*} [options] Override http request option.
|
|
1316
1311
|
* @throws {RequiredError}
|
|
1317
1312
|
*/
|
|
1318
|
-
listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?:
|
|
1313
|
+
listPolicies(authorization?: string, pageSize?: any, pageToken?: any, filter?: any, search?: any, order?: any, expand?: any, filters?: any, options?: any): AxiosPromise<ListPoliciesResponseClass> {
|
|
1319
1314
|
return localVarFp.listPolicies(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1320
1315
|
},
|
|
1321
1316
|
/**
|
|
@@ -1354,29 +1349,28 @@ export const PoliciesApiFactory = function (configuration?: Configuration, baseP
|
|
|
1354
1349
|
return localVarFp.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
1355
1350
|
},
|
|
1356
1351
|
/**
|
|
1357
|
-
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1358
|
-
* @summary Update the policy
|
|
1359
|
-
* @param {string}
|
|
1360
|
-
* @param {
|
|
1352
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1353
|
+
* @summary Update the draft-policy
|
|
1354
|
+
* @param {string} policyCode The policy code of the draft policy to
|
|
1355
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1361
1356
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1362
1357
|
* @param {*} [options] Override http request option.
|
|
1363
1358
|
* @throws {RequiredError}
|
|
1364
1359
|
*/
|
|
1365
|
-
|
|
1366
|
-
return localVarFp.
|
|
1360
|
+
patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
|
|
1361
|
+
return localVarFp.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1367
1362
|
},
|
|
1368
1363
|
/**
|
|
1369
|
-
* Updates the specified
|
|
1370
|
-
* @summary Update the
|
|
1371
|
-
* @param {string}
|
|
1372
|
-
* @param {
|
|
1373
|
-
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1364
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1365
|
+
* @summary Update the policy
|
|
1366
|
+
* @param {string} code Unique identifier for the object.
|
|
1367
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
1374
1368
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1375
1369
|
* @param {*} [options] Override http request option.
|
|
1376
1370
|
* @throws {RequiredError}
|
|
1377
1371
|
*/
|
|
1378
|
-
|
|
1379
|
-
return localVarFp.
|
|
1372
|
+
patchPolicy(code: string, patchPolicyRequestDto: PatchPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass> {
|
|
1373
|
+
return localVarFp.patchPolicy(code, patchPolicyRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
1380
1374
|
},
|
|
1381
1375
|
/**
|
|
1382
1376
|
* Request to suspend an existing policy by tenant.
|
|
@@ -1458,50 +1452,50 @@ export interface PoliciesApiActivatePolicyRequest {
|
|
|
1458
1452
|
}
|
|
1459
1453
|
|
|
1460
1454
|
/**
|
|
1461
|
-
* Request parameters for
|
|
1455
|
+
* Request parameters for createDraftPolicy operation in PoliciesApi.
|
|
1462
1456
|
* @export
|
|
1463
|
-
* @interface
|
|
1457
|
+
* @interface PoliciesApiCreateDraftPolicyRequest
|
|
1464
1458
|
*/
|
|
1465
|
-
export interface
|
|
1459
|
+
export interface PoliciesApiCreateDraftPolicyRequest {
|
|
1466
1460
|
/**
|
|
1467
1461
|
*
|
|
1468
|
-
* @type {
|
|
1469
|
-
* @memberof
|
|
1462
|
+
* @type {string}
|
|
1463
|
+
* @memberof PoliciesApiCreateDraftPolicy
|
|
1470
1464
|
*/
|
|
1471
|
-
readonly
|
|
1465
|
+
readonly policyCode: string
|
|
1466
|
+
|
|
1467
|
+
/**
|
|
1468
|
+
*
|
|
1469
|
+
* @type {CreateDraftPolicyRequestDto}
|
|
1470
|
+
* @memberof PoliciesApiCreateDraftPolicy
|
|
1471
|
+
*/
|
|
1472
|
+
readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto
|
|
1472
1473
|
|
|
1473
1474
|
/**
|
|
1474
1475
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1475
1476
|
* @type {string}
|
|
1476
|
-
* @memberof
|
|
1477
|
+
* @memberof PoliciesApiCreateDraftPolicy
|
|
1477
1478
|
*/
|
|
1478
1479
|
readonly authorization?: string
|
|
1479
1480
|
}
|
|
1480
1481
|
|
|
1481
1482
|
/**
|
|
1482
|
-
* Request parameters for
|
|
1483
|
+
* Request parameters for createPolicy operation in PoliciesApi.
|
|
1483
1484
|
* @export
|
|
1484
|
-
* @interface
|
|
1485
|
+
* @interface PoliciesApiCreatePolicyRequest
|
|
1485
1486
|
*/
|
|
1486
|
-
export interface
|
|
1487
|
-
/**
|
|
1488
|
-
*
|
|
1489
|
-
* @type {string}
|
|
1490
|
-
* @memberof PoliciesApiCreatePolicy0
|
|
1491
|
-
*/
|
|
1492
|
-
readonly policyCode: string
|
|
1493
|
-
|
|
1487
|
+
export interface PoliciesApiCreatePolicyRequest {
|
|
1494
1488
|
/**
|
|
1495
1489
|
*
|
|
1496
|
-
* @type {
|
|
1497
|
-
* @memberof
|
|
1490
|
+
* @type {CreatePolicyRequestDto}
|
|
1491
|
+
* @memberof PoliciesApiCreatePolicy
|
|
1498
1492
|
*/
|
|
1499
|
-
readonly
|
|
1493
|
+
readonly createPolicyRequestDto: CreatePolicyRequestDto
|
|
1500
1494
|
|
|
1501
1495
|
/**
|
|
1502
1496
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1503
1497
|
* @type {string}
|
|
1504
|
-
* @memberof
|
|
1498
|
+
* @memberof PoliciesApiCreatePolicy
|
|
1505
1499
|
*/
|
|
1506
1500
|
readonly authorization?: string
|
|
1507
1501
|
}
|
|
@@ -1590,11 +1584,11 @@ export interface PoliciesApiGetPolicyRequest {
|
|
|
1590
1584
|
readonly authorization?: string
|
|
1591
1585
|
|
|
1592
1586
|
/**
|
|
1593
|
-
* You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
1594
|
-
* @type {
|
|
1587
|
+
* You can expand policy in this endpoint. \' + \'By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
|
|
1588
|
+
* @type {string}
|
|
1595
1589
|
* @memberof PoliciesApiGetPolicy
|
|
1596
1590
|
*/
|
|
1597
|
-
readonly expand?:
|
|
1591
|
+
readonly expand?: string
|
|
1598
1592
|
}
|
|
1599
1593
|
|
|
1600
1594
|
/**
|
|
@@ -1674,11 +1668,11 @@ export interface PoliciesApiListPoliciesRequest {
|
|
|
1674
1668
|
readonly order?: any
|
|
1675
1669
|
|
|
1676
1670
|
/**
|
|
1677
|
-
* You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
1678
|
-
* @type {
|
|
1671
|
+
* You can expand policy versions list in this endpoint. \' + \'By default, versions will be an empty array. Allowed values: versions, product, timelines, premiums, premiumItems, premiumFormulas, currentVersion, currentTimelines, currentPremiums, currentPremiumItems, currentPremiumFormulas.
|
|
1672
|
+
* @type {any}
|
|
1679
1673
|
* @memberof PoliciesApiListPolicies
|
|
1680
1674
|
*/
|
|
1681
|
-
readonly expand?:
|
|
1675
|
+
readonly expand?: any
|
|
1682
1676
|
|
|
1683
1677
|
/**
|
|
1684
1678
|
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations. In general, fetching filtered responses conserves bandwidth and reduces response time.
|
|
@@ -1822,64 +1816,57 @@ export interface PoliciesApiListPolicyVersionsRequest {
|
|
|
1822
1816
|
}
|
|
1823
1817
|
|
|
1824
1818
|
/**
|
|
1825
|
-
* Request parameters for
|
|
1819
|
+
* Request parameters for patchDraftPolicy operation in PoliciesApi.
|
|
1826
1820
|
* @export
|
|
1827
|
-
* @interface
|
|
1821
|
+
* @interface PoliciesApiPatchDraftPolicyRequest
|
|
1828
1822
|
*/
|
|
1829
|
-
export interface
|
|
1823
|
+
export interface PoliciesApiPatchDraftPolicyRequest {
|
|
1830
1824
|
/**
|
|
1831
|
-
*
|
|
1825
|
+
* The policy code of the draft policy to
|
|
1832
1826
|
* @type {string}
|
|
1833
|
-
* @memberof
|
|
1827
|
+
* @memberof PoliciesApiPatchDraftPolicy
|
|
1834
1828
|
*/
|
|
1835
|
-
readonly
|
|
1829
|
+
readonly policyCode: string
|
|
1836
1830
|
|
|
1837
1831
|
/**
|
|
1838
1832
|
*
|
|
1839
|
-
* @type {
|
|
1840
|
-
* @memberof
|
|
1833
|
+
* @type {PatchDraftPolicyRequestDto}
|
|
1834
|
+
* @memberof PoliciesApiPatchDraftPolicy
|
|
1841
1835
|
*/
|
|
1842
|
-
readonly
|
|
1836
|
+
readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto
|
|
1843
1837
|
|
|
1844
1838
|
/**
|
|
1845
1839
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1846
1840
|
* @type {string}
|
|
1847
|
-
* @memberof
|
|
1841
|
+
* @memberof PoliciesApiPatchDraftPolicy
|
|
1848
1842
|
*/
|
|
1849
1843
|
readonly authorization?: string
|
|
1850
1844
|
}
|
|
1851
1845
|
|
|
1852
1846
|
/**
|
|
1853
|
-
* Request parameters for
|
|
1847
|
+
* Request parameters for patchPolicy operation in PoliciesApi.
|
|
1854
1848
|
* @export
|
|
1855
|
-
* @interface
|
|
1849
|
+
* @interface PoliciesApiPatchPolicyRequest
|
|
1856
1850
|
*/
|
|
1857
|
-
export interface
|
|
1858
|
-
/**
|
|
1859
|
-
*
|
|
1860
|
-
* @type {string}
|
|
1861
|
-
* @memberof PoliciesApiPatchPolicy0
|
|
1862
|
-
*/
|
|
1863
|
-
readonly policyCode: string
|
|
1864
|
-
|
|
1851
|
+
export interface PoliciesApiPatchPolicyRequest {
|
|
1865
1852
|
/**
|
|
1866
1853
|
* Unique identifier for the object.
|
|
1867
|
-
* @type {
|
|
1868
|
-
* @memberof
|
|
1854
|
+
* @type {string}
|
|
1855
|
+
* @memberof PoliciesApiPatchPolicy
|
|
1869
1856
|
*/
|
|
1870
|
-
readonly code:
|
|
1857
|
+
readonly code: string
|
|
1871
1858
|
|
|
1872
1859
|
/**
|
|
1873
1860
|
*
|
|
1874
|
-
* @type {
|
|
1875
|
-
* @memberof
|
|
1861
|
+
* @type {PatchPolicyRequestDto}
|
|
1862
|
+
* @memberof PoliciesApiPatchPolicy
|
|
1876
1863
|
*/
|
|
1877
|
-
readonly
|
|
1864
|
+
readonly patchPolicyRequestDto: PatchPolicyRequestDto
|
|
1878
1865
|
|
|
1879
1866
|
/**
|
|
1880
1867
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1881
1868
|
* @type {string}
|
|
1882
|
-
* @memberof
|
|
1869
|
+
* @memberof PoliciesApiPatchPolicy
|
|
1883
1870
|
*/
|
|
1884
1871
|
readonly authorization?: string
|
|
1885
1872
|
}
|
|
@@ -2016,27 +2003,27 @@ export class PoliciesApi extends BaseAPI {
|
|
|
2016
2003
|
}
|
|
2017
2004
|
|
|
2018
2005
|
/**
|
|
2019
|
-
* This will create a policy in the database.
|
|
2020
|
-
* @summary Create the policy
|
|
2021
|
-
* @param {
|
|
2006
|
+
* This will create a draft policy in the database.
|
|
2007
|
+
* @summary Create the draft-policy
|
|
2008
|
+
* @param {PoliciesApiCreateDraftPolicyRequest} requestParameters Request parameters.
|
|
2022
2009
|
* @param {*} [options] Override http request option.
|
|
2023
2010
|
* @throws {RequiredError}
|
|
2024
2011
|
* @memberof PoliciesApi
|
|
2025
2012
|
*/
|
|
2026
|
-
public
|
|
2027
|
-
return PoliciesApiFp(this.configuration).
|
|
2013
|
+
public createDraftPolicy(requestParameters: PoliciesApiCreateDraftPolicyRequest, options?: AxiosRequestConfig) {
|
|
2014
|
+
return PoliciesApiFp(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.createDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2028
2015
|
}
|
|
2029
2016
|
|
|
2030
2017
|
/**
|
|
2031
|
-
* This will create a
|
|
2032
|
-
* @summary Create the
|
|
2033
|
-
* @param {
|
|
2018
|
+
* 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.
|
|
2019
|
+
* @summary Create the policy
|
|
2020
|
+
* @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
|
|
2034
2021
|
* @param {*} [options] Override http request option.
|
|
2035
2022
|
* @throws {RequiredError}
|
|
2036
2023
|
* @memberof PoliciesApi
|
|
2037
2024
|
*/
|
|
2038
|
-
public
|
|
2039
|
-
return PoliciesApiFp(this.configuration).
|
|
2025
|
+
public createPolicy(requestParameters: PoliciesApiCreatePolicyRequest, options?: AxiosRequestConfig) {
|
|
2026
|
+
return PoliciesApiFp(this.configuration).createPolicy(requestParameters.createPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2040
2027
|
}
|
|
2041
2028
|
|
|
2042
2029
|
/**
|
|
@@ -2124,27 +2111,27 @@ export class PoliciesApi extends BaseAPI {
|
|
|
2124
2111
|
}
|
|
2125
2112
|
|
|
2126
2113
|
/**
|
|
2127
|
-
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2128
|
-
* @summary Update the policy
|
|
2129
|
-
* @param {
|
|
2114
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2115
|
+
* @summary Update the draft-policy
|
|
2116
|
+
* @param {PoliciesApiPatchDraftPolicyRequest} requestParameters Request parameters.
|
|
2130
2117
|
* @param {*} [options] Override http request option.
|
|
2131
2118
|
* @throws {RequiredError}
|
|
2132
2119
|
* @memberof PoliciesApi
|
|
2133
2120
|
*/
|
|
2134
|
-
public
|
|
2135
|
-
return PoliciesApiFp(this.configuration).
|
|
2121
|
+
public patchDraftPolicy(requestParameters: PoliciesApiPatchDraftPolicyRequest, options?: AxiosRequestConfig) {
|
|
2122
|
+
return PoliciesApiFp(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.patchDraftPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2136
2123
|
}
|
|
2137
2124
|
|
|
2138
2125
|
/**
|
|
2139
|
-
* Updates the specified
|
|
2140
|
-
* @summary Update the
|
|
2141
|
-
* @param {
|
|
2126
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
2127
|
+
* @summary Update the policy
|
|
2128
|
+
* @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
|
|
2142
2129
|
* @param {*} [options] Override http request option.
|
|
2143
2130
|
* @throws {RequiredError}
|
|
2144
2131
|
* @memberof PoliciesApi
|
|
2145
2132
|
*/
|
|
2146
|
-
public
|
|
2147
|
-
return PoliciesApiFp(this.configuration).
|
|
2133
|
+
public patchPolicy(requestParameters: PoliciesApiPatchPolicyRequest, options?: AxiosRequestConfig) {
|
|
2134
|
+
return PoliciesApiFp(this.configuration).patchPolicy(requestParameters.code, requestParameters.patchPolicyRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
2148
2135
|
}
|
|
2149
2136
|
|
|
2150
2137
|
/**
|