@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/dist/api/policies-api.js
CHANGED
|
@@ -150,23 +150,27 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
150
150
|
});
|
|
151
151
|
},
|
|
152
152
|
/**
|
|
153
|
-
* This will create a policy in the database.
|
|
154
|
-
* @summary Create the policy
|
|
155
|
-
* @param {
|
|
153
|
+
* This will create a draft policy in the database.
|
|
154
|
+
* @summary Create the draft-policy
|
|
155
|
+
* @param {string} policyCode
|
|
156
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
156
157
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
157
158
|
* @param {*} [options] Override http request option.
|
|
158
159
|
* @throws {RequiredError}
|
|
159
160
|
*/
|
|
160
|
-
|
|
161
|
+
createDraftPolicy: function (policyCode, createDraftPolicyRequestDto, authorization, options) {
|
|
161
162
|
if (options === void 0) { options = {}; }
|
|
162
163
|
return __awaiter(_this, void 0, void 0, function () {
|
|
163
164
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
164
165
|
return __generator(this, function (_a) {
|
|
165
166
|
switch (_a.label) {
|
|
166
167
|
case 0:
|
|
167
|
-
// verify required parameter '
|
|
168
|
-
(0, common_1.assertParamExists)('
|
|
169
|
-
|
|
168
|
+
// verify required parameter 'policyCode' is not null or undefined
|
|
169
|
+
(0, common_1.assertParamExists)('createDraftPolicy', 'policyCode', policyCode);
|
|
170
|
+
// verify required parameter 'createDraftPolicyRequestDto' is not null or undefined
|
|
171
|
+
(0, common_1.assertParamExists)('createDraftPolicy', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto);
|
|
172
|
+
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
173
|
+
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
170
174
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
171
175
|
if (configuration) {
|
|
172
176
|
baseOptions = configuration.baseOptions;
|
|
@@ -189,7 +193,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
189
193
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
190
194
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
195
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
192
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
196
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDraftPolicyRequestDto, localVarRequestOptions, configuration);
|
|
193
197
|
return [2 /*return*/, {
|
|
194
198
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
195
199
|
options: localVarRequestOptions,
|
|
@@ -199,27 +203,23 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
199
203
|
});
|
|
200
204
|
},
|
|
201
205
|
/**
|
|
202
|
-
* This will create a
|
|
203
|
-
* @summary Create the
|
|
204
|
-
* @param {
|
|
205
|
-
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
206
|
+
* 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.
|
|
207
|
+
* @summary Create the policy
|
|
208
|
+
* @param {CreatePolicyRequestDto} createPolicyRequestDto
|
|
206
209
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
207
210
|
* @param {*} [options] Override http request option.
|
|
208
211
|
* @throws {RequiredError}
|
|
209
212
|
*/
|
|
210
|
-
|
|
213
|
+
createPolicy: function (createPolicyRequestDto, authorization, options) {
|
|
211
214
|
if (options === void 0) { options = {}; }
|
|
212
215
|
return __awaiter(_this, void 0, void 0, function () {
|
|
213
216
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
214
217
|
return __generator(this, function (_a) {
|
|
215
218
|
switch (_a.label) {
|
|
216
219
|
case 0:
|
|
217
|
-
// verify required parameter '
|
|
218
|
-
(0, common_1.assertParamExists)('
|
|
219
|
-
|
|
220
|
-
(0, common_1.assertParamExists)('createPolicy_1', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto);
|
|
221
|
-
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
222
|
-
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
220
|
+
// verify required parameter 'createPolicyRequestDto' is not null or undefined
|
|
221
|
+
(0, common_1.assertParamExists)('createPolicy', 'createPolicyRequestDto', createPolicyRequestDto);
|
|
222
|
+
localVarPath = "/insuranceservice/v1/policies";
|
|
223
223
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
224
224
|
if (configuration) {
|
|
225
225
|
baseOptions = configuration.baseOptions;
|
|
@@ -242,7 +242,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
242
242
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
243
243
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
244
244
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
245
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
245
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPolicyRequestDto, localVarRequestOptions, configuration);
|
|
246
246
|
return [2 /*return*/, {
|
|
247
247
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
248
248
|
options: localVarRequestOptions,
|
|
@@ -368,7 +368,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
368
368
|
* @summary Retrieve the policy
|
|
369
369
|
* @param {string} code Unique identifier for the object.
|
|
370
370
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
371
|
-
* @param {
|
|
371
|
+
* @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.
|
|
372
372
|
* @param {*} [options] Override http request option.
|
|
373
373
|
* @throws {RequiredError}
|
|
374
374
|
*/
|
|
@@ -476,7 +476,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
476
476
|
* @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>
|
|
477
477
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
478
478
|
* @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>
|
|
479
|
-
* @param {
|
|
479
|
+
* @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.
|
|
480
480
|
* @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.
|
|
481
481
|
* @param {*} [options] Override http request option.
|
|
482
482
|
* @throws {RequiredError}
|
|
@@ -690,27 +690,27 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
690
690
|
});
|
|
691
691
|
},
|
|
692
692
|
/**
|
|
693
|
-
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
694
|
-
* @summary Update the policy
|
|
695
|
-
* @param {string}
|
|
696
|
-
* @param {
|
|
693
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
694
|
+
* @summary Update the draft-policy
|
|
695
|
+
* @param {string} policyCode The policy code of the draft policy to
|
|
696
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
697
697
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
698
698
|
* @param {*} [options] Override http request option.
|
|
699
699
|
* @throws {RequiredError}
|
|
700
700
|
*/
|
|
701
|
-
|
|
701
|
+
patchDraftPolicy: function (policyCode, patchDraftPolicyRequestDto, authorization, options) {
|
|
702
702
|
if (options === void 0) { options = {}; }
|
|
703
703
|
return __awaiter(_this, void 0, void 0, function () {
|
|
704
704
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
705
705
|
return __generator(this, function (_a) {
|
|
706
706
|
switch (_a.label) {
|
|
707
707
|
case 0:
|
|
708
|
-
// verify required parameter '
|
|
709
|
-
(0, common_1.assertParamExists)('
|
|
710
|
-
// verify required parameter '
|
|
711
|
-
(0, common_1.assertParamExists)('
|
|
712
|
-
localVarPath = "/insuranceservice/v1/policies/{
|
|
713
|
-
.replace("{".concat("
|
|
708
|
+
// verify required parameter 'policyCode' is not null or undefined
|
|
709
|
+
(0, common_1.assertParamExists)('patchDraftPolicy', 'policyCode', policyCode);
|
|
710
|
+
// verify required parameter 'patchDraftPolicyRequestDto' is not null or undefined
|
|
711
|
+
(0, common_1.assertParamExists)('patchDraftPolicy', 'patchDraftPolicyRequestDto', patchDraftPolicyRequestDto);
|
|
712
|
+
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
713
|
+
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
714
714
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
715
715
|
if (configuration) {
|
|
716
716
|
baseOptions = configuration.baseOptions;
|
|
@@ -733,7 +733,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
733
733
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
734
734
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
735
735
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
736
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
736
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchDraftPolicyRequestDto, localVarRequestOptions, configuration);
|
|
737
737
|
return [2 /*return*/, {
|
|
738
738
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
739
739
|
options: localVarRequestOptions,
|
|
@@ -743,30 +743,26 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
743
743
|
});
|
|
744
744
|
},
|
|
745
745
|
/**
|
|
746
|
-
* Updates the specified
|
|
747
|
-
* @summary Update the
|
|
748
|
-
* @param {string}
|
|
749
|
-
* @param {
|
|
750
|
-
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
746
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
747
|
+
* @summary Update the policy
|
|
748
|
+
* @param {string} code Unique identifier for the object.
|
|
749
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
751
750
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
752
751
|
* @param {*} [options] Override http request option.
|
|
753
752
|
* @throws {RequiredError}
|
|
754
753
|
*/
|
|
755
|
-
|
|
754
|
+
patchPolicy: function (code, patchPolicyRequestDto, authorization, options) {
|
|
756
755
|
if (options === void 0) { options = {}; }
|
|
757
756
|
return __awaiter(_this, void 0, void 0, function () {
|
|
758
757
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
759
758
|
return __generator(this, function (_a) {
|
|
760
759
|
switch (_a.label) {
|
|
761
760
|
case 0:
|
|
762
|
-
// verify required parameter 'policyCode' is not null or undefined
|
|
763
|
-
(0, common_1.assertParamExists)('patchPolicy_2', 'policyCode', policyCode);
|
|
764
761
|
// verify required parameter 'code' is not null or undefined
|
|
765
|
-
(0, common_1.assertParamExists)('
|
|
766
|
-
// verify required parameter '
|
|
767
|
-
(0, common_1.assertParamExists)('
|
|
768
|
-
localVarPath = "/insuranceservice/v1/policies/{
|
|
769
|
-
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)))
|
|
762
|
+
(0, common_1.assertParamExists)('patchPolicy', 'code', code);
|
|
763
|
+
// verify required parameter 'patchPolicyRequestDto' is not null or undefined
|
|
764
|
+
(0, common_1.assertParamExists)('patchPolicy', 'patchPolicyRequestDto', patchPolicyRequestDto);
|
|
765
|
+
localVarPath = "/insuranceservice/v1/policies/{code}"
|
|
770
766
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
771
767
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
772
768
|
if (configuration) {
|
|
@@ -790,7 +786,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
790
786
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
791
787
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
792
788
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
793
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
789
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchPolicyRequestDto, localVarRequestOptions, configuration);
|
|
794
790
|
return [2 /*return*/, {
|
|
795
791
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
796
792
|
options: localVarRequestOptions,
|
|
@@ -1044,19 +1040,20 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1044
1040
|
});
|
|
1045
1041
|
},
|
|
1046
1042
|
/**
|
|
1047
|
-
* This will create a policy in the database.
|
|
1048
|
-
* @summary Create the policy
|
|
1049
|
-
* @param {
|
|
1043
|
+
* This will create a draft policy in the database.
|
|
1044
|
+
* @summary Create the draft-policy
|
|
1045
|
+
* @param {string} policyCode
|
|
1046
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1050
1047
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1051
1048
|
* @param {*} [options] Override http request option.
|
|
1052
1049
|
* @throws {RequiredError}
|
|
1053
1050
|
*/
|
|
1054
|
-
|
|
1051
|
+
createDraftPolicy: function (policyCode, createDraftPolicyRequestDto, authorization, options) {
|
|
1055
1052
|
return __awaiter(this, void 0, void 0, function () {
|
|
1056
1053
|
var localVarAxiosArgs;
|
|
1057
1054
|
return __generator(this, function (_a) {
|
|
1058
1055
|
switch (_a.label) {
|
|
1059
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1056
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options)];
|
|
1060
1057
|
case 1:
|
|
1061
1058
|
localVarAxiosArgs = _a.sent();
|
|
1062
1059
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1065,20 +1062,19 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1065
1062
|
});
|
|
1066
1063
|
},
|
|
1067
1064
|
/**
|
|
1068
|
-
* This will create a
|
|
1069
|
-
* @summary Create the
|
|
1070
|
-
* @param {
|
|
1071
|
-
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1065
|
+
* 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.
|
|
1066
|
+
* @summary Create the policy
|
|
1067
|
+
* @param {CreatePolicyRequestDto} createPolicyRequestDto
|
|
1072
1068
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1073
1069
|
* @param {*} [options] Override http request option.
|
|
1074
1070
|
* @throws {RequiredError}
|
|
1075
1071
|
*/
|
|
1076
|
-
|
|
1072
|
+
createPolicy: function (createPolicyRequestDto, authorization, options) {
|
|
1077
1073
|
return __awaiter(this, void 0, void 0, function () {
|
|
1078
1074
|
var localVarAxiosArgs;
|
|
1079
1075
|
return __generator(this, function (_a) {
|
|
1080
1076
|
switch (_a.label) {
|
|
1081
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1077
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPolicy(createPolicyRequestDto, authorization, options)];
|
|
1082
1078
|
case 1:
|
|
1083
1079
|
localVarAxiosArgs = _a.sent();
|
|
1084
1080
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1136,7 +1132,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1136
1132
|
* @summary Retrieve the policy
|
|
1137
1133
|
* @param {string} code Unique identifier for the object.
|
|
1138
1134
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1139
|
-
* @param {
|
|
1135
|
+
* @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.
|
|
1140
1136
|
* @param {*} [options] Override http request option.
|
|
1141
1137
|
* @throws {RequiredError}
|
|
1142
1138
|
*/
|
|
@@ -1184,7 +1180,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1184
1180
|
* @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>
|
|
1185
1181
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1186
1182
|
* @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>
|
|
1187
|
-
* @param {
|
|
1183
|
+
* @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.
|
|
1188
1184
|
* @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.
|
|
1189
1185
|
* @param {*} [options] Override http request option.
|
|
1190
1186
|
* @throws {RequiredError}
|
|
@@ -1258,20 +1254,20 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1258
1254
|
});
|
|
1259
1255
|
},
|
|
1260
1256
|
/**
|
|
1261
|
-
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1262
|
-
* @summary Update the policy
|
|
1263
|
-
* @param {string}
|
|
1264
|
-
* @param {
|
|
1257
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1258
|
+
* @summary Update the draft-policy
|
|
1259
|
+
* @param {string} policyCode The policy code of the draft policy to
|
|
1260
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1265
1261
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1266
1262
|
* @param {*} [options] Override http request option.
|
|
1267
1263
|
* @throws {RequiredError}
|
|
1268
1264
|
*/
|
|
1269
|
-
|
|
1265
|
+
patchDraftPolicy: function (policyCode, patchDraftPolicyRequestDto, authorization, options) {
|
|
1270
1266
|
return __awaiter(this, void 0, void 0, function () {
|
|
1271
1267
|
var localVarAxiosArgs;
|
|
1272
1268
|
return __generator(this, function (_a) {
|
|
1273
1269
|
switch (_a.label) {
|
|
1274
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1270
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options)];
|
|
1275
1271
|
case 1:
|
|
1276
1272
|
localVarAxiosArgs = _a.sent();
|
|
1277
1273
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1280,21 +1276,20 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1280
1276
|
});
|
|
1281
1277
|
},
|
|
1282
1278
|
/**
|
|
1283
|
-
* Updates the specified
|
|
1284
|
-
* @summary Update the
|
|
1285
|
-
* @param {string}
|
|
1286
|
-
* @param {
|
|
1287
|
-
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1279
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1280
|
+
* @summary Update the policy
|
|
1281
|
+
* @param {string} code Unique identifier for the object.
|
|
1282
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
1288
1283
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1289
1284
|
* @param {*} [options] Override http request option.
|
|
1290
1285
|
* @throws {RequiredError}
|
|
1291
1286
|
*/
|
|
1292
|
-
|
|
1287
|
+
patchPolicy: function (code, patchPolicyRequestDto, authorization, options) {
|
|
1293
1288
|
return __awaiter(this, void 0, void 0, function () {
|
|
1294
1289
|
var localVarAxiosArgs;
|
|
1295
1290
|
return __generator(this, function (_a) {
|
|
1296
1291
|
switch (_a.label) {
|
|
1297
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1292
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchPolicy(code, patchPolicyRequestDto, authorization, options)];
|
|
1298
1293
|
case 1:
|
|
1299
1294
|
localVarAxiosArgs = _a.sent();
|
|
1300
1295
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1413,27 +1408,27 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1413
1408
|
return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1414
1409
|
},
|
|
1415
1410
|
/**
|
|
1416
|
-
* This will create a policy in the database.
|
|
1417
|
-
* @summary Create the policy
|
|
1418
|
-
* @param {
|
|
1411
|
+
* This will create a draft policy in the database.
|
|
1412
|
+
* @summary Create the draft-policy
|
|
1413
|
+
* @param {string} policyCode
|
|
1414
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1419
1415
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1420
1416
|
* @param {*} [options] Override http request option.
|
|
1421
1417
|
* @throws {RequiredError}
|
|
1422
1418
|
*/
|
|
1423
|
-
|
|
1424
|
-
return localVarFp.
|
|
1419
|
+
createDraftPolicy: function (policyCode, createDraftPolicyRequestDto, authorization, options) {
|
|
1420
|
+
return localVarFp.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1425
1421
|
},
|
|
1426
1422
|
/**
|
|
1427
|
-
* This will create a
|
|
1428
|
-
* @summary Create the
|
|
1429
|
-
* @param {
|
|
1430
|
-
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1423
|
+
* 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.
|
|
1424
|
+
* @summary Create the policy
|
|
1425
|
+
* @param {CreatePolicyRequestDto} createPolicyRequestDto
|
|
1431
1426
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1432
1427
|
* @param {*} [options] Override http request option.
|
|
1433
1428
|
* @throws {RequiredError}
|
|
1434
1429
|
*/
|
|
1435
|
-
|
|
1436
|
-
return localVarFp.
|
|
1430
|
+
createPolicy: function (createPolicyRequestDto, authorization, options) {
|
|
1431
|
+
return localVarFp.createPolicy(createPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1437
1432
|
},
|
|
1438
1433
|
/**
|
|
1439
1434
|
* Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
|
|
@@ -1465,7 +1460,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1465
1460
|
* @summary Retrieve the policy
|
|
1466
1461
|
* @param {string} code Unique identifier for the object.
|
|
1467
1462
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1468
|
-
* @param {
|
|
1463
|
+
* @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.
|
|
1469
1464
|
* @param {*} [options] Override http request option.
|
|
1470
1465
|
* @throws {RequiredError}
|
|
1471
1466
|
*/
|
|
@@ -1493,7 +1488,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1493
1488
|
* @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>
|
|
1494
1489
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1495
1490
|
* @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>
|
|
1496
|
-
* @param {
|
|
1491
|
+
* @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.
|
|
1497
1492
|
* @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.
|
|
1498
1493
|
* @param {*} [options] Override http request option.
|
|
1499
1494
|
* @throws {RequiredError}
|
|
@@ -1537,29 +1532,28 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1537
1532
|
return localVarFp.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1538
1533
|
},
|
|
1539
1534
|
/**
|
|
1540
|
-
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1541
|
-
* @summary Update the policy
|
|
1542
|
-
* @param {string}
|
|
1543
|
-
* @param {
|
|
1535
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1536
|
+
* @summary Update the draft-policy
|
|
1537
|
+
* @param {string} policyCode The policy code of the draft policy to
|
|
1538
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1544
1539
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1545
1540
|
* @param {*} [options] Override http request option.
|
|
1546
1541
|
* @throws {RequiredError}
|
|
1547
1542
|
*/
|
|
1548
|
-
|
|
1549
|
-
return localVarFp.
|
|
1543
|
+
patchDraftPolicy: function (policyCode, patchDraftPolicyRequestDto, authorization, options) {
|
|
1544
|
+
return localVarFp.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1550
1545
|
},
|
|
1551
1546
|
/**
|
|
1552
|
-
* Updates the specified
|
|
1553
|
-
* @summary Update the
|
|
1554
|
-
* @param {string}
|
|
1555
|
-
* @param {
|
|
1556
|
-
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1547
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1548
|
+
* @summary Update the policy
|
|
1549
|
+
* @param {string} code Unique identifier for the object.
|
|
1550
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
1557
1551
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1558
1552
|
* @param {*} [options] Override http request option.
|
|
1559
1553
|
* @throws {RequiredError}
|
|
1560
1554
|
*/
|
|
1561
|
-
|
|
1562
|
-
return localVarFp.
|
|
1555
|
+
patchPolicy: function (code, patchPolicyRequestDto, authorization, options) {
|
|
1556
|
+
return localVarFp.patchPolicy(code, patchPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1563
1557
|
},
|
|
1564
1558
|
/**
|
|
1565
1559
|
* Request to suspend an existing policy by tenant.
|
|
@@ -1636,28 +1630,28 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1636
1630
|
return (0, exports.PoliciesApiFp)(this.configuration).activatePolicy(requestParameters.policyCode, requestParameters.activatePolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1637
1631
|
};
|
|
1638
1632
|
/**
|
|
1639
|
-
* This will create a policy in the database.
|
|
1640
|
-
* @summary Create the policy
|
|
1641
|
-
* @param {
|
|
1633
|
+
* This will create a draft policy in the database.
|
|
1634
|
+
* @summary Create the draft-policy
|
|
1635
|
+
* @param {PoliciesApiCreateDraftPolicyRequest} requestParameters Request parameters.
|
|
1642
1636
|
* @param {*} [options] Override http request option.
|
|
1643
1637
|
* @throws {RequiredError}
|
|
1644
1638
|
* @memberof PoliciesApi
|
|
1645
1639
|
*/
|
|
1646
|
-
PoliciesApi.prototype.
|
|
1640
|
+
PoliciesApi.prototype.createDraftPolicy = function (requestParameters, options) {
|
|
1647
1641
|
var _this = this;
|
|
1648
|
-
return (0, exports.PoliciesApiFp)(this.configuration).
|
|
1642
|
+
return (0, exports.PoliciesApiFp)(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.createDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1649
1643
|
};
|
|
1650
1644
|
/**
|
|
1651
|
-
* This will create a
|
|
1652
|
-
* @summary Create the
|
|
1653
|
-
* @param {
|
|
1645
|
+
* 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.
|
|
1646
|
+
* @summary Create the policy
|
|
1647
|
+
* @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
|
|
1654
1648
|
* @param {*} [options] Override http request option.
|
|
1655
1649
|
* @throws {RequiredError}
|
|
1656
1650
|
* @memberof PoliciesApi
|
|
1657
1651
|
*/
|
|
1658
|
-
PoliciesApi.prototype.
|
|
1652
|
+
PoliciesApi.prototype.createPolicy = function (requestParameters, options) {
|
|
1659
1653
|
var _this = this;
|
|
1660
|
-
return (0, exports.PoliciesApiFp)(this.configuration).
|
|
1654
|
+
return (0, exports.PoliciesApiFp)(this.configuration).createPolicy(requestParameters.createPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1661
1655
|
};
|
|
1662
1656
|
/**
|
|
1663
1657
|
* Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
|
|
@@ -1745,28 +1739,28 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1745
1739
|
return (0, exports.PoliciesApiFp)(this.configuration).listPolicyVersions(requestParameters.policyCode, requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1746
1740
|
};
|
|
1747
1741
|
/**
|
|
1748
|
-
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1749
|
-
* @summary Update the policy
|
|
1750
|
-
* @param {
|
|
1742
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1743
|
+
* @summary Update the draft-policy
|
|
1744
|
+
* @param {PoliciesApiPatchDraftPolicyRequest} requestParameters Request parameters.
|
|
1751
1745
|
* @param {*} [options] Override http request option.
|
|
1752
1746
|
* @throws {RequiredError}
|
|
1753
1747
|
* @memberof PoliciesApi
|
|
1754
1748
|
*/
|
|
1755
|
-
PoliciesApi.prototype.
|
|
1749
|
+
PoliciesApi.prototype.patchDraftPolicy = function (requestParameters, options) {
|
|
1756
1750
|
var _this = this;
|
|
1757
|
-
return (0, exports.PoliciesApiFp)(this.configuration).
|
|
1751
|
+
return (0, exports.PoliciesApiFp)(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.patchDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1758
1752
|
};
|
|
1759
1753
|
/**
|
|
1760
|
-
* Updates the specified
|
|
1761
|
-
* @summary Update the
|
|
1762
|
-
* @param {
|
|
1754
|
+
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1755
|
+
* @summary Update the policy
|
|
1756
|
+
* @param {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
|
|
1763
1757
|
* @param {*} [options] Override http request option.
|
|
1764
1758
|
* @throws {RequiredError}
|
|
1765
1759
|
* @memberof PoliciesApi
|
|
1766
1760
|
*/
|
|
1767
|
-
PoliciesApi.prototype.
|
|
1761
|
+
PoliciesApi.prototype.patchPolicy = function (requestParameters, options) {
|
|
1768
1762
|
var _this = this;
|
|
1769
|
-
return (0, exports.PoliciesApiFp)(this.configuration).
|
|
1763
|
+
return (0, exports.PoliciesApiFp)(this.configuration).patchPolicy(requestParameters.code, requestParameters.patchPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1770
1764
|
};
|
|
1771
1765
|
/**
|
|
1772
1766
|
* Request to suspend an existing policy by tenant.
|
|
@@ -63,7 +63,7 @@ export declare const PremiumFormulasApiAxiosParamCreator: (configuration?: Confi
|
|
|
63
63
|
* @param {string} [search] Search query.
|
|
64
64
|
* @param {string} [order] Ordering criteria.
|
|
65
65
|
* @param {string} [expand] Extra fields to fetch.
|
|
66
|
-
* @param {string} [filters]
|
|
66
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
67
67
|
* @param {*} [options] Override http request option.
|
|
68
68
|
* @throws {RequiredError}
|
|
69
69
|
*/
|
|
@@ -130,7 +130,7 @@ export declare const PremiumFormulasApiFp: (configuration?: Configuration) => {
|
|
|
130
130
|
* @param {string} [search] Search query.
|
|
131
131
|
* @param {string} [order] Ordering criteria.
|
|
132
132
|
* @param {string} [expand] Extra fields to fetch.
|
|
133
|
-
* @param {string} [filters]
|
|
133
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
134
134
|
* @param {*} [options] Override http request option.
|
|
135
135
|
* @throws {RequiredError}
|
|
136
136
|
*/
|
|
@@ -197,7 +197,7 @@ export declare const PremiumFormulasApiFactory: (configuration?: Configuration,
|
|
|
197
197
|
* @param {string} [search] Search query.
|
|
198
198
|
* @param {string} [order] Ordering criteria.
|
|
199
199
|
* @param {string} [expand] Extra fields to fetch.
|
|
200
|
-
* @param {string} [filters]
|
|
200
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
201
201
|
* @param {*} [options] Override http request option.
|
|
202
202
|
* @throws {RequiredError}
|
|
203
203
|
*/
|
|
@@ -328,7 +328,7 @@ export interface PremiumFormulasApiListPremiumFormulasRequest {
|
|
|
328
328
|
*/
|
|
329
329
|
readonly expand?: string;
|
|
330
330
|
/**
|
|
331
|
-
*
|
|
331
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
332
332
|
* @type {string}
|
|
333
333
|
* @memberof PremiumFormulasApiListPremiumFormulas
|
|
334
334
|
*/
|
|
@@ -251,7 +251,7 @@ var PremiumFormulasApiAxiosParamCreator = function (configuration) {
|
|
|
251
251
|
* @param {string} [search] Search query.
|
|
252
252
|
* @param {string} [order] Ordering criteria.
|
|
253
253
|
* @param {string} [expand] Extra fields to fetch.
|
|
254
|
-
* @param {string} [filters]
|
|
254
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
255
255
|
* @param {*} [options] Override http request option.
|
|
256
256
|
* @throws {RequiredError}
|
|
257
257
|
*/
|
|
@@ -498,7 +498,7 @@ var PremiumFormulasApiFp = function (configuration) {
|
|
|
498
498
|
* @param {string} [search] Search query.
|
|
499
499
|
* @param {string} [order] Ordering criteria.
|
|
500
500
|
* @param {string} [expand] Extra fields to fetch.
|
|
501
|
-
* @param {string} [filters]
|
|
501
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
502
502
|
* @param {*} [options] Override http request option.
|
|
503
503
|
* @throws {RequiredError}
|
|
504
504
|
*/
|
|
@@ -611,7 +611,7 @@ var PremiumFormulasApiFactory = function (configuration, basePath, axios) {
|
|
|
611
611
|
* @param {string} [search] Search query.
|
|
612
612
|
* @param {string} [order] Ordering criteria.
|
|
613
613
|
* @param {string} [expand] Extra fields to fetch.
|
|
614
|
-
* @param {string} [filters]
|
|
614
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
615
615
|
* @param {*} [options] Override http request option.
|
|
616
616
|
* @throws {RequiredError}
|
|
617
617
|
*/
|
|
@@ -67,7 +67,7 @@ export declare const ProductFactorsApiAxiosParamCreator: (configuration?: Config
|
|
|
67
67
|
* @param {string} [search] Search query.
|
|
68
68
|
* @param {string} [order] Ordering criteria.
|
|
69
69
|
* @param {string} [expand] Extra fields to fetch.
|
|
70
|
-
* @param {string} [filters]
|
|
70
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
71
71
|
* @param {*} [options] Override http request option.
|
|
72
72
|
* @throws {RequiredError}
|
|
73
73
|
*/
|
|
@@ -141,7 +141,7 @@ export declare const ProductFactorsApiFp: (configuration?: Configuration) => {
|
|
|
141
141
|
* @param {string} [search] Search query.
|
|
142
142
|
* @param {string} [order] Ordering criteria.
|
|
143
143
|
* @param {string} [expand] Extra fields to fetch.
|
|
144
|
-
* @param {string} [filters]
|
|
144
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
145
145
|
* @param {*} [options] Override http request option.
|
|
146
146
|
* @throws {RequiredError}
|
|
147
147
|
*/
|
|
@@ -215,7 +215,7 @@ export declare const ProductFactorsApiFactory: (configuration?: Configuration, b
|
|
|
215
215
|
* @param {string} [search] Search query.
|
|
216
216
|
* @param {string} [order] Ordering criteria.
|
|
217
217
|
* @param {string} [expand] Extra fields to fetch.
|
|
218
|
-
* @param {string} [filters]
|
|
218
|
+
* @param {string} [filters] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
219
219
|
* @param {*} [options] Override http request option.
|
|
220
220
|
* @throws {RequiredError}
|
|
221
221
|
*/
|
|
@@ -388,7 +388,7 @@ export interface ProductFactorsApiListProductFactorsRequest {
|
|
|
388
388
|
*/
|
|
389
389
|
readonly expand?: string;
|
|
390
390
|
/**
|
|
391
|
-
*
|
|
391
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.
|
|
392
392
|
* @type {string}
|
|
393
393
|
* @memberof ProductFactorsApiListProductFactors
|
|
394
394
|
*/
|