@unmeshed/sdk 1.0.13 → 1.0.16
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 +128 -0
- package/dist/index.d.mts +370 -0
- package/{types → dist}/index.d.ts +95 -38
- package/dist/index.js +842 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +797 -0
- package/dist/index.mjs.map +1 -0
- package/package.json +31 -14
- package/apiClient.d.ts +0 -14
- package/apiClient.js +0 -106
- package/apiClient.js.map +0 -1
- package/index.d.ts +0 -21
- package/index.js +0 -29
- package/index.js.map +0 -1
- package/poller/pollerClientImpl.d.ts +0 -2
- package/poller/pollerClientImpl.js +0 -130
- package/poller/pollerClientImpl.js.map +0 -1
- package/process/processClientImpl.d.ts +0 -12
- package/process/processClientImpl.js +0 -202
- package/process/processClientImpl.js.map +0 -1
- package/registration/registrationClientImpl.d.ts +0 -1
- package/registration/registrationClientImpl.js +0 -22
- package/registration/registrationClientImpl.js.map +0 -1
- package/sampleTest.d.ts +0 -1
- package/sampleTest.js +0 -82
- package/sampleTest.js.map +0 -1
- package/types/index.js +0 -81
- package/types/index.js.map +0 -1
- package/utils/unmeshedCommonUtils.d.ts +0 -3
- package/utils/unmeshedCommonUtils.js +0 -18
- package/utils/unmeshedCommonUtils.js.map +0 -1
|
@@ -1,202 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.invokeApiMappingPost = exports.invokeApiMappingGet = exports.searchProcessExecutions = exports.rerun = exports.bulkReviewed = exports.bulkResume = exports.bulkTerminate = exports.getStepData = exports.getProcessData = exports.runProcessAsync = exports.runProcessSync = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const types_1 = require("../types");
|
|
6
|
-
const axios_1 = require("axios");
|
|
7
|
-
const RUN_PROCESS_REQUEST_URL = "api/process/";
|
|
8
|
-
const runProcessSync = async (ProcessRequestData) => {
|
|
9
|
-
try {
|
|
10
|
-
const response = await __1.apiClient.post(RUN_PROCESS_REQUEST_URL + "runSync", {
|
|
11
|
-
data: ProcessRequestData,
|
|
12
|
-
params: {
|
|
13
|
-
clientId: __1.apiClient.getClientId(),
|
|
14
|
-
},
|
|
15
|
-
});
|
|
16
|
-
console.log("Response:", response);
|
|
17
|
-
return response.data;
|
|
18
|
-
}
|
|
19
|
-
catch (error) {
|
|
20
|
-
console.error("Some error occurred running process request : ", error);
|
|
21
|
-
throw error;
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
exports.runProcessSync = runProcessSync;
|
|
25
|
-
const runProcessAsync = async (ProcessRequestData) => {
|
|
26
|
-
try {
|
|
27
|
-
const response = await __1.apiClient.post(RUN_PROCESS_REQUEST_URL + "runAsync", {
|
|
28
|
-
data: ProcessRequestData,
|
|
29
|
-
params: {
|
|
30
|
-
clientId: __1.apiClient.getClientId(),
|
|
31
|
-
},
|
|
32
|
-
});
|
|
33
|
-
console.log("Response:", response);
|
|
34
|
-
return response.data;
|
|
35
|
-
}
|
|
36
|
-
catch (error) {
|
|
37
|
-
console.error("Some error occurred running process request : ", error);
|
|
38
|
-
throw error;
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
exports.runProcessAsync = runProcessAsync;
|
|
42
|
-
const getProcessData = async (processId) => {
|
|
43
|
-
if (processId == null) {
|
|
44
|
-
throw new Error("Process ID cannot be null");
|
|
45
|
-
}
|
|
46
|
-
try {
|
|
47
|
-
const response = await __1.apiClient.get(RUN_PROCESS_REQUEST_URL + "context/" + processId);
|
|
48
|
-
return response.data;
|
|
49
|
-
}
|
|
50
|
-
catch (error) {
|
|
51
|
-
console.error("Error occurred while fetching process record: ", error);
|
|
52
|
-
throw error;
|
|
53
|
-
}
|
|
54
|
-
};
|
|
55
|
-
exports.getProcessData = getProcessData;
|
|
56
|
-
const getStepData = async (stepId) => {
|
|
57
|
-
if (stepId === null || stepId === undefined) {
|
|
58
|
-
throw new Error("Step ID cannot be null or undefined");
|
|
59
|
-
}
|
|
60
|
-
try {
|
|
61
|
-
const response = await __1.apiClient.get(RUN_PROCESS_REQUEST_URL + "stepContext/" + stepId);
|
|
62
|
-
return response.data;
|
|
63
|
-
}
|
|
64
|
-
catch (error) {
|
|
65
|
-
const err = error;
|
|
66
|
-
throw new Error(`Error occurred while fetching step record: ${err.message || error}`);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
exports.getStepData = getStepData;
|
|
70
|
-
const bulkTerminate = async (processIds, reason) => {
|
|
71
|
-
try {
|
|
72
|
-
const response = await __1.apiClient.post(RUN_PROCESS_REQUEST_URL + "bulkTerminate", {
|
|
73
|
-
params: { reason },
|
|
74
|
-
data: processIds,
|
|
75
|
-
});
|
|
76
|
-
return response.data;
|
|
77
|
-
}
|
|
78
|
-
catch (error) {
|
|
79
|
-
const err = error;
|
|
80
|
-
throw new Error(`Error occurred while terminating processes: ${err.message || error}`);
|
|
81
|
-
}
|
|
82
|
-
};
|
|
83
|
-
exports.bulkTerminate = bulkTerminate;
|
|
84
|
-
const bulkResume = async (processIds) => {
|
|
85
|
-
try {
|
|
86
|
-
const response = await __1.apiClient.post(RUN_PROCESS_REQUEST_URL + "bulkResume", {
|
|
87
|
-
data: processIds,
|
|
88
|
-
});
|
|
89
|
-
return response.data;
|
|
90
|
-
}
|
|
91
|
-
catch (error) {
|
|
92
|
-
const err = error;
|
|
93
|
-
throw new Error(`Error occurred while resuming processes: ${err.message || error}`);
|
|
94
|
-
}
|
|
95
|
-
};
|
|
96
|
-
exports.bulkResume = bulkResume;
|
|
97
|
-
const bulkReviewed = async (processIds, reason) => {
|
|
98
|
-
try {
|
|
99
|
-
const response = await __1.apiClient.post(RUN_PROCESS_REQUEST_URL + "bulkReviewed", {
|
|
100
|
-
data: processIds,
|
|
101
|
-
params: { reason },
|
|
102
|
-
});
|
|
103
|
-
return response.data;
|
|
104
|
-
}
|
|
105
|
-
catch (error) {
|
|
106
|
-
const err = error;
|
|
107
|
-
throw new Error(`Error occurred while marking processes as reviewed: ${err.message || error}`);
|
|
108
|
-
}
|
|
109
|
-
};
|
|
110
|
-
exports.bulkReviewed = bulkReviewed;
|
|
111
|
-
const rerun = async (processId, clientId, version) => {
|
|
112
|
-
const params = {
|
|
113
|
-
clientId,
|
|
114
|
-
processId,
|
|
115
|
-
};
|
|
116
|
-
if (version !== undefined) {
|
|
117
|
-
params["version"] = version;
|
|
118
|
-
}
|
|
119
|
-
try {
|
|
120
|
-
const response = await __1.apiClient.post(RUN_PROCESS_REQUEST_URL + "rerun", {
|
|
121
|
-
params,
|
|
122
|
-
});
|
|
123
|
-
return response.data;
|
|
124
|
-
}
|
|
125
|
-
catch (error) {
|
|
126
|
-
if ((0, axios_1.isAxiosError)(error)) {
|
|
127
|
-
throw new Error(`HTTP request error during rerun process: ${error.response?.status} - ${error.response?.data}`);
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
const err = error;
|
|
131
|
-
throw new Error(`Unexpected error during rerun process: ${err.message || err}`);
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
};
|
|
135
|
-
exports.rerun = rerun;
|
|
136
|
-
const searchProcessExecutions = async (params) => {
|
|
137
|
-
const queryParams = new URLSearchParams();
|
|
138
|
-
if (params.startTimeEpoch !== undefined && params.startTimeEpoch !== 0)
|
|
139
|
-
queryParams.set("startTimeEpoch", params.startTimeEpoch.toString());
|
|
140
|
-
if (params.endTimeEpoch !== undefined && params.endTimeEpoch !== 0)
|
|
141
|
-
queryParams.set("endTimeEpoch", (params.endTimeEpoch || 0).toString());
|
|
142
|
-
if (params.namespace)
|
|
143
|
-
queryParams.set("namespace", params.namespace);
|
|
144
|
-
if (params.names && params.names.length)
|
|
145
|
-
queryParams.set("names", params.names.join(","));
|
|
146
|
-
if (params.processIds && params.processIds.length)
|
|
147
|
-
queryParams.set("processIds", params.processIds.join(","));
|
|
148
|
-
if (params.correlationIds && params.correlationIds.length)
|
|
149
|
-
queryParams.set("correlationIds", params.correlationIds.join(","));
|
|
150
|
-
if (params.requestIds && params.requestIds.length)
|
|
151
|
-
queryParams.set("requestIds", params.requestIds.join(","));
|
|
152
|
-
if (params.statuses && params.statuses.length)
|
|
153
|
-
queryParams.set("statuses", params.statuses.join(","));
|
|
154
|
-
if (params.triggerTypes && params.triggerTypes.length)
|
|
155
|
-
queryParams.set("triggerTypes", params.triggerTypes.join(","));
|
|
156
|
-
const updatedParams = Object.fromEntries(new URLSearchParams(queryParams));
|
|
157
|
-
try {
|
|
158
|
-
const response = await __1.apiClient.get(RUN_PROCESS_REQUEST_URL + "api/stats/process/search", updatedParams);
|
|
159
|
-
console.log("Response:", response);
|
|
160
|
-
return response.data;
|
|
161
|
-
}
|
|
162
|
-
catch (error) {
|
|
163
|
-
console.error("Error occurred while searching process executions: ", error);
|
|
164
|
-
throw error;
|
|
165
|
-
}
|
|
166
|
-
};
|
|
167
|
-
exports.searchProcessExecutions = searchProcessExecutions;
|
|
168
|
-
const invokeApiMappingGet = async (endpoint, id, correlationId, apiCallType) => {
|
|
169
|
-
try {
|
|
170
|
-
const response = await __1.apiClient.get(RUN_PROCESS_REQUEST_URL + "api/call/" + endpoint, {
|
|
171
|
-
id: id,
|
|
172
|
-
correlationId: correlationId,
|
|
173
|
-
apiCallType,
|
|
174
|
-
});
|
|
175
|
-
console.log("Response:", response);
|
|
176
|
-
return response.data;
|
|
177
|
-
}
|
|
178
|
-
catch (error) {
|
|
179
|
-
console.error("Error occurred while invoking API Mapping GET: ", error);
|
|
180
|
-
throw error;
|
|
181
|
-
}
|
|
182
|
-
};
|
|
183
|
-
exports.invokeApiMappingGet = invokeApiMappingGet;
|
|
184
|
-
const invokeApiMappingPost = async (endpoint, input, id, correlationId, apiCallType = types_1.ApiCallType.ASYNC) => {
|
|
185
|
-
try {
|
|
186
|
-
const response = await __1.apiClient.post(RUN_PROCESS_REQUEST_URL + "api/call/" + endpoint, {
|
|
187
|
-
data: input,
|
|
188
|
-
params: {
|
|
189
|
-
id: id,
|
|
190
|
-
correlationId: correlationId,
|
|
191
|
-
apiCallType,
|
|
192
|
-
},
|
|
193
|
-
});
|
|
194
|
-
return response.data;
|
|
195
|
-
}
|
|
196
|
-
catch (error) {
|
|
197
|
-
console.error("Error occurred while invoking API Mapping POST: ", error);
|
|
198
|
-
throw error;
|
|
199
|
-
}
|
|
200
|
-
};
|
|
201
|
-
exports.invokeApiMappingPost = invokeApiMappingPost;
|
|
202
|
-
//# sourceMappingURL=processClientImpl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"processClientImpl.js","sourceRoot":"","sources":["../../src/process/processClientImpl.ts"],"names":[],"mappings":";;;AAAA,0BAA6B;AAC7B,oCAOkB;AAClB,iCAAmC;AAEnC,MAAM,uBAAuB,GAAG,cAAc,CAAC;AAExC,MAAM,cAAc,GAAG,KAAK,EACjC,kBAAsC,EAChB,EAAE;IACxB,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,aAAS,CAAC,IAAI,CAAC,uBAAuB,GAAG,SAAS,EAAE;YACzE,IAAI,EAAE,kBAAkB;YACxB,MAAM,EAAE;gBACN,QAAQ,EAAE,aAAS,CAAC,WAAW,EAAE;aAClC;SACF,CAAC,CAAC;QACH,OAAO,CAAC,GAAG,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;QACnC,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,gDAAgD,EAAE,KAAK,CAAC,CAAC;QACvE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAhBW,QAAA,cAAc,kBAgBzB;AAEK,MAAM,eAAe,GAAG,KAAK,EAClC,kBAAsC,EAChB,EAAE;IACxB,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,aAAS,CAAC,IAAI,CACnC,uBAAuB,GAAG,UAAU,EACpC;YACE,IAAI,EAAE,kBAAkB;YACxB,MAAM,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AAC,IAAI,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,iDAAiD,EAAE,KAAK,CAAC,CAAC;QACxE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AArBW,QAAA,mBAAmB,uBAqB9B;AAEK,MAAM,oBAAoB,GAAG,KAAK,EACvC,QAAgB,EAChB,KAA0B,EAC1B,EAAU,EACV,aAAqB,EACrB,cAA2B,mBAAW,CAAC,KAAK,EAC9B,EAAE;IAChB,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,aAAS,CAAC,IAAI,CACnC,uBAAuB,GAAG,WAAW,GAAG,QAAQ,EAChD;YACE,IAAI,EAAE,KAAK;YACX,MAAM,EAAE;gBACN,EAAE,EAAE,EAAE;gBACN,aAAa,EAAE,aAAa;gBAC5B,WAAW;aACZ;SACF,CACF,CAAC;QAEF,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,kDAAkD,EAAE,KAAK,CAAC,CAAC;QACzE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAzBW,QAAA,oBAAoB,wBAyB/B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const renewRegistration: () => Promise<string>;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.renewRegistration = void 0;
|
|
4
|
-
const __1 = require("..");
|
|
5
|
-
const renewRegistration = async () => {
|
|
6
|
-
try {
|
|
7
|
-
const response = await __1.apiClient.put("/api/clients/register", {
|
|
8
|
-
params: {
|
|
9
|
-
friendlyName: "Unmeshed",
|
|
10
|
-
tokenExpiryDate: "",
|
|
11
|
-
},
|
|
12
|
-
});
|
|
13
|
-
console.debug("Response from server:", response);
|
|
14
|
-
return response.data;
|
|
15
|
-
}
|
|
16
|
-
catch (error) {
|
|
17
|
-
console.error("Error occurred during registration renewal:", error);
|
|
18
|
-
throw error;
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
exports.renewRegistration = renewRegistration;
|
|
22
|
-
//# sourceMappingURL=registrationClientImpl.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"registrationClientImpl.js","sourceRoot":"","sources":["../../src/registration/registrationClientImpl.ts"],"names":[],"mappings":";;;AAAA,0BAA+B;AAExB,MAAM,iBAAiB,GAAG,KAAK,IAAqB,EAAE;IAC3D,IAAI,CAAC;QACH,MAAM,QAAQ,GAAG,MAAM,aAAS,CAAC,GAAG,CAAC,uBAAuB,EAAE;YAC5D,MAAM,EAAE;gBACN,YAAY,EAAE,UAAU;gBACxB,eAAe,EAAE,EAAE;aACpB;SACF,CAAC,CAAC;QACH,OAAO,CAAC,KAAK,CAAC,uBAAuB,EAAE,QAAQ,CAAC,CAAC;QACjD,OAAO,QAAQ,CAAC,IAAI,CAAC;IACvB,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,CAAC,KAAK,CAAC,6CAA6C,EAAE,KAAK,CAAC,CAAC;QACpE,MAAM,KAAK,CAAC;IACd,CAAC;AACH,CAAC,CAAC;AAdW,QAAA,iBAAiB,qBAc5B"}
|
package/sampleTest.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import "dotenv/config";
|
package/sampleTest.js
DELETED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
require("dotenv/config");
|
|
7
|
-
const index_js_1 = __importDefault(require("./index.js"));
|
|
8
|
-
const BASE_URL = process.env.UNMESHED_BASE_URL;
|
|
9
|
-
const PORT = process.env.UNMESHED_PORT;
|
|
10
|
-
const ClIENT_ID = process.env.UNMESHED_CLIENT_ID;
|
|
11
|
-
const AUTH_TOKEN = process.env.UNMESHED_AUTH_TOKEN;
|
|
12
|
-
console.log("UC2", index_js_1.default);
|
|
13
|
-
index_js_1.default.initialize({
|
|
14
|
-
baseUrl: BASE_URL || 'abc',
|
|
15
|
-
port: PORT,
|
|
16
|
-
clientId: ClIENT_ID || 'abc',
|
|
17
|
-
authToken: AUTH_TOKEN || 'token',
|
|
18
|
-
});
|
|
19
|
-
//
|
|
20
|
-
// const request = {
|
|
21
|
-
// name: "sample-http",
|
|
22
|
-
// namespace: "default",
|
|
23
|
-
// input: {},
|
|
24
|
-
// correlationId: "",
|
|
25
|
-
// requestId: "",
|
|
26
|
-
// version: 1,
|
|
27
|
-
// };
|
|
28
|
-
// const workers = [
|
|
29
|
-
// {
|
|
30
|
-
// worker: (input) => ArithmeticOperation(input),
|
|
31
|
-
// namespace: "default",
|
|
32
|
-
// name: "arithmetic_operation_worker",
|
|
33
|
-
// maxInProgress: 10,
|
|
34
|
-
// },
|
|
35
|
-
// ];
|
|
36
|
-
// UnmeshedClient.pollForWorkers(workers);
|
|
37
|
-
//
|
|
38
|
-
// const processId = 28878569;
|
|
39
|
-
// const stepId = 28878571;
|
|
40
|
-
// const processIds = [34, 344];
|
|
41
|
-
// const clientId = "jdjfjf";
|
|
42
|
-
// const endpoint = "your-endpoint";
|
|
43
|
-
// const input = { key: "value" };
|
|
44
|
-
// const id = "12345";
|
|
45
|
-
// const apiCallType = ApiCallType.SYNC;
|
|
46
|
-
//
|
|
47
|
-
// const params = {
|
|
48
|
-
// startTimeEpoch: 1673606400000,
|
|
49
|
-
// endTimeEpoch: 1673692800000,
|
|
50
|
-
// namespace: "default",
|
|
51
|
-
// processTypes: [ProcessType.STANDARD],
|
|
52
|
-
// triggerTypes: [ProcessTriggerType.MANUAL],
|
|
53
|
-
// names: ["process1", "process2", "process3"],
|
|
54
|
-
// processIds: [28883174, 28883162],
|
|
55
|
-
// correlationIds: ["correlationId1", "correlationId2"],
|
|
56
|
-
// requestIds: ["requestId1", "requestId2"],
|
|
57
|
-
// statuses: [ProcessStatus.COMPLETED],
|
|
58
|
-
// limit: 10,
|
|
59
|
-
// offset: 0,
|
|
60
|
-
// };
|
|
61
|
-
// UnmeshedClient.getStepData(stepId)
|
|
62
|
-
// .then((stepData) => {
|
|
63
|
-
// console.log("STEP_DATA", stepData);
|
|
64
|
-
// })
|
|
65
|
-
// .catch((error) => {
|
|
66
|
-
// console.error("Error fetching step data:", error.message);
|
|
67
|
-
// });
|
|
68
|
-
// UnmeshedClient.rerun(processId, ClIENT_ID)
|
|
69
|
-
// .then((data) => {
|
|
70
|
-
// console.log("PROCESS_DATA", data);
|
|
71
|
-
// })
|
|
72
|
-
// .catch((error) => {
|
|
73
|
-
// console.error("Error fetching step data:", error.message);
|
|
74
|
-
// });
|
|
75
|
-
// UnmeshedClient.bulkTerminate(processIds)
|
|
76
|
-
// .then((data) => {
|
|
77
|
-
// console.log("PROCESS_DATA", data);
|
|
78
|
-
// })
|
|
79
|
-
// .catch((error) => {
|
|
80
|
-
// console.error("Error fetching step data:", error.message);
|
|
81
|
-
// });
|
|
82
|
-
//# sourceMappingURL=sampleTest.js.map
|
package/sampleTest.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sampleTest.js","sourceRoot":"","sources":["../src/sampleTest.ts"],"names":[],"mappings":";;;;;AACA,yBAAuB;AACvB,0DAAuC;AAEvC,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;AAC/C,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,aAAa,CAAC;AACvC,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC;AACjD,MAAM,UAAU,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;AAEnD,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,kBAAc,CAAC,CAAA;AAElC,kBAAc,CAAC,UAAU,CAAC;IACxB,OAAO,EAAE,QAAQ,IAAI,KAAK;IAC1B,IAAI,EAAE,IAAI;IACV,QAAQ,EAAE,SAAS,IAAI,KAAK;IAC5B,SAAS,EAAE,UAAU,IAAI,OAAO;CACjC,CAAC,CAAC;AAIH,EAAE;AACF,oBAAoB;AACpB,yBAAyB;AACzB,0BAA0B;AAC1B,eAAe;AACf,uBAAuB;AACvB,mBAAmB;AACnB,gBAAgB;AAChB,KAAK;AACL,oBAAoB;AACpB,MAAM;AACN,qDAAqD;AACrD,4BAA4B;AAC5B,2CAA2C;AAC3C,yBAAyB;AACzB,OAAO;AACP,KAAK;AACL,0CAA0C;AAC1C,EAAE;AACF,8BAA8B;AAC9B,2BAA2B;AAC3B,gCAAgC;AAChC,6BAA6B;AAC7B,oCAAoC;AACpC,kCAAkC;AAClC,sBAAsB;AACtB,wCAAwC;AACxC,EAAE;AACF,mBAAmB;AACnB,mCAAmC;AACnC,iCAAiC;AACjC,0BAA0B;AAC1B,0CAA0C;AAC1C,+CAA+C;AAC/C,iDAAiD;AACjD,sCAAsC;AACtC,0DAA0D;AAC1D,8CAA8C;AAC9C,yCAAyC;AACzC,eAAe;AACf,eAAe;AACf,KAAK;AAEL,qCAAqC;AACrC,0BAA0B;AAC1B,0CAA0C;AAC1C,OAAO;AACP,wBAAwB;AACxB,iEAAiE;AACjE,QAAQ;AAER,6CAA6C;AAC7C,sBAAsB;AACtB,yCAAyC;AACzC,OAAO;AACP,wBAAwB;AACxB,iEAAiE;AACjE,QAAQ;AAER,2CAA2C;AAC3C,sBAAsB;AACtB,yCAAyC;AACzC,OAAO;AACP,wBAAwB;AACxB,iEAAiE;AACjE,QAAQ"}
|
package/types/index.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProcessType = exports.ProcessTriggerType = exports.ProcessStatus = exports.StepStatus = exports.StepType = exports.SQAuthUserType = exports.WebhookSource = exports.ApiCallType = void 0;
|
|
4
|
-
var ApiCallType;
|
|
5
|
-
(function (ApiCallType) {
|
|
6
|
-
ApiCallType["SYNC"] = "SYNC";
|
|
7
|
-
ApiCallType["ASYNC"] = "ASYNC";
|
|
8
|
-
ApiCallType["STREAM"] = "STREAM";
|
|
9
|
-
})(ApiCallType || (exports.ApiCallType = ApiCallType = {}));
|
|
10
|
-
var WebhookSource;
|
|
11
|
-
(function (WebhookSource) {
|
|
12
|
-
WebhookSource["MS_TEAMS"] = "MS_TEAMS";
|
|
13
|
-
WebhookSource["NOT_DEFINED"] = "NOT_DEFINED";
|
|
14
|
-
})(WebhookSource || (exports.WebhookSource = WebhookSource = {}));
|
|
15
|
-
var SQAuthUserType;
|
|
16
|
-
(function (SQAuthUserType) {
|
|
17
|
-
SQAuthUserType["USER"] = "USER";
|
|
18
|
-
SQAuthUserType["API"] = "API";
|
|
19
|
-
SQAuthUserType["INTERNAL"] = "INTERNAL";
|
|
20
|
-
})(SQAuthUserType || (exports.SQAuthUserType = SQAuthUserType = {}));
|
|
21
|
-
var StepType;
|
|
22
|
-
(function (StepType) {
|
|
23
|
-
StepType["WORKER"] = "WORKER";
|
|
24
|
-
StepType["HTTP"] = "HTTP";
|
|
25
|
-
StepType["WAIT"] = "WAIT";
|
|
26
|
-
StepType["FAIL"] = "FAIL";
|
|
27
|
-
StepType["PYTHON"] = "PYTHON";
|
|
28
|
-
StepType["JAVASCRIPT"] = "JAVASCRIPT";
|
|
29
|
-
StepType["JQ"] = "JQ";
|
|
30
|
-
StepType["MANAGED"] = "MANAGED";
|
|
31
|
-
StepType["BUILTIN"] = "BUILTIN";
|
|
32
|
-
StepType["NOOP"] = "NOOP";
|
|
33
|
-
StepType["PERSISTED_STATE"] = "PERSISTED_STATE";
|
|
34
|
-
StepType["DEPENDSON"] = "DEPENDSON";
|
|
35
|
-
StepType["INTEGRATION"] = "INTEGRATION";
|
|
36
|
-
StepType["EXIT"] = "EXIT";
|
|
37
|
-
StepType["SUB_PROCESS"] = "SUB_PROCESS";
|
|
38
|
-
StepType["LIST"] = "LIST";
|
|
39
|
-
StepType["PARALLEL"] = "PARALLEL";
|
|
40
|
-
StepType["FOREACH"] = "FOREACH";
|
|
41
|
-
StepType["SWITCH"] = "SWITCH";
|
|
42
|
-
})(StepType || (exports.StepType = StepType = {}));
|
|
43
|
-
var StepStatus;
|
|
44
|
-
(function (StepStatus) {
|
|
45
|
-
StepStatus["PENDING"] = "PENDING";
|
|
46
|
-
StepStatus["SCHEDULED"] = "SCHEDULED";
|
|
47
|
-
StepStatus["RUNNING"] = "RUNNING";
|
|
48
|
-
StepStatus["PAUSED"] = "PAUSED";
|
|
49
|
-
StepStatus["COMPLETED"] = "COMPLETED";
|
|
50
|
-
StepStatus["FAILED"] = "FAILED";
|
|
51
|
-
StepStatus["TIMED_OUT"] = "TIMED_OUT";
|
|
52
|
-
StepStatus["SKIPPED"] = "SKIPPED";
|
|
53
|
-
StepStatus["CANCELLED"] = "CANCELLED";
|
|
54
|
-
})(StepStatus || (exports.StepStatus = StepStatus = {}));
|
|
55
|
-
var ProcessStatus;
|
|
56
|
-
(function (ProcessStatus) {
|
|
57
|
-
ProcessStatus["RUNNING"] = "RUNNING";
|
|
58
|
-
ProcessStatus["COMPLETED"] = "COMPLETED";
|
|
59
|
-
ProcessStatus["FAILED"] = "FAILED";
|
|
60
|
-
ProcessStatus["TIMED_OUT"] = "TIMED_OUT";
|
|
61
|
-
ProcessStatus["CANCELLED"] = "CANCELLED";
|
|
62
|
-
ProcessStatus["TERMINATED"] = "TERMINATED";
|
|
63
|
-
ProcessStatus["REVIEWED"] = "REVIEWED";
|
|
64
|
-
})(ProcessStatus || (exports.ProcessStatus = ProcessStatus = {}));
|
|
65
|
-
var ProcessTriggerType;
|
|
66
|
-
(function (ProcessTriggerType) {
|
|
67
|
-
ProcessTriggerType["MANUAL"] = "MANUAL";
|
|
68
|
-
ProcessTriggerType["SCHEDULED"] = "SCHEDULED";
|
|
69
|
-
ProcessTriggerType["API_MAPPING"] = "API_MAPPING";
|
|
70
|
-
ProcessTriggerType["WEBHOOK"] = "WEBHOOK";
|
|
71
|
-
ProcessTriggerType["API"] = "API";
|
|
72
|
-
ProcessTriggerType["SUB_PROCESS"] = "SUB_PROCESS";
|
|
73
|
-
})(ProcessTriggerType || (exports.ProcessTriggerType = ProcessTriggerType = {}));
|
|
74
|
-
var ProcessType;
|
|
75
|
-
(function (ProcessType) {
|
|
76
|
-
ProcessType["STANDARD"] = "STANDARD";
|
|
77
|
-
ProcessType["DYNAMIC"] = "DYNAMIC";
|
|
78
|
-
ProcessType["API_ORCHESTRATION"] = "API_ORCHESTRATION";
|
|
79
|
-
ProcessType["INTERNAL"] = "INTERNAL";
|
|
80
|
-
})(ProcessType || (exports.ProcessType = ProcessType = {}));
|
|
81
|
-
//# sourceMappingURL=index.js.map
|
package/types/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":";;;AAEA,IAAY,WAIX;AAJD,WAAY,WAAW;IACrB,4BAAa,CAAA;IACb,8BAAe,CAAA;IACf,gCAAiB,CAAA;AACnB,CAAC,EAJW,WAAW,2BAAX,WAAW,QAItB;AAgCD,IAAY,aAGX;AAHD,WAAY,aAAa;IACvB,sCAAqB,CAAA;IACrB,4CAA2B,CAAA;AAC7B,CAAC,EAHW,aAAa,6BAAb,aAAa,QAGxB;AAED,IAAY,cAIX;AAJD,WAAY,cAAc;IACxB,+BAAa,CAAA;IACb,6BAAW,CAAA;IACX,uCAAqB,CAAA;AACvB,CAAC,EAJW,cAAc,8BAAd,cAAc,QAIzB;AAED,IAAY,QAoBX;AApBD,WAAY,QAAQ;IAClB,6BAAiB,CAAA;IACjB,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,yBAAa,CAAA;IACb,6BAAiB,CAAA;IACjB,qC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-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UnmeshedCommonUtils = void 0;
|
|
4
|
-
const crypto_1 = require("crypto");
|
|
5
|
-
class UnmeshedCommonUtils {
|
|
6
|
-
static createSecureHash(input) {
|
|
7
|
-
try {
|
|
8
|
-
const hash = (0, crypto_1.createHash)("sha256");
|
|
9
|
-
hash.update(input, "utf8");
|
|
10
|
-
return hash.digest("hex");
|
|
11
|
-
}
|
|
12
|
-
catch (e) {
|
|
13
|
-
throw new Error("Error creating hash");
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
exports.UnmeshedCommonUtils = UnmeshedCommonUtils;
|
|
18
|
-
//# sourceMappingURL=unmeshedCommonUtils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unmeshedCommonUtils.js","sourceRoot":"","sources":["../../src/utils/unmeshedCommonUtils.ts"],"names":[],"mappings":";;;AAAA,mCAAoC;AAEpC,MAAa,mBAAmB;IAC9B,MAAM,CAAC,gBAAgB,CAAC,KAAa;QACnC,IAAI,CAAC;YACH,MAAM,IAAI,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC,CAAC;YAClC,IAAI,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;YAC3B,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QAC5B,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;IACH,CAAC;CACF;AAVD,kDAUC"}
|