@emilgroup/insurance-sdk-node 1.78.0 → 1.78.1-beta.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 +13 -4
- 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 +6 -0
- package/dist/models/{patch-booking-funnel-request-dto.d.ts → grpc-patch-booking-funnel-request-dto.d.ts} +10 -10
- package/dist/models/grpc-patch-draft-policy-request-dto.d.ts +76 -0
- package/dist/models/{patch-draft-policy-request-dto.js → grpc-patch-draft-policy-request-dto.js} +2 -2
- package/dist/models/grpc-patch-status-transition-rule-request-dto.d.ts +53 -0
- package/dist/models/{update-status-transition-rule-request-dto.js → grpc-patch-status-transition-rule-request-dto.js} +2 -2
- package/dist/models/{update-booking-funnel-request-dto.d.ts → grpc-update-booking-funnel-request-dto.d.ts} +10 -10
- package/dist/models/grpc-update-status-transition-rule-request-dto.d.ts +53 -0
- package/dist/models/grpc-update-status-transition-rule-request-dto.js +20 -0
- package/dist/models/index.d.ts +13 -4
- package/dist/models/index.js +13 -4
- package/dist/models/patch-status-transition-rule-request-dto.d.ts +4 -10
- package/dist/models/rest-create-draft-policy-request-dto.d.ts +70 -0
- package/dist/models/rest-create-draft-policy-request-dto.js +23 -0
- package/dist/models/rest-create-status-transition-rule-request-dto.d.ts +47 -0
- package/dist/models/rest-create-status-transition-rule-request-dto.js +20 -0
- package/dist/models/rest-patch-booking-funnel-request-dto.d.ts +60 -0
- package/dist/models/rest-patch-booking-funnel-request-dto.js +15 -0
- package/dist/models/{patch-draft-policy-request-dto.d.ts → rest-patch-draft-policy-request-dto.d.ts} +12 -12
- package/dist/models/rest-patch-draft-policy-request-dto.js +23 -0
- package/dist/models/rest-update-booking-funnel-request-dto.d.ts +60 -0
- package/dist/models/rest-update-booking-funnel-request-dto.js +15 -0
- package/dist/models/rest-update-product-field-request-dto.d.ts +171 -0
- package/dist/models/rest-update-product-field-request-dto.js +28 -0
- package/dist/models/rest-update-status-transition-rule-request-dto.d.ts +47 -0
- package/dist/models/rest-update-status-transition-rule-request-dto.js +20 -0
- package/dist/models/shared-delete-request-dto.d.ts +24 -0
- package/dist/models/shared-delete-request-dto.js +15 -0
- package/models/create-draft-policy-request-dto.ts +6 -0
- package/models/{patch-booking-funnel-request-dto.ts → grpc-patch-booking-funnel-request-dto.ts} +10 -10
- package/models/grpc-patch-draft-policy-request-dto.ts +85 -0
- package/models/grpc-patch-status-transition-rule-request-dto.ts +62 -0
- package/models/{update-booking-funnel-request-dto.ts → grpc-update-booking-funnel-request-dto.ts} +10 -10
- package/models/{update-status-transition-rule-request-dto.ts → grpc-update-status-transition-rule-request-dto.ts} +10 -10
- package/models/index.ts +13 -4
- package/models/patch-status-transition-rule-request-dto.ts +4 -10
- package/models/rest-create-draft-policy-request-dto.ts +79 -0
- package/models/rest-create-status-transition-rule-request-dto.ts +56 -0
- package/models/rest-patch-booking-funnel-request-dto.ts +66 -0
- package/models/{patch-draft-policy-request-dto.ts → rest-patch-draft-policy-request-dto.ts} +12 -12
- package/models/rest-update-booking-funnel-request-dto.ts +66 -0
- package/models/rest-update-product-field-request-dto.ts +182 -0
- package/models/rest-update-status-transition-rule-request-dto.ts +56 -0
- package/models/shared-delete-request-dto.ts +30 -0
- package/package.json +1 -1
- package/dist/models/update-status-transition-rule-request-dto.d.ts +0 -53
- /package/dist/models/{patch-booking-funnel-request-dto.js → grpc-patch-booking-funnel-request-dto.js} +0 -0
- /package/dist/models/{update-booking-funnel-request-dto.js → grpc-update-booking-funnel-request-dto.js} +0 -0
|
@@ -14,7 +14,6 @@ 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';
|
|
18
17
|
import { CreatePolicyRequestDto } from '../models';
|
|
19
18
|
import { CreatePolicyResponseClass } from '../models';
|
|
20
19
|
import { DeleteResponseClass } from '../models';
|
|
@@ -22,9 +21,10 @@ import { GetPolicyResponseClass } from '../models';
|
|
|
22
21
|
import { ListPoliciesResponseClass } from '../models';
|
|
23
22
|
import { ListPolicyObjectsResponseClass } from '../models';
|
|
24
23
|
import { ListPolicyVersionResponseClass } from '../models';
|
|
25
|
-
import { PatchDraftPolicyRequestDto } from '../models';
|
|
26
24
|
import { PatchPolicyRequestDto } from '../models';
|
|
27
25
|
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 {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
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, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, 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 {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
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, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, 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 {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
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, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, 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 {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
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, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, 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 {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
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, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, 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 {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
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, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, 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 {RestCreateDraftPolicyRequestDto}
|
|
650
650
|
* @memberof PoliciesApiCreateDraftPolicy
|
|
651
651
|
*/
|
|
652
|
-
readonly
|
|
652
|
+
readonly restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto;
|
|
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 {RestPatchDraftPolicyRequestDto}
|
|
965
965
|
* @memberof PoliciesApiPatchDraftPolicy
|
|
966
966
|
*/
|
|
967
|
-
readonly
|
|
967
|
+
readonly restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto;
|
|
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
|
@@ -153,12 +153,12 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
153
153
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
154
154
|
* @summary Create the draft-policy
|
|
155
155
|
* @param {string} policyCode Unique identifier for the object.
|
|
156
|
-
* @param {
|
|
156
|
+
* @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
157
157
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
158
158
|
* @param {*} [options] Override http request option.
|
|
159
159
|
* @throws {RequiredError}
|
|
160
160
|
*/
|
|
161
|
-
createDraftPolicy: function (policyCode,
|
|
161
|
+
createDraftPolicy: function (policyCode, restCreateDraftPolicyRequestDto, authorization, options) {
|
|
162
162
|
if (options === void 0) { options = {}; }
|
|
163
163
|
return __awaiter(_this, void 0, void 0, function () {
|
|
164
164
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -167,8 +167,8 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
167
167
|
case 0:
|
|
168
168
|
// verify required parameter 'policyCode' is not null or undefined
|
|
169
169
|
(0, common_1.assertParamExists)('createDraftPolicy', 'policyCode', policyCode);
|
|
170
|
-
// verify required parameter '
|
|
171
|
-
(0, common_1.assertParamExists)('createDraftPolicy', '
|
|
170
|
+
// verify required parameter 'restCreateDraftPolicyRequestDto' is not null or undefined
|
|
171
|
+
(0, common_1.assertParamExists)('createDraftPolicy', 'restCreateDraftPolicyRequestDto', restCreateDraftPolicyRequestDto);
|
|
172
172
|
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
173
173
|
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
174
174
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -193,7 +193,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
193
193
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
194
194
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
195
195
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
196
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
196
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(restCreateDraftPolicyRequestDto, localVarRequestOptions, configuration);
|
|
197
197
|
return [2 /*return*/, {
|
|
198
198
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
199
199
|
options: localVarRequestOptions,
|
|
@@ -683,12 +683,12 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
683
683
|
* 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\"
|
|
684
684
|
* @summary Update the draft-policy
|
|
685
685
|
* @param {string} policyCode Unique identifier for the object.
|
|
686
|
-
* @param {
|
|
686
|
+
* @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
687
687
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
688
688
|
* @param {*} [options] Override http request option.
|
|
689
689
|
* @throws {RequiredError}
|
|
690
690
|
*/
|
|
691
|
-
patchDraftPolicy: function (policyCode,
|
|
691
|
+
patchDraftPolicy: function (policyCode, restPatchDraftPolicyRequestDto, authorization, options) {
|
|
692
692
|
if (options === void 0) { options = {}; }
|
|
693
693
|
return __awaiter(_this, void 0, void 0, function () {
|
|
694
694
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -697,8 +697,8 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
697
697
|
case 0:
|
|
698
698
|
// verify required parameter 'policyCode' is not null or undefined
|
|
699
699
|
(0, common_1.assertParamExists)('patchDraftPolicy', 'policyCode', policyCode);
|
|
700
|
-
// verify required parameter '
|
|
701
|
-
(0, common_1.assertParamExists)('patchDraftPolicy', '
|
|
700
|
+
// verify required parameter 'restPatchDraftPolicyRequestDto' is not null or undefined
|
|
701
|
+
(0, common_1.assertParamExists)('patchDraftPolicy', 'restPatchDraftPolicyRequestDto', restPatchDraftPolicyRequestDto);
|
|
702
702
|
localVarPath = "/insuranceservice/v1/policies/{policyCode}/draft"
|
|
703
703
|
.replace("{".concat("policyCode", "}"), encodeURIComponent(String(policyCode)));
|
|
704
704
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -723,7 +723,7 @@ var PoliciesApiAxiosParamCreator = function (configuration) {
|
|
|
723
723
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
724
724
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
725
725
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
726
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
726
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(restPatchDraftPolicyRequestDto, localVarRequestOptions, configuration);
|
|
727
727
|
return [2 /*return*/, {
|
|
728
728
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
729
729
|
options: localVarRequestOptions,
|
|
@@ -1086,17 +1086,17 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1086
1086
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
1087
1087
|
* @summary Create the draft-policy
|
|
1088
1088
|
* @param {string} policyCode Unique identifier for the object.
|
|
1089
|
-
* @param {
|
|
1089
|
+
* @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
1090
1090
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1091
1091
|
* @param {*} [options] Override http request option.
|
|
1092
1092
|
* @throws {RequiredError}
|
|
1093
1093
|
*/
|
|
1094
|
-
createDraftPolicy: function (policyCode,
|
|
1094
|
+
createDraftPolicy: function (policyCode, restCreateDraftPolicyRequestDto, authorization, options) {
|
|
1095
1095
|
return __awaiter(this, void 0, void 0, function () {
|
|
1096
1096
|
var localVarAxiosArgs;
|
|
1097
1097
|
return __generator(this, function (_a) {
|
|
1098
1098
|
switch (_a.label) {
|
|
1099
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDraftPolicy(policyCode,
|
|
1099
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDraftPolicy(policyCode, restCreateDraftPolicyRequestDto, authorization, options)];
|
|
1100
1100
|
case 1:
|
|
1101
1101
|
localVarAxiosArgs = _a.sent();
|
|
1102
1102
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1299,17 +1299,17 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1299
1299
|
* 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\"
|
|
1300
1300
|
* @summary Update the draft-policy
|
|
1301
1301
|
* @param {string} policyCode Unique identifier for the object.
|
|
1302
|
-
* @param {
|
|
1302
|
+
* @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
1303
1303
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1304
1304
|
* @param {*} [options] Override http request option.
|
|
1305
1305
|
* @throws {RequiredError}
|
|
1306
1306
|
*/
|
|
1307
|
-
patchDraftPolicy: function (policyCode,
|
|
1307
|
+
patchDraftPolicy: function (policyCode, restPatchDraftPolicyRequestDto, authorization, options) {
|
|
1308
1308
|
return __awaiter(this, void 0, void 0, function () {
|
|
1309
1309
|
var localVarAxiosArgs;
|
|
1310
1310
|
return __generator(this, function (_a) {
|
|
1311
1311
|
switch (_a.label) {
|
|
1312
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchDraftPolicy(policyCode,
|
|
1312
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchDraftPolicy(policyCode, restPatchDraftPolicyRequestDto, authorization, options)];
|
|
1313
1313
|
case 1:
|
|
1314
1314
|
localVarAxiosArgs = _a.sent();
|
|
1315
1315
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1475,13 +1475,13 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1475
1475
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
1476
1476
|
* @summary Create the draft-policy
|
|
1477
1477
|
* @param {string} policyCode Unique identifier for the object.
|
|
1478
|
-
* @param {
|
|
1478
|
+
* @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
1479
1479
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1480
1480
|
* @param {*} [options] Override http request option.
|
|
1481
1481
|
* @throws {RequiredError}
|
|
1482
1482
|
*/
|
|
1483
|
-
createDraftPolicy: function (policyCode,
|
|
1484
|
-
return localVarFp.createDraftPolicy(policyCode,
|
|
1483
|
+
createDraftPolicy: function (policyCode, restCreateDraftPolicyRequestDto, authorization, options) {
|
|
1484
|
+
return localVarFp.createDraftPolicy(policyCode, restCreateDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1485
1485
|
},
|
|
1486
1486
|
/**
|
|
1487
1487
|
* 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\"
|
|
@@ -1598,13 +1598,13 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1598
1598
|
* 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\"
|
|
1599
1599
|
* @summary Update the draft-policy
|
|
1600
1600
|
* @param {string} policyCode Unique identifier for the object.
|
|
1601
|
-
* @param {
|
|
1601
|
+
* @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
1602
1602
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1603
1603
|
* @param {*} [options] Override http request option.
|
|
1604
1604
|
* @throws {RequiredError}
|
|
1605
1605
|
*/
|
|
1606
|
-
patchDraftPolicy: function (policyCode,
|
|
1607
|
-
return localVarFp.patchDraftPolicy(policyCode,
|
|
1606
|
+
patchDraftPolicy: function (policyCode, restPatchDraftPolicyRequestDto, authorization, options) {
|
|
1607
|
+
return localVarFp.patchDraftPolicy(policyCode, restPatchDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1608
1608
|
},
|
|
1609
1609
|
/**
|
|
1610
1610
|
* 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\"
|
|
@@ -1714,7 +1714,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1714
1714
|
*/
|
|
1715
1715
|
PoliciesApi.prototype.createDraftPolicy = function (requestParameters, options) {
|
|
1716
1716
|
var _this = this;
|
|
1717
|
-
return (0, exports.PoliciesApiFp)(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.
|
|
1717
|
+
return (0, exports.PoliciesApiFp)(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.restCreateDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1718
1718
|
};
|
|
1719
1719
|
/**
|
|
1720
1720
|
* 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\"
|
|
@@ -1824,7 +1824,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1824
1824
|
*/
|
|
1825
1825
|
PoliciesApi.prototype.patchDraftPolicy = function (requestParameters, options) {
|
|
1826
1826
|
var _this = this;
|
|
1827
|
-
return (0, exports.PoliciesApiFp)(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.
|
|
1827
|
+
return (0, exports.PoliciesApiFp)(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.restPatchDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1828
1828
|
};
|
|
1829
1829
|
/**
|
|
1830
1830
|
* 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';
|
|
22
23
|
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 {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
|
|
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, restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto, 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 {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
|
|
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, restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto, 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 {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
|
|
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, restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto, 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 {RestUpdateProductFieldRequestDto}
|
|
472
472
|
* @memberof ProductFieldsApiUpdateProductField
|
|
473
473
|
*/
|
|
474
|
-
readonly
|
|
474
|
+
readonly restUpdateProductFieldRequestDto: RestUpdateProductFieldRequestDto;
|
|
475
475
|
/**
|
|
476
476
|
* Bearer Token
|
|
477
477
|
* @type {string}
|
|
@@ -438,12 +438,12 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
438
438
|
* 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\"
|
|
439
439
|
* @summary Update the product
|
|
440
440
|
* @param {number} id
|
|
441
|
-
* @param {
|
|
441
|
+
* @param {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
|
|
442
442
|
* @param {string} [authorization] Bearer Token
|
|
443
443
|
* @param {*} [options] Override http request option.
|
|
444
444
|
* @throws {RequiredError}
|
|
445
445
|
*/
|
|
446
|
-
updateProductField: function (id,
|
|
446
|
+
updateProductField: function (id, restUpdateProductFieldRequestDto, authorization, options) {
|
|
447
447
|
if (options === void 0) { options = {}; }
|
|
448
448
|
return __awaiter(_this, void 0, void 0, function () {
|
|
449
449
|
var localVarPath, localVarUrlObj, baseOptions, baseAccessToken, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -452,8 +452,8 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
452
452
|
case 0:
|
|
453
453
|
// verify required parameter 'id' is not null or undefined
|
|
454
454
|
(0, common_1.assertParamExists)('updateProductField', 'id', id);
|
|
455
|
-
// verify required parameter '
|
|
456
|
-
(0, common_1.assertParamExists)('updateProductField', '
|
|
455
|
+
// verify required parameter 'restUpdateProductFieldRequestDto' is not null or undefined
|
|
456
|
+
(0, common_1.assertParamExists)('updateProductField', 'restUpdateProductFieldRequestDto', restUpdateProductFieldRequestDto);
|
|
457
457
|
localVarPath = "/insuranceservice/v1/product-fields/{id}"
|
|
458
458
|
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
459
459
|
localVarUrlObj = new url_1.URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -478,7 +478,7 @@ var ProductFieldsApiAxiosParamCreator = function (configuration) {
|
|
|
478
478
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
479
479
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
480
480
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
481
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
481
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(restUpdateProductFieldRequestDto, localVarRequestOptions, configuration);
|
|
482
482
|
return [2 /*return*/, {
|
|
483
483
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
484
484
|
options: localVarRequestOptions,
|
|
@@ -639,17 +639,17 @@ var ProductFieldsApiFp = function (configuration) {
|
|
|
639
639
|
* 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\"
|
|
640
640
|
* @summary Update the product
|
|
641
641
|
* @param {number} id
|
|
642
|
-
* @param {
|
|
642
|
+
* @param {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
|
|
643
643
|
* @param {string} [authorization] Bearer Token
|
|
644
644
|
* @param {*} [options] Override http request option.
|
|
645
645
|
* @throws {RequiredError}
|
|
646
646
|
*/
|
|
647
|
-
updateProductField: function (id,
|
|
647
|
+
updateProductField: function (id, restUpdateProductFieldRequestDto, authorization, options) {
|
|
648
648
|
return __awaiter(this, void 0, void 0, function () {
|
|
649
649
|
var localVarAxiosArgs;
|
|
650
650
|
return __generator(this, function (_a) {
|
|
651
651
|
switch (_a.label) {
|
|
652
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductField(id,
|
|
652
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.updateProductField(id, restUpdateProductFieldRequestDto, authorization, options)];
|
|
653
653
|
case 1:
|
|
654
654
|
localVarAxiosArgs = _a.sent();
|
|
655
655
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -749,13 +749,13 @@ var ProductFieldsApiFactory = function (configuration, basePath, axios) {
|
|
|
749
749
|
* 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\"
|
|
750
750
|
* @summary Update the product
|
|
751
751
|
* @param {number} id
|
|
752
|
-
* @param {
|
|
752
|
+
* @param {RestUpdateProductFieldRequestDto} restUpdateProductFieldRequestDto
|
|
753
753
|
* @param {string} [authorization] Bearer Token
|
|
754
754
|
* @param {*} [options] Override http request option.
|
|
755
755
|
* @throws {RequiredError}
|
|
756
756
|
*/
|
|
757
|
-
updateProductField: function (id,
|
|
758
|
-
return localVarFp.updateProductField(id,
|
|
757
|
+
updateProductField: function (id, restUpdateProductFieldRequestDto, authorization, options) {
|
|
758
|
+
return localVarFp.updateProductField(id, restUpdateProductFieldRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
759
759
|
},
|
|
760
760
|
};
|
|
761
761
|
};
|
|
@@ -855,7 +855,7 @@ var ProductFieldsApi = /** @class */ (function (_super) {
|
|
|
855
855
|
*/
|
|
856
856
|
ProductFieldsApi.prototype.updateProductField = function (requestParameters, options) {
|
|
857
857
|
var _this = this;
|
|
858
|
-
return (0, exports.ProductFieldsApiFp)(this.configuration).updateProductField(requestParameters.id, requestParameters.
|
|
858
|
+
return (0, exports.ProductFieldsApiFp)(this.configuration).updateProductField(requestParameters.id, requestParameters.restUpdateProductFieldRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
859
859
|
};
|
|
860
860
|
return ProductFieldsApi;
|
|
861
861
|
}(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';
|
|
16
15
|
import { CreateStatusTransitionRuleResponseClass } from '../models';
|
|
17
16
|
import { DeleteResponseClass } from '../models';
|
|
18
17
|
import { GetStatusTransitionRuleResponseClass } from '../models';
|
|
19
18
|
import { ListStatusTransitionRulesResponseClass } from '../models';
|
|
20
19
|
import { PatchStatusTransitionRuleRequestDto } from '../models';
|
|
21
20
|
import { PatchStatusTransitionRuleResponseClass } from '../models';
|
|
22
|
-
import {
|
|
21
|
+
import { RestCreateStatusTransitionRuleRequestDto } from '../models';
|
|
22
|
+
import { RestUpdateStatusTransitionRuleRequestDto } 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 {RestCreateStatusTransitionRuleRequestDto} restCreateStatusTransitionRuleRequestDto
|
|
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: (restCreateStatusTransitionRuleRequestDto: RestCreateStatusTransitionRuleRequestDto, 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 {RestUpdateStatusTransitionRuleRequestDto} restUpdateStatusTransitionRuleRequestDto
|
|
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, restUpdateStatusTransitionRuleRequestDto: RestUpdateStatusTransitionRuleRequestDto, 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 {RestCreateStatusTransitionRuleRequestDto} restCreateStatusTransitionRuleRequestDto
|
|
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(restCreateStatusTransitionRuleRequestDto: RestCreateStatusTransitionRuleRequestDto, 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 {RestUpdateStatusTransitionRuleRequestDto} restUpdateStatusTransitionRuleRequestDto
|
|
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, restUpdateStatusTransitionRuleRequestDto: RestUpdateStatusTransitionRuleRequestDto, 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 {RestCreateStatusTransitionRuleRequestDto} restCreateStatusTransitionRuleRequestDto
|
|
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(restCreateStatusTransitionRuleRequestDto: RestCreateStatusTransitionRuleRequestDto, 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 {RestUpdateStatusTransitionRuleRequestDto} restUpdateStatusTransitionRuleRequestDto
|
|
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, restUpdateStatusTransitionRuleRequestDto: RestUpdateStatusTransitionRuleRequestDto, 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 {RestCreateStatusTransitionRuleRequestDto}
|
|
240
240
|
* @memberof StatusTransitionRulesApiCreateStatusTransitionRule
|
|
241
241
|
*/
|
|
242
|
-
readonly
|
|
242
|
+
readonly restCreateStatusTransitionRuleRequestDto: RestCreateStatusTransitionRuleRequestDto;
|
|
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 {RestUpdateStatusTransitionRuleRequestDto}
|
|
389
389
|
* @memberof StatusTransitionRulesApiUpdateStatusTransitionRule
|
|
390
390
|
*/
|
|
391
|
-
readonly
|
|
391
|
+
readonly restUpdateStatusTransitionRuleRequestDto: RestUpdateStatusTransitionRuleRequestDto;
|
|
392
392
|
/**
|
|
393
393
|
* Bearer Token
|
|
394
394
|
* @type {string}
|