@emilgroup/insurance-sdk-node 1.48.1-beta.2 → 1.49.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +8 -21
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +4 -4
- package/api/default-api.ts +4 -8
- package/api/insured-object-types-api.ts +4 -4
- package/api/insured-objects-api.ts +6 -9
- package/api/lead-statuses-api.ts +12 -96
- package/api/named-ranges-api.ts +4 -4
- package/api/policies-api.ts +180 -167
- package/api/policy-partner-roles-api.ts +683 -0
- 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 +2 -4
- 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 +4 -8
- package/dist/api/default-api.js +4 -8
- 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 +5 -7
- package/dist/api/lead-statuses-api.d.ts +9 -63
- package/dist/api/lead-statuses-api.js +9 -45
- package/dist/api/named-ranges-api.d.ts +4 -4
- package/dist/api/named-ranges-api.js +3 -3
- package/dist/api/policies-api.d.ts +140 -131
- package/dist/api/policies-api.js +120 -114
- package/dist/api/policy-partner-roles-api.d.ts +385 -0
- package/dist/api/{partner-roles-api.js → policy-partner-roles-api.js} +139 -139
- 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 +1 -2
- package/dist/api.js +1 -2
- 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/{update-partner-role-request-dto.d.ts → create-policy-partner-role-request-dto.d.ts} +6 -6
- package/dist/models/{emil-function-secret-class.d.ts → create-policy-partner-role-response-class.d.ts} +7 -12
- package/dist/models/create-product-request-dto.d.ts +1 -1
- package/dist/models/{create-partner-role-response-class.d.ts → get-policy-partner-role-response-class.d.ts} +7 -7
- package/dist/models/get-product-request-dto.d.ts +1 -1
- package/dist/models/index.d.ts +7 -19
- package/dist/models/index.js +7 -19
- package/dist/models/insured-object-type-class.d.ts +1 -1
- package/dist/models/invoice-item-class.d.ts +0 -12
- package/dist/models/lead-class.d.ts +1 -8
- package/dist/models/lead-status-class.d.ts +1 -1
- package/dist/models/{list-emil-functions-response-class.d.ts → list-policy-partner-roles-response-class.d.ts} +8 -8
- 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/patch-draft-policy-request-dto.d.ts +1 -1
- package/dist/models/policy-class.d.ts +0 -7
- package/dist/models/{partner-role-class.d.ts → policy-partner-role-class.d.ts} +10 -10
- 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-named-range-request-dto.d.ts +1 -1
- package/dist/models/{create-partner-role-request-dto.d.ts → update-policy-partner-role-request-dto.d.ts} +6 -6
- package/dist/models/{execute-emil-function-request-dto.d.ts → update-policy-partner-role-response-class.d.ts} +7 -6
- 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/{update-partner-role-request-dto.ts → create-policy-partner-role-request-dto.ts} +6 -6
- package/models/{emil-function-secret-class.ts → create-policy-partner-role-response-class.ts} +7 -12
- package/models/create-product-request-dto.ts +1 -1
- package/models/{create-partner-role-response-class.ts → get-policy-partner-role-response-class.ts} +7 -7
- package/models/get-product-request-dto.ts +1 -1
- package/models/index.ts +7 -19
- package/models/insured-object-type-class.ts +1 -1
- package/models/invoice-item-class.ts +0 -12
- package/models/lead-class.ts +1 -8
- package/models/lead-status-class.ts +1 -1
- package/models/{list-emil-functions-response-class.ts → list-policy-partner-roles-response-class.ts} +8 -8
- package/models/list-policy-versions-request-dto.ts +1 -1
- package/models/list-request-dto.ts +1 -1
- package/models/patch-draft-policy-request-dto.ts +1 -1
- package/models/policy-class.ts +0 -7
- package/models/{partner-role-class.ts → policy-partner-role-class.ts} +10 -10
- 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-named-range-request-dto.ts +1 -1
- package/models/{create-partner-role-request-dto.ts → update-policy-partner-role-request-dto.ts} +6 -6
- package/models/{execute-emil-function-request-dto.ts → update-policy-partner-role-response-class.ts} +7 -6
- package/models/update-product-request-dto.ts +1 -1
- package/package.json +1 -1
- package/api/emil-functions-api.ts +0 -1314
- package/api/partner-roles-api.ts +0 -683
- package/dist/api/emil-functions-api.d.ts +0 -727
- package/dist/api/emil-functions-api.js +0 -1202
- package/dist/api/partner-roles-api.d.ts +0 -385
- package/dist/models/create-emil-function-request-dto.d.ts +0 -42
- package/dist/models/create-emil-function-secret-request-dto.d.ts +0 -36
- package/dist/models/emil-function-class.d.ts +0 -60
- package/dist/models/get-emil-function-secret-response-class.d.ts +0 -24
- package/dist/models/get-emil-function-secret-response-class.js +0 -15
- package/dist/models/get-partner-role-response-class.d.ts +0 -25
- package/dist/models/get-partner-role-response-class.js +0 -15
- package/dist/models/list-emil-function-secrets-response-class.d.ts +0 -25
- package/dist/models/list-emil-function-secrets-response-class.js +0 -15
- package/dist/models/list-emil-functions-response-class.js +0 -15
- package/dist/models/list-partner-roles-response-class.d.ts +0 -31
- package/dist/models/list-partner-roles-response-class.js +0 -15
- package/dist/models/partner-class.d.ts +0 -60
- package/dist/models/partner-class.js +0 -15
- package/dist/models/partner-link-class.d.ts +0 -86
- package/dist/models/partner-link-class.js +0 -15
- package/dist/models/partner-role-class.js +0 -15
- package/dist/models/update-emil-function-request-dto.d.ts +0 -42
- package/dist/models/update-emil-function-request-dto.js +0 -15
- package/dist/models/update-emil-function-secret-request-dto.d.ts +0 -30
- package/dist/models/update-emil-function-secret-request-dto.js +0 -15
- package/dist/models/update-partner-role-request-dto.js +0 -15
- package/dist/models/update-partner-role-response-class.d.ts +0 -25
- package/dist/models/update-partner-role-response-class.js +0 -15
- package/models/create-emil-function-request-dto.ts +0 -48
- package/models/create-emil-function-secret-request-dto.ts +0 -42
- package/models/emil-function-class.ts +0 -66
- package/models/get-emil-function-secret-response-class.ts +0 -30
- package/models/get-partner-role-response-class.ts +0 -31
- package/models/list-emil-function-secrets-response-class.ts +0 -31
- package/models/list-partner-roles-response-class.ts +0 -37
- package/models/partner-class.ts +0 -66
- package/models/partner-link-class.ts +0 -92
- package/models/update-emil-function-request-dto.ts +0 -48
- package/models/update-emil-function-secret-request-dto.ts +0 -36
- package/models/update-partner-role-response-class.ts +0 -31
- /package/dist/models/{create-emil-function-request-dto.js → create-policy-partner-role-request-dto.js} +0 -0
- /package/dist/models/{create-emil-function-secret-request-dto.js → create-policy-partner-role-response-class.js} +0 -0
- /package/dist/models/{create-partner-role-request-dto.js → get-policy-partner-role-response-class.js} +0 -0
- /package/dist/models/{create-partner-role-response-class.js → list-policy-partner-roles-response-class.js} +0 -0
- /package/dist/models/{emil-function-class.js → policy-partner-role-class.js} +0 -0
- /package/dist/models/{emil-function-secret-class.js → update-policy-partner-role-request-dto.js} +0 -0
- /package/dist/models/{execute-emil-function-request-dto.js → update-policy-partner-role-response-class.js} +0 -0
package/dist/api/policies-api.js
CHANGED
|
@@ -150,27 +150,23 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
150
150
|
});
|
|
151
151
|
},
|
|
152
152
|
/**
|
|
153
|
-
* This will create a
|
|
154
|
-
* @summary Create the
|
|
155
|
-
* @param {
|
|
156
|
-
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
153
|
+
* This will create a policy in the database. Policy creation is usually part of a complex workflow that starts with lead creation. Creating directly a policy without prior knowledge might result in an unusable policy. Look into lead creation for more information.
|
|
154
|
+
* @summary Create the policy
|
|
155
|
+
* @param {CreatePolicyRequestDto} createPolicyRequestDto
|
|
157
156
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
157
|
* @param {*} [options] Override http request option.
|
|
159
158
|
* @throws {RequiredError}
|
|
160
159
|
*/
|
|
161
|
-
|
|
160
|
+
createPolicy: function (createPolicyRequestDto, authorization, options) {
|
|
162
161
|
if (options === void 0) { options = {}; }
|
|
163
162
|
return __awaiter(_this, void 0, void 0, function () {
|
|
164
163
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
165
164
|
return __generator(this, function (_a) {
|
|
166
165
|
switch (_a.label) {
|
|
167
166
|
case 0:
|
|
168
|
-
// verify required parameter '
|
|
169
|
-
(0, common_1.assertParamExists)('
|
|
170
|
-
|
|
171
|
-
(0, common_1.assertParamExists)('createDraftPolicy', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto);
|
|
172
|
-
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
173
|
-
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
167
|
+
// verify required parameter 'createPolicyRequestDto' is not null or undefined
|
|
168
|
+
(0, common_1.assertParamExists)('createPolicy', 'createPolicyRequestDto', createPolicyRequestDto);
|
|
169
|
+
localVarPath = "/insuranceservice/v1/policies";
|
|
174
170
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
175
171
|
if (configuration) {
|
|
176
172
|
baseOptions = configuration.baseOptions;
|
|
@@ -193,7 +189,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
193
189
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
194
190
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
191
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
196
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
192
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPolicyRequestDto, localVarRequestOptions, configuration);
|
|
197
193
|
return [2 /*return*/, {
|
|
198
194
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
199
195
|
options: localVarRequestOptions,
|
|
@@ -203,23 +199,27 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
203
199
|
});
|
|
204
200
|
},
|
|
205
201
|
/**
|
|
206
|
-
* This will create a policy in the database.
|
|
207
|
-
* @summary Create the policy
|
|
208
|
-
* @param {
|
|
202
|
+
* This will create a draft policy in the database.
|
|
203
|
+
* @summary Create the draft-policy
|
|
204
|
+
* @param {string} policyCode
|
|
205
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
209
206
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
210
207
|
* @param {*} [options] Override http request option.
|
|
211
208
|
* @throws {RequiredError}
|
|
212
209
|
*/
|
|
213
|
-
|
|
210
|
+
createPolicy_1: function (policyCode, createDraftPolicyRequestDto, authorization, options) {
|
|
214
211
|
if (options === void 0) { options = {}; }
|
|
215
212
|
return __awaiter(_this, void 0, void 0, function () {
|
|
216
213
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
217
214
|
return __generator(this, function (_a) {
|
|
218
215
|
switch (_a.label) {
|
|
219
216
|
case 0:
|
|
220
|
-
// verify required parameter '
|
|
221
|
-
(0, common_1.assertParamExists)('
|
|
222
|
-
|
|
217
|
+
// verify required parameter 'policyCode' is not null or undefined
|
|
218
|
+
(0, common_1.assertParamExists)('createPolicy_1', 'policyCode', policyCode);
|
|
219
|
+
// verify required parameter 'createDraftPolicyRequestDto' is not null or undefined
|
|
220
|
+
(0, common_1.assertParamExists)('createPolicy_1', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto);
|
|
221
|
+
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
222
|
+
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
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)(createDraftPolicyRequestDto, 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 {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
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 {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
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
|
|
694
|
-
* @summary Update the
|
|
695
|
-
* @param {string}
|
|
696
|
-
* @param {
|
|
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} code Unique identifier for the object.
|
|
696
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
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
|
+
patchPolicy: function (code, patchPolicyRequestDto, 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 'code' is not null or undefined
|
|
709
|
+
(0, common_1.assertParamExists)('patchPolicy', 'code', code);
|
|
710
|
+
// verify required parameter 'patchPolicyRequestDto' is not null or undefined
|
|
711
|
+
(0, common_1.assertParamExists)('patchPolicy', 'patchPolicyRequestDto', patchPolicyRequestDto);
|
|
712
|
+
localVarPath = "/insuranceservice/v1/policies/{code}"
|
|
713
|
+
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
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)(patchPolicyRequestDto, localVarRequestOptions, configuration);
|
|
737
737
|
return [2 /*return*/, {
|
|
738
738
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
739
739
|
options: localVarRequestOptions,
|
|
@@ -743,26 +743,30 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
743
743
|
});
|
|
744
744
|
},
|
|
745
745
|
/**
|
|
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}
|
|
749
|
-
* @param {
|
|
746
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
747
|
+
* @summary Update the draft-policy
|
|
748
|
+
* @param {string} policyCode
|
|
749
|
+
* @param {any} code Unique identifier for the object.
|
|
750
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
750
751
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
751
752
|
* @param {*} [options] Override http request option.
|
|
752
753
|
* @throws {RequiredError}
|
|
753
754
|
*/
|
|
754
|
-
|
|
755
|
+
patchPolicy_2: function (policyCode, code, patchDraftPolicyRequestDto, authorization, options) {
|
|
755
756
|
if (options === void 0) { options = {}; }
|
|
756
757
|
return __awaiter(_this, void 0, void 0, function () {
|
|
757
758
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
758
759
|
return __generator(this, function (_a) {
|
|
759
760
|
switch (_a.label) {
|
|
760
761
|
case 0:
|
|
762
|
+
// verify required parameter 'policyCode' is not null or undefined
|
|
763
|
+
(0, common_1.assertParamExists)('patchPolicy_2', 'policyCode', policyCode);
|
|
761
764
|
// verify required parameter 'code' is not null or undefined
|
|
762
|
-
(0, common_1.assertParamExists)('
|
|
763
|
-
// verify required parameter '
|
|
764
|
-
(0, common_1.assertParamExists)('
|
|
765
|
-
localVarPath = "/insuranceservice/v1/policies/{
|
|
765
|
+
(0, common_1.assertParamExists)('patchPolicy_2', 'code', code);
|
|
766
|
+
// verify required parameter 'patchDraftPolicyRequestDto' is not null or undefined
|
|
767
|
+
(0, common_1.assertParamExists)('patchPolicy_2', 'patchDraftPolicyRequestDto', patchDraftPolicyRequestDto);
|
|
768
|
+
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
769
|
+
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)))
|
|
766
770
|
.replace("{".concat("code", "}"), encodeURIComponent(String(code)));
|
|
767
771
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
768
772
|
if (configuration) {
|
|
@@ -786,7 +790,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
786
790
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
787
791
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
788
792
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
789
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
793
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchDraftPolicyRequestDto, localVarRequestOptions, configuration);
|
|
790
794
|
return [2 /*return*/, {
|
|
791
795
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
792
796
|
options: localVarRequestOptions,
|
|
@@ -1040,20 +1044,19 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1040
1044
|
});
|
|
1041
1045
|
},
|
|
1042
1046
|
/**
|
|
1043
|
-
* This will create a
|
|
1044
|
-
* @summary Create the
|
|
1045
|
-
* @param {
|
|
1046
|
-
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1047
|
+
* 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.
|
|
1048
|
+
* @summary Create the policy
|
|
1049
|
+
* @param {CreatePolicyRequestDto} createPolicyRequestDto
|
|
1047
1050
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1048
1051
|
* @param {*} [options] Override http request option.
|
|
1049
1052
|
* @throws {RequiredError}
|
|
1050
1053
|
*/
|
|
1051
|
-
|
|
1054
|
+
createPolicy: function (createPolicyRequestDto, authorization, options) {
|
|
1052
1055
|
return __awaiter(this, void 0, void 0, function () {
|
|
1053
1056
|
var localVarAxiosArgs;
|
|
1054
1057
|
return __generator(this, function (_a) {
|
|
1055
1058
|
switch (_a.label) {
|
|
1056
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1059
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPolicy(createPolicyRequestDto, authorization, options)];
|
|
1057
1060
|
case 1:
|
|
1058
1061
|
localVarAxiosArgs = _a.sent();
|
|
1059
1062
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1062,19 +1065,20 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1062
1065
|
});
|
|
1063
1066
|
},
|
|
1064
1067
|
/**
|
|
1065
|
-
* This will create a policy in the database.
|
|
1066
|
-
* @summary Create the policy
|
|
1067
|
-
* @param {
|
|
1068
|
+
* This will create a draft policy in the database.
|
|
1069
|
+
* @summary Create the draft-policy
|
|
1070
|
+
* @param {string} policyCode
|
|
1071
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1068
1072
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1069
1073
|
* @param {*} [options] Override http request option.
|
|
1070
1074
|
* @throws {RequiredError}
|
|
1071
1075
|
*/
|
|
1072
|
-
|
|
1076
|
+
createPolicy_1: function (policyCode, createDraftPolicyRequestDto, authorization, options) {
|
|
1073
1077
|
return __awaiter(this, void 0, void 0, function () {
|
|
1074
1078
|
var localVarAxiosArgs;
|
|
1075
1079
|
return __generator(this, function (_a) {
|
|
1076
1080
|
switch (_a.label) {
|
|
1077
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1081
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createPolicy_1(policyCode, createDraftPolicyRequestDto, authorization, options)];
|
|
1078
1082
|
case 1:
|
|
1079
1083
|
localVarAxiosArgs = _a.sent();
|
|
1080
1084
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1132,7 +1136,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1132
1136
|
* @summary Retrieve the policy
|
|
1133
1137
|
* @param {string} code Unique identifier for the object.
|
|
1134
1138
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1135
|
-
* @param {
|
|
1139
|
+
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
1136
1140
|
* @param {*} [options] Override http request option.
|
|
1137
1141
|
* @throws {RequiredError}
|
|
1138
1142
|
*/
|
|
@@ -1180,7 +1184,7 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1180
1184
|
* @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>
|
|
1181
1185
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1182
1186
|
* @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>
|
|
1183
|
-
* @param {
|
|
1187
|
+
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
1184
1188
|
* @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.
|
|
1185
1189
|
* @param {*} [options] Override http request option.
|
|
1186
1190
|
* @throws {RequiredError}
|
|
@@ -1254,20 +1258,20 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1254
1258
|
});
|
|
1255
1259
|
},
|
|
1256
1260
|
/**
|
|
1257
|
-
* Updates the specified
|
|
1258
|
-
* @summary Update the
|
|
1259
|
-
* @param {string}
|
|
1260
|
-
* @param {
|
|
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} code Unique identifier for the object.
|
|
1264
|
+
* @param {PatchPolicyRequestDto} patchPolicyRequestDto
|
|
1261
1265
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1262
1266
|
* @param {*} [options] Override http request option.
|
|
1263
1267
|
* @throws {RequiredError}
|
|
1264
1268
|
*/
|
|
1265
|
-
|
|
1269
|
+
patchPolicy: function (code, patchPolicyRequestDto, authorization, options) {
|
|
1266
1270
|
return __awaiter(this, void 0, void 0, function () {
|
|
1267
1271
|
var localVarAxiosArgs;
|
|
1268
1272
|
return __generator(this, function (_a) {
|
|
1269
1273
|
switch (_a.label) {
|
|
1270
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1274
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchPolicy(code, patchPolicyRequestDto, authorization, options)];
|
|
1271
1275
|
case 1:
|
|
1272
1276
|
localVarAxiosArgs = _a.sent();
|
|
1273
1277
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1276,20 +1280,21 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1276
1280
|
});
|
|
1277
1281
|
},
|
|
1278
1282
|
/**
|
|
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}
|
|
1282
|
-
* @param {
|
|
1283
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1284
|
+
* @summary Update the draft-policy
|
|
1285
|
+
* @param {string} policyCode
|
|
1286
|
+
* @param {any} code Unique identifier for the object.
|
|
1287
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1283
1288
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1284
1289
|
* @param {*} [options] Override http request option.
|
|
1285
1290
|
* @throws {RequiredError}
|
|
1286
1291
|
*/
|
|
1287
|
-
|
|
1292
|
+
patchPolicy_2: function (policyCode, code, patchDraftPolicyRequestDto, authorization, options) {
|
|
1288
1293
|
return __awaiter(this, void 0, void 0, function () {
|
|
1289
1294
|
var localVarAxiosArgs;
|
|
1290
1295
|
return __generator(this, function (_a) {
|
|
1291
1296
|
switch (_a.label) {
|
|
1292
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
1297
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchPolicy_2(policyCode, code, patchDraftPolicyRequestDto, authorization, options)];
|
|
1293
1298
|
case 1:
|
|
1294
1299
|
localVarAxiosArgs = _a.sent();
|
|
1295
1300
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1408,27 +1413,27 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1408
1413
|
return localVarFp.activatePolicy(policyCode, activatePolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1409
1414
|
},
|
|
1410
1415
|
/**
|
|
1411
|
-
* This will create a
|
|
1412
|
-
* @summary Create the
|
|
1413
|
-
* @param {
|
|
1414
|
-
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1416
|
+
* 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.
|
|
1417
|
+
* @summary Create the policy
|
|
1418
|
+
* @param {CreatePolicyRequestDto} createPolicyRequestDto
|
|
1415
1419
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1416
1420
|
* @param {*} [options] Override http request option.
|
|
1417
1421
|
* @throws {RequiredError}
|
|
1418
1422
|
*/
|
|
1419
|
-
|
|
1420
|
-
return localVarFp.
|
|
1423
|
+
createPolicy: function (createPolicyRequestDto, authorization, options) {
|
|
1424
|
+
return localVarFp.createPolicy(createPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1421
1425
|
},
|
|
1422
1426
|
/**
|
|
1423
|
-
* This will create a policy in the database.
|
|
1424
|
-
* @summary Create the policy
|
|
1425
|
-
* @param {
|
|
1427
|
+
* This will create a draft policy in the database.
|
|
1428
|
+
* @summary Create the draft-policy
|
|
1429
|
+
* @param {string} policyCode
|
|
1430
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1426
1431
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1427
1432
|
* @param {*} [options] Override http request option.
|
|
1428
1433
|
* @throws {RequiredError}
|
|
1429
1434
|
*/
|
|
1430
|
-
|
|
1431
|
-
return localVarFp.
|
|
1435
|
+
createPolicy_1: function (policyCode, createDraftPolicyRequestDto, authorization, options) {
|
|
1436
|
+
return localVarFp.createPolicy_1(policyCode, createDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1432
1437
|
},
|
|
1433
1438
|
/**
|
|
1434
1439
|
* Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
|
|
@@ -1460,7 +1465,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1460
1465
|
* @summary Retrieve the policy
|
|
1461
1466
|
* @param {string} code Unique identifier for the object.
|
|
1462
1467
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1463
|
-
* @param {
|
|
1468
|
+
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy in this endpoint. By default, versions will be an empty array.
|
|
1464
1469
|
* @param {*} [options] Override http request option.
|
|
1465
1470
|
* @throws {RequiredError}
|
|
1466
1471
|
*/
|
|
@@ -1488,7 +1493,7 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1488
1493
|
* @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>
|
|
1489
1494
|
* @param {any} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
1490
1495
|
* @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>
|
|
1491
|
-
* @param {
|
|
1496
|
+
* @param {'versions' | 'product' | 'timelines' | 'premiums' | 'premiumItems' | 'premiumFormulas' | 'currentVersion' | 'currentTimelines' | 'currentPremiums' | 'currentPremiumItems' | 'currentPremiumFormulas'} [expand] You can expand policy versions list in this endpoint. By default, versions will be an empty array.
|
|
1492
1497
|
* @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.
|
|
1493
1498
|
* @param {*} [options] Override http request option.
|
|
1494
1499
|
* @throws {RequiredError}
|
|
@@ -1531,18 +1536,6 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1531
1536
|
listPolicyVersions: function (policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options) {
|
|
1532
1537
|
return localVarFp.listPolicyVersions(policyCode, authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then(function (request) { return request(axios, basePath); });
|
|
1533
1538
|
},
|
|
1534
|
-
/**
|
|
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
|
|
1539
|
-
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1540
|
-
* @param {*} [options] Override http request option.
|
|
1541
|
-
* @throws {RequiredError}
|
|
1542
|
-
*/
|
|
1543
|
-
patchDraftPolicy: function (policyCode, patchDraftPolicyRequestDto, authorization, options) {
|
|
1544
|
-
return localVarFp.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1545
|
-
},
|
|
1546
1539
|
/**
|
|
1547
1540
|
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1548
1541
|
* @summary Update the policy
|
|
@@ -1555,6 +1548,19 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1555
1548
|
patchPolicy: function (code, patchPolicyRequestDto, authorization, options) {
|
|
1556
1549
|
return localVarFp.patchPolicy(code, patchPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1557
1550
|
},
|
|
1551
|
+
/**
|
|
1552
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1553
|
+
* @summary Update the draft-policy
|
|
1554
|
+
* @param {string} policyCode
|
|
1555
|
+
* @param {any} code Unique identifier for the object.
|
|
1556
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1557
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1558
|
+
* @param {*} [options] Override http request option.
|
|
1559
|
+
* @throws {RequiredError}
|
|
1560
|
+
*/
|
|
1561
|
+
patchPolicy_2: function (policyCode, code, patchDraftPolicyRequestDto, authorization, options) {
|
|
1562
|
+
return localVarFp.patchPolicy_2(policyCode, code, patchDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1563
|
+
},
|
|
1558
1564
|
/**
|
|
1559
1565
|
* Request to suspend an existing policy by tenant.
|
|
1560
1566
|
* @summary Suspend a policy by tenant
|
|
@@ -1630,28 +1636,28 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1630
1636
|
return (0, exports.PoliciesApiFp)(this.configuration).activatePolicy(requestParameters.policyCode, requestParameters.activatePolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1631
1637
|
};
|
|
1632
1638
|
/**
|
|
1633
|
-
* This will create a
|
|
1634
|
-
* @summary Create the
|
|
1635
|
-
* @param {
|
|
1639
|
+
* 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.
|
|
1640
|
+
* @summary Create the policy
|
|
1641
|
+
* @param {PoliciesApiCreatePolicyRequest} requestParameters Request parameters.
|
|
1636
1642
|
* @param {*} [options] Override http request option.
|
|
1637
1643
|
* @throws {RequiredError}
|
|
1638
1644
|
* @memberof PoliciesApi
|
|
1639
1645
|
*/
|
|
1640
|
-
PoliciesApi.prototype.
|
|
1646
|
+
PoliciesApi.prototype.createPolicy = function (requestParameters, options) {
|
|
1641
1647
|
var _this = this;
|
|
1642
|
-
return (0, exports.PoliciesApiFp)(this.configuration).
|
|
1648
|
+
return (0, exports.PoliciesApiFp)(this.configuration).createPolicy(requestParameters.createPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1643
1649
|
};
|
|
1644
1650
|
/**
|
|
1645
|
-
* This will create a policy in the database.
|
|
1646
|
-
* @summary Create the policy
|
|
1647
|
-
* @param {
|
|
1651
|
+
* This will create a draft policy in the database.
|
|
1652
|
+
* @summary Create the draft-policy
|
|
1653
|
+
* @param {PoliciesApiCreatePolicy0Request} requestParameters Request parameters.
|
|
1648
1654
|
* @param {*} [options] Override http request option.
|
|
1649
1655
|
* @throws {RequiredError}
|
|
1650
1656
|
* @memberof PoliciesApi
|
|
1651
1657
|
*/
|
|
1652
|
-
PoliciesApi.prototype.
|
|
1658
|
+
PoliciesApi.prototype.createPolicy_1 = function (requestParameters, options) {
|
|
1653
1659
|
var _this = this;
|
|
1654
|
-
return (0, exports.PoliciesApiFp)(this.configuration).
|
|
1660
|
+
return (0, exports.PoliciesApiFp)(this.configuration).createPolicy_1(requestParameters.policyCode, requestParameters.createDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1655
1661
|
};
|
|
1656
1662
|
/**
|
|
1657
1663
|
* Permanently deletes the draft-policy. Supply the unique code that was returned when you created the draft-policy and this will delete it.
|
|
@@ -1739,28 +1745,28 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1739
1745
|
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); });
|
|
1740
1746
|
};
|
|
1741
1747
|
/**
|
|
1742
|
-
* Updates the specified
|
|
1743
|
-
* @summary Update the
|
|
1744
|
-
* @param {
|
|
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 {PoliciesApiPatchPolicyRequest} requestParameters Request parameters.
|
|
1745
1751
|
* @param {*} [options] Override http request option.
|
|
1746
1752
|
* @throws {RequiredError}
|
|
1747
1753
|
* @memberof PoliciesApi
|
|
1748
1754
|
*/
|
|
1749
|
-
PoliciesApi.prototype.
|
|
1755
|
+
PoliciesApi.prototype.patchPolicy = function (requestParameters, options) {
|
|
1750
1756
|
var _this = this;
|
|
1751
|
-
return (0, exports.PoliciesApiFp)(this.configuration).
|
|
1757
|
+
return (0, exports.PoliciesApiFp)(this.configuration).patchPolicy(requestParameters.code, requestParameters.patchPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1752
1758
|
};
|
|
1753
1759
|
/**
|
|
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 {
|
|
1760
|
+
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
|
|
1761
|
+
* @summary Update the draft-policy
|
|
1762
|
+
* @param {PoliciesApiPatchPolicy0Request} requestParameters Request parameters.
|
|
1757
1763
|
* @param {*} [options] Override http request option.
|
|
1758
1764
|
* @throws {RequiredError}
|
|
1759
1765
|
* @memberof PoliciesApi
|
|
1760
1766
|
*/
|
|
1761
|
-
PoliciesApi.prototype.
|
|
1767
|
+
PoliciesApi.prototype.patchPolicy_2 = function (requestParameters, options) {
|
|
1762
1768
|
var _this = this;
|
|
1763
|
-
return (0, exports.PoliciesApiFp)(this.configuration).
|
|
1769
|
+
return (0, exports.PoliciesApiFp)(this.configuration).patchPolicy_2(requestParameters.policyCode, requestParameters.code, requestParameters.patchDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1764
1770
|
};
|
|
1765
1771
|
/**
|
|
1766
1772
|
* Request to suspend an existing policy by tenant.
|