@kadoa/node-sdk 0.9.0 → 0.10.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/README.md +146 -1
- package/dist/browser/index.global.js +32 -0
- package/dist/browser/index.global.js.map +1 -0
- package/dist/index.d.mts +2238 -175
- package/dist/index.d.ts +2238 -175
- package/dist/index.js +1705 -106
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1701 -104
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import globalAxios6, { isAxiosError, AxiosError } from 'axios';
|
|
2
|
+
import { v4 } from 'uuid';
|
|
3
3
|
import { URL as URL$1, URLSearchParams } from 'url';
|
|
4
4
|
import createDebug from 'debug';
|
|
5
5
|
import { merge as merge$1 } from 'es-toolkit';
|
|
@@ -196,7 +196,7 @@ var KadoaHttpException = class _KadoaHttpException extends KadoaSdkException {
|
|
|
196
196
|
};
|
|
197
197
|
var BASE_PATH = "https://api.kadoa.com".replace(/\/+$/, "");
|
|
198
198
|
var BaseAPI = class {
|
|
199
|
-
constructor(configuration, basePath = BASE_PATH, axios2 =
|
|
199
|
+
constructor(configuration, basePath = BASE_PATH, axios2 = globalAxios6) {
|
|
200
200
|
this.basePath = basePath;
|
|
201
201
|
this.axios = axios2;
|
|
202
202
|
if (configuration) {
|
|
@@ -262,8 +262,8 @@ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
|
262
262
|
var toPathString = function(url2) {
|
|
263
263
|
return url2.pathname + url2.search + url2.hash;
|
|
264
264
|
};
|
|
265
|
-
var createRequestFunction = function(axiosArgs,
|
|
266
|
-
return (axios2 =
|
|
265
|
+
var createRequestFunction = function(axiosArgs, globalAxios8, BASE_PATH2, configuration) {
|
|
266
|
+
return (axios2 = globalAxios8, basePath = BASE_PATH2) => {
|
|
267
267
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
268
268
|
return axios2.request(axiosRequestArgs);
|
|
269
269
|
};
|
|
@@ -639,7 +639,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
639
639
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlBucketDataFilenameb64Get(filenameb64, contentType, cacheControl, options);
|
|
640
640
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
641
641
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlBucketDataFilenameb64Get"]?.[localVarOperationServerIndex]?.url;
|
|
642
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
642
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
643
643
|
},
|
|
644
644
|
/**
|
|
645
645
|
* Get a crawling configuration by ID
|
|
@@ -652,7 +652,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
652
652
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigConfigIdGet(configId, options);
|
|
653
653
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
654
654
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigConfigIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
655
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
655
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
656
656
|
},
|
|
657
657
|
/**
|
|
658
658
|
* Delete a crawling configuration
|
|
@@ -665,7 +665,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
665
665
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigDelete(deleteCrawlerConfigRequest, options);
|
|
666
666
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
667
667
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigDelete"]?.[localVarOperationServerIndex]?.url;
|
|
668
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
668
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
669
669
|
},
|
|
670
670
|
/**
|
|
671
671
|
* Create a new crawling configuration
|
|
@@ -678,7 +678,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
678
678
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigPost(createCrawlerConfigRequest, options);
|
|
679
679
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
680
680
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigPost"]?.[localVarOperationServerIndex]?.url;
|
|
681
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
681
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
682
682
|
},
|
|
683
683
|
/**
|
|
684
684
|
* Pause an active crawling session
|
|
@@ -691,7 +691,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
691
691
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlPausePost(pauseCrawlerSessionRequest, options);
|
|
692
692
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
693
693
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlPausePost"]?.[localVarOperationServerIndex]?.url;
|
|
694
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
694
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
695
695
|
},
|
|
696
696
|
/**
|
|
697
697
|
* Create a crawling configuration and start a session in one operation (equivalent to v4/crawl)
|
|
@@ -704,7 +704,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
704
704
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlPost(startCrawlerSessionRequest, options);
|
|
705
705
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
706
706
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlPost"]?.[localVarOperationServerIndex]?.url;
|
|
707
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
707
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
708
708
|
},
|
|
709
709
|
/**
|
|
710
710
|
* Resume a paused crawling session
|
|
@@ -717,7 +717,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
717
717
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlResumePost(resumeCrawlerSessionRequest, options);
|
|
718
718
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
719
719
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlResumePost"]?.[localVarOperationServerIndex]?.url;
|
|
720
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
720
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
721
721
|
},
|
|
722
722
|
/**
|
|
723
723
|
* Get a complete list of all pages crawled in a session
|
|
@@ -730,7 +730,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
730
730
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdListGet(sessionId, options);
|
|
731
731
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
732
732
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdListGet"]?.[localVarOperationServerIndex]?.url;
|
|
733
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
733
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
734
734
|
},
|
|
735
735
|
/**
|
|
736
736
|
* Get a paginated list of pages for a crawling session
|
|
@@ -745,7 +745,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
745
745
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdPagesGet(sessionId, currentPage, pageSize, options);
|
|
746
746
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
747
747
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdPagesGet"]?.[localVarOperationServerIndex]?.url;
|
|
748
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
748
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
749
749
|
},
|
|
750
750
|
/**
|
|
751
751
|
* Get the content of a specific page from a crawling session in HTML or Markdown format
|
|
@@ -760,7 +760,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
760
760
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdPagesPageIdGet(sessionId, pageId, format, options);
|
|
761
761
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
762
762
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdPagesPageIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
763
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
763
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
764
764
|
},
|
|
765
765
|
/**
|
|
766
766
|
* Get the current status of a crawling session
|
|
@@ -773,7 +773,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
773
773
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdStatusGet(sessionId, options);
|
|
774
774
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
775
775
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdStatusGet"]?.[localVarOperationServerIndex]?.url;
|
|
776
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
776
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
777
777
|
},
|
|
778
778
|
/**
|
|
779
779
|
* Start a new crawling session with an existing configuration
|
|
@@ -786,7 +786,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
786
786
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlStartPost(startSessionWithConfigRequest, options);
|
|
787
787
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
788
788
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlStartPost"]?.[localVarOperationServerIndex]?.url;
|
|
789
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
789
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
790
790
|
}
|
|
791
791
|
};
|
|
792
792
|
};
|
|
@@ -924,6 +924,1244 @@ var CrawlerApi = class extends BaseAPI {
|
|
|
924
924
|
return CrawlerApiFp(this.configuration).v4CrawlStartPost(requestParameters.startSessionWithConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
|
+
var DataValidationApiAxiosParamCreator = function(configuration) {
|
|
928
|
+
return {
|
|
929
|
+
/**
|
|
930
|
+
* Bulk approve preview rules for a workflow
|
|
931
|
+
* @param {BulkApproveRules} [bulkApproveRules] Body
|
|
932
|
+
* @param {*} [options] Override http request option.
|
|
933
|
+
* @throws {RequiredError}
|
|
934
|
+
*/
|
|
935
|
+
v4DataValidationRulesActionsBulkApprovePost: async (bulkApproveRules, options = {}) => {
|
|
936
|
+
const localVarPath = `/v4/data-validation/rules/actions/bulk-approve`;
|
|
937
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
938
|
+
let baseOptions;
|
|
939
|
+
if (configuration) {
|
|
940
|
+
baseOptions = configuration.baseOptions;
|
|
941
|
+
}
|
|
942
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
943
|
+
const localVarHeaderParameter = {};
|
|
944
|
+
const localVarQueryParameter = {};
|
|
945
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
946
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
947
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
948
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
949
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
950
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkApproveRules, localVarRequestOptions, configuration);
|
|
951
|
+
return {
|
|
952
|
+
url: toPathString(localVarUrlObj),
|
|
953
|
+
options: localVarRequestOptions
|
|
954
|
+
};
|
|
955
|
+
},
|
|
956
|
+
/**
|
|
957
|
+
* Bulk delete rules for a workflow
|
|
958
|
+
* @param {BulkDeleteRules} [bulkDeleteRules] Body
|
|
959
|
+
* @param {*} [options] Override http request option.
|
|
960
|
+
* @throws {RequiredError}
|
|
961
|
+
*/
|
|
962
|
+
v4DataValidationRulesActionsBulkDeletePost: async (bulkDeleteRules, options = {}) => {
|
|
963
|
+
const localVarPath = `/v4/data-validation/rules/actions/bulk-delete`;
|
|
964
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
965
|
+
let baseOptions;
|
|
966
|
+
if (configuration) {
|
|
967
|
+
baseOptions = configuration.baseOptions;
|
|
968
|
+
}
|
|
969
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
970
|
+
const localVarHeaderParameter = {};
|
|
971
|
+
const localVarQueryParameter = {};
|
|
972
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
973
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
974
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
975
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
976
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
977
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkDeleteRules, localVarRequestOptions, configuration);
|
|
978
|
+
return {
|
|
979
|
+
url: toPathString(localVarUrlObj),
|
|
980
|
+
options: localVarRequestOptions
|
|
981
|
+
};
|
|
982
|
+
},
|
|
983
|
+
/**
|
|
984
|
+
* Delete all validation rules with optional filtering
|
|
985
|
+
* @param {string} [workflowId]
|
|
986
|
+
* @param {DeleteRuleWithReason} [deleteRuleWithReason] Body
|
|
987
|
+
* @param {*} [options] Override http request option.
|
|
988
|
+
* @throws {RequiredError}
|
|
989
|
+
*/
|
|
990
|
+
v4DataValidationRulesActionsDeleteAllDelete: async (workflowId, deleteRuleWithReason, options = {}) => {
|
|
991
|
+
const localVarPath = `/v4/data-validation/rules/actions/delete-all`;
|
|
992
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
993
|
+
let baseOptions;
|
|
994
|
+
if (configuration) {
|
|
995
|
+
baseOptions = configuration.baseOptions;
|
|
996
|
+
}
|
|
997
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
998
|
+
const localVarHeaderParameter = {};
|
|
999
|
+
const localVarQueryParameter = {};
|
|
1000
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1001
|
+
if (workflowId !== void 0) {
|
|
1002
|
+
localVarQueryParameter["workflowId"] = workflowId;
|
|
1003
|
+
}
|
|
1004
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1005
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1006
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1007
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1008
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteRuleWithReason, localVarRequestOptions, configuration);
|
|
1009
|
+
return {
|
|
1010
|
+
url: toPathString(localVarUrlObj),
|
|
1011
|
+
options: localVarRequestOptions
|
|
1012
|
+
};
|
|
1013
|
+
},
|
|
1014
|
+
/**
|
|
1015
|
+
* Generate a validation rule
|
|
1016
|
+
* @param {GenerateRule} [generateRule] Body
|
|
1017
|
+
* @param {*} [options] Override http request option.
|
|
1018
|
+
* @throws {RequiredError}
|
|
1019
|
+
*/
|
|
1020
|
+
v4DataValidationRulesActionsGeneratePost: async (generateRule, options = {}) => {
|
|
1021
|
+
const localVarPath = `/v4/data-validation/rules/actions/generate`;
|
|
1022
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1023
|
+
let baseOptions;
|
|
1024
|
+
if (configuration) {
|
|
1025
|
+
baseOptions = configuration.baseOptions;
|
|
1026
|
+
}
|
|
1027
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1028
|
+
const localVarHeaderParameter = {};
|
|
1029
|
+
const localVarQueryParameter = {};
|
|
1030
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1031
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1032
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1034
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1035
|
+
localVarRequestOptions.data = serializeDataIfNeeded(generateRule, localVarRequestOptions, configuration);
|
|
1036
|
+
return {
|
|
1037
|
+
url: toPathString(localVarUrlObj),
|
|
1038
|
+
options: localVarRequestOptions
|
|
1039
|
+
};
|
|
1040
|
+
},
|
|
1041
|
+
/**
|
|
1042
|
+
* Generate multiple validation rules
|
|
1043
|
+
* @param {GenerateRules} [generateRules] Body
|
|
1044
|
+
* @param {*} [options] Override http request option.
|
|
1045
|
+
* @throws {RequiredError}
|
|
1046
|
+
*/
|
|
1047
|
+
v4DataValidationRulesActionsGenerateRulesPost: async (generateRules, options = {}) => {
|
|
1048
|
+
const localVarPath = `/v4/data-validation/rules/actions/generate-rules`;
|
|
1049
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1050
|
+
let baseOptions;
|
|
1051
|
+
if (configuration) {
|
|
1052
|
+
baseOptions = configuration.baseOptions;
|
|
1053
|
+
}
|
|
1054
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1055
|
+
const localVarHeaderParameter = {};
|
|
1056
|
+
const localVarQueryParameter = {};
|
|
1057
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1058
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1059
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1060
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1061
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1062
|
+
localVarRequestOptions.data = serializeDataIfNeeded(generateRules, localVarRequestOptions, configuration);
|
|
1063
|
+
return {
|
|
1064
|
+
url: toPathString(localVarUrlObj),
|
|
1065
|
+
options: localVarRequestOptions
|
|
1066
|
+
};
|
|
1067
|
+
},
|
|
1068
|
+
/**
|
|
1069
|
+
* List validation rules with optional filtering
|
|
1070
|
+
* @param {string} [groupId]
|
|
1071
|
+
* @param {string} [workflowId]
|
|
1072
|
+
* @param {ValidationRuleStatus} [status]
|
|
1073
|
+
* @param {number} [page]
|
|
1074
|
+
* @param {number} [pageSize]
|
|
1075
|
+
* @param {V4DataValidationRulesGetIncludeDeletedParameter} [includeDeleted]
|
|
1076
|
+
* @param {*} [options] Override http request option.
|
|
1077
|
+
* @throws {RequiredError}
|
|
1078
|
+
*/
|
|
1079
|
+
v4DataValidationRulesGet: async (groupId, workflowId, status, page, pageSize, includeDeleted, options = {}) => {
|
|
1080
|
+
const localVarPath = `/v4/data-validation/rules`;
|
|
1081
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1082
|
+
let baseOptions;
|
|
1083
|
+
if (configuration) {
|
|
1084
|
+
baseOptions = configuration.baseOptions;
|
|
1085
|
+
}
|
|
1086
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1087
|
+
const localVarHeaderParameter = {};
|
|
1088
|
+
const localVarQueryParameter = {};
|
|
1089
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1090
|
+
if (groupId !== void 0) {
|
|
1091
|
+
localVarQueryParameter["groupId"] = groupId;
|
|
1092
|
+
}
|
|
1093
|
+
if (workflowId !== void 0) {
|
|
1094
|
+
localVarQueryParameter["workflowId"] = workflowId;
|
|
1095
|
+
}
|
|
1096
|
+
if (status !== void 0) {
|
|
1097
|
+
localVarQueryParameter["status"] = status;
|
|
1098
|
+
}
|
|
1099
|
+
if (page !== void 0) {
|
|
1100
|
+
localVarQueryParameter["page"] = page;
|
|
1101
|
+
}
|
|
1102
|
+
if (pageSize !== void 0) {
|
|
1103
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
1104
|
+
}
|
|
1105
|
+
if (includeDeleted !== void 0) {
|
|
1106
|
+
for (const [key, value] of Object.entries(includeDeleted)) {
|
|
1107
|
+
localVarQueryParameter[key] = value;
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1111
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1112
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1113
|
+
return {
|
|
1114
|
+
url: toPathString(localVarUrlObj),
|
|
1115
|
+
options: localVarRequestOptions
|
|
1116
|
+
};
|
|
1117
|
+
},
|
|
1118
|
+
/**
|
|
1119
|
+
* Create a new validation rule
|
|
1120
|
+
* @param {CreateRule} [createRule] Body
|
|
1121
|
+
* @param {*} [options] Override http request option.
|
|
1122
|
+
* @throws {RequiredError}
|
|
1123
|
+
*/
|
|
1124
|
+
v4DataValidationRulesPost: async (createRule, options = {}) => {
|
|
1125
|
+
const localVarPath = `/v4/data-validation/rules`;
|
|
1126
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1127
|
+
let baseOptions;
|
|
1128
|
+
if (configuration) {
|
|
1129
|
+
baseOptions = configuration.baseOptions;
|
|
1130
|
+
}
|
|
1131
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1132
|
+
const localVarHeaderParameter = {};
|
|
1133
|
+
const localVarQueryParameter = {};
|
|
1134
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1135
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1136
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1137
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1138
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1139
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createRule, localVarRequestOptions, configuration);
|
|
1140
|
+
return {
|
|
1141
|
+
url: toPathString(localVarUrlObj),
|
|
1142
|
+
options: localVarRequestOptions
|
|
1143
|
+
};
|
|
1144
|
+
},
|
|
1145
|
+
/**
|
|
1146
|
+
* Delete a validation rule with reason
|
|
1147
|
+
* @param {string} ruleId
|
|
1148
|
+
* @param {DeleteRuleWithReason} [deleteRuleWithReason] Body
|
|
1149
|
+
* @param {*} [options] Override http request option.
|
|
1150
|
+
* @throws {RequiredError}
|
|
1151
|
+
*/
|
|
1152
|
+
v4DataValidationRulesRuleIdDelete: async (ruleId, deleteRuleWithReason, options = {}) => {
|
|
1153
|
+
assertParamExists("v4DataValidationRulesRuleIdDelete", "ruleId", ruleId);
|
|
1154
|
+
const localVarPath = `/v4/data-validation/rules/{ruleId}`.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
1155
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1156
|
+
let baseOptions;
|
|
1157
|
+
if (configuration) {
|
|
1158
|
+
baseOptions = configuration.baseOptions;
|
|
1159
|
+
}
|
|
1160
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1161
|
+
const localVarHeaderParameter = {};
|
|
1162
|
+
const localVarQueryParameter = {};
|
|
1163
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1164
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1165
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1166
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1167
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1168
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteRuleWithReason, localVarRequestOptions, configuration);
|
|
1169
|
+
return {
|
|
1170
|
+
url: toPathString(localVarUrlObj),
|
|
1171
|
+
options: localVarRequestOptions
|
|
1172
|
+
};
|
|
1173
|
+
},
|
|
1174
|
+
/**
|
|
1175
|
+
* Disable a validation rule with reason
|
|
1176
|
+
* @param {string} ruleId
|
|
1177
|
+
* @param {DisableRule} [disableRule] Body
|
|
1178
|
+
* @param {*} [options] Override http request option.
|
|
1179
|
+
* @throws {RequiredError}
|
|
1180
|
+
*/
|
|
1181
|
+
v4DataValidationRulesRuleIdDisablePost: async (ruleId, disableRule, options = {}) => {
|
|
1182
|
+
assertParamExists("v4DataValidationRulesRuleIdDisablePost", "ruleId", ruleId);
|
|
1183
|
+
const localVarPath = `/v4/data-validation/rules/{ruleId}/disable`.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
1184
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1185
|
+
let baseOptions;
|
|
1186
|
+
if (configuration) {
|
|
1187
|
+
baseOptions = configuration.baseOptions;
|
|
1188
|
+
}
|
|
1189
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1190
|
+
const localVarHeaderParameter = {};
|
|
1191
|
+
const localVarQueryParameter = {};
|
|
1192
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1193
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1194
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1195
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1196
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1197
|
+
localVarRequestOptions.data = serializeDataIfNeeded(disableRule, localVarRequestOptions, configuration);
|
|
1198
|
+
return {
|
|
1199
|
+
url: toPathString(localVarUrlObj),
|
|
1200
|
+
options: localVarRequestOptions
|
|
1201
|
+
};
|
|
1202
|
+
},
|
|
1203
|
+
/**
|
|
1204
|
+
* Get a validation rule by ID
|
|
1205
|
+
* @param {string} ruleId
|
|
1206
|
+
* @param {boolean} [includeDeleted]
|
|
1207
|
+
* @param {*} [options] Override http request option.
|
|
1208
|
+
* @throws {RequiredError}
|
|
1209
|
+
*/
|
|
1210
|
+
v4DataValidationRulesRuleIdGet: async (ruleId, includeDeleted, options = {}) => {
|
|
1211
|
+
assertParamExists("v4DataValidationRulesRuleIdGet", "ruleId", ruleId);
|
|
1212
|
+
const localVarPath = `/v4/data-validation/rules/{ruleId}`.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
1213
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1214
|
+
let baseOptions;
|
|
1215
|
+
if (configuration) {
|
|
1216
|
+
baseOptions = configuration.baseOptions;
|
|
1217
|
+
}
|
|
1218
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1219
|
+
const localVarHeaderParameter = {};
|
|
1220
|
+
const localVarQueryParameter = {};
|
|
1221
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1222
|
+
if (includeDeleted !== void 0) {
|
|
1223
|
+
localVarQueryParameter["includeDeleted"] = includeDeleted;
|
|
1224
|
+
}
|
|
1225
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1226
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1227
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1228
|
+
return {
|
|
1229
|
+
url: toPathString(localVarUrlObj),
|
|
1230
|
+
options: localVarRequestOptions
|
|
1231
|
+
};
|
|
1232
|
+
},
|
|
1233
|
+
/**
|
|
1234
|
+
* Update a validation rule
|
|
1235
|
+
* @param {string} ruleId
|
|
1236
|
+
* @param {UpdateRule} [updateRule] Body
|
|
1237
|
+
* @param {*} [options] Override http request option.
|
|
1238
|
+
* @throws {RequiredError}
|
|
1239
|
+
*/
|
|
1240
|
+
v4DataValidationRulesRuleIdPut: async (ruleId, updateRule, options = {}) => {
|
|
1241
|
+
assertParamExists("v4DataValidationRulesRuleIdPut", "ruleId", ruleId);
|
|
1242
|
+
const localVarPath = `/v4/data-validation/rules/{ruleId}`.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
1243
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1244
|
+
let baseOptions;
|
|
1245
|
+
if (configuration) {
|
|
1246
|
+
baseOptions = configuration.baseOptions;
|
|
1247
|
+
}
|
|
1248
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1249
|
+
const localVarHeaderParameter = {};
|
|
1250
|
+
const localVarQueryParameter = {};
|
|
1251
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1252
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1253
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1254
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1255
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1256
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateRule, localVarRequestOptions, configuration);
|
|
1257
|
+
return {
|
|
1258
|
+
url: toPathString(localVarUrlObj),
|
|
1259
|
+
options: localVarRequestOptions
|
|
1260
|
+
};
|
|
1261
|
+
},
|
|
1262
|
+
/**
|
|
1263
|
+
* Get all anomalies for a validation
|
|
1264
|
+
* @summary Get validation anomalies
|
|
1265
|
+
* @param {string} validationId
|
|
1266
|
+
* @param {number} [page]
|
|
1267
|
+
* @param {number} [pageSize]
|
|
1268
|
+
* @param {*} [options] Override http request option.
|
|
1269
|
+
* @throws {RequiredError}
|
|
1270
|
+
*/
|
|
1271
|
+
v4DataValidationValidationsValidationIdAnomaliesGet: async (validationId, page, pageSize, options = {}) => {
|
|
1272
|
+
assertParamExists("v4DataValidationValidationsValidationIdAnomaliesGet", "validationId", validationId);
|
|
1273
|
+
const localVarPath = `/v4/data-validation/validations/{validationId}/anomalies`.replace(`{${"validationId"}}`, encodeURIComponent(String(validationId)));
|
|
1274
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1275
|
+
let baseOptions;
|
|
1276
|
+
if (configuration) {
|
|
1277
|
+
baseOptions = configuration.baseOptions;
|
|
1278
|
+
}
|
|
1279
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1280
|
+
const localVarHeaderParameter = {};
|
|
1281
|
+
const localVarQueryParameter = {};
|
|
1282
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1283
|
+
if (page !== void 0) {
|
|
1284
|
+
localVarQueryParameter["page"] = page;
|
|
1285
|
+
}
|
|
1286
|
+
if (pageSize !== void 0) {
|
|
1287
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
1288
|
+
}
|
|
1289
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1290
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1291
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1292
|
+
return {
|
|
1293
|
+
url: toPathString(localVarUrlObj),
|
|
1294
|
+
options: localVarRequestOptions
|
|
1295
|
+
};
|
|
1296
|
+
},
|
|
1297
|
+
/**
|
|
1298
|
+
* Get anomalies for a specific rule
|
|
1299
|
+
* @summary Get validation anomalies by rule
|
|
1300
|
+
* @param {string} validationId
|
|
1301
|
+
* @param {string} ruleName The rule name (URL encoded)
|
|
1302
|
+
* @param {number} [page]
|
|
1303
|
+
* @param {number} [pageSize]
|
|
1304
|
+
* @param {*} [options] Override http request option.
|
|
1305
|
+
* @throws {RequiredError}
|
|
1306
|
+
*/
|
|
1307
|
+
v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet: async (validationId, ruleName, page, pageSize, options = {}) => {
|
|
1308
|
+
assertParamExists("v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet", "validationId", validationId);
|
|
1309
|
+
assertParamExists("v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet", "ruleName", ruleName);
|
|
1310
|
+
const localVarPath = `/v4/data-validation/validations/{validationId}/anomalies/rules/{ruleName}`.replace(`{${"validationId"}}`, encodeURIComponent(String(validationId))).replace(`{${"ruleName"}}`, encodeURIComponent(String(ruleName)));
|
|
1311
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1312
|
+
let baseOptions;
|
|
1313
|
+
if (configuration) {
|
|
1314
|
+
baseOptions = configuration.baseOptions;
|
|
1315
|
+
}
|
|
1316
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1317
|
+
const localVarHeaderParameter = {};
|
|
1318
|
+
const localVarQueryParameter = {};
|
|
1319
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1320
|
+
if (page !== void 0) {
|
|
1321
|
+
localVarQueryParameter["page"] = page;
|
|
1322
|
+
}
|
|
1323
|
+
if (pageSize !== void 0) {
|
|
1324
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
1325
|
+
}
|
|
1326
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1327
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1328
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1329
|
+
return {
|
|
1330
|
+
url: toPathString(localVarUrlObj),
|
|
1331
|
+
options: localVarRequestOptions
|
|
1332
|
+
};
|
|
1333
|
+
},
|
|
1334
|
+
/**
|
|
1335
|
+
* Get validation details
|
|
1336
|
+
* @summary Get validation details
|
|
1337
|
+
* @param {string} validationId
|
|
1338
|
+
* @param {boolean | null} [includeDryRun] Include dry run validations
|
|
1339
|
+
* @param {*} [options] Override http request option.
|
|
1340
|
+
* @throws {RequiredError}
|
|
1341
|
+
*/
|
|
1342
|
+
v4DataValidationValidationsValidationIdGet: async (validationId, includeDryRun, options = {}) => {
|
|
1343
|
+
assertParamExists("v4DataValidationValidationsValidationIdGet", "validationId", validationId);
|
|
1344
|
+
const localVarPath = `/v4/data-validation/validations/{validationId}`.replace(`{${"validationId"}}`, encodeURIComponent(String(validationId)));
|
|
1345
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1346
|
+
let baseOptions;
|
|
1347
|
+
if (configuration) {
|
|
1348
|
+
baseOptions = configuration.baseOptions;
|
|
1349
|
+
}
|
|
1350
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1351
|
+
const localVarHeaderParameter = {};
|
|
1352
|
+
const localVarQueryParameter = {};
|
|
1353
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1354
|
+
if (includeDryRun !== void 0) {
|
|
1355
|
+
localVarQueryParameter["includeDryRun"] = includeDryRun;
|
|
1356
|
+
}
|
|
1357
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1358
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1359
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1360
|
+
return {
|
|
1361
|
+
url: toPathString(localVarUrlObj),
|
|
1362
|
+
options: localVarRequestOptions
|
|
1363
|
+
};
|
|
1364
|
+
},
|
|
1365
|
+
/**
|
|
1366
|
+
* Schedule a data validation job (alternative path)
|
|
1367
|
+
* @summary Schedule a data validation job (alternative path)
|
|
1368
|
+
* @param {string} workflowId The ID of the workflow to validate
|
|
1369
|
+
* @param {string} jobId The ID of the job to validate
|
|
1370
|
+
* @param {DataValidationRequestBody} [dataValidationRequestBody] Body
|
|
1371
|
+
* @param {*} [options] Override http request option.
|
|
1372
|
+
* @throws {RequiredError}
|
|
1373
|
+
*/
|
|
1374
|
+
v4DataValidationWorkflowIdJobsJobIdValidatePost: async (workflowId, jobId, dataValidationRequestBody, options = {}) => {
|
|
1375
|
+
assertParamExists("v4DataValidationWorkflowIdJobsJobIdValidatePost", "workflowId", workflowId);
|
|
1376
|
+
assertParamExists("v4DataValidationWorkflowIdJobsJobIdValidatePost", "jobId", jobId);
|
|
1377
|
+
const localVarPath = `/v4/data-validation/{workflowId}/jobs/{jobId}/validate`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId))).replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1378
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1379
|
+
let baseOptions;
|
|
1380
|
+
if (configuration) {
|
|
1381
|
+
baseOptions = configuration.baseOptions;
|
|
1382
|
+
}
|
|
1383
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1384
|
+
const localVarHeaderParameter = {};
|
|
1385
|
+
const localVarQueryParameter = {};
|
|
1386
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1387
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1388
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1390
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1391
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataValidationRequestBody, localVarRequestOptions, configuration);
|
|
1392
|
+
return {
|
|
1393
|
+
url: toPathString(localVarUrlObj),
|
|
1394
|
+
options: localVarRequestOptions
|
|
1395
|
+
};
|
|
1396
|
+
},
|
|
1397
|
+
/**
|
|
1398
|
+
* Schedule a data validation job
|
|
1399
|
+
* @summary Schedule a data validation job
|
|
1400
|
+
* @param {string} workflowId The ID of the workflow to validate
|
|
1401
|
+
* @param {string} jobId The ID of the job to validate
|
|
1402
|
+
* @param {DataValidationRequestBody} [dataValidationRequestBody] Body
|
|
1403
|
+
* @param {*} [options] Override http request option.
|
|
1404
|
+
* @throws {RequiredError}
|
|
1405
|
+
*/
|
|
1406
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost: async (workflowId, jobId, dataValidationRequestBody, options = {}) => {
|
|
1407
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost", "workflowId", workflowId);
|
|
1408
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost", "jobId", jobId);
|
|
1409
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/jobs/{jobId}/validate`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId))).replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1410
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1411
|
+
let baseOptions;
|
|
1412
|
+
if (configuration) {
|
|
1413
|
+
baseOptions = configuration.baseOptions;
|
|
1414
|
+
}
|
|
1415
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1416
|
+
const localVarHeaderParameter = {};
|
|
1417
|
+
const localVarQueryParameter = {};
|
|
1418
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1419
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1420
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1421
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1422
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1423
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataValidationRequestBody, localVarRequestOptions, configuration);
|
|
1424
|
+
return {
|
|
1425
|
+
url: toPathString(localVarUrlObj),
|
|
1426
|
+
options: localVarRequestOptions
|
|
1427
|
+
};
|
|
1428
|
+
},
|
|
1429
|
+
/**
|
|
1430
|
+
* List all validations for a job
|
|
1431
|
+
* @summary List all validations for a job
|
|
1432
|
+
* @param {string} workflowId
|
|
1433
|
+
* @param {string} jobId
|
|
1434
|
+
* @param {number} [page]
|
|
1435
|
+
* @param {number} [pageSize]
|
|
1436
|
+
* @param {boolean | null} [includeDryRun] Include dry run validations in results
|
|
1437
|
+
* @param {*} [options] Override http request option.
|
|
1438
|
+
* @throws {RequiredError}
|
|
1439
|
+
*/
|
|
1440
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet: async (workflowId, jobId, page, pageSize, includeDryRun, options = {}) => {
|
|
1441
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet", "workflowId", workflowId);
|
|
1442
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet", "jobId", jobId);
|
|
1443
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/jobs/{jobId}/validations`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId))).replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1444
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1445
|
+
let baseOptions;
|
|
1446
|
+
if (configuration) {
|
|
1447
|
+
baseOptions = configuration.baseOptions;
|
|
1448
|
+
}
|
|
1449
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1450
|
+
const localVarHeaderParameter = {};
|
|
1451
|
+
const localVarQueryParameter = {};
|
|
1452
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1453
|
+
if (page !== void 0) {
|
|
1454
|
+
localVarQueryParameter["page"] = page;
|
|
1455
|
+
}
|
|
1456
|
+
if (pageSize !== void 0) {
|
|
1457
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
1458
|
+
}
|
|
1459
|
+
if (includeDryRun !== void 0) {
|
|
1460
|
+
localVarQueryParameter["includeDryRun"] = includeDryRun;
|
|
1461
|
+
}
|
|
1462
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1463
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1464
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1465
|
+
return {
|
|
1466
|
+
url: toPathString(localVarUrlObj),
|
|
1467
|
+
options: localVarRequestOptions
|
|
1468
|
+
};
|
|
1469
|
+
},
|
|
1470
|
+
/**
|
|
1471
|
+
* Get latest validation for a job
|
|
1472
|
+
* @summary Get latest validation
|
|
1473
|
+
* @param {string} workflowId
|
|
1474
|
+
* @param {string} jobId
|
|
1475
|
+
* @param {boolean | null} [includeDryRun]
|
|
1476
|
+
* @param {*} [options] Override http request option.
|
|
1477
|
+
* @throws {RequiredError}
|
|
1478
|
+
*/
|
|
1479
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet: async (workflowId, jobId, includeDryRun, options = {}) => {
|
|
1480
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet", "workflowId", workflowId);
|
|
1481
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet", "jobId", jobId);
|
|
1482
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/jobs/{jobId}/validations/latest`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId))).replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1483
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1484
|
+
let baseOptions;
|
|
1485
|
+
if (configuration) {
|
|
1486
|
+
baseOptions = configuration.baseOptions;
|
|
1487
|
+
}
|
|
1488
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1489
|
+
const localVarHeaderParameter = {};
|
|
1490
|
+
const localVarQueryParameter = {};
|
|
1491
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1492
|
+
if (includeDryRun !== void 0) {
|
|
1493
|
+
localVarQueryParameter["includeDryRun"] = includeDryRun;
|
|
1494
|
+
}
|
|
1495
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1496
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1497
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1498
|
+
return {
|
|
1499
|
+
url: toPathString(localVarUrlObj),
|
|
1500
|
+
options: localVarRequestOptions
|
|
1501
|
+
};
|
|
1502
|
+
},
|
|
1503
|
+
/**
|
|
1504
|
+
* Retrieves the current data validation configuration for a specific workflow
|
|
1505
|
+
* @summary Get data validation configuration for a workflow
|
|
1506
|
+
* @param {string} workflowId The workflow ID to get validation configuration for
|
|
1507
|
+
* @param {*} [options] Override http request option.
|
|
1508
|
+
* @throws {RequiredError}
|
|
1509
|
+
*/
|
|
1510
|
+
v4DataValidationWorkflowsWorkflowIdValidationConfigGet: async (workflowId, options = {}) => {
|
|
1511
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdValidationConfigGet", "workflowId", workflowId);
|
|
1512
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/validation/config`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId)));
|
|
1513
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1514
|
+
let baseOptions;
|
|
1515
|
+
if (configuration) {
|
|
1516
|
+
baseOptions = configuration.baseOptions;
|
|
1517
|
+
}
|
|
1518
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1519
|
+
const localVarHeaderParameter = {};
|
|
1520
|
+
const localVarQueryParameter = {};
|
|
1521
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1522
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1523
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1524
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1525
|
+
return {
|
|
1526
|
+
url: toPathString(localVarUrlObj),
|
|
1527
|
+
options: localVarRequestOptions
|
|
1528
|
+
};
|
|
1529
|
+
},
|
|
1530
|
+
/**
|
|
1531
|
+
* Updates the complete data validation configuration including alerting settings
|
|
1532
|
+
* @summary Update data validation configuration for a workflow
|
|
1533
|
+
* @param {string} workflowId The workflow ID to update validation configuration for
|
|
1534
|
+
* @param {V4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest} [v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest] Body
|
|
1535
|
+
* @param {*} [options] Override http request option.
|
|
1536
|
+
* @throws {RequiredError}
|
|
1537
|
+
*/
|
|
1538
|
+
v4DataValidationWorkflowsWorkflowIdValidationConfigPut: async (workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options = {}) => {
|
|
1539
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdValidationConfigPut", "workflowId", workflowId);
|
|
1540
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/validation/config`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId)));
|
|
1541
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1542
|
+
let baseOptions;
|
|
1543
|
+
if (configuration) {
|
|
1544
|
+
baseOptions = configuration.baseOptions;
|
|
1545
|
+
}
|
|
1546
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1547
|
+
const localVarHeaderParameter = {};
|
|
1548
|
+
const localVarQueryParameter = {};
|
|
1549
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1550
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1551
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1552
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1553
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1554
|
+
localVarRequestOptions.data = serializeDataIfNeeded(v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, localVarRequestOptions, configuration);
|
|
1555
|
+
return {
|
|
1556
|
+
url: toPathString(localVarUrlObj),
|
|
1557
|
+
options: localVarRequestOptions
|
|
1558
|
+
};
|
|
1559
|
+
},
|
|
1560
|
+
/**
|
|
1561
|
+
* Enables or disables data validation for a specific workflow
|
|
1562
|
+
* @summary Toggle data validation for a workflow
|
|
1563
|
+
* @param {string} workflowId The workflow ID to update validation settings for
|
|
1564
|
+
* @param {V4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest} [v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest] Body
|
|
1565
|
+
* @param {*} [options] Override http request option.
|
|
1566
|
+
* @throws {RequiredError}
|
|
1567
|
+
*/
|
|
1568
|
+
v4DataValidationWorkflowsWorkflowIdValidationTogglePut: async (workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options = {}) => {
|
|
1569
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdValidationTogglePut", "workflowId", workflowId);
|
|
1570
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/validation/toggle`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId)));
|
|
1571
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1572
|
+
let baseOptions;
|
|
1573
|
+
if (configuration) {
|
|
1574
|
+
baseOptions = configuration.baseOptions;
|
|
1575
|
+
}
|
|
1576
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1577
|
+
const localVarHeaderParameter = {};
|
|
1578
|
+
const localVarQueryParameter = {};
|
|
1579
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1580
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1581
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1582
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1583
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1584
|
+
localVarRequestOptions.data = serializeDataIfNeeded(v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, localVarRequestOptions, configuration);
|
|
1585
|
+
return {
|
|
1586
|
+
url: toPathString(localVarUrlObj),
|
|
1587
|
+
options: localVarRequestOptions
|
|
1588
|
+
};
|
|
1589
|
+
},
|
|
1590
|
+
/**
|
|
1591
|
+
* Get latest validation for the most recent job of a workflow
|
|
1592
|
+
* @summary Get latest workflow validation
|
|
1593
|
+
* @param {string} workflowId
|
|
1594
|
+
* @param {boolean | null} [includeDryRun]
|
|
1595
|
+
* @param {*} [options] Override http request option.
|
|
1596
|
+
* @throws {RequiredError}
|
|
1597
|
+
*/
|
|
1598
|
+
v4DataValidationWorkflowsWorkflowIdValidationsLatestGet: async (workflowId, includeDryRun, options = {}) => {
|
|
1599
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdValidationsLatestGet", "workflowId", workflowId);
|
|
1600
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/validations/latest`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId)));
|
|
1601
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
1602
|
+
let baseOptions;
|
|
1603
|
+
if (configuration) {
|
|
1604
|
+
baseOptions = configuration.baseOptions;
|
|
1605
|
+
}
|
|
1606
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1607
|
+
const localVarHeaderParameter = {};
|
|
1608
|
+
const localVarQueryParameter = {};
|
|
1609
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1610
|
+
if (includeDryRun !== void 0) {
|
|
1611
|
+
localVarQueryParameter["includeDryRun"] = includeDryRun;
|
|
1612
|
+
}
|
|
1613
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1614
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1615
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1616
|
+
return {
|
|
1617
|
+
url: toPathString(localVarUrlObj),
|
|
1618
|
+
options: localVarRequestOptions
|
|
1619
|
+
};
|
|
1620
|
+
}
|
|
1621
|
+
};
|
|
1622
|
+
};
|
|
1623
|
+
var DataValidationApiFp = function(configuration) {
|
|
1624
|
+
const localVarAxiosParamCreator = DataValidationApiAxiosParamCreator(configuration);
|
|
1625
|
+
return {
|
|
1626
|
+
/**
|
|
1627
|
+
* Bulk approve preview rules for a workflow
|
|
1628
|
+
* @param {BulkApproveRules} [bulkApproveRules] Body
|
|
1629
|
+
* @param {*} [options] Override http request option.
|
|
1630
|
+
* @throws {RequiredError}
|
|
1631
|
+
*/
|
|
1632
|
+
async v4DataValidationRulesActionsBulkApprovePost(bulkApproveRules, options) {
|
|
1633
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkApprovePost(bulkApproveRules, options);
|
|
1634
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1635
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkApprovePost"]?.[localVarOperationServerIndex]?.url;
|
|
1636
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1637
|
+
},
|
|
1638
|
+
/**
|
|
1639
|
+
* Bulk delete rules for a workflow
|
|
1640
|
+
* @param {BulkDeleteRules} [bulkDeleteRules] Body
|
|
1641
|
+
* @param {*} [options] Override http request option.
|
|
1642
|
+
* @throws {RequiredError}
|
|
1643
|
+
*/
|
|
1644
|
+
async v4DataValidationRulesActionsBulkDeletePost(bulkDeleteRules, options) {
|
|
1645
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkDeletePost(bulkDeleteRules, options);
|
|
1646
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1647
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkDeletePost"]?.[localVarOperationServerIndex]?.url;
|
|
1648
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1649
|
+
},
|
|
1650
|
+
/**
|
|
1651
|
+
* Delete all validation rules with optional filtering
|
|
1652
|
+
* @param {string} [workflowId]
|
|
1653
|
+
* @param {DeleteRuleWithReason} [deleteRuleWithReason] Body
|
|
1654
|
+
* @param {*} [options] Override http request option.
|
|
1655
|
+
* @throws {RequiredError}
|
|
1656
|
+
*/
|
|
1657
|
+
async v4DataValidationRulesActionsDeleteAllDelete(workflowId, deleteRuleWithReason, options) {
|
|
1658
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsDeleteAllDelete(workflowId, deleteRuleWithReason, options);
|
|
1659
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1660
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsDeleteAllDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1661
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1662
|
+
},
|
|
1663
|
+
/**
|
|
1664
|
+
* Generate a validation rule
|
|
1665
|
+
* @param {GenerateRule} [generateRule] Body
|
|
1666
|
+
* @param {*} [options] Override http request option.
|
|
1667
|
+
* @throws {RequiredError}
|
|
1668
|
+
*/
|
|
1669
|
+
async v4DataValidationRulesActionsGeneratePost(generateRule, options) {
|
|
1670
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGeneratePost(generateRule, options);
|
|
1671
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1672
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGeneratePost"]?.[localVarOperationServerIndex]?.url;
|
|
1673
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1674
|
+
},
|
|
1675
|
+
/**
|
|
1676
|
+
* Generate multiple validation rules
|
|
1677
|
+
* @param {GenerateRules} [generateRules] Body
|
|
1678
|
+
* @param {*} [options] Override http request option.
|
|
1679
|
+
* @throws {RequiredError}
|
|
1680
|
+
*/
|
|
1681
|
+
async v4DataValidationRulesActionsGenerateRulesPost(generateRules, options) {
|
|
1682
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGenerateRulesPost(generateRules, options);
|
|
1683
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1684
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGenerateRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
1685
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1686
|
+
},
|
|
1687
|
+
/**
|
|
1688
|
+
* List validation rules with optional filtering
|
|
1689
|
+
* @param {string} [groupId]
|
|
1690
|
+
* @param {string} [workflowId]
|
|
1691
|
+
* @param {ValidationRuleStatus} [status]
|
|
1692
|
+
* @param {number} [page]
|
|
1693
|
+
* @param {number} [pageSize]
|
|
1694
|
+
* @param {V4DataValidationRulesGetIncludeDeletedParameter} [includeDeleted]
|
|
1695
|
+
* @param {*} [options] Override http request option.
|
|
1696
|
+
* @throws {RequiredError}
|
|
1697
|
+
*/
|
|
1698
|
+
async v4DataValidationRulesGet(groupId, workflowId, status, page, pageSize, includeDeleted, options) {
|
|
1699
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesGet(groupId, workflowId, status, page, pageSize, includeDeleted, options);
|
|
1700
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1701
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1702
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1703
|
+
},
|
|
1704
|
+
/**
|
|
1705
|
+
* Create a new validation rule
|
|
1706
|
+
* @param {CreateRule} [createRule] Body
|
|
1707
|
+
* @param {*} [options] Override http request option.
|
|
1708
|
+
* @throws {RequiredError}
|
|
1709
|
+
*/
|
|
1710
|
+
async v4DataValidationRulesPost(createRule, options) {
|
|
1711
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesPost(createRule, options);
|
|
1712
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1713
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
1714
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1715
|
+
},
|
|
1716
|
+
/**
|
|
1717
|
+
* Delete a validation rule with reason
|
|
1718
|
+
* @param {string} ruleId
|
|
1719
|
+
* @param {DeleteRuleWithReason} [deleteRuleWithReason] Body
|
|
1720
|
+
* @param {*} [options] Override http request option.
|
|
1721
|
+
* @throws {RequiredError}
|
|
1722
|
+
*/
|
|
1723
|
+
async v4DataValidationRulesRuleIdDelete(ruleId, deleteRuleWithReason, options) {
|
|
1724
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDelete(ruleId, deleteRuleWithReason, options);
|
|
1725
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1726
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1727
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1728
|
+
},
|
|
1729
|
+
/**
|
|
1730
|
+
* Disable a validation rule with reason
|
|
1731
|
+
* @param {string} ruleId
|
|
1732
|
+
* @param {DisableRule} [disableRule] Body
|
|
1733
|
+
* @param {*} [options] Override http request option.
|
|
1734
|
+
* @throws {RequiredError}
|
|
1735
|
+
*/
|
|
1736
|
+
async v4DataValidationRulesRuleIdDisablePost(ruleId, disableRule, options) {
|
|
1737
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDisablePost(ruleId, disableRule, options);
|
|
1738
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1739
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDisablePost"]?.[localVarOperationServerIndex]?.url;
|
|
1740
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1741
|
+
},
|
|
1742
|
+
/**
|
|
1743
|
+
* Get a validation rule by ID
|
|
1744
|
+
* @param {string} ruleId
|
|
1745
|
+
* @param {boolean} [includeDeleted]
|
|
1746
|
+
* @param {*} [options] Override http request option.
|
|
1747
|
+
* @throws {RequiredError}
|
|
1748
|
+
*/
|
|
1749
|
+
async v4DataValidationRulesRuleIdGet(ruleId, includeDeleted, options) {
|
|
1750
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdGet(ruleId, includeDeleted, options);
|
|
1751
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1752
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1753
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1754
|
+
},
|
|
1755
|
+
/**
|
|
1756
|
+
* Update a validation rule
|
|
1757
|
+
* @param {string} ruleId
|
|
1758
|
+
* @param {UpdateRule} [updateRule] Body
|
|
1759
|
+
* @param {*} [options] Override http request option.
|
|
1760
|
+
* @throws {RequiredError}
|
|
1761
|
+
*/
|
|
1762
|
+
async v4DataValidationRulesRuleIdPut(ruleId, updateRule, options) {
|
|
1763
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdPut(ruleId, updateRule, options);
|
|
1764
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1765
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1766
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1767
|
+
},
|
|
1768
|
+
/**
|
|
1769
|
+
* Get all anomalies for a validation
|
|
1770
|
+
* @summary Get validation anomalies
|
|
1771
|
+
* @param {string} validationId
|
|
1772
|
+
* @param {number} [page]
|
|
1773
|
+
* @param {number} [pageSize]
|
|
1774
|
+
* @param {*} [options] Override http request option.
|
|
1775
|
+
* @throws {RequiredError}
|
|
1776
|
+
*/
|
|
1777
|
+
async v4DataValidationValidationsValidationIdAnomaliesGet(validationId, page, pageSize, options) {
|
|
1778
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesGet(validationId, page, pageSize, options);
|
|
1779
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1780
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1781
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1782
|
+
},
|
|
1783
|
+
/**
|
|
1784
|
+
* Get anomalies for a specific rule
|
|
1785
|
+
* @summary Get validation anomalies by rule
|
|
1786
|
+
* @param {string} validationId
|
|
1787
|
+
* @param {string} ruleName The rule name (URL encoded)
|
|
1788
|
+
* @param {number} [page]
|
|
1789
|
+
* @param {number} [pageSize]
|
|
1790
|
+
* @param {*} [options] Override http request option.
|
|
1791
|
+
* @throws {RequiredError}
|
|
1792
|
+
*/
|
|
1793
|
+
async v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(validationId, ruleName, page, pageSize, options) {
|
|
1794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(validationId, ruleName, page, pageSize, options);
|
|
1795
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1796
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet"]?.[localVarOperationServerIndex]?.url;
|
|
1797
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1798
|
+
},
|
|
1799
|
+
/**
|
|
1800
|
+
* Get validation details
|
|
1801
|
+
* @summary Get validation details
|
|
1802
|
+
* @param {string} validationId
|
|
1803
|
+
* @param {boolean | null} [includeDryRun] Include dry run validations
|
|
1804
|
+
* @param {*} [options] Override http request option.
|
|
1805
|
+
* @throws {RequiredError}
|
|
1806
|
+
*/
|
|
1807
|
+
async v4DataValidationValidationsValidationIdGet(validationId, includeDryRun, options) {
|
|
1808
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdGet(validationId, includeDryRun, options);
|
|
1809
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1810
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1811
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1812
|
+
},
|
|
1813
|
+
/**
|
|
1814
|
+
* Schedule a data validation job (alternative path)
|
|
1815
|
+
* @summary Schedule a data validation job (alternative path)
|
|
1816
|
+
* @param {string} workflowId The ID of the workflow to validate
|
|
1817
|
+
* @param {string} jobId The ID of the job to validate
|
|
1818
|
+
* @param {DataValidationRequestBody} [dataValidationRequestBody] Body
|
|
1819
|
+
* @param {*} [options] Override http request option.
|
|
1820
|
+
* @throws {RequiredError}
|
|
1821
|
+
*/
|
|
1822
|
+
async v4DataValidationWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options) {
|
|
1823
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
1824
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1825
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
1826
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1827
|
+
},
|
|
1828
|
+
/**
|
|
1829
|
+
* Schedule a data validation job
|
|
1830
|
+
* @summary Schedule a data validation job
|
|
1831
|
+
* @param {string} workflowId The ID of the workflow to validate
|
|
1832
|
+
* @param {string} jobId The ID of the job to validate
|
|
1833
|
+
* @param {DataValidationRequestBody} [dataValidationRequestBody] Body
|
|
1834
|
+
* @param {*} [options] Override http request option.
|
|
1835
|
+
* @throws {RequiredError}
|
|
1836
|
+
*/
|
|
1837
|
+
async v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options) {
|
|
1838
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
1839
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1840
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
1841
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1842
|
+
},
|
|
1843
|
+
/**
|
|
1844
|
+
* List all validations for a job
|
|
1845
|
+
* @summary List all validations for a job
|
|
1846
|
+
* @param {string} workflowId
|
|
1847
|
+
* @param {string} jobId
|
|
1848
|
+
* @param {number} [page]
|
|
1849
|
+
* @param {number} [pageSize]
|
|
1850
|
+
* @param {boolean | null} [includeDryRun] Include dry run validations in results
|
|
1851
|
+
* @param {*} [options] Override http request option.
|
|
1852
|
+
* @throws {RequiredError}
|
|
1853
|
+
*/
|
|
1854
|
+
async v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(workflowId, jobId, page, pageSize, includeDryRun, options) {
|
|
1855
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(workflowId, jobId, page, pageSize, includeDryRun, options);
|
|
1856
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1857
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1858
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1859
|
+
},
|
|
1860
|
+
/**
|
|
1861
|
+
* Get latest validation for a job
|
|
1862
|
+
* @summary Get latest validation
|
|
1863
|
+
* @param {string} workflowId
|
|
1864
|
+
* @param {string} jobId
|
|
1865
|
+
* @param {boolean | null} [includeDryRun]
|
|
1866
|
+
* @param {*} [options] Override http request option.
|
|
1867
|
+
* @throws {RequiredError}
|
|
1868
|
+
*/
|
|
1869
|
+
async v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(workflowId, jobId, includeDryRun, options) {
|
|
1870
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(workflowId, jobId, includeDryRun, options);
|
|
1871
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1872
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1873
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1874
|
+
},
|
|
1875
|
+
/**
|
|
1876
|
+
* Retrieves the current data validation configuration for a specific workflow
|
|
1877
|
+
* @summary Get data validation configuration for a workflow
|
|
1878
|
+
* @param {string} workflowId The workflow ID to get validation configuration for
|
|
1879
|
+
* @param {*} [options] Override http request option.
|
|
1880
|
+
* @throws {RequiredError}
|
|
1881
|
+
*/
|
|
1882
|
+
async v4DataValidationWorkflowsWorkflowIdValidationConfigGet(workflowId, options) {
|
|
1883
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigGet(workflowId, options);
|
|
1884
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1885
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigGet"]?.[localVarOperationServerIndex]?.url;
|
|
1886
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1887
|
+
},
|
|
1888
|
+
/**
|
|
1889
|
+
* Updates the complete data validation configuration including alerting settings
|
|
1890
|
+
* @summary Update data validation configuration for a workflow
|
|
1891
|
+
* @param {string} workflowId The workflow ID to update validation configuration for
|
|
1892
|
+
* @param {V4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest} [v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest] Body
|
|
1893
|
+
* @param {*} [options] Override http request option.
|
|
1894
|
+
* @throws {RequiredError}
|
|
1895
|
+
*/
|
|
1896
|
+
async v4DataValidationWorkflowsWorkflowIdValidationConfigPut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options) {
|
|
1897
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigPut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options);
|
|
1898
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1899
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigPut"]?.[localVarOperationServerIndex]?.url;
|
|
1900
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1901
|
+
},
|
|
1902
|
+
/**
|
|
1903
|
+
* Enables or disables data validation for a specific workflow
|
|
1904
|
+
* @summary Toggle data validation for a workflow
|
|
1905
|
+
* @param {string} workflowId The workflow ID to update validation settings for
|
|
1906
|
+
* @param {V4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest} [v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest] Body
|
|
1907
|
+
* @param {*} [options] Override http request option.
|
|
1908
|
+
* @throws {RequiredError}
|
|
1909
|
+
*/
|
|
1910
|
+
async v4DataValidationWorkflowsWorkflowIdValidationTogglePut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options) {
|
|
1911
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationTogglePut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options);
|
|
1912
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1913
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationTogglePut"]?.[localVarOperationServerIndex]?.url;
|
|
1914
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1915
|
+
},
|
|
1916
|
+
/**
|
|
1917
|
+
* Get latest validation for the most recent job of a workflow
|
|
1918
|
+
* @summary Get latest workflow validation
|
|
1919
|
+
* @param {string} workflowId
|
|
1920
|
+
* @param {boolean | null} [includeDryRun]
|
|
1921
|
+
* @param {*} [options] Override http request option.
|
|
1922
|
+
* @throws {RequiredError}
|
|
1923
|
+
*/
|
|
1924
|
+
async v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(workflowId, includeDryRun, options) {
|
|
1925
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(workflowId, includeDryRun, options);
|
|
1926
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1927
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1928
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1929
|
+
}
|
|
1930
|
+
};
|
|
1931
|
+
};
|
|
1932
|
+
var DataValidationApi = class extends BaseAPI {
|
|
1933
|
+
/**
|
|
1934
|
+
* Bulk approve preview rules for a workflow
|
|
1935
|
+
* @param {DataValidationApiV4DataValidationRulesActionsBulkApprovePostRequest} requestParameters Request parameters.
|
|
1936
|
+
* @param {*} [options] Override http request option.
|
|
1937
|
+
* @throws {RequiredError}
|
|
1938
|
+
* @memberof DataValidationApi
|
|
1939
|
+
*/
|
|
1940
|
+
v4DataValidationRulesActionsBulkApprovePost(requestParameters = {}, options) {
|
|
1941
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsBulkApprovePost(requestParameters.bulkApproveRules, options).then((request) => request(this.axios, this.basePath));
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
* Bulk delete rules for a workflow
|
|
1945
|
+
* @param {DataValidationApiV4DataValidationRulesActionsBulkDeletePostRequest} requestParameters Request parameters.
|
|
1946
|
+
* @param {*} [options] Override http request option.
|
|
1947
|
+
* @throws {RequiredError}
|
|
1948
|
+
* @memberof DataValidationApi
|
|
1949
|
+
*/
|
|
1950
|
+
v4DataValidationRulesActionsBulkDeletePost(requestParameters = {}, options) {
|
|
1951
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsBulkDeletePost(requestParameters.bulkDeleteRules, options).then((request) => request(this.axios, this.basePath));
|
|
1952
|
+
}
|
|
1953
|
+
/**
|
|
1954
|
+
* Delete all validation rules with optional filtering
|
|
1955
|
+
* @param {DataValidationApiV4DataValidationRulesActionsDeleteAllDeleteRequest} requestParameters Request parameters.
|
|
1956
|
+
* @param {*} [options] Override http request option.
|
|
1957
|
+
* @throws {RequiredError}
|
|
1958
|
+
* @memberof DataValidationApi
|
|
1959
|
+
*/
|
|
1960
|
+
v4DataValidationRulesActionsDeleteAllDelete(requestParameters = {}, options) {
|
|
1961
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsDeleteAllDelete(requestParameters.workflowId, requestParameters.deleteRuleWithReason, options).then((request) => request(this.axios, this.basePath));
|
|
1962
|
+
}
|
|
1963
|
+
/**
|
|
1964
|
+
* Generate a validation rule
|
|
1965
|
+
* @param {DataValidationApiV4DataValidationRulesActionsGeneratePostRequest} requestParameters Request parameters.
|
|
1966
|
+
* @param {*} [options] Override http request option.
|
|
1967
|
+
* @throws {RequiredError}
|
|
1968
|
+
* @memberof DataValidationApi
|
|
1969
|
+
*/
|
|
1970
|
+
v4DataValidationRulesActionsGeneratePost(requestParameters = {}, options) {
|
|
1971
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsGeneratePost(requestParameters.generateRule, options).then((request) => request(this.axios, this.basePath));
|
|
1972
|
+
}
|
|
1973
|
+
/**
|
|
1974
|
+
* Generate multiple validation rules
|
|
1975
|
+
* @param {DataValidationApiV4DataValidationRulesActionsGenerateRulesPostRequest} requestParameters Request parameters.
|
|
1976
|
+
* @param {*} [options] Override http request option.
|
|
1977
|
+
* @throws {RequiredError}
|
|
1978
|
+
* @memberof DataValidationApi
|
|
1979
|
+
*/
|
|
1980
|
+
v4DataValidationRulesActionsGenerateRulesPost(requestParameters = {}, options) {
|
|
1981
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsGenerateRulesPost(requestParameters.generateRules, options).then((request) => request(this.axios, this.basePath));
|
|
1982
|
+
}
|
|
1983
|
+
/**
|
|
1984
|
+
* List validation rules with optional filtering
|
|
1985
|
+
* @param {DataValidationApiV4DataValidationRulesGetRequest} requestParameters Request parameters.
|
|
1986
|
+
* @param {*} [options] Override http request option.
|
|
1987
|
+
* @throws {RequiredError}
|
|
1988
|
+
* @memberof DataValidationApi
|
|
1989
|
+
*/
|
|
1990
|
+
v4DataValidationRulesGet(requestParameters = {}, options) {
|
|
1991
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesGet(requestParameters.groupId, requestParameters.workflowId, requestParameters.status, requestParameters.page, requestParameters.pageSize, requestParameters.includeDeleted, options).then((request) => request(this.axios, this.basePath));
|
|
1992
|
+
}
|
|
1993
|
+
/**
|
|
1994
|
+
* Create a new validation rule
|
|
1995
|
+
* @param {DataValidationApiV4DataValidationRulesPostRequest} requestParameters Request parameters.
|
|
1996
|
+
* @param {*} [options] Override http request option.
|
|
1997
|
+
* @throws {RequiredError}
|
|
1998
|
+
* @memberof DataValidationApi
|
|
1999
|
+
*/
|
|
2000
|
+
v4DataValidationRulesPost(requestParameters = {}, options) {
|
|
2001
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesPost(requestParameters.createRule, options).then((request) => request(this.axios, this.basePath));
|
|
2002
|
+
}
|
|
2003
|
+
/**
|
|
2004
|
+
* Delete a validation rule with reason
|
|
2005
|
+
* @param {DataValidationApiV4DataValidationRulesRuleIdDeleteRequest} requestParameters Request parameters.
|
|
2006
|
+
* @param {*} [options] Override http request option.
|
|
2007
|
+
* @throws {RequiredError}
|
|
2008
|
+
* @memberof DataValidationApi
|
|
2009
|
+
*/
|
|
2010
|
+
v4DataValidationRulesRuleIdDelete(requestParameters, options) {
|
|
2011
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesRuleIdDelete(requestParameters.ruleId, requestParameters.deleteRuleWithReason, options).then((request) => request(this.axios, this.basePath));
|
|
2012
|
+
}
|
|
2013
|
+
/**
|
|
2014
|
+
* Disable a validation rule with reason
|
|
2015
|
+
* @param {DataValidationApiV4DataValidationRulesRuleIdDisablePostRequest} requestParameters Request parameters.
|
|
2016
|
+
* @param {*} [options] Override http request option.
|
|
2017
|
+
* @throws {RequiredError}
|
|
2018
|
+
* @memberof DataValidationApi
|
|
2019
|
+
*/
|
|
2020
|
+
v4DataValidationRulesRuleIdDisablePost(requestParameters, options) {
|
|
2021
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesRuleIdDisablePost(requestParameters.ruleId, requestParameters.disableRule, options).then((request) => request(this.axios, this.basePath));
|
|
2022
|
+
}
|
|
2023
|
+
/**
|
|
2024
|
+
* Get a validation rule by ID
|
|
2025
|
+
* @param {DataValidationApiV4DataValidationRulesRuleIdGetRequest} requestParameters Request parameters.
|
|
2026
|
+
* @param {*} [options] Override http request option.
|
|
2027
|
+
* @throws {RequiredError}
|
|
2028
|
+
* @memberof DataValidationApi
|
|
2029
|
+
*/
|
|
2030
|
+
v4DataValidationRulesRuleIdGet(requestParameters, options) {
|
|
2031
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesRuleIdGet(requestParameters.ruleId, requestParameters.includeDeleted, options).then((request) => request(this.axios, this.basePath));
|
|
2032
|
+
}
|
|
2033
|
+
/**
|
|
2034
|
+
* Update a validation rule
|
|
2035
|
+
* @param {DataValidationApiV4DataValidationRulesRuleIdPutRequest} requestParameters Request parameters.
|
|
2036
|
+
* @param {*} [options] Override http request option.
|
|
2037
|
+
* @throws {RequiredError}
|
|
2038
|
+
* @memberof DataValidationApi
|
|
2039
|
+
*/
|
|
2040
|
+
v4DataValidationRulesRuleIdPut(requestParameters, options) {
|
|
2041
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesRuleIdPut(requestParameters.ruleId, requestParameters.updateRule, options).then((request) => request(this.axios, this.basePath));
|
|
2042
|
+
}
|
|
2043
|
+
/**
|
|
2044
|
+
* Get all anomalies for a validation
|
|
2045
|
+
* @summary Get validation anomalies
|
|
2046
|
+
* @param {DataValidationApiV4DataValidationValidationsValidationIdAnomaliesGetRequest} requestParameters Request parameters.
|
|
2047
|
+
* @param {*} [options] Override http request option.
|
|
2048
|
+
* @throws {RequiredError}
|
|
2049
|
+
* @memberof DataValidationApi
|
|
2050
|
+
*/
|
|
2051
|
+
v4DataValidationValidationsValidationIdAnomaliesGet(requestParameters, options) {
|
|
2052
|
+
return DataValidationApiFp(this.configuration).v4DataValidationValidationsValidationIdAnomaliesGet(requestParameters.validationId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2053
|
+
}
|
|
2054
|
+
/**
|
|
2055
|
+
* Get anomalies for a specific rule
|
|
2056
|
+
* @summary Get validation anomalies by rule
|
|
2057
|
+
* @param {DataValidationApiV4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGetRequest} requestParameters Request parameters.
|
|
2058
|
+
* @param {*} [options] Override http request option.
|
|
2059
|
+
* @throws {RequiredError}
|
|
2060
|
+
* @memberof DataValidationApi
|
|
2061
|
+
*/
|
|
2062
|
+
v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(requestParameters, options) {
|
|
2063
|
+
return DataValidationApiFp(this.configuration).v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(requestParameters.validationId, requestParameters.ruleName, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2064
|
+
}
|
|
2065
|
+
/**
|
|
2066
|
+
* Get validation details
|
|
2067
|
+
* @summary Get validation details
|
|
2068
|
+
* @param {DataValidationApiV4DataValidationValidationsValidationIdGetRequest} requestParameters Request parameters.
|
|
2069
|
+
* @param {*} [options] Override http request option.
|
|
2070
|
+
* @throws {RequiredError}
|
|
2071
|
+
* @memberof DataValidationApi
|
|
2072
|
+
*/
|
|
2073
|
+
v4DataValidationValidationsValidationIdGet(requestParameters, options) {
|
|
2074
|
+
return DataValidationApiFp(this.configuration).v4DataValidationValidationsValidationIdGet(requestParameters.validationId, requestParameters.includeDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
2075
|
+
}
|
|
2076
|
+
/**
|
|
2077
|
+
* Schedule a data validation job (alternative path)
|
|
2078
|
+
* @summary Schedule a data validation job (alternative path)
|
|
2079
|
+
* @param {DataValidationApiV4DataValidationWorkflowIdJobsJobIdValidatePostRequest} requestParameters Request parameters.
|
|
2080
|
+
* @param {*} [options] Override http request option.
|
|
2081
|
+
* @throws {RequiredError}
|
|
2082
|
+
* @memberof DataValidationApi
|
|
2083
|
+
*/
|
|
2084
|
+
v4DataValidationWorkflowIdJobsJobIdValidatePost(requestParameters, options) {
|
|
2085
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowIdJobsJobIdValidatePost(requestParameters.workflowId, requestParameters.jobId, requestParameters.dataValidationRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2086
|
+
}
|
|
2087
|
+
/**
|
|
2088
|
+
* Schedule a data validation job
|
|
2089
|
+
* @summary Schedule a data validation job
|
|
2090
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePostRequest} requestParameters Request parameters.
|
|
2091
|
+
* @param {*} [options] Override http request option.
|
|
2092
|
+
* @throws {RequiredError}
|
|
2093
|
+
* @memberof DataValidationApi
|
|
2094
|
+
*/
|
|
2095
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(requestParameters, options) {
|
|
2096
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(requestParameters.workflowId, requestParameters.jobId, requestParameters.dataValidationRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2097
|
+
}
|
|
2098
|
+
/**
|
|
2099
|
+
* List all validations for a job
|
|
2100
|
+
* @summary List all validations for a job
|
|
2101
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGetRequest} requestParameters Request parameters.
|
|
2102
|
+
* @param {*} [options] Override http request option.
|
|
2103
|
+
* @throws {RequiredError}
|
|
2104
|
+
* @memberof DataValidationApi
|
|
2105
|
+
*/
|
|
2106
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(requestParameters, options) {
|
|
2107
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(requestParameters.workflowId, requestParameters.jobId, requestParameters.page, requestParameters.pageSize, requestParameters.includeDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
2108
|
+
}
|
|
2109
|
+
/**
|
|
2110
|
+
* Get latest validation for a job
|
|
2111
|
+
* @summary Get latest validation
|
|
2112
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGetRequest} requestParameters Request parameters.
|
|
2113
|
+
* @param {*} [options] Override http request option.
|
|
2114
|
+
* @throws {RequiredError}
|
|
2115
|
+
* @memberof DataValidationApi
|
|
2116
|
+
*/
|
|
2117
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(requestParameters, options) {
|
|
2118
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(requestParameters.workflowId, requestParameters.jobId, requestParameters.includeDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
2119
|
+
}
|
|
2120
|
+
/**
|
|
2121
|
+
* Retrieves the current data validation configuration for a specific workflow
|
|
2122
|
+
* @summary Get data validation configuration for a workflow
|
|
2123
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdValidationConfigGetRequest} requestParameters Request parameters.
|
|
2124
|
+
* @param {*} [options] Override http request option.
|
|
2125
|
+
* @throws {RequiredError}
|
|
2126
|
+
* @memberof DataValidationApi
|
|
2127
|
+
*/
|
|
2128
|
+
v4DataValidationWorkflowsWorkflowIdValidationConfigGet(requestParameters, options) {
|
|
2129
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdValidationConfigGet(requestParameters.workflowId, options).then((request) => request(this.axios, this.basePath));
|
|
2130
|
+
}
|
|
2131
|
+
/**
|
|
2132
|
+
* Updates the complete data validation configuration including alerting settings
|
|
2133
|
+
* @summary Update data validation configuration for a workflow
|
|
2134
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest} requestParameters Request parameters.
|
|
2135
|
+
* @param {*} [options] Override http request option.
|
|
2136
|
+
* @throws {RequiredError}
|
|
2137
|
+
* @memberof DataValidationApi
|
|
2138
|
+
*/
|
|
2139
|
+
v4DataValidationWorkflowsWorkflowIdValidationConfigPut(requestParameters, options) {
|
|
2140
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdValidationConfigPut(requestParameters.workflowId, requestParameters.v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2141
|
+
}
|
|
2142
|
+
/**
|
|
2143
|
+
* Enables or disables data validation for a specific workflow
|
|
2144
|
+
* @summary Toggle data validation for a workflow
|
|
2145
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest} requestParameters Request parameters.
|
|
2146
|
+
* @param {*} [options] Override http request option.
|
|
2147
|
+
* @throws {RequiredError}
|
|
2148
|
+
* @memberof DataValidationApi
|
|
2149
|
+
*/
|
|
2150
|
+
v4DataValidationWorkflowsWorkflowIdValidationTogglePut(requestParameters, options) {
|
|
2151
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdValidationTogglePut(requestParameters.workflowId, requestParameters.v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2152
|
+
}
|
|
2153
|
+
/**
|
|
2154
|
+
* Get latest validation for the most recent job of a workflow
|
|
2155
|
+
* @summary Get latest workflow validation
|
|
2156
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdValidationsLatestGetRequest} requestParameters Request parameters.
|
|
2157
|
+
* @param {*} [options] Override http request option.
|
|
2158
|
+
* @throws {RequiredError}
|
|
2159
|
+
* @memberof DataValidationApi
|
|
2160
|
+
*/
|
|
2161
|
+
v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(requestParameters, options) {
|
|
2162
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(requestParameters.workflowId, requestParameters.includeDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
2163
|
+
}
|
|
2164
|
+
};
|
|
927
2165
|
var NotificationsApiAxiosParamCreator = function(configuration) {
|
|
928
2166
|
return {
|
|
929
2167
|
/**
|
|
@@ -1362,7 +2600,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1362
2600
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdDelete(channelId, options);
|
|
1363
2601
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1364
2602
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1365
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2603
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1366
2604
|
},
|
|
1367
2605
|
/**
|
|
1368
2606
|
*
|
|
@@ -1375,7 +2613,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1375
2613
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdGet(channelId, options);
|
|
1376
2614
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1377
2615
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1378
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2616
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1379
2617
|
},
|
|
1380
2618
|
/**
|
|
1381
2619
|
*
|
|
@@ -1389,7 +2627,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1389
2627
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdPut(channelId, v5NotificationsChannelsPostRequest, options);
|
|
1390
2628
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1391
2629
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1392
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2630
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1393
2631
|
},
|
|
1394
2632
|
/**
|
|
1395
2633
|
*
|
|
@@ -1402,7 +2640,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1402
2640
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsGet(workflowId, options);
|
|
1403
2641
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1404
2642
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1405
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2643
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1406
2644
|
},
|
|
1407
2645
|
/**
|
|
1408
2646
|
*
|
|
@@ -1415,7 +2653,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1415
2653
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsPost(v5NotificationsChannelsPostRequest, options);
|
|
1416
2654
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1417
2655
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1418
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2656
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1419
2657
|
},
|
|
1420
2658
|
/**
|
|
1421
2659
|
*
|
|
@@ -1428,7 +2666,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1428
2666
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesEventTypeGet(eventType, options);
|
|
1429
2667
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1430
2668
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesEventTypeGet"]?.[localVarOperationServerIndex]?.url;
|
|
1431
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2669
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1432
2670
|
},
|
|
1433
2671
|
/**
|
|
1434
2672
|
*
|
|
@@ -1440,7 +2678,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1440
2678
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesGet(options);
|
|
1441
2679
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1442
2680
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1443
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2681
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1444
2682
|
},
|
|
1445
2683
|
/**
|
|
1446
2684
|
*
|
|
@@ -1458,7 +2696,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1458
2696
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsLogsGet(workflowId, eventType, startDate, endDate, limit, offset, options);
|
|
1459
2697
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1460
2698
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsLogsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1461
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2699
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1462
2700
|
},
|
|
1463
2701
|
/**
|
|
1464
2702
|
*
|
|
@@ -1472,7 +2710,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1472
2710
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsGet(workflowId, eventType, options);
|
|
1473
2711
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1474
2712
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1475
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2713
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1476
2714
|
},
|
|
1477
2715
|
/**
|
|
1478
2716
|
*
|
|
@@ -1485,7 +2723,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1485
2723
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsPost(v5NotificationsSettingsPostRequest, options);
|
|
1486
2724
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1487
2725
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1488
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2726
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1489
2727
|
},
|
|
1490
2728
|
/**
|
|
1491
2729
|
*
|
|
@@ -1498,7 +2736,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1498
2736
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdDelete(settingsId, options);
|
|
1499
2737
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1500
2738
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1501
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2739
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1502
2740
|
},
|
|
1503
2741
|
/**
|
|
1504
2742
|
*
|
|
@@ -1511,7 +2749,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1511
2749
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdGet(settingsId, options);
|
|
1512
2750
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1513
2751
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1514
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2752
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1515
2753
|
},
|
|
1516
2754
|
/**
|
|
1517
2755
|
*
|
|
@@ -1525,7 +2763,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1525
2763
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdPut(settingsId, v5NotificationsSettingsSettingsIdPutRequest, options);
|
|
1526
2764
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1527
2765
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1528
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2766
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1529
2767
|
},
|
|
1530
2768
|
/**
|
|
1531
2769
|
*
|
|
@@ -1538,7 +2776,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1538
2776
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsTestPost(v5NotificationsTestPostRequest, options);
|
|
1539
2777
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1540
2778
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsTestPost"]?.[localVarOperationServerIndex]?.url;
|
|
1541
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2779
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1542
2780
|
}
|
|
1543
2781
|
};
|
|
1544
2782
|
};
|
|
@@ -1911,7 +3149,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1911
3149
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasGet(xApiKey, authorization, options);
|
|
1912
3150
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1913
3151
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasGet"]?.[localVarOperationServerIndex]?.url;
|
|
1914
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3152
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1915
3153
|
},
|
|
1916
3154
|
/**
|
|
1917
3155
|
*
|
|
@@ -1926,7 +3164,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1926
3164
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasPost(v4SchemasPostRequest, xApiKey, authorization, options);
|
|
1927
3165
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1928
3166
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasPost"]?.[localVarOperationServerIndex]?.url;
|
|
1929
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3167
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1930
3168
|
},
|
|
1931
3169
|
/**
|
|
1932
3170
|
*
|
|
@@ -1941,7 +3179,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1941
3179
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdDelete(schemaId, xApiKey, authorization, options);
|
|
1942
3180
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1943
3181
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1944
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3182
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1945
3183
|
},
|
|
1946
3184
|
/**
|
|
1947
3185
|
*
|
|
@@ -1956,7 +3194,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1956
3194
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdGet(schemaId, xApiKey, authorization, options);
|
|
1957
3195
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1958
3196
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1959
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3197
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1960
3198
|
},
|
|
1961
3199
|
/**
|
|
1962
3200
|
*
|
|
@@ -1972,7 +3210,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1972
3210
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdPut(schemaId, v4SchemasSchemaIdPutRequest, xApiKey, authorization, options);
|
|
1973
3211
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1974
3212
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1975
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3213
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1976
3214
|
}
|
|
1977
3215
|
};
|
|
1978
3216
|
};
|
|
@@ -2966,7 +4204,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
2966
4204
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
2967
4205
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2968
4206
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
2969
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4207
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2970
4208
|
},
|
|
2971
4209
|
/**
|
|
2972
4210
|
*
|
|
@@ -2985,7 +4223,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
2985
4223
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
2986
4224
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2987
4225
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
2988
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4226
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2989
4227
|
},
|
|
2990
4228
|
/**
|
|
2991
4229
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3007,7 +4245,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3007
4245
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, tags, monitoring, updateInterval, templateId, includeDeleted, format, options);
|
|
3008
4246
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3009
4247
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsGet"]?.[localVarOperationServerIndex]?.url;
|
|
3010
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4248
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3011
4249
|
},
|
|
3012
4250
|
/**
|
|
3013
4251
|
*
|
|
@@ -3020,7 +4258,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3020
4258
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsPost(v4WorkflowsPostRequest, options);
|
|
3021
4259
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3022
4260
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsPost"]?.[localVarOperationServerIndex]?.url;
|
|
3023
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4261
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3024
4262
|
},
|
|
3025
4263
|
/**
|
|
3026
4264
|
*
|
|
@@ -3033,7 +4271,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3033
4271
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsSetupEditPost(v4WorkflowsSetupEditPostRequest, options);
|
|
3034
4272
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3035
4273
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsSetupEditPost"]?.[localVarOperationServerIndex]?.url;
|
|
3036
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4274
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3037
4275
|
},
|
|
3038
4276
|
/**
|
|
3039
4277
|
*
|
|
@@ -3046,7 +4284,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3046
4284
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsSetupPost(v4WorkflowsSetupPostRequest, options);
|
|
3047
4285
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3048
4286
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsSetupPost"]?.[localVarOperationServerIndex]?.url;
|
|
3049
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4287
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3050
4288
|
},
|
|
3051
4289
|
/**
|
|
3052
4290
|
*
|
|
@@ -3063,7 +4301,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3063
4301
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3064
4302
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3065
4303
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3066
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4304
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3067
4305
|
},
|
|
3068
4306
|
/**
|
|
3069
4307
|
*
|
|
@@ -3078,7 +4316,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3078
4316
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceApprovePut(workflowId, xApiKey, authorization, options);
|
|
3079
4317
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3080
4318
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceApprovePut"]?.[localVarOperationServerIndex]?.url;
|
|
3081
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4319
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3082
4320
|
},
|
|
3083
4321
|
/**
|
|
3084
4322
|
*
|
|
@@ -3094,7 +4332,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3094
4332
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceRejectPut(workflowId, v4WorkflowsWorkflowIdComplianceRejectPutRequest, xApiKey, authorization, options);
|
|
3095
4333
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3096
4334
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceRejectPut"]?.[localVarOperationServerIndex]?.url;
|
|
3097
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4335
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3098
4336
|
},
|
|
3099
4337
|
/**
|
|
3100
4338
|
*
|
|
@@ -3119,7 +4357,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3119
4357
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDataGet(workflowId, xApiKey, authorization, runId, format, sortBy, order, filters, page, limit, gzip, rowIds, includeAnomalies, options);
|
|
3120
4358
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3121
4359
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDataGet"]?.[localVarOperationServerIndex]?.url;
|
|
3122
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4360
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3123
4361
|
},
|
|
3124
4362
|
/**
|
|
3125
4363
|
*
|
|
@@ -3132,7 +4370,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3132
4370
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDelete(workflowId, options);
|
|
3133
4371
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3134
4372
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3135
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4373
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3136
4374
|
},
|
|
3137
4375
|
/**
|
|
3138
4376
|
* Retrieves detailed information about a specific workflow. This endpoint requires authentication and proper team access permissions.
|
|
@@ -3145,7 +4383,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3145
4383
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdGet(workflowId, options);
|
|
3146
4384
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3147
4385
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3148
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4386
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3149
4387
|
},
|
|
3150
4388
|
/**
|
|
3151
4389
|
*
|
|
@@ -3158,7 +4396,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3158
4396
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdHistoryGet(workflowId, options);
|
|
3159
4397
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3160
4398
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdHistoryGet"]?.[localVarOperationServerIndex]?.url;
|
|
3161
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4399
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3162
4400
|
},
|
|
3163
4401
|
/**
|
|
3164
4402
|
*
|
|
@@ -3172,7 +4410,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3172
4410
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdMetadataPut(workflowId, v4WorkflowsWorkflowIdMetadataPutRequest, options);
|
|
3173
4411
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3174
4412
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdMetadataPut"]?.[localVarOperationServerIndex]?.url;
|
|
3175
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4413
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3176
4414
|
},
|
|
3177
4415
|
/**
|
|
3178
4416
|
*
|
|
@@ -3185,7 +4423,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3185
4423
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdPausePut(workflowId, options);
|
|
3186
4424
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3187
4425
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdPausePut"]?.[localVarOperationServerIndex]?.url;
|
|
3188
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4426
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3189
4427
|
},
|
|
3190
4428
|
/**
|
|
3191
4429
|
* Resumes a paused, preview, or error workflow. If the user\'s team/organization or any of the user\'s organizations has the COMPLIANCE_REVIEW rule enabled, the workflow will be sent for compliance review instead of being directly activated.
|
|
@@ -3198,7 +4436,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3198
4436
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdResumePut(workflowId, options);
|
|
3199
4437
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3200
4438
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdResumePut"]?.[localVarOperationServerIndex]?.url;
|
|
3201
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4439
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3202
4440
|
},
|
|
3203
4441
|
/**
|
|
3204
4442
|
*
|
|
@@ -3211,7 +4449,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3211
4449
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdRunPut(workflowId, options);
|
|
3212
4450
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3213
4451
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdRunPut"]?.[localVarOperationServerIndex]?.url;
|
|
3214
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4452
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3215
4453
|
},
|
|
3216
4454
|
/**
|
|
3217
4455
|
*
|
|
@@ -3225,7 +4463,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3225
4463
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdSchedulePut(workflowId, v4WorkflowsWorkflowIdSchedulePutRequest, options);
|
|
3226
4464
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3227
4465
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdSchedulePut"]?.[localVarOperationServerIndex]?.url;
|
|
3228
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4466
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3229
4467
|
},
|
|
3230
4468
|
/**
|
|
3231
4469
|
*
|
|
@@ -3240,7 +4478,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3240
4478
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3241
4479
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3242
4480
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3243
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4481
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3244
4482
|
},
|
|
3245
4483
|
/**
|
|
3246
4484
|
*
|
|
@@ -3259,7 +4497,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3259
4497
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
3260
4498
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3261
4499
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3262
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4500
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3263
4501
|
},
|
|
3264
4502
|
/**
|
|
3265
4503
|
* Permanently deletes a workflow and its associated tags
|
|
@@ -3272,7 +4510,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3272
4510
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsIdDelete(id, options);
|
|
3273
4511
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3274
4512
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3275
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4513
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3276
4514
|
},
|
|
3277
4515
|
/**
|
|
3278
4516
|
* Retrieves a specific workflow and its associated tags by ID
|
|
@@ -3285,7 +4523,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3285
4523
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsIdGet(id, options);
|
|
3286
4524
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3287
4525
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3288
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4526
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3289
4527
|
},
|
|
3290
4528
|
/**
|
|
3291
4529
|
* Updates an existing workflow\'s properties
|
|
@@ -3299,7 +4537,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3299
4537
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsIdPut(id, v5WorkflowsIdPutRequest, options);
|
|
3300
4538
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3301
4539
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
3302
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4540
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3303
4541
|
},
|
|
3304
4542
|
/**
|
|
3305
4543
|
* Creates a new workflow in pending state
|
|
@@ -3312,7 +4550,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3312
4550
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsPost(v5WorkflowsPostRequest, options);
|
|
3313
4551
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3314
4552
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsPost"]?.[localVarOperationServerIndex]?.url;
|
|
3315
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4553
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3316
4554
|
},
|
|
3317
4555
|
/**
|
|
3318
4556
|
*
|
|
@@ -3329,7 +4567,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3329
4567
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3330
4568
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3331
4569
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3332
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4570
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3333
4571
|
}
|
|
3334
4572
|
};
|
|
3335
4573
|
};
|
|
@@ -3742,7 +4980,7 @@ var WorkspacesApiFp = function(configuration) {
|
|
|
3742
4980
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkspacesWorkspaceIdDetailsGet(workspaceId, xApiKey, authorization, options);
|
|
3743
4981
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3744
4982
|
const localVarOperationServerBasePath = operationServerMap["WorkspacesApi.v5WorkspacesWorkspaceIdDetailsGet"]?.[localVarOperationServerIndex]?.url;
|
|
3745
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4983
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3746
4984
|
},
|
|
3747
4985
|
/**
|
|
3748
4986
|
*
|
|
@@ -3757,7 +4995,7 @@ var WorkspacesApiFp = function(configuration) {
|
|
|
3757
4995
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkspacesWorkspaceIdQuotasGet(workspaceId, xApiKey, authorization, options);
|
|
3758
4996
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3759
4997
|
const localVarOperationServerBasePath = operationServerMap["WorkspacesApi.v5WorkspacesWorkspaceIdQuotasGet"]?.[localVarOperationServerIndex]?.url;
|
|
3760
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4998
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3761
4999
|
},
|
|
3762
5000
|
/**
|
|
3763
5001
|
*
|
|
@@ -3773,7 +5011,7 @@ var WorkspacesApiFp = function(configuration) {
|
|
|
3773
5011
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkspacesWorkspaceIdUsageGet(workspaceId, resultRange, xApiKey, authorization, options);
|
|
3774
5012
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3775
5013
|
const localVarOperationServerBasePath = operationServerMap["WorkspacesApi.v5WorkspacesWorkspaceIdUsageGet"]?.[localVarOperationServerIndex]?.url;
|
|
3776
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
5014
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3777
5015
|
}
|
|
3778
5016
|
};
|
|
3779
5017
|
};
|
|
@@ -3847,7 +5085,7 @@ var Configuration = class {
|
|
|
3847
5085
|
};
|
|
3848
5086
|
|
|
3849
5087
|
// src/version.ts
|
|
3850
|
-
var SDK_VERSION = "0.
|
|
5088
|
+
var SDK_VERSION = "0.10.0";
|
|
3851
5089
|
var SDK_NAME = "kadoa-node-sdk";
|
|
3852
5090
|
var SDK_LANGUAGE = "node";
|
|
3853
5091
|
|
|
@@ -3864,7 +5102,8 @@ var logger = {
|
|
|
3864
5102
|
workflow: createLogger("workflow"),
|
|
3865
5103
|
crawl: createLogger("crawl"),
|
|
3866
5104
|
notifications: createLogger("notifications"),
|
|
3867
|
-
schemas: createLogger("schemas")
|
|
5105
|
+
schemas: createLogger("schemas"),
|
|
5106
|
+
validation: createLogger("validation")
|
|
3868
5107
|
};
|
|
3869
5108
|
|
|
3870
5109
|
// src/internal/domains/realtime/realtime.ts
|
|
@@ -4148,6 +5387,54 @@ var DataFetcherService = class {
|
|
|
4148
5387
|
}
|
|
4149
5388
|
};
|
|
4150
5389
|
|
|
5390
|
+
// src/internal/runtime/utils/polling.ts
|
|
5391
|
+
var DEFAULT_POLLING_OPTIONS = {
|
|
5392
|
+
pollIntervalMs: 1e3,
|
|
5393
|
+
timeoutMs: 5 * 60 * 1e3
|
|
5394
|
+
};
|
|
5395
|
+
var POLLING_ERROR_CODES = {
|
|
5396
|
+
ABORTED: "ABORTED",
|
|
5397
|
+
TIMEOUT: "TIMEOUT"
|
|
5398
|
+
};
|
|
5399
|
+
async function pollUntil(pollFn, isComplete, options = {}) {
|
|
5400
|
+
const internalOptions = {
|
|
5401
|
+
...DEFAULT_POLLING_OPTIONS,
|
|
5402
|
+
...options
|
|
5403
|
+
};
|
|
5404
|
+
const pollInterval = Math.max(250, internalOptions.pollIntervalMs);
|
|
5405
|
+
const timeoutMs = internalOptions.timeoutMs;
|
|
5406
|
+
const start = Date.now();
|
|
5407
|
+
let attempts = 0;
|
|
5408
|
+
while (Date.now() - start < timeoutMs) {
|
|
5409
|
+
if (internalOptions.abortSignal?.aborted) {
|
|
5410
|
+
throw new KadoaSdkException("Polling operation was aborted", {
|
|
5411
|
+
code: POLLING_ERROR_CODES.ABORTED
|
|
5412
|
+
});
|
|
5413
|
+
}
|
|
5414
|
+
attempts++;
|
|
5415
|
+
const current = await pollFn();
|
|
5416
|
+
if (isComplete(current)) {
|
|
5417
|
+
return {
|
|
5418
|
+
result: current,
|
|
5419
|
+
attempts,
|
|
5420
|
+
duration: Date.now() - start
|
|
5421
|
+
};
|
|
5422
|
+
}
|
|
5423
|
+
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
|
5424
|
+
}
|
|
5425
|
+
throw new KadoaSdkException(
|
|
5426
|
+
`Polling operation timed out after ${timeoutMs}ms`,
|
|
5427
|
+
{
|
|
5428
|
+
code: POLLING_ERROR_CODES.TIMEOUT,
|
|
5429
|
+
details: {
|
|
5430
|
+
timeoutMs,
|
|
5431
|
+
attempts,
|
|
5432
|
+
duration: Date.now() - start
|
|
5433
|
+
}
|
|
5434
|
+
}
|
|
5435
|
+
);
|
|
5436
|
+
}
|
|
5437
|
+
|
|
4151
5438
|
// src/internal/domains/workflows/workflows-core.service.ts
|
|
4152
5439
|
var TERMINAL_RUN_STATES = /* @__PURE__ */ new Set([
|
|
4153
5440
|
"FINISHED",
|
|
@@ -4169,6 +5456,7 @@ var WorkflowsCoreService = class {
|
|
|
4169
5456
|
entity: input.entity,
|
|
4170
5457
|
name: input.name,
|
|
4171
5458
|
fields: input.fields,
|
|
5459
|
+
//todo: fix this
|
|
4172
5460
|
bypassPreview: input.bypassPreview ?? true,
|
|
4173
5461
|
tags: input.tags,
|
|
4174
5462
|
interval: input.interval,
|
|
@@ -4195,6 +5483,10 @@ var WorkflowsCoreService = class {
|
|
|
4195
5483
|
});
|
|
4196
5484
|
return response.data;
|
|
4197
5485
|
}
|
|
5486
|
+
async list(filters) {
|
|
5487
|
+
const response = await this.client.workflows.v4WorkflowsGet(filters);
|
|
5488
|
+
return response.data?.workflows ?? [];
|
|
5489
|
+
}
|
|
4198
5490
|
async getByName(name) {
|
|
4199
5491
|
const response = await this.client.workflows.v4WorkflowsGet({
|
|
4200
5492
|
search: name
|
|
@@ -4215,43 +5507,33 @@ var WorkflowsCoreService = class {
|
|
|
4215
5507
|
* Wait for a workflow to reach the target state or a terminal state if no target state is provided
|
|
4216
5508
|
*/
|
|
4217
5509
|
async wait(id, options) {
|
|
4218
|
-
const pollInterval = Math.max(250, options?.pollIntervalMs ?? 1e3);
|
|
4219
|
-
const timeoutMs = options?.timeoutMs ?? 5 * 60 * 1e3;
|
|
4220
|
-
const start = Date.now();
|
|
4221
5510
|
let last;
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
|
|
4227
|
-
|
|
4228
|
-
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
current.runState
|
|
4235
|
-
);
|
|
4236
|
-
}
|
|
4237
|
-
if (options?.targetState && current.state === options.targetState) {
|
|
4238
|
-
return current;
|
|
4239
|
-
}
|
|
4240
|
-
if (current.runState && TERMINAL_RUN_STATES.has(current.runState.toUpperCase()) && current.state !== "QUEUED") {
|
|
5511
|
+
const result = await pollUntil(
|
|
5512
|
+
async () => {
|
|
5513
|
+
const current = await this.get(id);
|
|
5514
|
+
if (last?.state !== current.state || last?.runState !== current.runState) {
|
|
5515
|
+
debug2(
|
|
5516
|
+
"workflow %s state: [workflowState: %s, jobState: %s]",
|
|
5517
|
+
id,
|
|
5518
|
+
current.state,
|
|
5519
|
+
current.runState
|
|
5520
|
+
);
|
|
5521
|
+
}
|
|
5522
|
+
last = current;
|
|
4241
5523
|
return current;
|
|
4242
|
-
}
|
|
4243
|
-
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
5524
|
+
},
|
|
5525
|
+
(current) => {
|
|
5526
|
+
if (options?.targetState && current.state === options.targetState) {
|
|
5527
|
+
return true;
|
|
5528
|
+
}
|
|
5529
|
+
if (current.runState && TERMINAL_RUN_STATES.has(current.runState.toUpperCase()) && current.state !== "QUEUED") {
|
|
5530
|
+
return true;
|
|
5531
|
+
}
|
|
5532
|
+
return false;
|
|
5533
|
+
},
|
|
5534
|
+
options
|
|
5535
|
+
);
|
|
5536
|
+
return result.result;
|
|
4255
5537
|
}
|
|
4256
5538
|
};
|
|
4257
5539
|
|
|
@@ -17584,6 +18866,317 @@ var UserModule = class {
|
|
|
17584
18866
|
return this.userService.getCurrentUser();
|
|
17585
18867
|
}
|
|
17586
18868
|
};
|
|
18869
|
+
var ValidationRulesService = class {
|
|
18870
|
+
constructor(client) {
|
|
18871
|
+
this.validationApi = new DataValidationApi(
|
|
18872
|
+
client.configuration,
|
|
18873
|
+
client.baseUrl,
|
|
18874
|
+
client.axiosInstance
|
|
18875
|
+
);
|
|
18876
|
+
}
|
|
18877
|
+
async listRules(options) {
|
|
18878
|
+
const response = await this.validationApi.v4DataValidationRulesGet(options);
|
|
18879
|
+
if (response.status !== 200 || response.data.error) {
|
|
18880
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18881
|
+
message: "Failed to list validation rules"
|
|
18882
|
+
});
|
|
18883
|
+
}
|
|
18884
|
+
return response.data;
|
|
18885
|
+
}
|
|
18886
|
+
async getRuleById(ruleId) {
|
|
18887
|
+
const response = await this.validationApi.v4DataValidationRulesRuleIdGet({
|
|
18888
|
+
ruleId
|
|
18889
|
+
});
|
|
18890
|
+
if (response.status !== 200 || response.data.error) {
|
|
18891
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18892
|
+
message: "Failed to get validation rule by id"
|
|
18893
|
+
});
|
|
18894
|
+
}
|
|
18895
|
+
return response.data.data;
|
|
18896
|
+
}
|
|
18897
|
+
async getRuleByName(name) {
|
|
18898
|
+
const response = await this.validationApi.v4DataValidationRulesGet();
|
|
18899
|
+
if (response.status !== 200 || response.data.error) {
|
|
18900
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18901
|
+
message: "Failed to get validation rule by name"
|
|
18902
|
+
});
|
|
18903
|
+
}
|
|
18904
|
+
return response.data.data?.find((rule) => rule.name === name);
|
|
18905
|
+
}
|
|
18906
|
+
async createRule(data) {
|
|
18907
|
+
const response = await this.validationApi.v4DataValidationRulesPost({
|
|
18908
|
+
createRule: data
|
|
18909
|
+
});
|
|
18910
|
+
if (response.status !== 200 || response.data.error) {
|
|
18911
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18912
|
+
message: response.data.message || "Failed to create validation rule"
|
|
18913
|
+
});
|
|
18914
|
+
}
|
|
18915
|
+
return response.data.data;
|
|
18916
|
+
}
|
|
18917
|
+
async updateRule(ruleId, updateData) {
|
|
18918
|
+
const response = await this.validationApi.v4DataValidationRulesRuleIdPut({
|
|
18919
|
+
ruleId,
|
|
18920
|
+
updateRule: updateData
|
|
18921
|
+
});
|
|
18922
|
+
if (response.status !== 200 || response.data.error) {
|
|
18923
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18924
|
+
message: response.data.message || "Failed to update validation rule"
|
|
18925
|
+
});
|
|
18926
|
+
}
|
|
18927
|
+
return response.data.data;
|
|
18928
|
+
}
|
|
18929
|
+
async disableRule(data) {
|
|
18930
|
+
const response = await this.validationApi.v4DataValidationRulesRuleIdDisablePost(data);
|
|
18931
|
+
if (response.status !== 200 || response.data.error) {
|
|
18932
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18933
|
+
message: response.data.message || "Failed to disable validation rule"
|
|
18934
|
+
});
|
|
18935
|
+
}
|
|
18936
|
+
return response.data.data;
|
|
18937
|
+
}
|
|
18938
|
+
async generateRule(data) {
|
|
18939
|
+
const response = await this.validationApi.v4DataValidationRulesActionsGeneratePost({
|
|
18940
|
+
generateRule: data
|
|
18941
|
+
});
|
|
18942
|
+
if (response.status !== 200 || response.data.error) {
|
|
18943
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18944
|
+
message: response.data.message || "Failed to generate validation rule"
|
|
18945
|
+
});
|
|
18946
|
+
}
|
|
18947
|
+
return response.data.data;
|
|
18948
|
+
}
|
|
18949
|
+
async generateRules(data) {
|
|
18950
|
+
const response = await this.validationApi.v4DataValidationRulesActionsGenerateRulesPost({
|
|
18951
|
+
generateRules: data
|
|
18952
|
+
});
|
|
18953
|
+
if (response.status !== 200 || response.data.error) {
|
|
18954
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18955
|
+
message: response.data.message || "Failed to generate validation rules"
|
|
18956
|
+
});
|
|
18957
|
+
}
|
|
18958
|
+
return response.data.data;
|
|
18959
|
+
}
|
|
18960
|
+
async bulkApproveRules(data) {
|
|
18961
|
+
const response = await this.validationApi.v4DataValidationRulesActionsBulkApprovePost({
|
|
18962
|
+
bulkApproveRules: data
|
|
18963
|
+
});
|
|
18964
|
+
if (response.status !== 200 || response.data.error) {
|
|
18965
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18966
|
+
message: response.data.message || "Failed to bulk approve validation rules"
|
|
18967
|
+
});
|
|
18968
|
+
}
|
|
18969
|
+
return response.data.data;
|
|
18970
|
+
}
|
|
18971
|
+
async bulkDeleteRules(data) {
|
|
18972
|
+
const response = await this.validationApi.v4DataValidationRulesActionsBulkDeletePost({
|
|
18973
|
+
bulkDeleteRules: data
|
|
18974
|
+
});
|
|
18975
|
+
if (response.status !== 200 || response.data.error) {
|
|
18976
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18977
|
+
message: response.data.message || "Failed to bulk delete validation rules"
|
|
18978
|
+
});
|
|
18979
|
+
}
|
|
18980
|
+
return response.data.data;
|
|
18981
|
+
}
|
|
18982
|
+
async deleteAllRules(data) {
|
|
18983
|
+
const response = await this.validationApi.v4DataValidationRulesActionsDeleteAllDelete({
|
|
18984
|
+
deleteRuleWithReason: data
|
|
18985
|
+
});
|
|
18986
|
+
if (response.status !== 200 || response.data.error) {
|
|
18987
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18988
|
+
message: response.data.message || "Failed to delete all validation rules"
|
|
18989
|
+
});
|
|
18990
|
+
}
|
|
18991
|
+
return response.data.data;
|
|
18992
|
+
}
|
|
18993
|
+
};
|
|
18994
|
+
|
|
18995
|
+
// src/internal/domains/validation/validation-core.service.ts
|
|
18996
|
+
var ValidationCoreService = class {
|
|
18997
|
+
constructor(client) {
|
|
18998
|
+
this.validationApi = new DataValidationApi(
|
|
18999
|
+
client.configuration,
|
|
19000
|
+
client.baseUrl,
|
|
19001
|
+
client.axiosInstance
|
|
19002
|
+
);
|
|
19003
|
+
}
|
|
19004
|
+
async listWorkflowValidations(filters) {
|
|
19005
|
+
const response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(
|
|
19006
|
+
filters
|
|
19007
|
+
);
|
|
19008
|
+
if (response.status !== 200) {
|
|
19009
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19010
|
+
message: "Failed to list workflow validations"
|
|
19011
|
+
});
|
|
19012
|
+
}
|
|
19013
|
+
return response.data;
|
|
19014
|
+
}
|
|
19015
|
+
async getValidationDetails(validationId) {
|
|
19016
|
+
const response = await this.validationApi.v4DataValidationValidationsValidationIdGet({
|
|
19017
|
+
validationId
|
|
19018
|
+
});
|
|
19019
|
+
if (response.status !== 200 || response.data.error) {
|
|
19020
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19021
|
+
message: "Failed to get validation details"
|
|
19022
|
+
});
|
|
19023
|
+
}
|
|
19024
|
+
return response.data;
|
|
19025
|
+
}
|
|
19026
|
+
async scheduleValidation(workflowId, jobId) {
|
|
19027
|
+
const response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(
|
|
19028
|
+
{
|
|
19029
|
+
workflowId,
|
|
19030
|
+
jobId
|
|
19031
|
+
}
|
|
19032
|
+
);
|
|
19033
|
+
if (response.status !== 200 || response.data.error) {
|
|
19034
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19035
|
+
message: response.data.message || "Failed to schedule validation"
|
|
19036
|
+
});
|
|
19037
|
+
}
|
|
19038
|
+
return response.data;
|
|
19039
|
+
}
|
|
19040
|
+
async toggleValidationEnabled(workflowId) {
|
|
19041
|
+
const response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdValidationTogglePut(
|
|
19042
|
+
{
|
|
19043
|
+
workflowId
|
|
19044
|
+
}
|
|
19045
|
+
);
|
|
19046
|
+
if (response.status !== 200 || response.data.error) {
|
|
19047
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19048
|
+
message: response.data.message || "Failed to toggle validation"
|
|
19049
|
+
});
|
|
19050
|
+
}
|
|
19051
|
+
return response.data;
|
|
19052
|
+
}
|
|
19053
|
+
async getLatestValidation(workflowId, jobId) {
|
|
19054
|
+
let response;
|
|
19055
|
+
if (jobId) {
|
|
19056
|
+
response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(
|
|
19057
|
+
{
|
|
19058
|
+
workflowId,
|
|
19059
|
+
jobId
|
|
19060
|
+
}
|
|
19061
|
+
);
|
|
19062
|
+
} else {
|
|
19063
|
+
response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(
|
|
19064
|
+
{
|
|
19065
|
+
workflowId
|
|
19066
|
+
}
|
|
19067
|
+
);
|
|
19068
|
+
}
|
|
19069
|
+
if (response.status !== 200 || response.data.error) {
|
|
19070
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19071
|
+
message: "Failed to get latest validation"
|
|
19072
|
+
});
|
|
19073
|
+
}
|
|
19074
|
+
return response.data;
|
|
19075
|
+
}
|
|
19076
|
+
async getValidationAnomalies(validationId) {
|
|
19077
|
+
const response = await this.validationApi.v4DataValidationValidationsValidationIdAnomaliesGet(
|
|
19078
|
+
{
|
|
19079
|
+
validationId
|
|
19080
|
+
}
|
|
19081
|
+
);
|
|
19082
|
+
if (response.status !== 200) {
|
|
19083
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19084
|
+
message: "Failed to get validation anomalies"
|
|
19085
|
+
});
|
|
19086
|
+
}
|
|
19087
|
+
return response.data;
|
|
19088
|
+
}
|
|
19089
|
+
async getValidationAnomaliesByRule(validationId, ruleName) {
|
|
19090
|
+
const response = await this.validationApi.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(
|
|
19091
|
+
{
|
|
19092
|
+
validationId,
|
|
19093
|
+
ruleName
|
|
19094
|
+
}
|
|
19095
|
+
);
|
|
19096
|
+
if (response.status !== 200) {
|
|
19097
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19098
|
+
message: "Failed to get validation anomalies by rule"
|
|
19099
|
+
});
|
|
19100
|
+
}
|
|
19101
|
+
return response.data;
|
|
19102
|
+
}
|
|
19103
|
+
async waitUntilCompleted(validationId, options) {
|
|
19104
|
+
const result = await pollUntil(
|
|
19105
|
+
async () => {
|
|
19106
|
+
const current = await this.getValidationDetails(validationId);
|
|
19107
|
+
if (current.error) {
|
|
19108
|
+
throw new KadoaSdkException(`Validation failed: ${current.error}`, {
|
|
19109
|
+
code: "VALIDATION_ERROR",
|
|
19110
|
+
details: { validationId, error: current.error }
|
|
19111
|
+
});
|
|
19112
|
+
}
|
|
19113
|
+
return current;
|
|
19114
|
+
},
|
|
19115
|
+
(result2) => result2.completedAt != null,
|
|
19116
|
+
options
|
|
19117
|
+
);
|
|
19118
|
+
return result.result;
|
|
19119
|
+
}
|
|
19120
|
+
};
|
|
19121
|
+
|
|
19122
|
+
// src/modules/validation.module.ts
|
|
19123
|
+
var ValidationModule = class {
|
|
19124
|
+
constructor(client) {
|
|
19125
|
+
this.coreService = new ValidationCoreService(client);
|
|
19126
|
+
this.rulesService = new ValidationRulesService(client);
|
|
19127
|
+
}
|
|
19128
|
+
listRules(options) {
|
|
19129
|
+
return this.rulesService.listRules(options);
|
|
19130
|
+
}
|
|
19131
|
+
getRuleByName(name) {
|
|
19132
|
+
return this.rulesService.getRuleByName(name);
|
|
19133
|
+
}
|
|
19134
|
+
createRule(data) {
|
|
19135
|
+
return this.rulesService.createRule(data);
|
|
19136
|
+
}
|
|
19137
|
+
generateRule(data) {
|
|
19138
|
+
return this.rulesService.generateRule(data);
|
|
19139
|
+
}
|
|
19140
|
+
generateRules(data) {
|
|
19141
|
+
return this.rulesService.generateRules(data);
|
|
19142
|
+
}
|
|
19143
|
+
bulkApproveRules(data) {
|
|
19144
|
+
return this.rulesService.bulkApproveRules(data);
|
|
19145
|
+
}
|
|
19146
|
+
bulkDeleteRules(data) {
|
|
19147
|
+
return this.rulesService.bulkDeleteRules(data);
|
|
19148
|
+
}
|
|
19149
|
+
deleteAllRules(data) {
|
|
19150
|
+
return this.rulesService.deleteAllRules(data);
|
|
19151
|
+
}
|
|
19152
|
+
listWorkflowValidations(workflowId, jobId) {
|
|
19153
|
+
return this.coreService.listWorkflowValidations({ workflowId, jobId });
|
|
19154
|
+
}
|
|
19155
|
+
scheduleValidation(workflowId, jobId) {
|
|
19156
|
+
return this.coreService.scheduleValidation(workflowId, jobId);
|
|
19157
|
+
}
|
|
19158
|
+
waitUntilCompleted(validationId, options) {
|
|
19159
|
+
return this.coreService.waitUntilCompleted(validationId, options);
|
|
19160
|
+
}
|
|
19161
|
+
getValidationDetails(validationId) {
|
|
19162
|
+
return this.coreService.getValidationDetails(validationId);
|
|
19163
|
+
}
|
|
19164
|
+
getLatestValidation(workflowId, jobId) {
|
|
19165
|
+
return this.coreService.getLatestValidation(workflowId, jobId);
|
|
19166
|
+
}
|
|
19167
|
+
getValidationAnomalies(validationId) {
|
|
19168
|
+
return this.coreService.getValidationAnomalies(validationId);
|
|
19169
|
+
}
|
|
19170
|
+
getValidationAnomaliesByRule(validationId, ruleName) {
|
|
19171
|
+
return this.coreService.getValidationAnomaliesByRule(
|
|
19172
|
+
validationId,
|
|
19173
|
+
ruleName
|
|
19174
|
+
);
|
|
19175
|
+
}
|
|
19176
|
+
toggleValidationEnabled(workflowId) {
|
|
19177
|
+
return this.coreService.toggleValidationEnabled(workflowId);
|
|
19178
|
+
}
|
|
19179
|
+
};
|
|
17587
19180
|
|
|
17588
19181
|
// src/modules/workflows.module.ts
|
|
17589
19182
|
var WorkflowsModule = class {
|
|
@@ -17597,6 +19190,9 @@ var WorkflowsModule = class {
|
|
|
17597
19190
|
async get(workflowId) {
|
|
17598
19191
|
return this.core.get(workflowId);
|
|
17599
19192
|
}
|
|
19193
|
+
async list(filters) {
|
|
19194
|
+
return this.core.list(filters);
|
|
19195
|
+
}
|
|
17600
19196
|
async getByName(name) {
|
|
17601
19197
|
return this.core.getByName(name);
|
|
17602
19198
|
}
|
|
@@ -17632,12 +19228,12 @@ var KadoaClient = class {
|
|
|
17632
19228
|
headers
|
|
17633
19229
|
}
|
|
17634
19230
|
});
|
|
17635
|
-
this._axiosInstance =
|
|
19231
|
+
this._axiosInstance = globalAxios6.create({
|
|
17636
19232
|
timeout: this._timeout,
|
|
17637
19233
|
headers
|
|
17638
19234
|
});
|
|
17639
19235
|
this._axiosInstance.interceptors.request.use((config3) => {
|
|
17640
|
-
config3.headers["x-request-id"] =
|
|
19236
|
+
config3.headers["x-request-id"] = v4();
|
|
17641
19237
|
return config3;
|
|
17642
19238
|
});
|
|
17643
19239
|
this._axiosInstance.interceptors.response.use(
|
|
@@ -17677,6 +19273,7 @@ var KadoaClient = class {
|
|
|
17677
19273
|
this.workflow = new WorkflowsModule(this);
|
|
17678
19274
|
this.schemas = new SchemasModule(this);
|
|
17679
19275
|
this.notification = new NotificationsModule(this);
|
|
19276
|
+
this.validation = new ValidationModule(this);
|
|
17680
19277
|
if (config2.enableRealtime && config2.realtimeConfig?.autoConnect !== false) {
|
|
17681
19278
|
this.connectRealtime();
|
|
17682
19279
|
}
|
|
@@ -17801,6 +19398,6 @@ var KadoaClient = class {
|
|
|
17801
19398
|
}
|
|
17802
19399
|
};
|
|
17803
19400
|
|
|
17804
|
-
export { ERROR_MESSAGES, KadoaClient, KadoaHttpException, KadoaSdkException, SchemasModule };
|
|
19401
|
+
export { ERROR_MESSAGES, KadoaClient, KadoaHttpException, KadoaSdkException, SchemasModule, ValidationModule, pollUntil };
|
|
17805
19402
|
//# sourceMappingURL=index.mjs.map
|
|
17806
19403
|
//# sourceMappingURL=index.mjs.map
|