@emilgroup/validation-rules-sdk 1.0.1-beta.0 → 1.0.1-beta.1
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 +10 -0
- package/README.md +2 -2
- package/api/investigation-blocks-api.ts +226 -20
- package/api/validation-rules-api.ts +447 -12
- package/dist/api/investigation-blocks-api.d.ts +132 -20
- package/dist/api/investigation-blocks-api.js +204 -20
- package/dist/api/validation-rules-api.d.ts +244 -12
- package/dist/api/validation-rules-api.js +383 -9
- package/dist/models/cancel-investigation-block-response-class.d.ts +25 -0
- package/dist/models/cancel-investigation-block-response-class.js +15 -0
- package/dist/models/create-validation-rule-request-dto.d.ts +17 -12
- package/dist/models/create-validation-rule-request-dto.js +5 -1
- package/dist/models/execute-rule-request-dto.d.ts +41 -0
- package/dist/models/execute-rule-request-dto.js +20 -0
- package/dist/models/execute-rule-response-class.d.ts +54 -0
- package/dist/models/execute-rule-response-class.js +20 -0
- package/dist/models/execute-rule-result-class.d.ts +53 -0
- package/dist/models/execute-rule-result-class.js +20 -0
- package/dist/models/execute-rule-with-dry-run-request-dto.d.ts +30 -0
- package/dist/models/execute-rule-with-dry-run-request-dto.js +15 -0
- package/dist/models/execute-rule-with-dry-run-response-class.d.ts +36 -0
- package/dist/models/execute-rule-with-dry-run-response-class.js +15 -0
- package/dist/models/execute-rules-by-type-request-dto.d.ts +35 -0
- package/dist/models/execute-rules-by-type-request-dto.js +20 -0
- package/dist/models/index.d.ts +10 -0
- package/dist/models/index.js +10 -0
- package/dist/models/investigation-block-class.d.ts +25 -2
- package/dist/models/investigation-block-class.js +10 -0
- package/dist/models/resolve-investigation-block-response-class.d.ts +25 -0
- package/dist/models/resolve-investigation-block-response-class.js +15 -0
- package/dist/models/update-investigation-block-request-dto.d.ts +1 -1
- package/dist/models/update-investigation-block-request-dto.js +1 -1
- package/dist/models/update-validation-rule-request-dto.d.ts +88 -0
- package/dist/models/update-validation-rule-request-dto.js +24 -0
- package/dist/models/update-validation-rule-response-class.d.ts +25 -0
- package/dist/models/update-validation-rule-response-class.js +15 -0
- package/dist/models/validation-rule-class.d.ts +16 -5
- package/dist/models/validation-rule-class.js +5 -1
- package/models/cancel-investigation-block-response-class.ts +31 -0
- package/models/create-validation-rule-request-dto.ts +18 -12
- package/models/execute-rule-request-dto.ts +50 -0
- package/models/execute-rule-response-class.ts +63 -0
- package/models/execute-rule-result-class.ts +62 -0
- package/models/execute-rule-with-dry-run-request-dto.ts +36 -0
- package/models/execute-rule-with-dry-run-response-class.ts +42 -0
- package/models/execute-rules-by-type-request-dto.ts +44 -0
- package/models/index.ts +10 -0
- package/models/investigation-block-class.ts +29 -2
- package/models/resolve-investigation-block-response-class.ts +31 -0
- package/models/update-investigation-block-request-dto.ts +1 -1
- package/models/update-validation-rule-request-dto.ts +98 -0
- package/models/update-validation-rule-response-class.ts +31 -0
- package/models/validation-rule-class.ts +17 -5
- package/package.json +1 -1
|
@@ -25,9 +25,23 @@ import { CreateValidationRuleRequestDto } from '../models';
|
|
|
25
25
|
// @ts-ignore
|
|
26
26
|
import { CreateValidationRuleResponseClass } from '../models';
|
|
27
27
|
// @ts-ignore
|
|
28
|
+
import { ExecuteRuleRequestDto } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ExecuteRuleResponseClass } from '../models';
|
|
31
|
+
// @ts-ignore
|
|
32
|
+
import { ExecuteRuleWithDryRunRequestDto } from '../models';
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
import { ExecuteRuleWithDryRunResponseClass } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
36
|
+
import { ExecuteRulesByTypeRequestDto } from '../models';
|
|
37
|
+
// @ts-ignore
|
|
28
38
|
import { GetValidationRuleResponseClass } from '../models';
|
|
29
39
|
// @ts-ignore
|
|
30
40
|
import { ListValidationRulesResponseClass } from '../models';
|
|
41
|
+
// @ts-ignore
|
|
42
|
+
import { UpdateValidationRuleRequestDto } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
44
|
+
import { UpdateValidationRuleResponseClass } from '../models';
|
|
31
45
|
/**
|
|
32
46
|
* ValidationRulesApi - axios parameter creator
|
|
33
47
|
* @export
|
|
@@ -126,6 +140,147 @@ export const ValidationRulesApiAxiosParamCreator = function (configuration?: Con
|
|
|
126
140
|
options: localVarRequestOptions,
|
|
127
141
|
};
|
|
128
142
|
},
|
|
143
|
+
/**
|
|
144
|
+
* Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
145
|
+
* @summary Create the execute rule
|
|
146
|
+
* @param {ExecuteRuleRequestDto} executeRuleRequestDto
|
|
147
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
148
|
+
* @param {*} [options] Override http request option.
|
|
149
|
+
* @throws {RequiredError}
|
|
150
|
+
*/
|
|
151
|
+
executeRule: async (executeRuleRequestDto: ExecuteRuleRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
152
|
+
// verify required parameter 'executeRuleRequestDto' is not null or undefined
|
|
153
|
+
assertParamExists('executeRule', 'executeRuleRequestDto', executeRuleRequestDto)
|
|
154
|
+
const localVarPath = `/validation-rules-service/v1/validation-rules/execute`;
|
|
155
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
156
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
157
|
+
let baseOptions;
|
|
158
|
+
let baseAccessToken;
|
|
159
|
+
if (configuration) {
|
|
160
|
+
baseOptions = configuration.baseOptions;
|
|
161
|
+
baseAccessToken = configuration.accessToken;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
165
|
+
const localVarHeaderParameter = {} as any;
|
|
166
|
+
const localVarQueryParameter = {} as any;
|
|
167
|
+
|
|
168
|
+
// authentication bearer required
|
|
169
|
+
// http bearer authentication required
|
|
170
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
171
|
+
|
|
172
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
173
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
179
|
+
|
|
180
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
181
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
182
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
183
|
+
localVarRequestOptions.data = serializeDataIfNeeded(executeRuleRequestDto, localVarRequestOptions, configuration)
|
|
184
|
+
|
|
185
|
+
return {
|
|
186
|
+
url: toPathString(localVarUrlObj),
|
|
187
|
+
options: localVarRequestOptions,
|
|
188
|
+
};
|
|
189
|
+
},
|
|
190
|
+
/**
|
|
191
|
+
* Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
192
|
+
* @summary Create the test rule
|
|
193
|
+
* @param {ExecuteRuleWithDryRunRequestDto} executeRuleWithDryRunRequestDto
|
|
194
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
195
|
+
* @param {*} [options] Override http request option.
|
|
196
|
+
* @throws {RequiredError}
|
|
197
|
+
*/
|
|
198
|
+
executeRuleWithDryRun: async (executeRuleWithDryRunRequestDto: ExecuteRuleWithDryRunRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
199
|
+
// verify required parameter 'executeRuleWithDryRunRequestDto' is not null or undefined
|
|
200
|
+
assertParamExists('executeRuleWithDryRun', 'executeRuleWithDryRunRequestDto', executeRuleWithDryRunRequestDto)
|
|
201
|
+
const localVarPath = `/validation-rules-service/v1/validation-rules/test`;
|
|
202
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
203
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
204
|
+
let baseOptions;
|
|
205
|
+
let baseAccessToken;
|
|
206
|
+
if (configuration) {
|
|
207
|
+
baseOptions = configuration.baseOptions;
|
|
208
|
+
baseAccessToken = configuration.accessToken;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
212
|
+
const localVarHeaderParameter = {} as any;
|
|
213
|
+
const localVarQueryParameter = {} as any;
|
|
214
|
+
|
|
215
|
+
// authentication bearer required
|
|
216
|
+
// http bearer authentication required
|
|
217
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
218
|
+
|
|
219
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
220
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
226
|
+
|
|
227
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
228
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
229
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
230
|
+
localVarRequestOptions.data = serializeDataIfNeeded(executeRuleWithDryRunRequestDto, localVarRequestOptions, configuration)
|
|
231
|
+
|
|
232
|
+
return {
|
|
233
|
+
url: toPathString(localVarUrlObj),
|
|
234
|
+
options: localVarRequestOptions,
|
|
235
|
+
};
|
|
236
|
+
},
|
|
237
|
+
/**
|
|
238
|
+
* Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
239
|
+
* @summary Create the execute rules by type
|
|
240
|
+
* @param {ExecuteRulesByTypeRequestDto} executeRulesByTypeRequestDto
|
|
241
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
242
|
+
* @param {*} [options] Override http request option.
|
|
243
|
+
* @throws {RequiredError}
|
|
244
|
+
*/
|
|
245
|
+
executeRulesByType: async (executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
246
|
+
// verify required parameter 'executeRulesByTypeRequestDto' is not null or undefined
|
|
247
|
+
assertParamExists('executeRulesByType', 'executeRulesByTypeRequestDto', executeRulesByTypeRequestDto)
|
|
248
|
+
const localVarPath = `/validation-rules-service/v1/validation-rules/execute/by-type`;
|
|
249
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
250
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
251
|
+
let baseOptions;
|
|
252
|
+
let baseAccessToken;
|
|
253
|
+
if (configuration) {
|
|
254
|
+
baseOptions = configuration.baseOptions;
|
|
255
|
+
baseAccessToken = configuration.accessToken;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
259
|
+
const localVarHeaderParameter = {} as any;
|
|
260
|
+
const localVarQueryParameter = {} as any;
|
|
261
|
+
|
|
262
|
+
// authentication bearer required
|
|
263
|
+
// http bearer authentication required
|
|
264
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
265
|
+
|
|
266
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
267
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
273
|
+
|
|
274
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
275
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
276
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
277
|
+
localVarRequestOptions.data = serializeDataIfNeeded(executeRulesByTypeRequestDto, localVarRequestOptions, configuration)
|
|
278
|
+
|
|
279
|
+
return {
|
|
280
|
+
url: toPathString(localVarUrlObj),
|
|
281
|
+
options: localVarRequestOptions,
|
|
282
|
+
};
|
|
283
|
+
},
|
|
129
284
|
/**
|
|
130
285
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
131
286
|
* @summary Retrieve the validation rule
|
|
@@ -177,11 +332,11 @@ export const ValidationRulesApiAxiosParamCreator = function (configuration?: Con
|
|
|
177
332
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
178
333
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
179
334
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
180
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
335
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
181
336
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
182
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug,
|
|
337
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt</i>
|
|
183
338
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
184
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
339
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
185
340
|
* @param {*} [options] Override http request option.
|
|
186
341
|
* @throws {RequiredError}
|
|
187
342
|
*/
|
|
@@ -242,6 +397,56 @@ export const ValidationRulesApiAxiosParamCreator = function (configuration?: Con
|
|
|
242
397
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
243
398
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
244
399
|
|
|
400
|
+
return {
|
|
401
|
+
url: toPathString(localVarUrlObj),
|
|
402
|
+
options: localVarRequestOptions,
|
|
403
|
+
};
|
|
404
|
+
},
|
|
405
|
+
/**
|
|
406
|
+
* undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
|
|
407
|
+
* @param {string} code
|
|
408
|
+
* @param {UpdateValidationRuleRequestDto} updateValidationRuleRequestDto
|
|
409
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
410
|
+
* @param {*} [options] Override http request option.
|
|
411
|
+
* @throws {RequiredError}
|
|
412
|
+
*/
|
|
413
|
+
updateValidationRule: async (code: string, updateValidationRuleRequestDto: UpdateValidationRuleRequestDto, authorization?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
414
|
+
// verify required parameter 'code' is not null or undefined
|
|
415
|
+
assertParamExists('updateValidationRule', 'code', code)
|
|
416
|
+
// verify required parameter 'updateValidationRuleRequestDto' is not null or undefined
|
|
417
|
+
assertParamExists('updateValidationRule', 'updateValidationRuleRequestDto', updateValidationRuleRequestDto)
|
|
418
|
+
const localVarPath = `/validation-rules-service/v1/validation-rules/{code}`
|
|
419
|
+
.replace(`{${"code"}}`, encodeURIComponent(String(code)));
|
|
420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
421
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
422
|
+
let baseOptions;
|
|
423
|
+
let baseAccessToken;
|
|
424
|
+
if (configuration) {
|
|
425
|
+
baseOptions = configuration.baseOptions;
|
|
426
|
+
baseAccessToken = configuration.accessToken;
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
430
|
+
const localVarHeaderParameter = {} as any;
|
|
431
|
+
const localVarQueryParameter = {} as any;
|
|
432
|
+
|
|
433
|
+
// authentication bearer required
|
|
434
|
+
// http bearer authentication required
|
|
435
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
436
|
+
|
|
437
|
+
if (authorization !== undefined && authorization !== null || baseAccessToken !== undefined && baseAccessToken !== null) {
|
|
438
|
+
localVarHeaderParameter['Authorization'] = String(authorization ? authorization : baseAccessToken);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
|
|
443
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
444
|
+
|
|
445
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
446
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
447
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
448
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateValidationRuleRequestDto, localVarRequestOptions, configuration)
|
|
449
|
+
|
|
245
450
|
return {
|
|
246
451
|
url: toPathString(localVarUrlObj),
|
|
247
452
|
options: localVarRequestOptions,
|
|
@@ -281,6 +486,42 @@ export const ValidationRulesApiFp = function(configuration?: Configuration) {
|
|
|
281
486
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteValidationRule(code, authorization, options);
|
|
282
487
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
283
488
|
},
|
|
489
|
+
/**
|
|
490
|
+
* Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
491
|
+
* @summary Create the execute rule
|
|
492
|
+
* @param {ExecuteRuleRequestDto} executeRuleRequestDto
|
|
493
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
494
|
+
* @param {*} [options] Override http request option.
|
|
495
|
+
* @throws {RequiredError}
|
|
496
|
+
*/
|
|
497
|
+
async executeRule(executeRuleRequestDto: ExecuteRuleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteRuleResponseClass>> {
|
|
498
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeRule(executeRuleRequestDto, authorization, options);
|
|
499
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
500
|
+
},
|
|
501
|
+
/**
|
|
502
|
+
* Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
503
|
+
* @summary Create the test rule
|
|
504
|
+
* @param {ExecuteRuleWithDryRunRequestDto} executeRuleWithDryRunRequestDto
|
|
505
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
*/
|
|
509
|
+
async executeRuleWithDryRun(executeRuleWithDryRunRequestDto: ExecuteRuleWithDryRunRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteRuleWithDryRunResponseClass>> {
|
|
510
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeRuleWithDryRun(executeRuleWithDryRunRequestDto, authorization, options);
|
|
511
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
512
|
+
},
|
|
513
|
+
/**
|
|
514
|
+
* Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
515
|
+
* @summary Create the execute rules by type
|
|
516
|
+
* @param {ExecuteRulesByTypeRequestDto} executeRulesByTypeRequestDto
|
|
517
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
518
|
+
* @param {*} [options] Override http request option.
|
|
519
|
+
* @throws {RequiredError}
|
|
520
|
+
*/
|
|
521
|
+
async executeRulesByType(executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExecuteRuleResponseClass>> {
|
|
522
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.executeRulesByType(executeRulesByTypeRequestDto, authorization, options);
|
|
523
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
524
|
+
},
|
|
284
525
|
/**
|
|
285
526
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
286
527
|
* @summary Retrieve the validation rule
|
|
@@ -299,11 +540,11 @@ export const ValidationRulesApiFp = function(configuration?: Configuration) {
|
|
|
299
540
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
300
541
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
301
542
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
302
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
543
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
303
544
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
304
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug,
|
|
545
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt</i>
|
|
305
546
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
306
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
547
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
307
548
|
* @param {*} [options] Override http request option.
|
|
308
549
|
* @throws {RequiredError}
|
|
309
550
|
*/
|
|
@@ -311,6 +552,18 @@ export const ValidationRulesApiFp = function(configuration?: Configuration) {
|
|
|
311
552
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listValidationRules(authorization, pageSize, pageToken, filter, search, order, expand, filters, options);
|
|
312
553
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
313
554
|
},
|
|
555
|
+
/**
|
|
556
|
+
* undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
|
|
557
|
+
* @param {string} code
|
|
558
|
+
* @param {UpdateValidationRuleRequestDto} updateValidationRuleRequestDto
|
|
559
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
*/
|
|
563
|
+
async updateValidationRule(code: string, updateValidationRuleRequestDto: UpdateValidationRuleRequestDto, authorization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UpdateValidationRuleResponseClass>> {
|
|
564
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateValidationRule(code, updateValidationRuleRequestDto, authorization, options);
|
|
565
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
566
|
+
},
|
|
314
567
|
}
|
|
315
568
|
};
|
|
316
569
|
|
|
@@ -343,6 +596,39 @@ export const ValidationRulesApiFactory = function (configuration?: Configuration
|
|
|
343
596
|
deleteValidationRule(code: string, authorization?: string, options?: any): AxiosPromise<void> {
|
|
344
597
|
return localVarFp.deleteValidationRule(code, authorization, options).then((request) => request(axios, basePath));
|
|
345
598
|
},
|
|
599
|
+
/**
|
|
600
|
+
* Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
601
|
+
* @summary Create the execute rule
|
|
602
|
+
* @param {ExecuteRuleRequestDto} executeRuleRequestDto
|
|
603
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
604
|
+
* @param {*} [options] Override http request option.
|
|
605
|
+
* @throws {RequiredError}
|
|
606
|
+
*/
|
|
607
|
+
executeRule(executeRuleRequestDto: ExecuteRuleRequestDto, authorization?: string, options?: any): AxiosPromise<ExecuteRuleResponseClass> {
|
|
608
|
+
return localVarFp.executeRule(executeRuleRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
609
|
+
},
|
|
610
|
+
/**
|
|
611
|
+
* Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
612
|
+
* @summary Create the test rule
|
|
613
|
+
* @param {ExecuteRuleWithDryRunRequestDto} executeRuleWithDryRunRequestDto
|
|
614
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
615
|
+
* @param {*} [options] Override http request option.
|
|
616
|
+
* @throws {RequiredError}
|
|
617
|
+
*/
|
|
618
|
+
executeRuleWithDryRun(executeRuleWithDryRunRequestDto: ExecuteRuleWithDryRunRequestDto, authorization?: string, options?: any): AxiosPromise<ExecuteRuleWithDryRunResponseClass> {
|
|
619
|
+
return localVarFp.executeRuleWithDryRun(executeRuleWithDryRunRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
620
|
+
},
|
|
621
|
+
/**
|
|
622
|
+
* Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
623
|
+
* @summary Create the execute rules by type
|
|
624
|
+
* @param {ExecuteRulesByTypeRequestDto} executeRulesByTypeRequestDto
|
|
625
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
626
|
+
* @param {*} [options] Override http request option.
|
|
627
|
+
* @throws {RequiredError}
|
|
628
|
+
*/
|
|
629
|
+
executeRulesByType(executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto, authorization?: string, options?: any): AxiosPromise<ExecuteRuleResponseClass> {
|
|
630
|
+
return localVarFp.executeRulesByType(executeRulesByTypeRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
631
|
+
},
|
|
346
632
|
/**
|
|
347
633
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
348
634
|
* @summary Retrieve the validation rule
|
|
@@ -360,17 +646,28 @@ export const ValidationRulesApiFactory = function (configuration?: Configuration
|
|
|
360
646
|
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
361
647
|
* @param {number} [pageSize] A limit on the number of objects to be returned. Limit ranges between 1 and 50. Default: 10.
|
|
362
648
|
* @param {string} [pageToken] A cursor for use in pagination. pageToken is an ID that defines your place in the list. For instance, if you make a list request and receive 100 objects and pageToken=1, your subsequent call can include pageToken=2 in order to fetch the next page of the list.
|
|
363
|
-
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
649
|
+
* @param {string} [filter] Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
364
650
|
* @param {string} [search] To search the list by any field, pass search=xxx to fetch the result.
|
|
365
|
-
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug,
|
|
651
|
+
* @param {string} [order] Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt</i>
|
|
366
652
|
* @param {string} [expand] Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/>
|
|
367
|
-
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
653
|
+
* @param {string} [filters] Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
368
654
|
* @param {*} [options] Override http request option.
|
|
369
655
|
* @throws {RequiredError}
|
|
370
656
|
*/
|
|
371
657
|
listValidationRules(authorization?: string, pageSize?: number, pageToken?: string, filter?: string, search?: string, order?: string, expand?: string, filters?: string, options?: any): AxiosPromise<ListValidationRulesResponseClass> {
|
|
372
658
|
return localVarFp.listValidationRules(authorization, pageSize, pageToken, filter, search, order, expand, filters, options).then((request) => request(axios, basePath));
|
|
373
659
|
},
|
|
660
|
+
/**
|
|
661
|
+
* undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
|
|
662
|
+
* @param {string} code
|
|
663
|
+
* @param {UpdateValidationRuleRequestDto} updateValidationRuleRequestDto
|
|
664
|
+
* @param {string} [authorization] Bearer Token: provided by the login endpoint under the name accessToken.
|
|
665
|
+
* @param {*} [options] Override http request option.
|
|
666
|
+
* @throws {RequiredError}
|
|
667
|
+
*/
|
|
668
|
+
updateValidationRule(code: string, updateValidationRuleRequestDto: UpdateValidationRuleRequestDto, authorization?: string, options?: any): AxiosPromise<UpdateValidationRuleResponseClass> {
|
|
669
|
+
return localVarFp.updateValidationRule(code, updateValidationRuleRequestDto, authorization, options).then((request) => request(axios, basePath));
|
|
670
|
+
},
|
|
374
671
|
};
|
|
375
672
|
};
|
|
376
673
|
|
|
@@ -416,6 +713,69 @@ export interface ValidationRulesApiDeleteValidationRuleRequest {
|
|
|
416
713
|
readonly authorization?: string
|
|
417
714
|
}
|
|
418
715
|
|
|
716
|
+
/**
|
|
717
|
+
* Request parameters for executeRule operation in ValidationRulesApi.
|
|
718
|
+
* @export
|
|
719
|
+
* @interface ValidationRulesApiExecuteRuleRequest
|
|
720
|
+
*/
|
|
721
|
+
export interface ValidationRulesApiExecuteRuleRequest {
|
|
722
|
+
/**
|
|
723
|
+
*
|
|
724
|
+
* @type {ExecuteRuleRequestDto}
|
|
725
|
+
* @memberof ValidationRulesApiExecuteRule
|
|
726
|
+
*/
|
|
727
|
+
readonly executeRuleRequestDto: ExecuteRuleRequestDto
|
|
728
|
+
|
|
729
|
+
/**
|
|
730
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
731
|
+
* @type {string}
|
|
732
|
+
* @memberof ValidationRulesApiExecuteRule
|
|
733
|
+
*/
|
|
734
|
+
readonly authorization?: string
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
/**
|
|
738
|
+
* Request parameters for executeRuleWithDryRun operation in ValidationRulesApi.
|
|
739
|
+
* @export
|
|
740
|
+
* @interface ValidationRulesApiExecuteRuleWithDryRunRequest
|
|
741
|
+
*/
|
|
742
|
+
export interface ValidationRulesApiExecuteRuleWithDryRunRequest {
|
|
743
|
+
/**
|
|
744
|
+
*
|
|
745
|
+
* @type {ExecuteRuleWithDryRunRequestDto}
|
|
746
|
+
* @memberof ValidationRulesApiExecuteRuleWithDryRun
|
|
747
|
+
*/
|
|
748
|
+
readonly executeRuleWithDryRunRequestDto: ExecuteRuleWithDryRunRequestDto
|
|
749
|
+
|
|
750
|
+
/**
|
|
751
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
752
|
+
* @type {string}
|
|
753
|
+
* @memberof ValidationRulesApiExecuteRuleWithDryRun
|
|
754
|
+
*/
|
|
755
|
+
readonly authorization?: string
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
* Request parameters for executeRulesByType operation in ValidationRulesApi.
|
|
760
|
+
* @export
|
|
761
|
+
* @interface ValidationRulesApiExecuteRulesByTypeRequest
|
|
762
|
+
*/
|
|
763
|
+
export interface ValidationRulesApiExecuteRulesByTypeRequest {
|
|
764
|
+
/**
|
|
765
|
+
*
|
|
766
|
+
* @type {ExecuteRulesByTypeRequestDto}
|
|
767
|
+
* @memberof ValidationRulesApiExecuteRulesByType
|
|
768
|
+
*/
|
|
769
|
+
readonly executeRulesByTypeRequestDto: ExecuteRulesByTypeRequestDto
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
773
|
+
* @type {string}
|
|
774
|
+
* @memberof ValidationRulesApiExecuteRulesByType
|
|
775
|
+
*/
|
|
776
|
+
readonly authorization?: string
|
|
777
|
+
}
|
|
778
|
+
|
|
419
779
|
/**
|
|
420
780
|
* Request parameters for getValidationRule operation in ValidationRulesApi.
|
|
421
781
|
* @export
|
|
@@ -465,7 +825,7 @@ export interface ValidationRulesApiListValidationRulesRequest {
|
|
|
465
825
|
readonly pageToken?: string
|
|
466
826
|
|
|
467
827
|
/**
|
|
468
|
-
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
828
|
+
* Filter the response by one or multiple fields. In general, fetching filtered responses will conserve bandwidth and reduce response time.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
469
829
|
* @type {string}
|
|
470
830
|
* @memberof ValidationRulesApiListValidationRules
|
|
471
831
|
*/
|
|
@@ -479,7 +839,7 @@ export interface ValidationRulesApiListValidationRulesRequest {
|
|
|
479
839
|
readonly search?: string
|
|
480
840
|
|
|
481
841
|
/**
|
|
482
|
-
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug,
|
|
842
|
+
* Order allows you to specify the desired order of entities retrieved from the server by ascending (ASC) or descending (DESC) order.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, severity, isEnabled, createdAt, updatedAt</i>
|
|
483
843
|
* @type {string}
|
|
484
844
|
* @memberof ValidationRulesApiListValidationRules
|
|
485
845
|
*/
|
|
@@ -493,13 +853,41 @@ export interface ValidationRulesApiListValidationRulesRequest {
|
|
|
493
853
|
readonly expand?: string
|
|
494
854
|
|
|
495
855
|
/**
|
|
496
|
-
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
856
|
+
* Filters the response by one or multiple fields. Advanced filter functionality allows you to perform more complex filtering operations.<br/> <br/> <i>Allowed values: id, code, slug, entityType, productSlug, productVersionId, productVersionCode, severity, isEnabled, createdAt, updatedAt, createdBy, updatedBy</i>
|
|
497
857
|
* @type {string}
|
|
498
858
|
* @memberof ValidationRulesApiListValidationRules
|
|
499
859
|
*/
|
|
500
860
|
readonly filters?: string
|
|
501
861
|
}
|
|
502
862
|
|
|
863
|
+
/**
|
|
864
|
+
* Request parameters for updateValidationRule operation in ValidationRulesApi.
|
|
865
|
+
* @export
|
|
866
|
+
* @interface ValidationRulesApiUpdateValidationRuleRequest
|
|
867
|
+
*/
|
|
868
|
+
export interface ValidationRulesApiUpdateValidationRuleRequest {
|
|
869
|
+
/**
|
|
870
|
+
*
|
|
871
|
+
* @type {string}
|
|
872
|
+
* @memberof ValidationRulesApiUpdateValidationRule
|
|
873
|
+
*/
|
|
874
|
+
readonly code: string
|
|
875
|
+
|
|
876
|
+
/**
|
|
877
|
+
*
|
|
878
|
+
* @type {UpdateValidationRuleRequestDto}
|
|
879
|
+
* @memberof ValidationRulesApiUpdateValidationRule
|
|
880
|
+
*/
|
|
881
|
+
readonly updateValidationRuleRequestDto: UpdateValidationRuleRequestDto
|
|
882
|
+
|
|
883
|
+
/**
|
|
884
|
+
* Bearer Token: provided by the login endpoint under the name accessToken.
|
|
885
|
+
* @type {string}
|
|
886
|
+
* @memberof ValidationRulesApiUpdateValidationRule
|
|
887
|
+
*/
|
|
888
|
+
readonly authorization?: string
|
|
889
|
+
}
|
|
890
|
+
|
|
503
891
|
/**
|
|
504
892
|
* ValidationRulesApi - object-oriented interface
|
|
505
893
|
* @export
|
|
@@ -531,6 +919,42 @@ export class ValidationRulesApi extends BaseAPI {
|
|
|
531
919
|
return ValidationRulesApiFp(this.configuration).deleteValidationRule(requestParameters.code, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
532
920
|
}
|
|
533
921
|
|
|
922
|
+
/**
|
|
923
|
+
* Executes all enabled validation rules for a given entity type and entity code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
924
|
+
* @summary Create the execute rule
|
|
925
|
+
* @param {ValidationRulesApiExecuteRuleRequest} requestParameters Request parameters.
|
|
926
|
+
* @param {*} [options] Override http request option.
|
|
927
|
+
* @throws {RequiredError}
|
|
928
|
+
* @memberof ValidationRulesApi
|
|
929
|
+
*/
|
|
930
|
+
public executeRule(requestParameters: ValidationRulesApiExecuteRuleRequest, options?: AxiosRequestConfig) {
|
|
931
|
+
return ValidationRulesApiFp(this.configuration).executeRule(requestParameters.executeRuleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
932
|
+
}
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* Tests a FEEL expression against provided sample data **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
936
|
+
* @summary Create the test rule
|
|
937
|
+
* @param {ValidationRulesApiExecuteRuleWithDryRunRequest} requestParameters Request parameters.
|
|
938
|
+
* @param {*} [options] Override http request option.
|
|
939
|
+
* @throws {RequiredError}
|
|
940
|
+
* @memberof ValidationRulesApi
|
|
941
|
+
*/
|
|
942
|
+
public executeRuleWithDryRun(requestParameters: ValidationRulesApiExecuteRuleWithDryRunRequest, options?: AxiosRequestConfig) {
|
|
943
|
+
return ValidationRulesApiFp(this.configuration).executeRuleWithDryRun(requestParameters.executeRuleWithDryRunRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
* Executes all enabled validation rules matching a given entity type and product version **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
948
|
+
* @summary Create the execute rules by type
|
|
949
|
+
* @param {ValidationRulesApiExecuteRulesByTypeRequest} requestParameters Request parameters.
|
|
950
|
+
* @param {*} [options] Override http request option.
|
|
951
|
+
* @throws {RequiredError}
|
|
952
|
+
* @memberof ValidationRulesApi
|
|
953
|
+
*/
|
|
954
|
+
public executeRulesByType(requestParameters: ValidationRulesApiExecuteRulesByTypeRequest, options?: AxiosRequestConfig) {
|
|
955
|
+
return ValidationRulesApiFp(this.configuration).executeRulesByType(requestParameters.executeRulesByTypeRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
956
|
+
}
|
|
957
|
+
|
|
534
958
|
/**
|
|
535
959
|
* Retrieves a validation rule by its code **Required Permissions** \"validation-rules-management.validation-rules.view\"
|
|
536
960
|
* @summary Retrieve the validation rule
|
|
@@ -554,4 +978,15 @@ export class ValidationRulesApi extends BaseAPI {
|
|
|
554
978
|
public listValidationRules(requestParameters: ValidationRulesApiListValidationRulesRequest = {}, options?: AxiosRequestConfig) {
|
|
555
979
|
return ValidationRulesApiFp(this.configuration).listValidationRules(requestParameters.authorization, requestParameters.pageSize, requestParameters.pageToken, requestParameters.filter, requestParameters.search, requestParameters.order, requestParameters.expand, requestParameters.filters, options).then((request) => request(this.axios, this.basePath));
|
|
556
980
|
}
|
|
981
|
+
|
|
982
|
+
/**
|
|
983
|
+
* undefined **Required Permissions** \"validation-rules-management.validation-rules.update\"
|
|
984
|
+
* @param {ValidationRulesApiUpdateValidationRuleRequest} requestParameters Request parameters.
|
|
985
|
+
* @param {*} [options] Override http request option.
|
|
986
|
+
* @throws {RequiredError}
|
|
987
|
+
* @memberof ValidationRulesApi
|
|
988
|
+
*/
|
|
989
|
+
public updateValidationRule(requestParameters: ValidationRulesApiUpdateValidationRuleRequest, options?: AxiosRequestConfig) {
|
|
990
|
+
return ValidationRulesApiFp(this.configuration).updateValidationRule(requestParameters.code, requestParameters.updateValidationRuleRequestDto, requestParameters.authorization, options).then((request) => request(this.axios, this.basePath));
|
|
991
|
+
}
|
|
557
992
|
}
|