@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.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var globalAxios6 = require('axios');
|
|
4
|
+
var uuid$1 = require('uuid');
|
|
5
5
|
var url$1 = require('url');
|
|
6
6
|
var createDebug = require('debug');
|
|
7
7
|
var esToolkit = require('es-toolkit');
|
|
8
8
|
|
|
9
9
|
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var globalAxios6__default = /*#__PURE__*/_interopDefault(globalAxios6);
|
|
12
12
|
var createDebug__default = /*#__PURE__*/_interopDefault(createDebug);
|
|
13
13
|
|
|
14
14
|
var __defProp = Object.defineProperty;
|
|
@@ -181,7 +181,7 @@ var KadoaHttpException = class _KadoaHttpException extends KadoaSdkException {
|
|
|
181
181
|
static wrap(error45, extra) {
|
|
182
182
|
if (error45 instanceof _KadoaHttpException) return error45;
|
|
183
183
|
if (error45 instanceof KadoaSdkException) return error45;
|
|
184
|
-
if (
|
|
184
|
+
if (globalAxios6.isAxiosError(error45)) {
|
|
185
185
|
return _KadoaHttpException.fromAxiosError(error45, extra);
|
|
186
186
|
}
|
|
187
187
|
return KadoaSdkException.wrap(error45, extra);
|
|
@@ -203,7 +203,7 @@ var KadoaHttpException = class _KadoaHttpException extends KadoaSdkException {
|
|
|
203
203
|
};
|
|
204
204
|
var BASE_PATH = "https://api.kadoa.com".replace(/\/+$/, "");
|
|
205
205
|
var BaseAPI = class {
|
|
206
|
-
constructor(configuration, basePath = BASE_PATH, axios2 =
|
|
206
|
+
constructor(configuration, basePath = BASE_PATH, axios2 = globalAxios6__default.default) {
|
|
207
207
|
this.basePath = basePath;
|
|
208
208
|
this.axios = axios2;
|
|
209
209
|
if (configuration) {
|
|
@@ -269,8 +269,8 @@ var serializeDataIfNeeded = function(value, requestOptions, configuration) {
|
|
|
269
269
|
var toPathString = function(url2) {
|
|
270
270
|
return url2.pathname + url2.search + url2.hash;
|
|
271
271
|
};
|
|
272
|
-
var createRequestFunction = function(axiosArgs,
|
|
273
|
-
return (axios2 =
|
|
272
|
+
var createRequestFunction = function(axiosArgs, globalAxios8, BASE_PATH2, configuration) {
|
|
273
|
+
return (axios2 = globalAxios8, basePath = BASE_PATH2) => {
|
|
274
274
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
275
275
|
return axios2.request(axiosRequestArgs);
|
|
276
276
|
};
|
|
@@ -646,7 +646,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
646
646
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlBucketDataFilenameb64Get(filenameb64, contentType, cacheControl, options);
|
|
647
647
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
648
648
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlBucketDataFilenameb64Get"]?.[localVarOperationServerIndex]?.url;
|
|
649
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
649
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
650
650
|
},
|
|
651
651
|
/**
|
|
652
652
|
* Get a crawling configuration by ID
|
|
@@ -659,7 +659,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
659
659
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigConfigIdGet(configId, options);
|
|
660
660
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
661
661
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigConfigIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
662
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
662
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
663
663
|
},
|
|
664
664
|
/**
|
|
665
665
|
* Delete a crawling configuration
|
|
@@ -672,7 +672,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
672
672
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigDelete(deleteCrawlerConfigRequest, options);
|
|
673
673
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
674
674
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigDelete"]?.[localVarOperationServerIndex]?.url;
|
|
675
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
675
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
676
676
|
},
|
|
677
677
|
/**
|
|
678
678
|
* Create a new crawling configuration
|
|
@@ -685,7 +685,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
685
685
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlConfigPost(createCrawlerConfigRequest, options);
|
|
686
686
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
687
687
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlConfigPost"]?.[localVarOperationServerIndex]?.url;
|
|
688
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
688
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
689
689
|
},
|
|
690
690
|
/**
|
|
691
691
|
* Pause an active crawling session
|
|
@@ -698,7 +698,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
698
698
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlPausePost(pauseCrawlerSessionRequest, options);
|
|
699
699
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
700
700
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlPausePost"]?.[localVarOperationServerIndex]?.url;
|
|
701
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
701
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
702
702
|
},
|
|
703
703
|
/**
|
|
704
704
|
* Create a crawling configuration and start a session in one operation (equivalent to v4/crawl)
|
|
@@ -711,7 +711,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
711
711
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlPost(startCrawlerSessionRequest, options);
|
|
712
712
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
713
713
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlPost"]?.[localVarOperationServerIndex]?.url;
|
|
714
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
714
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
715
715
|
},
|
|
716
716
|
/**
|
|
717
717
|
* Resume a paused crawling session
|
|
@@ -724,7 +724,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
724
724
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlResumePost(resumeCrawlerSessionRequest, options);
|
|
725
725
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
726
726
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlResumePost"]?.[localVarOperationServerIndex]?.url;
|
|
727
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
727
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
728
728
|
},
|
|
729
729
|
/**
|
|
730
730
|
* Get a complete list of all pages crawled in a session
|
|
@@ -737,7 +737,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
737
737
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdListGet(sessionId, options);
|
|
738
738
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
739
739
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdListGet"]?.[localVarOperationServerIndex]?.url;
|
|
740
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
740
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
741
741
|
},
|
|
742
742
|
/**
|
|
743
743
|
* Get a paginated list of pages for a crawling session
|
|
@@ -752,7 +752,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
752
752
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdPagesGet(sessionId, currentPage, pageSize, options);
|
|
753
753
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
754
754
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdPagesGet"]?.[localVarOperationServerIndex]?.url;
|
|
755
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
755
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
756
756
|
},
|
|
757
757
|
/**
|
|
758
758
|
* Get the content of a specific page from a crawling session in HTML or Markdown format
|
|
@@ -767,7 +767,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
767
767
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdPagesPageIdGet(sessionId, pageId, format, options);
|
|
768
768
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
769
769
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdPagesPageIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
770
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
770
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
771
771
|
},
|
|
772
772
|
/**
|
|
773
773
|
* Get the current status of a crawling session
|
|
@@ -780,7 +780,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
780
780
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlSessionIdStatusGet(sessionId, options);
|
|
781
781
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
782
782
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlSessionIdStatusGet"]?.[localVarOperationServerIndex]?.url;
|
|
783
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
783
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
784
784
|
},
|
|
785
785
|
/**
|
|
786
786
|
* Start a new crawling session with an existing configuration
|
|
@@ -793,7 +793,7 @@ var CrawlerApiFp = function(configuration) {
|
|
|
793
793
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4CrawlStartPost(startSessionWithConfigRequest, options);
|
|
794
794
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
795
795
|
const localVarOperationServerBasePath = operationServerMap["CrawlerApi.v4CrawlStartPost"]?.[localVarOperationServerIndex]?.url;
|
|
796
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
796
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
797
797
|
}
|
|
798
798
|
};
|
|
799
799
|
};
|
|
@@ -931,6 +931,1244 @@ var CrawlerApi = class extends BaseAPI {
|
|
|
931
931
|
return CrawlerApiFp(this.configuration).v4CrawlStartPost(requestParameters.startSessionWithConfigRequest, options).then((request) => request(this.axios, this.basePath));
|
|
932
932
|
}
|
|
933
933
|
};
|
|
934
|
+
var DataValidationApiAxiosParamCreator = function(configuration) {
|
|
935
|
+
return {
|
|
936
|
+
/**
|
|
937
|
+
* Bulk approve preview rules for a workflow
|
|
938
|
+
* @param {BulkApproveRules} [bulkApproveRules] Body
|
|
939
|
+
* @param {*} [options] Override http request option.
|
|
940
|
+
* @throws {RequiredError}
|
|
941
|
+
*/
|
|
942
|
+
v4DataValidationRulesActionsBulkApprovePost: async (bulkApproveRules, options = {}) => {
|
|
943
|
+
const localVarPath = `/v4/data-validation/rules/actions/bulk-approve`;
|
|
944
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
945
|
+
let baseOptions;
|
|
946
|
+
if (configuration) {
|
|
947
|
+
baseOptions = configuration.baseOptions;
|
|
948
|
+
}
|
|
949
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
950
|
+
const localVarHeaderParameter = {};
|
|
951
|
+
const localVarQueryParameter = {};
|
|
952
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
953
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
954
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
955
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
956
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
957
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkApproveRules, localVarRequestOptions, configuration);
|
|
958
|
+
return {
|
|
959
|
+
url: toPathString(localVarUrlObj),
|
|
960
|
+
options: localVarRequestOptions
|
|
961
|
+
};
|
|
962
|
+
},
|
|
963
|
+
/**
|
|
964
|
+
* Bulk delete rules for a workflow
|
|
965
|
+
* @param {BulkDeleteRules} [bulkDeleteRules] Body
|
|
966
|
+
* @param {*} [options] Override http request option.
|
|
967
|
+
* @throws {RequiredError}
|
|
968
|
+
*/
|
|
969
|
+
v4DataValidationRulesActionsBulkDeletePost: async (bulkDeleteRules, options = {}) => {
|
|
970
|
+
const localVarPath = `/v4/data-validation/rules/actions/bulk-delete`;
|
|
971
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
972
|
+
let baseOptions;
|
|
973
|
+
if (configuration) {
|
|
974
|
+
baseOptions = configuration.baseOptions;
|
|
975
|
+
}
|
|
976
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
977
|
+
const localVarHeaderParameter = {};
|
|
978
|
+
const localVarQueryParameter = {};
|
|
979
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
980
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
981
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
982
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
983
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
984
|
+
localVarRequestOptions.data = serializeDataIfNeeded(bulkDeleteRules, localVarRequestOptions, configuration);
|
|
985
|
+
return {
|
|
986
|
+
url: toPathString(localVarUrlObj),
|
|
987
|
+
options: localVarRequestOptions
|
|
988
|
+
};
|
|
989
|
+
},
|
|
990
|
+
/**
|
|
991
|
+
* Delete all validation rules with optional filtering
|
|
992
|
+
* @param {string} [workflowId]
|
|
993
|
+
* @param {DeleteRuleWithReason} [deleteRuleWithReason] Body
|
|
994
|
+
* @param {*} [options] Override http request option.
|
|
995
|
+
* @throws {RequiredError}
|
|
996
|
+
*/
|
|
997
|
+
v4DataValidationRulesActionsDeleteAllDelete: async (workflowId, deleteRuleWithReason, options = {}) => {
|
|
998
|
+
const localVarPath = `/v4/data-validation/rules/actions/delete-all`;
|
|
999
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1000
|
+
let baseOptions;
|
|
1001
|
+
if (configuration) {
|
|
1002
|
+
baseOptions = configuration.baseOptions;
|
|
1003
|
+
}
|
|
1004
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1005
|
+
const localVarHeaderParameter = {};
|
|
1006
|
+
const localVarQueryParameter = {};
|
|
1007
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1008
|
+
if (workflowId !== void 0) {
|
|
1009
|
+
localVarQueryParameter["workflowId"] = workflowId;
|
|
1010
|
+
}
|
|
1011
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1012
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1013
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1014
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1015
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteRuleWithReason, localVarRequestOptions, configuration);
|
|
1016
|
+
return {
|
|
1017
|
+
url: toPathString(localVarUrlObj),
|
|
1018
|
+
options: localVarRequestOptions
|
|
1019
|
+
};
|
|
1020
|
+
},
|
|
1021
|
+
/**
|
|
1022
|
+
* Generate a validation rule
|
|
1023
|
+
* @param {GenerateRule} [generateRule] Body
|
|
1024
|
+
* @param {*} [options] Override http request option.
|
|
1025
|
+
* @throws {RequiredError}
|
|
1026
|
+
*/
|
|
1027
|
+
v4DataValidationRulesActionsGeneratePost: async (generateRule, options = {}) => {
|
|
1028
|
+
const localVarPath = `/v4/data-validation/rules/actions/generate`;
|
|
1029
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1030
|
+
let baseOptions;
|
|
1031
|
+
if (configuration) {
|
|
1032
|
+
baseOptions = configuration.baseOptions;
|
|
1033
|
+
}
|
|
1034
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1035
|
+
const localVarHeaderParameter = {};
|
|
1036
|
+
const localVarQueryParameter = {};
|
|
1037
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1038
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1039
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1040
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1041
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1042
|
+
localVarRequestOptions.data = serializeDataIfNeeded(generateRule, localVarRequestOptions, configuration);
|
|
1043
|
+
return {
|
|
1044
|
+
url: toPathString(localVarUrlObj),
|
|
1045
|
+
options: localVarRequestOptions
|
|
1046
|
+
};
|
|
1047
|
+
},
|
|
1048
|
+
/**
|
|
1049
|
+
* Generate multiple validation rules
|
|
1050
|
+
* @param {GenerateRules} [generateRules] Body
|
|
1051
|
+
* @param {*} [options] Override http request option.
|
|
1052
|
+
* @throws {RequiredError}
|
|
1053
|
+
*/
|
|
1054
|
+
v4DataValidationRulesActionsGenerateRulesPost: async (generateRules, options = {}) => {
|
|
1055
|
+
const localVarPath = `/v4/data-validation/rules/actions/generate-rules`;
|
|
1056
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1057
|
+
let baseOptions;
|
|
1058
|
+
if (configuration) {
|
|
1059
|
+
baseOptions = configuration.baseOptions;
|
|
1060
|
+
}
|
|
1061
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1062
|
+
const localVarHeaderParameter = {};
|
|
1063
|
+
const localVarQueryParameter = {};
|
|
1064
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1065
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1066
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1067
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1068
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1069
|
+
localVarRequestOptions.data = serializeDataIfNeeded(generateRules, localVarRequestOptions, configuration);
|
|
1070
|
+
return {
|
|
1071
|
+
url: toPathString(localVarUrlObj),
|
|
1072
|
+
options: localVarRequestOptions
|
|
1073
|
+
};
|
|
1074
|
+
},
|
|
1075
|
+
/**
|
|
1076
|
+
* List validation rules with optional filtering
|
|
1077
|
+
* @param {string} [groupId]
|
|
1078
|
+
* @param {string} [workflowId]
|
|
1079
|
+
* @param {ValidationRuleStatus} [status]
|
|
1080
|
+
* @param {number} [page]
|
|
1081
|
+
* @param {number} [pageSize]
|
|
1082
|
+
* @param {V4DataValidationRulesGetIncludeDeletedParameter} [includeDeleted]
|
|
1083
|
+
* @param {*} [options] Override http request option.
|
|
1084
|
+
* @throws {RequiredError}
|
|
1085
|
+
*/
|
|
1086
|
+
v4DataValidationRulesGet: async (groupId, workflowId, status, page, pageSize, includeDeleted, options = {}) => {
|
|
1087
|
+
const localVarPath = `/v4/data-validation/rules`;
|
|
1088
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1089
|
+
let baseOptions;
|
|
1090
|
+
if (configuration) {
|
|
1091
|
+
baseOptions = configuration.baseOptions;
|
|
1092
|
+
}
|
|
1093
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1094
|
+
const localVarHeaderParameter = {};
|
|
1095
|
+
const localVarQueryParameter = {};
|
|
1096
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1097
|
+
if (groupId !== void 0) {
|
|
1098
|
+
localVarQueryParameter["groupId"] = groupId;
|
|
1099
|
+
}
|
|
1100
|
+
if (workflowId !== void 0) {
|
|
1101
|
+
localVarQueryParameter["workflowId"] = workflowId;
|
|
1102
|
+
}
|
|
1103
|
+
if (status !== void 0) {
|
|
1104
|
+
localVarQueryParameter["status"] = status;
|
|
1105
|
+
}
|
|
1106
|
+
if (page !== void 0) {
|
|
1107
|
+
localVarQueryParameter["page"] = page;
|
|
1108
|
+
}
|
|
1109
|
+
if (pageSize !== void 0) {
|
|
1110
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
1111
|
+
}
|
|
1112
|
+
if (includeDeleted !== void 0) {
|
|
1113
|
+
for (const [key, value] of Object.entries(includeDeleted)) {
|
|
1114
|
+
localVarQueryParameter[key] = value;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1118
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1119
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1120
|
+
return {
|
|
1121
|
+
url: toPathString(localVarUrlObj),
|
|
1122
|
+
options: localVarRequestOptions
|
|
1123
|
+
};
|
|
1124
|
+
},
|
|
1125
|
+
/**
|
|
1126
|
+
* Create a new validation rule
|
|
1127
|
+
* @param {CreateRule} [createRule] Body
|
|
1128
|
+
* @param {*} [options] Override http request option.
|
|
1129
|
+
* @throws {RequiredError}
|
|
1130
|
+
*/
|
|
1131
|
+
v4DataValidationRulesPost: async (createRule, options = {}) => {
|
|
1132
|
+
const localVarPath = `/v4/data-validation/rules`;
|
|
1133
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1134
|
+
let baseOptions;
|
|
1135
|
+
if (configuration) {
|
|
1136
|
+
baseOptions = configuration.baseOptions;
|
|
1137
|
+
}
|
|
1138
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1139
|
+
const localVarHeaderParameter = {};
|
|
1140
|
+
const localVarQueryParameter = {};
|
|
1141
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1142
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1143
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1144
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1145
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1146
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createRule, localVarRequestOptions, configuration);
|
|
1147
|
+
return {
|
|
1148
|
+
url: toPathString(localVarUrlObj),
|
|
1149
|
+
options: localVarRequestOptions
|
|
1150
|
+
};
|
|
1151
|
+
},
|
|
1152
|
+
/**
|
|
1153
|
+
* Delete a validation rule with reason
|
|
1154
|
+
* @param {string} ruleId
|
|
1155
|
+
* @param {DeleteRuleWithReason} [deleteRuleWithReason] Body
|
|
1156
|
+
* @param {*} [options] Override http request option.
|
|
1157
|
+
* @throws {RequiredError}
|
|
1158
|
+
*/
|
|
1159
|
+
v4DataValidationRulesRuleIdDelete: async (ruleId, deleteRuleWithReason, options = {}) => {
|
|
1160
|
+
assertParamExists("v4DataValidationRulesRuleIdDelete", "ruleId", ruleId);
|
|
1161
|
+
const localVarPath = `/v4/data-validation/rules/{ruleId}`.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
1162
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1163
|
+
let baseOptions;
|
|
1164
|
+
if (configuration) {
|
|
1165
|
+
baseOptions = configuration.baseOptions;
|
|
1166
|
+
}
|
|
1167
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
1168
|
+
const localVarHeaderParameter = {};
|
|
1169
|
+
const localVarQueryParameter = {};
|
|
1170
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1171
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1172
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1173
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1174
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1175
|
+
localVarRequestOptions.data = serializeDataIfNeeded(deleteRuleWithReason, localVarRequestOptions, configuration);
|
|
1176
|
+
return {
|
|
1177
|
+
url: toPathString(localVarUrlObj),
|
|
1178
|
+
options: localVarRequestOptions
|
|
1179
|
+
};
|
|
1180
|
+
},
|
|
1181
|
+
/**
|
|
1182
|
+
* Disable a validation rule with reason
|
|
1183
|
+
* @param {string} ruleId
|
|
1184
|
+
* @param {DisableRule} [disableRule] Body
|
|
1185
|
+
* @param {*} [options] Override http request option.
|
|
1186
|
+
* @throws {RequiredError}
|
|
1187
|
+
*/
|
|
1188
|
+
v4DataValidationRulesRuleIdDisablePost: async (ruleId, disableRule, options = {}) => {
|
|
1189
|
+
assertParamExists("v4DataValidationRulesRuleIdDisablePost", "ruleId", ruleId);
|
|
1190
|
+
const localVarPath = `/v4/data-validation/rules/{ruleId}/disable`.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
1191
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1192
|
+
let baseOptions;
|
|
1193
|
+
if (configuration) {
|
|
1194
|
+
baseOptions = configuration.baseOptions;
|
|
1195
|
+
}
|
|
1196
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1197
|
+
const localVarHeaderParameter = {};
|
|
1198
|
+
const localVarQueryParameter = {};
|
|
1199
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1200
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1201
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1202
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1203
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1204
|
+
localVarRequestOptions.data = serializeDataIfNeeded(disableRule, localVarRequestOptions, configuration);
|
|
1205
|
+
return {
|
|
1206
|
+
url: toPathString(localVarUrlObj),
|
|
1207
|
+
options: localVarRequestOptions
|
|
1208
|
+
};
|
|
1209
|
+
},
|
|
1210
|
+
/**
|
|
1211
|
+
* Get a validation rule by ID
|
|
1212
|
+
* @param {string} ruleId
|
|
1213
|
+
* @param {boolean} [includeDeleted]
|
|
1214
|
+
* @param {*} [options] Override http request option.
|
|
1215
|
+
* @throws {RequiredError}
|
|
1216
|
+
*/
|
|
1217
|
+
v4DataValidationRulesRuleIdGet: async (ruleId, includeDeleted, options = {}) => {
|
|
1218
|
+
assertParamExists("v4DataValidationRulesRuleIdGet", "ruleId", ruleId);
|
|
1219
|
+
const localVarPath = `/v4/data-validation/rules/{ruleId}`.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
1220
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1221
|
+
let baseOptions;
|
|
1222
|
+
if (configuration) {
|
|
1223
|
+
baseOptions = configuration.baseOptions;
|
|
1224
|
+
}
|
|
1225
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1226
|
+
const localVarHeaderParameter = {};
|
|
1227
|
+
const localVarQueryParameter = {};
|
|
1228
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1229
|
+
if (includeDeleted !== void 0) {
|
|
1230
|
+
localVarQueryParameter["includeDeleted"] = includeDeleted;
|
|
1231
|
+
}
|
|
1232
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1233
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1234
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1235
|
+
return {
|
|
1236
|
+
url: toPathString(localVarUrlObj),
|
|
1237
|
+
options: localVarRequestOptions
|
|
1238
|
+
};
|
|
1239
|
+
},
|
|
1240
|
+
/**
|
|
1241
|
+
* Update a validation rule
|
|
1242
|
+
* @param {string} ruleId
|
|
1243
|
+
* @param {UpdateRule} [updateRule] Body
|
|
1244
|
+
* @param {*} [options] Override http request option.
|
|
1245
|
+
* @throws {RequiredError}
|
|
1246
|
+
*/
|
|
1247
|
+
v4DataValidationRulesRuleIdPut: async (ruleId, updateRule, options = {}) => {
|
|
1248
|
+
assertParamExists("v4DataValidationRulesRuleIdPut", "ruleId", ruleId);
|
|
1249
|
+
const localVarPath = `/v4/data-validation/rules/{ruleId}`.replace(`{${"ruleId"}}`, encodeURIComponent(String(ruleId)));
|
|
1250
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1251
|
+
let baseOptions;
|
|
1252
|
+
if (configuration) {
|
|
1253
|
+
baseOptions = configuration.baseOptions;
|
|
1254
|
+
}
|
|
1255
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1256
|
+
const localVarHeaderParameter = {};
|
|
1257
|
+
const localVarQueryParameter = {};
|
|
1258
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1259
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1260
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1261
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1262
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1263
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateRule, localVarRequestOptions, configuration);
|
|
1264
|
+
return {
|
|
1265
|
+
url: toPathString(localVarUrlObj),
|
|
1266
|
+
options: localVarRequestOptions
|
|
1267
|
+
};
|
|
1268
|
+
},
|
|
1269
|
+
/**
|
|
1270
|
+
* Get all anomalies for a validation
|
|
1271
|
+
* @summary Get validation anomalies
|
|
1272
|
+
* @param {string} validationId
|
|
1273
|
+
* @param {number} [page]
|
|
1274
|
+
* @param {number} [pageSize]
|
|
1275
|
+
* @param {*} [options] Override http request option.
|
|
1276
|
+
* @throws {RequiredError}
|
|
1277
|
+
*/
|
|
1278
|
+
v4DataValidationValidationsValidationIdAnomaliesGet: async (validationId, page, pageSize, options = {}) => {
|
|
1279
|
+
assertParamExists("v4DataValidationValidationsValidationIdAnomaliesGet", "validationId", validationId);
|
|
1280
|
+
const localVarPath = `/v4/data-validation/validations/{validationId}/anomalies`.replace(`{${"validationId"}}`, encodeURIComponent(String(validationId)));
|
|
1281
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1282
|
+
let baseOptions;
|
|
1283
|
+
if (configuration) {
|
|
1284
|
+
baseOptions = configuration.baseOptions;
|
|
1285
|
+
}
|
|
1286
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1287
|
+
const localVarHeaderParameter = {};
|
|
1288
|
+
const localVarQueryParameter = {};
|
|
1289
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1290
|
+
if (page !== void 0) {
|
|
1291
|
+
localVarQueryParameter["page"] = page;
|
|
1292
|
+
}
|
|
1293
|
+
if (pageSize !== void 0) {
|
|
1294
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
1295
|
+
}
|
|
1296
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1297
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1298
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1299
|
+
return {
|
|
1300
|
+
url: toPathString(localVarUrlObj),
|
|
1301
|
+
options: localVarRequestOptions
|
|
1302
|
+
};
|
|
1303
|
+
},
|
|
1304
|
+
/**
|
|
1305
|
+
* Get anomalies for a specific rule
|
|
1306
|
+
* @summary Get validation anomalies by rule
|
|
1307
|
+
* @param {string} validationId
|
|
1308
|
+
* @param {string} ruleName The rule name (URL encoded)
|
|
1309
|
+
* @param {number} [page]
|
|
1310
|
+
* @param {number} [pageSize]
|
|
1311
|
+
* @param {*} [options] Override http request option.
|
|
1312
|
+
* @throws {RequiredError}
|
|
1313
|
+
*/
|
|
1314
|
+
v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet: async (validationId, ruleName, page, pageSize, options = {}) => {
|
|
1315
|
+
assertParamExists("v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet", "validationId", validationId);
|
|
1316
|
+
assertParamExists("v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet", "ruleName", ruleName);
|
|
1317
|
+
const localVarPath = `/v4/data-validation/validations/{validationId}/anomalies/rules/{ruleName}`.replace(`{${"validationId"}}`, encodeURIComponent(String(validationId))).replace(`{${"ruleName"}}`, encodeURIComponent(String(ruleName)));
|
|
1318
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1319
|
+
let baseOptions;
|
|
1320
|
+
if (configuration) {
|
|
1321
|
+
baseOptions = configuration.baseOptions;
|
|
1322
|
+
}
|
|
1323
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1324
|
+
const localVarHeaderParameter = {};
|
|
1325
|
+
const localVarQueryParameter = {};
|
|
1326
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1327
|
+
if (page !== void 0) {
|
|
1328
|
+
localVarQueryParameter["page"] = page;
|
|
1329
|
+
}
|
|
1330
|
+
if (pageSize !== void 0) {
|
|
1331
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
1332
|
+
}
|
|
1333
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1334
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1335
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1336
|
+
return {
|
|
1337
|
+
url: toPathString(localVarUrlObj),
|
|
1338
|
+
options: localVarRequestOptions
|
|
1339
|
+
};
|
|
1340
|
+
},
|
|
1341
|
+
/**
|
|
1342
|
+
* Get validation details
|
|
1343
|
+
* @summary Get validation details
|
|
1344
|
+
* @param {string} validationId
|
|
1345
|
+
* @param {boolean | null} [includeDryRun] Include dry run validations
|
|
1346
|
+
* @param {*} [options] Override http request option.
|
|
1347
|
+
* @throws {RequiredError}
|
|
1348
|
+
*/
|
|
1349
|
+
v4DataValidationValidationsValidationIdGet: async (validationId, includeDryRun, options = {}) => {
|
|
1350
|
+
assertParamExists("v4DataValidationValidationsValidationIdGet", "validationId", validationId);
|
|
1351
|
+
const localVarPath = `/v4/data-validation/validations/{validationId}`.replace(`{${"validationId"}}`, encodeURIComponent(String(validationId)));
|
|
1352
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1353
|
+
let baseOptions;
|
|
1354
|
+
if (configuration) {
|
|
1355
|
+
baseOptions = configuration.baseOptions;
|
|
1356
|
+
}
|
|
1357
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1358
|
+
const localVarHeaderParameter = {};
|
|
1359
|
+
const localVarQueryParameter = {};
|
|
1360
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1361
|
+
if (includeDryRun !== void 0) {
|
|
1362
|
+
localVarQueryParameter["includeDryRun"] = includeDryRun;
|
|
1363
|
+
}
|
|
1364
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1365
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1366
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1367
|
+
return {
|
|
1368
|
+
url: toPathString(localVarUrlObj),
|
|
1369
|
+
options: localVarRequestOptions
|
|
1370
|
+
};
|
|
1371
|
+
},
|
|
1372
|
+
/**
|
|
1373
|
+
* Schedule a data validation job (alternative path)
|
|
1374
|
+
* @summary Schedule a data validation job (alternative path)
|
|
1375
|
+
* @param {string} workflowId The ID of the workflow to validate
|
|
1376
|
+
* @param {string} jobId The ID of the job to validate
|
|
1377
|
+
* @param {DataValidationRequestBody} [dataValidationRequestBody] Body
|
|
1378
|
+
* @param {*} [options] Override http request option.
|
|
1379
|
+
* @throws {RequiredError}
|
|
1380
|
+
*/
|
|
1381
|
+
v4DataValidationWorkflowIdJobsJobIdValidatePost: async (workflowId, jobId, dataValidationRequestBody, options = {}) => {
|
|
1382
|
+
assertParamExists("v4DataValidationWorkflowIdJobsJobIdValidatePost", "workflowId", workflowId);
|
|
1383
|
+
assertParamExists("v4DataValidationWorkflowIdJobsJobIdValidatePost", "jobId", jobId);
|
|
1384
|
+
const localVarPath = `/v4/data-validation/{workflowId}/jobs/{jobId}/validate`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId))).replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1385
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1386
|
+
let baseOptions;
|
|
1387
|
+
if (configuration) {
|
|
1388
|
+
baseOptions = configuration.baseOptions;
|
|
1389
|
+
}
|
|
1390
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1391
|
+
const localVarHeaderParameter = {};
|
|
1392
|
+
const localVarQueryParameter = {};
|
|
1393
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1394
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1395
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1396
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1397
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1398
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataValidationRequestBody, localVarRequestOptions, configuration);
|
|
1399
|
+
return {
|
|
1400
|
+
url: toPathString(localVarUrlObj),
|
|
1401
|
+
options: localVarRequestOptions
|
|
1402
|
+
};
|
|
1403
|
+
},
|
|
1404
|
+
/**
|
|
1405
|
+
* Schedule a data validation job
|
|
1406
|
+
* @summary Schedule a data validation job
|
|
1407
|
+
* @param {string} workflowId The ID of the workflow to validate
|
|
1408
|
+
* @param {string} jobId The ID of the job to validate
|
|
1409
|
+
* @param {DataValidationRequestBody} [dataValidationRequestBody] Body
|
|
1410
|
+
* @param {*} [options] Override http request option.
|
|
1411
|
+
* @throws {RequiredError}
|
|
1412
|
+
*/
|
|
1413
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost: async (workflowId, jobId, dataValidationRequestBody, options = {}) => {
|
|
1414
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost", "workflowId", workflowId);
|
|
1415
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost", "jobId", jobId);
|
|
1416
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/jobs/{jobId}/validate`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId))).replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1417
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1418
|
+
let baseOptions;
|
|
1419
|
+
if (configuration) {
|
|
1420
|
+
baseOptions = configuration.baseOptions;
|
|
1421
|
+
}
|
|
1422
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
1423
|
+
const localVarHeaderParameter = {};
|
|
1424
|
+
const localVarQueryParameter = {};
|
|
1425
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1426
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1427
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1428
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1429
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1430
|
+
localVarRequestOptions.data = serializeDataIfNeeded(dataValidationRequestBody, localVarRequestOptions, configuration);
|
|
1431
|
+
return {
|
|
1432
|
+
url: toPathString(localVarUrlObj),
|
|
1433
|
+
options: localVarRequestOptions
|
|
1434
|
+
};
|
|
1435
|
+
},
|
|
1436
|
+
/**
|
|
1437
|
+
* List all validations for a job
|
|
1438
|
+
* @summary List all validations for a job
|
|
1439
|
+
* @param {string} workflowId
|
|
1440
|
+
* @param {string} jobId
|
|
1441
|
+
* @param {number} [page]
|
|
1442
|
+
* @param {number} [pageSize]
|
|
1443
|
+
* @param {boolean | null} [includeDryRun] Include dry run validations in results
|
|
1444
|
+
* @param {*} [options] Override http request option.
|
|
1445
|
+
* @throws {RequiredError}
|
|
1446
|
+
*/
|
|
1447
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet: async (workflowId, jobId, page, pageSize, includeDryRun, options = {}) => {
|
|
1448
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet", "workflowId", workflowId);
|
|
1449
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet", "jobId", jobId);
|
|
1450
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/jobs/{jobId}/validations`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId))).replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1451
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1452
|
+
let baseOptions;
|
|
1453
|
+
if (configuration) {
|
|
1454
|
+
baseOptions = configuration.baseOptions;
|
|
1455
|
+
}
|
|
1456
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1457
|
+
const localVarHeaderParameter = {};
|
|
1458
|
+
const localVarQueryParameter = {};
|
|
1459
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1460
|
+
if (page !== void 0) {
|
|
1461
|
+
localVarQueryParameter["page"] = page;
|
|
1462
|
+
}
|
|
1463
|
+
if (pageSize !== void 0) {
|
|
1464
|
+
localVarQueryParameter["pageSize"] = pageSize;
|
|
1465
|
+
}
|
|
1466
|
+
if (includeDryRun !== void 0) {
|
|
1467
|
+
localVarQueryParameter["includeDryRun"] = includeDryRun;
|
|
1468
|
+
}
|
|
1469
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1470
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1471
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1472
|
+
return {
|
|
1473
|
+
url: toPathString(localVarUrlObj),
|
|
1474
|
+
options: localVarRequestOptions
|
|
1475
|
+
};
|
|
1476
|
+
},
|
|
1477
|
+
/**
|
|
1478
|
+
* Get latest validation for a job
|
|
1479
|
+
* @summary Get latest validation
|
|
1480
|
+
* @param {string} workflowId
|
|
1481
|
+
* @param {string} jobId
|
|
1482
|
+
* @param {boolean | null} [includeDryRun]
|
|
1483
|
+
* @param {*} [options] Override http request option.
|
|
1484
|
+
* @throws {RequiredError}
|
|
1485
|
+
*/
|
|
1486
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet: async (workflowId, jobId, includeDryRun, options = {}) => {
|
|
1487
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet", "workflowId", workflowId);
|
|
1488
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet", "jobId", jobId);
|
|
1489
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/jobs/{jobId}/validations/latest`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId))).replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
1490
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1491
|
+
let baseOptions;
|
|
1492
|
+
if (configuration) {
|
|
1493
|
+
baseOptions = configuration.baseOptions;
|
|
1494
|
+
}
|
|
1495
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1496
|
+
const localVarHeaderParameter = {};
|
|
1497
|
+
const localVarQueryParameter = {};
|
|
1498
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1499
|
+
if (includeDryRun !== void 0) {
|
|
1500
|
+
localVarQueryParameter["includeDryRun"] = includeDryRun;
|
|
1501
|
+
}
|
|
1502
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1503
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1504
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1505
|
+
return {
|
|
1506
|
+
url: toPathString(localVarUrlObj),
|
|
1507
|
+
options: localVarRequestOptions
|
|
1508
|
+
};
|
|
1509
|
+
},
|
|
1510
|
+
/**
|
|
1511
|
+
* Retrieves the current data validation configuration for a specific workflow
|
|
1512
|
+
* @summary Get data validation configuration for a workflow
|
|
1513
|
+
* @param {string} workflowId The workflow ID to get validation configuration for
|
|
1514
|
+
* @param {*} [options] Override http request option.
|
|
1515
|
+
* @throws {RequiredError}
|
|
1516
|
+
*/
|
|
1517
|
+
v4DataValidationWorkflowsWorkflowIdValidationConfigGet: async (workflowId, options = {}) => {
|
|
1518
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdValidationConfigGet", "workflowId", workflowId);
|
|
1519
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/validation/config`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId)));
|
|
1520
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1521
|
+
let baseOptions;
|
|
1522
|
+
if (configuration) {
|
|
1523
|
+
baseOptions = configuration.baseOptions;
|
|
1524
|
+
}
|
|
1525
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1526
|
+
const localVarHeaderParameter = {};
|
|
1527
|
+
const localVarQueryParameter = {};
|
|
1528
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1529
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1530
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1531
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1532
|
+
return {
|
|
1533
|
+
url: toPathString(localVarUrlObj),
|
|
1534
|
+
options: localVarRequestOptions
|
|
1535
|
+
};
|
|
1536
|
+
},
|
|
1537
|
+
/**
|
|
1538
|
+
* Updates the complete data validation configuration including alerting settings
|
|
1539
|
+
* @summary Update data validation configuration for a workflow
|
|
1540
|
+
* @param {string} workflowId The workflow ID to update validation configuration for
|
|
1541
|
+
* @param {V4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest} [v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest] Body
|
|
1542
|
+
* @param {*} [options] Override http request option.
|
|
1543
|
+
* @throws {RequiredError}
|
|
1544
|
+
*/
|
|
1545
|
+
v4DataValidationWorkflowsWorkflowIdValidationConfigPut: async (workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options = {}) => {
|
|
1546
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdValidationConfigPut", "workflowId", workflowId);
|
|
1547
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/validation/config`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId)));
|
|
1548
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1549
|
+
let baseOptions;
|
|
1550
|
+
if (configuration) {
|
|
1551
|
+
baseOptions = configuration.baseOptions;
|
|
1552
|
+
}
|
|
1553
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1554
|
+
const localVarHeaderParameter = {};
|
|
1555
|
+
const localVarQueryParameter = {};
|
|
1556
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1557
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1558
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1559
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1560
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1561
|
+
localVarRequestOptions.data = serializeDataIfNeeded(v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, localVarRequestOptions, configuration);
|
|
1562
|
+
return {
|
|
1563
|
+
url: toPathString(localVarUrlObj),
|
|
1564
|
+
options: localVarRequestOptions
|
|
1565
|
+
};
|
|
1566
|
+
},
|
|
1567
|
+
/**
|
|
1568
|
+
* Enables or disables data validation for a specific workflow
|
|
1569
|
+
* @summary Toggle data validation for a workflow
|
|
1570
|
+
* @param {string} workflowId The workflow ID to update validation settings for
|
|
1571
|
+
* @param {V4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest} [v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest] Body
|
|
1572
|
+
* @param {*} [options] Override http request option.
|
|
1573
|
+
* @throws {RequiredError}
|
|
1574
|
+
*/
|
|
1575
|
+
v4DataValidationWorkflowsWorkflowIdValidationTogglePut: async (workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options = {}) => {
|
|
1576
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdValidationTogglePut", "workflowId", workflowId);
|
|
1577
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/validation/toggle`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId)));
|
|
1578
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1579
|
+
let baseOptions;
|
|
1580
|
+
if (configuration) {
|
|
1581
|
+
baseOptions = configuration.baseOptions;
|
|
1582
|
+
}
|
|
1583
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
1584
|
+
const localVarHeaderParameter = {};
|
|
1585
|
+
const localVarQueryParameter = {};
|
|
1586
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1587
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
1588
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1589
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1590
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1591
|
+
localVarRequestOptions.data = serializeDataIfNeeded(v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, localVarRequestOptions, configuration);
|
|
1592
|
+
return {
|
|
1593
|
+
url: toPathString(localVarUrlObj),
|
|
1594
|
+
options: localVarRequestOptions
|
|
1595
|
+
};
|
|
1596
|
+
},
|
|
1597
|
+
/**
|
|
1598
|
+
* Get latest validation for the most recent job of a workflow
|
|
1599
|
+
* @summary Get latest workflow validation
|
|
1600
|
+
* @param {string} workflowId
|
|
1601
|
+
* @param {boolean | null} [includeDryRun]
|
|
1602
|
+
* @param {*} [options] Override http request option.
|
|
1603
|
+
* @throws {RequiredError}
|
|
1604
|
+
*/
|
|
1605
|
+
v4DataValidationWorkflowsWorkflowIdValidationsLatestGet: async (workflowId, includeDryRun, options = {}) => {
|
|
1606
|
+
assertParamExists("v4DataValidationWorkflowsWorkflowIdValidationsLatestGet", "workflowId", workflowId);
|
|
1607
|
+
const localVarPath = `/v4/data-validation/workflows/{workflowId}/validations/latest`.replace(`{${"workflowId"}}`, encodeURIComponent(String(workflowId)));
|
|
1608
|
+
const localVarUrlObj = new url$1.URL(localVarPath, DUMMY_BASE_URL);
|
|
1609
|
+
let baseOptions;
|
|
1610
|
+
if (configuration) {
|
|
1611
|
+
baseOptions = configuration.baseOptions;
|
|
1612
|
+
}
|
|
1613
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
1614
|
+
const localVarHeaderParameter = {};
|
|
1615
|
+
const localVarQueryParameter = {};
|
|
1616
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
1617
|
+
if (includeDryRun !== void 0) {
|
|
1618
|
+
localVarQueryParameter["includeDryRun"] = includeDryRun;
|
|
1619
|
+
}
|
|
1620
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1621
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1622
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
1623
|
+
return {
|
|
1624
|
+
url: toPathString(localVarUrlObj),
|
|
1625
|
+
options: localVarRequestOptions
|
|
1626
|
+
};
|
|
1627
|
+
}
|
|
1628
|
+
};
|
|
1629
|
+
};
|
|
1630
|
+
var DataValidationApiFp = function(configuration) {
|
|
1631
|
+
const localVarAxiosParamCreator = DataValidationApiAxiosParamCreator(configuration);
|
|
1632
|
+
return {
|
|
1633
|
+
/**
|
|
1634
|
+
* Bulk approve preview rules for a workflow
|
|
1635
|
+
* @param {BulkApproveRules} [bulkApproveRules] Body
|
|
1636
|
+
* @param {*} [options] Override http request option.
|
|
1637
|
+
* @throws {RequiredError}
|
|
1638
|
+
*/
|
|
1639
|
+
async v4DataValidationRulesActionsBulkApprovePost(bulkApproveRules, options) {
|
|
1640
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkApprovePost(bulkApproveRules, options);
|
|
1641
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1642
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkApprovePost"]?.[localVarOperationServerIndex]?.url;
|
|
1643
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1644
|
+
},
|
|
1645
|
+
/**
|
|
1646
|
+
* Bulk delete rules for a workflow
|
|
1647
|
+
* @param {BulkDeleteRules} [bulkDeleteRules] Body
|
|
1648
|
+
* @param {*} [options] Override http request option.
|
|
1649
|
+
* @throws {RequiredError}
|
|
1650
|
+
*/
|
|
1651
|
+
async v4DataValidationRulesActionsBulkDeletePost(bulkDeleteRules, options) {
|
|
1652
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsBulkDeletePost(bulkDeleteRules, options);
|
|
1653
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1654
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsBulkDeletePost"]?.[localVarOperationServerIndex]?.url;
|
|
1655
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1656
|
+
},
|
|
1657
|
+
/**
|
|
1658
|
+
* Delete all validation rules with optional filtering
|
|
1659
|
+
* @param {string} [workflowId]
|
|
1660
|
+
* @param {DeleteRuleWithReason} [deleteRuleWithReason] Body
|
|
1661
|
+
* @param {*} [options] Override http request option.
|
|
1662
|
+
* @throws {RequiredError}
|
|
1663
|
+
*/
|
|
1664
|
+
async v4DataValidationRulesActionsDeleteAllDelete(workflowId, deleteRuleWithReason, options) {
|
|
1665
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsDeleteAllDelete(workflowId, deleteRuleWithReason, options);
|
|
1666
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1667
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsDeleteAllDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1668
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1669
|
+
},
|
|
1670
|
+
/**
|
|
1671
|
+
* Generate a validation rule
|
|
1672
|
+
* @param {GenerateRule} [generateRule] Body
|
|
1673
|
+
* @param {*} [options] Override http request option.
|
|
1674
|
+
* @throws {RequiredError}
|
|
1675
|
+
*/
|
|
1676
|
+
async v4DataValidationRulesActionsGeneratePost(generateRule, options) {
|
|
1677
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGeneratePost(generateRule, options);
|
|
1678
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1679
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGeneratePost"]?.[localVarOperationServerIndex]?.url;
|
|
1680
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1681
|
+
},
|
|
1682
|
+
/**
|
|
1683
|
+
* Generate multiple validation rules
|
|
1684
|
+
* @param {GenerateRules} [generateRules] Body
|
|
1685
|
+
* @param {*} [options] Override http request option.
|
|
1686
|
+
* @throws {RequiredError}
|
|
1687
|
+
*/
|
|
1688
|
+
async v4DataValidationRulesActionsGenerateRulesPost(generateRules, options) {
|
|
1689
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesActionsGenerateRulesPost(generateRules, options);
|
|
1690
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1691
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesActionsGenerateRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
1692
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1693
|
+
},
|
|
1694
|
+
/**
|
|
1695
|
+
* List validation rules with optional filtering
|
|
1696
|
+
* @param {string} [groupId]
|
|
1697
|
+
* @param {string} [workflowId]
|
|
1698
|
+
* @param {ValidationRuleStatus} [status]
|
|
1699
|
+
* @param {number} [page]
|
|
1700
|
+
* @param {number} [pageSize]
|
|
1701
|
+
* @param {V4DataValidationRulesGetIncludeDeletedParameter} [includeDeleted]
|
|
1702
|
+
* @param {*} [options] Override http request option.
|
|
1703
|
+
* @throws {RequiredError}
|
|
1704
|
+
*/
|
|
1705
|
+
async v4DataValidationRulesGet(groupId, workflowId, status, page, pageSize, includeDeleted, options) {
|
|
1706
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesGet(groupId, workflowId, status, page, pageSize, includeDeleted, options);
|
|
1707
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1708
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1709
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1710
|
+
},
|
|
1711
|
+
/**
|
|
1712
|
+
* Create a new validation rule
|
|
1713
|
+
* @param {CreateRule} [createRule] Body
|
|
1714
|
+
* @param {*} [options] Override http request option.
|
|
1715
|
+
* @throws {RequiredError}
|
|
1716
|
+
*/
|
|
1717
|
+
async v4DataValidationRulesPost(createRule, options) {
|
|
1718
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesPost(createRule, options);
|
|
1719
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1720
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesPost"]?.[localVarOperationServerIndex]?.url;
|
|
1721
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1722
|
+
},
|
|
1723
|
+
/**
|
|
1724
|
+
* Delete a validation rule with reason
|
|
1725
|
+
* @param {string} ruleId
|
|
1726
|
+
* @param {DeleteRuleWithReason} [deleteRuleWithReason] Body
|
|
1727
|
+
* @param {*} [options] Override http request option.
|
|
1728
|
+
* @throws {RequiredError}
|
|
1729
|
+
*/
|
|
1730
|
+
async v4DataValidationRulesRuleIdDelete(ruleId, deleteRuleWithReason, options) {
|
|
1731
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDelete(ruleId, deleteRuleWithReason, options);
|
|
1732
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1733
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1734
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1735
|
+
},
|
|
1736
|
+
/**
|
|
1737
|
+
* Disable a validation rule with reason
|
|
1738
|
+
* @param {string} ruleId
|
|
1739
|
+
* @param {DisableRule} [disableRule] Body
|
|
1740
|
+
* @param {*} [options] Override http request option.
|
|
1741
|
+
* @throws {RequiredError}
|
|
1742
|
+
*/
|
|
1743
|
+
async v4DataValidationRulesRuleIdDisablePost(ruleId, disableRule, options) {
|
|
1744
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdDisablePost(ruleId, disableRule, options);
|
|
1745
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1746
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdDisablePost"]?.[localVarOperationServerIndex]?.url;
|
|
1747
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1748
|
+
},
|
|
1749
|
+
/**
|
|
1750
|
+
* Get a validation rule by ID
|
|
1751
|
+
* @param {string} ruleId
|
|
1752
|
+
* @param {boolean} [includeDeleted]
|
|
1753
|
+
* @param {*} [options] Override http request option.
|
|
1754
|
+
* @throws {RequiredError}
|
|
1755
|
+
*/
|
|
1756
|
+
async v4DataValidationRulesRuleIdGet(ruleId, includeDeleted, options) {
|
|
1757
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdGet(ruleId, includeDeleted, options);
|
|
1758
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1759
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1760
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1761
|
+
},
|
|
1762
|
+
/**
|
|
1763
|
+
* Update a validation rule
|
|
1764
|
+
* @param {string} ruleId
|
|
1765
|
+
* @param {UpdateRule} [updateRule] Body
|
|
1766
|
+
* @param {*} [options] Override http request option.
|
|
1767
|
+
* @throws {RequiredError}
|
|
1768
|
+
*/
|
|
1769
|
+
async v4DataValidationRulesRuleIdPut(ruleId, updateRule, options) {
|
|
1770
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationRulesRuleIdPut(ruleId, updateRule, options);
|
|
1771
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1772
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationRulesRuleIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1773
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1774
|
+
},
|
|
1775
|
+
/**
|
|
1776
|
+
* Get all anomalies for a validation
|
|
1777
|
+
* @summary Get validation anomalies
|
|
1778
|
+
* @param {string} validationId
|
|
1779
|
+
* @param {number} [page]
|
|
1780
|
+
* @param {number} [pageSize]
|
|
1781
|
+
* @param {*} [options] Override http request option.
|
|
1782
|
+
* @throws {RequiredError}
|
|
1783
|
+
*/
|
|
1784
|
+
async v4DataValidationValidationsValidationIdAnomaliesGet(validationId, page, pageSize, options) {
|
|
1785
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesGet(validationId, page, pageSize, options);
|
|
1786
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1787
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1788
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1789
|
+
},
|
|
1790
|
+
/**
|
|
1791
|
+
* Get anomalies for a specific rule
|
|
1792
|
+
* @summary Get validation anomalies by rule
|
|
1793
|
+
* @param {string} validationId
|
|
1794
|
+
* @param {string} ruleName The rule name (URL encoded)
|
|
1795
|
+
* @param {number} [page]
|
|
1796
|
+
* @param {number} [pageSize]
|
|
1797
|
+
* @param {*} [options] Override http request option.
|
|
1798
|
+
* @throws {RequiredError}
|
|
1799
|
+
*/
|
|
1800
|
+
async v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(validationId, ruleName, page, pageSize, options) {
|
|
1801
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(validationId, ruleName, page, pageSize, options);
|
|
1802
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1803
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet"]?.[localVarOperationServerIndex]?.url;
|
|
1804
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1805
|
+
},
|
|
1806
|
+
/**
|
|
1807
|
+
* Get validation details
|
|
1808
|
+
* @summary Get validation details
|
|
1809
|
+
* @param {string} validationId
|
|
1810
|
+
* @param {boolean | null} [includeDryRun] Include dry run validations
|
|
1811
|
+
* @param {*} [options] Override http request option.
|
|
1812
|
+
* @throws {RequiredError}
|
|
1813
|
+
*/
|
|
1814
|
+
async v4DataValidationValidationsValidationIdGet(validationId, includeDryRun, options) {
|
|
1815
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationValidationsValidationIdGet(validationId, includeDryRun, options);
|
|
1816
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1817
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationValidationsValidationIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1818
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1819
|
+
},
|
|
1820
|
+
/**
|
|
1821
|
+
* Schedule a data validation job (alternative path)
|
|
1822
|
+
* @summary Schedule a data validation job (alternative path)
|
|
1823
|
+
* @param {string} workflowId The ID of the workflow to validate
|
|
1824
|
+
* @param {string} jobId The ID of the job to validate
|
|
1825
|
+
* @param {DataValidationRequestBody} [dataValidationRequestBody] Body
|
|
1826
|
+
* @param {*} [options] Override http request option.
|
|
1827
|
+
* @throws {RequiredError}
|
|
1828
|
+
*/
|
|
1829
|
+
async v4DataValidationWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options) {
|
|
1830
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
1831
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1832
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
1833
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1834
|
+
},
|
|
1835
|
+
/**
|
|
1836
|
+
* Schedule a data validation job
|
|
1837
|
+
* @summary Schedule a data validation job
|
|
1838
|
+
* @param {string} workflowId The ID of the workflow to validate
|
|
1839
|
+
* @param {string} jobId The ID of the job to validate
|
|
1840
|
+
* @param {DataValidationRequestBody} [dataValidationRequestBody] Body
|
|
1841
|
+
* @param {*} [options] Override http request option.
|
|
1842
|
+
* @throws {RequiredError}
|
|
1843
|
+
*/
|
|
1844
|
+
async v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options) {
|
|
1845
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(workflowId, jobId, dataValidationRequestBody, options);
|
|
1846
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1847
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost"]?.[localVarOperationServerIndex]?.url;
|
|
1848
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1849
|
+
},
|
|
1850
|
+
/**
|
|
1851
|
+
* List all validations for a job
|
|
1852
|
+
* @summary List all validations for a job
|
|
1853
|
+
* @param {string} workflowId
|
|
1854
|
+
* @param {string} jobId
|
|
1855
|
+
* @param {number} [page]
|
|
1856
|
+
* @param {number} [pageSize]
|
|
1857
|
+
* @param {boolean | null} [includeDryRun] Include dry run validations in results
|
|
1858
|
+
* @param {*} [options] Override http request option.
|
|
1859
|
+
* @throws {RequiredError}
|
|
1860
|
+
*/
|
|
1861
|
+
async v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(workflowId, jobId, page, pageSize, includeDryRun, options) {
|
|
1862
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(workflowId, jobId, page, pageSize, includeDryRun, options);
|
|
1863
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1864
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1865
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1866
|
+
},
|
|
1867
|
+
/**
|
|
1868
|
+
* Get latest validation for a job
|
|
1869
|
+
* @summary Get latest validation
|
|
1870
|
+
* @param {string} workflowId
|
|
1871
|
+
* @param {string} jobId
|
|
1872
|
+
* @param {boolean | null} [includeDryRun]
|
|
1873
|
+
* @param {*} [options] Override http request option.
|
|
1874
|
+
* @throws {RequiredError}
|
|
1875
|
+
*/
|
|
1876
|
+
async v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(workflowId, jobId, includeDryRun, options) {
|
|
1877
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(workflowId, jobId, includeDryRun, options);
|
|
1878
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1879
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1880
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1881
|
+
},
|
|
1882
|
+
/**
|
|
1883
|
+
* Retrieves the current data validation configuration for a specific workflow
|
|
1884
|
+
* @summary Get data validation configuration for a workflow
|
|
1885
|
+
* @param {string} workflowId The workflow ID to get validation configuration for
|
|
1886
|
+
* @param {*} [options] Override http request option.
|
|
1887
|
+
* @throws {RequiredError}
|
|
1888
|
+
*/
|
|
1889
|
+
async v4DataValidationWorkflowsWorkflowIdValidationConfigGet(workflowId, options) {
|
|
1890
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigGet(workflowId, options);
|
|
1891
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1892
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigGet"]?.[localVarOperationServerIndex]?.url;
|
|
1893
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1894
|
+
},
|
|
1895
|
+
/**
|
|
1896
|
+
* Updates the complete data validation configuration including alerting settings
|
|
1897
|
+
* @summary Update data validation configuration for a workflow
|
|
1898
|
+
* @param {string} workflowId The workflow ID to update validation configuration for
|
|
1899
|
+
* @param {V4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest} [v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest] Body
|
|
1900
|
+
* @param {*} [options] Override http request option.
|
|
1901
|
+
* @throws {RequiredError}
|
|
1902
|
+
*/
|
|
1903
|
+
async v4DataValidationWorkflowsWorkflowIdValidationConfigPut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options) {
|
|
1904
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationConfigPut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options);
|
|
1905
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1906
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationConfigPut"]?.[localVarOperationServerIndex]?.url;
|
|
1907
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1908
|
+
},
|
|
1909
|
+
/**
|
|
1910
|
+
* Enables or disables data validation for a specific workflow
|
|
1911
|
+
* @summary Toggle data validation for a workflow
|
|
1912
|
+
* @param {string} workflowId The workflow ID to update validation settings for
|
|
1913
|
+
* @param {V4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest} [v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest] Body
|
|
1914
|
+
* @param {*} [options] Override http request option.
|
|
1915
|
+
* @throws {RequiredError}
|
|
1916
|
+
*/
|
|
1917
|
+
async v4DataValidationWorkflowsWorkflowIdValidationTogglePut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options) {
|
|
1918
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationTogglePut(workflowId, v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options);
|
|
1919
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1920
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationTogglePut"]?.[localVarOperationServerIndex]?.url;
|
|
1921
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1922
|
+
},
|
|
1923
|
+
/**
|
|
1924
|
+
* Get latest validation for the most recent job of a workflow
|
|
1925
|
+
* @summary Get latest workflow validation
|
|
1926
|
+
* @param {string} workflowId
|
|
1927
|
+
* @param {boolean | null} [includeDryRun]
|
|
1928
|
+
* @param {*} [options] Override http request option.
|
|
1929
|
+
* @throws {RequiredError}
|
|
1930
|
+
*/
|
|
1931
|
+
async v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(workflowId, includeDryRun, options) {
|
|
1932
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(workflowId, includeDryRun, options);
|
|
1933
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1934
|
+
const localVarOperationServerBasePath = operationServerMap["DataValidationApi.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet"]?.[localVarOperationServerIndex]?.url;
|
|
1935
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1936
|
+
}
|
|
1937
|
+
};
|
|
1938
|
+
};
|
|
1939
|
+
var DataValidationApi = class extends BaseAPI {
|
|
1940
|
+
/**
|
|
1941
|
+
* Bulk approve preview rules for a workflow
|
|
1942
|
+
* @param {DataValidationApiV4DataValidationRulesActionsBulkApprovePostRequest} requestParameters Request parameters.
|
|
1943
|
+
* @param {*} [options] Override http request option.
|
|
1944
|
+
* @throws {RequiredError}
|
|
1945
|
+
* @memberof DataValidationApi
|
|
1946
|
+
*/
|
|
1947
|
+
v4DataValidationRulesActionsBulkApprovePost(requestParameters = {}, options) {
|
|
1948
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsBulkApprovePost(requestParameters.bulkApproveRules, options).then((request) => request(this.axios, this.basePath));
|
|
1949
|
+
}
|
|
1950
|
+
/**
|
|
1951
|
+
* Bulk delete rules for a workflow
|
|
1952
|
+
* @param {DataValidationApiV4DataValidationRulesActionsBulkDeletePostRequest} requestParameters Request parameters.
|
|
1953
|
+
* @param {*} [options] Override http request option.
|
|
1954
|
+
* @throws {RequiredError}
|
|
1955
|
+
* @memberof DataValidationApi
|
|
1956
|
+
*/
|
|
1957
|
+
v4DataValidationRulesActionsBulkDeletePost(requestParameters = {}, options) {
|
|
1958
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsBulkDeletePost(requestParameters.bulkDeleteRules, options).then((request) => request(this.axios, this.basePath));
|
|
1959
|
+
}
|
|
1960
|
+
/**
|
|
1961
|
+
* Delete all validation rules with optional filtering
|
|
1962
|
+
* @param {DataValidationApiV4DataValidationRulesActionsDeleteAllDeleteRequest} requestParameters Request parameters.
|
|
1963
|
+
* @param {*} [options] Override http request option.
|
|
1964
|
+
* @throws {RequiredError}
|
|
1965
|
+
* @memberof DataValidationApi
|
|
1966
|
+
*/
|
|
1967
|
+
v4DataValidationRulesActionsDeleteAllDelete(requestParameters = {}, options) {
|
|
1968
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsDeleteAllDelete(requestParameters.workflowId, requestParameters.deleteRuleWithReason, options).then((request) => request(this.axios, this.basePath));
|
|
1969
|
+
}
|
|
1970
|
+
/**
|
|
1971
|
+
* Generate a validation rule
|
|
1972
|
+
* @param {DataValidationApiV4DataValidationRulesActionsGeneratePostRequest} requestParameters Request parameters.
|
|
1973
|
+
* @param {*} [options] Override http request option.
|
|
1974
|
+
* @throws {RequiredError}
|
|
1975
|
+
* @memberof DataValidationApi
|
|
1976
|
+
*/
|
|
1977
|
+
v4DataValidationRulesActionsGeneratePost(requestParameters = {}, options) {
|
|
1978
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsGeneratePost(requestParameters.generateRule, options).then((request) => request(this.axios, this.basePath));
|
|
1979
|
+
}
|
|
1980
|
+
/**
|
|
1981
|
+
* Generate multiple validation rules
|
|
1982
|
+
* @param {DataValidationApiV4DataValidationRulesActionsGenerateRulesPostRequest} requestParameters Request parameters.
|
|
1983
|
+
* @param {*} [options] Override http request option.
|
|
1984
|
+
* @throws {RequiredError}
|
|
1985
|
+
* @memberof DataValidationApi
|
|
1986
|
+
*/
|
|
1987
|
+
v4DataValidationRulesActionsGenerateRulesPost(requestParameters = {}, options) {
|
|
1988
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesActionsGenerateRulesPost(requestParameters.generateRules, options).then((request) => request(this.axios, this.basePath));
|
|
1989
|
+
}
|
|
1990
|
+
/**
|
|
1991
|
+
* List validation rules with optional filtering
|
|
1992
|
+
* @param {DataValidationApiV4DataValidationRulesGetRequest} requestParameters Request parameters.
|
|
1993
|
+
* @param {*} [options] Override http request option.
|
|
1994
|
+
* @throws {RequiredError}
|
|
1995
|
+
* @memberof DataValidationApi
|
|
1996
|
+
*/
|
|
1997
|
+
v4DataValidationRulesGet(requestParameters = {}, options) {
|
|
1998
|
+
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));
|
|
1999
|
+
}
|
|
2000
|
+
/**
|
|
2001
|
+
* Create a new validation rule
|
|
2002
|
+
* @param {DataValidationApiV4DataValidationRulesPostRequest} requestParameters Request parameters.
|
|
2003
|
+
* @param {*} [options] Override http request option.
|
|
2004
|
+
* @throws {RequiredError}
|
|
2005
|
+
* @memberof DataValidationApi
|
|
2006
|
+
*/
|
|
2007
|
+
v4DataValidationRulesPost(requestParameters = {}, options) {
|
|
2008
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesPost(requestParameters.createRule, options).then((request) => request(this.axios, this.basePath));
|
|
2009
|
+
}
|
|
2010
|
+
/**
|
|
2011
|
+
* Delete a validation rule with reason
|
|
2012
|
+
* @param {DataValidationApiV4DataValidationRulesRuleIdDeleteRequest} requestParameters Request parameters.
|
|
2013
|
+
* @param {*} [options] Override http request option.
|
|
2014
|
+
* @throws {RequiredError}
|
|
2015
|
+
* @memberof DataValidationApi
|
|
2016
|
+
*/
|
|
2017
|
+
v4DataValidationRulesRuleIdDelete(requestParameters, options) {
|
|
2018
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesRuleIdDelete(requestParameters.ruleId, requestParameters.deleteRuleWithReason, options).then((request) => request(this.axios, this.basePath));
|
|
2019
|
+
}
|
|
2020
|
+
/**
|
|
2021
|
+
* Disable a validation rule with reason
|
|
2022
|
+
* @param {DataValidationApiV4DataValidationRulesRuleIdDisablePostRequest} requestParameters Request parameters.
|
|
2023
|
+
* @param {*} [options] Override http request option.
|
|
2024
|
+
* @throws {RequiredError}
|
|
2025
|
+
* @memberof DataValidationApi
|
|
2026
|
+
*/
|
|
2027
|
+
v4DataValidationRulesRuleIdDisablePost(requestParameters, options) {
|
|
2028
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesRuleIdDisablePost(requestParameters.ruleId, requestParameters.disableRule, options).then((request) => request(this.axios, this.basePath));
|
|
2029
|
+
}
|
|
2030
|
+
/**
|
|
2031
|
+
* Get a validation rule by ID
|
|
2032
|
+
* @param {DataValidationApiV4DataValidationRulesRuleIdGetRequest} requestParameters Request parameters.
|
|
2033
|
+
* @param {*} [options] Override http request option.
|
|
2034
|
+
* @throws {RequiredError}
|
|
2035
|
+
* @memberof DataValidationApi
|
|
2036
|
+
*/
|
|
2037
|
+
v4DataValidationRulesRuleIdGet(requestParameters, options) {
|
|
2038
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesRuleIdGet(requestParameters.ruleId, requestParameters.includeDeleted, options).then((request) => request(this.axios, this.basePath));
|
|
2039
|
+
}
|
|
2040
|
+
/**
|
|
2041
|
+
* Update a validation rule
|
|
2042
|
+
* @param {DataValidationApiV4DataValidationRulesRuleIdPutRequest} requestParameters Request parameters.
|
|
2043
|
+
* @param {*} [options] Override http request option.
|
|
2044
|
+
* @throws {RequiredError}
|
|
2045
|
+
* @memberof DataValidationApi
|
|
2046
|
+
*/
|
|
2047
|
+
v4DataValidationRulesRuleIdPut(requestParameters, options) {
|
|
2048
|
+
return DataValidationApiFp(this.configuration).v4DataValidationRulesRuleIdPut(requestParameters.ruleId, requestParameters.updateRule, options).then((request) => request(this.axios, this.basePath));
|
|
2049
|
+
}
|
|
2050
|
+
/**
|
|
2051
|
+
* Get all anomalies for a validation
|
|
2052
|
+
* @summary Get validation anomalies
|
|
2053
|
+
* @param {DataValidationApiV4DataValidationValidationsValidationIdAnomaliesGetRequest} requestParameters Request parameters.
|
|
2054
|
+
* @param {*} [options] Override http request option.
|
|
2055
|
+
* @throws {RequiredError}
|
|
2056
|
+
* @memberof DataValidationApi
|
|
2057
|
+
*/
|
|
2058
|
+
v4DataValidationValidationsValidationIdAnomaliesGet(requestParameters, options) {
|
|
2059
|
+
return DataValidationApiFp(this.configuration).v4DataValidationValidationsValidationIdAnomaliesGet(requestParameters.validationId, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2060
|
+
}
|
|
2061
|
+
/**
|
|
2062
|
+
* Get anomalies for a specific rule
|
|
2063
|
+
* @summary Get validation anomalies by rule
|
|
2064
|
+
* @param {DataValidationApiV4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGetRequest} requestParameters Request parameters.
|
|
2065
|
+
* @param {*} [options] Override http request option.
|
|
2066
|
+
* @throws {RequiredError}
|
|
2067
|
+
* @memberof DataValidationApi
|
|
2068
|
+
*/
|
|
2069
|
+
v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(requestParameters, options) {
|
|
2070
|
+
return DataValidationApiFp(this.configuration).v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(requestParameters.validationId, requestParameters.ruleName, requestParameters.page, requestParameters.pageSize, options).then((request) => request(this.axios, this.basePath));
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* Get validation details
|
|
2074
|
+
* @summary Get validation details
|
|
2075
|
+
* @param {DataValidationApiV4DataValidationValidationsValidationIdGetRequest} requestParameters Request parameters.
|
|
2076
|
+
* @param {*} [options] Override http request option.
|
|
2077
|
+
* @throws {RequiredError}
|
|
2078
|
+
* @memberof DataValidationApi
|
|
2079
|
+
*/
|
|
2080
|
+
v4DataValidationValidationsValidationIdGet(requestParameters, options) {
|
|
2081
|
+
return DataValidationApiFp(this.configuration).v4DataValidationValidationsValidationIdGet(requestParameters.validationId, requestParameters.includeDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
2082
|
+
}
|
|
2083
|
+
/**
|
|
2084
|
+
* Schedule a data validation job (alternative path)
|
|
2085
|
+
* @summary Schedule a data validation job (alternative path)
|
|
2086
|
+
* @param {DataValidationApiV4DataValidationWorkflowIdJobsJobIdValidatePostRequest} requestParameters Request parameters.
|
|
2087
|
+
* @param {*} [options] Override http request option.
|
|
2088
|
+
* @throws {RequiredError}
|
|
2089
|
+
* @memberof DataValidationApi
|
|
2090
|
+
*/
|
|
2091
|
+
v4DataValidationWorkflowIdJobsJobIdValidatePost(requestParameters, options) {
|
|
2092
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowIdJobsJobIdValidatePost(requestParameters.workflowId, requestParameters.jobId, requestParameters.dataValidationRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2093
|
+
}
|
|
2094
|
+
/**
|
|
2095
|
+
* Schedule a data validation job
|
|
2096
|
+
* @summary Schedule a data validation job
|
|
2097
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePostRequest} requestParameters Request parameters.
|
|
2098
|
+
* @param {*} [options] Override http request option.
|
|
2099
|
+
* @throws {RequiredError}
|
|
2100
|
+
* @memberof DataValidationApi
|
|
2101
|
+
*/
|
|
2102
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(requestParameters, options) {
|
|
2103
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(requestParameters.workflowId, requestParameters.jobId, requestParameters.dataValidationRequestBody, options).then((request) => request(this.axios, this.basePath));
|
|
2104
|
+
}
|
|
2105
|
+
/**
|
|
2106
|
+
* List all validations for a job
|
|
2107
|
+
* @summary List all validations for a job
|
|
2108
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGetRequest} requestParameters Request parameters.
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
* @memberof DataValidationApi
|
|
2112
|
+
*/
|
|
2113
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(requestParameters, options) {
|
|
2114
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(requestParameters.workflowId, requestParameters.jobId, requestParameters.page, requestParameters.pageSize, requestParameters.includeDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* Get latest validation for a job
|
|
2118
|
+
* @summary Get latest validation
|
|
2119
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGetRequest} requestParameters Request parameters.
|
|
2120
|
+
* @param {*} [options] Override http request option.
|
|
2121
|
+
* @throws {RequiredError}
|
|
2122
|
+
* @memberof DataValidationApi
|
|
2123
|
+
*/
|
|
2124
|
+
v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(requestParameters, options) {
|
|
2125
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(requestParameters.workflowId, requestParameters.jobId, requestParameters.includeDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
2126
|
+
}
|
|
2127
|
+
/**
|
|
2128
|
+
* Retrieves the current data validation configuration for a specific workflow
|
|
2129
|
+
* @summary Get data validation configuration for a workflow
|
|
2130
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdValidationConfigGetRequest} requestParameters Request parameters.
|
|
2131
|
+
* @param {*} [options] Override http request option.
|
|
2132
|
+
* @throws {RequiredError}
|
|
2133
|
+
* @memberof DataValidationApi
|
|
2134
|
+
*/
|
|
2135
|
+
v4DataValidationWorkflowsWorkflowIdValidationConfigGet(requestParameters, options) {
|
|
2136
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdValidationConfigGet(requestParameters.workflowId, options).then((request) => request(this.axios, this.basePath));
|
|
2137
|
+
}
|
|
2138
|
+
/**
|
|
2139
|
+
* Updates the complete data validation configuration including alerting settings
|
|
2140
|
+
* @summary Update data validation configuration for a workflow
|
|
2141
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest} requestParameters Request parameters.
|
|
2142
|
+
* @param {*} [options] Override http request option.
|
|
2143
|
+
* @throws {RequiredError}
|
|
2144
|
+
* @memberof DataValidationApi
|
|
2145
|
+
*/
|
|
2146
|
+
v4DataValidationWorkflowsWorkflowIdValidationConfigPut(requestParameters, options) {
|
|
2147
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdValidationConfigPut(requestParameters.workflowId, requestParameters.v4DataValidationWorkflowsWorkflowIdValidationConfigPutRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2148
|
+
}
|
|
2149
|
+
/**
|
|
2150
|
+
* Enables or disables data validation for a specific workflow
|
|
2151
|
+
* @summary Toggle data validation for a workflow
|
|
2152
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest} requestParameters Request parameters.
|
|
2153
|
+
* @param {*} [options] Override http request option.
|
|
2154
|
+
* @throws {RequiredError}
|
|
2155
|
+
* @memberof DataValidationApi
|
|
2156
|
+
*/
|
|
2157
|
+
v4DataValidationWorkflowsWorkflowIdValidationTogglePut(requestParameters, options) {
|
|
2158
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdValidationTogglePut(requestParameters.workflowId, requestParameters.v4DataValidationWorkflowsWorkflowIdValidationTogglePutRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2159
|
+
}
|
|
2160
|
+
/**
|
|
2161
|
+
* Get latest validation for the most recent job of a workflow
|
|
2162
|
+
* @summary Get latest workflow validation
|
|
2163
|
+
* @param {DataValidationApiV4DataValidationWorkflowsWorkflowIdValidationsLatestGetRequest} requestParameters Request parameters.
|
|
2164
|
+
* @param {*} [options] Override http request option.
|
|
2165
|
+
* @throws {RequiredError}
|
|
2166
|
+
* @memberof DataValidationApi
|
|
2167
|
+
*/
|
|
2168
|
+
v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(requestParameters, options) {
|
|
2169
|
+
return DataValidationApiFp(this.configuration).v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(requestParameters.workflowId, requestParameters.includeDryRun, options).then((request) => request(this.axios, this.basePath));
|
|
2170
|
+
}
|
|
2171
|
+
};
|
|
934
2172
|
var NotificationsApiAxiosParamCreator = function(configuration) {
|
|
935
2173
|
return {
|
|
936
2174
|
/**
|
|
@@ -1369,7 +2607,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1369
2607
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdDelete(channelId, options);
|
|
1370
2608
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1371
2609
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1372
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2610
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1373
2611
|
},
|
|
1374
2612
|
/**
|
|
1375
2613
|
*
|
|
@@ -1382,7 +2620,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1382
2620
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdGet(channelId, options);
|
|
1383
2621
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1384
2622
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1385
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2623
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1386
2624
|
},
|
|
1387
2625
|
/**
|
|
1388
2626
|
*
|
|
@@ -1396,7 +2634,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1396
2634
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsChannelIdPut(channelId, v5NotificationsChannelsPostRequest, options);
|
|
1397
2635
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1398
2636
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsChannelIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1399
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2637
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1400
2638
|
},
|
|
1401
2639
|
/**
|
|
1402
2640
|
*
|
|
@@ -1409,7 +2647,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1409
2647
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsGet(workflowId, options);
|
|
1410
2648
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1411
2649
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1412
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2650
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1413
2651
|
},
|
|
1414
2652
|
/**
|
|
1415
2653
|
*
|
|
@@ -1422,7 +2660,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1422
2660
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsChannelsPost(v5NotificationsChannelsPostRequest, options);
|
|
1423
2661
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1424
2662
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsChannelsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1425
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2663
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1426
2664
|
},
|
|
1427
2665
|
/**
|
|
1428
2666
|
*
|
|
@@ -1435,7 +2673,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1435
2673
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesEventTypeGet(eventType, options);
|
|
1436
2674
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1437
2675
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesEventTypeGet"]?.[localVarOperationServerIndex]?.url;
|
|
1438
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2676
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1439
2677
|
},
|
|
1440
2678
|
/**
|
|
1441
2679
|
*
|
|
@@ -1447,7 +2685,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1447
2685
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsEventTypesGet(options);
|
|
1448
2686
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1449
2687
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsEventTypesGet"]?.[localVarOperationServerIndex]?.url;
|
|
1450
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2688
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1451
2689
|
},
|
|
1452
2690
|
/**
|
|
1453
2691
|
*
|
|
@@ -1465,7 +2703,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1465
2703
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsLogsGet(workflowId, eventType, startDate, endDate, limit, offset, options);
|
|
1466
2704
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1467
2705
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsLogsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1468
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2706
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1469
2707
|
},
|
|
1470
2708
|
/**
|
|
1471
2709
|
*
|
|
@@ -1479,7 +2717,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1479
2717
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsGet(workflowId, eventType, options);
|
|
1480
2718
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1481
2719
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsGet"]?.[localVarOperationServerIndex]?.url;
|
|
1482
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2720
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1483
2721
|
},
|
|
1484
2722
|
/**
|
|
1485
2723
|
*
|
|
@@ -1492,7 +2730,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1492
2730
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsPost(v5NotificationsSettingsPostRequest, options);
|
|
1493
2731
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1494
2732
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsPost"]?.[localVarOperationServerIndex]?.url;
|
|
1495
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2733
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1496
2734
|
},
|
|
1497
2735
|
/**
|
|
1498
2736
|
*
|
|
@@ -1505,7 +2743,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1505
2743
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdDelete(settingsId, options);
|
|
1506
2744
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1507
2745
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1508
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2746
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1509
2747
|
},
|
|
1510
2748
|
/**
|
|
1511
2749
|
*
|
|
@@ -1518,7 +2756,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1518
2756
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdGet(settingsId, options);
|
|
1519
2757
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1520
2758
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1521
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2759
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1522
2760
|
},
|
|
1523
2761
|
/**
|
|
1524
2762
|
*
|
|
@@ -1532,7 +2770,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1532
2770
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsSettingsSettingsIdPut(settingsId, v5NotificationsSettingsSettingsIdPutRequest, options);
|
|
1533
2771
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1534
2772
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsSettingsSettingsIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1535
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2773
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1536
2774
|
},
|
|
1537
2775
|
/**
|
|
1538
2776
|
*
|
|
@@ -1545,7 +2783,7 @@ var NotificationsApiFp = function(configuration) {
|
|
|
1545
2783
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5NotificationsTestPost(v5NotificationsTestPostRequest, options);
|
|
1546
2784
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1547
2785
|
const localVarOperationServerBasePath = operationServerMap["NotificationsApi.v5NotificationsTestPost"]?.[localVarOperationServerIndex]?.url;
|
|
1548
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
2786
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1549
2787
|
}
|
|
1550
2788
|
};
|
|
1551
2789
|
};
|
|
@@ -1918,7 +3156,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1918
3156
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasGet(xApiKey, authorization, options);
|
|
1919
3157
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1920
3158
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasGet"]?.[localVarOperationServerIndex]?.url;
|
|
1921
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3159
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1922
3160
|
},
|
|
1923
3161
|
/**
|
|
1924
3162
|
*
|
|
@@ -1933,7 +3171,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1933
3171
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasPost(v4SchemasPostRequest, xApiKey, authorization, options);
|
|
1934
3172
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1935
3173
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasPost"]?.[localVarOperationServerIndex]?.url;
|
|
1936
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3174
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1937
3175
|
},
|
|
1938
3176
|
/**
|
|
1939
3177
|
*
|
|
@@ -1948,7 +3186,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1948
3186
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdDelete(schemaId, xApiKey, authorization, options);
|
|
1949
3187
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1950
3188
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
1951
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3189
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1952
3190
|
},
|
|
1953
3191
|
/**
|
|
1954
3192
|
*
|
|
@@ -1963,7 +3201,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1963
3201
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdGet(schemaId, xApiKey, authorization, options);
|
|
1964
3202
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1965
3203
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
1966
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3204
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1967
3205
|
},
|
|
1968
3206
|
/**
|
|
1969
3207
|
*
|
|
@@ -1979,7 +3217,7 @@ var SchemasApiFp = function(configuration) {
|
|
|
1979
3217
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4SchemasSchemaIdPut(schemaId, v4SchemasSchemaIdPutRequest, xApiKey, authorization, options);
|
|
1980
3218
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
1981
3219
|
const localVarOperationServerBasePath = operationServerMap["SchemasApi.v4SchemasSchemaIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
1982
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
3220
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
1983
3221
|
}
|
|
1984
3222
|
};
|
|
1985
3223
|
};
|
|
@@ -2973,7 +4211,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
2973
4211
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
2974
4212
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2975
4213
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
2976
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4214
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2977
4215
|
},
|
|
2978
4216
|
/**
|
|
2979
4217
|
*
|
|
@@ -2992,7 +4230,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
2992
4230
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
2993
4231
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
2994
4232
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
2995
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4233
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
2996
4234
|
},
|
|
2997
4235
|
/**
|
|
2998
4236
|
* Retrieves a list of workflows with pagination and search capabilities
|
|
@@ -3014,7 +4252,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3014
4252
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, tags, monitoring, updateInterval, templateId, includeDeleted, format, options);
|
|
3015
4253
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3016
4254
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsGet"]?.[localVarOperationServerIndex]?.url;
|
|
3017
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4255
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3018
4256
|
},
|
|
3019
4257
|
/**
|
|
3020
4258
|
*
|
|
@@ -3027,7 +4265,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3027
4265
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsPost(v4WorkflowsPostRequest, options);
|
|
3028
4266
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3029
4267
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsPost"]?.[localVarOperationServerIndex]?.url;
|
|
3030
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4268
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3031
4269
|
},
|
|
3032
4270
|
/**
|
|
3033
4271
|
*
|
|
@@ -3040,7 +4278,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3040
4278
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsSetupEditPost(v4WorkflowsSetupEditPostRequest, options);
|
|
3041
4279
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3042
4280
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsSetupEditPost"]?.[localVarOperationServerIndex]?.url;
|
|
3043
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4281
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3044
4282
|
},
|
|
3045
4283
|
/**
|
|
3046
4284
|
*
|
|
@@ -3053,7 +4291,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3053
4291
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsSetupPost(v4WorkflowsSetupPostRequest, options);
|
|
3054
4292
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3055
4293
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsSetupPost"]?.[localVarOperationServerIndex]?.url;
|
|
3056
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4294
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3057
4295
|
},
|
|
3058
4296
|
/**
|
|
3059
4297
|
*
|
|
@@ -3070,7 +4308,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3070
4308
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3071
4309
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3072
4310
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3073
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4311
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3074
4312
|
},
|
|
3075
4313
|
/**
|
|
3076
4314
|
*
|
|
@@ -3085,7 +4323,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3085
4323
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceApprovePut(workflowId, xApiKey, authorization, options);
|
|
3086
4324
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3087
4325
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceApprovePut"]?.[localVarOperationServerIndex]?.url;
|
|
3088
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4326
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3089
4327
|
},
|
|
3090
4328
|
/**
|
|
3091
4329
|
*
|
|
@@ -3101,7 +4339,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3101
4339
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdComplianceRejectPut(workflowId, v4WorkflowsWorkflowIdComplianceRejectPutRequest, xApiKey, authorization, options);
|
|
3102
4340
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3103
4341
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdComplianceRejectPut"]?.[localVarOperationServerIndex]?.url;
|
|
3104
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4342
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3105
4343
|
},
|
|
3106
4344
|
/**
|
|
3107
4345
|
*
|
|
@@ -3126,7 +4364,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3126
4364
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDataGet(workflowId, xApiKey, authorization, runId, format, sortBy, order, filters, page, limit, gzip, rowIds, includeAnomalies, options);
|
|
3127
4365
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3128
4366
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDataGet"]?.[localVarOperationServerIndex]?.url;
|
|
3129
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4367
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3130
4368
|
},
|
|
3131
4369
|
/**
|
|
3132
4370
|
*
|
|
@@ -3139,7 +4377,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3139
4377
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdDelete(workflowId, options);
|
|
3140
4378
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3141
4379
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3142
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4380
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3143
4381
|
},
|
|
3144
4382
|
/**
|
|
3145
4383
|
* Retrieves detailed information about a specific workflow. This endpoint requires authentication and proper team access permissions.
|
|
@@ -3152,7 +4390,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3152
4390
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdGet(workflowId, options);
|
|
3153
4391
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3154
4392
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3155
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4393
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3156
4394
|
},
|
|
3157
4395
|
/**
|
|
3158
4396
|
*
|
|
@@ -3165,7 +4403,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3165
4403
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdHistoryGet(workflowId, options);
|
|
3166
4404
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3167
4405
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdHistoryGet"]?.[localVarOperationServerIndex]?.url;
|
|
3168
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4406
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3169
4407
|
},
|
|
3170
4408
|
/**
|
|
3171
4409
|
*
|
|
@@ -3179,7 +4417,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3179
4417
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdMetadataPut(workflowId, v4WorkflowsWorkflowIdMetadataPutRequest, options);
|
|
3180
4418
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3181
4419
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdMetadataPut"]?.[localVarOperationServerIndex]?.url;
|
|
3182
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4420
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3183
4421
|
},
|
|
3184
4422
|
/**
|
|
3185
4423
|
*
|
|
@@ -3192,7 +4430,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3192
4430
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdPausePut(workflowId, options);
|
|
3193
4431
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3194
4432
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdPausePut"]?.[localVarOperationServerIndex]?.url;
|
|
3195
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4433
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3196
4434
|
},
|
|
3197
4435
|
/**
|
|
3198
4436
|
* 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.
|
|
@@ -3205,7 +4443,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3205
4443
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdResumePut(workflowId, options);
|
|
3206
4444
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3207
4445
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdResumePut"]?.[localVarOperationServerIndex]?.url;
|
|
3208
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4446
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3209
4447
|
},
|
|
3210
4448
|
/**
|
|
3211
4449
|
*
|
|
@@ -3218,7 +4456,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3218
4456
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdRunPut(workflowId, options);
|
|
3219
4457
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3220
4458
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdRunPut"]?.[localVarOperationServerIndex]?.url;
|
|
3221
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4459
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3222
4460
|
},
|
|
3223
4461
|
/**
|
|
3224
4462
|
*
|
|
@@ -3232,7 +4470,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3232
4470
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsWorkflowIdSchedulePut(workflowId, v4WorkflowsWorkflowIdSchedulePutRequest, options);
|
|
3233
4471
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3234
4472
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsWorkflowIdSchedulePut"]?.[localVarOperationServerIndex]?.url;
|
|
3235
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4473
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3236
4474
|
},
|
|
3237
4475
|
/**
|
|
3238
4476
|
*
|
|
@@ -3247,7 +4485,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3247
4485
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesChangeIdGet(changeId, xApiKey, authorization, options);
|
|
3248
4486
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3249
4487
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesChangeIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3250
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4488
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3251
4489
|
},
|
|
3252
4490
|
/**
|
|
3253
4491
|
*
|
|
@@ -3266,7 +4504,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3266
4504
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5ChangesGet(xApiKey, authorization, workflowIds, startDate, endDate, skip, limit, options);
|
|
3267
4505
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3268
4506
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5ChangesGet"]?.[localVarOperationServerIndex]?.url;
|
|
3269
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4507
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3270
4508
|
},
|
|
3271
4509
|
/**
|
|
3272
4510
|
* Permanently deletes a workflow and its associated tags
|
|
@@ -3279,7 +4517,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3279
4517
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsIdDelete(id, options);
|
|
3280
4518
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3281
4519
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
3282
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4520
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3283
4521
|
},
|
|
3284
4522
|
/**
|
|
3285
4523
|
* Retrieves a specific workflow and its associated tags by ID
|
|
@@ -3292,7 +4530,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3292
4530
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsIdGet(id, options);
|
|
3293
4531
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3294
4532
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
3295
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4533
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3296
4534
|
},
|
|
3297
4535
|
/**
|
|
3298
4536
|
* Updates an existing workflow\'s properties
|
|
@@ -3306,7 +4544,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3306
4544
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsIdPut(id, v5WorkflowsIdPutRequest, options);
|
|
3307
4545
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3308
4546
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
3309
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4547
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3310
4548
|
},
|
|
3311
4549
|
/**
|
|
3312
4550
|
* Creates a new workflow in pending state
|
|
@@ -3319,7 +4557,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3319
4557
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsPost(v5WorkflowsPostRequest, options);
|
|
3320
4558
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3321
4559
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsPost"]?.[localVarOperationServerIndex]?.url;
|
|
3322
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4560
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3323
4561
|
},
|
|
3324
4562
|
/**
|
|
3325
4563
|
*
|
|
@@ -3336,7 +4574,7 @@ var WorkflowsApiFp = function(configuration) {
|
|
|
3336
4574
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkflowsWorkflowIdAuditlogGet(workflowId, xApiKey, authorization, page, limit, options);
|
|
3337
4575
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3338
4576
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v5WorkflowsWorkflowIdAuditlogGet"]?.[localVarOperationServerIndex]?.url;
|
|
3339
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4577
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3340
4578
|
}
|
|
3341
4579
|
};
|
|
3342
4580
|
};
|
|
@@ -3749,7 +4987,7 @@ var WorkspacesApiFp = function(configuration) {
|
|
|
3749
4987
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkspacesWorkspaceIdDetailsGet(workspaceId, xApiKey, authorization, options);
|
|
3750
4988
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3751
4989
|
const localVarOperationServerBasePath = operationServerMap["WorkspacesApi.v5WorkspacesWorkspaceIdDetailsGet"]?.[localVarOperationServerIndex]?.url;
|
|
3752
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
4990
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3753
4991
|
},
|
|
3754
4992
|
/**
|
|
3755
4993
|
*
|
|
@@ -3764,7 +5002,7 @@ var WorkspacesApiFp = function(configuration) {
|
|
|
3764
5002
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkspacesWorkspaceIdQuotasGet(workspaceId, xApiKey, authorization, options);
|
|
3765
5003
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3766
5004
|
const localVarOperationServerBasePath = operationServerMap["WorkspacesApi.v5WorkspacesWorkspaceIdQuotasGet"]?.[localVarOperationServerIndex]?.url;
|
|
3767
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
5005
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3768
5006
|
},
|
|
3769
5007
|
/**
|
|
3770
5008
|
*
|
|
@@ -3780,7 +5018,7 @@ var WorkspacesApiFp = function(configuration) {
|
|
|
3780
5018
|
const localVarAxiosArgs = await localVarAxiosParamCreator.v5WorkspacesWorkspaceIdUsageGet(workspaceId, resultRange, xApiKey, authorization, options);
|
|
3781
5019
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
3782
5020
|
const localVarOperationServerBasePath = operationServerMap["WorkspacesApi.v5WorkspacesWorkspaceIdUsageGet"]?.[localVarOperationServerIndex]?.url;
|
|
3783
|
-
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs,
|
|
5021
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios6__default.default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
3784
5022
|
}
|
|
3785
5023
|
};
|
|
3786
5024
|
};
|
|
@@ -3854,7 +5092,7 @@ var Configuration = class {
|
|
|
3854
5092
|
};
|
|
3855
5093
|
|
|
3856
5094
|
// src/version.ts
|
|
3857
|
-
var SDK_VERSION = "0.
|
|
5095
|
+
var SDK_VERSION = "0.10.0";
|
|
3858
5096
|
var SDK_NAME = "kadoa-node-sdk";
|
|
3859
5097
|
var SDK_LANGUAGE = "node";
|
|
3860
5098
|
|
|
@@ -3871,7 +5109,8 @@ var logger = {
|
|
|
3871
5109
|
workflow: createLogger("workflow"),
|
|
3872
5110
|
crawl: createLogger("crawl"),
|
|
3873
5111
|
notifications: createLogger("notifications"),
|
|
3874
|
-
schemas: createLogger("schemas")
|
|
5112
|
+
schemas: createLogger("schemas"),
|
|
5113
|
+
validation: createLogger("validation")
|
|
3875
5114
|
};
|
|
3876
5115
|
|
|
3877
5116
|
// src/internal/domains/realtime/realtime.ts
|
|
@@ -4155,6 +5394,54 @@ var DataFetcherService = class {
|
|
|
4155
5394
|
}
|
|
4156
5395
|
};
|
|
4157
5396
|
|
|
5397
|
+
// src/internal/runtime/utils/polling.ts
|
|
5398
|
+
var DEFAULT_POLLING_OPTIONS = {
|
|
5399
|
+
pollIntervalMs: 1e3,
|
|
5400
|
+
timeoutMs: 5 * 60 * 1e3
|
|
5401
|
+
};
|
|
5402
|
+
var POLLING_ERROR_CODES = {
|
|
5403
|
+
ABORTED: "ABORTED",
|
|
5404
|
+
TIMEOUT: "TIMEOUT"
|
|
5405
|
+
};
|
|
5406
|
+
async function pollUntil(pollFn, isComplete, options = {}) {
|
|
5407
|
+
const internalOptions = {
|
|
5408
|
+
...DEFAULT_POLLING_OPTIONS,
|
|
5409
|
+
...options
|
|
5410
|
+
};
|
|
5411
|
+
const pollInterval = Math.max(250, internalOptions.pollIntervalMs);
|
|
5412
|
+
const timeoutMs = internalOptions.timeoutMs;
|
|
5413
|
+
const start = Date.now();
|
|
5414
|
+
let attempts = 0;
|
|
5415
|
+
while (Date.now() - start < timeoutMs) {
|
|
5416
|
+
if (internalOptions.abortSignal?.aborted) {
|
|
5417
|
+
throw new KadoaSdkException("Polling operation was aborted", {
|
|
5418
|
+
code: POLLING_ERROR_CODES.ABORTED
|
|
5419
|
+
});
|
|
5420
|
+
}
|
|
5421
|
+
attempts++;
|
|
5422
|
+
const current = await pollFn();
|
|
5423
|
+
if (isComplete(current)) {
|
|
5424
|
+
return {
|
|
5425
|
+
result: current,
|
|
5426
|
+
attempts,
|
|
5427
|
+
duration: Date.now() - start
|
|
5428
|
+
};
|
|
5429
|
+
}
|
|
5430
|
+
await new Promise((resolve) => setTimeout(resolve, pollInterval));
|
|
5431
|
+
}
|
|
5432
|
+
throw new KadoaSdkException(
|
|
5433
|
+
`Polling operation timed out after ${timeoutMs}ms`,
|
|
5434
|
+
{
|
|
5435
|
+
code: POLLING_ERROR_CODES.TIMEOUT,
|
|
5436
|
+
details: {
|
|
5437
|
+
timeoutMs,
|
|
5438
|
+
attempts,
|
|
5439
|
+
duration: Date.now() - start
|
|
5440
|
+
}
|
|
5441
|
+
}
|
|
5442
|
+
);
|
|
5443
|
+
}
|
|
5444
|
+
|
|
4158
5445
|
// src/internal/domains/workflows/workflows-core.service.ts
|
|
4159
5446
|
var TERMINAL_RUN_STATES = /* @__PURE__ */ new Set([
|
|
4160
5447
|
"FINISHED",
|
|
@@ -4176,6 +5463,7 @@ var WorkflowsCoreService = class {
|
|
|
4176
5463
|
entity: input.entity,
|
|
4177
5464
|
name: input.name,
|
|
4178
5465
|
fields: input.fields,
|
|
5466
|
+
//todo: fix this
|
|
4179
5467
|
bypassPreview: input.bypassPreview ?? true,
|
|
4180
5468
|
tags: input.tags,
|
|
4181
5469
|
interval: input.interval,
|
|
@@ -4202,6 +5490,10 @@ var WorkflowsCoreService = class {
|
|
|
4202
5490
|
});
|
|
4203
5491
|
return response.data;
|
|
4204
5492
|
}
|
|
5493
|
+
async list(filters) {
|
|
5494
|
+
const response = await this.client.workflows.v4WorkflowsGet(filters);
|
|
5495
|
+
return response.data?.workflows ?? [];
|
|
5496
|
+
}
|
|
4205
5497
|
async getByName(name) {
|
|
4206
5498
|
const response = await this.client.workflows.v4WorkflowsGet({
|
|
4207
5499
|
search: name
|
|
@@ -4222,43 +5514,33 @@ var WorkflowsCoreService = class {
|
|
|
4222
5514
|
* Wait for a workflow to reach the target state or a terminal state if no target state is provided
|
|
4223
5515
|
*/
|
|
4224
5516
|
async wait(id, options) {
|
|
4225
|
-
const pollInterval = Math.max(250, options?.pollIntervalMs ?? 1e3);
|
|
4226
|
-
const timeoutMs = options?.timeoutMs ?? 5 * 60 * 1e3;
|
|
4227
|
-
const start = Date.now();
|
|
4228
5517
|
let last;
|
|
4229
|
-
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4241
|
-
current.runState
|
|
4242
|
-
);
|
|
4243
|
-
}
|
|
4244
|
-
if (options?.targetState && current.state === options.targetState) {
|
|
4245
|
-
return current;
|
|
4246
|
-
}
|
|
4247
|
-
if (current.runState && TERMINAL_RUN_STATES.has(current.runState.toUpperCase()) && current.state !== "QUEUED") {
|
|
5518
|
+
const result = await pollUntil(
|
|
5519
|
+
async () => {
|
|
5520
|
+
const current = await this.get(id);
|
|
5521
|
+
if (last?.state !== current.state || last?.runState !== current.runState) {
|
|
5522
|
+
debug2(
|
|
5523
|
+
"workflow %s state: [workflowState: %s, jobState: %s]",
|
|
5524
|
+
id,
|
|
5525
|
+
current.state,
|
|
5526
|
+
current.runState
|
|
5527
|
+
);
|
|
5528
|
+
}
|
|
5529
|
+
last = current;
|
|
4248
5530
|
return current;
|
|
4249
|
-
}
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
|
|
4260
|
-
|
|
4261
|
-
|
|
5531
|
+
},
|
|
5532
|
+
(current) => {
|
|
5533
|
+
if (options?.targetState && current.state === options.targetState) {
|
|
5534
|
+
return true;
|
|
5535
|
+
}
|
|
5536
|
+
if (current.runState && TERMINAL_RUN_STATES.has(current.runState.toUpperCase()) && current.state !== "QUEUED") {
|
|
5537
|
+
return true;
|
|
5538
|
+
}
|
|
5539
|
+
return false;
|
|
5540
|
+
},
|
|
5541
|
+
options
|
|
5542
|
+
);
|
|
5543
|
+
return result.result;
|
|
4262
5544
|
}
|
|
4263
5545
|
};
|
|
4264
5546
|
|
|
@@ -17591,6 +18873,317 @@ var UserModule = class {
|
|
|
17591
18873
|
return this.userService.getCurrentUser();
|
|
17592
18874
|
}
|
|
17593
18875
|
};
|
|
18876
|
+
var ValidationRulesService = class {
|
|
18877
|
+
constructor(client) {
|
|
18878
|
+
this.validationApi = new DataValidationApi(
|
|
18879
|
+
client.configuration,
|
|
18880
|
+
client.baseUrl,
|
|
18881
|
+
client.axiosInstance
|
|
18882
|
+
);
|
|
18883
|
+
}
|
|
18884
|
+
async listRules(options) {
|
|
18885
|
+
const response = await this.validationApi.v4DataValidationRulesGet(options);
|
|
18886
|
+
if (response.status !== 200 || response.data.error) {
|
|
18887
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18888
|
+
message: "Failed to list validation rules"
|
|
18889
|
+
});
|
|
18890
|
+
}
|
|
18891
|
+
return response.data;
|
|
18892
|
+
}
|
|
18893
|
+
async getRuleById(ruleId) {
|
|
18894
|
+
const response = await this.validationApi.v4DataValidationRulesRuleIdGet({
|
|
18895
|
+
ruleId
|
|
18896
|
+
});
|
|
18897
|
+
if (response.status !== 200 || response.data.error) {
|
|
18898
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18899
|
+
message: "Failed to get validation rule by id"
|
|
18900
|
+
});
|
|
18901
|
+
}
|
|
18902
|
+
return response.data.data;
|
|
18903
|
+
}
|
|
18904
|
+
async getRuleByName(name) {
|
|
18905
|
+
const response = await this.validationApi.v4DataValidationRulesGet();
|
|
18906
|
+
if (response.status !== 200 || response.data.error) {
|
|
18907
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18908
|
+
message: "Failed to get validation rule by name"
|
|
18909
|
+
});
|
|
18910
|
+
}
|
|
18911
|
+
return response.data.data?.find((rule) => rule.name === name);
|
|
18912
|
+
}
|
|
18913
|
+
async createRule(data) {
|
|
18914
|
+
const response = await this.validationApi.v4DataValidationRulesPost({
|
|
18915
|
+
createRule: data
|
|
18916
|
+
});
|
|
18917
|
+
if (response.status !== 200 || response.data.error) {
|
|
18918
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18919
|
+
message: response.data.message || "Failed to create validation rule"
|
|
18920
|
+
});
|
|
18921
|
+
}
|
|
18922
|
+
return response.data.data;
|
|
18923
|
+
}
|
|
18924
|
+
async updateRule(ruleId, updateData) {
|
|
18925
|
+
const response = await this.validationApi.v4DataValidationRulesRuleIdPut({
|
|
18926
|
+
ruleId,
|
|
18927
|
+
updateRule: updateData
|
|
18928
|
+
});
|
|
18929
|
+
if (response.status !== 200 || response.data.error) {
|
|
18930
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18931
|
+
message: response.data.message || "Failed to update validation rule"
|
|
18932
|
+
});
|
|
18933
|
+
}
|
|
18934
|
+
return response.data.data;
|
|
18935
|
+
}
|
|
18936
|
+
async disableRule(data) {
|
|
18937
|
+
const response = await this.validationApi.v4DataValidationRulesRuleIdDisablePost(data);
|
|
18938
|
+
if (response.status !== 200 || response.data.error) {
|
|
18939
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18940
|
+
message: response.data.message || "Failed to disable validation rule"
|
|
18941
|
+
});
|
|
18942
|
+
}
|
|
18943
|
+
return response.data.data;
|
|
18944
|
+
}
|
|
18945
|
+
async generateRule(data) {
|
|
18946
|
+
const response = await this.validationApi.v4DataValidationRulesActionsGeneratePost({
|
|
18947
|
+
generateRule: data
|
|
18948
|
+
});
|
|
18949
|
+
if (response.status !== 200 || response.data.error) {
|
|
18950
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18951
|
+
message: response.data.message || "Failed to generate validation rule"
|
|
18952
|
+
});
|
|
18953
|
+
}
|
|
18954
|
+
return response.data.data;
|
|
18955
|
+
}
|
|
18956
|
+
async generateRules(data) {
|
|
18957
|
+
const response = await this.validationApi.v4DataValidationRulesActionsGenerateRulesPost({
|
|
18958
|
+
generateRules: data
|
|
18959
|
+
});
|
|
18960
|
+
if (response.status !== 200 || response.data.error) {
|
|
18961
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18962
|
+
message: response.data.message || "Failed to generate validation rules"
|
|
18963
|
+
});
|
|
18964
|
+
}
|
|
18965
|
+
return response.data.data;
|
|
18966
|
+
}
|
|
18967
|
+
async bulkApproveRules(data) {
|
|
18968
|
+
const response = await this.validationApi.v4DataValidationRulesActionsBulkApprovePost({
|
|
18969
|
+
bulkApproveRules: data
|
|
18970
|
+
});
|
|
18971
|
+
if (response.status !== 200 || response.data.error) {
|
|
18972
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18973
|
+
message: response.data.message || "Failed to bulk approve validation rules"
|
|
18974
|
+
});
|
|
18975
|
+
}
|
|
18976
|
+
return response.data.data;
|
|
18977
|
+
}
|
|
18978
|
+
async bulkDeleteRules(data) {
|
|
18979
|
+
const response = await this.validationApi.v4DataValidationRulesActionsBulkDeletePost({
|
|
18980
|
+
bulkDeleteRules: data
|
|
18981
|
+
});
|
|
18982
|
+
if (response.status !== 200 || response.data.error) {
|
|
18983
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18984
|
+
message: response.data.message || "Failed to bulk delete validation rules"
|
|
18985
|
+
});
|
|
18986
|
+
}
|
|
18987
|
+
return response.data.data;
|
|
18988
|
+
}
|
|
18989
|
+
async deleteAllRules(data) {
|
|
18990
|
+
const response = await this.validationApi.v4DataValidationRulesActionsDeleteAllDelete({
|
|
18991
|
+
deleteRuleWithReason: data
|
|
18992
|
+
});
|
|
18993
|
+
if (response.status !== 200 || response.data.error) {
|
|
18994
|
+
throw KadoaHttpException.wrap(response.data.data, {
|
|
18995
|
+
message: response.data.message || "Failed to delete all validation rules"
|
|
18996
|
+
});
|
|
18997
|
+
}
|
|
18998
|
+
return response.data.data;
|
|
18999
|
+
}
|
|
19000
|
+
};
|
|
19001
|
+
|
|
19002
|
+
// src/internal/domains/validation/validation-core.service.ts
|
|
19003
|
+
var ValidationCoreService = class {
|
|
19004
|
+
constructor(client) {
|
|
19005
|
+
this.validationApi = new DataValidationApi(
|
|
19006
|
+
client.configuration,
|
|
19007
|
+
client.baseUrl,
|
|
19008
|
+
client.axiosInstance
|
|
19009
|
+
);
|
|
19010
|
+
}
|
|
19011
|
+
async listWorkflowValidations(filters) {
|
|
19012
|
+
const response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsGet(
|
|
19013
|
+
filters
|
|
19014
|
+
);
|
|
19015
|
+
if (response.status !== 200) {
|
|
19016
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19017
|
+
message: "Failed to list workflow validations"
|
|
19018
|
+
});
|
|
19019
|
+
}
|
|
19020
|
+
return response.data;
|
|
19021
|
+
}
|
|
19022
|
+
async getValidationDetails(validationId) {
|
|
19023
|
+
const response = await this.validationApi.v4DataValidationValidationsValidationIdGet({
|
|
19024
|
+
validationId
|
|
19025
|
+
});
|
|
19026
|
+
if (response.status !== 200 || response.data.error) {
|
|
19027
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19028
|
+
message: "Failed to get validation details"
|
|
19029
|
+
});
|
|
19030
|
+
}
|
|
19031
|
+
return response.data;
|
|
19032
|
+
}
|
|
19033
|
+
async scheduleValidation(workflowId, jobId) {
|
|
19034
|
+
const response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidatePost(
|
|
19035
|
+
{
|
|
19036
|
+
workflowId,
|
|
19037
|
+
jobId
|
|
19038
|
+
}
|
|
19039
|
+
);
|
|
19040
|
+
if (response.status !== 200 || response.data.error) {
|
|
19041
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19042
|
+
message: response.data.message || "Failed to schedule validation"
|
|
19043
|
+
});
|
|
19044
|
+
}
|
|
19045
|
+
return response.data;
|
|
19046
|
+
}
|
|
19047
|
+
async toggleValidationEnabled(workflowId) {
|
|
19048
|
+
const response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdValidationTogglePut(
|
|
19049
|
+
{
|
|
19050
|
+
workflowId
|
|
19051
|
+
}
|
|
19052
|
+
);
|
|
19053
|
+
if (response.status !== 200 || response.data.error) {
|
|
19054
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19055
|
+
message: response.data.message || "Failed to toggle validation"
|
|
19056
|
+
});
|
|
19057
|
+
}
|
|
19058
|
+
return response.data;
|
|
19059
|
+
}
|
|
19060
|
+
async getLatestValidation(workflowId, jobId) {
|
|
19061
|
+
let response;
|
|
19062
|
+
if (jobId) {
|
|
19063
|
+
response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdJobsJobIdValidationsLatestGet(
|
|
19064
|
+
{
|
|
19065
|
+
workflowId,
|
|
19066
|
+
jobId
|
|
19067
|
+
}
|
|
19068
|
+
);
|
|
19069
|
+
} else {
|
|
19070
|
+
response = await this.validationApi.v4DataValidationWorkflowsWorkflowIdValidationsLatestGet(
|
|
19071
|
+
{
|
|
19072
|
+
workflowId
|
|
19073
|
+
}
|
|
19074
|
+
);
|
|
19075
|
+
}
|
|
19076
|
+
if (response.status !== 200 || response.data.error) {
|
|
19077
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19078
|
+
message: "Failed to get latest validation"
|
|
19079
|
+
});
|
|
19080
|
+
}
|
|
19081
|
+
return response.data;
|
|
19082
|
+
}
|
|
19083
|
+
async getValidationAnomalies(validationId) {
|
|
19084
|
+
const response = await this.validationApi.v4DataValidationValidationsValidationIdAnomaliesGet(
|
|
19085
|
+
{
|
|
19086
|
+
validationId
|
|
19087
|
+
}
|
|
19088
|
+
);
|
|
19089
|
+
if (response.status !== 200) {
|
|
19090
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19091
|
+
message: "Failed to get validation anomalies"
|
|
19092
|
+
});
|
|
19093
|
+
}
|
|
19094
|
+
return response.data;
|
|
19095
|
+
}
|
|
19096
|
+
async getValidationAnomaliesByRule(validationId, ruleName) {
|
|
19097
|
+
const response = await this.validationApi.v4DataValidationValidationsValidationIdAnomaliesRulesRuleNameGet(
|
|
19098
|
+
{
|
|
19099
|
+
validationId,
|
|
19100
|
+
ruleName
|
|
19101
|
+
}
|
|
19102
|
+
);
|
|
19103
|
+
if (response.status !== 200) {
|
|
19104
|
+
throw KadoaHttpException.wrap(response.data, {
|
|
19105
|
+
message: "Failed to get validation anomalies by rule"
|
|
19106
|
+
});
|
|
19107
|
+
}
|
|
19108
|
+
return response.data;
|
|
19109
|
+
}
|
|
19110
|
+
async waitUntilCompleted(validationId, options) {
|
|
19111
|
+
const result = await pollUntil(
|
|
19112
|
+
async () => {
|
|
19113
|
+
const current = await this.getValidationDetails(validationId);
|
|
19114
|
+
if (current.error) {
|
|
19115
|
+
throw new KadoaSdkException(`Validation failed: ${current.error}`, {
|
|
19116
|
+
code: "VALIDATION_ERROR",
|
|
19117
|
+
details: { validationId, error: current.error }
|
|
19118
|
+
});
|
|
19119
|
+
}
|
|
19120
|
+
return current;
|
|
19121
|
+
},
|
|
19122
|
+
(result2) => result2.completedAt != null,
|
|
19123
|
+
options
|
|
19124
|
+
);
|
|
19125
|
+
return result.result;
|
|
19126
|
+
}
|
|
19127
|
+
};
|
|
19128
|
+
|
|
19129
|
+
// src/modules/validation.module.ts
|
|
19130
|
+
var ValidationModule = class {
|
|
19131
|
+
constructor(client) {
|
|
19132
|
+
this.coreService = new ValidationCoreService(client);
|
|
19133
|
+
this.rulesService = new ValidationRulesService(client);
|
|
19134
|
+
}
|
|
19135
|
+
listRules(options) {
|
|
19136
|
+
return this.rulesService.listRules(options);
|
|
19137
|
+
}
|
|
19138
|
+
getRuleByName(name) {
|
|
19139
|
+
return this.rulesService.getRuleByName(name);
|
|
19140
|
+
}
|
|
19141
|
+
createRule(data) {
|
|
19142
|
+
return this.rulesService.createRule(data);
|
|
19143
|
+
}
|
|
19144
|
+
generateRule(data) {
|
|
19145
|
+
return this.rulesService.generateRule(data);
|
|
19146
|
+
}
|
|
19147
|
+
generateRules(data) {
|
|
19148
|
+
return this.rulesService.generateRules(data);
|
|
19149
|
+
}
|
|
19150
|
+
bulkApproveRules(data) {
|
|
19151
|
+
return this.rulesService.bulkApproveRules(data);
|
|
19152
|
+
}
|
|
19153
|
+
bulkDeleteRules(data) {
|
|
19154
|
+
return this.rulesService.bulkDeleteRules(data);
|
|
19155
|
+
}
|
|
19156
|
+
deleteAllRules(data) {
|
|
19157
|
+
return this.rulesService.deleteAllRules(data);
|
|
19158
|
+
}
|
|
19159
|
+
listWorkflowValidations(workflowId, jobId) {
|
|
19160
|
+
return this.coreService.listWorkflowValidations({ workflowId, jobId });
|
|
19161
|
+
}
|
|
19162
|
+
scheduleValidation(workflowId, jobId) {
|
|
19163
|
+
return this.coreService.scheduleValidation(workflowId, jobId);
|
|
19164
|
+
}
|
|
19165
|
+
waitUntilCompleted(validationId, options) {
|
|
19166
|
+
return this.coreService.waitUntilCompleted(validationId, options);
|
|
19167
|
+
}
|
|
19168
|
+
getValidationDetails(validationId) {
|
|
19169
|
+
return this.coreService.getValidationDetails(validationId);
|
|
19170
|
+
}
|
|
19171
|
+
getLatestValidation(workflowId, jobId) {
|
|
19172
|
+
return this.coreService.getLatestValidation(workflowId, jobId);
|
|
19173
|
+
}
|
|
19174
|
+
getValidationAnomalies(validationId) {
|
|
19175
|
+
return this.coreService.getValidationAnomalies(validationId);
|
|
19176
|
+
}
|
|
19177
|
+
getValidationAnomaliesByRule(validationId, ruleName) {
|
|
19178
|
+
return this.coreService.getValidationAnomaliesByRule(
|
|
19179
|
+
validationId,
|
|
19180
|
+
ruleName
|
|
19181
|
+
);
|
|
19182
|
+
}
|
|
19183
|
+
toggleValidationEnabled(workflowId) {
|
|
19184
|
+
return this.coreService.toggleValidationEnabled(workflowId);
|
|
19185
|
+
}
|
|
19186
|
+
};
|
|
17594
19187
|
|
|
17595
19188
|
// src/modules/workflows.module.ts
|
|
17596
19189
|
var WorkflowsModule = class {
|
|
@@ -17604,6 +19197,9 @@ var WorkflowsModule = class {
|
|
|
17604
19197
|
async get(workflowId) {
|
|
17605
19198
|
return this.core.get(workflowId);
|
|
17606
19199
|
}
|
|
19200
|
+
async list(filters) {
|
|
19201
|
+
return this.core.list(filters);
|
|
19202
|
+
}
|
|
17607
19203
|
async getByName(name) {
|
|
17608
19204
|
return this.core.getByName(name);
|
|
17609
19205
|
}
|
|
@@ -17639,12 +19235,12 @@ var KadoaClient = class {
|
|
|
17639
19235
|
headers
|
|
17640
19236
|
}
|
|
17641
19237
|
});
|
|
17642
|
-
this._axiosInstance =
|
|
19238
|
+
this._axiosInstance = globalAxios6__default.default.create({
|
|
17643
19239
|
timeout: this._timeout,
|
|
17644
19240
|
headers
|
|
17645
19241
|
});
|
|
17646
19242
|
this._axiosInstance.interceptors.request.use((config3) => {
|
|
17647
|
-
config3.headers["x-request-id"] =
|
|
19243
|
+
config3.headers["x-request-id"] = uuid$1.v4();
|
|
17648
19244
|
return config3;
|
|
17649
19245
|
});
|
|
17650
19246
|
this._axiosInstance.interceptors.response.use(
|
|
@@ -17658,7 +19254,7 @@ var KadoaClient = class {
|
|
|
17658
19254
|
return response;
|
|
17659
19255
|
},
|
|
17660
19256
|
(error45) => {
|
|
17661
|
-
if (error45 instanceof
|
|
19257
|
+
if (error45 instanceof globalAxios6.AxiosError) {
|
|
17662
19258
|
const status = error45.response?.status;
|
|
17663
19259
|
if (status === 400) {
|
|
17664
19260
|
throw KadoaHttpException.wrap(error45);
|
|
@@ -17684,6 +19280,7 @@ var KadoaClient = class {
|
|
|
17684
19280
|
this.workflow = new WorkflowsModule(this);
|
|
17685
19281
|
this.schemas = new SchemasModule(this);
|
|
17686
19282
|
this.notification = new NotificationsModule(this);
|
|
19283
|
+
this.validation = new ValidationModule(this);
|
|
17687
19284
|
if (config2.enableRealtime && config2.realtimeConfig?.autoConnect !== false) {
|
|
17688
19285
|
this.connectRealtime();
|
|
17689
19286
|
}
|
|
@@ -17813,5 +19410,7 @@ exports.KadoaClient = KadoaClient;
|
|
|
17813
19410
|
exports.KadoaHttpException = KadoaHttpException;
|
|
17814
19411
|
exports.KadoaSdkException = KadoaSdkException;
|
|
17815
19412
|
exports.SchemasModule = SchemasModule;
|
|
19413
|
+
exports.ValidationModule = ValidationModule;
|
|
19414
|
+
exports.pollUntil = pollUntil;
|
|
17816
19415
|
//# sourceMappingURL=index.js.map
|
|
17817
19416
|
//# sourceMappingURL=index.js.map
|