@emilgroup/insurance-sdk-node 1.76.0 → 1.76.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 +14 -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/create-product-field-request-dto.d.ts +22 -0
- package/dist/models/create-product-field-request-dto.js +9 -1
- package/dist/models/create-product-version-request-dto.d.ts +30 -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-booking-funnel-request-dto.js +15 -0
- 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 +14 -4
- package/dist/models/index.js +14 -4
- package/dist/models/patch-status-transition-rule-request-dto.d.ts +4 -10
- package/dist/models/product-field-class.d.ts +34 -0
- package/dist/models/product-field-class.js +9 -0
- 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/dist/models/shared-product-field-class.d.ts +34 -0
- package/dist/models/shared-product-field-class.js +9 -0
- package/dist/models/update-product-field-request-dto.d.ts +22 -0
- package/dist/models/update-product-field-request-dto.js +9 -1
- package/models/create-draft-policy-request-dto.ts +6 -0
- package/models/create-product-field-request-dto.ts +24 -0
- package/models/create-product-version-request-dto.ts +36 -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 +14 -4
- package/models/patch-status-transition-rule-request-dto.ts +4 -10
- package/models/product-field-class.ts +38 -0
- 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/models/shared-product-field-class.ts +38 -0
- package/models/update-product-field-request-dto.ts +24 -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 → create-product-version-request-dto.js} +0 -0
- /package/dist/models/{update-booking-funnel-request-dto.js → grpc-patch-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 { SuspendPolicyRequestDto } from '../models';
|
|
29
29
|
import { SuspendPolicyResponseClass } from '../models';
|
|
30
30
|
import { TerminatePolicyRequestDto } from '../models';
|
|
@@ -51,12 +51,12 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
51
51
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
52
52
|
* @summary Create the draft-policy
|
|
53
53
|
* @param {string} policyCode Unique identifier for the object.
|
|
54
|
-
* @param {
|
|
54
|
+
* @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
55
55
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
56
56
|
* @param {*} [options] Override http request option.
|
|
57
57
|
* @throws {RequiredError}
|
|
58
58
|
*/
|
|
59
|
-
createDraftPolicy: (policyCode: string,
|
|
59
|
+
createDraftPolicy: (policyCode: string, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
60
60
|
/**
|
|
61
61
|
* 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\"
|
|
62
62
|
* @summary Create the policy
|
|
@@ -156,12 +156,12 @@ export declare const PoliciesApiAxiosParamCreator: (configuration?: Configuratio
|
|
|
156
156
|
* 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\"
|
|
157
157
|
* @summary Update the draft-policy
|
|
158
158
|
* @param {string} policyCode Unique identifier for the object.
|
|
159
|
-
* @param {
|
|
159
|
+
* @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
160
160
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
161
161
|
* @param {*} [options] Override http request option.
|
|
162
162
|
* @throws {RequiredError}
|
|
163
163
|
*/
|
|
164
|
-
patchDraftPolicy: (policyCode: string,
|
|
164
|
+
patchDraftPolicy: (policyCode: string, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
165
165
|
/**
|
|
166
166
|
* 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\"
|
|
167
167
|
* @summary Update the policy
|
|
@@ -232,12 +232,12 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
232
232
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
233
233
|
* @summary Create the draft-policy
|
|
234
234
|
* @param {string} policyCode Unique identifier for the object.
|
|
235
|
-
* @param {
|
|
235
|
+
* @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
236
236
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
237
237
|
* @param {*} [options] Override http request option.
|
|
238
238
|
* @throws {RequiredError}
|
|
239
239
|
*/
|
|
240
|
-
createDraftPolicy(policyCode: string,
|
|
240
|
+
createDraftPolicy(policyCode: string, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CreatePolicyResponseClass>>;
|
|
241
241
|
/**
|
|
242
242
|
* 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\"
|
|
243
243
|
* @summary Create the policy
|
|
@@ -337,12 +337,12 @@ export declare const PoliciesApiFp: (configuration?: Configuration) => {
|
|
|
337
337
|
* 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\"
|
|
338
338
|
* @summary Update the draft-policy
|
|
339
339
|
* @param {string} policyCode Unique identifier for the object.
|
|
340
|
-
* @param {
|
|
340
|
+
* @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
341
341
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
342
342
|
* @param {*} [options] Override http request option.
|
|
343
343
|
* @throws {RequiredError}
|
|
344
344
|
*/
|
|
345
|
-
patchDraftPolicy(policyCode: string,
|
|
345
|
+
patchDraftPolicy(policyCode: string, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PatchPolicyResponseClass>>;
|
|
346
346
|
/**
|
|
347
347
|
* 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\"
|
|
348
348
|
* @summary Update the policy
|
|
@@ -413,12 +413,12 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
413
413
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
414
414
|
* @summary Create the draft-policy
|
|
415
415
|
* @param {string} policyCode Unique identifier for the object.
|
|
416
|
-
* @param {
|
|
416
|
+
* @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
417
417
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
418
418
|
* @param {*} [options] Override http request option.
|
|
419
419
|
* @throws {RequiredError}
|
|
420
420
|
*/
|
|
421
|
-
createDraftPolicy(policyCode: string,
|
|
421
|
+
createDraftPolicy(policyCode: string, restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<CreatePolicyResponseClass>;
|
|
422
422
|
/**
|
|
423
423
|
* 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\"
|
|
424
424
|
* @summary Create the policy
|
|
@@ -518,12 +518,12 @@ export declare const PoliciesApiFactory: (configuration?: Configuration, basePat
|
|
|
518
518
|
* 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\"
|
|
519
519
|
* @summary Update the draft-policy
|
|
520
520
|
* @param {string} policyCode Unique identifier for the object.
|
|
521
|
-
* @param {
|
|
521
|
+
* @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
522
522
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
523
523
|
* @param {*} [options] Override http request option.
|
|
524
524
|
* @throws {RequiredError}
|
|
525
525
|
*/
|
|
526
|
-
patchDraftPolicy(policyCode: string,
|
|
526
|
+
patchDraftPolicy(policyCode: string, restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto, authorization?: string, options?: any): AxiosPromise<PatchPolicyResponseClass>;
|
|
527
527
|
/**
|
|
528
528
|
* 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\"
|
|
529
529
|
* @summary Update the policy
|
|
@@ -614,10 +614,10 @@ export interface PoliciesApiCreateDraftPolicyRequest {
|
|
|
614
614
|
readonly policyCode: string;
|
|
615
615
|
/**
|
|
616
616
|
*
|
|
617
|
-
* @type {
|
|
617
|
+
* @type {RestCreateDraftPolicyRequestDto}
|
|
618
618
|
* @memberof PoliciesApiCreateDraftPolicy
|
|
619
619
|
*/
|
|
620
|
-
readonly
|
|
620
|
+
readonly restCreateDraftPolicyRequestDto: RestCreateDraftPolicyRequestDto;
|
|
621
621
|
/**
|
|
622
622
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
623
623
|
* @type {string}
|
|
@@ -929,10 +929,10 @@ export interface PoliciesApiPatchDraftPolicyRequest {
|
|
|
929
929
|
readonly policyCode: string;
|
|
930
930
|
/**
|
|
931
931
|
*
|
|
932
|
-
* @type {
|
|
932
|
+
* @type {RestPatchDraftPolicyRequestDto}
|
|
933
933
|
* @memberof PoliciesApiPatchDraftPolicy
|
|
934
934
|
*/
|
|
935
|
-
readonly
|
|
935
|
+
readonly restPatchDraftPolicyRequestDto: RestPatchDraftPolicyRequestDto;
|
|
936
936
|
/**
|
|
937
937
|
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
938
938
|
* @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,
|
|
@@ -1033,17 +1033,17 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1033
1033
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
1034
1034
|
* @summary Create the draft-policy
|
|
1035
1035
|
* @param {string} policyCode Unique identifier for the object.
|
|
1036
|
-
* @param {
|
|
1036
|
+
* @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
1037
1037
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1038
1038
|
* @param {*} [options] Override http request option.
|
|
1039
1039
|
* @throws {RequiredError}
|
|
1040
1040
|
*/
|
|
1041
|
-
createDraftPolicy: function (policyCode,
|
|
1041
|
+
createDraftPolicy: function (policyCode, restCreateDraftPolicyRequestDto, authorization, options) {
|
|
1042
1042
|
return __awaiter(this, void 0, void 0, function () {
|
|
1043
1043
|
var localVarAxiosArgs;
|
|
1044
1044
|
return __generator(this, function (_a) {
|
|
1045
1045
|
switch (_a.label) {
|
|
1046
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDraftPolicy(policyCode,
|
|
1046
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.createDraftPolicy(policyCode, restCreateDraftPolicyRequestDto, authorization, options)];
|
|
1047
1047
|
case 1:
|
|
1048
1048
|
localVarAxiosArgs = _a.sent();
|
|
1049
1049
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1246,17 +1246,17 @@ var PoliciesApiFp = function (configuration) {
|
|
|
1246
1246
|
* 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\"
|
|
1247
1247
|
* @summary Update the draft-policy
|
|
1248
1248
|
* @param {string} policyCode Unique identifier for the object.
|
|
1249
|
-
* @param {
|
|
1249
|
+
* @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
1250
1250
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1251
1251
|
* @param {*} [options] Override http request option.
|
|
1252
1252
|
* @throws {RequiredError}
|
|
1253
1253
|
*/
|
|
1254
|
-
patchDraftPolicy: function (policyCode,
|
|
1254
|
+
patchDraftPolicy: function (policyCode, restPatchDraftPolicyRequestDto, authorization, options) {
|
|
1255
1255
|
return __awaiter(this, void 0, void 0, function () {
|
|
1256
1256
|
var localVarAxiosArgs;
|
|
1257
1257
|
return __generator(this, function (_a) {
|
|
1258
1258
|
switch (_a.label) {
|
|
1259
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchDraftPolicy(policyCode,
|
|
1259
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.patchDraftPolicy(policyCode, restPatchDraftPolicyRequestDto, authorization, options)];
|
|
1260
1260
|
case 1:
|
|
1261
1261
|
localVarAxiosArgs = _a.sent();
|
|
1262
1262
|
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -1400,13 +1400,13 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1400
1400
|
* This will create a draft policy in the database. **Required Permissions** \"policy-management.policies.create\"
|
|
1401
1401
|
* @summary Create the draft-policy
|
|
1402
1402
|
* @param {string} policyCode Unique identifier for the object.
|
|
1403
|
-
* @param {
|
|
1403
|
+
* @param {RestCreateDraftPolicyRequestDto} restCreateDraftPolicyRequestDto
|
|
1404
1404
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1405
1405
|
* @param {*} [options] Override http request option.
|
|
1406
1406
|
* @throws {RequiredError}
|
|
1407
1407
|
*/
|
|
1408
|
-
createDraftPolicy: function (policyCode,
|
|
1409
|
-
return localVarFp.createDraftPolicy(policyCode,
|
|
1408
|
+
createDraftPolicy: function (policyCode, restCreateDraftPolicyRequestDto, authorization, options) {
|
|
1409
|
+
return localVarFp.createDraftPolicy(policyCode, restCreateDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1410
1410
|
},
|
|
1411
1411
|
/**
|
|
1412
1412
|
* 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\"
|
|
@@ -1523,13 +1523,13 @@ var PoliciesApiFactory = function (configuration, basePath, axios) {
|
|
|
1523
1523
|
* 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\"
|
|
1524
1524
|
* @summary Update the draft-policy
|
|
1525
1525
|
* @param {string} policyCode Unique identifier for the object.
|
|
1526
|
-
* @param {
|
|
1526
|
+
* @param {RestPatchDraftPolicyRequestDto} restPatchDraftPolicyRequestDto
|
|
1527
1527
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
1528
1528
|
* @param {*} [options] Override http request option.
|
|
1529
1529
|
* @throws {RequiredError}
|
|
1530
1530
|
*/
|
|
1531
|
-
patchDraftPolicy: function (policyCode,
|
|
1532
|
-
return localVarFp.patchDraftPolicy(policyCode,
|
|
1531
|
+
patchDraftPolicy: function (policyCode, restPatchDraftPolicyRequestDto, authorization, options) {
|
|
1532
|
+
return localVarFp.patchDraftPolicy(policyCode, restPatchDraftPolicyRequestDto, authorization, options).then(function (request) { return request(axios, basePath); });
|
|
1533
1533
|
},
|
|
1534
1534
|
/**
|
|
1535
1535
|
* 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\"
|
|
@@ -1627,7 +1627,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1627
1627
|
*/
|
|
1628
1628
|
PoliciesApi.prototype.createDraftPolicy = function (requestParameters, options) {
|
|
1629
1629
|
var _this = this;
|
|
1630
|
-
return (0, exports.PoliciesApiFp)(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.
|
|
1630
|
+
return (0, exports.PoliciesApiFp)(this.configuration).createDraftPolicy(requestParameters.policyCode, requestParameters.restCreateDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1631
1631
|
};
|
|
1632
1632
|
/**
|
|
1633
1633
|
* 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\"
|
|
@@ -1737,7 +1737,7 @@ var PoliciesApi = /** @class */ (function (_super) {
|
|
|
1737
1737
|
*/
|
|
1738
1738
|
PoliciesApi.prototype.patchDraftPolicy = function (requestParameters, options) {
|
|
1739
1739
|
var _this = this;
|
|
1740
|
-
return (0, exports.PoliciesApiFp)(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.
|
|
1740
|
+
return (0, exports.PoliciesApiFp)(this.configuration).patchDraftPolicy(requestParameters.policyCode, requestParameters.restPatchDraftPolicyRequestDto, requestParameters.authorization, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1741
1741
|
};
|
|
1742
1742
|
/**
|
|
1743
1743
|
* 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}
|