@kadoa/mcp 0.3.11 → 0.3.12-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +540 -23
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -44094,6 +44094,7 @@ function createClientDomains(params) {
|
|
|
44094
44094
|
const entityResolverService = new EntityResolverService(client);
|
|
44095
44095
|
const workflowsCoreService = new WorkflowsCoreService(client.apis.workflows);
|
|
44096
44096
|
const schemasService = new SchemasService(client);
|
|
44097
|
+
const templatesService = new TemplatesService(client);
|
|
44097
44098
|
const variablesService = new VariablesService(client);
|
|
44098
44099
|
const channelSetupService = new NotificationSetupService(channelsService, settingsService);
|
|
44099
44100
|
const coreService = new ValidationCoreService(client);
|
|
@@ -44115,6 +44116,7 @@ function createClientDomains(params) {
|
|
|
44115
44116
|
notification,
|
|
44116
44117
|
schema: schemasService,
|
|
44117
44118
|
user: userService,
|
|
44119
|
+
template: templatesService,
|
|
44118
44120
|
validation,
|
|
44119
44121
|
variable: variablesService,
|
|
44120
44122
|
crawler
|
|
@@ -44196,8 +44198,8 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
44196
44198
|
return needsSerialization ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded) : value || "";
|
|
44197
44199
|
}, toPathString = function(url3) {
|
|
44198
44200
|
return url3.pathname + url3.search + url3.hash;
|
|
44199
|
-
}, createRequestFunction = function(axiosArgs,
|
|
44200
|
-
return (axios2 =
|
|
44201
|
+
}, createRequestFunction = function(axiosArgs, globalAxios9, BASE_PATH2, configuration) {
|
|
44202
|
+
return (axios2 = globalAxios9, basePath = BASE_PATH2) => {
|
|
44201
44203
|
const axiosRequestArgs = { ...axiosArgs.options, url: (axios2.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
44202
44204
|
return axios2.request(axiosRequestArgs);
|
|
44203
44205
|
};
|
|
@@ -45783,7 +45785,349 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
45783
45785
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
45784
45786
|
}
|
|
45785
45787
|
};
|
|
45786
|
-
}, SchemasApi,
|
|
45788
|
+
}, SchemasApi, TemplatesApiAxiosParamCreator = function(configuration) {
|
|
45789
|
+
return {
|
|
45790
|
+
v4TemplatesFromWorkflowPost: async (saveFromWorkflowBody, options = {}) => {
|
|
45791
|
+
const localVarPath = `/v4/templates/from-workflow`;
|
|
45792
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45793
|
+
let baseOptions;
|
|
45794
|
+
if (configuration) {
|
|
45795
|
+
baseOptions = configuration.baseOptions;
|
|
45796
|
+
}
|
|
45797
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
45798
|
+
const localVarHeaderParameter = {};
|
|
45799
|
+
const localVarQueryParameter = {};
|
|
45800
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45801
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
45802
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
45803
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45804
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45805
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45806
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveFromWorkflowBody, localVarRequestOptions, configuration);
|
|
45807
|
+
return {
|
|
45808
|
+
url: toPathString(localVarUrlObj),
|
|
45809
|
+
options: localVarRequestOptions
|
|
45810
|
+
};
|
|
45811
|
+
},
|
|
45812
|
+
v4TemplatesGet: async (options = {}) => {
|
|
45813
|
+
const localVarPath = `/v4/templates/`;
|
|
45814
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45815
|
+
let baseOptions;
|
|
45816
|
+
if (configuration) {
|
|
45817
|
+
baseOptions = configuration.baseOptions;
|
|
45818
|
+
}
|
|
45819
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
45820
|
+
const localVarHeaderParameter = {};
|
|
45821
|
+
const localVarQueryParameter = {};
|
|
45822
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45823
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
45824
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45825
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45826
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45827
|
+
return {
|
|
45828
|
+
url: toPathString(localVarUrlObj),
|
|
45829
|
+
options: localVarRequestOptions
|
|
45830
|
+
};
|
|
45831
|
+
},
|
|
45832
|
+
v4TemplatesPost: async (createTemplateBody, options = {}) => {
|
|
45833
|
+
const localVarPath = `/v4/templates/`;
|
|
45834
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45835
|
+
let baseOptions;
|
|
45836
|
+
if (configuration) {
|
|
45837
|
+
baseOptions = configuration.baseOptions;
|
|
45838
|
+
}
|
|
45839
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
45840
|
+
const localVarHeaderParameter = {};
|
|
45841
|
+
const localVarQueryParameter = {};
|
|
45842
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45843
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
45844
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
45845
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45846
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45847
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45848
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createTemplateBody, localVarRequestOptions, configuration);
|
|
45849
|
+
return {
|
|
45850
|
+
url: toPathString(localVarUrlObj),
|
|
45851
|
+
options: localVarRequestOptions
|
|
45852
|
+
};
|
|
45853
|
+
},
|
|
45854
|
+
v4TemplatesTemplateIdApplyPost: async (templateId, applyTemplateUpdateBody, options = {}) => {
|
|
45855
|
+
assertParamExists("v4TemplatesTemplateIdApplyPost", "templateId", templateId);
|
|
45856
|
+
const localVarPath = `/v4/templates/{templateId}/apply`.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
45857
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45858
|
+
let baseOptions;
|
|
45859
|
+
if (configuration) {
|
|
45860
|
+
baseOptions = configuration.baseOptions;
|
|
45861
|
+
}
|
|
45862
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
45863
|
+
const localVarHeaderParameter = {};
|
|
45864
|
+
const localVarQueryParameter = {};
|
|
45865
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45866
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
45867
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
45868
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45869
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45870
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45871
|
+
localVarRequestOptions.data = serializeDataIfNeeded(applyTemplateUpdateBody, localVarRequestOptions, configuration);
|
|
45872
|
+
return {
|
|
45873
|
+
url: toPathString(localVarUrlObj),
|
|
45874
|
+
options: localVarRequestOptions
|
|
45875
|
+
};
|
|
45876
|
+
},
|
|
45877
|
+
v4TemplatesTemplateIdDelete: async (templateId, options = {}) => {
|
|
45878
|
+
assertParamExists("v4TemplatesTemplateIdDelete", "templateId", templateId);
|
|
45879
|
+
const localVarPath = `/v4/templates/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
45880
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45881
|
+
let baseOptions;
|
|
45882
|
+
if (configuration) {
|
|
45883
|
+
baseOptions = configuration.baseOptions;
|
|
45884
|
+
}
|
|
45885
|
+
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options };
|
|
45886
|
+
const localVarHeaderParameter = {};
|
|
45887
|
+
const localVarQueryParameter = {};
|
|
45888
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45889
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
45890
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45891
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45892
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45893
|
+
return {
|
|
45894
|
+
url: toPathString(localVarUrlObj),
|
|
45895
|
+
options: localVarRequestOptions
|
|
45896
|
+
};
|
|
45897
|
+
},
|
|
45898
|
+
v4TemplatesTemplateIdGet: async (templateId, options = {}) => {
|
|
45899
|
+
assertParamExists("v4TemplatesTemplateIdGet", "templateId", templateId);
|
|
45900
|
+
const localVarPath = `/v4/templates/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
45901
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45902
|
+
let baseOptions;
|
|
45903
|
+
if (configuration) {
|
|
45904
|
+
baseOptions = configuration.baseOptions;
|
|
45905
|
+
}
|
|
45906
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
45907
|
+
const localVarHeaderParameter = {};
|
|
45908
|
+
const localVarQueryParameter = {};
|
|
45909
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45910
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
45911
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45912
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45913
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45914
|
+
return {
|
|
45915
|
+
url: toPathString(localVarUrlObj),
|
|
45916
|
+
options: localVarRequestOptions
|
|
45917
|
+
};
|
|
45918
|
+
},
|
|
45919
|
+
v4TemplatesTemplateIdLinkPost: async (templateId, linkWorkflowsBody, options = {}) => {
|
|
45920
|
+
assertParamExists("v4TemplatesTemplateIdLinkPost", "templateId", templateId);
|
|
45921
|
+
const localVarPath = `/v4/templates/{templateId}/link`.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
45922
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45923
|
+
let baseOptions;
|
|
45924
|
+
if (configuration) {
|
|
45925
|
+
baseOptions = configuration.baseOptions;
|
|
45926
|
+
}
|
|
45927
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
45928
|
+
const localVarHeaderParameter = {};
|
|
45929
|
+
const localVarQueryParameter = {};
|
|
45930
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45931
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
45932
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
45933
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45934
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45935
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45936
|
+
localVarRequestOptions.data = serializeDataIfNeeded(linkWorkflowsBody, localVarRequestOptions, configuration);
|
|
45937
|
+
return {
|
|
45938
|
+
url: toPathString(localVarUrlObj),
|
|
45939
|
+
options: localVarRequestOptions
|
|
45940
|
+
};
|
|
45941
|
+
},
|
|
45942
|
+
v4TemplatesTemplateIdPut: async (templateId, updateTemplateBody, options = {}) => {
|
|
45943
|
+
assertParamExists("v4TemplatesTemplateIdPut", "templateId", templateId);
|
|
45944
|
+
const localVarPath = `/v4/templates/{templateId}`.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
45945
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45946
|
+
let baseOptions;
|
|
45947
|
+
if (configuration) {
|
|
45948
|
+
baseOptions = configuration.baseOptions;
|
|
45949
|
+
}
|
|
45950
|
+
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options };
|
|
45951
|
+
const localVarHeaderParameter = {};
|
|
45952
|
+
const localVarQueryParameter = {};
|
|
45953
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45954
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
45955
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
45956
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45957
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45958
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45959
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateTemplateBody, localVarRequestOptions, configuration);
|
|
45960
|
+
return {
|
|
45961
|
+
url: toPathString(localVarUrlObj),
|
|
45962
|
+
options: localVarRequestOptions
|
|
45963
|
+
};
|
|
45964
|
+
},
|
|
45965
|
+
v4TemplatesTemplateIdSchemasGet: async (templateId, options = {}) => {
|
|
45966
|
+
assertParamExists("v4TemplatesTemplateIdSchemasGet", "templateId", templateId);
|
|
45967
|
+
const localVarPath = `/v4/templates/{templateId}/schemas`.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
45968
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45969
|
+
let baseOptions;
|
|
45970
|
+
if (configuration) {
|
|
45971
|
+
baseOptions = configuration.baseOptions;
|
|
45972
|
+
}
|
|
45973
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
45974
|
+
const localVarHeaderParameter = {};
|
|
45975
|
+
const localVarQueryParameter = {};
|
|
45976
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45977
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
45978
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
45979
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
45980
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
45981
|
+
return {
|
|
45982
|
+
url: toPathString(localVarUrlObj),
|
|
45983
|
+
options: localVarRequestOptions
|
|
45984
|
+
};
|
|
45985
|
+
},
|
|
45986
|
+
v4TemplatesTemplateIdUnlinkPost: async (templateId, unlinkWorkflowsBody, options = {}) => {
|
|
45987
|
+
assertParamExists("v4TemplatesTemplateIdUnlinkPost", "templateId", templateId);
|
|
45988
|
+
const localVarPath = `/v4/templates/{templateId}/unlink`.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
45989
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
45990
|
+
let baseOptions;
|
|
45991
|
+
if (configuration) {
|
|
45992
|
+
baseOptions = configuration.baseOptions;
|
|
45993
|
+
}
|
|
45994
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
45995
|
+
const localVarHeaderParameter = {};
|
|
45996
|
+
const localVarQueryParameter = {};
|
|
45997
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
45998
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
45999
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
46000
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46002
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
46003
|
+
localVarRequestOptions.data = serializeDataIfNeeded(unlinkWorkflowsBody, localVarRequestOptions, configuration);
|
|
46004
|
+
return {
|
|
46005
|
+
url: toPathString(localVarUrlObj),
|
|
46006
|
+
options: localVarRequestOptions
|
|
46007
|
+
};
|
|
46008
|
+
},
|
|
46009
|
+
v4TemplatesTemplateIdVersionsPost: async (templateId, createTemplateVersionBody, options = {}) => {
|
|
46010
|
+
assertParamExists("v4TemplatesTemplateIdVersionsPost", "templateId", templateId);
|
|
46011
|
+
const localVarPath = `/v4/templates/{templateId}/versions`.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
46012
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
46013
|
+
let baseOptions;
|
|
46014
|
+
if (configuration) {
|
|
46015
|
+
baseOptions = configuration.baseOptions;
|
|
46016
|
+
}
|
|
46017
|
+
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options };
|
|
46018
|
+
const localVarHeaderParameter = {};
|
|
46019
|
+
const localVarQueryParameter = {};
|
|
46020
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
46021
|
+
localVarHeaderParameter["Content-Type"] = "application/json";
|
|
46022
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
46023
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46024
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46025
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
46026
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createTemplateVersionBody, localVarRequestOptions, configuration);
|
|
46027
|
+
return {
|
|
46028
|
+
url: toPathString(localVarUrlObj),
|
|
46029
|
+
options: localVarRequestOptions
|
|
46030
|
+
};
|
|
46031
|
+
},
|
|
46032
|
+
v4TemplatesTemplateIdWorkflowsGet: async (templateId, options = {}) => {
|
|
46033
|
+
assertParamExists("v4TemplatesTemplateIdWorkflowsGet", "templateId", templateId);
|
|
46034
|
+
const localVarPath = `/v4/templates/{templateId}/workflows`.replace(`{${"templateId"}}`, encodeURIComponent(String(templateId)));
|
|
46035
|
+
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
46036
|
+
let baseOptions;
|
|
46037
|
+
if (configuration) {
|
|
46038
|
+
baseOptions = configuration.baseOptions;
|
|
46039
|
+
}
|
|
46040
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
46041
|
+
const localVarHeaderParameter = {};
|
|
46042
|
+
const localVarQueryParameter = {};
|
|
46043
|
+
await setApiKeyToObject(localVarHeaderParameter, "x-api-key", configuration);
|
|
46044
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
46045
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
46046
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
46047
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
46048
|
+
return {
|
|
46049
|
+
url: toPathString(localVarUrlObj),
|
|
46050
|
+
options: localVarRequestOptions
|
|
46051
|
+
};
|
|
46052
|
+
}
|
|
46053
|
+
};
|
|
46054
|
+
}, TemplatesApiFp = function(configuration) {
|
|
46055
|
+
const localVarAxiosParamCreator = TemplatesApiAxiosParamCreator(configuration);
|
|
46056
|
+
return {
|
|
46057
|
+
async v4TemplatesFromWorkflowPost(saveFromWorkflowBody, options) {
|
|
46058
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesFromWorkflowPost(saveFromWorkflowBody, options);
|
|
46059
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46060
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesFromWorkflowPost"]?.[localVarOperationServerIndex]?.url;
|
|
46061
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46062
|
+
},
|
|
46063
|
+
async v4TemplatesGet(options) {
|
|
46064
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesGet(options);
|
|
46065
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46066
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesGet"]?.[localVarOperationServerIndex]?.url;
|
|
46067
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46068
|
+
},
|
|
46069
|
+
async v4TemplatesPost(createTemplateBody, options) {
|
|
46070
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesPost(createTemplateBody, options);
|
|
46071
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46072
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesPost"]?.[localVarOperationServerIndex]?.url;
|
|
46073
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46074
|
+
},
|
|
46075
|
+
async v4TemplatesTemplateIdApplyPost(templateId, applyTemplateUpdateBody, options) {
|
|
46076
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesTemplateIdApplyPost(templateId, applyTemplateUpdateBody, options);
|
|
46077
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46078
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesTemplateIdApplyPost"]?.[localVarOperationServerIndex]?.url;
|
|
46079
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46080
|
+
},
|
|
46081
|
+
async v4TemplatesTemplateIdDelete(templateId, options) {
|
|
46082
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesTemplateIdDelete(templateId, options);
|
|
46083
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46084
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesTemplateIdDelete"]?.[localVarOperationServerIndex]?.url;
|
|
46085
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46086
|
+
},
|
|
46087
|
+
async v4TemplatesTemplateIdGet(templateId, options) {
|
|
46088
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesTemplateIdGet(templateId, options);
|
|
46089
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46090
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesTemplateIdGet"]?.[localVarOperationServerIndex]?.url;
|
|
46091
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46092
|
+
},
|
|
46093
|
+
async v4TemplatesTemplateIdLinkPost(templateId, linkWorkflowsBody, options) {
|
|
46094
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesTemplateIdLinkPost(templateId, linkWorkflowsBody, options);
|
|
46095
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46096
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesTemplateIdLinkPost"]?.[localVarOperationServerIndex]?.url;
|
|
46097
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46098
|
+
},
|
|
46099
|
+
async v4TemplatesTemplateIdPut(templateId, updateTemplateBody, options) {
|
|
46100
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesTemplateIdPut(templateId, updateTemplateBody, options);
|
|
46101
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46102
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesTemplateIdPut"]?.[localVarOperationServerIndex]?.url;
|
|
46103
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46104
|
+
},
|
|
46105
|
+
async v4TemplatesTemplateIdSchemasGet(templateId, options) {
|
|
46106
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesTemplateIdSchemasGet(templateId, options);
|
|
46107
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46108
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesTemplateIdSchemasGet"]?.[localVarOperationServerIndex]?.url;
|
|
46109
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46110
|
+
},
|
|
46111
|
+
async v4TemplatesTemplateIdUnlinkPost(templateId, unlinkWorkflowsBody, options) {
|
|
46112
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesTemplateIdUnlinkPost(templateId, unlinkWorkflowsBody, options);
|
|
46113
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46114
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesTemplateIdUnlinkPost"]?.[localVarOperationServerIndex]?.url;
|
|
46115
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46116
|
+
},
|
|
46117
|
+
async v4TemplatesTemplateIdVersionsPost(templateId, createTemplateVersionBody, options) {
|
|
46118
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesTemplateIdVersionsPost(templateId, createTemplateVersionBody, options);
|
|
46119
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46120
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesTemplateIdVersionsPost"]?.[localVarOperationServerIndex]?.url;
|
|
46121
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46122
|
+
},
|
|
46123
|
+
async v4TemplatesTemplateIdWorkflowsGet(templateId, options) {
|
|
46124
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4TemplatesTemplateIdWorkflowsGet(templateId, options);
|
|
46125
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46126
|
+
const localVarOperationServerBasePath = operationServerMap["TemplatesApi.v4TemplatesTemplateIdWorkflowsGet"]?.[localVarOperationServerIndex]?.url;
|
|
46127
|
+
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46128
|
+
}
|
|
46129
|
+
};
|
|
46130
|
+
}, TemplatesApi, VariablesApiAxiosParamCreator = function(configuration) {
|
|
45787
46131
|
return {
|
|
45788
46132
|
v4VariablesGet: async (options = {}) => {
|
|
45789
46133
|
const localVarPath = `/v4/variables/`;
|
|
@@ -46053,7 +46397,7 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
46053
46397
|
options: localVarRequestOptions
|
|
46054
46398
|
};
|
|
46055
46399
|
},
|
|
46056
|
-
v4WorkflowsGet: async (search, skip, limit, state, runState, displayState, inSupport, tags, userId, monitoring, updateInterval,
|
|
46400
|
+
v4WorkflowsGet: async (search, skip, limit, state, runState, displayState, inSupport, tags, userId, monitoring, updateInterval, includeDeleted, format, options = {}) => {
|
|
46057
46401
|
const localVarPath = `/v4/workflows`;
|
|
46058
46402
|
const localVarUrlObj = new URL$1(localVarPath, DUMMY_BASE_URL);
|
|
46059
46403
|
let baseOptions;
|
|
@@ -46097,9 +46441,6 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
46097
46441
|
if (updateInterval !== undefined) {
|
|
46098
46442
|
localVarQueryParameter["updateInterval"] = updateInterval;
|
|
46099
46443
|
}
|
|
46100
|
-
if (templateId !== undefined) {
|
|
46101
|
-
localVarQueryParameter["templateId"] = templateId;
|
|
46102
|
-
}
|
|
46103
46444
|
if (includeDeleted !== undefined) {
|
|
46104
46445
|
localVarQueryParameter["includeDeleted"] = includeDeleted;
|
|
46105
46446
|
}
|
|
@@ -46616,8 +46957,8 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
46616
46957
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsBulkPost"]?.[localVarOperationServerIndex]?.url;
|
|
46617
46958
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
46618
46959
|
},
|
|
46619
|
-
async v4WorkflowsGet(search, skip, limit, state, runState, displayState, inSupport, tags, userId, monitoring, updateInterval,
|
|
46620
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, runState, displayState, inSupport, tags, userId, monitoring, updateInterval,
|
|
46960
|
+
async v4WorkflowsGet(search, skip, limit, state, runState, displayState, inSupport, tags, userId, monitoring, updateInterval, includeDeleted, format, options) {
|
|
46961
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.v4WorkflowsGet(search, skip, limit, state, runState, displayState, inSupport, tags, userId, monitoring, updateInterval, includeDeleted, format, options);
|
|
46621
46962
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
46622
46963
|
const localVarOperationServerBasePath = operationServerMap["WorkflowsApi.v4WorkflowsGet"]?.[localVarOperationServerIndex]?.url;
|
|
46623
46964
|
return (axios2, basePath) => createRequestFunction(localVarAxiosArgs, axios_default, BASE_PATH, configuration)(axios2, localVarOperationServerBasePath || basePath);
|
|
@@ -47858,7 +48199,7 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
47858
48199
|
}));
|
|
47859
48200
|
return channels;
|
|
47860
48201
|
}
|
|
47861
|
-
}, PUBLIC_API_URI, WSS_API_URI, REALTIME_API_URI, SDK_VERSION = "0.
|
|
48202
|
+
}, PUBLIC_API_URI, WSS_API_URI, REALTIME_API_URI, SDK_VERSION = "0.26.0", SDK_NAME = "kadoa-node-sdk", SDK_LANGUAGE = "node", debug5, isDrainControlMessage = (message) => message.type === "control.draining", isRealtimeEvent = (message) => message.type !== "heartbeat" && message.type !== "control.draining", _Realtime = class _Realtime2 {
|
|
47862
48203
|
constructor(config2) {
|
|
47863
48204
|
this.drainingSockets = /* @__PURE__ */ new Set;
|
|
47864
48205
|
this.lastHeartbeat = Date.now();
|
|
@@ -48186,7 +48527,134 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48186
48527
|
isConnected() {
|
|
48187
48528
|
return this.activeSocket?.readyState === WebSocket.OPEN;
|
|
48188
48529
|
}
|
|
48189
|
-
}, Realtime,
|
|
48530
|
+
}, Realtime, debug6, TemplatesService = class {
|
|
48531
|
+
constructor(client) {
|
|
48532
|
+
this.client = client;
|
|
48533
|
+
}
|
|
48534
|
+
get templatesApi() {
|
|
48535
|
+
return this.client.apis.templates;
|
|
48536
|
+
}
|
|
48537
|
+
async list() {
|
|
48538
|
+
debug6("Listing all templates");
|
|
48539
|
+
const response = await this.templatesApi.v4TemplatesGet();
|
|
48540
|
+
return response.data.data ?? [];
|
|
48541
|
+
}
|
|
48542
|
+
async get(templateId) {
|
|
48543
|
+
debug6("Fetching template with ID: %s", templateId);
|
|
48544
|
+
const response = await this.templatesApi.v4TemplatesTemplateIdGet({
|
|
48545
|
+
templateId
|
|
48546
|
+
});
|
|
48547
|
+
const template = response.data.data;
|
|
48548
|
+
if (!template) {
|
|
48549
|
+
throw new KadoaSdkException(`${ERROR_MESSAGES.TEMPLATE_NOT_FOUND}: ${templateId}`, {
|
|
48550
|
+
code: KadoaErrorCode.NOT_FOUND,
|
|
48551
|
+
details: { templateId }
|
|
48552
|
+
});
|
|
48553
|
+
}
|
|
48554
|
+
return template;
|
|
48555
|
+
}
|
|
48556
|
+
async create(body) {
|
|
48557
|
+
debug6("Creating template with name: %s", body.name);
|
|
48558
|
+
const response = await this.templatesApi.v4TemplatesPost({
|
|
48559
|
+
createTemplateBody: body
|
|
48560
|
+
});
|
|
48561
|
+
const template = response.data.data;
|
|
48562
|
+
if (!template) {
|
|
48563
|
+
throw new KadoaSdkException(ERROR_MESSAGES.TEMPLATE_CREATE_FAILED, {
|
|
48564
|
+
code: KadoaErrorCode.INTERNAL_ERROR
|
|
48565
|
+
});
|
|
48566
|
+
}
|
|
48567
|
+
return template;
|
|
48568
|
+
}
|
|
48569
|
+
async update(templateId, body) {
|
|
48570
|
+
debug6("Updating template with ID: %s", templateId);
|
|
48571
|
+
const response = await this.templatesApi.v4TemplatesTemplateIdPut({
|
|
48572
|
+
templateId,
|
|
48573
|
+
updateTemplateBody: body
|
|
48574
|
+
});
|
|
48575
|
+
const template = response.data.data;
|
|
48576
|
+
if (!template) {
|
|
48577
|
+
throw new KadoaSdkException(`${ERROR_MESSAGES.TEMPLATE_UPDATE_FAILED}: ${templateId}`, {
|
|
48578
|
+
code: KadoaErrorCode.INTERNAL_ERROR,
|
|
48579
|
+
details: { templateId }
|
|
48580
|
+
});
|
|
48581
|
+
}
|
|
48582
|
+
return template;
|
|
48583
|
+
}
|
|
48584
|
+
async delete(templateId) {
|
|
48585
|
+
debug6("Deleting template with ID: %s", templateId);
|
|
48586
|
+
await this.templatesApi.v4TemplatesTemplateIdDelete({
|
|
48587
|
+
templateId
|
|
48588
|
+
});
|
|
48589
|
+
}
|
|
48590
|
+
async createVersion(templateId, body) {
|
|
48591
|
+
debug6("Creating version for template: %s", templateId);
|
|
48592
|
+
const response = await this.templatesApi.v4TemplatesTemplateIdVersionsPost({
|
|
48593
|
+
templateId,
|
|
48594
|
+
createTemplateVersionBody: body
|
|
48595
|
+
});
|
|
48596
|
+
const version2 = response.data.data;
|
|
48597
|
+
if (!version2) {
|
|
48598
|
+
throw new KadoaSdkException(`${ERROR_MESSAGES.TEMPLATE_VERSION_CREATE_FAILED}: ${templateId}`, {
|
|
48599
|
+
code: KadoaErrorCode.INTERNAL_ERROR,
|
|
48600
|
+
details: { templateId }
|
|
48601
|
+
});
|
|
48602
|
+
}
|
|
48603
|
+
return version2;
|
|
48604
|
+
}
|
|
48605
|
+
async listSchemas(templateId) {
|
|
48606
|
+
debug6("Listing schemas for template: %s", templateId);
|
|
48607
|
+
const response = await this.templatesApi.v4TemplatesTemplateIdSchemasGet({
|
|
48608
|
+
templateId
|
|
48609
|
+
});
|
|
48610
|
+
return response.data.data ?? [];
|
|
48611
|
+
}
|
|
48612
|
+
async listWorkflows(templateId) {
|
|
48613
|
+
debug6("Listing workflows for template: %s", templateId);
|
|
48614
|
+
const response = await this.templatesApi.v4TemplatesTemplateIdWorkflowsGet({
|
|
48615
|
+
templateId
|
|
48616
|
+
});
|
|
48617
|
+
return response.data.data ?? [];
|
|
48618
|
+
}
|
|
48619
|
+
async linkWorkflows(templateId, body) {
|
|
48620
|
+
debug6("Linking %d workflows to template: %s", body.workflowIds.length, templateId);
|
|
48621
|
+
const response = await this.templatesApi.v4TemplatesTemplateIdLinkPost({
|
|
48622
|
+
templateId,
|
|
48623
|
+
linkWorkflowsBody: body
|
|
48624
|
+
});
|
|
48625
|
+
return response.data;
|
|
48626
|
+
}
|
|
48627
|
+
async unlinkWorkflows(templateId, body) {
|
|
48628
|
+
debug6("Unlinking %d workflows from template: %s", body.workflowIds.length, templateId);
|
|
48629
|
+
const response = await this.templatesApi.v4TemplatesTemplateIdUnlinkPost({
|
|
48630
|
+
templateId,
|
|
48631
|
+
unlinkWorkflowsBody: body
|
|
48632
|
+
});
|
|
48633
|
+
return response.data;
|
|
48634
|
+
}
|
|
48635
|
+
async applyUpdate(templateId, body) {
|
|
48636
|
+
debug6("Applying version %d to %d workflows for template: %s", body.targetVersion, body.workflowIds.length, templateId);
|
|
48637
|
+
const response = await this.templatesApi.v4TemplatesTemplateIdApplyPost({
|
|
48638
|
+
templateId,
|
|
48639
|
+
applyTemplateUpdateBody: body
|
|
48640
|
+
});
|
|
48641
|
+
return response.data;
|
|
48642
|
+
}
|
|
48643
|
+
async createFromWorkflow(body) {
|
|
48644
|
+
debug6("Creating template from workflow: %s", body.workflowId);
|
|
48645
|
+
const response = await this.templatesApi.v4TemplatesFromWorkflowPost({
|
|
48646
|
+
saveFromWorkflowBody: body
|
|
48647
|
+
});
|
|
48648
|
+
const result = response.data.data;
|
|
48649
|
+
if (!result) {
|
|
48650
|
+
throw new KadoaSdkException(ERROR_MESSAGES.TEMPLATE_FROM_WORKFLOW_FAILED, {
|
|
48651
|
+
code: KadoaErrorCode.INTERNAL_ERROR,
|
|
48652
|
+
details: { workflowId: body.workflowId }
|
|
48653
|
+
});
|
|
48654
|
+
}
|
|
48655
|
+
return result;
|
|
48656
|
+
}
|
|
48657
|
+
}, UserService = class {
|
|
48190
48658
|
constructor(client) {
|
|
48191
48659
|
this.client = client;
|
|
48192
48660
|
}
|
|
@@ -48431,7 +48899,7 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48431
48899
|
}
|
|
48432
48900
|
return response.data.data;
|
|
48433
48901
|
}
|
|
48434
|
-
},
|
|
48902
|
+
}, debug7, VariablesService = class {
|
|
48435
48903
|
constructor(client) {
|
|
48436
48904
|
this.client = client;
|
|
48437
48905
|
}
|
|
@@ -48443,7 +48911,7 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48443
48911
|
return response.data.variables ?? [];
|
|
48444
48912
|
}
|
|
48445
48913
|
async get(variableId) {
|
|
48446
|
-
|
|
48914
|
+
debug7("Fetching variable with ID: %s", variableId);
|
|
48447
48915
|
const response = await this.variablesApi.v4VariablesVariableIdGet({
|
|
48448
48916
|
variableId
|
|
48449
48917
|
});
|
|
@@ -48457,7 +48925,7 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48457
48925
|
return variable;
|
|
48458
48926
|
}
|
|
48459
48927
|
async create(body) {
|
|
48460
|
-
|
|
48928
|
+
debug7("Creating variable with key: %s", body.key);
|
|
48461
48929
|
const response = await this.variablesApi.v4VariablesPost({
|
|
48462
48930
|
createVariableBody: body
|
|
48463
48931
|
});
|
|
@@ -48470,7 +48938,7 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48470
48938
|
return variable;
|
|
48471
48939
|
}
|
|
48472
48940
|
async update(variableId, body) {
|
|
48473
|
-
|
|
48941
|
+
debug7("Updating variable with ID: %s", variableId);
|
|
48474
48942
|
const response = await this.variablesApi.v4VariablesVariableIdPatch({
|
|
48475
48943
|
variableId,
|
|
48476
48944
|
updateVariableBody: body
|
|
@@ -48485,12 +48953,12 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48485
48953
|
return variable;
|
|
48486
48954
|
}
|
|
48487
48955
|
async delete(variableId) {
|
|
48488
|
-
|
|
48956
|
+
debug7("Deleting variable with ID: %s", variableId);
|
|
48489
48957
|
await this.variablesApi.v4VariablesVariableIdDelete({
|
|
48490
48958
|
variableId
|
|
48491
48959
|
});
|
|
48492
48960
|
}
|
|
48493
|
-
}, JobStateEnum, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES,
|
|
48961
|
+
}, JobStateEnum, TERMINAL_JOB_STATES, TERMINAL_RUN_STATES, debug8, WorkflowsCoreService = class {
|
|
48494
48962
|
constructor(workflowsApi) {
|
|
48495
48963
|
this.workflowsApi = workflowsApi;
|
|
48496
48964
|
}
|
|
@@ -48606,7 +49074,7 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48606
49074
|
async wait(id, options) {
|
|
48607
49075
|
const result = await pollUntil(async () => {
|
|
48608
49076
|
const current = await this.get(id);
|
|
48609
|
-
|
|
49077
|
+
debug8("workflow %s state: %s", id, current.runState);
|
|
48610
49078
|
return current;
|
|
48611
49079
|
}, (current) => {
|
|
48612
49080
|
if (options?.targetState && current.state === options.targetState) {
|
|
@@ -48652,7 +49120,7 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48652
49120
|
async waitForJobCompletion(workflowId, jobId, options) {
|
|
48653
49121
|
const result = await pollUntil(async () => {
|
|
48654
49122
|
const current = await this.getJobStatus(workflowId, jobId);
|
|
48655
|
-
|
|
49123
|
+
debug8("workflow run %s state: %s", jobId, current.state);
|
|
48656
49124
|
return current;
|
|
48657
49125
|
}, (current) => {
|
|
48658
49126
|
if (options?.targetStatus && current.state === options.targetStatus) {
|
|
@@ -48697,6 +49165,9 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48697
49165
|
get notifications() {
|
|
48698
49166
|
return this.get(NotificationsApi);
|
|
48699
49167
|
}
|
|
49168
|
+
get templates() {
|
|
49169
|
+
return this.get(TemplatesApi);
|
|
49170
|
+
}
|
|
48700
49171
|
get variables() {
|
|
48701
49172
|
return this.get(VariablesApi);
|
|
48702
49173
|
}
|
|
@@ -48727,6 +49198,7 @@ var import_debug, __require2, BASE_PATH, BaseAPI = class {
|
|
|
48727
49198
|
this.workflow = domains.workflow;
|
|
48728
49199
|
this.schema = domains.schema;
|
|
48729
49200
|
this.notification = domains.notification;
|
|
49201
|
+
this.template = domains.template;
|
|
48730
49202
|
this.validation = domains.validation;
|
|
48731
49203
|
this.variable = domains.variable;
|
|
48732
49204
|
this.crawler = domains.crawler;
|
|
@@ -48994,6 +49466,44 @@ var init_dist2 = __esm(() => {
|
|
|
48994
49466
|
return SchemasApiFp(this.configuration).v4SchemasSchemaIdPut(requestParameters.schemaId, requestParameters.updateSchemaBody, options).then((request) => request(this.axios, this.basePath));
|
|
48995
49467
|
}
|
|
48996
49468
|
};
|
|
49469
|
+
TemplatesApi = class extends BaseAPI {
|
|
49470
|
+
v4TemplatesFromWorkflowPost(requestParameters = {}, options) {
|
|
49471
|
+
return TemplatesApiFp(this.configuration).v4TemplatesFromWorkflowPost(requestParameters.saveFromWorkflowBody, options).then((request) => request(this.axios, this.basePath));
|
|
49472
|
+
}
|
|
49473
|
+
v4TemplatesGet(options) {
|
|
49474
|
+
return TemplatesApiFp(this.configuration).v4TemplatesGet(options).then((request) => request(this.axios, this.basePath));
|
|
49475
|
+
}
|
|
49476
|
+
v4TemplatesPost(requestParameters = {}, options) {
|
|
49477
|
+
return TemplatesApiFp(this.configuration).v4TemplatesPost(requestParameters.createTemplateBody, options).then((request) => request(this.axios, this.basePath));
|
|
49478
|
+
}
|
|
49479
|
+
v4TemplatesTemplateIdApplyPost(requestParameters, options) {
|
|
49480
|
+
return TemplatesApiFp(this.configuration).v4TemplatesTemplateIdApplyPost(requestParameters.templateId, requestParameters.applyTemplateUpdateBody, options).then((request) => request(this.axios, this.basePath));
|
|
49481
|
+
}
|
|
49482
|
+
v4TemplatesTemplateIdDelete(requestParameters, options) {
|
|
49483
|
+
return TemplatesApiFp(this.configuration).v4TemplatesTemplateIdDelete(requestParameters.templateId, options).then((request) => request(this.axios, this.basePath));
|
|
49484
|
+
}
|
|
49485
|
+
v4TemplatesTemplateIdGet(requestParameters, options) {
|
|
49486
|
+
return TemplatesApiFp(this.configuration).v4TemplatesTemplateIdGet(requestParameters.templateId, options).then((request) => request(this.axios, this.basePath));
|
|
49487
|
+
}
|
|
49488
|
+
v4TemplatesTemplateIdLinkPost(requestParameters, options) {
|
|
49489
|
+
return TemplatesApiFp(this.configuration).v4TemplatesTemplateIdLinkPost(requestParameters.templateId, requestParameters.linkWorkflowsBody, options).then((request) => request(this.axios, this.basePath));
|
|
49490
|
+
}
|
|
49491
|
+
v4TemplatesTemplateIdPut(requestParameters, options) {
|
|
49492
|
+
return TemplatesApiFp(this.configuration).v4TemplatesTemplateIdPut(requestParameters.templateId, requestParameters.updateTemplateBody, options).then((request) => request(this.axios, this.basePath));
|
|
49493
|
+
}
|
|
49494
|
+
v4TemplatesTemplateIdSchemasGet(requestParameters, options) {
|
|
49495
|
+
return TemplatesApiFp(this.configuration).v4TemplatesTemplateIdSchemasGet(requestParameters.templateId, options).then((request) => request(this.axios, this.basePath));
|
|
49496
|
+
}
|
|
49497
|
+
v4TemplatesTemplateIdUnlinkPost(requestParameters, options) {
|
|
49498
|
+
return TemplatesApiFp(this.configuration).v4TemplatesTemplateIdUnlinkPost(requestParameters.templateId, requestParameters.unlinkWorkflowsBody, options).then((request) => request(this.axios, this.basePath));
|
|
49499
|
+
}
|
|
49500
|
+
v4TemplatesTemplateIdVersionsPost(requestParameters, options) {
|
|
49501
|
+
return TemplatesApiFp(this.configuration).v4TemplatesTemplateIdVersionsPost(requestParameters.templateId, requestParameters.createTemplateVersionBody, options).then((request) => request(this.axios, this.basePath));
|
|
49502
|
+
}
|
|
49503
|
+
v4TemplatesTemplateIdWorkflowsGet(requestParameters, options) {
|
|
49504
|
+
return TemplatesApiFp(this.configuration).v4TemplatesTemplateIdWorkflowsGet(requestParameters.templateId, options).then((request) => request(this.axios, this.basePath));
|
|
49505
|
+
}
|
|
49506
|
+
};
|
|
48997
49507
|
VariablesApi = class extends BaseAPI {
|
|
48998
49508
|
v4VariablesGet(options) {
|
|
48999
49509
|
return VariablesApiFp(this.configuration).v4VariablesGet(options).then((request) => request(this.axios, this.basePath));
|
|
@@ -49025,7 +49535,7 @@ var init_dist2 = __esm(() => {
|
|
|
49025
49535
|
return WorkflowsApiFp(this.configuration).v4WorkflowsBulkPost(requestParameters.v4WorkflowsBulkPostRequest, options).then((request) => request(this.axios, this.basePath));
|
|
49026
49536
|
}
|
|
49027
49537
|
v4WorkflowsGet(requestParameters = {}, options) {
|
|
49028
|
-
return WorkflowsApiFp(this.configuration).v4WorkflowsGet(requestParameters.search, requestParameters.skip, requestParameters.limit, requestParameters.state, requestParameters.runState, requestParameters.displayState, requestParameters.inSupport, requestParameters.tags, requestParameters.userId, requestParameters.monitoring, requestParameters.updateInterval, requestParameters.
|
|
49538
|
+
return WorkflowsApiFp(this.configuration).v4WorkflowsGet(requestParameters.search, requestParameters.skip, requestParameters.limit, requestParameters.state, requestParameters.runState, requestParameters.displayState, requestParameters.inSupport, requestParameters.tags, requestParameters.userId, requestParameters.monitoring, requestParameters.updateInterval, requestParameters.includeDeleted, requestParameters.format, options).then((request) => request(this.axios, this.basePath));
|
|
49029
49539
|
}
|
|
49030
49540
|
v4WorkflowsPost(requestParameters = {}, options) {
|
|
49031
49541
|
return WorkflowsApiFp(this.configuration).v4WorkflowsPost(requestParameters.createWorkflowBody, options).then((request) => request(this.axios, this.basePath));
|
|
@@ -49201,7 +49711,12 @@ var init_dist2 = __esm(() => {
|
|
|
49201
49711
|
SCHEMA_DELETE_FAILED: "Failed to delete schema",
|
|
49202
49712
|
VARIABLE_NOT_FOUND: "Variable not found",
|
|
49203
49713
|
VARIABLE_CREATE_FAILED: "Failed to create variable",
|
|
49204
|
-
VARIABLE_UPDATE_FAILED: "Failed to update variable"
|
|
49714
|
+
VARIABLE_UPDATE_FAILED: "Failed to update variable",
|
|
49715
|
+
TEMPLATE_NOT_FOUND: "Template not found",
|
|
49716
|
+
TEMPLATE_CREATE_FAILED: "Failed to create template",
|
|
49717
|
+
TEMPLATE_UPDATE_FAILED: "Failed to update template",
|
|
49718
|
+
TEMPLATE_VERSION_CREATE_FAILED: "Failed to create template version",
|
|
49719
|
+
TEMPLATE_FROM_WORKFLOW_FAILED: "Failed to create template from workflow"
|
|
49205
49720
|
};
|
|
49206
49721
|
KadoaSdkException = _KadoaSdkException;
|
|
49207
49722
|
ERROR_MESSAGES = KadoaSdkException.ERROR_MESSAGES;
|
|
@@ -49309,6 +49824,7 @@ var init_dist2 = __esm(() => {
|
|
|
49309
49824
|
notifications: createLogger("notifications"),
|
|
49310
49825
|
schemas: createLogger("schemas"),
|
|
49311
49826
|
validation: createLogger("validation"),
|
|
49827
|
+
templates: createLogger("templates"),
|
|
49312
49828
|
variables: createLogger("variables")
|
|
49313
49829
|
};
|
|
49314
49830
|
_SchemaBuilder.FIELD_NAME_PATTERN = /^[A-Za-z0-9]+$/;
|
|
@@ -49354,6 +49870,7 @@ var init_dist2 = __esm(() => {
|
|
|
49354
49870
|
_Realtime.DEFAULT_RECONNECT_DELAY_MS = 5000;
|
|
49355
49871
|
_Realtime.MAX_RECONNECT_DELAY_MS = 60000;
|
|
49356
49872
|
Realtime = _Realtime;
|
|
49873
|
+
debug6 = logger.templates;
|
|
49357
49874
|
DEFAULT_POLLING_OPTIONS = {
|
|
49358
49875
|
pollIntervalMs: 1e4,
|
|
49359
49876
|
timeoutMs: 5 * 60 * 1000
|
|
@@ -49362,7 +49879,7 @@ var init_dist2 = __esm(() => {
|
|
|
49362
49879
|
ABORTED: "ABORTED",
|
|
49363
49880
|
TIMEOUT: "TIMEOUT"
|
|
49364
49881
|
};
|
|
49365
|
-
|
|
49882
|
+
debug7 = logger.variables;
|
|
49366
49883
|
JobStateEnum = {
|
|
49367
49884
|
Finished: "FINISHED",
|
|
49368
49885
|
Failed: "FAILED",
|
|
@@ -49383,7 +49900,7 @@ var init_dist2 = __esm(() => {
|
|
|
49383
49900
|
"STOPPED",
|
|
49384
49901
|
"CANCELLED"
|
|
49385
49902
|
]);
|
|
49386
|
-
|
|
49903
|
+
debug8 = logger.workflow;
|
|
49387
49904
|
});
|
|
49388
49905
|
|
|
49389
49906
|
// src/client.ts
|