@emilgroup/insurance-sdk 1.79.1-beta.0 → 1.81.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 +4 -13
- package/README.md +2 -2
- package/api/booking-funnels-api.ts +31 -31
- package/api/commission-agreement-items-api.ts +4 -4
- package/api/policies-api.ts +32 -32
- package/api/product-fields-api.ts +16 -16
- package/api/status-transition-rules-api.ts +31 -31
- package/dist/api/booking-funnels-api.d.ts +18 -18
- package/dist/api/booking-funnels-api.js +24 -24
- package/dist/api/commission-agreement-items-api.d.ts +4 -4
- package/dist/api/commission-agreement-items-api.js +3 -3
- package/dist/api/policies-api.d.ts +18 -18
- package/dist/api/policies-api.js +24 -24
- package/dist/api/product-fields-api.d.ts +9 -9
- package/dist/api/product-fields-api.js +12 -12
- package/dist/api/status-transition-rules-api.d.ts +18 -18
- package/dist/api/status-transition-rules-api.js +24 -24
- package/dist/models/create-draft-policy-request-dto.d.ts +0 -6
- package/dist/models/index.d.ts +4 -13
- package/dist/models/index.js +4 -13
- package/dist/models/{grpc-patch-booking-funnel-request-dto.d.ts → patch-booking-funnel-request-dto.d.ts} +10 -10
- package/dist/models/{rest-patch-draft-policy-request-dto.d.ts → patch-draft-policy-request-dto.d.ts} +12 -12
- package/dist/models/{rest-patch-draft-policy-request-dto.js → patch-draft-policy-request-dto.js} +2 -2
- package/dist/models/patch-status-transition-rule-request-dto.d.ts +10 -4
- package/dist/models/{grpc-update-booking-funnel-request-dto.d.ts → update-booking-funnel-request-dto.d.ts} +10 -10
- package/dist/models/update-status-transition-rule-request-dto.d.ts +53 -0
- package/dist/models/{grpc-patch-status-transition-rule-request-dto.js → update-status-transition-rule-request-dto.js} +2 -2
- package/models/create-draft-policy-request-dto.ts +0 -6
- package/models/index.ts +4 -13
- package/models/{grpc-patch-booking-funnel-request-dto.ts → patch-booking-funnel-request-dto.ts} +10 -10
- package/models/{rest-patch-draft-policy-request-dto.ts → patch-draft-policy-request-dto.ts} +12 -12
- package/models/patch-status-transition-rule-request-dto.ts +10 -4
- package/models/{grpc-update-booking-funnel-request-dto.ts → update-booking-funnel-request-dto.ts} +10 -10
- package/models/{grpc-update-status-transition-rule-request-dto.ts → update-status-transition-rule-request-dto.ts} +10 -10
- package/package.json +1 -1
- package/dist/models/grpc-patch-draft-policy-request-dto.d.ts +0 -76
- package/dist/models/grpc-patch-draft-policy-request-dto.js +0 -23
- package/dist/models/grpc-patch-status-transition-rule-request-dto.d.ts +0 -53
- package/dist/models/grpc-update-status-transition-rule-request-dto.d.ts +0 -53
- package/dist/models/grpc-update-status-transition-rule-request-dto.js +0 -20
- package/dist/models/rest-create-draft-policy-request-dto.d.ts +0 -70
- package/dist/models/rest-create-draft-policy-request-dto.js +0 -23
- package/dist/models/rest-create-status-transition-rule-request-dto.d.ts +0 -47
- package/dist/models/rest-create-status-transition-rule-request-dto.js +0 -20
- package/dist/models/rest-patch-booking-funnel-request-dto.d.ts +0 -60
- package/dist/models/rest-patch-booking-funnel-request-dto.js +0 -15
- package/dist/models/rest-update-booking-funnel-request-dto.d.ts +0 -60
- package/dist/models/rest-update-booking-funnel-request-dto.js +0 -15
- package/dist/models/rest-update-product-field-request-dto.d.ts +0 -171
- package/dist/models/rest-update-product-field-request-dto.js +0 -28
- package/dist/models/rest-update-status-transition-rule-request-dto.d.ts +0 -47
- package/dist/models/rest-update-status-transition-rule-request-dto.js +0 -20
- package/dist/models/shared-delete-request-dto.d.ts +0 -24
- package/dist/models/shared-delete-request-dto.js +0 -15
- package/models/grpc-patch-draft-policy-request-dto.ts +0 -85
- package/models/grpc-patch-status-transition-rule-request-dto.ts +0 -62
- package/models/rest-create-draft-policy-request-dto.ts +0 -79
- package/models/rest-create-status-transition-rule-request-dto.ts +0 -56
- package/models/rest-patch-booking-funnel-request-dto.ts +0 -66
- package/models/rest-update-booking-funnel-request-dto.ts +0 -66
- package/models/rest-update-product-field-request-dto.ts +0 -182
- package/models/rest-update-status-transition-rule-request-dto.ts +0 -56
- package/models/shared-delete-request-dto.ts +0 -30
- /package/dist/models/{grpc-patch-booking-funnel-request-dto.js → patch-booking-funnel-request-dto.js} +0 -0
- /package/dist/models/{grpc-update-booking-funnel-request-dto.js → update-booking-funnel-request-dto.js} +0 -0
|
@@ -14,6 +14,7 @@ import { Configuration } from '../configuration';
|
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
15
|
import { ActivatePolicyRequestDto } from '../models';
|
|
16
16
|
import { ActivatePolicyResponseClass } from '../models';
|
|
17
|
+
import { CreateDraftPolicyRequestDto } from '../models';
|
|
17
18
|
import { CreatePolicyRequestDto } from '../models';
|
|
18
19
|
import { CreatePolicyResponseClass } from '../models';
|
|
19
20
|
import { DeleteResponseClass } from '../models';
|
|
@@ -21,10 +22,9 @@ import { GetPolicyResponseClass } from '../models';
|
|
|
21
22
|
import { ListPoliciesResponseClass } from '../models';
|
|
22
23
|
import { ListPolicyObjectsResponseClass } from '../models';
|
|
23
24
|
import { ListPolicyVersionResponseClass } from '../models';
|
|
25
|
+
import { PatchDraftPolicyRequestDto } from '../models';
|
|
24
26
|
import { PatchPolicyRequestDto } from '../models';
|
|
25
27
|
import { PatchPolicyResponseClass } from '../models';
|
|
26
|
-
import { RestCreateDraftPolicyRequestDto } from '../models';
|
|
27
|
-
import { RestPatchDraftPolicyRequestDto } from '../models';
|
|
28
28
|
import { RestorePolicyVersionRequestDto } from '../models';
|
|
29
29
|
import { RestorePolicyVersionResponseClass } from '../models';
|
|
30
30
|
import { SuspendPolicyRequestDto } from '../models';
|
|
@@ -53,12 +53,12 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
53
53
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
54
54
|
* @summary Create the draft-policy
|
|
55
55
|
* @param {string} policyCode Unique identifier for the object.
|
|
56
|
-
* @param {
|
|
56
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
57
57
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
58
58
|
* @param {*} [options] Override http request option.
|
|
59
59
|
* @throws {RequiredError}
|
|
60
60
|
*/
|
|
61
|
-
createDraftPolicy: (policyCode: string,
|
|
61
|
+
createDraftPolicy: (policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
62
62
|
/**
|
|
63
63
|
* 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. **Required Permissions** \"policy-management.policies.create\"
|
|
64
64
|
* @summary Create the policy
|
|
@@ -158,12 +158,12 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
158
158
|
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
159
159
|
* @summary Update the draft-policy
|
|
160
160
|
* @param {string} policyCode Unique identifier for the object.
|
|
161
|
-
* @param {
|
|
161
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
162
162
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
163
163
|
* @param {*} [options] Override http request option.
|
|
164
164
|
* @throws {RequiredError}
|
|
165
165
|
*/
|
|
166
|
-
patchDraftPolicy: (policyCode: string,
|
|
166
|
+
patchDraftPolicy: (policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
167
167
|
/**
|
|
168
168
|
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
169
169
|
* @summary Update the policy
|
|
@@ -244,12 +244,12 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
244
244
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
245
245
|
* @summary Create the draft-policy
|
|
246
246
|
* @param {string} policyCode Unique identifier for the object.
|
|
247
|
-
* @param {
|
|
247
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
248
248
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
249
249
|
* @param {*} [options] Override http request option.
|
|
250
250
|
* @throws {RequiredError}
|
|
251
251
|
*/
|
|
252
|
-
createDraftPolicy(policyCode: string,
|
|
252
|
+
createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
|
|
253
253
|
/**
|
|
254
254
|
* 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. **Required Permissions** \"policy-management.policies.create\"
|
|
255
255
|
* @summary Create the policy
|
|
@@ -349,12 +349,12 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
349
349
|
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
350
350
|
* @summary Update the draft-policy
|
|
351
351
|
* @param {string} policyCode Unique identifier for the object.
|
|
352
|
-
* @param {
|
|
352
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
353
353
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
354
354
|
* @param {*} [options] Override http request option.
|
|
355
355
|
* @throws {RequiredError}
|
|
356
356
|
*/
|
|
357
|
-
patchDraftPolicy(policyCode: string,
|
|
357
|
+
patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
|
|
358
358
|
/**
|
|
359
359
|
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
360
360
|
* @summary Update the policy
|
|
@@ -435,12 +435,12 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
435
435
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
436
436
|
* @summary Create the draft-policy
|
|
437
437
|
* @param {string} policyCode Unique identifier for the object.
|
|
438
|
-
* @param {
|
|
438
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
439
439
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
440
440
|
* @param {*} [options] Override http request option.
|
|
441
441
|
* @throws {RequiredError}
|
|
442
442
|
*/
|
|
443
|
-
createDraftPolicy(policyCode: string,
|
|
443
|
+
createDraftPolicy(policyCode: string, createDraftPolicyRequestDto: CreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
|
|
444
444
|
/**
|
|
445
445
|
* 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. **Required Permissions** \"policy-management.policies.create\"
|
|
446
446
|
* @summary Create the policy
|
|
@@ -540,12 +540,12 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
540
540
|
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
541
541
|
* @summary Update the draft-policy
|
|
542
542
|
* @param {string} policyCode Unique identifier for the object.
|
|
543
|
-
* @param {
|
|
543
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
544
544
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
545
545
|
* @param {*} [options] Override http request option.
|
|
546
546
|
* @throws {RequiredError}
|
|
547
547
|
*/
|
|
548
|
-
patchDraftPolicy(policyCode: string,
|
|
548
|
+
patchDraftPolicy(policyCode: string, patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
|
|
549
549
|
/**
|
|
550
550
|
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
551
551
|
* @summary Update the policy
|
|
@@ -646,10 +646,10 @@ export interface PoliciesApiCreateDraftPolicyRequest {
|
|
|
646
646
|
readonly policyCode: string;
|
|
647
647
|
/**
|
|
648
648
|
*
|
|
649
|
-
* @type {
|
|
649
|
+
* @type {CreateDraftPolicyRequestDto}
|
|
650
650
|
* @memberof PoliciesApiCreateDraftPolicy
|
|
651
651
|
*/
|
|
652
|
-
readonly
|
|
652
|
+
readonly createDraftPolicyRequestDto: CreateDraftPolicyRequestDto;
|
|
653
653
|
/**
|
|
654
654
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
655
655
|
* @type {string}
|
|
@@ -961,10 +961,10 @@ export interface PoliciesApiPatchDraftPolicyRequest {
|
|
|
961
961
|
readonly policyCode: string;
|
|
962
962
|
/**
|
|
963
963
|
*
|
|
964
|
-
* @type {
|
|
964
|
+
* @type {PatchDraftPolicyRequestDto}
|
|
965
965
|
* @memberof PoliciesApiPatchDraftPolicy
|
|
966
966
|
*/
|
|
967
|
-
readonly
|
|
967
|
+
readonly patchDraftPolicyRequestDto: PatchDraftPolicyRequestDto;
|
|
968
968
|
/**
|
|
969
969
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
970
970
|
* @type {string}
|
package/dist/api/policies-api.js
CHANGED
|
@@ -149,12 +149,12 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
149
149
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
150
150
|
* @summary Create the draft-policy
|
|
151
151
|
* @param {string} policyCode Unique identifier for the object.
|
|
152
|
-
* @param {
|
|
152
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
153
153
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
154
154
|
* @param {*} [options] Override http request option.
|
|
155
155
|
* @throws {RequiredError}
|
|
156
156
|
*/
|
|
157
|
-
createDraftPolicy: function (policyCode,
|
|
157
|
+
createDraftPolicy: function (policyCode, createDraftPolicyRequestDto, authorization, options) {
|
|
158
158
|
if (options === void 0) { options = {}; }
|
|
159
159
|
return __awaiter(_this, void 0, void 0, function () {
|
|
160
160
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -163,8 +163,8 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
163
163
|
case 0:
|
|
164
164
|
// verify required parameter 'policyCode' is not null or undefined
|
|
165
165
|
(0, common_1.assertParamExists)('createDraftPolicy', 'policyCode', policyCode);
|
|
166
|
-
// verify required parameter '
|
|
167
|
-
(0, common_1.assertParamExists)('createDraftPolicy', '
|
|
166
|
+
// verify required parameter 'createDraftPolicyRequestDto' is not null or undefined
|
|
167
|
+
(0, common_1.assertParamExists)('createDraftPolicy', 'createDraftPolicyRequestDto', createDraftPolicyRequestDto);
|
|
168
168
|
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
169
169
|
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
170
170
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -189,7 +189,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
189
189
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
190
190
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
191
191
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
192
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
192
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDraftPolicyRequestDto, localVarRequestOptions, configuration);
|
|
193
193
|
return [2 /*return*/, {
|
|
194
194
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
195
195
|
options: localVarRequestOptions,
|
|
@@ -679,12 +679,12 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
679
679
|
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
680
680
|
* @summary Update the draft-policy
|
|
681
681
|
* @param {string} policyCode Unique identifier for the object.
|
|
682
|
-
* @param {
|
|
682
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
683
683
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
684
684
|
* @param {*} [options] Override http request option.
|
|
685
685
|
* @throws {RequiredError}
|
|
686
686
|
*/
|
|
687
|
-
patchDraftPolicy: function (policyCode,
|
|
687
|
+
patchDraftPolicy: function (policyCode, patchDraftPolicyRequestDto, authorization, options) {
|
|
688
688
|
if (options === void 0) { options = {}; }
|
|
689
689
|
return __awaiter(_this, void 0, void 0, function () {
|
|
690
690
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -693,8 +693,8 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
693
693
|
case 0:
|
|
694
694
|
// verify required parameter 'policyCode' is not null or undefined
|
|
695
695
|
(0, common_1.assertParamExists)('patchDraftPolicy', 'policyCode', policyCode);
|
|
696
|
-
// verify required parameter '
|
|
697
|
-
(0, common_1.assertParamExists)('patchDraftPolicy', '
|
|
696
|
+
// verify required parameter 'patchDraftPolicyRequestDto' is not null or undefined
|
|
697
|
+
(0, common_1.assertParamExists)('patchDraftPolicy', 'patchDraftPolicyRequestDto', patchDraftPolicyRequestDto);
|
|
698
698
|
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
699
699
|
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
700
700
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -719,7 +719,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
719
719
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
720
720
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
721
721
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
722
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
722
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(patchDraftPolicyRequestDto, localVarRequestOptions, configuration);
|
|
723
723
|
return [2 /*return*/, {
|
|
724
724
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
725
725
|
options: localVarRequestOptions,
|
|
@@ -1082,17 +1082,17 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1082
1082
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
1083
1083
|
* @summary Create the draft-policy
|
|
1084
1084
|
* @param {string} policyCode Unique identifier for the object.
|
|
1085
|
-
* @param {
|
|
1085
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1086
1086
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1087
1087
|
* @param {*} [options] Override http request option.
|
|
1088
1088
|
* @throws {RequiredError}
|
|
1089
1089
|
*/
|
|
1090
|
-
createDraftPolicy: function (policyCode,
|
|
1090
|
+
createDraftPolicy: function (policyCode, createDraftPolicyRequestDto, authorization, options) {
|
|
1091
1091
|
return __awaiter(this, void 0, void 0, function () {
|
|
1092
1092
|
var localVarAxiosArgs;
|
|
1093
1093
|
return __generator(this, function (_a) {
|
|
1094
1094
|
switch (_a.label) {
|
|
1095
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDraftPolicy(policyCode,
|
|
1095
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options)];
|
|
1096
1096
|
case 1:
|
|
1097
1097
|
localVarAxiosArgs = _a.sent();
|
|
1098
1098
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1295,17 +1295,17 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1295
1295
|
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
1296
1296
|
* @summary Update the draft-policy
|
|
1297
1297
|
* @param {string} policyCode Unique identifier for the object.
|
|
1298
|
-
* @param {
|
|
1298
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1299
1299
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1300
1300
|
* @param {*} [options] Override http request option.
|
|
1301
1301
|
* @throws {RequiredError}
|
|
1302
1302
|
*/
|
|
1303
|
-
patchDraftPolicy: function (policyCode,
|
|
1303
|
+
patchDraftPolicy: function (policyCode, patchDraftPolicyRequestDto, authorization, options) {
|
|
1304
1304
|
return __awaiter(this, void 0, void 0, function () {
|
|
1305
1305
|
var localVarAxiosArgs;
|
|
1306
1306
|
return __generator(this, function (_a) {
|
|
1307
1307
|
switch (_a.label) {
|
|
1308
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchDraftPolicy(policyCode,
|
|
1308
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options)];
|
|
1309
1309
|
case 1:
|
|
1310
1310
|
localVarAxiosArgs = _a.sent();
|
|
1311
1311
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1471,13 +1471,13 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1471
1471
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
1472
1472
|
* @summary Create the draft-policy
|
|
1473
1473
|
* @param {string} policyCode Unique identifier for the object.
|
|
1474
|
-
* @param {
|
|
1474
|
+
* @param {CreateDraftPolicyRequestDto} createDraftPolicyRequestDto
|
|
1475
1475
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1476
1476
|
* @param {*} [options] Override http request option.
|
|
1477
1477
|
* @throws {RequiredError}
|
|
1478
1478
|
*/
|
|
1479
|
-
createDraftPolicy: function (policyCode,
|
|
1480
|
-
return localVarFp.createDraftPolicy(policyCode,
|
|
1479
|
+
createDraftPolicy: function (policyCode, createDraftPolicyRequestDto, authorization, options) {
|
|
1480
|
+
return localVarFp.createDraftPolicy(policyCode, createDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1481
1481
|
},
|
|
1482
1482
|
/**
|
|
1483
1483
|
* 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. **Required Permissions** \"policy-management.policies.create\"
|
|
@@ -1594,13 +1594,13 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1594
1594
|
* Updates the specified draft-policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
1595
1595
|
* @summary Update the draft-policy
|
|
1596
1596
|
* @param {string} policyCode Unique identifier for the object.
|
|
1597
|
-
* @param {
|
|
1597
|
+
* @param {PatchDraftPolicyRequestDto} patchDraftPolicyRequestDto
|
|
1598
1598
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1599
1599
|
* @param {*} [options] Override http request option.
|
|
1600
1600
|
* @throws {RequiredError}
|
|
1601
1601
|
*/
|
|
1602
|
-
patchDraftPolicy: function (policyCode,
|
|
1603
|
-
return localVarFp.patchDraftPolicy(policyCode,
|
|
1602
|
+
patchDraftPolicy: function (policyCode, patchDraftPolicyRequestDto, authorization, options) {
|
|
1603
|
+
return localVarFp.patchDraftPolicy(policyCode, patchDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1604
1604
|
},
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
@@ -1710,7 +1710,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1710
1710
|
*/
|
|
1711
1711
|
PoliciesApi.prototype.createDraftPolicy = function (requestParameters, options) {
|
|
1712
1712
|
var _this = this;
|
|
1713
|
-
return (0, exports.PoliciesApiFp)(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.
|
|
1713
|
+
return (0, exports.PoliciesApiFp)(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.createDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1714
1714
|
};
|
|
1715
1715
|
/**
|
|
1716
1716
|
* 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. **Required Permissions** \"policy-management.policies.create\"
|
|
@@ -1820,7 +1820,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1820
1820
|
*/
|
|
1821
1821
|
PoliciesApi.prototype.patchDraftPolicy = function (requestParameters, options) {
|
|
1822
1822
|
var _this = this;
|
|
1823
|
-
return (0, exports.PoliciesApiFp)(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.
|
|
1823
|
+
return (0, exports.PoliciesApiFp)(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.patchDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1824
1824
|
};
|
|
1825
1825
|
/**
|
|
1826
1826
|
* Updates the specified policy by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.policies.update\"
|
|
@@ -19,8 +19,8 @@ import { EmptyResponseClass } from '../models';
|
|
|
19
19
|
import { GetProductFieldResponseClass } from '../models';
|
|
20
20
|
import { ListProductFieldTypesResponseClass } from '../models';
|
|
21
21
|
import { ListProductFieldsResponseClass } from '../models';
|
|
22
|
-
import { RestUpdateProductFieldRequestDto } from '../models';
|
|
23
22
|
import { SwapProductFieldsOrderRequestDto } from '../models';
|
|
23
|
+
import { UpdateProductFieldRequestDto } from '../models';
|
|
24
24
|
import { UpdateProductFieldResponseClass } from '../models';
|
|
25
25
|
/**
|
|
26
26
|
* ProductFieldsApi - axios parameter creator
|
|
@@ -97,12 +97,12 @@ export declare const ProductFieldsApiAxiosParamCreator: (configuration?: Configu
|
|
|
97
97
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
|
|
98
98
|
* @summary Update the product
|
|
99
99
|
* @param {number} id
|
|
100
|
-
* @param {
|
|
100
|
+
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
101
101
|
* @param {string} [authorization] Bearer Token
|
|
102
102
|
* @param {*} [options] Override http request option.
|
|
103
103
|
* @throws {RequiredError}
|
|
104
104
|
*/
|
|
105
|
-
updateProductField: (id: number,
|
|
105
|
+
updateProductField: (id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
106
106
|
};
|
|
107
107
|
/**
|
|
108
108
|
* ProductFieldsApi - functional programming interface
|
|
@@ -179,12 +179,12 @@ export declare const ProductFieldsApiFp: (configuration?: Configuration) => {
|
|
|
179
179
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
|
|
180
180
|
* @summary Update the product
|
|
181
181
|
* @param {number} id
|
|
182
|
-
* @param {
|
|
182
|
+
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
183
183
|
* @param {string} [authorization] Bearer Token
|
|
184
184
|
* @param {*} [options] Override http request option.
|
|
185
185
|
* @throws {RequiredError}
|
|
186
186
|
*/
|
|
187
|
-
updateProductField(id: number,
|
|
187
|
+
updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateProductFieldResponseClass>>;
|
|
188
188
|
};
|
|
189
189
|
/**
|
|
190
190
|
* ProductFieldsApi - factory interface
|
|
@@ -261,12 +261,12 @@ export declare const ProductFieldsApiFactory: (configuration?: Configuration, ba
|
|
|
261
261
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
|
|
262
262
|
* @summary Update the product
|
|
263
263
|
* @param {number} id
|
|
264
|
-
* @param {
|
|
264
|
+
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
265
265
|
* @param {string} [authorization] Bearer Token
|
|
266
266
|
* @param {*} [options] Override http request option.
|
|
267
267
|
* @throws {RequiredError}
|
|
268
268
|
*/
|
|
269
|
-
updateProductField(id: number,
|
|
269
|
+
updateProductField(id: number, updateProductFieldRequestDto: UpdateProductFieldRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateProductFieldResponseClass>;
|
|
270
270
|
};
|
|
271
271
|
/**
|
|
272
272
|
* Request parameters for createProductField operation in ProductFieldsApi.
|
|
@@ -468,10 +468,10 @@ export interface ProductFieldsApiUpdateProductFieldRequest {
|
|
|
468
468
|
readonly id: number;
|
|
469
469
|
/**
|
|
470
470
|
*
|
|
471
|
-
* @type {
|
|
471
|
+
* @type {UpdateProductFieldRequestDto}
|
|
472
472
|
* @memberof ProductFieldsApiUpdateProductField
|
|
473
473
|
*/
|
|
474
|
-
readonly
|
|
474
|
+
readonly updateProductFieldRequestDto: UpdateProductFieldRequestDto;
|
|
475
475
|
/**
|
|
476
476
|
* Bearer Token
|
|
477
477
|
* @type {string}
|
|
@@ -434,12 +434,12 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
434
434
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
|
|
435
435
|
* @summary Update the product
|
|
436
436
|
* @param {number} id
|
|
437
|
-
* @param {
|
|
437
|
+
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
438
438
|
* @param {string} [authorization] Bearer Token
|
|
439
439
|
* @param {*} [options] Override http request option.
|
|
440
440
|
* @throws {RequiredError}
|
|
441
441
|
*/
|
|
442
|
-
updateProductField: function (id,
|
|
442
|
+
updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
|
|
443
443
|
if (options === void 0) { options = {}; }
|
|
444
444
|
return __awaiter(_this, void 0, void 0, function () {
|
|
445
445
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -448,8 +448,8 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
448
448
|
case 0:
|
|
449
449
|
// verify required parameter 'id' is not null or undefined
|
|
450
450
|
(0, common_1.assertParamExists)('updateProductField', 'id', id);
|
|
451
|
-
// verify required parameter '
|
|
452
|
-
(0, common_1.assertParamExists)('updateProductField', '
|
|
451
|
+
// verify required parameter 'updateProductFieldRequestDto' is not null or undefined
|
|
452
|
+
(0, common_1.assertParamExists)('updateProductField', 'updateProductFieldRequestDto', updateProductFieldRequestDto);
|
|
453
453
|
localVarPath = "/insuranceservice/v1/product-fields/{id}"
|
|
454
454
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
455
455
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -474,7 +474,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
474
474
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
475
475
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
476
476
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
477
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
477
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateProductFieldRequestDto, localVarRequestOptions, configuration);
|
|
478
478
|
return [2 /*return*/, {
|
|
479
479
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
480
480
|
options: localVarRequestOptions,
|
|
@@ -635,17 +635,17 @@ var ProductFieldsApiFp = function (configuration) {
|
|
|
635
635
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
|
|
636
636
|
* @summary Update the product
|
|
637
637
|
* @param {number} id
|
|
638
|
-
* @param {
|
|
638
|
+
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
639
639
|
* @param {string} [authorization] Bearer Token
|
|
640
640
|
* @param {*} [options] Override http request option.
|
|
641
641
|
* @throws {RequiredError}
|
|
642
642
|
*/
|
|
643
|
-
updateProductField: function (id,
|
|
643
|
+
updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
|
|
644
644
|
return __awaiter(this, void 0, void 0, function () {
|
|
645
645
|
var localVarAxiosArgs;
|
|
646
646
|
return __generator(this, function (_a) {
|
|
647
647
|
switch (_a.label) {
|
|
648
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductField(id,
|
|
648
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductField(id, updateProductFieldRequestDto, authorization, options)];
|
|
649
649
|
case 1:
|
|
650
650
|
localVarAxiosArgs = _a.sent();
|
|
651
651
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -745,13 +745,13 @@ var ProductFieldsApiFactory = function (configuration, basePath, axios) {
|
|
|
745
745
|
* Updates the specified product by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
|
|
746
746
|
* @summary Update the product
|
|
747
747
|
* @param {number} id
|
|
748
|
-
* @param {
|
|
748
|
+
* @param {UpdateProductFieldRequestDto} updateProductFieldRequestDto
|
|
749
749
|
* @param {string} [authorization] Bearer Token
|
|
750
750
|
* @param {*} [options] Override http request option.
|
|
751
751
|
* @throws {RequiredError}
|
|
752
752
|
*/
|
|
753
|
-
updateProductField: function (id,
|
|
754
|
-
return localVarFp.updateProductField(id,
|
|
753
|
+
updateProductField: function (id, updateProductFieldRequestDto, authorization, options) {
|
|
754
|
+
return localVarFp.updateProductField(id, updateProductFieldRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
755
755
|
},
|
|
756
756
|
};
|
|
757
757
|
};
|
|
@@ -851,7 +851,7 @@ var ProductFieldsApi = /** @class */ (function (_super) {
|
|
|
851
851
|
*/
|
|
852
852
|
ProductFieldsApi.prototype.updateProductField = function (requestParameters, options) {
|
|
853
853
|
var _this = this;
|
|
854
|
-
return (0, exports.ProductFieldsApiFp)(this.configuration).updateProductField(requestParameters.id, requestParameters.
|
|
854
|
+
return (0, exports.ProductFieldsApiFp)(this.configuration).updateProductField(requestParameters.id, requestParameters.updateProductFieldRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
855
855
|
};
|
|
856
856
|
return ProductFieldsApi;
|
|
857
857
|
}(base_1.BaseAPI));
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
import { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
13
13
|
import { Configuration } from '../configuration';
|
|
14
14
|
import { RequestArgs, BaseAPI } from '../base';
|
|
15
|
+
import { CreateStatusTransitionRuleRequestDto } from '../models';
|
|
15
16
|
import { CreateStatusTransitionRuleResponseClass } from '../models';
|
|
16
17
|
import { DeleteResponseClass } from '../models';
|
|
17
18
|
import { GetStatusTransitionRuleResponseClass } from '../models';
|
|
18
19
|
import { ListStatusTransitionRulesResponseClass } from '../models';
|
|
19
20
|
import { PatchStatusTransitionRuleRequestDto } from '../models';
|
|
20
21
|
import { PatchStatusTransitionRuleResponseClass } from '../models';
|
|
21
|
-
import {
|
|
22
|
-
import { RestUpdateStatusTransitionRuleRequestDto } from '../models';
|
|
22
|
+
import { UpdateStatusTransitionRuleRequestDto } from '../models';
|
|
23
23
|
import { UpdateStatusTransitionRuleResponseClass } from '../models';
|
|
24
24
|
/**
|
|
25
25
|
* StatusTransitionRulesApi - axios parameter creator
|
|
@@ -29,12 +29,12 @@ export declare const StatusTransitionRulesApiAxiosParamCreator: (configuration?:
|
|
|
29
29
|
/**
|
|
30
30
|
* This will create a status transition rule. Status transition rules allow or deny a transition from one status to another based on custom conditions. **Required Permissions** \"policy-management.products.create\"
|
|
31
31
|
* @summary Create the status transition rule
|
|
32
|
-
* @param {
|
|
32
|
+
* @param {CreateStatusTransitionRuleRequestDto} createStatusTransitionRuleRequestDto
|
|
33
33
|
* @param {string} [authorization] Bearer Token
|
|
34
34
|
* @param {*} [options] Override http request option.
|
|
35
35
|
* @throws {RequiredError}
|
|
36
36
|
*/
|
|
37
|
-
createStatusTransitionRule: (
|
|
37
|
+
createStatusTransitionRule: (createStatusTransitionRuleRequestDto: CreateStatusTransitionRuleRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
38
38
|
/**
|
|
39
39
|
* Permanently deletes the status transition rule. Supply the unique code that was returned when you created the status transition rule and this will delete it. **Required Permissions** \"policy-management.products.delete\"
|
|
40
40
|
* @summary Delete the status transition rule
|
|
@@ -83,12 +83,12 @@ export declare const StatusTransitionRulesApiAxiosParamCreator: (configuration?:
|
|
|
83
83
|
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
|
|
84
84
|
* @summary Update the status transition rule
|
|
85
85
|
* @param {string} code Unique identifier for the object.
|
|
86
|
-
* @param {
|
|
86
|
+
* @param {UpdateStatusTransitionRuleRequestDto} updateStatusTransitionRuleRequestDto
|
|
87
87
|
* @param {string} [authorization] Bearer Token
|
|
88
88
|
* @param {*} [options] Override http request option.
|
|
89
89
|
* @throws {RequiredError}
|
|
90
90
|
*/
|
|
91
|
-
updateStatusTransitionRule: (code: string,
|
|
91
|
+
updateStatusTransitionRule: (code: string, updateStatusTransitionRuleRequestDto: UpdateStatusTransitionRuleRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
92
92
|
};
|
|
93
93
|
/**
|
|
94
94
|
* StatusTransitionRulesApi - functional programming interface
|
|
@@ -98,12 +98,12 @@ export declare const StatusTransitionRulesApiFp: (configuration?: Configuration)
|
|
|
98
98
|
/**
|
|
99
99
|
* This will create a status transition rule. Status transition rules allow or deny a transition from one status to another based on custom conditions. **Required Permissions** \"policy-management.products.create\"
|
|
100
100
|
* @summary Create the status transition rule
|
|
101
|
-
* @param {
|
|
101
|
+
* @param {CreateStatusTransitionRuleRequestDto} createStatusTransitionRuleRequestDto
|
|
102
102
|
* @param {string} [authorization] Bearer Token
|
|
103
103
|
* @param {*} [options] Override http request option.
|
|
104
104
|
* @throws {RequiredError}
|
|
105
105
|
*/
|
|
106
|
-
createStatusTransitionRule(
|
|
106
|
+
createStatusTransitionRule(createStatusTransitionRuleRequestDto: CreateStatusTransitionRuleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreateStatusTransitionRuleResponseClass>>;
|
|
107
107
|
/**
|
|
108
108
|
* Permanently deletes the status transition rule. Supply the unique code that was returned when you created the status transition rule and this will delete it. **Required Permissions** \"policy-management.products.delete\"
|
|
109
109
|
* @summary Delete the status transition rule
|
|
@@ -152,12 +152,12 @@ export declare const StatusTransitionRulesApiFp: (configuration?: Configuration)
|
|
|
152
152
|
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
|
|
153
153
|
* @summary Update the status transition rule
|
|
154
154
|
* @param {string} code Unique identifier for the object.
|
|
155
|
-
* @param {
|
|
155
|
+
* @param {UpdateStatusTransitionRuleRequestDto} updateStatusTransitionRuleRequestDto
|
|
156
156
|
* @param {string} [authorization] Bearer Token
|
|
157
157
|
* @param {*} [options] Override http request option.
|
|
158
158
|
* @throws {RequiredError}
|
|
159
159
|
*/
|
|
160
|
-
updateStatusTransitionRule(code: string,
|
|
160
|
+
updateStatusTransitionRule(code: string, updateStatusTransitionRuleRequestDto: UpdateStatusTransitionRuleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateStatusTransitionRuleResponseClass>>;
|
|
161
161
|
};
|
|
162
162
|
/**
|
|
163
163
|
* StatusTransitionRulesApi - factory interface
|
|
@@ -167,12 +167,12 @@ export declare const StatusTransitionRulesApiFactory: (configuration?: Configura
|
|
|
167
167
|
/**
|
|
168
168
|
* This will create a status transition rule. Status transition rules allow or deny a transition from one status to another based on custom conditions. **Required Permissions** \"policy-management.products.create\"
|
|
169
169
|
* @summary Create the status transition rule
|
|
170
|
-
* @param {
|
|
170
|
+
* @param {CreateStatusTransitionRuleRequestDto} createStatusTransitionRuleRequestDto
|
|
171
171
|
* @param {string} [authorization] Bearer Token
|
|
172
172
|
* @param {*} [options] Override http request option.
|
|
173
173
|
* @throws {RequiredError}
|
|
174
174
|
*/
|
|
175
|
-
createStatusTransitionRule(
|
|
175
|
+
createStatusTransitionRule(createStatusTransitionRuleRequestDto: CreateStatusTransitionRuleRequestDto, authorization?: string, options?: any): AxiosPromise<CreateStatusTransitionRuleResponseClass>;
|
|
176
176
|
/**
|
|
177
177
|
* Permanently deletes the status transition rule. Supply the unique code that was returned when you created the status transition rule and this will delete it. **Required Permissions** \"policy-management.products.delete\"
|
|
178
178
|
* @summary Delete the status transition rule
|
|
@@ -221,12 +221,12 @@ export declare const StatusTransitionRulesApiFactory: (configuration?: Configura
|
|
|
221
221
|
* Updates the specified status transition rule by setting the values of the parameters passed. Any parameters not provided will be left unchanged. **Required Permissions** \"policy-management.products.update\"
|
|
222
222
|
* @summary Update the status transition rule
|
|
223
223
|
* @param {string} code Unique identifier for the object.
|
|
224
|
-
* @param {
|
|
224
|
+
* @param {UpdateStatusTransitionRuleRequestDto} updateStatusTransitionRuleRequestDto
|
|
225
225
|
* @param {string} [authorization] Bearer Token
|
|
226
226
|
* @param {*} [options] Override http request option.
|
|
227
227
|
* @throws {RequiredError}
|
|
228
228
|
*/
|
|
229
|
-
updateStatusTransitionRule(code: string,
|
|
229
|
+
updateStatusTransitionRule(code: string, updateStatusTransitionRuleRequestDto: UpdateStatusTransitionRuleRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateStatusTransitionRuleResponseClass>;
|
|
230
230
|
};
|
|
231
231
|
/**
|
|
232
232
|
* Request parameters for createStatusTransitionRule operation in StatusTransitionRulesApi.
|
|
@@ -236,10 +236,10 @@ export declare const StatusTransitionRulesApiFactory: (configuration?: Configura
|
|
|
236
236
|
export interface StatusTransitionRulesApiCreateStatusTransitionRuleRequest {
|
|
237
237
|
/**
|
|
238
238
|
*
|
|
239
|
-
* @type {
|
|
239
|
+
* @type {CreateStatusTransitionRuleRequestDto}
|
|
240
240
|
* @memberof StatusTransitionRulesApiCreateStatusTransitionRule
|
|
241
241
|
*/
|
|
242
|
-
readonly
|
|
242
|
+
readonly createStatusTransitionRuleRequestDto: CreateStatusTransitionRuleRequestDto;
|
|
243
243
|
/**
|
|
244
244
|
* Bearer Token
|
|
245
245
|
* @type {string}
|
|
@@ -385,10 +385,10 @@ export interface StatusTransitionRulesApiUpdateStatusTransitionRuleRequest {
|
|
|
385
385
|
readonly code: string;
|
|
386
386
|
/**
|
|
387
387
|
*
|
|
388
|
-
* @type {
|
|
388
|
+
* @type {UpdateStatusTransitionRuleRequestDto}
|
|
389
389
|
* @memberof StatusTransitionRulesApiUpdateStatusTransitionRule
|
|
390
390
|
*/
|
|
391
|
-
readonly
|
|
391
|
+
readonly updateStatusTransitionRuleRequestDto: UpdateStatusTransitionRuleRequestDto;
|
|
392
392
|
/**
|
|
393
393
|
* Bearer Token
|
|
394
394
|
* @type {string}
|