@uipath/tasks-tool 1.205.0-preview.277 → 1.206.0-preview.279
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 +45 -0
- package/dist/{folder-picker-interactive-2x6yr0wh.js → folder-picker-interactive-41htawa4.js} +33 -33
- package/dist/{folder-resolver-m2j9csxn.js → folder-resolver-t2555k5b.js} +9 -10
- package/dist/{getMachineId-bsd-67w37xtj.js → getMachineId-bsd-hr7dy73y.js} +3 -3
- package/dist/{getMachineId-darwin-4g3xfpfp.js → getMachineId-darwin-k0c7ykqv.js} +3 -3
- package/dist/{getMachineId-linux-a4p6fb9w.js → getMachineId-linux-f0m4gd78.js} +2 -2
- package/dist/{getMachineId-unsupported-77w362eh.js → getMachineId-unsupported-e99prk6h.js} +2 -2
- package/dist/{getMachineId-win-9cfxg9c8.js → getMachineId-win-zqh7yjfs.js} +3 -3
- package/dist/{index-sby22td6.js → index-nzr4mx5p.js} +2 -22
- package/dist/index.js +8 -10
- package/dist/{jmespath-231m3hyn.js → jmespath-ab6tdc42.js} +1 -1
- package/dist/{js-yaml-88tdqrtd.js → js-yaml-a2bk27p6.js} +1 -3
- package/dist/{tool-bndhpxxj.js → tool-4b88bsfh.js} +30 -30
- package/dist/{tool-d1s45g5s.js → tool-cw0a0mp6.js} +1687 -1302
- package/dist/{tool-s6dm918n.js → tool-df3kr747.js} +1042 -549
- package/dist/{tool-1de529jm.js → tool-epsr41wx.js} +12 -3
- package/dist/{tool-2czkpqb0.js → tool-ggemp2c3.js} +1 -1
- package/dist/{tool-hqtnveag.js → tool-j4cyabhz.js} +181 -11
- package/dist/tool.js +7 -9
- package/package.json +2 -2
|
@@ -1,55 +1,55 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Option,
|
|
3
|
-
OutputFormatter,
|
|
4
|
-
RESULTS,
|
|
5
2
|
catchError,
|
|
6
|
-
classifiedFailure,
|
|
7
|
-
createHiddenDeprecatedTenantOption,
|
|
8
3
|
extractErrorMessage,
|
|
9
4
|
extractErrorMessageSync,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
RESULTS,
|
|
6
|
+
classifiedFailure,
|
|
7
|
+
Option,
|
|
8
|
+
OutputFormatter,
|
|
9
|
+
processContext,
|
|
10
|
+
createHiddenDeprecatedTenantOption,
|
|
11
|
+
getAuthContext
|
|
12
|
+
} from "./tool-df3kr747.js";
|
|
13
13
|
import {
|
|
14
14
|
require_src
|
|
15
|
-
} from "./tool-
|
|
15
|
+
} from "./tool-4b88bsfh.js";
|
|
16
16
|
import {
|
|
17
|
+
__toESM,
|
|
17
18
|
__commonJS,
|
|
18
|
-
__require
|
|
19
|
-
|
|
20
|
-
} from "./tool-1de529jm.js";
|
|
19
|
+
__require
|
|
20
|
+
} from "./tool-epsr41wx.js";
|
|
21
21
|
|
|
22
22
|
// ../../node_modules/@opentelemetry/sdk-logs/node_modules/@opentelemetry/api-logs/build/src/types/LogRecord.js
|
|
23
23
|
var require_LogRecord = __commonJS(function(exports) {
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.SeverityNumber = undefined;
|
|
26
26
|
var SeverityNumber;
|
|
27
|
-
(function(
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
27
|
+
(function(SeverityNumber) {
|
|
28
|
+
SeverityNumber[SeverityNumber["UNSPECIFIED"] = 0] = "UNSPECIFIED";
|
|
29
|
+
SeverityNumber[SeverityNumber["TRACE"] = 1] = "TRACE";
|
|
30
|
+
SeverityNumber[SeverityNumber["TRACE2"] = 2] = "TRACE2";
|
|
31
|
+
SeverityNumber[SeverityNumber["TRACE3"] = 3] = "TRACE3";
|
|
32
|
+
SeverityNumber[SeverityNumber["TRACE4"] = 4] = "TRACE4";
|
|
33
|
+
SeverityNumber[SeverityNumber["DEBUG"] = 5] = "DEBUG";
|
|
34
|
+
SeverityNumber[SeverityNumber["DEBUG2"] = 6] = "DEBUG2";
|
|
35
|
+
SeverityNumber[SeverityNumber["DEBUG3"] = 7] = "DEBUG3";
|
|
36
|
+
SeverityNumber[SeverityNumber["DEBUG4"] = 8] = "DEBUG4";
|
|
37
|
+
SeverityNumber[SeverityNumber["INFO"] = 9] = "INFO";
|
|
38
|
+
SeverityNumber[SeverityNumber["INFO2"] = 10] = "INFO2";
|
|
39
|
+
SeverityNumber[SeverityNumber["INFO3"] = 11] = "INFO3";
|
|
40
|
+
SeverityNumber[SeverityNumber["INFO4"] = 12] = "INFO4";
|
|
41
|
+
SeverityNumber[SeverityNumber["WARN"] = 13] = "WARN";
|
|
42
|
+
SeverityNumber[SeverityNumber["WARN2"] = 14] = "WARN2";
|
|
43
|
+
SeverityNumber[SeverityNumber["WARN3"] = 15] = "WARN3";
|
|
44
|
+
SeverityNumber[SeverityNumber["WARN4"] = 16] = "WARN4";
|
|
45
|
+
SeverityNumber[SeverityNumber["ERROR"] = 17] = "ERROR";
|
|
46
|
+
SeverityNumber[SeverityNumber["ERROR2"] = 18] = "ERROR2";
|
|
47
|
+
SeverityNumber[SeverityNumber["ERROR3"] = 19] = "ERROR3";
|
|
48
|
+
SeverityNumber[SeverityNumber["ERROR4"] = 20] = "ERROR4";
|
|
49
|
+
SeverityNumber[SeverityNumber["FATAL"] = 21] = "FATAL";
|
|
50
|
+
SeverityNumber[SeverityNumber["FATAL2"] = 22] = "FATAL2";
|
|
51
|
+
SeverityNumber[SeverityNumber["FATAL3"] = 23] = "FATAL3";
|
|
52
|
+
SeverityNumber[SeverityNumber["FATAL4"] = 24] = "FATAL4";
|
|
53
53
|
})(SeverityNumber = exports.SeverityNumber || (exports.SeverityNumber = {}));
|
|
54
54
|
});
|
|
55
55
|
|
|
@@ -2453,9 +2453,9 @@ var require_ExportResult = __commonJS(function(exports) {
|
|
|
2453
2453
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2454
2454
|
exports.ExportResultCode = undefined;
|
|
2455
2455
|
var ExportResultCode;
|
|
2456
|
-
(function(
|
|
2457
|
-
|
|
2458
|
-
|
|
2456
|
+
(function(ExportResultCode) {
|
|
2457
|
+
ExportResultCode[ExportResultCode["SUCCESS"] = 0] = "SUCCESS";
|
|
2458
|
+
ExportResultCode[ExportResultCode["FAILED"] = 1] = "FAILED";
|
|
2459
2459
|
})(ExportResultCode = exports.ExportResultCode || (exports.ExportResultCode = {}));
|
|
2460
2460
|
});
|
|
2461
2461
|
|
|
@@ -2707,8 +2707,8 @@ var require_rpc_metadata = __commonJS(function(exports) {
|
|
|
2707
2707
|
var api_1 = require_src();
|
|
2708
2708
|
var RPC_METADATA_KEY = (0, api_1.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA");
|
|
2709
2709
|
var RPCType;
|
|
2710
|
-
(function(
|
|
2711
|
-
|
|
2710
|
+
(function(RPCType) {
|
|
2711
|
+
RPCType["HTTP"] = "http";
|
|
2712
2712
|
})(RPCType = exports.RPCType || (exports.RPCType = {}));
|
|
2713
2713
|
function setRPCMetadata(context, meta) {
|
|
2714
2714
|
return context.setValue(RPC_METADATA_KEY, meta);
|
|
@@ -3577,19 +3577,19 @@ var require_getMachineId = __commonJS(function(exports) {
|
|
|
3577
3577
|
if (!getMachineIdImpl) {
|
|
3578
3578
|
switch (process2.platform) {
|
|
3579
3579
|
case "darwin":
|
|
3580
|
-
getMachineIdImpl = (await import("./getMachineId-darwin-
|
|
3580
|
+
getMachineIdImpl = (await import("./getMachineId-darwin-k0c7ykqv.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3581
3581
|
break;
|
|
3582
3582
|
case "linux":
|
|
3583
|
-
getMachineIdImpl = (await import("./getMachineId-linux-
|
|
3583
|
+
getMachineIdImpl = (await import("./getMachineId-linux-f0m4gd78.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3584
3584
|
break;
|
|
3585
3585
|
case "freebsd":
|
|
3586
|
-
getMachineIdImpl = (await import("./getMachineId-bsd-
|
|
3586
|
+
getMachineIdImpl = (await import("./getMachineId-bsd-hr7dy73y.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3587
3587
|
break;
|
|
3588
3588
|
case "win32":
|
|
3589
|
-
getMachineIdImpl = (await import("./getMachineId-win-
|
|
3589
|
+
getMachineIdImpl = (await import("./getMachineId-win-zqh7yjfs.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3590
3590
|
break;
|
|
3591
3591
|
default:
|
|
3592
|
-
getMachineIdImpl = (await import("./getMachineId-unsupported-
|
|
3592
|
+
getMachineIdImpl = (await import("./getMachineId-unsupported-e99prk6h.js").then((m)=>__toESM(m.default))).getMachineId;
|
|
3593
3593
|
break;
|
|
3594
3594
|
}
|
|
3595
3595
|
}
|
|
@@ -3697,8 +3697,8 @@ var require_ProcessDetector = __commonJS(function(exports) {
|
|
|
3697
3697
|
attributes[semconv_1.ATTR_PROCESS_COMMAND] = process.argv[1];
|
|
3698
3698
|
}
|
|
3699
3699
|
try {
|
|
3700
|
-
const
|
|
3701
|
-
attributes[semconv_1.ATTR_PROCESS_OWNER] =
|
|
3700
|
+
const userInfo2 = os.userInfo();
|
|
3701
|
+
attributes[semconv_1.ATTR_PROCESS_OWNER] = userInfo2.username;
|
|
3702
3702
|
} catch (e) {
|
|
3703
3703
|
api_1.diag.debug(`error obtaining process owner: ${e}`);
|
|
3704
3704
|
}
|
|
@@ -4503,7 +4503,7 @@ var package_default = {
|
|
|
4503
4503
|
name: "@uipath/tasks-tool",
|
|
4504
4504
|
author: "UiPath",
|
|
4505
4505
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
4506
|
-
version: "1.
|
|
4506
|
+
version: "1.206.0-preview.279",
|
|
4507
4507
|
description: "Manage Action Center tasks.",
|
|
4508
4508
|
publishConfig: {
|
|
4509
4509
|
registry: "https://npm.pkg.github.com/"
|
|
@@ -4521,6 +4521,7 @@ var package_default = {
|
|
|
4521
4521
|
],
|
|
4522
4522
|
scripts: {
|
|
4523
4523
|
build: "bun ../../tools/build-tool.ts",
|
|
4524
|
+
typecheck: "tsc --noEmit",
|
|
4524
4525
|
test: "vitest run",
|
|
4525
4526
|
"test:coverage": "vitest run --coverage",
|
|
4526
4527
|
lint: "biome check .",
|
|
@@ -5213,10 +5214,10 @@ function prefixIssues(path, issues) {
|
|
|
5213
5214
|
function unwrapMessage(message) {
|
|
5214
5215
|
return typeof message === "string" ? message : message?.message;
|
|
5215
5216
|
}
|
|
5216
|
-
function finalizeIssue(iss, ctx,
|
|
5217
|
+
function finalizeIssue(iss, ctx, config) {
|
|
5217
5218
|
const full = { ...iss, path: iss.path ?? [] };
|
|
5218
5219
|
if (!iss.message) {
|
|
5219
|
-
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(
|
|
5220
|
+
const message = unwrapMessage(iss.inst?._zod.def?.error?.(iss)) ?? unwrapMessage(ctx?.error?.(iss)) ?? unwrapMessage(config.customError?.(iss)) ?? unwrapMessage(config.localeError?.(iss)) ?? "Invalid input";
|
|
5220
5221
|
full.message = message;
|
|
5221
5222
|
}
|
|
5222
5223
|
delete full.inst;
|
|
@@ -5263,7 +5264,7 @@ var initializer$1 = (inst, def) => {
|
|
|
5263
5264
|
};
|
|
5264
5265
|
var $ZodError = $constructor("$ZodError", initializer$1);
|
|
5265
5266
|
var $ZodRealError = $constructor("$ZodError", initializer$1, { Parent: Error });
|
|
5266
|
-
function flattenError(error, mapper = (
|
|
5267
|
+
function flattenError(error, mapper = (issue) => issue.message) {
|
|
5267
5268
|
const fieldErrors = {};
|
|
5268
5269
|
const formErrors = [];
|
|
5269
5270
|
for (const sub of error.issues) {
|
|
@@ -5276,29 +5277,29 @@ function flattenError(error, mapper = (issue2) => issue2.message) {
|
|
|
5276
5277
|
}
|
|
5277
5278
|
return { formErrors, fieldErrors };
|
|
5278
5279
|
}
|
|
5279
|
-
function formatError(error, mapper = (
|
|
5280
|
+
function formatError(error, mapper = (issue) => issue.message) {
|
|
5280
5281
|
const fieldErrors = { _errors: [] };
|
|
5281
|
-
const processError = (
|
|
5282
|
-
for (const
|
|
5283
|
-
if (
|
|
5284
|
-
|
|
5285
|
-
} else if (
|
|
5286
|
-
processError({ issues:
|
|
5287
|
-
} else if (
|
|
5288
|
-
processError({ issues:
|
|
5289
|
-
} else if (
|
|
5290
|
-
fieldErrors._errors.push(mapper(
|
|
5282
|
+
const processError = (error) => {
|
|
5283
|
+
for (const issue of error.issues) {
|
|
5284
|
+
if (issue.code === "invalid_union" && issue.errors.length) {
|
|
5285
|
+
issue.errors.map((issues) => processError({ issues }));
|
|
5286
|
+
} else if (issue.code === "invalid_key") {
|
|
5287
|
+
processError({ issues: issue.issues });
|
|
5288
|
+
} else if (issue.code === "invalid_element") {
|
|
5289
|
+
processError({ issues: issue.issues });
|
|
5290
|
+
} else if (issue.path.length === 0) {
|
|
5291
|
+
fieldErrors._errors.push(mapper(issue));
|
|
5291
5292
|
} else {
|
|
5292
5293
|
let curr = fieldErrors;
|
|
5293
5294
|
let i = 0;
|
|
5294
|
-
while (i <
|
|
5295
|
-
const el =
|
|
5296
|
-
const terminal = i ===
|
|
5295
|
+
while (i < issue.path.length) {
|
|
5296
|
+
const el = issue.path[i];
|
|
5297
|
+
const terminal = i === issue.path.length - 1;
|
|
5297
5298
|
if (!terminal) {
|
|
5298
5299
|
curr[el] = curr[el] || { _errors: [] };
|
|
5299
5300
|
} else {
|
|
5300
5301
|
curr[el] = curr[el] || { _errors: [] };
|
|
5301
|
-
curr[el]._errors.push(mapper(
|
|
5302
|
+
curr[el]._errors.push(mapper(issue));
|
|
5302
5303
|
}
|
|
5303
5304
|
curr = curr[el];
|
|
5304
5305
|
i++;
|
|
@@ -5450,10 +5451,10 @@ var $ZodCheckMaxLength = /* @__PURE__ */ $constructor("$ZodCheckMaxLength", (ins
|
|
|
5450
5451
|
const val = payload.value;
|
|
5451
5452
|
return !nullish(val) && val.length !== undefined;
|
|
5452
5453
|
});
|
|
5453
|
-
inst._zod.onattach.push((
|
|
5454
|
-
const curr =
|
|
5454
|
+
inst._zod.onattach.push((inst) => {
|
|
5455
|
+
const curr = inst._zod.bag.maximum ?? Number.POSITIVE_INFINITY;
|
|
5455
5456
|
if (def.maximum < curr)
|
|
5456
|
-
|
|
5457
|
+
inst._zod.bag.maximum = def.maximum;
|
|
5457
5458
|
});
|
|
5458
5459
|
inst._zod.check = (payload) => {
|
|
5459
5460
|
const input = payload.value;
|
|
@@ -5479,10 +5480,10 @@ var $ZodCheckMinLength = /* @__PURE__ */ $constructor("$ZodCheckMinLength", (ins
|
|
|
5479
5480
|
const val = payload.value;
|
|
5480
5481
|
return !nullish(val) && val.length !== undefined;
|
|
5481
5482
|
});
|
|
5482
|
-
inst._zod.onattach.push((
|
|
5483
|
-
const curr =
|
|
5483
|
+
inst._zod.onattach.push((inst) => {
|
|
5484
|
+
const curr = inst._zod.bag.minimum ?? Number.NEGATIVE_INFINITY;
|
|
5484
5485
|
if (def.minimum > curr)
|
|
5485
|
-
|
|
5486
|
+
inst._zod.bag.minimum = def.minimum;
|
|
5486
5487
|
});
|
|
5487
5488
|
inst._zod.check = (payload) => {
|
|
5488
5489
|
const input = payload.value;
|
|
@@ -5508,8 +5509,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
5508
5509
|
const val = payload.value;
|
|
5509
5510
|
return !nullish(val) && val.length !== undefined;
|
|
5510
5511
|
});
|
|
5511
|
-
inst._zod.onattach.push((
|
|
5512
|
-
const bag =
|
|
5512
|
+
inst._zod.onattach.push((inst) => {
|
|
5513
|
+
const bag = inst._zod.bag;
|
|
5513
5514
|
bag.minimum = def.length;
|
|
5514
5515
|
bag.maximum = def.length;
|
|
5515
5516
|
bag.length = def.length;
|
|
@@ -5535,8 +5536,8 @@ var $ZodCheckLengthEquals = /* @__PURE__ */ $constructor("$ZodCheckLengthEquals"
|
|
|
5535
5536
|
var $ZodCheckStringFormat = /* @__PURE__ */ $constructor("$ZodCheckStringFormat", (inst, def) => {
|
|
5536
5537
|
var _a, _b;
|
|
5537
5538
|
$ZodCheck.init(inst, def);
|
|
5538
|
-
inst._zod.onattach.push((
|
|
5539
|
-
const bag =
|
|
5539
|
+
inst._zod.onattach.push((inst) => {
|
|
5540
|
+
const bag = inst._zod.bag;
|
|
5540
5541
|
bag.format = def.format;
|
|
5541
5542
|
if (def.pattern) {
|
|
5542
5543
|
bag.patterns ?? (bag.patterns = new Set);
|
|
@@ -5591,8 +5592,8 @@ var $ZodCheckIncludes = /* @__PURE__ */ $constructor("$ZodCheckIncludes", (inst,
|
|
|
5591
5592
|
const escapedRegex = escapeRegex(def.includes);
|
|
5592
5593
|
const pattern = new RegExp(typeof def.position === "number" ? `^.{${def.position}}${escapedRegex}` : escapedRegex);
|
|
5593
5594
|
def.pattern = pattern;
|
|
5594
|
-
inst._zod.onattach.push((
|
|
5595
|
-
const bag =
|
|
5595
|
+
inst._zod.onattach.push((inst) => {
|
|
5596
|
+
const bag = inst._zod.bag;
|
|
5596
5597
|
bag.patterns ?? (bag.patterns = new Set);
|
|
5597
5598
|
bag.patterns.add(pattern);
|
|
5598
5599
|
});
|
|
@@ -5614,8 +5615,8 @@ var $ZodCheckStartsWith = /* @__PURE__ */ $constructor("$ZodCheckStartsWith", (i
|
|
|
5614
5615
|
$ZodCheck.init(inst, def);
|
|
5615
5616
|
const pattern = new RegExp(`^${escapeRegex(def.prefix)}.*`);
|
|
5616
5617
|
def.pattern ?? (def.pattern = pattern);
|
|
5617
|
-
inst._zod.onattach.push((
|
|
5618
|
-
const bag =
|
|
5618
|
+
inst._zod.onattach.push((inst) => {
|
|
5619
|
+
const bag = inst._zod.bag;
|
|
5619
5620
|
bag.patterns ?? (bag.patterns = new Set);
|
|
5620
5621
|
bag.patterns.add(pattern);
|
|
5621
5622
|
});
|
|
@@ -5637,8 +5638,8 @@ var $ZodCheckEndsWith = /* @__PURE__ */ $constructor("$ZodCheckEndsWith", (inst,
|
|
|
5637
5638
|
$ZodCheck.init(inst, def);
|
|
5638
5639
|
const pattern = new RegExp(`.*${escapeRegex(def.suffix)}$`);
|
|
5639
5640
|
def.pattern ?? (def.pattern = pattern);
|
|
5640
|
-
inst._zod.onattach.push((
|
|
5641
|
-
const bag =
|
|
5641
|
+
inst._zod.onattach.push((inst) => {
|
|
5642
|
+
const bag = inst._zod.bag;
|
|
5642
5643
|
bag.patterns ?? (bag.patterns = new Set);
|
|
5643
5644
|
bag.patterns.add(pattern);
|
|
5644
5645
|
});
|
|
@@ -5725,10 +5726,10 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5725
5726
|
inst._zod.run = inst._zod.parse;
|
|
5726
5727
|
});
|
|
5727
5728
|
} else {
|
|
5728
|
-
const runChecks = (payload,
|
|
5729
|
+
const runChecks = (payload, checks, ctx) => {
|
|
5729
5730
|
let isAborted = aborted(payload);
|
|
5730
5731
|
let asyncResult;
|
|
5731
|
-
for (const ch of
|
|
5732
|
+
for (const ch of checks) {
|
|
5732
5733
|
if (ch._zod.def.when) {
|
|
5733
5734
|
const shouldRun = ch._zod.def.when(payload);
|
|
5734
5735
|
if (!shouldRun)
|
|
@@ -5774,7 +5775,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5774
5775
|
if (checkResult instanceof Promise) {
|
|
5775
5776
|
if (ctx.async === false)
|
|
5776
5777
|
throw new $ZodAsyncError;
|
|
5777
|
-
return checkResult.then((
|
|
5778
|
+
return checkResult.then((checkResult) => inst._zod.parse(checkResult, ctx));
|
|
5778
5779
|
}
|
|
5779
5780
|
return inst._zod.parse(checkResult, ctx);
|
|
5780
5781
|
};
|
|
@@ -5785,8 +5786,8 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5785
5786
|
if (ctx.direction === "backward") {
|
|
5786
5787
|
const canary = inst._zod.parse({ value: payload.value, issues: [] }, { ...ctx, skipChecks: true });
|
|
5787
5788
|
if (canary instanceof Promise) {
|
|
5788
|
-
return canary.then((
|
|
5789
|
-
return handleCanaryResult(
|
|
5789
|
+
return canary.then((canary) => {
|
|
5790
|
+
return handleCanaryResult(canary, payload, ctx);
|
|
5790
5791
|
});
|
|
5791
5792
|
}
|
|
5792
5793
|
return handleCanaryResult(canary, payload, ctx);
|
|
@@ -5795,7 +5796,7 @@ var $ZodType = /* @__PURE__ */ $constructor("$ZodType", (inst, def) => {
|
|
|
5795
5796
|
if (result instanceof Promise) {
|
|
5796
5797
|
if (ctx.async === false)
|
|
5797
5798
|
throw new $ZodAsyncError;
|
|
5798
|
-
return result.then((
|
|
5799
|
+
return result.then((result) => runChecks(result, checks, ctx));
|
|
5799
5800
|
}
|
|
5800
5801
|
return runChecks(result, checks, ctx);
|
|
5801
5802
|
};
|
|
@@ -5820,7 +5821,7 @@ var $ZodString = /* @__PURE__ */ $constructor("$ZodString", (inst, def) => {
|
|
|
5820
5821
|
if (def.coerce)
|
|
5821
5822
|
try {
|
|
5822
5823
|
payload.value = String(payload.value);
|
|
5823
|
-
} catch (
|
|
5824
|
+
} catch (_) {}
|
|
5824
5825
|
if (typeof payload.value === "string")
|
|
5825
5826
|
return payload;
|
|
5826
5827
|
payload.issues.push({
|
|
@@ -6045,8 +6046,8 @@ var $ZodBase64 = /* @__PURE__ */ $constructor("$ZodBase64", (inst, def) => {
|
|
|
6045
6046
|
function isValidBase64URL(data) {
|
|
6046
6047
|
if (!base64url.test(data))
|
|
6047
6048
|
return false;
|
|
6048
|
-
const
|
|
6049
|
-
const padded =
|
|
6049
|
+
const base64 = data.replace(/[-_]/g, (c) => c === "-" ? "+" : "/");
|
|
6050
|
+
const padded = base64.padEnd(Math.ceil(base64.length / 4) * 4, "=");
|
|
6050
6051
|
return isValidBase64(padded);
|
|
6051
6052
|
}
|
|
6052
6053
|
var $ZodBase64URL = /* @__PURE__ */ $constructor("$ZodBase64URL", (inst, def) => {
|
|
@@ -6167,7 +6168,7 @@ var $ZodArray = /* @__PURE__ */ $constructor("$ZodArray", (inst, def) => {
|
|
|
6167
6168
|
issues: []
|
|
6168
6169
|
}, ctx);
|
|
6169
6170
|
if (result instanceof Promise) {
|
|
6170
|
-
proms.push(result.then((
|
|
6171
|
+
proms.push(result.then((result) => handleArrayResult(result, payload, i)));
|
|
6171
6172
|
} else {
|
|
6172
6173
|
handleArrayResult(result, payload, i);
|
|
6173
6174
|
}
|
|
@@ -6224,7 +6225,7 @@ function handleCatchall(proms, input, payload, ctx, def, inst) {
|
|
|
6224
6225
|
}
|
|
6225
6226
|
const r = _catchall.run({ value: input[key], issues: [] }, ctx);
|
|
6226
6227
|
if (r instanceof Promise) {
|
|
6227
|
-
proms.push(r.then((
|
|
6228
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
|
|
6228
6229
|
} else {
|
|
6229
6230
|
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
6230
6231
|
}
|
|
@@ -6295,7 +6296,7 @@ var $ZodObject = /* @__PURE__ */ $constructor("$ZodObject", (inst, def) => {
|
|
|
6295
6296
|
const isOptionalOut = el._zod.optout === "optional";
|
|
6296
6297
|
const r = el._zod.run({ value: input[key], issues: [] }, ctx);
|
|
6297
6298
|
if (r instanceof Promise) {
|
|
6298
|
-
proms.push(r.then((
|
|
6299
|
+
proms.push(r.then((r) => handlePropertyResult(r, payload, key, input, isOptionalOut)));
|
|
6299
6300
|
} else {
|
|
6300
6301
|
handlePropertyResult(r, payload, key, input, isOptionalOut);
|
|
6301
6302
|
}
|
|
@@ -6466,8 +6467,8 @@ var $ZodUnion = /* @__PURE__ */ $constructor("$ZodUnion", (inst, def) => {
|
|
|
6466
6467
|
}
|
|
6467
6468
|
if (!async)
|
|
6468
6469
|
return handleUnionResults(results, payload, inst, ctx);
|
|
6469
|
-
return Promise.all(results).then((
|
|
6470
|
-
return handleUnionResults(
|
|
6470
|
+
return Promise.all(results).then((results) => {
|
|
6471
|
+
return handleUnionResults(results, payload, inst, ctx);
|
|
6471
6472
|
});
|
|
6472
6473
|
};
|
|
6473
6474
|
});
|
|
@@ -6479,8 +6480,8 @@ var $ZodIntersection = /* @__PURE__ */ $constructor("$ZodIntersection", (inst, d
|
|
|
6479
6480
|
const right = def.right._zod.run({ value: input, issues: [] }, ctx);
|
|
6480
6481
|
const async = left instanceof Promise || right instanceof Promise;
|
|
6481
6482
|
if (async) {
|
|
6482
|
-
return Promise.all([left, right]).then(([
|
|
6483
|
-
return handleIntersectionResults(payload,
|
|
6483
|
+
return Promise.all([left, right]).then(([left, right]) => {
|
|
6484
|
+
return handleIntersectionResults(payload, left, right);
|
|
6484
6485
|
});
|
|
6485
6486
|
}
|
|
6486
6487
|
return handleIntersectionResults(payload, left, right);
|
|
@@ -6598,8 +6599,8 @@ var $ZodTransform = /* @__PURE__ */ $constructor("$ZodTransform", (inst, def) =>
|
|
|
6598
6599
|
const _out = def.transform(payload.value, payload);
|
|
6599
6600
|
if (ctx.async) {
|
|
6600
6601
|
const output = _out instanceof Promise ? _out : Promise.resolve(_out);
|
|
6601
|
-
return output.then((
|
|
6602
|
-
payload.value =
|
|
6602
|
+
return output.then((output) => {
|
|
6603
|
+
payload.value = output;
|
|
6603
6604
|
return payload;
|
|
6604
6605
|
});
|
|
6605
6606
|
}
|
|
@@ -6679,7 +6680,7 @@ var $ZodDefault = /* @__PURE__ */ $constructor("$ZodDefault", (inst, def) => {
|
|
|
6679
6680
|
}
|
|
6680
6681
|
const result = def.innerType._zod.run(payload, ctx);
|
|
6681
6682
|
if (result instanceof Promise) {
|
|
6682
|
-
return result.then((
|
|
6683
|
+
return result.then((result) => handleDefaultResult(result, def));
|
|
6683
6684
|
}
|
|
6684
6685
|
return handleDefaultResult(result, def);
|
|
6685
6686
|
};
|
|
@@ -6713,7 +6714,7 @@ var $ZodNonOptional = /* @__PURE__ */ $constructor("$ZodNonOptional", (inst, def
|
|
|
6713
6714
|
inst._zod.parse = (payload, ctx) => {
|
|
6714
6715
|
const result = def.innerType._zod.run(payload, ctx);
|
|
6715
6716
|
if (result instanceof Promise) {
|
|
6716
|
-
return result.then((
|
|
6717
|
+
return result.then((result) => handleNonOptionalResult(result, inst));
|
|
6717
6718
|
}
|
|
6718
6719
|
return handleNonOptionalResult(result, inst);
|
|
6719
6720
|
};
|
|
@@ -6740,13 +6741,13 @@ var $ZodCatch = /* @__PURE__ */ $constructor("$ZodCatch", (inst, def) => {
|
|
|
6740
6741
|
}
|
|
6741
6742
|
const result = def.innerType._zod.run(payload, ctx);
|
|
6742
6743
|
if (result instanceof Promise) {
|
|
6743
|
-
return result.then((
|
|
6744
|
-
payload.value =
|
|
6745
|
-
if (
|
|
6744
|
+
return result.then((result) => {
|
|
6745
|
+
payload.value = result.value;
|
|
6746
|
+
if (result.issues.length) {
|
|
6746
6747
|
payload.value = def.catchValue({
|
|
6747
6748
|
...payload,
|
|
6748
6749
|
error: {
|
|
6749
|
-
issues:
|
|
6750
|
+
issues: result.issues.map((iss) => finalizeIssue(iss, ctx, config()))
|
|
6750
6751
|
},
|
|
6751
6752
|
input: payload.value
|
|
6752
6753
|
});
|
|
@@ -6779,13 +6780,13 @@ var $ZodPipe = /* @__PURE__ */ $constructor("$ZodPipe", (inst, def) => {
|
|
|
6779
6780
|
if (ctx.direction === "backward") {
|
|
6780
6781
|
const right = def.out._zod.run(payload, ctx);
|
|
6781
6782
|
if (right instanceof Promise) {
|
|
6782
|
-
return right.then((
|
|
6783
|
+
return right.then((right) => handlePipeResult(right, def.in, ctx));
|
|
6783
6784
|
}
|
|
6784
6785
|
return handlePipeResult(right, def.in, ctx);
|
|
6785
6786
|
}
|
|
6786
6787
|
const left = def.in._zod.run(payload, ctx);
|
|
6787
6788
|
if (left instanceof Promise) {
|
|
6788
|
-
return left.then((
|
|
6789
|
+
return left.then((left) => handlePipeResult(left, def.out, ctx));
|
|
6789
6790
|
}
|
|
6790
6791
|
return handlePipeResult(left, def.out, ctx);
|
|
6791
6792
|
};
|
|
@@ -6828,7 +6829,7 @@ var $ZodCustom = /* @__PURE__ */ $constructor("$ZodCustom", (inst, def) => {
|
|
|
6828
6829
|
const input = payload.value;
|
|
6829
6830
|
const r = def.fn(input);
|
|
6830
6831
|
if (r instanceof Promise) {
|
|
6831
|
-
return r.then((
|
|
6832
|
+
return r.then((r) => handleRefineResult(r, payload, input, inst));
|
|
6832
6833
|
}
|
|
6833
6834
|
handleRefineResult(r, payload, input, inst);
|
|
6834
6835
|
return;
|
|
@@ -7381,7 +7382,7 @@ function extractDefs(ctx, schema) {
|
|
|
7381
7382
|
const defsSegment = ctx.target === "draft-2020-12" ? "$defs" : "definitions";
|
|
7382
7383
|
if (ctx.external) {
|
|
7383
7384
|
const externalId = ctx.external.registry.get(entry[0])?.id;
|
|
7384
|
-
const uriGenerator = ctx.external.uri ?? ((
|
|
7385
|
+
const uriGenerator = ctx.external.uri ?? ((id) => id);
|
|
7385
7386
|
if (externalId) {
|
|
7386
7387
|
return { ref: uriGenerator(externalId) };
|
|
7387
7388
|
}
|
|
@@ -7406,11 +7407,11 @@ function extractDefs(ctx, schema) {
|
|
|
7406
7407
|
seen.def = { ...seen.schema };
|
|
7407
7408
|
if (defId)
|
|
7408
7409
|
seen.defId = defId;
|
|
7409
|
-
const
|
|
7410
|
-
for (const key in
|
|
7411
|
-
delete
|
|
7410
|
+
const schema = seen.schema;
|
|
7411
|
+
for (const key in schema) {
|
|
7412
|
+
delete schema[key];
|
|
7412
7413
|
}
|
|
7413
|
-
|
|
7414
|
+
schema.$ref = ref;
|
|
7414
7415
|
};
|
|
7415
7416
|
if (ctx.cycles === "throw") {
|
|
7416
7417
|
for (const entry of ctx.seen.entries()) {
|
|
@@ -7458,8 +7459,8 @@ function finalize(ctx, schema) {
|
|
|
7458
7459
|
const seen = ctx.seen.get(zodSchema);
|
|
7459
7460
|
if (seen.ref === null)
|
|
7460
7461
|
return;
|
|
7461
|
-
const
|
|
7462
|
-
const _cached = { ...
|
|
7462
|
+
const schema = seen.def ?? seen.schema;
|
|
7463
|
+
const _cached = { ...schema };
|
|
7463
7464
|
const ref = seen.ref;
|
|
7464
7465
|
seen.ref = null;
|
|
7465
7466
|
if (ref) {
|
|
@@ -7467,28 +7468,28 @@ function finalize(ctx, schema) {
|
|
|
7467
7468
|
const refSeen = ctx.seen.get(ref);
|
|
7468
7469
|
const refSchema = refSeen.schema;
|
|
7469
7470
|
if (refSchema.$ref && (ctx.target === "draft-07" || ctx.target === "draft-04" || ctx.target === "openapi-3.0")) {
|
|
7470
|
-
|
|
7471
|
-
|
|
7471
|
+
schema.allOf = schema.allOf ?? [];
|
|
7472
|
+
schema.allOf.push(refSchema);
|
|
7472
7473
|
} else {
|
|
7473
|
-
Object.assign(
|
|
7474
|
+
Object.assign(schema, refSchema);
|
|
7474
7475
|
}
|
|
7475
|
-
Object.assign(
|
|
7476
|
+
Object.assign(schema, _cached);
|
|
7476
7477
|
const isParentRef = zodSchema._zod.parent === ref;
|
|
7477
7478
|
if (isParentRef) {
|
|
7478
|
-
for (const key in
|
|
7479
|
+
for (const key in schema) {
|
|
7479
7480
|
if (key === "$ref" || key === "allOf")
|
|
7480
7481
|
continue;
|
|
7481
7482
|
if (!(key in _cached)) {
|
|
7482
|
-
delete
|
|
7483
|
+
delete schema[key];
|
|
7483
7484
|
}
|
|
7484
7485
|
}
|
|
7485
7486
|
}
|
|
7486
7487
|
if (refSchema.$ref && refSeen.def) {
|
|
7487
|
-
for (const key in
|
|
7488
|
+
for (const key in schema) {
|
|
7488
7489
|
if (key === "$ref" || key === "allOf")
|
|
7489
7490
|
continue;
|
|
7490
|
-
if (key in refSeen.def && JSON.stringify(
|
|
7491
|
-
delete
|
|
7491
|
+
if (key in refSeen.def && JSON.stringify(schema[key]) === JSON.stringify(refSeen.def[key])) {
|
|
7492
|
+
delete schema[key];
|
|
7492
7493
|
}
|
|
7493
7494
|
}
|
|
7494
7495
|
}
|
|
@@ -7498,13 +7499,13 @@ function finalize(ctx, schema) {
|
|
|
7498
7499
|
flattenRef(parent);
|
|
7499
7500
|
const parentSeen = ctx.seen.get(parent);
|
|
7500
7501
|
if (parentSeen?.schema.$ref) {
|
|
7501
|
-
|
|
7502
|
+
schema.$ref = parentSeen.schema.$ref;
|
|
7502
7503
|
if (parentSeen.def) {
|
|
7503
|
-
for (const key in
|
|
7504
|
+
for (const key in schema) {
|
|
7504
7505
|
if (key === "$ref" || key === "allOf")
|
|
7505
7506
|
continue;
|
|
7506
|
-
if (key in parentSeen.def && JSON.stringify(
|
|
7507
|
-
delete
|
|
7507
|
+
if (key in parentSeen.def && JSON.stringify(schema[key]) === JSON.stringify(parentSeen.def[key])) {
|
|
7508
|
+
delete schema[key];
|
|
7508
7509
|
}
|
|
7509
7510
|
}
|
|
7510
7511
|
}
|
|
@@ -7512,7 +7513,7 @@ function finalize(ctx, schema) {
|
|
|
7512
7513
|
}
|
|
7513
7514
|
ctx.override({
|
|
7514
7515
|
zodSchema,
|
|
7515
|
-
jsonSchema:
|
|
7516
|
+
jsonSchema: schema,
|
|
7516
7517
|
path: seen.path ?? []
|
|
7517
7518
|
});
|
|
7518
7519
|
};
|
|
@@ -7881,14 +7882,14 @@ var initializer = (inst, issues) => {
|
|
|
7881
7882
|
value: (mapper) => flattenError(inst, mapper)
|
|
7882
7883
|
},
|
|
7883
7884
|
addIssue: {
|
|
7884
|
-
value: (
|
|
7885
|
-
inst.issues.push(
|
|
7885
|
+
value: (issue) => {
|
|
7886
|
+
inst.issues.push(issue);
|
|
7886
7887
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
7887
7888
|
}
|
|
7888
7889
|
},
|
|
7889
7890
|
addIssues: {
|
|
7890
|
-
value: (
|
|
7891
|
-
inst.issues.push(...
|
|
7891
|
+
value: (issues) => {
|
|
7892
|
+
inst.issues.push(...issues);
|
|
7892
7893
|
inst.message = JSON.stringify(inst.issues, jsonStringifyReplacer, 2);
|
|
7893
7894
|
}
|
|
7894
7895
|
},
|
|
@@ -7937,7 +7938,7 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
7937
7938
|
});
|
|
7938
7939
|
};
|
|
7939
7940
|
inst.with = inst.check;
|
|
7940
|
-
inst.clone = (
|
|
7941
|
+
inst.clone = (def, params) => clone(inst, def, params);
|
|
7941
7942
|
inst.brand = () => inst;
|
|
7942
7943
|
inst.register = (reg, meta) => {
|
|
7943
7944
|
reg.add(inst, meta);
|
|
@@ -7968,8 +7969,8 @@ var ZodType = /* @__PURE__ */ $constructor("ZodType", (inst, def) => {
|
|
|
7968
7969
|
inst.or = (arg) => union([inst, arg]);
|
|
7969
7970
|
inst.and = (arg) => intersection(inst, arg);
|
|
7970
7971
|
inst.transform = (tx) => pipe(inst, transform(tx));
|
|
7971
|
-
inst.default = (
|
|
7972
|
-
inst.prefault = (
|
|
7972
|
+
inst.default = (def) => _default(inst, def);
|
|
7973
|
+
inst.prefault = (def) => prefault(inst, def);
|
|
7973
7974
|
inst.catch = (params) => _catch(inst, params);
|
|
7974
7975
|
inst.pipe = (target) => pipe(inst, target);
|
|
7975
7976
|
inst.readonly = () => readonly(inst);
|
|
@@ -8300,8 +8301,8 @@ var ZodTransform = /* @__PURE__ */ $constructor("ZodTransform", (inst, def) => {
|
|
|
8300
8301
|
};
|
|
8301
8302
|
const output = def.transform(payload.value, payload);
|
|
8302
8303
|
if (output instanceof Promise) {
|
|
8303
|
-
return output.then((
|
|
8304
|
-
payload.value =
|
|
8304
|
+
return output.then((output) => {
|
|
8305
|
+
payload.value = output;
|
|
8305
8306
|
return payload;
|
|
8306
8307
|
});
|
|
8307
8308
|
}
|
|
@@ -8513,11 +8514,11 @@ function getExpiryMs(expiresAt) {
|
|
|
8513
8514
|
const ms = expiresAt instanceof Date ? expiresAt.getTime() : new Date(expiresAt).getTime();
|
|
8514
8515
|
return Number.isNaN(ms) ? 0 : ms;
|
|
8515
8516
|
}
|
|
8516
|
-
function hasOAuthConfig(
|
|
8517
|
-
return Boolean(
|
|
8517
|
+
function hasOAuthConfig(config) {
|
|
8518
|
+
return Boolean(config.clientId && config.redirectUri && config.scope);
|
|
8518
8519
|
}
|
|
8519
|
-
function hasSecretConfig(
|
|
8520
|
-
return Boolean(
|
|
8520
|
+
function hasSecretConfig(config) {
|
|
8521
|
+
return Boolean(config.secret);
|
|
8521
8522
|
}
|
|
8522
8523
|
|
|
8523
8524
|
class UiPathError extends Error {
|
|
@@ -8660,78 +8661,78 @@ class NetworkError extends UiPathError {
|
|
|
8660
8661
|
}
|
|
8661
8662
|
}
|
|
8662
8663
|
var TaskUserType;
|
|
8663
|
-
(function(
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8664
|
+
(function(TaskUserType) {
|
|
8665
|
+
TaskUserType["User"] = "User";
|
|
8666
|
+
TaskUserType["Robot"] = "Robot";
|
|
8667
|
+
TaskUserType["DirectoryUser"] = "DirectoryUser";
|
|
8668
|
+
TaskUserType["DirectoryGroup"] = "DirectoryGroup";
|
|
8669
|
+
TaskUserType["DirectoryRobot"] = "DirectoryRobot";
|
|
8670
|
+
TaskUserType["DirectoryExternalApplication"] = "DirectoryExternalApplication";
|
|
8670
8671
|
})(TaskUserType || (TaskUserType = {}));
|
|
8671
8672
|
var TaskType;
|
|
8672
|
-
(function(
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8673
|
+
(function(TaskType) {
|
|
8674
|
+
TaskType["Form"] = "FormTask";
|
|
8675
|
+
TaskType["External"] = "ExternalTask";
|
|
8676
|
+
TaskType["App"] = "AppTask";
|
|
8677
|
+
TaskType["DocumentValidation"] = "DocumentValidationTask";
|
|
8678
|
+
TaskType["DocumentClassification"] = "DocumentClassificationTask";
|
|
8679
|
+
TaskType["DataLabeling"] = "DataLabelingTask";
|
|
8680
|
+
TaskType["QuickForm"] = "QuickFormTask";
|
|
8680
8681
|
})(TaskType || (TaskType = {}));
|
|
8681
8682
|
var TaskPriority;
|
|
8682
|
-
(function(
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8683
|
+
(function(TaskPriority) {
|
|
8684
|
+
TaskPriority["Low"] = "Low";
|
|
8685
|
+
TaskPriority["Medium"] = "Medium";
|
|
8686
|
+
TaskPriority["High"] = "High";
|
|
8687
|
+
TaskPriority["Critical"] = "Critical";
|
|
8687
8688
|
})(TaskPriority || (TaskPriority = {}));
|
|
8688
8689
|
var TaskStatus;
|
|
8689
|
-
(function(
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8690
|
+
(function(TaskStatus) {
|
|
8691
|
+
TaskStatus["Unassigned"] = "Unassigned";
|
|
8692
|
+
TaskStatus["Pending"] = "Pending";
|
|
8693
|
+
TaskStatus["Completed"] = "Completed";
|
|
8693
8694
|
})(TaskStatus || (TaskStatus = {}));
|
|
8694
8695
|
var TaskSlaCriteria;
|
|
8695
|
-
(function(
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8696
|
+
(function(TaskSlaCriteria) {
|
|
8697
|
+
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
8698
|
+
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
8699
|
+
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
8699
8700
|
})(TaskSlaCriteria || (TaskSlaCriteria = {}));
|
|
8700
8701
|
var TaskSlaStatus;
|
|
8701
|
-
(function(
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8702
|
+
(function(TaskSlaStatus) {
|
|
8703
|
+
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
8704
|
+
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
8705
|
+
TaskSlaStatus["Overdue"] = "Overdue";
|
|
8706
|
+
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
8706
8707
|
})(TaskSlaStatus || (TaskSlaStatus = {}));
|
|
8707
8708
|
var TaskSourceName;
|
|
8708
|
-
(function(
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8709
|
+
(function(TaskSourceName) {
|
|
8710
|
+
TaskSourceName["Agent"] = "Agent";
|
|
8711
|
+
TaskSourceName["Workflow"] = "Workflow";
|
|
8712
|
+
TaskSourceName["Maestro"] = "Maestro";
|
|
8713
|
+
TaskSourceName["Default"] = "Default";
|
|
8713
8714
|
})(TaskSourceName || (TaskSourceName = {}));
|
|
8714
8715
|
var TaskActivityType;
|
|
8715
|
-
(function(
|
|
8716
|
-
|
|
8717
|
-
|
|
8718
|
-
|
|
8719
|
-
|
|
8720
|
-
|
|
8721
|
-
|
|
8722
|
-
|
|
8723
|
-
|
|
8724
|
-
|
|
8725
|
-
|
|
8726
|
-
|
|
8727
|
-
|
|
8716
|
+
(function(TaskActivityType) {
|
|
8717
|
+
TaskActivityType["Created"] = "Created";
|
|
8718
|
+
TaskActivityType["Assigned"] = "Assigned";
|
|
8719
|
+
TaskActivityType["Reassigned"] = "Reassigned";
|
|
8720
|
+
TaskActivityType["Unassigned"] = "Unassigned";
|
|
8721
|
+
TaskActivityType["Saved"] = "Saved";
|
|
8722
|
+
TaskActivityType["Forwarded"] = "Forwarded";
|
|
8723
|
+
TaskActivityType["Completed"] = "Completed";
|
|
8724
|
+
TaskActivityType["Commented"] = "Commented";
|
|
8725
|
+
TaskActivityType["Deleted"] = "Deleted";
|
|
8726
|
+
TaskActivityType["BulkSaved"] = "BulkSaved";
|
|
8727
|
+
TaskActivityType["BulkCompleted"] = "BulkCompleted";
|
|
8728
|
+
TaskActivityType["FirstOpened"] = "FirstOpened";
|
|
8728
8729
|
})(TaskActivityType || (TaskActivityType = {}));
|
|
8729
8730
|
var TaskAssignmentCriteria;
|
|
8730
|
-
(function(
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8731
|
+
(function(TaskAssignmentCriteria) {
|
|
8732
|
+
TaskAssignmentCriteria["SingleUser"] = "SingleUser";
|
|
8733
|
+
TaskAssignmentCriteria["Workload"] = "Workload";
|
|
8734
|
+
TaskAssignmentCriteria["AllUsers"] = "AllUsers";
|
|
8735
|
+
TaskAssignmentCriteria["RoundRobin"] = "RoundRobin";
|
|
8735
8736
|
})(TaskAssignmentCriteria || (TaskAssignmentCriteria = {}));
|
|
8736
8737
|
var ORCHESTRATOR_BASE = "orchestrator_";
|
|
8737
8738
|
var PIMS_BASE = "pims_";
|
|
@@ -8932,9 +8933,9 @@ var TASK_TYPE_ENDPOINTS = {
|
|
|
8932
8933
|
[TaskType.QuickForm]: TASK_ENDPOINTS.GET_GENERIC_TASK_BY_ID
|
|
8933
8934
|
};
|
|
8934
8935
|
var ActionCenterEventNames;
|
|
8935
|
-
(function(
|
|
8936
|
-
|
|
8937
|
-
|
|
8936
|
+
(function(ActionCenterEventNames) {
|
|
8937
|
+
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
8938
|
+
ActionCenterEventNames["REFRESHTOKEN"] = "AC.refreshToken";
|
|
8938
8939
|
})(ActionCenterEventNames || (ActionCenterEventNames = {}));
|
|
8939
8940
|
var AUTHENTICATION_TIMEOUT = 8000;
|
|
8940
8941
|
function isTokenExpired(tokenInfo) {
|
|
@@ -8971,7 +8972,7 @@ function requestHostToken(options) {
|
|
|
8971
8972
|
statusCode: HttpStatus.UNAUTHORIZED
|
|
8972
8973
|
})), AUTHENTICATION_TIMEOUT);
|
|
8973
8974
|
try {
|
|
8974
|
-
const responsePromise = waitForMessage((
|
|
8975
|
+
const responsePromise = waitForMessage((event) => event.origin === pinnedOrigin && event.data?.eventType === responseEventType, controller.signal);
|
|
8975
8976
|
sendRequest();
|
|
8976
8977
|
const event = await responsePromise;
|
|
8977
8978
|
const token = extractToken(event.data);
|
|
@@ -8991,8 +8992,8 @@ function requestHostToken(options) {
|
|
|
8991
8992
|
}
|
|
8992
8993
|
|
|
8993
8994
|
class ActionCenterTokenManager {
|
|
8994
|
-
constructor(
|
|
8995
|
-
this.config =
|
|
8995
|
+
constructor(config, onTokenRefreshed) {
|
|
8996
|
+
this.config = config;
|
|
8996
8997
|
this.onTokenRefreshed = onTokenRefreshed;
|
|
8997
8998
|
this.parentOrigin = new URLSearchParams(window.location.search).get("basedomain");
|
|
8998
8999
|
this.refreshPromise = null;
|
|
@@ -9044,9 +9045,9 @@ class ActionCenterTokenManager {
|
|
|
9044
9045
|
}
|
|
9045
9046
|
}
|
|
9046
9047
|
var UipEmbeddedEventNames;
|
|
9047
|
-
(function(
|
|
9048
|
-
|
|
9049
|
-
|
|
9048
|
+
(function(UipEmbeddedEventNames) {
|
|
9049
|
+
UipEmbeddedEventNames["REFRESH_TOKEN"] = "UIP.refreshToken";
|
|
9050
|
+
UipEmbeddedEventNames["TOKEN_REFRESHED"] = "UIP.tokenRefreshed";
|
|
9050
9051
|
})(UipEmbeddedEventNames || (UipEmbeddedEventNames = {}));
|
|
9051
9052
|
function parseExpiresAt(raw) {
|
|
9052
9053
|
const d = new Date(raw);
|
|
@@ -9064,18 +9065,18 @@ function extractToken(data) {
|
|
|
9064
9065
|
}
|
|
9065
9066
|
|
|
9066
9067
|
class EmbeddedTokenManager {
|
|
9067
|
-
constructor(parentOrigin,
|
|
9068
|
+
constructor(parentOrigin, config, onTokenRefreshed) {
|
|
9068
9069
|
this.parentOrigin = parentOrigin;
|
|
9069
9070
|
this.onTokenRefreshed = onTokenRefreshed;
|
|
9070
9071
|
this.refreshPromise = null;
|
|
9071
9072
|
this.cancelRefresh = null;
|
|
9072
|
-
if (!
|
|
9073
|
+
if (!config.clientId || !config.scope) {
|
|
9073
9074
|
throw new ValidationError({
|
|
9074
9075
|
message: "EmbeddedTokenManager requires clientId and scope to be configured for host-delegated authentication"
|
|
9075
9076
|
});
|
|
9076
9077
|
}
|
|
9077
|
-
this.clientId =
|
|
9078
|
-
this.scope =
|
|
9078
|
+
this.clientId = config.clientId;
|
|
9079
|
+
this.scope = config.scope;
|
|
9079
9080
|
}
|
|
9080
9081
|
async refreshAccessToken(tokenInfo) {
|
|
9081
9082
|
if (!isTokenExpired(tokenInfo)) {
|
|
@@ -9147,16 +9148,16 @@ function encodeBase64(str) {
|
|
|
9147
9148
|
return Buffer.from(data).toString("base64");
|
|
9148
9149
|
}
|
|
9149
9150
|
}
|
|
9150
|
-
function decodeBase64(
|
|
9151
|
+
function decodeBase64(base64) {
|
|
9151
9152
|
let bytes;
|
|
9152
9153
|
if (isBrowser) {
|
|
9153
|
-
const binaryString = atob(
|
|
9154
|
+
const binaryString = atob(base64);
|
|
9154
9155
|
bytes = new Uint8Array(binaryString.length);
|
|
9155
9156
|
for (let i = 0;i < binaryString.length; i++) {
|
|
9156
9157
|
bytes[i] = binaryString.charCodeAt(i);
|
|
9157
9158
|
}
|
|
9158
9159
|
} else {
|
|
9159
|
-
bytes = new Uint8Array(Buffer.from(
|
|
9160
|
+
bytes = new Uint8Array(Buffer.from(base64, "base64"));
|
|
9160
9161
|
}
|
|
9161
9162
|
const decoder = new TextDecoder;
|
|
9162
9163
|
return decoder.decode(bytes);
|
|
@@ -9177,8 +9178,8 @@ function encodeFolderPathHeader(folderPath) {
|
|
|
9177
9178
|
var BASE64URL_DASH_RE = /-/g;
|
|
9178
9179
|
var BASE64URL_UNDERSCORE_RE = /_/g;
|
|
9179
9180
|
function base64UrlToBase64(value) {
|
|
9180
|
-
const
|
|
9181
|
-
return
|
|
9181
|
+
const base64 = value.replace(BASE64URL_DASH_RE, "+").replace(BASE64URL_UNDERSCORE_RE, "/");
|
|
9182
|
+
return base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "=");
|
|
9182
9183
|
}
|
|
9183
9184
|
function decodeJwtClaims(token) {
|
|
9184
9185
|
try {
|
|
@@ -9197,18 +9198,18 @@ function extractUserIdFromToken(token) {
|
|
|
9197
9198
|
}
|
|
9198
9199
|
|
|
9199
9200
|
class TokenManager {
|
|
9200
|
-
constructor(executionContext,
|
|
9201
|
+
constructor(executionContext, config, isOAuth = false) {
|
|
9201
9202
|
this.executionContext = executionContext;
|
|
9202
|
-
this.config =
|
|
9203
|
+
this.config = config;
|
|
9203
9204
|
this.isOAuth = isOAuth;
|
|
9204
9205
|
this.refreshPromise = null;
|
|
9205
9206
|
this.actionCenterTokenManager = null;
|
|
9206
9207
|
this.embeddedTokenManager = null;
|
|
9207
9208
|
if (isInActionCenter) {
|
|
9208
|
-
this.actionCenterTokenManager = new ActionCenterTokenManager(
|
|
9209
|
+
this.actionCenterTokenManager = new ActionCenterTokenManager(config, (tokenInfo) => this.setToken(tokenInfo));
|
|
9209
9210
|
this.isOAuth = false;
|
|
9210
9211
|
} else if (hostEmbeddingOrigin) {
|
|
9211
|
-
this.embeddedTokenManager = new EmbeddedTokenManager(hostEmbeddingOrigin,
|
|
9212
|
+
this.embeddedTokenManager = new EmbeddedTokenManager(hostEmbeddingOrigin, config, (tokenInfo) => this.setToken(tokenInfo));
|
|
9212
9213
|
this.isOAuth = false;
|
|
9213
9214
|
}
|
|
9214
9215
|
}
|
|
@@ -9403,13 +9404,13 @@ class TokenManager {
|
|
|
9403
9404
|
var GUID_REGEX$2 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
9404
9405
|
|
|
9405
9406
|
class AuthService {
|
|
9406
|
-
constructor(
|
|
9407
|
+
constructor(config, executionContext) {
|
|
9407
9408
|
const isCallback = AuthService.isInOAuthCallback();
|
|
9408
9409
|
const storedContext = isCallback ? AuthService.getStoredOAuthContext() : null;
|
|
9409
9410
|
if (!isCallback) {
|
|
9410
9411
|
AuthService._clearStoredOAuthContext();
|
|
9411
9412
|
}
|
|
9412
|
-
const effectiveConfig = storedContext ? AuthService._mergeConfigWithContext(
|
|
9413
|
+
const effectiveConfig = storedContext ? AuthService._mergeConfigWithContext(config, storedContext) : config;
|
|
9413
9414
|
this.config = effectiveConfig;
|
|
9414
9415
|
const isOAuth = hasOAuthConfig(effectiveConfig);
|
|
9415
9416
|
this.tokenManager = new TokenManager(executionContext, effectiveConfig, isOAuth);
|
|
@@ -9452,9 +9453,9 @@ class AuthService {
|
|
|
9452
9453
|
sessionStorage.removeItem(AUTH_STORAGE_KEYS.CODE_VERIFIER);
|
|
9453
9454
|
} catch {}
|
|
9454
9455
|
}
|
|
9455
|
-
static _mergeConfigWithContext(
|
|
9456
|
+
static _mergeConfigWithContext(config, context) {
|
|
9456
9457
|
return {
|
|
9457
|
-
...
|
|
9458
|
+
...config,
|
|
9458
9459
|
baseUrl: context.baseUrl,
|
|
9459
9460
|
orgName: context.orgName,
|
|
9460
9461
|
tenantName: context.tenantName,
|
|
@@ -9466,7 +9467,7 @@ class AuthService {
|
|
|
9466
9467
|
getTokenManager() {
|
|
9467
9468
|
return this.tokenManager;
|
|
9468
9469
|
}
|
|
9469
|
-
async authenticate(
|
|
9470
|
+
async authenticate(config) {
|
|
9470
9471
|
if (!isBrowser) {
|
|
9471
9472
|
return false;
|
|
9472
9473
|
}
|
|
@@ -9479,18 +9480,18 @@ class AuthService {
|
|
|
9479
9480
|
if (this.tokenManager.hasValidToken()) {
|
|
9480
9481
|
return true;
|
|
9481
9482
|
}
|
|
9482
|
-
if (!hasOAuthConfig(
|
|
9483
|
+
if (!hasOAuthConfig(config)) {
|
|
9483
9484
|
throw new Error("OAuth configuration incomplete: clientId, redirectUri, and scope are required for OAuth callback");
|
|
9484
9485
|
}
|
|
9485
|
-
const result = await this._authenticateWithOAuth(
|
|
9486
|
+
const result = await this._authenticateWithOAuth(config.clientId, config.redirectUri, config.scope);
|
|
9486
9487
|
return result;
|
|
9487
9488
|
}
|
|
9488
9489
|
const loadedFromStorage = this.tokenManager.loadFromStorage();
|
|
9489
9490
|
if (loadedFromStorage && this.tokenManager.hasValidToken()) {
|
|
9490
9491
|
return true;
|
|
9491
9492
|
}
|
|
9492
|
-
if (hasOAuthConfig(
|
|
9493
|
-
return await this._authenticateWithOAuth(
|
|
9493
|
+
if (hasOAuthConfig(config)) {
|
|
9494
|
+
return await this._authenticateWithOAuth(config.clientId, config.redirectUri, config.scope);
|
|
9494
9495
|
}
|
|
9495
9496
|
return false;
|
|
9496
9497
|
}
|
|
@@ -9563,9 +9564,9 @@ class AuthService {
|
|
|
9563
9564
|
}
|
|
9564
9565
|
generateCodeVerifier() {
|
|
9565
9566
|
if (isBrowser) {
|
|
9566
|
-
const
|
|
9567
|
-
crypto.getRandomValues(
|
|
9568
|
-
return this._base64URLEncode(
|
|
9567
|
+
const array = new Uint8Array(32);
|
|
9568
|
+
crypto.getRandomValues(array);
|
|
9569
|
+
return this._base64URLEncode(array);
|
|
9569
9570
|
} else {
|
|
9570
9571
|
try {
|
|
9571
9572
|
const crypto2 = __require("crypto");
|
|
@@ -9650,8 +9651,8 @@ class AuthService {
|
|
|
9650
9651
|
return token;
|
|
9651
9652
|
}
|
|
9652
9653
|
_base64URLEncode(buffer) {
|
|
9653
|
-
const
|
|
9654
|
-
return
|
|
9654
|
+
const base64 = btoa(String.fromCharCode(...buffer));
|
|
9655
|
+
return base64.replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
|
|
9655
9656
|
}
|
|
9656
9657
|
async _initiateOAuthFlow(clientId, redirectUri, scope) {
|
|
9657
9658
|
const codeVerifier = this.generateCodeVerifier();
|
|
@@ -9695,21 +9696,21 @@ class AuthService {
|
|
|
9695
9696
|
}
|
|
9696
9697
|
}
|
|
9697
9698
|
var UiPathMetaTags;
|
|
9698
|
-
(function(
|
|
9699
|
-
|
|
9700
|
-
|
|
9701
|
-
|
|
9702
|
-
|
|
9703
|
-
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9707
|
-
|
|
9708
|
-
|
|
9699
|
+
(function(UiPathMetaTags) {
|
|
9700
|
+
UiPathMetaTags["CLIENT_ID"] = "uipath:client-id";
|
|
9701
|
+
UiPathMetaTags["SCOPE"] = "uipath:scope";
|
|
9702
|
+
UiPathMetaTags["ORG_NAME"] = "uipath:org-name";
|
|
9703
|
+
UiPathMetaTags["ORG_ID"] = "uipath:org-id";
|
|
9704
|
+
UiPathMetaTags["TENANT_NAME"] = "uipath:tenant-name";
|
|
9705
|
+
UiPathMetaTags["BASE_URL"] = "uipath:base-url";
|
|
9706
|
+
UiPathMetaTags["REDIRECT_URI"] = "uipath:redirect-uri";
|
|
9707
|
+
UiPathMetaTags["CDN_BASE"] = "uipath:cdn-base";
|
|
9708
|
+
UiPathMetaTags["APP_BASE"] = "uipath:app-base";
|
|
9709
|
+
UiPathMetaTags["FOLDER_KEY"] = "uipath:folder-key";
|
|
9709
9710
|
})(UiPathMetaTags || (UiPathMetaTags = {}));
|
|
9710
9711
|
var UiPathElementIds;
|
|
9711
|
-
(function(
|
|
9712
|
-
|
|
9712
|
+
(function(UiPathElementIds) {
|
|
9713
|
+
UiPathElementIds["RESOURCE_OVERRIDES"] = "uipath-overrides";
|
|
9713
9714
|
})(UiPathElementIds || (UiPathElementIds = {}));
|
|
9714
9715
|
function readEnv(name) {
|
|
9715
9716
|
const globals = globalThis;
|
|
@@ -9734,24 +9735,24 @@ var UiPathEnvVars = {
|
|
|
9734
9735
|
function loadFromEnvironment() {
|
|
9735
9736
|
if (isBrowser)
|
|
9736
9737
|
return null;
|
|
9737
|
-
const
|
|
9738
|
+
const config = {
|
|
9738
9739
|
baseUrl: readEnv(UiPathEnvVars.BASE_URL),
|
|
9739
9740
|
orgName: readEnv(UiPathEnvVars.ORG_NAME),
|
|
9740
9741
|
tenantName: readEnv(UiPathEnvVars.TENANT_NAME),
|
|
9741
9742
|
secret: readEnv(UiPathEnvVars.ACCESS_TOKEN)
|
|
9742
9743
|
};
|
|
9743
|
-
return Object.values(
|
|
9744
|
+
return Object.values(config).some(Boolean) ? config : null;
|
|
9744
9745
|
}
|
|
9745
9746
|
var BASE_FIELDS = ["baseUrl", "orgName", "tenantName"];
|
|
9746
9747
|
var OAUTH_FIELDS = ["clientId", "redirectUri", "scope"];
|
|
9747
9748
|
var AUTH_FIELDS = ["secret", ...OAUTH_FIELDS];
|
|
9748
9749
|
var HTTP_PROTOCOLS = new Set(["http:", "https:"]);
|
|
9749
|
-
function hasRequiredBaseFields(
|
|
9750
|
-
return Boolean(
|
|
9750
|
+
function hasRequiredBaseFields(config) {
|
|
9751
|
+
return Boolean(config.baseUrl && config.orgName && config.tenantName);
|
|
9751
9752
|
}
|
|
9752
|
-
function hasValidAuthConfig(
|
|
9753
|
-
const hasSecret = hasSecretConfig(
|
|
9754
|
-
const hasOAuth = hasOAuthConfig(
|
|
9753
|
+
function hasValidAuthConfig(config) {
|
|
9754
|
+
const hasSecret = hasSecretConfig(config);
|
|
9755
|
+
const hasOAuth = hasOAuthConfig(config);
|
|
9755
9756
|
return hasSecret !== hasOAuth;
|
|
9756
9757
|
}
|
|
9757
9758
|
function nonBlank(value) {
|
|
@@ -9777,11 +9778,11 @@ function joinNames(names) {
|
|
|
9777
9778
|
return names.join("");
|
|
9778
9779
|
return `${names.slice(0, -1).join(", ")} and ${names.slice(-1).join("")}`;
|
|
9779
9780
|
}
|
|
9780
|
-
function isCompleteConfig(
|
|
9781
|
-
return hasRequiredBaseFields(
|
|
9781
|
+
function isCompleteConfig(config) {
|
|
9782
|
+
return hasRequiredBaseFields(config) && hasValidAuthConfig(config);
|
|
9782
9783
|
}
|
|
9783
|
-
function compactConfig(
|
|
9784
|
-
return Object.fromEntries(Object.entries(
|
|
9784
|
+
function compactConfig(config) {
|
|
9785
|
+
return Object.fromEntries(Object.entries(config).filter(([, value]) => value !== undefined));
|
|
9785
9786
|
}
|
|
9786
9787
|
function normalizeBaseUrl(url) {
|
|
9787
9788
|
return url.endsWith("/") ? url.slice(0, -1) : url;
|
|
@@ -9824,31 +9825,31 @@ function missingConfigMessage(found, context) {
|
|
|
9824
9825
|
return `UiPath SDK configuration not found. ${guidance}`;
|
|
9825
9826
|
return `UiPath SDK configuration is incomplete: ${describeGaps(found)}. ${guidance}`;
|
|
9826
9827
|
}
|
|
9827
|
-
function missingContextMessage(
|
|
9828
|
+
function missingContextMessage(config, context) {
|
|
9828
9829
|
const missing = [];
|
|
9829
|
-
if (!hasRequiredBaseFields(
|
|
9830
|
+
if (!hasRequiredBaseFields(config)) {
|
|
9830
9831
|
if (!context.platform) {
|
|
9831
9832
|
const variables = [];
|
|
9832
|
-
if (!
|
|
9833
|
+
if (!config.baseUrl)
|
|
9833
9834
|
variables.push(UiPathEnvVars.BASE_URL);
|
|
9834
|
-
if (!
|
|
9835
|
+
if (!config.orgName)
|
|
9835
9836
|
variables.push(UiPathEnvVars.ORG_NAME);
|
|
9836
|
-
if (!
|
|
9837
|
+
if (!config.tenantName)
|
|
9837
9838
|
variables.push(UiPathEnvVars.TENANT_NAME);
|
|
9838
9839
|
missing.push(`ctx.platform is null (or set ${joinNames(variables)})`);
|
|
9839
9840
|
} else {
|
|
9840
|
-
if (!
|
|
9841
|
+
if (!config.baseUrl) {
|
|
9841
9842
|
const baseUrl = nonBlank(context.platform.baseUrl);
|
|
9842
9843
|
const problem = baseUrl === undefined ? "is empty" : `"${baseUrl}" is not an http(s) URL`;
|
|
9843
9844
|
missing.push(`ctx.platform.baseUrl ${problem} (or set ${UiPathEnvVars.BASE_URL})`);
|
|
9844
9845
|
}
|
|
9845
|
-
if (!
|
|
9846
|
+
if (!config.orgName)
|
|
9846
9847
|
missing.push(`ctx.platform.orgId is empty (or set ${UiPathEnvVars.ORG_NAME})`);
|
|
9847
|
-
if (!
|
|
9848
|
+
if (!config.tenantName)
|
|
9848
9849
|
missing.push(`ctx.platform.tenantId is empty (or set ${UiPathEnvVars.TENANT_NAME})`);
|
|
9849
9850
|
}
|
|
9850
9851
|
}
|
|
9851
|
-
if (!hasSecretConfig(
|
|
9852
|
+
if (!hasSecretConfig(config) && !hasOAuthConfig(config)) {
|
|
9852
9853
|
missing.push(`ctx.robot.accessToken is null (or set ${UiPathEnvVars.ACCESS_TOKEN})`);
|
|
9853
9854
|
}
|
|
9854
9855
|
if (missing.length === 0) {
|
|
@@ -9956,10 +9957,10 @@ function parseRetryAfter(value, now = Date.now()) {
|
|
|
9956
9957
|
const seconds = Number(trimmed);
|
|
9957
9958
|
if (Number.isFinite(seconds))
|
|
9958
9959
|
return Math.max(0, seconds * 1000);
|
|
9959
|
-
const
|
|
9960
|
-
if (Number.isNaN(
|
|
9960
|
+
const date = Date.parse(trimmed);
|
|
9961
|
+
if (Number.isNaN(date))
|
|
9961
9962
|
return;
|
|
9962
|
-
return Math.max(0,
|
|
9963
|
+
return Math.max(0, date - now);
|
|
9963
9964
|
}
|
|
9964
9965
|
function wait(durationMs) {
|
|
9965
9966
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, durationMs)));
|
|
@@ -10066,8 +10067,8 @@ function readIdentityError(url) {
|
|
|
10066
10067
|
const errorId = url.searchParams.get(IDENTITY_ERROR_ID_PARAM);
|
|
10067
10068
|
if (errorId) {
|
|
10068
10069
|
try {
|
|
10069
|
-
const
|
|
10070
|
-
const json = decodeBase64(
|
|
10070
|
+
const base64 = errorId.replace(DASH_REGEX, "+").replace(UNDERSCORE_REGEX, "/");
|
|
10071
|
+
const json = decodeBase64(base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "="));
|
|
10071
10072
|
const data = JSON.parse(json).Data;
|
|
10072
10073
|
const error = typeof data?.Error === "string" ? data.Error : undefined;
|
|
10073
10074
|
const description = typeof data?.ErrorDescription === "string" ? data.ErrorDescription : undefined;
|
|
@@ -10156,9 +10157,9 @@ async function lookupOrganizationIdForPat(baseUrl, orgName) {
|
|
|
10156
10157
|
}
|
|
10157
10158
|
|
|
10158
10159
|
class OrganizationIdResolver {
|
|
10159
|
-
constructor(
|
|
10160
|
+
constructor(config, tokenManager) {
|
|
10160
10161
|
_OrganizationIdResolver_instances.add(this);
|
|
10161
|
-
this.config =
|
|
10162
|
+
this.config = config;
|
|
10162
10163
|
this.tokenManager = tokenManager;
|
|
10163
10164
|
_OrganizationIdResolver_organizationId.set(this, undefined);
|
|
10164
10165
|
}
|
|
@@ -10172,7 +10173,7 @@ class OrganizationIdResolver {
|
|
|
10172
10173
|
return __classPrivateFieldGet(this, _OrganizationIdResolver_organizationId, "f");
|
|
10173
10174
|
}
|
|
10174
10175
|
}
|
|
10175
|
-
_OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function
|
|
10176
|
+
_OrganizationIdResolver_organizationId = new WeakMap, _OrganizationIdResolver_instances = new WeakSet, _OrganizationIdResolver_resolve = async function _OrganizationIdResolver_resolve() {
|
|
10176
10177
|
const { organizationId, orgName, baseUrl } = this.config;
|
|
10177
10178
|
if (organizationId) {
|
|
10178
10179
|
return organizationId;
|
|
@@ -10237,7 +10238,7 @@ function getMetaTagContent(name) {
|
|
|
10237
10238
|
function loadFromMetaTags() {
|
|
10238
10239
|
if (!isBrowser)
|
|
10239
10240
|
return null;
|
|
10240
|
-
const
|
|
10241
|
+
const config = {
|
|
10241
10242
|
clientId: getMetaTagContent(UiPathMetaTags.CLIENT_ID),
|
|
10242
10243
|
scope: getMetaTagContent(UiPathMetaTags.SCOPE),
|
|
10243
10244
|
orgName: getMetaTagContent(UiPathMetaTags.ORG_NAME),
|
|
@@ -10247,8 +10248,8 @@ function loadFromMetaTags() {
|
|
|
10247
10248
|
redirectUri: getMetaTagContent(UiPathMetaTags.REDIRECT_URI),
|
|
10248
10249
|
folderKey: getMetaTagContent(UiPathMetaTags.FOLDER_KEY)
|
|
10249
10250
|
};
|
|
10250
|
-
const hasAnyValue = Object.values(
|
|
10251
|
-
return hasAnyValue ?
|
|
10251
|
+
const hasAnyValue = Object.values(config).some(Boolean);
|
|
10252
|
+
return hasAnyValue ? config : null;
|
|
10252
10253
|
}
|
|
10253
10254
|
function isFunctionContext(value) {
|
|
10254
10255
|
return "platform" in value || "robot" in value;
|
|
@@ -10256,13 +10257,13 @@ function isFunctionContext(value) {
|
|
|
10256
10257
|
function configFromFunctionContext(context) {
|
|
10257
10258
|
const { platform, robot } = context;
|
|
10258
10259
|
const baseUrl = nonBlank(platform?.baseUrl);
|
|
10259
|
-
const
|
|
10260
|
+
const config = {
|
|
10260
10261
|
baseUrl: baseUrl === undefined ? undefined : toHttpOrigin(baseUrl) ?? undefined,
|
|
10261
10262
|
orgName: nonBlank(platform?.orgId),
|
|
10262
10263
|
tenantName: nonBlank(platform?.tenantId),
|
|
10263
10264
|
secret: nonBlank(robot?.accessToken)
|
|
10264
10265
|
};
|
|
10265
|
-
return Object.values(
|
|
10266
|
+
return Object.values(config).some(Boolean) ? config : null;
|
|
10266
10267
|
}
|
|
10267
10268
|
function folderKeyFromFunctionContext(context) {
|
|
10268
10269
|
return nonBlank(context.platform?.folderKey);
|
|
@@ -10282,7 +10283,7 @@ var _UiPath_initializeWithConfig;
|
|
|
10282
10283
|
var _UiPath_mergeConfigSources;
|
|
10283
10284
|
var _UiPath_loadConfig;
|
|
10284
10285
|
var UiPath$1 = class UiPath {
|
|
10285
|
-
constructor(
|
|
10286
|
+
constructor(config) {
|
|
10286
10287
|
_UiPath_instances.add(this);
|
|
10287
10288
|
_UiPath_config.set(this, undefined);
|
|
10288
10289
|
_UiPath_authService.set(this, undefined);
|
|
@@ -10294,12 +10295,12 @@ var UiPath$1 = class UiPath {
|
|
|
10294
10295
|
_UiPath_metaOrgId.set(this, undefined);
|
|
10295
10296
|
_UiPath_metaTenantId.set(this, undefined);
|
|
10296
10297
|
let resolved;
|
|
10297
|
-
if (
|
|
10298
|
-
__classPrivateFieldSet(this, _UiPath_functionContext,
|
|
10299
|
-
__classPrivateFieldSet(this, _UiPath_contextFolderKey, folderKeyFromFunctionContext(
|
|
10300
|
-
resolved = configFromFunctionContext(
|
|
10298
|
+
if (config && isFunctionContext(config)) {
|
|
10299
|
+
__classPrivateFieldSet(this, _UiPath_functionContext, config, "f");
|
|
10300
|
+
__classPrivateFieldSet(this, _UiPath_contextFolderKey, folderKeyFromFunctionContext(config), "f");
|
|
10301
|
+
resolved = configFromFunctionContext(config) ?? undefined;
|
|
10301
10302
|
} else {
|
|
10302
|
-
resolved =
|
|
10303
|
+
resolved = config;
|
|
10303
10304
|
}
|
|
10304
10305
|
const configFromMetaTags = loadFromMetaTags();
|
|
10305
10306
|
__classPrivateFieldSet(this, _UiPath_metaFolderKey, configFromMetaTags?.folderKey, "f");
|
|
@@ -10388,19 +10389,19 @@ var UiPath$1 = class UiPath {
|
|
|
10388
10389
|
__classPrivateFieldGet(this, _UiPath_authService, "f")?.updateToken(tokenInfo);
|
|
10389
10390
|
}
|
|
10390
10391
|
};
|
|
10391
|
-
_a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap, _UiPath_initialized = new WeakMap, _UiPath_partialConfig = new WeakMap, _UiPath_metaFolderKey = new WeakMap, _UiPath_contextFolderKey = new WeakMap, _UiPath_functionContext = new WeakMap, _UiPath_metaOrgId = new WeakMap, _UiPath_metaTenantId = new WeakMap, _UiPath_instances = new WeakSet, _UiPath_initializeWithConfig = function
|
|
10392
|
-
const hasSecretAuth = hasSecretConfig(
|
|
10393
|
-
const hasOAuthAuth = hasOAuthConfig(
|
|
10392
|
+
_a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap, _UiPath_initialized = new WeakMap, _UiPath_partialConfig = new WeakMap, _UiPath_metaFolderKey = new WeakMap, _UiPath_contextFolderKey = new WeakMap, _UiPath_functionContext = new WeakMap, _UiPath_metaOrgId = new WeakMap, _UiPath_metaTenantId = new WeakMap, _UiPath_instances = new WeakSet, _UiPath_initializeWithConfig = function _UiPath_initializeWithConfig(config) {
|
|
10393
|
+
const hasSecretAuth = hasSecretConfig(config);
|
|
10394
|
+
const hasOAuthAuth = hasOAuthConfig(config);
|
|
10394
10395
|
const internalConfig = new UiPathConfig({
|
|
10395
|
-
baseUrl: normalizeBaseUrl(
|
|
10396
|
-
orgName:
|
|
10397
|
-
tenantName:
|
|
10398
|
-
organizationId:
|
|
10399
|
-
secret: hasSecretAuth ?
|
|
10400
|
-
clientId: hasOAuthAuth ?
|
|
10401
|
-
redirectUri: hasOAuthAuth ?
|
|
10402
|
-
scope: hasOAuthAuth ?
|
|
10403
|
-
enforceSso:
|
|
10396
|
+
baseUrl: normalizeBaseUrl(config.baseUrl),
|
|
10397
|
+
orgName: config.orgName,
|
|
10398
|
+
tenantName: config.tenantName,
|
|
10399
|
+
organizationId: config.organizationId,
|
|
10400
|
+
secret: hasSecretAuth ? config.secret : undefined,
|
|
10401
|
+
clientId: hasOAuthAuth ? config.clientId : undefined,
|
|
10402
|
+
redirectUri: hasOAuthAuth ? config.redirectUri : undefined,
|
|
10403
|
+
scope: hasOAuthAuth ? config.scope : undefined,
|
|
10404
|
+
enforceSso: config.enforceSso
|
|
10404
10405
|
});
|
|
10405
10406
|
const executionContext = new ExecutionContext;
|
|
10406
10407
|
__classPrivateFieldSet(this, _UiPath_authService, new AuthService(internalConfig, executionContext), "f");
|
|
@@ -10418,27 +10419,27 @@ _a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap,
|
|
|
10418
10419
|
tenantName: internalConfig.tenantName
|
|
10419
10420
|
};
|
|
10420
10421
|
telemetryClient.initialize({
|
|
10421
|
-
baseUrl:
|
|
10422
|
+
baseUrl: config.baseUrl,
|
|
10422
10423
|
orgId: __classPrivateFieldGet(this, _UiPath_metaOrgId, "f"),
|
|
10423
10424
|
tenantId: __classPrivateFieldGet(this, _UiPath_metaTenantId, "f"),
|
|
10424
|
-
orgName:
|
|
10425
|
-
tenantName:
|
|
10426
|
-
clientId: hasOAuthAuth ?
|
|
10427
|
-
redirectUri: hasOAuthAuth ?
|
|
10425
|
+
orgName: config.orgName,
|
|
10426
|
+
tenantName: config.tenantName,
|
|
10427
|
+
clientId: hasOAuthAuth ? config.clientId : undefined,
|
|
10428
|
+
redirectUri: hasOAuthAuth ? config.redirectUri : undefined
|
|
10428
10429
|
});
|
|
10429
10430
|
trackEvent("Sdk.Auth");
|
|
10430
10431
|
if (hasSecretAuth || isInActionCenter || hostEmbeddingOrigin) {
|
|
10431
|
-
__classPrivateFieldGet(this, _UiPath_authService, "f").authenticateWithSecret(
|
|
10432
|
+
__classPrivateFieldGet(this, _UiPath_authService, "f").authenticateWithSecret(config.secret ?? "");
|
|
10432
10433
|
__classPrivateFieldSet(this, _UiPath_initialized, true, "f");
|
|
10433
10434
|
}
|
|
10434
|
-
}, _UiPath_mergeConfigSources = function
|
|
10435
|
+
}, _UiPath_mergeConfigSources = function _UiPath_mergeConfigSources(metaConfig, config) {
|
|
10435
10436
|
const environment = loadFromEnvironment();
|
|
10436
|
-
const layers = [environment, metaConfig,
|
|
10437
|
+
const layers = [environment, metaConfig, config].filter((layer) => Boolean(layer)).map((layer) => compactConfig(layer));
|
|
10437
10438
|
if (layers.length === 0)
|
|
10438
10439
|
return;
|
|
10439
10440
|
const merged = layers.reduce((acc, layer) => ({ ...acc, ...layer }), {});
|
|
10440
|
-
const namesSecret =
|
|
10441
|
-
const namesOAuth = Boolean(
|
|
10441
|
+
const namesSecret = config ? hasSecretConfig(config) : false;
|
|
10442
|
+
const namesOAuth = Boolean(config?.clientId || config?.redirectUri || config?.scope);
|
|
10442
10443
|
if (namesSecret !== namesOAuth) {
|
|
10443
10444
|
if (namesSecret) {
|
|
10444
10445
|
delete merged.clientId;
|
|
@@ -10451,10 +10452,10 @@ _a = UiPath$1, _UiPath_config = new WeakMap, _UiPath_authService = new WeakMap,
|
|
|
10451
10452
|
const mergedHasSecret = hasSecretConfig(merged);
|
|
10452
10453
|
const mergedHasOAuth = hasOAuthConfig(merged);
|
|
10453
10454
|
if (mergedHasSecret && mergedHasOAuth) {
|
|
10454
|
-
throw new Error(conflictingAuthMessage({ config
|
|
10455
|
+
throw new Error(conflictingAuthMessage({ config, metaConfig, environment }));
|
|
10455
10456
|
}
|
|
10456
10457
|
return merged;
|
|
10457
|
-
}, _UiPath_loadConfig = function
|
|
10458
|
+
}, _UiPath_loadConfig = function _UiPath_loadConfig() {
|
|
10458
10459
|
const metaConfig = loadFromMetaTags();
|
|
10459
10460
|
__classPrivateFieldSet(this, _UiPath_metaFolderKey, metaConfig?.folderKey, "f");
|
|
10460
10461
|
__classPrivateFieldSet(this, _UiPath_metaOrgId, metaConfig?.organizationId ?? metaConfig?.orgName, "f");
|
|
@@ -10653,8 +10654,8 @@ function toSearchParams(params) {
|
|
|
10653
10654
|
return searchParams;
|
|
10654
10655
|
}
|
|
10655
10656
|
class ApiClient {
|
|
10656
|
-
constructor(
|
|
10657
|
-
this.config =
|
|
10657
|
+
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
10658
|
+
this.config = config;
|
|
10658
10659
|
this.executionContext = executionContext;
|
|
10659
10660
|
this.clientConfig = clientConfig;
|
|
10660
10661
|
this.tokenManager = tokenManager;
|
|
@@ -10708,8 +10709,8 @@ class ApiClient {
|
|
|
10708
10709
|
}
|
|
10709
10710
|
const acceptHeader = headers["Accept"] || headers["accept"];
|
|
10710
10711
|
if (acceptHeader === CONTENT_TYPES.XML) {
|
|
10711
|
-
const
|
|
10712
|
-
return
|
|
10712
|
+
const text = await response.text();
|
|
10713
|
+
return text;
|
|
10713
10714
|
}
|
|
10714
10715
|
const text = await response.text();
|
|
10715
10716
|
if (!text) {
|
|
@@ -10750,9 +10751,9 @@ class ApiClient {
|
|
|
10750
10751
|
}
|
|
10751
10752
|
}
|
|
10752
10753
|
var PaginationType;
|
|
10753
|
-
(function(
|
|
10754
|
-
|
|
10755
|
-
|
|
10754
|
+
(function(PaginationType) {
|
|
10755
|
+
PaginationType["OFFSET"] = "offset";
|
|
10756
|
+
PaginationType["TOKEN"] = "token";
|
|
10756
10757
|
})(PaginationType || (PaginationType = {}));
|
|
10757
10758
|
function resolveNestedField(data, fieldPath) {
|
|
10758
10759
|
if (!data) {
|
|
@@ -10914,8 +10915,8 @@ var PROCESS_INSTANCE_TOKEN_PARAMS = {
|
|
|
10914
10915
|
TOKEN_PARAM: "nextPage"
|
|
10915
10916
|
};
|
|
10916
10917
|
function toISOUtc(value) {
|
|
10917
|
-
const
|
|
10918
|
-
return isNaN(
|
|
10918
|
+
const date = new Date(value + " UTC");
|
|
10919
|
+
return isNaN(date.getTime()) ? value : date.toISOString();
|
|
10919
10920
|
}
|
|
10920
10921
|
function transformData(data, fieldMapping) {
|
|
10921
10922
|
if (data == null) {
|
|
@@ -11186,51 +11187,51 @@ class PaginationHelpers {
|
|
|
11186
11187
|
totalCount
|
|
11187
11188
|
};
|
|
11188
11189
|
}
|
|
11189
|
-
static async getAll(
|
|
11190
|
+
static async getAll(config, options) {
|
|
11190
11191
|
const optionsWithDefaults = options || {};
|
|
11191
11192
|
const { folderId, pageSize, cursor, jumpToPage, ...restOptions } = optionsWithDefaults;
|
|
11192
11193
|
const isPaginationRequested = PaginationHelpers.hasPaginationParameters(options || {});
|
|
11193
11194
|
let processedOptions = restOptions;
|
|
11194
|
-
if (
|
|
11195
|
-
processedOptions =
|
|
11195
|
+
if (config.processParametersFn) {
|
|
11196
|
+
processedOptions = config.processParametersFn(restOptions, folderId);
|
|
11196
11197
|
}
|
|
11197
|
-
const excludeKeys =
|
|
11198
|
+
const excludeKeys = config.excludeFromPrefix || [];
|
|
11198
11199
|
const keysToPrefix = Object.keys(processedOptions).filter((k) => !excludeKeys.includes(k));
|
|
11199
11200
|
const prefixedOptions = addPrefixToKeys(processedOptions, ODATA_PREFIX, keysToPrefix);
|
|
11200
11201
|
const paginationOptions = {
|
|
11201
11202
|
paginationType: PaginationType.OFFSET,
|
|
11202
11203
|
itemsField: DEFAULT_ITEMS_FIELD,
|
|
11203
11204
|
totalCountField: DEFAULT_TOTAL_COUNT_FIELD,
|
|
11204
|
-
...
|
|
11205
|
+
...config.pagination
|
|
11205
11206
|
};
|
|
11206
11207
|
if (isPaginationRequested) {
|
|
11207
11208
|
return PaginationHelpers.getAllPaginated({
|
|
11208
|
-
serviceAccess:
|
|
11209
|
-
getEndpoint:
|
|
11209
|
+
serviceAccess: config.serviceAccess,
|
|
11210
|
+
getEndpoint: config.getEndpoint,
|
|
11210
11211
|
folderId,
|
|
11211
|
-
headers:
|
|
11212
|
+
headers: config.headers,
|
|
11212
11213
|
paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
|
|
11213
11214
|
additionalParams: prefixedOptions,
|
|
11214
|
-
queryParams:
|
|
11215
|
-
transformFn:
|
|
11216
|
-
method:
|
|
11215
|
+
queryParams: config.queryParams,
|
|
11216
|
+
transformFn: config.transformFn,
|
|
11217
|
+
method: config.method,
|
|
11217
11218
|
options: {
|
|
11218
11219
|
...paginationOptions,
|
|
11219
|
-
paginationParams:
|
|
11220
|
+
paginationParams: config.pagination?.paginationParams
|
|
11220
11221
|
}
|
|
11221
11222
|
});
|
|
11222
11223
|
}
|
|
11223
|
-
const byFolderEndpoint =
|
|
11224
|
+
const byFolderEndpoint = config.getByFolderEndpoint || config.getEndpoint(folderId);
|
|
11224
11225
|
return PaginationHelpers.getAllNonPaginated({
|
|
11225
|
-
serviceAccess:
|
|
11226
|
-
getAllEndpoint:
|
|
11226
|
+
serviceAccess: config.serviceAccess,
|
|
11227
|
+
getAllEndpoint: config.getEndpoint(),
|
|
11227
11228
|
getByFolderEndpoint: byFolderEndpoint,
|
|
11228
11229
|
folderId,
|
|
11229
|
-
headers:
|
|
11230
|
+
headers: config.headers,
|
|
11230
11231
|
additionalParams: prefixedOptions,
|
|
11231
|
-
queryParams:
|
|
11232
|
-
transformFn:
|
|
11233
|
-
method:
|
|
11232
|
+
queryParams: config.queryParams,
|
|
11233
|
+
transformFn: config.transformFn,
|
|
11234
|
+
method: config.method,
|
|
11234
11235
|
options: {
|
|
11235
11236
|
itemsField: paginationOptions.itemsField,
|
|
11236
11237
|
totalCountField: paginationOptions.totalCountField
|
|
@@ -11243,8 +11244,8 @@ var _BaseService_apiClient;
|
|
|
11243
11244
|
class BaseService {
|
|
11244
11245
|
constructor(instance, headers) {
|
|
11245
11246
|
_BaseService_apiClient.set(this, undefined);
|
|
11246
|
-
const { config
|
|
11247
|
-
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(
|
|
11247
|
+
const { config, context, tokenManager, folderKey, metaFolderKey } = SDKInternalsRegistry.get(instance);
|
|
11248
|
+
__classPrivateFieldSet(this, _BaseService_apiClient, new ApiClient(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
11248
11249
|
this.config = { folderKey, metaFolderKey };
|
|
11249
11250
|
}
|
|
11250
11251
|
async getValidAuthToken() {
|
|
@@ -11509,25 +11510,25 @@ function createEntityWithMethods(entityData, service) {
|
|
|
11509
11510
|
return Object.assign({}, entityData, methods);
|
|
11510
11511
|
}
|
|
11511
11512
|
var EntityFieldDataType;
|
|
11512
|
-
(function(
|
|
11513
|
-
|
|
11514
|
-
|
|
11515
|
-
|
|
11516
|
-
|
|
11517
|
-
|
|
11518
|
-
|
|
11519
|
-
|
|
11520
|
-
|
|
11521
|
-
|
|
11522
|
-
|
|
11523
|
-
|
|
11524
|
-
|
|
11525
|
-
|
|
11526
|
-
|
|
11527
|
-
|
|
11528
|
-
|
|
11529
|
-
|
|
11530
|
-
|
|
11513
|
+
(function(EntityFieldDataType) {
|
|
11514
|
+
EntityFieldDataType["UUID"] = "UUID";
|
|
11515
|
+
EntityFieldDataType["STRING"] = "STRING";
|
|
11516
|
+
EntityFieldDataType["INTEGER"] = "INTEGER";
|
|
11517
|
+
EntityFieldDataType["DATETIME"] = "DATETIME";
|
|
11518
|
+
EntityFieldDataType["DATETIME_WITH_TZ"] = "DATETIME_WITH_TZ";
|
|
11519
|
+
EntityFieldDataType["DECIMAL"] = "DECIMAL";
|
|
11520
|
+
EntityFieldDataType["FLOAT"] = "FLOAT";
|
|
11521
|
+
EntityFieldDataType["DOUBLE"] = "DOUBLE";
|
|
11522
|
+
EntityFieldDataType["DATE"] = "DATE";
|
|
11523
|
+
EntityFieldDataType["BOOLEAN"] = "BOOLEAN";
|
|
11524
|
+
EntityFieldDataType["BIG_INTEGER"] = "BIG_INTEGER";
|
|
11525
|
+
EntityFieldDataType["MULTILINE_TEXT"] = "MULTILINE_TEXT";
|
|
11526
|
+
EntityFieldDataType["MULTILINE_MAX"] = "MULTILINE_MAX";
|
|
11527
|
+
EntityFieldDataType["FILE"] = "FILE";
|
|
11528
|
+
EntityFieldDataType["CHOICE_SET_SINGLE"] = "CHOICE_SET_SINGLE";
|
|
11529
|
+
EntityFieldDataType["CHOICE_SET_MULTIPLE"] = "CHOICE_SET_MULTIPLE";
|
|
11530
|
+
EntityFieldDataType["AUTO_NUMBER"] = "AUTO_NUMBER";
|
|
11531
|
+
EntityFieldDataType["RELATIONSHIP"] = "RELATIONSHIP";
|
|
11531
11532
|
})(EntityFieldDataType || (EntityFieldDataType = {}));
|
|
11532
11533
|
var LogicalOperator$1;
|
|
11533
11534
|
(function(LogicalOperator) {
|
|
@@ -11535,105 +11536,105 @@ var LogicalOperator$1;
|
|
|
11535
11536
|
LogicalOperator[LogicalOperator["Or"] = 1] = "Or";
|
|
11536
11537
|
})(LogicalOperator$1 || (LogicalOperator$1 = {}));
|
|
11537
11538
|
var QueryFilterOperator;
|
|
11538
|
-
(function(
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
|
-
|
|
11542
|
-
|
|
11543
|
-
|
|
11544
|
-
|
|
11545
|
-
|
|
11546
|
-
|
|
11547
|
-
|
|
11548
|
-
|
|
11549
|
-
|
|
11550
|
-
|
|
11539
|
+
(function(QueryFilterOperator) {
|
|
11540
|
+
QueryFilterOperator["Equals"] = "=";
|
|
11541
|
+
QueryFilterOperator["NotEquals"] = "!=";
|
|
11542
|
+
QueryFilterOperator["GreaterThan"] = ">";
|
|
11543
|
+
QueryFilterOperator["LessThan"] = "<";
|
|
11544
|
+
QueryFilterOperator["GreaterThanOrEqual"] = ">=";
|
|
11545
|
+
QueryFilterOperator["LessThanOrEqual"] = "<=";
|
|
11546
|
+
QueryFilterOperator["Contains"] = "contains";
|
|
11547
|
+
QueryFilterOperator["NotContains"] = "not contains";
|
|
11548
|
+
QueryFilterOperator["StartsWith"] = "startswith";
|
|
11549
|
+
QueryFilterOperator["EndsWith"] = "endswith";
|
|
11550
|
+
QueryFilterOperator["In"] = "in";
|
|
11551
|
+
QueryFilterOperator["NotIn"] = "not in";
|
|
11551
11552
|
})(QueryFilterOperator || (QueryFilterOperator = {}));
|
|
11552
11553
|
var EntityAggregateFunction;
|
|
11553
|
-
(function(
|
|
11554
|
-
|
|
11555
|
-
|
|
11556
|
-
|
|
11557
|
-
|
|
11558
|
-
|
|
11554
|
+
(function(EntityAggregateFunction) {
|
|
11555
|
+
EntityAggregateFunction["Count"] = "COUNT";
|
|
11556
|
+
EntityAggregateFunction["Sum"] = "SUM";
|
|
11557
|
+
EntityAggregateFunction["Avg"] = "AVG";
|
|
11558
|
+
EntityAggregateFunction["Min"] = "MIN";
|
|
11559
|
+
EntityAggregateFunction["Max"] = "MAX";
|
|
11559
11560
|
})(EntityAggregateFunction || (EntityAggregateFunction = {}));
|
|
11560
11561
|
var EntityHavingOperator;
|
|
11561
|
-
(function(
|
|
11562
|
-
|
|
11563
|
-
|
|
11564
|
-
|
|
11565
|
-
|
|
11566
|
-
|
|
11567
|
-
|
|
11562
|
+
(function(EntityHavingOperator) {
|
|
11563
|
+
EntityHavingOperator["Equals"] = "=";
|
|
11564
|
+
EntityHavingOperator["NotEquals"] = "!=";
|
|
11565
|
+
EntityHavingOperator["GreaterThan"] = ">";
|
|
11566
|
+
EntityHavingOperator["GreaterThanOrEqual"] = ">=";
|
|
11567
|
+
EntityHavingOperator["LessThan"] = "<";
|
|
11568
|
+
EntityHavingOperator["LessThanOrEqual"] = "<=";
|
|
11568
11569
|
})(EntityHavingOperator || (EntityHavingOperator = {}));
|
|
11569
11570
|
var EntityMultiEntityWriteOperation;
|
|
11570
|
-
(function(
|
|
11571
|
-
|
|
11572
|
-
|
|
11571
|
+
(function(EntityMultiEntityWriteOperation) {
|
|
11572
|
+
EntityMultiEntityWriteOperation["Insert"] = "Insert";
|
|
11573
|
+
EntityMultiEntityWriteOperation["Update"] = "Update";
|
|
11573
11574
|
})(EntityMultiEntityWriteOperation || (EntityMultiEntityWriteOperation = {}));
|
|
11574
11575
|
var EntityType;
|
|
11575
|
-
(function(
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11576
|
+
(function(EntityType) {
|
|
11577
|
+
EntityType["Entity"] = "Entity";
|
|
11578
|
+
EntityType["ChoiceSet"] = "ChoiceSet";
|
|
11579
|
+
EntityType["InternalEntity"] = "InternalEntity";
|
|
11580
|
+
EntityType["SystemEntity"] = "SystemEntity";
|
|
11580
11581
|
})(EntityType || (EntityType = {}));
|
|
11581
11582
|
var EntityClass;
|
|
11582
|
-
(function(
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
|
|
11583
|
+
(function(EntityClass) {
|
|
11584
|
+
EntityClass["Native"] = "Native";
|
|
11585
|
+
EntityClass["Federated"] = "Federated";
|
|
11586
|
+
EntityClass["Case"] = "Case";
|
|
11586
11587
|
})(EntityClass || (EntityClass = {}));
|
|
11587
11588
|
var ReferenceType;
|
|
11588
|
-
(function(
|
|
11589
|
-
|
|
11589
|
+
(function(ReferenceType) {
|
|
11590
|
+
ReferenceType["ManyToOne"] = "ManyToOne";
|
|
11590
11591
|
})(ReferenceType || (ReferenceType = {}));
|
|
11591
11592
|
var FieldDisplayType;
|
|
11592
|
-
(function(
|
|
11593
|
-
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
|
|
11598
|
-
|
|
11593
|
+
(function(FieldDisplayType) {
|
|
11594
|
+
FieldDisplayType["Basic"] = "Basic";
|
|
11595
|
+
FieldDisplayType["Relationship"] = "Relationship";
|
|
11596
|
+
FieldDisplayType["File"] = "File";
|
|
11597
|
+
FieldDisplayType["ChoiceSetSingle"] = "ChoiceSetSingle";
|
|
11598
|
+
FieldDisplayType["ChoiceSetMultiple"] = "ChoiceSetMultiple";
|
|
11599
|
+
FieldDisplayType["AutoNumber"] = "AutoNumber";
|
|
11599
11600
|
})(FieldDisplayType || (FieldDisplayType = {}));
|
|
11600
11601
|
var DataDirectionType;
|
|
11601
|
-
(function(
|
|
11602
|
-
|
|
11603
|
-
|
|
11602
|
+
(function(DataDirectionType) {
|
|
11603
|
+
DataDirectionType["ReadOnly"] = "ReadOnly";
|
|
11604
|
+
DataDirectionType["ReadAndWrite"] = "ReadAndWrite";
|
|
11604
11605
|
})(DataDirectionType || (DataDirectionType = {}));
|
|
11605
11606
|
var JoinType;
|
|
11606
|
-
(function(
|
|
11607
|
-
|
|
11608
|
-
|
|
11607
|
+
(function(JoinType) {
|
|
11608
|
+
JoinType["LeftJoin"] = "LeftJoin";
|
|
11609
|
+
JoinType["InnerJoin"] = "InnerJoin";
|
|
11609
11610
|
})(JoinType || (JoinType = {}));
|
|
11610
11611
|
var EntityClassId;
|
|
11611
|
-
(function(
|
|
11612
|
-
|
|
11613
|
-
|
|
11612
|
+
(function(EntityClassId) {
|
|
11613
|
+
EntityClassId[EntityClassId["Native"] = 9] = "Native";
|
|
11614
|
+
EntityClassId[EntityClassId["Federated"] = 10] = "Federated";
|
|
11614
11615
|
})(EntityClassId || (EntityClassId = {}));
|
|
11615
11616
|
var EntityFieldConstraint;
|
|
11616
|
-
(function(
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11617
|
+
(function(EntityFieldConstraint) {
|
|
11618
|
+
EntityFieldConstraint["LengthLimit"] = "lengthLimit";
|
|
11619
|
+
EntityFieldConstraint["MaxValue"] = "maxValue";
|
|
11620
|
+
EntityFieldConstraint["MinValue"] = "minValue";
|
|
11621
|
+
EntityFieldConstraint["DecimalPrecision"] = "decimalPrecision";
|
|
11621
11622
|
})(EntityFieldConstraint || (EntityFieldConstraint = {}));
|
|
11622
11623
|
var SqlFieldType;
|
|
11623
|
-
(function(
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
|
|
11624
|
+
(function(SqlFieldType) {
|
|
11625
|
+
SqlFieldType["UNIQUEIDENTIFIER"] = "UNIQUEIDENTIFIER";
|
|
11626
|
+
SqlFieldType["NVARCHAR"] = "NVARCHAR";
|
|
11627
|
+
SqlFieldType["INT"] = "INT";
|
|
11628
|
+
SqlFieldType["DATETIME2"] = "DATETIME2";
|
|
11629
|
+
SqlFieldType["DATETIMEOFFSET"] = "DATETIMEOFFSET";
|
|
11630
|
+
SqlFieldType["FLOAT"] = "FLOAT";
|
|
11631
|
+
SqlFieldType["REAL"] = "REAL";
|
|
11632
|
+
SqlFieldType["BIGINT"] = "BIGINT";
|
|
11633
|
+
SqlFieldType["DATE"] = "DATE";
|
|
11634
|
+
SqlFieldType["BIT"] = "BIT";
|
|
11635
|
+
SqlFieldType["DECIMAL"] = "DECIMAL";
|
|
11636
|
+
SqlFieldType["MULTILINE"] = "MULTILINE";
|
|
11637
|
+
SqlFieldType["MULTILINE_MAX"] = "MULTILINE_MAX";
|
|
11637
11638
|
})(SqlFieldType || (SqlFieldType = {}));
|
|
11638
11639
|
var ENTITY_TYPE_IDS = {
|
|
11639
11640
|
[EntityType.ChoiceSet]: 1
|
|
@@ -11792,13 +11793,13 @@ function readOverrides() {
|
|
|
11792
11793
|
}
|
|
11793
11794
|
}
|
|
11794
11795
|
function resolveOverride(resourceType, name, folderPath) {
|
|
11795
|
-
const
|
|
11796
|
-
if (!
|
|
11796
|
+
const table = readOverrides();
|
|
11797
|
+
if (!table)
|
|
11797
11798
|
return;
|
|
11798
11799
|
const bindingType = resourceType.toLowerCase();
|
|
11799
11800
|
const scopedKey = folderPath ? `${bindingType}.${name}.${folderPath}` : undefined;
|
|
11800
11801
|
const unscopedKey = `${bindingType}.${name}`;
|
|
11801
|
-
const entry = (scopedKey &&
|
|
11802
|
+
const entry = (scopedKey && table[scopedKey]) ?? table[unscopedKey];
|
|
11802
11803
|
if (!entry)
|
|
11803
11804
|
return;
|
|
11804
11805
|
return {
|
|
@@ -12795,9 +12796,9 @@ __decorate([
|
|
|
12795
12796
|
track("Choicesets.DeleteValuesById")
|
|
12796
12797
|
], ChoiceSetService.prototype, "deleteValuesById", null);
|
|
12797
12798
|
var DataFabricRoleType;
|
|
12798
|
-
(function(
|
|
12799
|
-
|
|
12800
|
-
|
|
12799
|
+
(function(DataFabricRoleType) {
|
|
12800
|
+
DataFabricRoleType["System"] = "System";
|
|
12801
|
+
DataFabricRoleType["UserDefined"] = "UserDefined";
|
|
12801
12802
|
})(DataFabricRoleType || (DataFabricRoleType = {}));
|
|
12802
12803
|
function isRecord$1(value) {
|
|
12803
12804
|
return value !== null && typeof value === "object" && !Array.isArray(value);
|
|
@@ -12834,16 +12835,16 @@ __decorate([
|
|
|
12834
12835
|
track("DataFabricRoles.GetAll")
|
|
12835
12836
|
], DataFabricRoleService.prototype, "getAll", null);
|
|
12836
12837
|
var DataFabricDirectoryEntityType;
|
|
12837
|
-
(function(
|
|
12838
|
-
|
|
12839
|
-
|
|
12840
|
-
|
|
12838
|
+
(function(DataFabricDirectoryEntityType) {
|
|
12839
|
+
DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["User"] = 0] = "User";
|
|
12840
|
+
DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["Group"] = 1] = "Group";
|
|
12841
|
+
DataFabricDirectoryEntityType[DataFabricDirectoryEntityType["Application"] = 2] = "Application";
|
|
12841
12842
|
})(DataFabricDirectoryEntityType || (DataFabricDirectoryEntityType = {}));
|
|
12842
12843
|
var DataFabricDirectoryEntityTypeName;
|
|
12843
|
-
(function(
|
|
12844
|
-
|
|
12845
|
-
|
|
12846
|
-
|
|
12844
|
+
(function(DataFabricDirectoryEntityTypeName) {
|
|
12845
|
+
DataFabricDirectoryEntityTypeName["User"] = "User";
|
|
12846
|
+
DataFabricDirectoryEntityTypeName["Group"] = "Group";
|
|
12847
|
+
DataFabricDirectoryEntityTypeName["Application"] = "Application";
|
|
12847
12848
|
})(DataFabricDirectoryEntityTypeName || (DataFabricDirectoryEntityTypeName = {}));
|
|
12848
12849
|
var DEFAULT_DIRECTORY_PAGE_SIZE = 100;
|
|
12849
12850
|
var MAX_DIRECTORY_PAGE_SIZE = 100;
|
|
@@ -13153,27 +13154,27 @@ function createProcessInstanceWithMethods(instanceData, service) {
|
|
|
13153
13154
|
return Object.assign({}, instanceData, methods);
|
|
13154
13155
|
}
|
|
13155
13156
|
var ProcessIncidentStatus;
|
|
13156
|
-
(function(
|
|
13157
|
-
|
|
13158
|
-
|
|
13157
|
+
(function(ProcessIncidentStatus) {
|
|
13158
|
+
ProcessIncidentStatus["Open"] = "Open";
|
|
13159
|
+
ProcessIncidentStatus["Closed"] = "Closed";
|
|
13159
13160
|
})(ProcessIncidentStatus || (ProcessIncidentStatus = {}));
|
|
13160
13161
|
var ProcessIncidentType;
|
|
13161
|
-
(function(
|
|
13162
|
-
|
|
13163
|
-
|
|
13164
|
-
|
|
13162
|
+
(function(ProcessIncidentType) {
|
|
13163
|
+
ProcessIncidentType["System"] = "System";
|
|
13164
|
+
ProcessIncidentType["User"] = "User";
|
|
13165
|
+
ProcessIncidentType["Deployment"] = "Deployment";
|
|
13165
13166
|
})(ProcessIncidentType || (ProcessIncidentType = {}));
|
|
13166
13167
|
var ProcessIncidentSeverity;
|
|
13167
|
-
(function(
|
|
13168
|
-
|
|
13169
|
-
|
|
13168
|
+
(function(ProcessIncidentSeverity) {
|
|
13169
|
+
ProcessIncidentSeverity["Error"] = "Error";
|
|
13170
|
+
ProcessIncidentSeverity["Warning"] = "Warning";
|
|
13170
13171
|
})(ProcessIncidentSeverity || (ProcessIncidentSeverity = {}));
|
|
13171
13172
|
var DebugMode;
|
|
13172
|
-
(function(
|
|
13173
|
-
|
|
13174
|
-
|
|
13175
|
-
|
|
13176
|
-
|
|
13173
|
+
(function(DebugMode) {
|
|
13174
|
+
DebugMode["None"] = "None";
|
|
13175
|
+
DebugMode["Default"] = "Default";
|
|
13176
|
+
DebugMode["StepByStep"] = "StepByStep";
|
|
13177
|
+
DebugMode["SingleStep"] = "SingleStep";
|
|
13177
13178
|
})(DebugMode || (DebugMode = {}));
|
|
13178
13179
|
function createCaseMethods(caseData, service) {
|
|
13179
13180
|
return {
|
|
@@ -13220,63 +13221,63 @@ function createCaseWithMethods(caseData, service) {
|
|
|
13220
13221
|
return Object.assign({}, caseData, methods);
|
|
13221
13222
|
}
|
|
13222
13223
|
var CaseInstanceMessageName;
|
|
13223
|
-
(function(
|
|
13224
|
-
|
|
13225
|
-
|
|
13224
|
+
(function(CaseInstanceMessageName) {
|
|
13225
|
+
CaseInstanceMessageName["UserSelectStage"] = "UserSelectStage";
|
|
13226
|
+
CaseInstanceMessageName["UserAdhocTrigger"] = "UserAdhocTrigger";
|
|
13226
13227
|
})(CaseInstanceMessageName || (CaseInstanceMessageName = {}));
|
|
13227
13228
|
var SlaSummaryStatus;
|
|
13228
|
-
(function(
|
|
13229
|
-
|
|
13230
|
-
|
|
13231
|
-
|
|
13232
|
-
|
|
13233
|
-
|
|
13229
|
+
(function(SlaSummaryStatus) {
|
|
13230
|
+
SlaSummaryStatus["ON_TRACK"] = "On Track";
|
|
13231
|
+
SlaSummaryStatus["AT_RISK"] = "At Risk";
|
|
13232
|
+
SlaSummaryStatus["OVERDUE"] = "Overdue";
|
|
13233
|
+
SlaSummaryStatus["COMPLETED"] = "Completed";
|
|
13234
|
+
SlaSummaryStatus["UNKNOWN"] = "Unknown";
|
|
13234
13235
|
})(SlaSummaryStatus || (SlaSummaryStatus = {}));
|
|
13235
13236
|
var InstanceStatus;
|
|
13236
|
-
(function(
|
|
13237
|
-
|
|
13238
|
-
|
|
13239
|
-
|
|
13240
|
-
|
|
13241
|
-
|
|
13242
|
-
|
|
13243
|
-
|
|
13244
|
-
|
|
13245
|
-
|
|
13246
|
-
|
|
13247
|
-
|
|
13248
|
-
|
|
13237
|
+
(function(InstanceStatus) {
|
|
13238
|
+
InstanceStatus["UNKNOWN"] = "";
|
|
13239
|
+
InstanceStatus["CANCELLED"] = "Cancelled";
|
|
13240
|
+
InstanceStatus["CANCELING"] = "Canceling";
|
|
13241
|
+
InstanceStatus["COMPLETED"] = "Completed";
|
|
13242
|
+
InstanceStatus["FAULTED"] = "Faulted";
|
|
13243
|
+
InstanceStatus["PAUSED"] = "Paused";
|
|
13244
|
+
InstanceStatus["PAUSING"] = "Pausing";
|
|
13245
|
+
InstanceStatus["PENDING"] = "Pending";
|
|
13246
|
+
InstanceStatus["RESUMING"] = "Resuming";
|
|
13247
|
+
InstanceStatus["RETRYING"] = "Retrying";
|
|
13248
|
+
InstanceStatus["RUNNING"] = "Running";
|
|
13249
|
+
InstanceStatus["UPGRADING"] = "Upgrading";
|
|
13249
13250
|
})(InstanceStatus || (InstanceStatus = {}));
|
|
13250
13251
|
var StageTaskType;
|
|
13251
|
-
(function(
|
|
13252
|
-
|
|
13253
|
-
|
|
13254
|
-
|
|
13255
|
-
|
|
13256
|
-
|
|
13257
|
-
|
|
13252
|
+
(function(StageTaskType) {
|
|
13253
|
+
StageTaskType["EXTERNAL_AGENT"] = "external-agent";
|
|
13254
|
+
StageTaskType["RPA"] = "rpa";
|
|
13255
|
+
StageTaskType["AGENTIC_PROCESS"] = "process";
|
|
13256
|
+
StageTaskType["AGENT"] = "agent";
|
|
13257
|
+
StageTaskType["ACTION"] = "action";
|
|
13258
|
+
StageTaskType["API_WORKFLOW"] = "api-workflow";
|
|
13258
13259
|
})(StageTaskType || (StageTaskType = {}));
|
|
13259
13260
|
var EscalationRecipientScope;
|
|
13260
|
-
(function(
|
|
13261
|
-
|
|
13262
|
-
|
|
13261
|
+
(function(EscalationRecipientScope) {
|
|
13262
|
+
EscalationRecipientScope["USER"] = "user";
|
|
13263
|
+
EscalationRecipientScope["USER_GROUP"] = "usergroup";
|
|
13263
13264
|
})(EscalationRecipientScope || (EscalationRecipientScope = {}));
|
|
13264
13265
|
var EscalationActionType;
|
|
13265
|
-
(function(
|
|
13266
|
-
|
|
13266
|
+
(function(EscalationActionType) {
|
|
13267
|
+
EscalationActionType["NOTIFICATION"] = "notification";
|
|
13267
13268
|
})(EscalationActionType || (EscalationActionType = {}));
|
|
13268
13269
|
var EscalationTriggerType;
|
|
13269
|
-
(function(
|
|
13270
|
-
|
|
13271
|
-
|
|
13272
|
-
|
|
13270
|
+
(function(EscalationTriggerType) {
|
|
13271
|
+
EscalationTriggerType["SLA_BREACHED"] = "sla-breached";
|
|
13272
|
+
EscalationTriggerType["AT_RISK"] = "at-risk";
|
|
13273
|
+
EscalationTriggerType["NONE"] = "None";
|
|
13273
13274
|
})(EscalationTriggerType || (EscalationTriggerType = {}));
|
|
13274
13275
|
var SLADurationUnit;
|
|
13275
|
-
(function(
|
|
13276
|
-
|
|
13277
|
-
|
|
13278
|
-
|
|
13279
|
-
|
|
13276
|
+
(function(SLADurationUnit) {
|
|
13277
|
+
SLADurationUnit["HOURS"] = "h";
|
|
13278
|
+
SLADurationUnit["DAYS"] = "d";
|
|
13279
|
+
SLADurationUnit["WEEKS"] = "w";
|
|
13280
|
+
SLADurationUnit["MONTHS"] = "m";
|
|
13280
13281
|
})(SLADurationUnit || (SLADurationUnit = {}));
|
|
13281
13282
|
function createCaseInstanceMethods(instanceData, service) {
|
|
13282
13283
|
return {
|
|
@@ -13358,16 +13359,16 @@ function createCaseInstanceWithMethods(instanceData, service) {
|
|
|
13358
13359
|
return Object.assign({}, instanceData, methods);
|
|
13359
13360
|
}
|
|
13360
13361
|
var TimeInterval;
|
|
13361
|
-
(function(
|
|
13362
|
-
|
|
13363
|
-
|
|
13364
|
-
|
|
13362
|
+
(function(TimeInterval) {
|
|
13363
|
+
TimeInterval["Hour"] = "HOUR";
|
|
13364
|
+
TimeInterval["Day"] = "DAY";
|
|
13365
|
+
TimeInterval["Week"] = "WEEK";
|
|
13365
13366
|
})(TimeInterval || (TimeInterval = {}));
|
|
13366
13367
|
var InstanceFinalStatus;
|
|
13367
|
-
(function(
|
|
13368
|
-
|
|
13369
|
-
|
|
13370
|
-
|
|
13368
|
+
(function(InstanceFinalStatus) {
|
|
13369
|
+
InstanceFinalStatus["Completed"] = "Completed";
|
|
13370
|
+
InstanceFinalStatus["Faulted"] = "Faulted";
|
|
13371
|
+
InstanceFinalStatus["Cancelled"] = "Cancelled";
|
|
13371
13372
|
})(InstanceFinalStatus || (InstanceFinalStatus = {}));
|
|
13372
13373
|
function buildInsightsTopBody(startTime, endTime, isCaseManagement, options) {
|
|
13373
13374
|
return {
|
|
@@ -13755,11 +13756,11 @@ class MaestroProcessesService extends BaseService {
|
|
|
13755
13756
|
});
|
|
13756
13757
|
const response = await this.get(MAESTRO_ENDPOINTS.PROCESSES.GET_ALL, { params });
|
|
13757
13758
|
const processes = response.data?.processes || [];
|
|
13758
|
-
const processesWithName = processes.map((
|
|
13759
|
-
...
|
|
13760
|
-
name:
|
|
13759
|
+
const processesWithName = processes.map((process2) => ({
|
|
13760
|
+
...process2,
|
|
13761
|
+
name: process2.packageId
|
|
13761
13762
|
}));
|
|
13762
|
-
return processesWithName.map((
|
|
13763
|
+
return processesWithName.map((process2) => createProcessWithMethods(process2, this));
|
|
13763
13764
|
}
|
|
13764
13765
|
async getIncidents(processKey, folderKey) {
|
|
13765
13766
|
const rawResponse = await this.get(MAESTRO_ENDPOINTS.INCIDENTS.GET_BY_PROCESS(processKey), {
|
|
@@ -13769,7 +13770,7 @@ class MaestroProcessesService extends BaseService {
|
|
|
13769
13770
|
}
|
|
13770
13771
|
async getTopRunCount(startTime, endTime, options) {
|
|
13771
13772
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, false, options));
|
|
13772
|
-
return (data ?? []).map((
|
|
13773
|
+
return (data ?? []).map((process2) => ({ ...process2, name: process2.packageId }));
|
|
13773
13774
|
}
|
|
13774
13775
|
async getTopElementFailedCount(startTime, endTime, options) {
|
|
13775
13776
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_ELEMENTS_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, false, options));
|
|
@@ -13799,7 +13800,7 @@ class MaestroProcessesService extends BaseService {
|
|
|
13799
13800
|
}
|
|
13800
13801
|
async getTopExecutionDuration(startTime, endTime, options) {
|
|
13801
13802
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, false, options));
|
|
13802
|
-
return (data ?? []).map((
|
|
13803
|
+
return (data ?? []).map((process2) => ({ ...process2, name: process2.packageId }));
|
|
13803
13804
|
}
|
|
13804
13805
|
async getElementStats(request) {
|
|
13805
13806
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.ELEMENT_COUNT_BY_STATUS, buildInsightsCommonBody(request));
|
|
@@ -13852,8 +13853,8 @@ __decorate([
|
|
|
13852
13853
|
track("ProcessIncidents.getAll")
|
|
13853
13854
|
], ProcessIncidentsService.prototype, "getAll", null);
|
|
13854
13855
|
var ProcessType;
|
|
13855
|
-
(function(
|
|
13856
|
-
|
|
13856
|
+
(function(ProcessType) {
|
|
13857
|
+
ProcessType["CaseManagement"] = "CaseManagement";
|
|
13857
13858
|
})(ProcessType || (ProcessType = {}));
|
|
13858
13859
|
|
|
13859
13860
|
class CasesService extends BaseService {
|
|
@@ -13874,7 +13875,7 @@ class CasesService extends BaseService {
|
|
|
13874
13875
|
}
|
|
13875
13876
|
async getTopRunCount(startTime, endTime, options) {
|
|
13876
13877
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_RUN_COUNT, buildInsightsTopBody(startTime, endTime, true, options));
|
|
13877
|
-
return (data ?? []).map((
|
|
13878
|
+
return (data ?? []).map((process2) => ({ ...process2, name: this.extractCaseName(process2.packageId) }));
|
|
13878
13879
|
}
|
|
13879
13880
|
async getTopElementFailedCount(startTime, endTime, options) {
|
|
13880
13881
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_ELEMENTS_WITH_FAILURE, buildInsightsTopBody(startTime, endTime, true, options));
|
|
@@ -13904,7 +13905,7 @@ class CasesService extends BaseService {
|
|
|
13904
13905
|
}
|
|
13905
13906
|
async getTopExecutionDuration(startTime, endTime, options) {
|
|
13906
13907
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.TOP_PROCESSES_BY_DURATION, buildInsightsTopBody(startTime, endTime, true, options));
|
|
13907
|
-
return (data ?? []).map((
|
|
13908
|
+
return (data ?? []).map((process2) => ({ ...process2, name: this.extractCaseName(process2.packageId) }));
|
|
13908
13909
|
}
|
|
13909
13910
|
async getElementStats(request) {
|
|
13910
13911
|
const { data } = await this.post(MAESTRO_ENDPOINTS.INSIGHTS.ELEMENT_COUNT_BY_STATUS, buildInsightsCommonBody(request));
|
|
@@ -14116,7 +14117,7 @@ class FolderScopedService extends BaseService {
|
|
|
14116
14117
|
}
|
|
14117
14118
|
return response.data?.value;
|
|
14118
14119
|
}
|
|
14119
|
-
async getByNameLookup(resourceType, endpoint, name, options,
|
|
14120
|
+
async getByNameLookup(resourceType, endpoint, name, options, transform, responseFieldMap, callerLabel) {
|
|
14120
14121
|
const validatedName = validateName(resourceType, name);
|
|
14121
14122
|
const { folderId, folderKey, folderPath, ...queryOptions } = options;
|
|
14122
14123
|
const override = resolveOverride(resourceType, validatedName, folderPath);
|
|
@@ -14147,11 +14148,11 @@ class FolderScopedService extends BaseService {
|
|
|
14147
14148
|
});
|
|
14148
14149
|
}
|
|
14149
14150
|
return {
|
|
14150
|
-
result:
|
|
14151
|
+
result: transform(items[0]),
|
|
14151
14152
|
effectiveFolder: { folderId, folderKey, folderPath: resolvedFolderPath }
|
|
14152
14153
|
};
|
|
14153
14154
|
}
|
|
14154
|
-
async getByKeyLookup(resourceType, endpoint, key, options,
|
|
14155
|
+
async getByKeyLookup(resourceType, endpoint, key, options, transform, responseFieldMap, callerLabel) {
|
|
14155
14156
|
const label = callerLabel ?? `${resourceType}.getByKey`;
|
|
14156
14157
|
const trimmedKey = key?.trim();
|
|
14157
14158
|
if (!trimmedKey || !GUID_REGEX.test(trimmedKey)) {
|
|
@@ -14180,7 +14181,7 @@ class FolderScopedService extends BaseService {
|
|
|
14180
14181
|
throw new NotFoundError({ message: `${resourceType} with key '${trimmedKey}' not found.` });
|
|
14181
14182
|
}
|
|
14182
14183
|
return {
|
|
14183
|
-
result:
|
|
14184
|
+
result: transform(items[0]),
|
|
14184
14185
|
effectiveFolder: { folderId, folderKey, folderPath }
|
|
14185
14186
|
};
|
|
14186
14187
|
}
|
|
@@ -14232,7 +14233,7 @@ class TaskService extends FolderScopedService {
|
|
|
14232
14233
|
const optionsWithFolder = { ...options, folderId };
|
|
14233
14234
|
return PaginationHelpers.getAll({
|
|
14234
14235
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
14235
|
-
getEndpoint: (
|
|
14236
|
+
getEndpoint: (folderId) => TASK_ENDPOINTS.GET_TASK_USERS(folderId),
|
|
14236
14237
|
getByFolderEndpoint: TASK_ENDPOINTS.GET_TASK_USERS(folderId),
|
|
14237
14238
|
transformFn: transformUserResponse,
|
|
14238
14239
|
pagination: {
|
|
@@ -14842,17 +14843,17 @@ __decorate([
|
|
|
14842
14843
|
track("CaseInstances.GetStagesSlaSummary")
|
|
14843
14844
|
], CaseInstancesService.prototype, "getStagesSlaSummary", null);
|
|
14844
14845
|
var AssetValueScope;
|
|
14845
|
-
(function(
|
|
14846
|
-
|
|
14847
|
-
|
|
14846
|
+
(function(AssetValueScope) {
|
|
14847
|
+
AssetValueScope["Global"] = "Global";
|
|
14848
|
+
AssetValueScope["PerRobot"] = "PerRobot";
|
|
14848
14849
|
})(AssetValueScope || (AssetValueScope = {}));
|
|
14849
14850
|
var AssetValueType;
|
|
14850
|
-
(function(
|
|
14851
|
-
|
|
14852
|
-
|
|
14853
|
-
|
|
14854
|
-
|
|
14855
|
-
|
|
14851
|
+
(function(AssetValueType) {
|
|
14852
|
+
AssetValueType["Text"] = "Text";
|
|
14853
|
+
AssetValueType["Bool"] = "Bool";
|
|
14854
|
+
AssetValueType["Integer"] = "Integer";
|
|
14855
|
+
AssetValueType["Credential"] = "Credential";
|
|
14856
|
+
AssetValueType["Secret"] = "Secret";
|
|
14856
14857
|
})(AssetValueType || (AssetValueType = {}));
|
|
14857
14858
|
async function resolveRefToId(ref, resolvers, callerLabel) {
|
|
14858
14859
|
if (!ref) {
|
|
@@ -15358,11 +15359,11 @@ __decorate([
|
|
|
15358
15359
|
track("Buckets.DeleteFile")
|
|
15359
15360
|
], BucketService.prototype, "deleteFile", null);
|
|
15360
15361
|
var BucketOptions;
|
|
15361
|
-
(function(
|
|
15362
|
-
|
|
15363
|
-
|
|
15364
|
-
|
|
15365
|
-
|
|
15362
|
+
(function(BucketOptions) {
|
|
15363
|
+
BucketOptions["None"] = "None";
|
|
15364
|
+
BucketOptions["ReadOnly"] = "ReadOnly";
|
|
15365
|
+
BucketOptions["AuditReadAccess"] = "AuditReadAccess";
|
|
15366
|
+
BucketOptions["AccessDataThroughOrchestrator"] = "AccessDataThroughOrchestrator";
|
|
15366
15367
|
})(BucketOptions || (BucketOptions = {}));
|
|
15367
15368
|
function createJobMethods(jobData, service) {
|
|
15368
15369
|
return {
|
|
@@ -15490,146 +15491,146 @@ __decorate([
|
|
|
15490
15491
|
track("Attachments.Create")
|
|
15491
15492
|
], AttachmentService.prototype, "create", null);
|
|
15492
15493
|
var PackageType;
|
|
15493
|
-
(function(
|
|
15494
|
-
|
|
15495
|
-
|
|
15496
|
-
|
|
15497
|
-
|
|
15498
|
-
|
|
15499
|
-
|
|
15500
|
-
|
|
15501
|
-
|
|
15502
|
-
|
|
15503
|
-
|
|
15504
|
-
|
|
15505
|
-
|
|
15494
|
+
(function(PackageType) {
|
|
15495
|
+
PackageType["Undefined"] = "Undefined";
|
|
15496
|
+
PackageType["Process"] = "Process";
|
|
15497
|
+
PackageType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
15498
|
+
PackageType["WebApp"] = "WebApp";
|
|
15499
|
+
PackageType["Agent"] = "Agent";
|
|
15500
|
+
PackageType["TestAutomationProcess"] = "TestAutomationProcess";
|
|
15501
|
+
PackageType["Api"] = "Api";
|
|
15502
|
+
PackageType["MCPServer"] = "MCPServer";
|
|
15503
|
+
PackageType["BusinessRules"] = "BusinessRules";
|
|
15504
|
+
PackageType["CaseManagement"] = "CaseManagement";
|
|
15505
|
+
PackageType["Flow"] = "Flow";
|
|
15506
|
+
PackageType["Function"] = "Function";
|
|
15506
15507
|
})(PackageType || (PackageType = {}));
|
|
15507
15508
|
var JobPriority;
|
|
15508
|
-
(function(
|
|
15509
|
-
|
|
15510
|
-
|
|
15511
|
-
|
|
15509
|
+
(function(JobPriority) {
|
|
15510
|
+
JobPriority["Low"] = "Low";
|
|
15511
|
+
JobPriority["Normal"] = "Normal";
|
|
15512
|
+
JobPriority["High"] = "High";
|
|
15512
15513
|
})(JobPriority || (JobPriority = {}));
|
|
15513
15514
|
var TargetFramework;
|
|
15514
|
-
(function(
|
|
15515
|
-
|
|
15516
|
-
|
|
15517
|
-
|
|
15515
|
+
(function(TargetFramework) {
|
|
15516
|
+
TargetFramework["Legacy"] = "Legacy";
|
|
15517
|
+
TargetFramework["Windows"] = "Windows";
|
|
15518
|
+
TargetFramework["Portable"] = "Portable";
|
|
15518
15519
|
})(TargetFramework || (TargetFramework = {}));
|
|
15519
15520
|
var RobotSize;
|
|
15520
|
-
(function(
|
|
15521
|
-
|
|
15522
|
-
|
|
15523
|
-
|
|
15524
|
-
|
|
15521
|
+
(function(RobotSize) {
|
|
15522
|
+
RobotSize["Small"] = "Small";
|
|
15523
|
+
RobotSize["Standard"] = "Standard";
|
|
15524
|
+
RobotSize["Medium"] = "Medium";
|
|
15525
|
+
RobotSize["Large"] = "Large";
|
|
15525
15526
|
})(RobotSize || (RobotSize = {}));
|
|
15526
15527
|
var RemoteControlAccess;
|
|
15527
|
-
(function(
|
|
15528
|
-
|
|
15529
|
-
|
|
15530
|
-
|
|
15528
|
+
(function(RemoteControlAccess) {
|
|
15529
|
+
RemoteControlAccess["None"] = "None";
|
|
15530
|
+
RemoteControlAccess["ReadOnly"] = "ReadOnly";
|
|
15531
|
+
RemoteControlAccess["Full"] = "Full";
|
|
15531
15532
|
})(RemoteControlAccess || (RemoteControlAccess = {}));
|
|
15532
15533
|
var StartStrategy;
|
|
15533
|
-
(function(
|
|
15534
|
-
|
|
15535
|
-
|
|
15536
|
-
|
|
15537
|
-
|
|
15538
|
-
|
|
15534
|
+
(function(StartStrategy) {
|
|
15535
|
+
StartStrategy["All"] = "All";
|
|
15536
|
+
StartStrategy["Specific"] = "Specific";
|
|
15537
|
+
StartStrategy["RobotCount"] = "RobotCount";
|
|
15538
|
+
StartStrategy["JobsCount"] = "JobsCount";
|
|
15539
|
+
StartStrategy["ModernJobsCount"] = "ModernJobsCount";
|
|
15539
15540
|
})(StartStrategy || (StartStrategy = {}));
|
|
15540
15541
|
var PackageSourceType;
|
|
15541
|
-
(function(
|
|
15542
|
-
|
|
15543
|
-
|
|
15544
|
-
|
|
15545
|
-
|
|
15546
|
-
|
|
15547
|
-
|
|
15548
|
-
|
|
15549
|
-
|
|
15550
|
-
|
|
15551
|
-
|
|
15552
|
-
|
|
15553
|
-
|
|
15554
|
-
|
|
15555
|
-
|
|
15556
|
-
|
|
15557
|
-
|
|
15558
|
-
|
|
15559
|
-
|
|
15560
|
-
|
|
15561
|
-
|
|
15562
|
-
|
|
15563
|
-
|
|
15564
|
-
|
|
15542
|
+
(function(PackageSourceType) {
|
|
15543
|
+
PackageSourceType["Manual"] = "Manual";
|
|
15544
|
+
PackageSourceType["Schedule"] = "Schedule";
|
|
15545
|
+
PackageSourceType["Queue"] = "Queue";
|
|
15546
|
+
PackageSourceType["StudioWeb"] = "StudioWeb";
|
|
15547
|
+
PackageSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
15548
|
+
PackageSourceType["StudioDesktop"] = "StudioDesktop";
|
|
15549
|
+
PackageSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
15550
|
+
PackageSourceType["Apps"] = "Apps";
|
|
15551
|
+
PackageSourceType["SAP"] = "SAP";
|
|
15552
|
+
PackageSourceType["HttpTrigger"] = "HttpTrigger";
|
|
15553
|
+
PackageSourceType["HttpTriggerWithCallback"] = "HttpTriggerWithCallback";
|
|
15554
|
+
PackageSourceType["RobotAPI"] = "RobotAPI";
|
|
15555
|
+
PackageSourceType["Assistant"] = "Assistant";
|
|
15556
|
+
PackageSourceType["CommandLine"] = "CommandLine";
|
|
15557
|
+
PackageSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
15558
|
+
PackageSourceType["Autopilot"] = "Autopilot";
|
|
15559
|
+
PackageSourceType["TestManager"] = "TestManager";
|
|
15560
|
+
PackageSourceType["AgentService"] = "AgentService";
|
|
15561
|
+
PackageSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
15562
|
+
PackageSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
15563
|
+
PackageSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
15564
|
+
PackageSourceType["AgentHub"] = "AgentHub";
|
|
15565
|
+
PackageSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
15565
15566
|
})(PackageSourceType || (PackageSourceType = {}));
|
|
15566
15567
|
var JobSourceType;
|
|
15567
|
-
(function(
|
|
15568
|
-
|
|
15569
|
-
|
|
15570
|
-
|
|
15571
|
-
|
|
15572
|
-
|
|
15573
|
-
|
|
15574
|
-
|
|
15575
|
-
|
|
15576
|
-
|
|
15577
|
-
|
|
15578
|
-
|
|
15579
|
-
|
|
15580
|
-
|
|
15581
|
-
|
|
15582
|
-
|
|
15583
|
-
|
|
15584
|
-
|
|
15585
|
-
|
|
15586
|
-
|
|
15587
|
-
|
|
15588
|
-
|
|
15589
|
-
|
|
15590
|
-
|
|
15591
|
-
|
|
15568
|
+
(function(JobSourceType) {
|
|
15569
|
+
JobSourceType["Manual"] = "Manual";
|
|
15570
|
+
JobSourceType["Schedule"] = "Schedule";
|
|
15571
|
+
JobSourceType["Agent"] = "Agent";
|
|
15572
|
+
JobSourceType["Queue"] = "Queue";
|
|
15573
|
+
JobSourceType["StudioWeb"] = "StudioWeb";
|
|
15574
|
+
JobSourceType["IntegrationTrigger"] = "IntegrationTrigger";
|
|
15575
|
+
JobSourceType["StudioDesktop"] = "StudioDesktop";
|
|
15576
|
+
JobSourceType["AutomationOpsPipelines"] = "AutomationOpsPipelines";
|
|
15577
|
+
JobSourceType["Apps"] = "Apps";
|
|
15578
|
+
JobSourceType["SAP"] = "SAP";
|
|
15579
|
+
JobSourceType["HttpTrigger"] = "HttpTrigger";
|
|
15580
|
+
JobSourceType["HttpTriggerCallback"] = "HttpTriggerCallback";
|
|
15581
|
+
JobSourceType["RobotAPI"] = "RobotAPI";
|
|
15582
|
+
JobSourceType["CommandLine"] = "CommandLine";
|
|
15583
|
+
JobSourceType["RobotNetAPI"] = "RobotNetAPI";
|
|
15584
|
+
JobSourceType["Autopilot"] = "Autopilot";
|
|
15585
|
+
JobSourceType["TestManager"] = "TestManager";
|
|
15586
|
+
JobSourceType["AgentService"] = "AgentService";
|
|
15587
|
+
JobSourceType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
15588
|
+
JobSourceType["PluginEcosystem"] = "PluginEcosystem";
|
|
15589
|
+
JobSourceType["PerformanceTesting"] = "PerformanceTesting";
|
|
15590
|
+
JobSourceType["AgentHub"] = "AgentHub";
|
|
15591
|
+
JobSourceType["ApiWorkflow"] = "ApiWorkflow";
|
|
15592
|
+
JobSourceType["CaseManagement"] = "CaseManagement";
|
|
15592
15593
|
})(JobSourceType || (JobSourceType = {}));
|
|
15593
15594
|
var StopStrategy;
|
|
15594
|
-
(function(
|
|
15595
|
-
|
|
15596
|
-
|
|
15595
|
+
(function(StopStrategy) {
|
|
15596
|
+
StopStrategy["SoftStop"] = "SoftStop";
|
|
15597
|
+
StopStrategy["Kill"] = "Kill";
|
|
15597
15598
|
})(StopStrategy || (StopStrategy = {}));
|
|
15598
15599
|
var RuntimeType;
|
|
15599
|
-
(function(
|
|
15600
|
-
|
|
15601
|
-
|
|
15602
|
-
|
|
15603
|
-
|
|
15604
|
-
|
|
15605
|
-
|
|
15606
|
-
|
|
15607
|
-
|
|
15608
|
-
|
|
15609
|
-
|
|
15610
|
-
|
|
15611
|
-
|
|
15612
|
-
|
|
15613
|
-
|
|
15614
|
-
|
|
15615
|
-
|
|
15616
|
-
|
|
15617
|
-
|
|
15618
|
-
|
|
15619
|
-
|
|
15620
|
-
|
|
15621
|
-
|
|
15622
|
-
|
|
15623
|
-
|
|
15624
|
-
|
|
15625
|
-
|
|
15626
|
-
|
|
15600
|
+
(function(RuntimeType) {
|
|
15601
|
+
RuntimeType["NonProduction"] = "NonProduction";
|
|
15602
|
+
RuntimeType["Attended"] = "Attended";
|
|
15603
|
+
RuntimeType["Unattended"] = "Unattended";
|
|
15604
|
+
RuntimeType["Development"] = "Development";
|
|
15605
|
+
RuntimeType["Studio"] = "Studio";
|
|
15606
|
+
RuntimeType["RpaDeveloper"] = "RpaDeveloper";
|
|
15607
|
+
RuntimeType["StudioX"] = "StudioX";
|
|
15608
|
+
RuntimeType["CitizenDeveloper"] = "CitizenDeveloper";
|
|
15609
|
+
RuntimeType["Headless"] = "Headless";
|
|
15610
|
+
RuntimeType["StudioPro"] = "StudioPro";
|
|
15611
|
+
RuntimeType["RpaDeveloperPro"] = "RpaDeveloperPro";
|
|
15612
|
+
RuntimeType["TestAutomation"] = "TestAutomation";
|
|
15613
|
+
RuntimeType["AutomationCloud"] = "AutomationCloud";
|
|
15614
|
+
RuntimeType["Serverless"] = "Serverless";
|
|
15615
|
+
RuntimeType["AutomationKit"] = "AutomationKit";
|
|
15616
|
+
RuntimeType["ServerlessTestAutomation"] = "ServerlessTestAutomation";
|
|
15617
|
+
RuntimeType["AutomationCloudTestAutomation"] = "AutomationCloudTestAutomation";
|
|
15618
|
+
RuntimeType["AttendedStudioWeb"] = "AttendedStudioWeb";
|
|
15619
|
+
RuntimeType["Hosting"] = "Hosting";
|
|
15620
|
+
RuntimeType["AssistantWeb"] = "AssistantWeb";
|
|
15621
|
+
RuntimeType["ProcessOrchestration"] = "ProcessOrchestration";
|
|
15622
|
+
RuntimeType["AgentService"] = "AgentService";
|
|
15623
|
+
RuntimeType["AppTest"] = "AppTest";
|
|
15624
|
+
RuntimeType["PerformanceTest"] = "PerformanceTest";
|
|
15625
|
+
RuntimeType["BusinessRule"] = "BusinessRule";
|
|
15626
|
+
RuntimeType["CaseManagement"] = "CaseManagement";
|
|
15627
|
+
RuntimeType["Flow"] = "Flow";
|
|
15627
15628
|
})(RuntimeType || (RuntimeType = {}));
|
|
15628
15629
|
var JobType;
|
|
15629
|
-
(function(
|
|
15630
|
-
|
|
15631
|
-
|
|
15632
|
-
|
|
15630
|
+
(function(JobType) {
|
|
15631
|
+
JobType["Unattended"] = "Unattended";
|
|
15632
|
+
JobType["Attended"] = "Attended";
|
|
15633
|
+
JobType["ServerlessGeneric"] = "ServerlessGeneric";
|
|
15633
15634
|
})(JobType || (JobType = {}));
|
|
15634
15635
|
|
|
15635
15636
|
class JobService extends FolderScopedService {
|
|
@@ -15847,43 +15848,43 @@ __decorate([
|
|
|
15847
15848
|
track("Jobs.LinkAttachment")
|
|
15848
15849
|
], JobService.prototype, "linkAttachment", null);
|
|
15849
15850
|
var JobSubState;
|
|
15850
|
-
(function(
|
|
15851
|
-
|
|
15852
|
-
|
|
15851
|
+
(function(JobSubState) {
|
|
15852
|
+
JobSubState["WithFaults"] = "WITH_FAULTS";
|
|
15853
|
+
JobSubState["Manually"] = "MANUALLY";
|
|
15853
15854
|
})(JobSubState || (JobSubState = {}));
|
|
15854
15855
|
var ServerlessJobType;
|
|
15855
|
-
(function(
|
|
15856
|
-
|
|
15857
|
-
|
|
15858
|
-
|
|
15859
|
-
|
|
15860
|
-
|
|
15861
|
-
|
|
15862
|
-
|
|
15863
|
-
|
|
15864
|
-
|
|
15865
|
-
|
|
15856
|
+
(function(ServerlessJobType) {
|
|
15857
|
+
ServerlessJobType["RobotJob"] = "RobotJob";
|
|
15858
|
+
ServerlessJobType["WebApp"] = "WebApp";
|
|
15859
|
+
ServerlessJobType["LoadTest"] = "LoadTest";
|
|
15860
|
+
ServerlessJobType["StudioWebDesigner"] = "StudioWebDesigner";
|
|
15861
|
+
ServerlessJobType["PublishStudioProject"] = "PublishStudioProject";
|
|
15862
|
+
ServerlessJobType["JsApi"] = "JsApi";
|
|
15863
|
+
ServerlessJobType["PythonCodedAgent"] = "PythonCodedAgent";
|
|
15864
|
+
ServerlessJobType["MCPServer"] = "MCPServer";
|
|
15865
|
+
ServerlessJobType["PythonCodedSystemAgent"] = "PythonCodedSystemAgent";
|
|
15866
|
+
ServerlessJobType["PythonAgent"] = "PythonAgent";
|
|
15866
15867
|
})(ServerlessJobType || (ServerlessJobType = {}));
|
|
15867
15868
|
var JobState;
|
|
15868
|
-
(function(
|
|
15869
|
-
|
|
15870
|
-
|
|
15871
|
-
|
|
15872
|
-
|
|
15873
|
-
|
|
15874
|
-
|
|
15875
|
-
|
|
15876
|
-
|
|
15877
|
-
|
|
15878
|
-
|
|
15879
|
-
|
|
15869
|
+
(function(JobState) {
|
|
15870
|
+
JobState["Pending"] = "Pending";
|
|
15871
|
+
JobState["Running"] = "Running";
|
|
15872
|
+
JobState["Stopping"] = "Stopping";
|
|
15873
|
+
JobState["Terminating"] = "Terminating";
|
|
15874
|
+
JobState["Faulted"] = "Faulted";
|
|
15875
|
+
JobState["Successful"] = "Successful";
|
|
15876
|
+
JobState["Stopped"] = "Stopped";
|
|
15877
|
+
JobState["Suspended"] = "Suspended";
|
|
15878
|
+
JobState["Resumed"] = "Resumed";
|
|
15879
|
+
JobState["Cancelled"] = "Cancelled";
|
|
15880
|
+
JobState["Unknown"] = "Unknown";
|
|
15880
15881
|
})(JobState || (JobState = {}));
|
|
15881
15882
|
var ConnectionState;
|
|
15882
|
-
(function(
|
|
15883
|
-
|
|
15884
|
-
|
|
15885
|
-
|
|
15886
|
-
|
|
15883
|
+
(function(ConnectionState) {
|
|
15884
|
+
ConnectionState["Enabled"] = "Enabled";
|
|
15885
|
+
ConnectionState["Disabled"] = "Disabled";
|
|
15886
|
+
ConnectionState["Expired"] = "Expired";
|
|
15887
|
+
ConnectionState["Failed"] = "Failed";
|
|
15887
15888
|
})(ConnectionState || (ConnectionState = {}));
|
|
15888
15889
|
var ProcessMap = {
|
|
15889
15890
|
lastModificationTime: "lastModifiedTime",
|
|
@@ -15901,7 +15902,7 @@ var ProcessMap = {
|
|
|
15901
15902
|
|
|
15902
15903
|
class ProcessService extends FolderScopedService {
|
|
15903
15904
|
async getAll(options) {
|
|
15904
|
-
const transformProcessResponse = (
|
|
15905
|
+
const transformProcessResponse = (process2) => transformData(pascalToCamelCaseKeys(process2), ProcessMap);
|
|
15905
15906
|
const apiOptions = options ? transformOptions(options, ProcessMap) : options;
|
|
15906
15907
|
return PaginationHelpers.getAll({
|
|
15907
15908
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
@@ -15975,7 +15976,7 @@ class ProcessService extends FolderScopedService {
|
|
|
15975
15976
|
params: apiOptions,
|
|
15976
15977
|
headers
|
|
15977
15978
|
});
|
|
15978
|
-
const transformedProcess = response.data?.value.map((
|
|
15979
|
+
const transformedProcess = response.data?.value.map((process2) => transformData(pascalToCamelCaseKeys(process2), ProcessMap));
|
|
15979
15980
|
return transformedProcess;
|
|
15980
15981
|
}
|
|
15981
15982
|
async getById(id, folderId, options = {}) {
|
|
@@ -16064,37 +16065,37 @@ function resolveLegacyIdentity(request, folderPath) {
|
|
|
16064
16065
|
return { identity: {} };
|
|
16065
16066
|
}
|
|
16066
16067
|
var QueuePriority;
|
|
16067
|
-
(function(
|
|
16068
|
-
|
|
16069
|
-
|
|
16070
|
-
|
|
16068
|
+
(function(QueuePriority) {
|
|
16069
|
+
QueuePriority["High"] = "High";
|
|
16070
|
+
QueuePriority["Normal"] = "Normal";
|
|
16071
|
+
QueuePriority["Low"] = "Low";
|
|
16071
16072
|
})(QueuePriority || (QueuePriority = {}));
|
|
16072
16073
|
var QueueItemStatus;
|
|
16073
|
-
(function(
|
|
16074
|
-
|
|
16075
|
-
|
|
16076
|
-
|
|
16077
|
-
|
|
16078
|
-
|
|
16079
|
-
|
|
16080
|
-
|
|
16074
|
+
(function(QueueItemStatus) {
|
|
16075
|
+
QueueItemStatus["New"] = "New";
|
|
16076
|
+
QueueItemStatus["InProgress"] = "InProgress";
|
|
16077
|
+
QueueItemStatus["Failed"] = "Failed";
|
|
16078
|
+
QueueItemStatus["Successful"] = "Successful";
|
|
16079
|
+
QueueItemStatus["Abandoned"] = "Abandoned";
|
|
16080
|
+
QueueItemStatus["Retried"] = "Retried";
|
|
16081
|
+
QueueItemStatus["Deleted"] = "Deleted";
|
|
16081
16082
|
})(QueueItemStatus || (QueueItemStatus = {}));
|
|
16082
16083
|
var QueueItemReviewStatus;
|
|
16083
|
-
(function(
|
|
16084
|
-
|
|
16085
|
-
|
|
16086
|
-
|
|
16087
|
-
|
|
16084
|
+
(function(QueueItemReviewStatus) {
|
|
16085
|
+
QueueItemReviewStatus["None"] = "None";
|
|
16086
|
+
QueueItemReviewStatus["InReview"] = "InReview";
|
|
16087
|
+
QueueItemReviewStatus["Verified"] = "Verified";
|
|
16088
|
+
QueueItemReviewStatus["Retried"] = "Retried";
|
|
16088
16089
|
})(QueueItemReviewStatus || (QueueItemReviewStatus = {}));
|
|
16089
16090
|
var QueueExceptionType;
|
|
16090
|
-
(function(
|
|
16091
|
-
|
|
16092
|
-
|
|
16091
|
+
(function(QueueExceptionType) {
|
|
16092
|
+
QueueExceptionType["ApplicationException"] = "ApplicationException";
|
|
16093
|
+
QueueExceptionType["BusinessException"] = "BusinessException";
|
|
16093
16094
|
})(QueueExceptionType || (QueueExceptionType = {}));
|
|
16094
16095
|
var QueueTransactionOutcome;
|
|
16095
|
-
(function(
|
|
16096
|
-
|
|
16097
|
-
|
|
16096
|
+
(function(QueueTransactionOutcome) {
|
|
16097
|
+
QueueTransactionOutcome["Successful"] = "Successful";
|
|
16098
|
+
QueueTransactionOutcome["Failed"] = "Failed";
|
|
16098
16099
|
})(QueueTransactionOutcome || (QueueTransactionOutcome = {}));
|
|
16099
16100
|
function createQueueMethods(queueData, service) {
|
|
16100
16101
|
return {
|
|
@@ -16183,14 +16184,14 @@ class QueueService extends FolderScopedService {
|
|
|
16183
16184
|
}
|
|
16184
16185
|
async getById(id, folderIdOrOptions, options = {}) {
|
|
16185
16186
|
if (typeof folderIdOrOptions === "number") {
|
|
16186
|
-
const
|
|
16187
|
-
const
|
|
16188
|
-
const
|
|
16189
|
-
const
|
|
16190
|
-
headers
|
|
16191
|
-
params:
|
|
16187
|
+
const headers = createHeaders({ [FOLDER_ID]: folderIdOrOptions });
|
|
16188
|
+
const apiFieldOptions = transformOptions(options, QueueMap);
|
|
16189
|
+
const apiOptions = addPrefixToKeys(apiFieldOptions, ODATA_PREFIX, Object.keys(apiFieldOptions));
|
|
16190
|
+
const response = await this.get(QUEUE_ENDPOINTS.GET_BY_ID(id), {
|
|
16191
|
+
headers,
|
|
16192
|
+
params: apiOptions
|
|
16192
16193
|
});
|
|
16193
|
-
return transformData(pascalToCamelCaseKeys(
|
|
16194
|
+
return transformData(pascalToCamelCaseKeys(response.data), QueueMap);
|
|
16194
16195
|
}
|
|
16195
16196
|
const { folderId, folderKey, folderPath, ...queryOptions } = folderIdOrOptions ?? {};
|
|
16196
16197
|
const headers = resolveFolderHeaders({
|
|
@@ -16382,10 +16383,10 @@ var TaskCatalogMap = {
|
|
|
16382
16383
|
lastModificationTime: "lastModifiedTime"
|
|
16383
16384
|
};
|
|
16384
16385
|
var TaskCatalogRetentionAction;
|
|
16385
|
-
(function(
|
|
16386
|
-
|
|
16387
|
-
|
|
16388
|
-
|
|
16386
|
+
(function(TaskCatalogRetentionAction) {
|
|
16387
|
+
TaskCatalogRetentionAction["Delete"] = "Delete";
|
|
16388
|
+
TaskCatalogRetentionAction["Archive"] = "Archive";
|
|
16389
|
+
TaskCatalogRetentionAction["None"] = "None";
|
|
16389
16390
|
})(TaskCatalogRetentionAction || (TaskCatalogRetentionAction = {}));
|
|
16390
16391
|
|
|
16391
16392
|
class TaskCatalogService extends FolderScopedService {
|
|
@@ -16485,7 +16486,7 @@ __decorate([
|
|
|
16485
16486
|
track("TaskCatalogs.UpdateByName")
|
|
16486
16487
|
], TaskCatalogService.prototype, "updateByName", null);
|
|
16487
16488
|
|
|
16488
|
-
class
|
|
16489
|
+
class UiPath extends UiPath$1 {
|
|
16489
16490
|
constructor() {
|
|
16490
16491
|
super(...arguments);
|
|
16491
16492
|
this._services = new Map;
|
|
@@ -16533,38 +16534,38 @@ class UiPath2 extends UiPath$1 {
|
|
|
16533
16534
|
}
|
|
16534
16535
|
}
|
|
16535
16536
|
var FunctionHttpMethod;
|
|
16536
|
-
(function(
|
|
16537
|
-
|
|
16538
|
-
|
|
16539
|
-
|
|
16540
|
-
|
|
16541
|
-
|
|
16537
|
+
(function(FunctionHttpMethod) {
|
|
16538
|
+
FunctionHttpMethod["Get"] = "Get";
|
|
16539
|
+
FunctionHttpMethod["Post"] = "Post";
|
|
16540
|
+
FunctionHttpMethod["Put"] = "Put";
|
|
16541
|
+
FunctionHttpMethod["Patch"] = "Patch";
|
|
16542
|
+
FunctionHttpMethod["Delete"] = "Delete";
|
|
16542
16543
|
})(FunctionHttpMethod || (FunctionHttpMethod = {}));
|
|
16543
16544
|
var FolderType;
|
|
16544
|
-
(function(
|
|
16545
|
-
|
|
16546
|
-
|
|
16547
|
-
|
|
16548
|
-
|
|
16549
|
-
|
|
16545
|
+
(function(FolderType) {
|
|
16546
|
+
FolderType["Standard"] = "Standard";
|
|
16547
|
+
FolderType["Personal"] = "Personal";
|
|
16548
|
+
FolderType["Virtual"] = "Virtual";
|
|
16549
|
+
FolderType["Solution"] = "Solution";
|
|
16550
|
+
FolderType["DebugSolution"] = "DebugSolution";
|
|
16550
16551
|
})(FolderType || (FolderType = {}));
|
|
16551
16552
|
var FolderProvisionType;
|
|
16552
|
-
(function(
|
|
16553
|
-
|
|
16554
|
-
|
|
16553
|
+
(function(FolderProvisionType) {
|
|
16554
|
+
FolderProvisionType["Manual"] = "Manual";
|
|
16555
|
+
FolderProvisionType["Automatic"] = "Automatic";
|
|
16555
16556
|
})(FolderProvisionType || (FolderProvisionType = {}));
|
|
16556
16557
|
var FolderPermissionModel;
|
|
16557
|
-
(function(
|
|
16558
|
-
|
|
16559
|
-
|
|
16558
|
+
(function(FolderPermissionModel) {
|
|
16559
|
+
FolderPermissionModel["InheritFromTenant"] = "InheritFromTenant";
|
|
16560
|
+
FolderPermissionModel["FineGrained"] = "FineGrained";
|
|
16560
16561
|
})(FolderPermissionModel || (FolderPermissionModel = {}));
|
|
16561
16562
|
var FolderFeedType;
|
|
16562
|
-
(function(
|
|
16563
|
-
|
|
16564
|
-
|
|
16565
|
-
|
|
16566
|
-
|
|
16567
|
-
|
|
16563
|
+
(function(FolderFeedType) {
|
|
16564
|
+
FolderFeedType["Undefined"] = "Undefined";
|
|
16565
|
+
FolderFeedType["Processes"] = "Processes";
|
|
16566
|
+
FolderFeedType["Libraries"] = "Libraries";
|
|
16567
|
+
FolderFeedType["PersonalWorkspace"] = "PersonalWorkspace";
|
|
16568
|
+
FolderFeedType["FolderHierarchy"] = "FolderHierarchy";
|
|
16568
16569
|
})(FolderFeedType || (FolderFeedType = {}));
|
|
16569
16570
|
var CommonFieldMap = {
|
|
16570
16571
|
createdAt: "createdTime",
|
|
@@ -16583,35 +16584,35 @@ var MessageMap = {
|
|
|
16583
16584
|
...CommonFieldMap
|
|
16584
16585
|
};
|
|
16585
16586
|
var MessageRole;
|
|
16586
|
-
(function(
|
|
16587
|
-
|
|
16588
|
-
|
|
16589
|
-
|
|
16587
|
+
(function(MessageRole) {
|
|
16588
|
+
MessageRole["System"] = "system";
|
|
16589
|
+
MessageRole["User"] = "user";
|
|
16590
|
+
MessageRole["Assistant"] = "assistant";
|
|
16590
16591
|
})(MessageRole || (MessageRole = {}));
|
|
16591
16592
|
var InterruptType;
|
|
16592
|
-
(function(
|
|
16593
|
-
|
|
16593
|
+
(function(InterruptType) {
|
|
16594
|
+
InterruptType["ToolCallConfirmation"] = "uipath_cas_tool_call_confirmation";
|
|
16594
16595
|
})(InterruptType || (InterruptType = {}));
|
|
16595
16596
|
var SortOrder;
|
|
16596
|
-
(function(
|
|
16597
|
-
|
|
16598
|
-
|
|
16597
|
+
(function(SortOrder) {
|
|
16598
|
+
SortOrder["Ascending"] = "ascending";
|
|
16599
|
+
SortOrder["Descending"] = "descending";
|
|
16599
16600
|
})(SortOrder || (SortOrder = {}));
|
|
16600
16601
|
var FeedbackRating;
|
|
16601
|
-
(function(
|
|
16602
|
-
|
|
16603
|
-
|
|
16602
|
+
(function(FeedbackRating) {
|
|
16603
|
+
FeedbackRating["Positive"] = "positive";
|
|
16604
|
+
FeedbackRating["Negative"] = "negative";
|
|
16604
16605
|
})(FeedbackRating || (FeedbackRating = {}));
|
|
16605
16606
|
var InputStreamSpeechSensitivity;
|
|
16606
|
-
(function(
|
|
16607
|
-
|
|
16608
|
-
|
|
16609
|
-
|
|
16607
|
+
(function(InputStreamSpeechSensitivity) {
|
|
16608
|
+
InputStreamSpeechSensitivity["Unspecified"] = "UNSPECIFIED";
|
|
16609
|
+
InputStreamSpeechSensitivity["High"] = "HIGH";
|
|
16610
|
+
InputStreamSpeechSensitivity["Low"] = "LOW";
|
|
16610
16611
|
})(InputStreamSpeechSensitivity || (InputStreamSpeechSensitivity = {}));
|
|
16611
16612
|
var CitationErrorType;
|
|
16612
|
-
(function(
|
|
16613
|
-
|
|
16614
|
-
|
|
16613
|
+
(function(CitationErrorType) {
|
|
16614
|
+
CitationErrorType["CitationNotEnded"] = "CitationNotEnded";
|
|
16615
|
+
CitationErrorType["CitationNotStarted"] = "CitationNotStarted";
|
|
16615
16616
|
})(CitationErrorType || (CitationErrorType = {}));
|
|
16616
16617
|
var AgentMap = {
|
|
16617
16618
|
...CommonFieldMap
|
|
@@ -16620,477 +16621,477 @@ var UserSettingsMap = {
|
|
|
16620
16621
|
...CommonFieldMap
|
|
16621
16622
|
};
|
|
16622
16623
|
var FeedbackStatus;
|
|
16623
|
-
(function(
|
|
16624
|
-
|
|
16625
|
-
|
|
16626
|
-
|
|
16624
|
+
(function(FeedbackStatus) {
|
|
16625
|
+
FeedbackStatus[FeedbackStatus["Pending"] = 0] = "Pending";
|
|
16626
|
+
FeedbackStatus[FeedbackStatus["Approved"] = 1] = "Approved";
|
|
16627
|
+
FeedbackStatus[FeedbackStatus["Dismissed"] = 2] = "Dismissed";
|
|
16627
16628
|
})(FeedbackStatus || (FeedbackStatus = {}));
|
|
16628
16629
|
var AgentListSortColumn;
|
|
16629
|
-
(function(
|
|
16630
|
-
|
|
16631
|
-
|
|
16632
|
-
|
|
16633
|
-
|
|
16634
|
-
|
|
16635
|
-
|
|
16636
|
-
|
|
16637
|
-
|
|
16638
|
-
|
|
16630
|
+
(function(AgentListSortColumn) {
|
|
16631
|
+
AgentListSortColumn["AgentName"] = "AgentName";
|
|
16632
|
+
AgentListSortColumn["ParentProcess"] = "ParentProcess";
|
|
16633
|
+
AgentListSortColumn["LastRun"] = "LastRun";
|
|
16634
|
+
AgentListSortColumn["HealthScore"] = "HealthScore";
|
|
16635
|
+
AgentListSortColumn["LastIncident"] = "LastIncident";
|
|
16636
|
+
AgentListSortColumn["FolderName"] = "FolderName";
|
|
16637
|
+
AgentListSortColumn["QuantityAGU"] = "QuantityAGU";
|
|
16638
|
+
AgentListSortColumn["QuantityPLTU"] = "QuantityPLTU";
|
|
16639
|
+
AgentListSortColumn["FolderPath"] = "FolderPath";
|
|
16639
16640
|
})(AgentListSortColumn || (AgentListSortColumn = {}));
|
|
16640
16641
|
var AgentErrorSortColumn;
|
|
16641
|
-
(function(
|
|
16642
|
-
|
|
16643
|
-
|
|
16644
|
-
|
|
16645
|
-
|
|
16646
|
-
|
|
16647
|
-
|
|
16648
|
-
|
|
16649
|
-
|
|
16650
|
-
|
|
16651
|
-
|
|
16652
|
-
|
|
16653
|
-
|
|
16642
|
+
(function(AgentErrorSortColumn) {
|
|
16643
|
+
AgentErrorSortColumn["AgentId"] = "AgentId";
|
|
16644
|
+
AgentErrorSortColumn["AgentName"] = "AgentName";
|
|
16645
|
+
AgentErrorSortColumn["ParentProcessName"] = "ParentProcessName";
|
|
16646
|
+
AgentErrorSortColumn["ErrorTitle"] = "ErrorTitle";
|
|
16647
|
+
AgentErrorSortColumn["FirstSeenStartTime"] = "FirstSeenStartTime";
|
|
16648
|
+
AgentErrorSortColumn["ExecutionCount"] = "ExecutionCount";
|
|
16649
|
+
AgentErrorSortColumn["Type"] = "Type";
|
|
16650
|
+
AgentErrorSortColumn["FirstSeenFolderName"] = "FirstSeenFolderName";
|
|
16651
|
+
AgentErrorSortColumn["FirstSeenFolderPath"] = "FirstSeenFolderPath";
|
|
16652
|
+
AgentErrorSortColumn["LastSeenStartTime"] = "LastSeenStartTime";
|
|
16653
|
+
AgentErrorSortColumn["LastSeenFolderName"] = "LastSeenFolderName";
|
|
16654
|
+
AgentErrorSortColumn["LastSeenFolderPath"] = "LastSeenFolderPath";
|
|
16654
16655
|
})(AgentErrorSortColumn || (AgentErrorSortColumn = {}));
|
|
16655
16656
|
var AgentType;
|
|
16656
|
-
(function(
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16657
|
+
(function(AgentType) {
|
|
16658
|
+
AgentType["Autonomous"] = "Autonomous";
|
|
16659
|
+
AgentType["Conversational"] = "Conversational";
|
|
16660
|
+
AgentType["Coded"] = "Coded";
|
|
16660
16661
|
})(AgentType || (AgentType = {}));
|
|
16661
16662
|
var AgentExecutionType;
|
|
16662
|
-
(function(
|
|
16663
|
-
|
|
16664
|
-
|
|
16663
|
+
(function(AgentExecutionType) {
|
|
16664
|
+
AgentExecutionType["Debug"] = "Debug";
|
|
16665
|
+
AgentExecutionType["Runtime"] = "Runtime";
|
|
16665
16666
|
})(AgentExecutionType || (AgentExecutionType = {}));
|
|
16666
16667
|
var AgentMemoryExecutionType;
|
|
16667
|
-
(function(
|
|
16668
|
-
|
|
16669
|
-
|
|
16668
|
+
(function(AgentMemoryExecutionType) {
|
|
16669
|
+
AgentMemoryExecutionType["Debug"] = "Debug";
|
|
16670
|
+
AgentMemoryExecutionType["Runtime"] = "Runtime";
|
|
16670
16671
|
})(AgentMemoryExecutionType || (AgentMemoryExecutionType = {}));
|
|
16671
16672
|
var DocumentActionPriority;
|
|
16672
|
-
(function(
|
|
16673
|
-
|
|
16674
|
-
|
|
16675
|
-
|
|
16676
|
-
|
|
16673
|
+
(function(DocumentActionPriority) {
|
|
16674
|
+
DocumentActionPriority["Low"] = "Low";
|
|
16675
|
+
DocumentActionPriority["Medium"] = "Medium";
|
|
16676
|
+
DocumentActionPriority["High"] = "High";
|
|
16677
|
+
DocumentActionPriority["Critical"] = "Critical";
|
|
16677
16678
|
})(DocumentActionPriority || (DocumentActionPriority = {}));
|
|
16678
16679
|
var DocumentActionStatus;
|
|
16679
|
-
(function(
|
|
16680
|
-
|
|
16681
|
-
|
|
16682
|
-
|
|
16680
|
+
(function(DocumentActionStatus) {
|
|
16681
|
+
DocumentActionStatus["Unassigned"] = "Unassigned";
|
|
16682
|
+
DocumentActionStatus["Pending"] = "Pending";
|
|
16683
|
+
DocumentActionStatus["Completed"] = "Completed";
|
|
16683
16684
|
})(DocumentActionStatus || (DocumentActionStatus = {}));
|
|
16684
16685
|
var DocumentActionType;
|
|
16685
|
-
(function(
|
|
16686
|
-
|
|
16687
|
-
|
|
16686
|
+
(function(DocumentActionType) {
|
|
16687
|
+
DocumentActionType["Validation"] = "Validation";
|
|
16688
|
+
DocumentActionType["Classification"] = "Classification";
|
|
16688
16689
|
})(DocumentActionType || (DocumentActionType = {}));
|
|
16689
16690
|
var ProjectProperties;
|
|
16690
|
-
(function(
|
|
16691
|
-
|
|
16692
|
-
|
|
16693
|
-
|
|
16694
|
-
|
|
16691
|
+
(function(ProjectProperties) {
|
|
16692
|
+
ProjectProperties["IsPredefined"] = "IsPredefined";
|
|
16693
|
+
ProjectProperties["SupportsTags"] = "SupportsTags";
|
|
16694
|
+
ProjectProperties["SupportsVersions"] = "SupportsVersions";
|
|
16695
|
+
ProjectProperties["IsSplittingEnabled"] = "IsSplittingEnabled";
|
|
16695
16696
|
})(ProjectProperties || (ProjectProperties = {}));
|
|
16696
16697
|
var ProjectType;
|
|
16697
|
-
(function(
|
|
16698
|
-
|
|
16699
|
-
|
|
16700
|
-
|
|
16701
|
-
|
|
16698
|
+
(function(ProjectType) {
|
|
16699
|
+
ProjectType["Classic"] = "Classic";
|
|
16700
|
+
ProjectType["Modern"] = "Modern";
|
|
16701
|
+
ProjectType["IXP"] = "IXP";
|
|
16702
|
+
ProjectType["Unknown"] = "Unknown";
|
|
16702
16703
|
})(ProjectType || (ProjectType = {}));
|
|
16703
16704
|
var ResourceStatus;
|
|
16704
|
-
(function(
|
|
16705
|
-
|
|
16706
|
-
|
|
16707
|
-
|
|
16708
|
-
|
|
16709
|
-
|
|
16710
|
-
|
|
16711
|
-
|
|
16712
|
-
|
|
16713
|
-
|
|
16714
|
-
|
|
16705
|
+
(function(ResourceStatus) {
|
|
16706
|
+
ResourceStatus["Unknown"] = "Unknown";
|
|
16707
|
+
ResourceStatus["NotStarted"] = "NotStarted";
|
|
16708
|
+
ResourceStatus["ExportInProgress"] = "ExportInProgress";
|
|
16709
|
+
ResourceStatus["ExportCompleted"] = "ExportCompleted";
|
|
16710
|
+
ResourceStatus["InProgress"] = "InProgress";
|
|
16711
|
+
ResourceStatus["Suspended"] = "Suspended";
|
|
16712
|
+
ResourceStatus["Resuming"] = "Resuming";
|
|
16713
|
+
ResourceStatus["Available"] = "Available";
|
|
16714
|
+
ResourceStatus["Error"] = "Error";
|
|
16715
|
+
ResourceStatus["Deleting"] = "Deleting";
|
|
16715
16716
|
})(ResourceStatus || (ResourceStatus = {}));
|
|
16716
16717
|
var ResourceType;
|
|
16717
|
-
(function(
|
|
16718
|
-
|
|
16719
|
-
|
|
16720
|
-
|
|
16721
|
-
|
|
16718
|
+
(function(ResourceType) {
|
|
16719
|
+
ResourceType["Specialized"] = "Specialized";
|
|
16720
|
+
ResourceType["Generative"] = "Generative";
|
|
16721
|
+
ResourceType["Custom"] = "Custom";
|
|
16722
|
+
ResourceType["Unknown"] = "Unknown";
|
|
16722
16723
|
})(ResourceType || (ResourceType = {}));
|
|
16723
16724
|
var MarkupType;
|
|
16724
|
-
(function(
|
|
16725
|
-
|
|
16726
|
-
|
|
16727
|
-
|
|
16728
|
-
|
|
16725
|
+
(function(MarkupType) {
|
|
16726
|
+
MarkupType["Unknown"] = "Unknown";
|
|
16727
|
+
MarkupType["Circled"] = "Circled";
|
|
16728
|
+
MarkupType["Underlined"] = "Underlined";
|
|
16729
|
+
MarkupType["Strikethrough"] = "Strikethrough";
|
|
16729
16730
|
})(MarkupType || (MarkupType = {}));
|
|
16730
16731
|
var ProcessingSource;
|
|
16731
|
-
(function(
|
|
16732
|
-
|
|
16733
|
-
|
|
16734
|
-
|
|
16735
|
-
|
|
16736
|
-
|
|
16732
|
+
(function(ProcessingSource) {
|
|
16733
|
+
ProcessingSource["Unknown"] = "Unknown";
|
|
16734
|
+
ProcessingSource["Ocr"] = "Ocr";
|
|
16735
|
+
ProcessingSource["Pdf"] = "Pdf";
|
|
16736
|
+
ProcessingSource["PlainText"] = "PlainText";
|
|
16737
|
+
ProcessingSource["PdfAndOcr"] = "PdfAndOcr";
|
|
16737
16738
|
})(ProcessingSource || (ProcessingSource = {}));
|
|
16738
16739
|
var Rotation;
|
|
16739
|
-
(function(
|
|
16740
|
-
|
|
16741
|
-
|
|
16742
|
-
|
|
16743
|
-
|
|
16744
|
-
|
|
16740
|
+
(function(Rotation) {
|
|
16741
|
+
Rotation["None"] = "None";
|
|
16742
|
+
Rotation["Rotated90"] = "Rotated90";
|
|
16743
|
+
Rotation["Rotated180"] = "Rotated180";
|
|
16744
|
+
Rotation["Rotated270"] = "Rotated270";
|
|
16745
|
+
Rotation["Other"] = "Other";
|
|
16745
16746
|
})(Rotation || (Rotation = {}));
|
|
16746
16747
|
var SectionType;
|
|
16747
|
-
(function(
|
|
16748
|
-
|
|
16749
|
-
|
|
16750
|
-
|
|
16751
|
-
|
|
16752
|
-
|
|
16748
|
+
(function(SectionType) {
|
|
16749
|
+
SectionType["Vertical"] = "Vertical";
|
|
16750
|
+
SectionType["Paragraph"] = "Paragraph";
|
|
16751
|
+
SectionType["Header"] = "Header";
|
|
16752
|
+
SectionType["Footer"] = "Footer";
|
|
16753
|
+
SectionType["Table"] = "Table";
|
|
16753
16754
|
})(SectionType || (SectionType = {}));
|
|
16754
16755
|
var TextType;
|
|
16755
|
-
(function(
|
|
16756
|
-
|
|
16757
|
-
|
|
16758
|
-
|
|
16759
|
-
|
|
16760
|
-
|
|
16761
|
-
|
|
16762
|
-
|
|
16763
|
-
|
|
16764
|
-
|
|
16765
|
-
|
|
16766
|
-
|
|
16756
|
+
(function(TextType) {
|
|
16757
|
+
TextType["Unknown"] = "Unknown";
|
|
16758
|
+
TextType["Text"] = "Text";
|
|
16759
|
+
TextType["Checkbox"] = "Checkbox";
|
|
16760
|
+
TextType["Handwriting"] = "Handwriting";
|
|
16761
|
+
TextType["Barcode"] = "Barcode";
|
|
16762
|
+
TextType["QRcode"] = "QRcode";
|
|
16763
|
+
TextType["Stamp"] = "Stamp";
|
|
16764
|
+
TextType["Logo"] = "Logo";
|
|
16765
|
+
TextType["Circle"] = "Circle";
|
|
16766
|
+
TextType["Underline"] = "Underline";
|
|
16767
|
+
TextType["Cut"] = "Cut";
|
|
16767
16768
|
})(TextType || (TextType = {}));
|
|
16768
16769
|
var WordGroupType;
|
|
16769
|
-
(function(
|
|
16770
|
-
|
|
16771
|
-
|
|
16772
|
-
|
|
16773
|
-
|
|
16774
|
-
|
|
16770
|
+
(function(WordGroupType) {
|
|
16771
|
+
WordGroupType["Sentence"] = "Sentence";
|
|
16772
|
+
WordGroupType["TableCell"] = "TableCell";
|
|
16773
|
+
WordGroupType["TableRowEnd"] = "TableRowEnd";
|
|
16774
|
+
WordGroupType["Heading"] = "Heading";
|
|
16775
|
+
WordGroupType["Other"] = "Other";
|
|
16775
16776
|
})(WordGroupType || (WordGroupType = {}));
|
|
16776
16777
|
var ModelKind;
|
|
16777
|
-
(function(
|
|
16778
|
-
|
|
16779
|
-
|
|
16778
|
+
(function(ModelKind) {
|
|
16779
|
+
ModelKind["Extractor"] = "Extractor";
|
|
16780
|
+
ModelKind["Classifier"] = "Classifier";
|
|
16780
16781
|
})(ModelKind || (ModelKind = {}));
|
|
16781
16782
|
var ModelType;
|
|
16782
|
-
(function(
|
|
16783
|
-
|
|
16784
|
-
|
|
16785
|
-
|
|
16783
|
+
(function(ModelType) {
|
|
16784
|
+
ModelType["IXP"] = "IXP";
|
|
16785
|
+
ModelType["Modern"] = "Modern";
|
|
16786
|
+
ModelType["Predefined"] = "Predefined";
|
|
16786
16787
|
})(ModelType || (ModelType = {}));
|
|
16787
16788
|
var ErrorSeverity;
|
|
16788
|
-
(function(
|
|
16789
|
-
|
|
16790
|
-
|
|
16791
|
-
|
|
16789
|
+
(function(ErrorSeverity) {
|
|
16790
|
+
ErrorSeverity["Info"] = "Info";
|
|
16791
|
+
ErrorSeverity["Warning"] = "Warning";
|
|
16792
|
+
ErrorSeverity["Error"] = "Error";
|
|
16792
16793
|
})(ErrorSeverity || (ErrorSeverity = {}));
|
|
16793
16794
|
var ClassifierDocumentTypeType;
|
|
16794
|
-
(function(
|
|
16795
|
-
|
|
16796
|
-
|
|
16797
|
-
|
|
16798
|
-
|
|
16795
|
+
(function(ClassifierDocumentTypeType) {
|
|
16796
|
+
ClassifierDocumentTypeType["FormsAi"] = "FormsAi";
|
|
16797
|
+
ClassifierDocumentTypeType["SemiStructuredAi"] = "SemiStructuredAi";
|
|
16798
|
+
ClassifierDocumentTypeType["Helix"] = "Helix";
|
|
16799
|
+
ClassifierDocumentTypeType["Unknown"] = "Unknown";
|
|
16799
16800
|
})(ClassifierDocumentTypeType || (ClassifierDocumentTypeType = {}));
|
|
16800
16801
|
var CreateTaskPriority;
|
|
16801
|
-
(function(
|
|
16802
|
-
|
|
16803
|
-
|
|
16804
|
-
|
|
16805
|
-
|
|
16802
|
+
(function(CreateTaskPriority) {
|
|
16803
|
+
CreateTaskPriority["Low"] = "Low";
|
|
16804
|
+
CreateTaskPriority["Medium"] = "Medium";
|
|
16805
|
+
CreateTaskPriority["High"] = "High";
|
|
16806
|
+
CreateTaskPriority["Critical"] = "Critical";
|
|
16806
16807
|
})(CreateTaskPriority || (CreateTaskPriority = {}));
|
|
16807
16808
|
var GptFieldType;
|
|
16808
|
-
(function(
|
|
16809
|
-
|
|
16810
|
-
|
|
16811
|
-
|
|
16812
|
-
|
|
16813
|
-
|
|
16814
|
-
|
|
16809
|
+
(function(GptFieldType) {
|
|
16810
|
+
GptFieldType["Address"] = "Address";
|
|
16811
|
+
GptFieldType["Boolean"] = "Boolean";
|
|
16812
|
+
GptFieldType["Date"] = "Date";
|
|
16813
|
+
GptFieldType["Name"] = "Name";
|
|
16814
|
+
GptFieldType["Number"] = "Number";
|
|
16815
|
+
GptFieldType["Text"] = "Text";
|
|
16815
16816
|
})(GptFieldType || (GptFieldType = {}));
|
|
16816
16817
|
var JobStatus;
|
|
16817
|
-
(function(
|
|
16818
|
-
|
|
16819
|
-
|
|
16820
|
-
|
|
16821
|
-
|
|
16818
|
+
(function(JobStatus) {
|
|
16819
|
+
JobStatus["Succeeded"] = "Succeeded";
|
|
16820
|
+
JobStatus["Failed"] = "Failed";
|
|
16821
|
+
JobStatus["Running"] = "Running";
|
|
16822
|
+
JobStatus["NotStarted"] = "NotStarted";
|
|
16822
16823
|
})(JobStatus || (JobStatus = {}));
|
|
16823
16824
|
var ValidationDisplayMode;
|
|
16824
|
-
(function(
|
|
16825
|
-
|
|
16826
|
-
|
|
16825
|
+
(function(ValidationDisplayMode) {
|
|
16826
|
+
ValidationDisplayMode["Classic"] = "Classic";
|
|
16827
|
+
ValidationDisplayMode["Compact"] = "Compact";
|
|
16827
16828
|
})(ValidationDisplayMode || (ValidationDisplayMode = {}));
|
|
16828
16829
|
var ResultsDataSource;
|
|
16829
|
-
(function(
|
|
16830
|
-
|
|
16831
|
-
|
|
16832
|
-
|
|
16833
|
-
|
|
16834
|
-
|
|
16830
|
+
(function(ResultsDataSource) {
|
|
16831
|
+
ResultsDataSource["Automatic"] = "Automatic";
|
|
16832
|
+
ResultsDataSource["Manual"] = "Manual";
|
|
16833
|
+
ResultsDataSource["ManuallyChanged"] = "ManuallyChanged";
|
|
16834
|
+
ResultsDataSource["Defaulted"] = "Defaulted";
|
|
16835
|
+
ResultsDataSource["External"] = "External";
|
|
16835
16836
|
})(ResultsDataSource || (ResultsDataSource = {}));
|
|
16836
16837
|
var ComparisonOperator;
|
|
16837
|
-
(function(
|
|
16838
|
-
|
|
16839
|
-
|
|
16840
|
-
|
|
16841
|
-
|
|
16842
|
-
|
|
16843
|
-
|
|
16838
|
+
(function(ComparisonOperator) {
|
|
16839
|
+
ComparisonOperator["Equals"] = "Equals";
|
|
16840
|
+
ComparisonOperator["NotEquals"] = "NotEquals";
|
|
16841
|
+
ComparisonOperator["Greater"] = "Greater";
|
|
16842
|
+
ComparisonOperator["Less"] = "Less";
|
|
16843
|
+
ComparisonOperator["GreaterOrEqual"] = "GreaterOrEqual";
|
|
16844
|
+
ComparisonOperator["LessOrEqual"] = "LessOrEqual";
|
|
16844
16845
|
})(ComparisonOperator || (ComparisonOperator = {}));
|
|
16845
16846
|
var Criticality;
|
|
16846
|
-
(function(
|
|
16847
|
-
|
|
16848
|
-
|
|
16847
|
+
(function(Criticality) {
|
|
16848
|
+
Criticality["Must"] = "Must";
|
|
16849
|
+
Criticality["Should"] = "Should";
|
|
16849
16850
|
})(Criticality || (Criticality = {}));
|
|
16850
16851
|
var FieldType;
|
|
16851
|
-
(function(
|
|
16852
|
-
|
|
16853
|
-
|
|
16854
|
-
|
|
16855
|
-
|
|
16856
|
-
|
|
16857
|
-
|
|
16858
|
-
|
|
16859
|
-
|
|
16860
|
-
|
|
16861
|
-
|
|
16862
|
-
|
|
16863
|
-
|
|
16852
|
+
(function(FieldType) {
|
|
16853
|
+
FieldType["Text"] = "Text";
|
|
16854
|
+
FieldType["Number"] = "Number";
|
|
16855
|
+
FieldType["Date"] = "Date";
|
|
16856
|
+
FieldType["Name"] = "Name";
|
|
16857
|
+
FieldType["Address"] = "Address";
|
|
16858
|
+
FieldType["Keyword"] = "Keyword";
|
|
16859
|
+
FieldType["Set"] = "Set";
|
|
16860
|
+
FieldType["Boolean"] = "Boolean";
|
|
16861
|
+
FieldType["Table"] = "Table";
|
|
16862
|
+
FieldType["Internal"] = "Internal";
|
|
16863
|
+
FieldType["FieldGroup"] = "FieldGroup";
|
|
16864
|
+
FieldType["MonetaryQuantity"] = "MonetaryQuantity";
|
|
16864
16865
|
})(FieldType || (FieldType = {}));
|
|
16865
16866
|
var LogicalOperator;
|
|
16866
|
-
(function(
|
|
16867
|
-
|
|
16868
|
-
|
|
16867
|
+
(function(LogicalOperator) {
|
|
16868
|
+
LogicalOperator["AND"] = "AND";
|
|
16869
|
+
LogicalOperator["OR"] = "OR";
|
|
16869
16870
|
})(LogicalOperator || (LogicalOperator = {}));
|
|
16870
16871
|
var RuleType;
|
|
16871
|
-
(function(
|
|
16872
|
-
|
|
16873
|
-
|
|
16874
|
-
|
|
16875
|
-
|
|
16876
|
-
|
|
16877
|
-
|
|
16878
|
-
|
|
16879
|
-
|
|
16880
|
-
|
|
16881
|
-
|
|
16882
|
-
|
|
16883
|
-
|
|
16884
|
-
|
|
16872
|
+
(function(RuleType) {
|
|
16873
|
+
RuleType["Mandatory"] = "Mandatory";
|
|
16874
|
+
RuleType["PossibleValues"] = "PossibleValues";
|
|
16875
|
+
RuleType["Regex"] = "Regex";
|
|
16876
|
+
RuleType["StartsWith"] = "StartsWith";
|
|
16877
|
+
RuleType["EndsWith"] = "EndsWith";
|
|
16878
|
+
RuleType["FixedLength"] = "FixedLength";
|
|
16879
|
+
RuleType["IsNumeric"] = "IsNumeric";
|
|
16880
|
+
RuleType["IsDate"] = "IsDate";
|
|
16881
|
+
RuleType["IsEmail"] = "IsEmail";
|
|
16882
|
+
RuleType["Contains"] = "Contains";
|
|
16883
|
+
RuleType["Expression"] = "Expression";
|
|
16884
|
+
RuleType["TableExpression"] = "TableExpression";
|
|
16885
|
+
RuleType["IsEmpty"] = "IsEmpty";
|
|
16885
16886
|
})(RuleType || (RuleType = {}));
|
|
16886
16887
|
var ActionStatus;
|
|
16887
|
-
(function(
|
|
16888
|
-
|
|
16889
|
-
|
|
16890
|
-
|
|
16888
|
+
(function(ActionStatus) {
|
|
16889
|
+
ActionStatus["Unassigned"] = "Unassigned";
|
|
16890
|
+
ActionStatus["Pending"] = "Pending";
|
|
16891
|
+
ActionStatus["Completed"] = "Completed";
|
|
16891
16892
|
})(ActionStatus || (ActionStatus = {}));
|
|
16892
16893
|
var PolicyEvaluationResult;
|
|
16893
|
-
(function(
|
|
16894
|
-
|
|
16895
|
-
|
|
16896
|
-
|
|
16897
|
-
|
|
16894
|
+
(function(PolicyEvaluationResult) {
|
|
16895
|
+
PolicyEvaluationResult["Allow"] = "Allow";
|
|
16896
|
+
PolicyEvaluationResult["Deny"] = "Deny";
|
|
16897
|
+
PolicyEvaluationResult["SimulatedAllow"] = "SimulatedAllow";
|
|
16898
|
+
PolicyEvaluationResult["SimulatedDeny"] = "SimulatedDeny";
|
|
16898
16899
|
})(PolicyEvaluationResult || (PolicyEvaluationResult = {}));
|
|
16899
16900
|
var PlatformSettingKey;
|
|
16900
|
-
(function(
|
|
16901
|
-
|
|
16902
|
-
|
|
16903
|
-
|
|
16904
|
-
|
|
16905
|
-
|
|
16906
|
-
|
|
16907
|
-
|
|
16908
|
-
|
|
16901
|
+
(function(PlatformSettingKey) {
|
|
16902
|
+
PlatformSettingKey["UserLanguage"] = "UserLanguage.Language";
|
|
16903
|
+
PlatformSettingKey["UserLanguageDate"] = "UserLanguage.Date";
|
|
16904
|
+
PlatformSettingKey["UserTheme"] = "UserTheme.Theme";
|
|
16905
|
+
PlatformSettingKey["UserAccessibility"] = "UserAccessibility.Accessibility";
|
|
16906
|
+
PlatformSettingKey["UserAlert"] = "UserAlert.AlertDuration";
|
|
16907
|
+
PlatformSettingKey["UserCaseAppOrder"] = "UserCase.AppOrderByTenant";
|
|
16908
|
+
PlatformSettingKey["UserCasePinnedInstancesByTenant"] = "UserCase.PinnedInstancesByTenant";
|
|
16909
|
+
PlatformSettingKey["UserCaseInstancesTableFiltersByTenant"] = "UserCase.InstancesTableFiltersByTenant";
|
|
16909
16910
|
})(PlatformSettingKey || (PlatformSettingKey = {}));
|
|
16910
16911
|
var PlatformUserType;
|
|
16911
|
-
(function(
|
|
16912
|
-
|
|
16913
|
-
|
|
16914
|
-
|
|
16915
|
-
|
|
16916
|
-
|
|
16917
|
-
|
|
16912
|
+
(function(PlatformUserType) {
|
|
16913
|
+
PlatformUserType["User"] = "user";
|
|
16914
|
+
PlatformUserType["Robot"] = "robot";
|
|
16915
|
+
PlatformUserType["DirectoryUser"] = "directoryUser";
|
|
16916
|
+
PlatformUserType["DirectoryGroup"] = "directoryGroup";
|
|
16917
|
+
PlatformUserType["RobotAccount"] = "robotAccount";
|
|
16918
|
+
PlatformUserType["Application"] = "application";
|
|
16918
16919
|
})(PlatformUserType || (PlatformUserType = {}));
|
|
16919
16920
|
var PlatformUserCategory;
|
|
16920
|
-
(function(
|
|
16921
|
-
|
|
16922
|
-
|
|
16923
|
-
|
|
16921
|
+
(function(PlatformUserCategory) {
|
|
16922
|
+
PlatformUserCategory["Local"] = "local";
|
|
16923
|
+
PlatformUserCategory["LinkedLocal"] = "linkedLocal";
|
|
16924
|
+
PlatformUserCategory["Directory"] = "directory";
|
|
16924
16925
|
})(PlatformUserCategory || (PlatformUserCategory = {}));
|
|
16925
16926
|
var PlatformUserSortField;
|
|
16926
|
-
(function(
|
|
16927
|
-
|
|
16928
|
-
|
|
16929
|
-
|
|
16930
|
-
|
|
16931
|
-
|
|
16932
|
-
|
|
16933
|
-
|
|
16934
|
-
|
|
16935
|
-
|
|
16936
|
-
|
|
16937
|
-
|
|
16938
|
-
|
|
16939
|
-
|
|
16940
|
-
|
|
16927
|
+
(function(PlatformUserSortField) {
|
|
16928
|
+
PlatformUserSortField["Id"] = "Id";
|
|
16929
|
+
PlatformUserSortField["UserName"] = "UserName";
|
|
16930
|
+
PlatformUserSortField["Email"] = "Email";
|
|
16931
|
+
PlatformUserSortField["EmailConfirmed"] = "EmailConfirmed";
|
|
16932
|
+
PlatformUserSortField["Name"] = "Name";
|
|
16933
|
+
PlatformUserSortField["Surname"] = "Surname";
|
|
16934
|
+
PlatformUserSortField["DisplayName"] = "DisplayName";
|
|
16935
|
+
PlatformUserSortField["CreatedTime"] = "CreationTime";
|
|
16936
|
+
PlatformUserSortField["LastModifiedTime"] = "LastModificationTime";
|
|
16937
|
+
PlatformUserSortField["LastLoginTime"] = "LastLoginTime";
|
|
16938
|
+
PlatformUserSortField["IsActive"] = "IsActive";
|
|
16939
|
+
PlatformUserSortField["Type"] = "Type";
|
|
16940
|
+
PlatformUserSortField["Category"] = "Category";
|
|
16941
|
+
PlatformUserSortField["InvitationAccepted"] = "InvitationAccepted";
|
|
16941
16942
|
})(PlatformUserSortField || (PlatformUserSortField = {}));
|
|
16942
16943
|
var PlatformUserSortOrder;
|
|
16943
|
-
(function(
|
|
16944
|
-
|
|
16945
|
-
|
|
16944
|
+
(function(PlatformUserSortOrder) {
|
|
16945
|
+
PlatformUserSortOrder["Ascending"] = "asc";
|
|
16946
|
+
PlatformUserSortOrder["Descending"] = "desc";
|
|
16946
16947
|
})(PlatformUserSortOrder || (PlatformUserSortOrder = {}));
|
|
16947
16948
|
var PlatformRoleType;
|
|
16948
|
-
(function(
|
|
16949
|
-
|
|
16950
|
-
|
|
16951
|
-
|
|
16949
|
+
(function(PlatformRoleType) {
|
|
16950
|
+
PlatformRoleType["BuiltIn"] = "BUILTIN";
|
|
16951
|
+
PlatformRoleType["Platform"] = "PLATFORM";
|
|
16952
|
+
PlatformRoleType["Custom"] = "CUSTOM";
|
|
16952
16953
|
})(PlatformRoleType || (PlatformRoleType = {}));
|
|
16953
16954
|
var PlatformRoleScopeType;
|
|
16954
|
-
(function(
|
|
16955
|
-
|
|
16956
|
-
|
|
16957
|
-
|
|
16958
|
-
|
|
16959
|
-
|
|
16960
|
-
|
|
16955
|
+
(function(PlatformRoleScopeType) {
|
|
16956
|
+
PlatformRoleScopeType["Organization"] = "ORGANIZATION";
|
|
16957
|
+
PlatformRoleScopeType["Tenant"] = "TENANT";
|
|
16958
|
+
PlatformRoleScopeType["Project"] = "PROJECT";
|
|
16959
|
+
PlatformRoleScopeType["Process"] = "PROCESS";
|
|
16960
|
+
PlatformRoleScopeType["App"] = "APP";
|
|
16961
|
+
PlatformRoleScopeType["Mixed"] = "MIXED";
|
|
16961
16962
|
})(PlatformRoleScopeType || (PlatformRoleScopeType = {}));
|
|
16962
16963
|
var PlatformActionScopeType;
|
|
16963
|
-
(function(
|
|
16964
|
-
|
|
16965
|
-
|
|
16966
|
-
|
|
16967
|
-
|
|
16968
|
-
|
|
16969
|
-
|
|
16970
|
-
|
|
16964
|
+
(function(PlatformActionScopeType) {
|
|
16965
|
+
PlatformActionScopeType["Any"] = "ANY";
|
|
16966
|
+
PlatformActionScopeType["None"] = "NONE";
|
|
16967
|
+
PlatformActionScopeType["Organization"] = "ORGANIZATION";
|
|
16968
|
+
PlatformActionScopeType["Tenant"] = "TENANT";
|
|
16969
|
+
PlatformActionScopeType["Folder"] = "FOLDER";
|
|
16970
|
+
PlatformActionScopeType["Project"] = "PROJECT";
|
|
16971
|
+
PlatformActionScopeType["Process"] = "PROCESS";
|
|
16971
16972
|
})(PlatformActionScopeType || (PlatformActionScopeType = {}));
|
|
16972
16973
|
var PlatformPrincipalType;
|
|
16973
|
-
(function(
|
|
16974
|
-
|
|
16975
|
-
|
|
16976
|
-
|
|
16977
|
-
|
|
16974
|
+
(function(PlatformPrincipalType) {
|
|
16975
|
+
PlatformPrincipalType["User"] = "User";
|
|
16976
|
+
PlatformPrincipalType["Group"] = "Group";
|
|
16977
|
+
PlatformPrincipalType["ExternalApplication"] = "ExternalApplication";
|
|
16978
|
+
PlatformPrincipalType["Robot"] = "Robot";
|
|
16978
16979
|
})(PlatformPrincipalType || (PlatformPrincipalType = {}));
|
|
16979
16980
|
var PlatformRoleSortField;
|
|
16980
|
-
(function(
|
|
16981
|
-
|
|
16982
|
-
|
|
16983
|
-
|
|
16984
|
-
|
|
16985
|
-
|
|
16986
|
-
|
|
16987
|
-
|
|
16988
|
-
|
|
16989
|
-
|
|
16990
|
-
|
|
16991
|
-
|
|
16992
|
-
|
|
16993
|
-
|
|
16994
|
-
|
|
16981
|
+
(function(PlatformRoleSortField) {
|
|
16982
|
+
PlatformRoleSortField["Id"] = "Id";
|
|
16983
|
+
PlatformRoleSortField["Name"] = "OriginalRoleName";
|
|
16984
|
+
PlatformRoleSortField["UniqueName"] = "UniqueName";
|
|
16985
|
+
PlatformRoleSortField["Description"] = "Description";
|
|
16986
|
+
PlatformRoleSortField["Type"] = "Type";
|
|
16987
|
+
PlatformRoleSortField["ScopeType"] = "ScopeType";
|
|
16988
|
+
PlatformRoleSortField["OrganizationId"] = "OrganizationId";
|
|
16989
|
+
PlatformRoleSortField["TenantId"] = "TenantId";
|
|
16990
|
+
PlatformRoleSortField["OwnerService"] = "OwnerService";
|
|
16991
|
+
PlatformRoleSortField["OwnerServiceId"] = "OwnerServiceId";
|
|
16992
|
+
PlatformRoleSortField["CreatedBy"] = "CreatedBy";
|
|
16993
|
+
PlatformRoleSortField["CreatedTime"] = "CreatedOn";
|
|
16994
|
+
PlatformRoleSortField["UpdatedBy"] = "UpdatedBy";
|
|
16995
|
+
PlatformRoleSortField["UpdatedTime"] = "UpdatedOn";
|
|
16995
16996
|
})(PlatformRoleSortField || (PlatformRoleSortField = {}));
|
|
16996
16997
|
var PlatformRoleSortOrder;
|
|
16997
|
-
(function(
|
|
16998
|
-
|
|
16999
|
-
|
|
16998
|
+
(function(PlatformRoleSortOrder) {
|
|
16999
|
+
PlatformRoleSortOrder["Ascending"] = "Asc";
|
|
17000
|
+
PlatformRoleSortOrder["Descending"] = "Desc";
|
|
17000
17001
|
})(PlatformRoleSortOrder || (PlatformRoleSortOrder = {}));
|
|
17001
17002
|
var PlatformGroupType;
|
|
17002
|
-
(function(
|
|
17003
|
-
|
|
17004
|
-
|
|
17003
|
+
(function(PlatformGroupType) {
|
|
17004
|
+
PlatformGroupType["BuiltIn"] = "builtIn";
|
|
17005
|
+
PlatformGroupType["Custom"] = "custom";
|
|
17005
17006
|
})(PlatformGroupType || (PlatformGroupType = {}));
|
|
17006
17007
|
var LifeCycleStage;
|
|
17007
|
-
(function(
|
|
17008
|
-
|
|
17009
|
-
|
|
17010
|
-
|
|
17011
|
-
|
|
17008
|
+
(function(LifeCycleStage) {
|
|
17009
|
+
LifeCycleStage["PREVIEW"] = "PREVIEW";
|
|
17010
|
+
LifeCycleStage["GA"] = "GA";
|
|
17011
|
+
LifeCycleStage["DEPRECATED"] = "DEPRECATED";
|
|
17012
|
+
LifeCycleStage["CUSTOM"] = "CUSTOM";
|
|
17012
17013
|
})(LifeCycleStage || (LifeCycleStage = {}));
|
|
17013
17014
|
var SpanStatus;
|
|
17014
|
-
(function(
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17020
|
-
|
|
17015
|
+
(function(SpanStatus) {
|
|
17016
|
+
SpanStatus["Unset"] = "Unset";
|
|
17017
|
+
SpanStatus["Ok"] = "Ok";
|
|
17018
|
+
SpanStatus["Error"] = "Error";
|
|
17019
|
+
SpanStatus["Running"] = "Running";
|
|
17020
|
+
SpanStatus["Restricted"] = "Restricted";
|
|
17021
|
+
SpanStatus["Cancelled"] = "Cancelled";
|
|
17021
17022
|
})(SpanStatus || (SpanStatus = {}));
|
|
17022
17023
|
var SpanSource;
|
|
17023
|
-
(function(
|
|
17024
|
-
|
|
17025
|
-
|
|
17026
|
-
|
|
17027
|
-
|
|
17028
|
-
|
|
17029
|
-
|
|
17030
|
-
|
|
17031
|
-
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17038
|
-
|
|
17039
|
-
|
|
17024
|
+
(function(SpanSource) {
|
|
17025
|
+
SpanSource["Testing"] = "Testing";
|
|
17026
|
+
SpanSource["Agents"] = "Agents";
|
|
17027
|
+
SpanSource["ProcessOrchestration"] = "ProcessOrchestration";
|
|
17028
|
+
SpanSource["ApiWorkflows"] = "ApiWorkflows";
|
|
17029
|
+
SpanSource["Robots"] = "Robots";
|
|
17030
|
+
SpanSource["ConversationalAgentsService"] = "ConversationalAgentsService";
|
|
17031
|
+
SpanSource["IntegrationServiceTrigger"] = "IntegrationServiceTrigger";
|
|
17032
|
+
SpanSource["Playground"] = "Playground";
|
|
17033
|
+
SpanSource["Governance"] = "Governance";
|
|
17034
|
+
SpanSource["IXPUnstructuredAndComplexDocuments"] = "IXPUnstructuredAndComplexDocuments";
|
|
17035
|
+
SpanSource["CodedAgents"] = "CodedAgents";
|
|
17036
|
+
SpanSource["IXPCommunicationsMining"] = "IXPCommunicationsMining";
|
|
17037
|
+
SpanSource["EnterpriseContextService"] = "EnterpriseContextService";
|
|
17038
|
+
SpanSource["MCP"] = "MCP";
|
|
17039
|
+
SpanSource["A2A"] = "A2A";
|
|
17040
|
+
SpanSource["Serverless"] = "Serverless";
|
|
17040
17041
|
})(SpanSource || (SpanSource = {}));
|
|
17041
17042
|
var SpanVerbosityLevel;
|
|
17042
|
-
(function(
|
|
17043
|
-
|
|
17044
|
-
|
|
17045
|
-
|
|
17046
|
-
|
|
17047
|
-
|
|
17048
|
-
|
|
17049
|
-
|
|
17043
|
+
(function(SpanVerbosityLevel) {
|
|
17044
|
+
SpanVerbosityLevel["Verbose"] = "Verbose";
|
|
17045
|
+
SpanVerbosityLevel["Trace"] = "Trace";
|
|
17046
|
+
SpanVerbosityLevel["Information"] = "Information";
|
|
17047
|
+
SpanVerbosityLevel["Warning"] = "Warning";
|
|
17048
|
+
SpanVerbosityLevel["Error"] = "Error";
|
|
17049
|
+
SpanVerbosityLevel["Critical"] = "Critical";
|
|
17050
|
+
SpanVerbosityLevel["Off"] = "Off";
|
|
17050
17051
|
})(SpanVerbosityLevel || (SpanVerbosityLevel = {}));
|
|
17051
17052
|
var SpanExecutionType;
|
|
17052
|
-
(function(
|
|
17053
|
-
|
|
17054
|
-
|
|
17053
|
+
(function(SpanExecutionType) {
|
|
17054
|
+
SpanExecutionType["Debug"] = "Debug";
|
|
17055
|
+
SpanExecutionType["Runtime"] = "Runtime";
|
|
17055
17056
|
})(SpanExecutionType || (SpanExecutionType = {}));
|
|
17056
17057
|
var SpanPermissionStatus;
|
|
17057
|
-
(function(
|
|
17058
|
-
|
|
17059
|
-
|
|
17060
|
-
|
|
17058
|
+
(function(SpanPermissionStatus) {
|
|
17059
|
+
SpanPermissionStatus["Allow"] = "Allow";
|
|
17060
|
+
SpanPermissionStatus["PartialBlock"] = "PartialBlock";
|
|
17061
|
+
SpanPermissionStatus["Block"] = "Block";
|
|
17061
17062
|
})(SpanPermissionStatus || (SpanPermissionStatus = {}));
|
|
17062
17063
|
var SpanAttachmentProvider;
|
|
17063
|
-
(function(
|
|
17064
|
-
|
|
17065
|
-
|
|
17064
|
+
(function(SpanAttachmentProvider) {
|
|
17065
|
+
SpanAttachmentProvider["Orchestrator"] = "Orchestrator";
|
|
17066
|
+
SpanAttachmentProvider["LLMOps"] = "LLMOps";
|
|
17066
17067
|
})(SpanAttachmentProvider || (SpanAttachmentProvider = {}));
|
|
17067
17068
|
var SpanAttachmentDirection;
|
|
17068
|
-
(function(
|
|
17069
|
-
|
|
17070
|
-
|
|
17071
|
-
|
|
17069
|
+
(function(SpanAttachmentDirection) {
|
|
17070
|
+
SpanAttachmentDirection["None"] = "None";
|
|
17071
|
+
SpanAttachmentDirection["In"] = "In";
|
|
17072
|
+
SpanAttachmentDirection["Out"] = "Out";
|
|
17072
17073
|
})(SpanAttachmentDirection || (SpanAttachmentDirection = {}));
|
|
17073
17074
|
var AgentGovernanceMode;
|
|
17074
|
-
(function(
|
|
17075
|
-
|
|
17076
|
-
|
|
17077
|
-
|
|
17075
|
+
(function(AgentGovernanceMode) {
|
|
17076
|
+
AgentGovernanceMode["Audit"] = "AUDIT";
|
|
17077
|
+
AgentGovernanceMode["Enforce"] = "ENFORCE";
|
|
17078
|
+
AgentGovernanceMode["Unknown"] = "Unknown";
|
|
17078
17079
|
})(AgentGovernanceMode || (AgentGovernanceMode = {}));
|
|
17079
17080
|
var AgentGovernanceVerdict;
|
|
17080
|
-
(function(
|
|
17081
|
-
|
|
17082
|
-
|
|
17083
|
-
|
|
17081
|
+
(function(AgentGovernanceVerdict) {
|
|
17082
|
+
AgentGovernanceVerdict["Allow"] = "ALLOW";
|
|
17083
|
+
AgentGovernanceVerdict["Deny"] = "DENY";
|
|
17084
|
+
AgentGovernanceVerdict["Unknown"] = "Unknown";
|
|
17084
17085
|
})(AgentGovernanceVerdict || (AgentGovernanceVerdict = {}));
|
|
17085
17086
|
var AgentGovernanceSection;
|
|
17086
|
-
(function(
|
|
17087
|
-
|
|
17088
|
-
|
|
17089
|
-
|
|
17090
|
-
|
|
17091
|
-
|
|
17092
|
-
|
|
17093
|
-
|
|
17087
|
+
(function(AgentGovernanceSection) {
|
|
17088
|
+
AgentGovernanceSection["Totals"] = "totals";
|
|
17089
|
+
AgentGovernanceSection["Hook"] = "hook";
|
|
17090
|
+
AgentGovernanceSection["Agent"] = "agent";
|
|
17091
|
+
AgentGovernanceSection["Policy"] = "policy";
|
|
17092
|
+
AgentGovernanceSection["Pack"] = "pack";
|
|
17093
|
+
AgentGovernanceSection["Action"] = "action";
|
|
17094
|
+
AgentGovernanceSection["Mode"] = "mode";
|
|
17094
17095
|
})(AgentGovernanceSection || (AgentGovernanceSection = {}));
|
|
17095
17096
|
var HOST_KEY = Symbol.for("uipath.host.v1");
|
|
17096
17097
|
|
|
@@ -17264,78 +17265,78 @@ var sdkClient2 = getOrCreateClient(CLOUD_ROLE_NAME2);
|
|
|
17264
17265
|
var track2 = createTrack(sdkClient2);
|
|
17265
17266
|
createTrackEvent(sdkClient2);
|
|
17266
17267
|
var TaskUserType2;
|
|
17267
|
-
(function(
|
|
17268
|
-
|
|
17269
|
-
|
|
17270
|
-
|
|
17271
|
-
|
|
17272
|
-
|
|
17273
|
-
|
|
17268
|
+
(function(TaskUserType) {
|
|
17269
|
+
TaskUserType["User"] = "User";
|
|
17270
|
+
TaskUserType["Robot"] = "Robot";
|
|
17271
|
+
TaskUserType["DirectoryUser"] = "DirectoryUser";
|
|
17272
|
+
TaskUserType["DirectoryGroup"] = "DirectoryGroup";
|
|
17273
|
+
TaskUserType["DirectoryRobot"] = "DirectoryRobot";
|
|
17274
|
+
TaskUserType["DirectoryExternalApplication"] = "DirectoryExternalApplication";
|
|
17274
17275
|
})(TaskUserType2 || (TaskUserType2 = {}));
|
|
17275
17276
|
var TaskType2;
|
|
17276
|
-
(function(
|
|
17277
|
-
|
|
17278
|
-
|
|
17279
|
-
|
|
17280
|
-
|
|
17281
|
-
|
|
17282
|
-
|
|
17283
|
-
|
|
17277
|
+
(function(TaskType) {
|
|
17278
|
+
TaskType["Form"] = "FormTask";
|
|
17279
|
+
TaskType["External"] = "ExternalTask";
|
|
17280
|
+
TaskType["App"] = "AppTask";
|
|
17281
|
+
TaskType["DocumentValidation"] = "DocumentValidationTask";
|
|
17282
|
+
TaskType["DocumentClassification"] = "DocumentClassificationTask";
|
|
17283
|
+
TaskType["DataLabeling"] = "DataLabelingTask";
|
|
17284
|
+
TaskType["QuickForm"] = "QuickFormTask";
|
|
17284
17285
|
})(TaskType2 || (TaskType2 = {}));
|
|
17285
17286
|
var TaskPriority2;
|
|
17286
|
-
(function(
|
|
17287
|
-
|
|
17288
|
-
|
|
17289
|
-
|
|
17290
|
-
|
|
17287
|
+
(function(TaskPriority) {
|
|
17288
|
+
TaskPriority["Low"] = "Low";
|
|
17289
|
+
TaskPriority["Medium"] = "Medium";
|
|
17290
|
+
TaskPriority["High"] = "High";
|
|
17291
|
+
TaskPriority["Critical"] = "Critical";
|
|
17291
17292
|
})(TaskPriority2 || (TaskPriority2 = {}));
|
|
17292
17293
|
var TaskStatus2;
|
|
17293
|
-
(function(
|
|
17294
|
-
|
|
17295
|
-
|
|
17296
|
-
|
|
17294
|
+
(function(TaskStatus) {
|
|
17295
|
+
TaskStatus["Unassigned"] = "Unassigned";
|
|
17296
|
+
TaskStatus["Pending"] = "Pending";
|
|
17297
|
+
TaskStatus["Completed"] = "Completed";
|
|
17297
17298
|
})(TaskStatus2 || (TaskStatus2 = {}));
|
|
17298
17299
|
var TaskSlaCriteria2;
|
|
17299
|
-
(function(
|
|
17300
|
-
|
|
17301
|
-
|
|
17302
|
-
|
|
17300
|
+
(function(TaskSlaCriteria) {
|
|
17301
|
+
TaskSlaCriteria["TaskCreated"] = "TaskCreated";
|
|
17302
|
+
TaskSlaCriteria["TaskAssigned"] = "TaskAssigned";
|
|
17303
|
+
TaskSlaCriteria["TaskCompleted"] = "TaskCompleted";
|
|
17303
17304
|
})(TaskSlaCriteria2 || (TaskSlaCriteria2 = {}));
|
|
17304
17305
|
var TaskSlaStatus2;
|
|
17305
|
-
(function(
|
|
17306
|
-
|
|
17307
|
-
|
|
17308
|
-
|
|
17309
|
-
|
|
17306
|
+
(function(TaskSlaStatus) {
|
|
17307
|
+
TaskSlaStatus["OverdueLater"] = "OverdueLater";
|
|
17308
|
+
TaskSlaStatus["OverdueSoon"] = "OverdueSoon";
|
|
17309
|
+
TaskSlaStatus["Overdue"] = "Overdue";
|
|
17310
|
+
TaskSlaStatus["CompletedInTime"] = "CompletedInTime";
|
|
17310
17311
|
})(TaskSlaStatus2 || (TaskSlaStatus2 = {}));
|
|
17311
17312
|
var TaskSourceName2;
|
|
17312
|
-
(function(
|
|
17313
|
-
|
|
17314
|
-
|
|
17315
|
-
|
|
17316
|
-
|
|
17313
|
+
(function(TaskSourceName) {
|
|
17314
|
+
TaskSourceName["Agent"] = "Agent";
|
|
17315
|
+
TaskSourceName["Workflow"] = "Workflow";
|
|
17316
|
+
TaskSourceName["Maestro"] = "Maestro";
|
|
17317
|
+
TaskSourceName["Default"] = "Default";
|
|
17317
17318
|
})(TaskSourceName2 || (TaskSourceName2 = {}));
|
|
17318
17319
|
var TaskActivityType2;
|
|
17319
|
-
(function(
|
|
17320
|
-
|
|
17321
|
-
|
|
17322
|
-
|
|
17323
|
-
|
|
17324
|
-
|
|
17325
|
-
|
|
17326
|
-
|
|
17327
|
-
|
|
17328
|
-
|
|
17329
|
-
|
|
17330
|
-
|
|
17331
|
-
|
|
17320
|
+
(function(TaskActivityType) {
|
|
17321
|
+
TaskActivityType["Created"] = "Created";
|
|
17322
|
+
TaskActivityType["Assigned"] = "Assigned";
|
|
17323
|
+
TaskActivityType["Reassigned"] = "Reassigned";
|
|
17324
|
+
TaskActivityType["Unassigned"] = "Unassigned";
|
|
17325
|
+
TaskActivityType["Saved"] = "Saved";
|
|
17326
|
+
TaskActivityType["Forwarded"] = "Forwarded";
|
|
17327
|
+
TaskActivityType["Completed"] = "Completed";
|
|
17328
|
+
TaskActivityType["Commented"] = "Commented";
|
|
17329
|
+
TaskActivityType["Deleted"] = "Deleted";
|
|
17330
|
+
TaskActivityType["BulkSaved"] = "BulkSaved";
|
|
17331
|
+
TaskActivityType["BulkCompleted"] = "BulkCompleted";
|
|
17332
|
+
TaskActivityType["FirstOpened"] = "FirstOpened";
|
|
17332
17333
|
})(TaskActivityType2 || (TaskActivityType2 = {}));
|
|
17333
17334
|
var TaskAssignmentCriteria2;
|
|
17334
|
-
(function(
|
|
17335
|
-
|
|
17336
|
-
|
|
17337
|
-
|
|
17338
|
-
|
|
17335
|
+
(function(TaskAssignmentCriteria) {
|
|
17336
|
+
TaskAssignmentCriteria["SingleUser"] = "SingleUser";
|
|
17337
|
+
TaskAssignmentCriteria["Workload"] = "Workload";
|
|
17338
|
+
TaskAssignmentCriteria["AllUsers"] = "AllUsers";
|
|
17339
|
+
TaskAssignmentCriteria["RoundRobin"] = "RoundRobin";
|
|
17339
17340
|
})(TaskAssignmentCriteria2 || (TaskAssignmentCriteria2 = {}));
|
|
17340
17341
|
var TaskStatusMap2 = {
|
|
17341
17342
|
0: TaskStatus2.Unassigned,
|
|
@@ -17397,9 +17398,9 @@ var TASK_TYPE_ENDPOINTS2 = {
|
|
|
17397
17398
|
[TaskType2.QuickForm]: TASK_ENDPOINTS2.GET_GENERIC_TASK_BY_ID
|
|
17398
17399
|
};
|
|
17399
17400
|
var ActionCenterEventNames2;
|
|
17400
|
-
(function(
|
|
17401
|
-
|
|
17402
|
-
|
|
17401
|
+
(function(ActionCenterEventNames) {
|
|
17402
|
+
ActionCenterEventNames["TOKENREFRESHED"] = "AC.tokenRefreshed";
|
|
17403
|
+
ActionCenterEventNames["REFRESHTOKEN"] = "AC.refreshToken";
|
|
17403
17404
|
})(ActionCenterEventNames2 || (ActionCenterEventNames2 = {}));
|
|
17404
17405
|
function createTaskMethods2(taskData, service) {
|
|
17405
17406
|
return {
|
|
@@ -17591,9 +17592,9 @@ function processODataArrayResponse2(oDataResponse, successData) {
|
|
|
17591
17592
|
};
|
|
17592
17593
|
}
|
|
17593
17594
|
var PaginationType2;
|
|
17594
|
-
(function(
|
|
17595
|
-
|
|
17596
|
-
|
|
17595
|
+
(function(PaginationType) {
|
|
17596
|
+
PaginationType["OFFSET"] = "offset";
|
|
17597
|
+
PaginationType["TOKEN"] = "token";
|
|
17597
17598
|
})(PaginationType2 || (PaginationType2 = {}));
|
|
17598
17599
|
function transformData2(data, fieldMapping) {
|
|
17599
17600
|
if (data == null) {
|
|
@@ -17736,16 +17737,16 @@ function encodeBase642(str) {
|
|
|
17736
17737
|
return Buffer.from(data).toString("base64");
|
|
17737
17738
|
}
|
|
17738
17739
|
}
|
|
17739
|
-
function decodeBase642(
|
|
17740
|
+
function decodeBase642(base64) {
|
|
17740
17741
|
let bytes;
|
|
17741
17742
|
if (isBrowser2) {
|
|
17742
|
-
const binaryString = atob(
|
|
17743
|
+
const binaryString = atob(base64);
|
|
17743
17744
|
bytes = new Uint8Array(binaryString.length);
|
|
17744
17745
|
for (let i = 0;i < binaryString.length; i++) {
|
|
17745
17746
|
bytes[i] = binaryString.charCodeAt(i);
|
|
17746
17747
|
}
|
|
17747
17748
|
} else {
|
|
17748
|
-
bytes = new Uint8Array(Buffer.from(
|
|
17749
|
+
bytes = new Uint8Array(Buffer.from(base64, "base64"));
|
|
17749
17750
|
}
|
|
17750
17751
|
const decoder = new TextDecoder;
|
|
17751
17752
|
return decoder.decode(bytes);
|
|
@@ -17880,51 +17881,51 @@ class PaginationHelpers2 {
|
|
|
17880
17881
|
totalCount
|
|
17881
17882
|
};
|
|
17882
17883
|
}
|
|
17883
|
-
static async getAll(
|
|
17884
|
+
static async getAll(config, options) {
|
|
17884
17885
|
const optionsWithDefaults = options || {};
|
|
17885
17886
|
const { folderId, pageSize, cursor, jumpToPage, ...restOptions } = optionsWithDefaults;
|
|
17886
17887
|
const isPaginationRequested = PaginationHelpers2.hasPaginationParameters(options || {});
|
|
17887
17888
|
let processedOptions = restOptions;
|
|
17888
|
-
if (
|
|
17889
|
-
processedOptions =
|
|
17889
|
+
if (config.processParametersFn) {
|
|
17890
|
+
processedOptions = config.processParametersFn(restOptions, folderId);
|
|
17890
17891
|
}
|
|
17891
|
-
const excludeKeys =
|
|
17892
|
+
const excludeKeys = config.excludeFromPrefix || [];
|
|
17892
17893
|
const keysToPrefix = Object.keys(processedOptions).filter((k) => !excludeKeys.includes(k));
|
|
17893
17894
|
const prefixedOptions = addPrefixToKeys2(processedOptions, ODATA_PREFIX2, keysToPrefix);
|
|
17894
17895
|
const paginationOptions = {
|
|
17895
17896
|
paginationType: PaginationType2.OFFSET,
|
|
17896
17897
|
itemsField: DEFAULT_ITEMS_FIELD2,
|
|
17897
17898
|
totalCountField: DEFAULT_TOTAL_COUNT_FIELD2,
|
|
17898
|
-
...
|
|
17899
|
+
...config.pagination
|
|
17899
17900
|
};
|
|
17900
17901
|
if (isPaginationRequested) {
|
|
17901
17902
|
return PaginationHelpers2.getAllPaginated({
|
|
17902
|
-
serviceAccess:
|
|
17903
|
-
getEndpoint:
|
|
17903
|
+
serviceAccess: config.serviceAccess,
|
|
17904
|
+
getEndpoint: config.getEndpoint,
|
|
17904
17905
|
folderId,
|
|
17905
|
-
headers:
|
|
17906
|
+
headers: config.headers,
|
|
17906
17907
|
paginationParams: cursor ? { cursor, pageSize } : jumpToPage !== undefined ? { jumpToPage, pageSize } : { pageSize },
|
|
17907
17908
|
additionalParams: prefixedOptions,
|
|
17908
|
-
queryParams:
|
|
17909
|
-
transformFn:
|
|
17910
|
-
method:
|
|
17909
|
+
queryParams: config.queryParams,
|
|
17910
|
+
transformFn: config.transformFn,
|
|
17911
|
+
method: config.method,
|
|
17911
17912
|
options: {
|
|
17912
17913
|
...paginationOptions,
|
|
17913
|
-
paginationParams:
|
|
17914
|
+
paginationParams: config.pagination?.paginationParams
|
|
17914
17915
|
}
|
|
17915
17916
|
});
|
|
17916
17917
|
}
|
|
17917
|
-
const byFolderEndpoint =
|
|
17918
|
+
const byFolderEndpoint = config.getByFolderEndpoint || config.getEndpoint(folderId);
|
|
17918
17919
|
return PaginationHelpers2.getAllNonPaginated({
|
|
17919
|
-
serviceAccess:
|
|
17920
|
-
getAllEndpoint:
|
|
17920
|
+
serviceAccess: config.serviceAccess,
|
|
17921
|
+
getAllEndpoint: config.getEndpoint(),
|
|
17921
17922
|
getByFolderEndpoint: byFolderEndpoint,
|
|
17922
17923
|
folderId,
|
|
17923
|
-
headers:
|
|
17924
|
+
headers: config.headers,
|
|
17924
17925
|
additionalParams: prefixedOptions,
|
|
17925
|
-
queryParams:
|
|
17926
|
-
transformFn:
|
|
17927
|
-
method:
|
|
17926
|
+
queryParams: config.queryParams,
|
|
17927
|
+
transformFn: config.transformFn,
|
|
17928
|
+
method: config.method,
|
|
17928
17929
|
options: {
|
|
17929
17930
|
itemsField: paginationOptions.itemsField,
|
|
17930
17931
|
totalCountField: paginationOptions.totalCountField
|
|
@@ -18168,10 +18169,10 @@ function parseRetryAfter2(value, now = Date.now()) {
|
|
|
18168
18169
|
const seconds = Number(trimmed);
|
|
18169
18170
|
if (Number.isFinite(seconds))
|
|
18170
18171
|
return Math.max(0, seconds * 1000);
|
|
18171
|
-
const
|
|
18172
|
-
if (Number.isNaN(
|
|
18172
|
+
const date = Date.parse(trimmed);
|
|
18173
|
+
if (Number.isNaN(date))
|
|
18173
18174
|
return;
|
|
18174
|
-
return Math.max(0,
|
|
18175
|
+
return Math.max(0, date - now);
|
|
18175
18176
|
}
|
|
18176
18177
|
function wait2(durationMs) {
|
|
18177
18178
|
return new Promise((resolve) => setTimeout(resolve, Math.max(0, durationMs)));
|
|
@@ -18253,8 +18254,8 @@ async function fetchWithRetry2(url, init, options) {
|
|
|
18253
18254
|
}
|
|
18254
18255
|
|
|
18255
18256
|
class ApiClient2 {
|
|
18256
|
-
constructor(
|
|
18257
|
-
this.config =
|
|
18257
|
+
constructor(config, executionContext, tokenManager, clientConfig = {}) {
|
|
18258
|
+
this.config = config;
|
|
18258
18259
|
this.executionContext = executionContext;
|
|
18259
18260
|
this.clientConfig = clientConfig;
|
|
18260
18261
|
this.tokenManager = tokenManager;
|
|
@@ -18308,8 +18309,8 @@ class ApiClient2 {
|
|
|
18308
18309
|
}
|
|
18309
18310
|
const acceptHeader = headers["Accept"] || headers["accept"];
|
|
18310
18311
|
if (acceptHeader === CONTENT_TYPES2.XML) {
|
|
18311
|
-
const
|
|
18312
|
-
return
|
|
18312
|
+
const text = await response.text();
|
|
18313
|
+
return text;
|
|
18313
18314
|
}
|
|
18314
18315
|
const text = await response.text();
|
|
18315
18316
|
if (!text) {
|
|
@@ -18409,21 +18410,21 @@ class PaginationManager2 {
|
|
|
18409
18410
|
}
|
|
18410
18411
|
}
|
|
18411
18412
|
var UiPathMetaTags2;
|
|
18412
|
-
(function(
|
|
18413
|
-
|
|
18414
|
-
|
|
18415
|
-
|
|
18416
|
-
|
|
18417
|
-
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18413
|
+
(function(UiPathMetaTags) {
|
|
18414
|
+
UiPathMetaTags["CLIENT_ID"] = "uipath:client-id";
|
|
18415
|
+
UiPathMetaTags["SCOPE"] = "uipath:scope";
|
|
18416
|
+
UiPathMetaTags["ORG_NAME"] = "uipath:org-name";
|
|
18417
|
+
UiPathMetaTags["ORG_ID"] = "uipath:org-id";
|
|
18418
|
+
UiPathMetaTags["TENANT_NAME"] = "uipath:tenant-name";
|
|
18419
|
+
UiPathMetaTags["BASE_URL"] = "uipath:base-url";
|
|
18420
|
+
UiPathMetaTags["REDIRECT_URI"] = "uipath:redirect-uri";
|
|
18421
|
+
UiPathMetaTags["CDN_BASE"] = "uipath:cdn-base";
|
|
18422
|
+
UiPathMetaTags["APP_BASE"] = "uipath:app-base";
|
|
18423
|
+
UiPathMetaTags["FOLDER_KEY"] = "uipath:folder-key";
|
|
18423
18424
|
})(UiPathMetaTags2 || (UiPathMetaTags2 = {}));
|
|
18424
18425
|
var UiPathElementIds2;
|
|
18425
|
-
(function(
|
|
18426
|
-
|
|
18426
|
+
(function(UiPathElementIds) {
|
|
18427
|
+
UiPathElementIds["RESOURCE_OVERRIDES"] = "uipath-overrides";
|
|
18427
18428
|
})(UiPathElementIds2 || (UiPathElementIds2 = {}));
|
|
18428
18429
|
function missingConfigMessage2(found, context) {
|
|
18429
18430
|
if (isBrowser2) {
|
|
@@ -18436,8 +18437,8 @@ UiPathMetaTags2.CLIENT_ID, UiPathMetaTags2.REDIRECT_URI, UiPathMetaTags2.SCOPE;
|
|
|
18436
18437
|
var BASE64URL_DASH_RE2 = /-/g;
|
|
18437
18438
|
var BASE64URL_UNDERSCORE_RE2 = /_/g;
|
|
18438
18439
|
function base64UrlToBase642(value) {
|
|
18439
|
-
const
|
|
18440
|
-
return
|
|
18440
|
+
const base64 = value.replace(BASE64URL_DASH_RE2, "+").replace(BASE64URL_UNDERSCORE_RE2, "/");
|
|
18441
|
+
return base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "=");
|
|
18441
18442
|
}
|
|
18442
18443
|
function decodeJwtClaims2(token) {
|
|
18443
18444
|
try {
|
|
@@ -18452,7 +18453,7 @@ function decodeJwtClaims2(token) {
|
|
|
18452
18453
|
}
|
|
18453
18454
|
var _OrganizationIdResolver_instances2;
|
|
18454
18455
|
var _OrganizationIdResolver_organizationId2;
|
|
18455
|
-
var
|
|
18456
|
+
var _OrganizationIdResolver_resolve2;
|
|
18456
18457
|
var GUID_REGEX$12 = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
|
|
18457
18458
|
var DASH_REGEX2 = /-/g;
|
|
18458
18459
|
var UNDERSCORE_REGEX2 = /_/g;
|
|
@@ -18477,8 +18478,8 @@ function readIdentityError2(url) {
|
|
|
18477
18478
|
const errorId = url.searchParams.get(IDENTITY_ERROR_ID_PARAM2);
|
|
18478
18479
|
if (errorId) {
|
|
18479
18480
|
try {
|
|
18480
|
-
const
|
|
18481
|
-
const json = decodeBase642(
|
|
18481
|
+
const base64 = errorId.replace(DASH_REGEX2, "+").replace(UNDERSCORE_REGEX2, "/");
|
|
18482
|
+
const json = decodeBase642(base64.padEnd(base64.length + (4 - base64.length % 4) % 4, "="));
|
|
18482
18483
|
const data = JSON.parse(json).Data;
|
|
18483
18484
|
const error = typeof data?.Error === "string" ? data.Error : undefined;
|
|
18484
18485
|
const description = typeof data?.ErrorDescription === "string" ? data.ErrorDescription : undefined;
|
|
@@ -18567,15 +18568,15 @@ async function lookupOrganizationIdForPat2(baseUrl, orgName) {
|
|
|
18567
18568
|
}
|
|
18568
18569
|
|
|
18569
18570
|
class OrganizationIdResolver2 {
|
|
18570
|
-
constructor(
|
|
18571
|
+
constructor(config, tokenManager) {
|
|
18571
18572
|
_OrganizationIdResolver_instances2.add(this);
|
|
18572
|
-
this.config =
|
|
18573
|
+
this.config = config;
|
|
18573
18574
|
this.tokenManager = tokenManager;
|
|
18574
18575
|
_OrganizationIdResolver_organizationId2.set(this, undefined);
|
|
18575
18576
|
}
|
|
18576
18577
|
resolve() {
|
|
18577
18578
|
if (!__classPrivateFieldGet2(this, _OrganizationIdResolver_organizationId2, "f")) {
|
|
18578
|
-
__classPrivateFieldSet2(this, _OrganizationIdResolver_organizationId2, __classPrivateFieldGet2(this, _OrganizationIdResolver_instances2, "m",
|
|
18579
|
+
__classPrivateFieldSet2(this, _OrganizationIdResolver_organizationId2, __classPrivateFieldGet2(this, _OrganizationIdResolver_instances2, "m", _OrganizationIdResolver_resolve2).call(this).catch((error) => {
|
|
18579
18580
|
__classPrivateFieldSet2(this, _OrganizationIdResolver_organizationId2, undefined, "f");
|
|
18580
18581
|
throw error;
|
|
18581
18582
|
}), "f");
|
|
@@ -18583,7 +18584,7 @@ class OrganizationIdResolver2 {
|
|
|
18583
18584
|
return __classPrivateFieldGet2(this, _OrganizationIdResolver_organizationId2, "f");
|
|
18584
18585
|
}
|
|
18585
18586
|
}
|
|
18586
|
-
_OrganizationIdResolver_organizationId2 = new WeakMap, _OrganizationIdResolver_instances2 = new WeakSet,
|
|
18587
|
+
_OrganizationIdResolver_organizationId2 = new WeakMap, _OrganizationIdResolver_instances2 = new WeakSet, _OrganizationIdResolver_resolve2 = async function _OrganizationIdResolver_resolve() {
|
|
18587
18588
|
const { organizationId, orgName, baseUrl } = this.config;
|
|
18588
18589
|
if (organizationId) {
|
|
18589
18590
|
return organizationId;
|
|
@@ -18601,12 +18602,12 @@ var REGISTRY_KEY3 = Symbol.for("@uipath/sdk-internals-registry");
|
|
|
18601
18602
|
var UNCONFIGURED_KEY2 = Symbol.for("@uipath/sdk-unconfigured-reason");
|
|
18602
18603
|
var globalStores2 = () => globalThis;
|
|
18603
18604
|
var getGlobalStore2 = () => {
|
|
18604
|
-
var
|
|
18605
|
-
return (
|
|
18605
|
+
var _a;
|
|
18606
|
+
return (_a = globalStores2())[REGISTRY_KEY3] ?? (_a[REGISTRY_KEY3] = new WeakMap);
|
|
18606
18607
|
};
|
|
18607
18608
|
var getUnconfiguredStore2 = () => {
|
|
18608
|
-
var
|
|
18609
|
-
return (
|
|
18609
|
+
var _a;
|
|
18610
|
+
return (_a = globalStores2())[UNCONFIGURED_KEY2] ?? (_a[UNCONFIGURED_KEY2] = new WeakMap);
|
|
18610
18611
|
};
|
|
18611
18612
|
var looksLikeUiPath2 = (instance) => typeof instance.initialize === "function";
|
|
18612
18613
|
|
|
@@ -18645,8 +18646,8 @@ var _BaseService_apiClient2;
|
|
|
18645
18646
|
class BaseService2 {
|
|
18646
18647
|
constructor(instance, headers) {
|
|
18647
18648
|
_BaseService_apiClient2.set(this, undefined);
|
|
18648
|
-
const { config
|
|
18649
|
-
__classPrivateFieldSet2(this, _BaseService_apiClient2, new ApiClient2(
|
|
18649
|
+
const { config, context, tokenManager, folderKey, metaFolderKey } = SDKInternalsRegistry2.get(instance);
|
|
18650
|
+
__classPrivateFieldSet2(this, _BaseService_apiClient2, new ApiClient2(config, context, tokenManager, headers ? { headers } : {}), "f");
|
|
18650
18651
|
this.config = { folderKey, metaFolderKey };
|
|
18651
18652
|
}
|
|
18652
18653
|
async getValidAuthToken() {
|
|
@@ -18828,7 +18829,7 @@ function isPlainObject2(value) {
|
|
|
18828
18829
|
function asResourceOverrides2(value) {
|
|
18829
18830
|
if (!isPlainObject2(value))
|
|
18830
18831
|
return;
|
|
18831
|
-
const
|
|
18832
|
+
const table = {};
|
|
18832
18833
|
for (const [key, properties] of Object.entries(value)) {
|
|
18833
18834
|
if (!isPlainObject2(properties))
|
|
18834
18835
|
continue;
|
|
@@ -18837,9 +18838,9 @@ function asResourceOverrides2(value) {
|
|
|
18837
18838
|
if (typeof propertyValue === "string")
|
|
18838
18839
|
bag[property] = propertyValue;
|
|
18839
18840
|
}
|
|
18840
|
-
|
|
18841
|
+
table[key] = bag;
|
|
18841
18842
|
}
|
|
18842
|
-
return Object.keys(
|
|
18843
|
+
return Object.keys(table).length > 0 ? table : undefined;
|
|
18843
18844
|
}
|
|
18844
18845
|
function readFromDocument2() {
|
|
18845
18846
|
if (!isBrowser2)
|
|
@@ -18875,13 +18876,13 @@ function readOverrides2() {
|
|
|
18875
18876
|
}
|
|
18876
18877
|
}
|
|
18877
18878
|
function resolveOverride2(resourceType, name, folderPath) {
|
|
18878
|
-
const
|
|
18879
|
-
if (!
|
|
18879
|
+
const table = readOverrides2();
|
|
18880
|
+
if (!table)
|
|
18880
18881
|
return;
|
|
18881
18882
|
const bindingType = resourceType.toLowerCase();
|
|
18882
18883
|
const scopedKey = folderPath ? `${bindingType}.${name}.${folderPath}` : undefined;
|
|
18883
18884
|
const unscopedKey = `${bindingType}.${name}`;
|
|
18884
|
-
const entry = (scopedKey &&
|
|
18885
|
+
const entry = (scopedKey && table[scopedKey]) ?? table[unscopedKey];
|
|
18885
18886
|
if (!entry)
|
|
18886
18887
|
return;
|
|
18887
18888
|
return {
|
|
@@ -18905,7 +18906,7 @@ class FolderScopedService2 extends BaseService2 {
|
|
|
18905
18906
|
}
|
|
18906
18907
|
return response.data?.value;
|
|
18907
18908
|
}
|
|
18908
|
-
async getByNameLookup(resourceType, endpoint, name, options,
|
|
18909
|
+
async getByNameLookup(resourceType, endpoint, name, options, transform, responseFieldMap, callerLabel) {
|
|
18909
18910
|
const validatedName = validateName2(resourceType, name);
|
|
18910
18911
|
const { folderId, folderKey, folderPath, ...queryOptions } = options;
|
|
18911
18912
|
const override = resolveOverride2(resourceType, validatedName, folderPath);
|
|
@@ -18936,11 +18937,11 @@ class FolderScopedService2 extends BaseService2 {
|
|
|
18936
18937
|
});
|
|
18937
18938
|
}
|
|
18938
18939
|
return {
|
|
18939
|
-
result:
|
|
18940
|
+
result: transform(items[0]),
|
|
18940
18941
|
effectiveFolder: { folderId, folderKey, folderPath: resolvedFolderPath }
|
|
18941
18942
|
};
|
|
18942
18943
|
}
|
|
18943
|
-
async getByKeyLookup(resourceType, endpoint, key, options,
|
|
18944
|
+
async getByKeyLookup(resourceType, endpoint, key, options, transform, responseFieldMap, callerLabel) {
|
|
18944
18945
|
const label = callerLabel ?? `${resourceType}.getByKey`;
|
|
18945
18946
|
const trimmedKey = key?.trim();
|
|
18946
18947
|
if (!trimmedKey || !GUID_REGEX2.test(trimmedKey)) {
|
|
@@ -18969,7 +18970,7 @@ class FolderScopedService2 extends BaseService2 {
|
|
|
18969
18970
|
throw new NotFoundError2({ message: `${resourceType} with key '${trimmedKey}' not found.` });
|
|
18970
18971
|
}
|
|
18971
18972
|
return {
|
|
18972
|
-
result:
|
|
18973
|
+
result: transform(items[0]),
|
|
18973
18974
|
effectiveFolder: { folderId, folderKey, folderPath }
|
|
18974
18975
|
};
|
|
18975
18976
|
}
|
|
@@ -19021,7 +19022,7 @@ class TaskService2 extends FolderScopedService2 {
|
|
|
19021
19022
|
const optionsWithFolder = { ...options, folderId };
|
|
19022
19023
|
return PaginationHelpers2.getAll({
|
|
19023
19024
|
serviceAccess: this.createPaginationServiceAccess(),
|
|
19024
|
-
getEndpoint: (
|
|
19025
|
+
getEndpoint: (folderId) => TASK_ENDPOINTS2.GET_TASK_USERS(folderId),
|
|
19025
19026
|
getByFolderEndpoint: TASK_ENDPOINTS2.GET_TASK_USERS(folderId),
|
|
19026
19027
|
transformFn: transformUserResponse,
|
|
19027
19028
|
pagination: {
|
|
@@ -19313,10 +19314,10 @@ var TaskCatalogMap2 = {
|
|
|
19313
19314
|
lastModificationTime: "lastModifiedTime"
|
|
19314
19315
|
};
|
|
19315
19316
|
var TaskCatalogRetentionAction2;
|
|
19316
|
-
(function(
|
|
19317
|
-
|
|
19318
|
-
|
|
19319
|
-
|
|
19317
|
+
(function(TaskCatalogRetentionAction) {
|
|
19318
|
+
TaskCatalogRetentionAction["Delete"] = "Delete";
|
|
19319
|
+
TaskCatalogRetentionAction["Archive"] = "Archive";
|
|
19320
|
+
TaskCatalogRetentionAction["None"] = "None";
|
|
19320
19321
|
})(TaskCatalogRetentionAction2 || (TaskCatalogRetentionAction2 = {}));
|
|
19321
19322
|
|
|
19322
19323
|
class TaskCatalogService2 extends FolderScopedService2 {
|
|
@@ -19418,17 +19419,15 @@ __decorate2([
|
|
|
19418
19419
|
|
|
19419
19420
|
// src/utils/sdk-client.ts
|
|
19420
19421
|
var createTasksClient = async (tenantOverride) => {
|
|
19421
|
-
const
|
|
19422
|
-
ensureTokenValidityMinutes: 10
|
|
19422
|
+
const auth = await getAuthContext({
|
|
19423
|
+
ensureTokenValidityMinutes: 10,
|
|
19424
|
+
tenant: tenantOverride
|
|
19423
19425
|
});
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
|
|
19427
|
-
|
|
19428
|
-
|
|
19429
|
-
baseUrl: status.baseUrl,
|
|
19430
|
-
orgName: status.organizationName,
|
|
19431
|
-
tenantName: tenantOverride ?? status.tenantName
|
|
19426
|
+
return new UiPath({
|
|
19427
|
+
secret: auth.accessToken,
|
|
19428
|
+
baseUrl: auth.baseUrl,
|
|
19429
|
+
orgName: auth.organizationName,
|
|
19430
|
+
tenantName: auth.tenantName
|
|
19432
19431
|
});
|
|
19433
19432
|
};
|
|
19434
19433
|
var createTaskCatalogsClient = (sdk) => new TaskCatalogService2(sdk);
|
|
@@ -19543,11 +19542,11 @@ async function resolveFolderScope(options) {
|
|
|
19543
19542
|
return parseIntArg(options.folderId, "--folder-id");
|
|
19544
19543
|
}
|
|
19545
19544
|
if (options.folderKey !== undefined) {
|
|
19546
|
-
const { resolveFolderIdByKey } = await import("./folder-resolver-
|
|
19545
|
+
const { resolveFolderIdByKey } = await import("./folder-resolver-t2555k5b.js");
|
|
19547
19546
|
return resolveFolderIdByKey(options.folderKey, options.tenant);
|
|
19548
19547
|
}
|
|
19549
19548
|
if (options.folderPath !== undefined) {
|
|
19550
|
-
const { resolveFolderIdByPath } = await import("./folder-resolver-
|
|
19549
|
+
const { resolveFolderIdByPath } = await import("./folder-resolver-t2555k5b.js");
|
|
19551
19550
|
return resolveFolderIdByPath(options.folderPath, options.tenant);
|
|
19552
19551
|
}
|
|
19553
19552
|
return;
|
|
@@ -19567,14 +19566,115 @@ async function resolveFolderId(options, missingFolderInstructions = DEFAULT_FOLD
|
|
|
19567
19566
|
processContext.exit(1);
|
|
19568
19567
|
return null;
|
|
19569
19568
|
}
|
|
19570
|
-
const { pickFolderInteractively } = await import("./folder-picker-interactive-
|
|
19569
|
+
const { pickFolderInteractively } = await import("./folder-picker-interactive-41htawa4.js");
|
|
19571
19570
|
return pickFolderInteractively(options.tenant);
|
|
19572
19571
|
}
|
|
19573
19572
|
|
|
19574
19573
|
// src/commands/catalogs.ts
|
|
19574
|
+
var SAMPLE_CATALOG = {
|
|
19575
|
+
id: 7,
|
|
19576
|
+
key: "3c4d5e6f-7a8b-4c9d-8e0f-1a2b3c4d5e6f",
|
|
19577
|
+
name: "Invoice approvals",
|
|
19578
|
+
description: "Approval tasks for supplier invoices",
|
|
19579
|
+
createdTime: "2026-09-15T08:00:00Z",
|
|
19580
|
+
lastModifiedTime: null,
|
|
19581
|
+
foldersCount: 1,
|
|
19582
|
+
encrypted: false,
|
|
19583
|
+
tags: [],
|
|
19584
|
+
retentionAction: "Delete",
|
|
19585
|
+
retentionPeriod: 90,
|
|
19586
|
+
retentionBucketId: null,
|
|
19587
|
+
retentionBucketName: null
|
|
19588
|
+
};
|
|
19589
|
+
var CATALOGS_LIST_EXAMPLES = [
|
|
19590
|
+
{
|
|
19591
|
+
Description: "List the task catalogs in a folder",
|
|
19592
|
+
Command: 'uip tasks catalogs list --folder-path "Shared/Finance"',
|
|
19593
|
+
Output: {
|
|
19594
|
+
Code: "TaskCatalogList",
|
|
19595
|
+
Data: [
|
|
19596
|
+
SAMPLE_CATALOG,
|
|
19597
|
+
{
|
|
19598
|
+
...SAMPLE_CATALOG,
|
|
19599
|
+
id: 8,
|
|
19600
|
+
key: "9d0e1f2a-3b4c-4d5e-8f6a-7b8c9d0e1f2a",
|
|
19601
|
+
name: "Contract reviews",
|
|
19602
|
+
description: null,
|
|
19603
|
+
retentionAction: "None",
|
|
19604
|
+
retentionPeriod: null
|
|
19605
|
+
}
|
|
19606
|
+
]
|
|
19607
|
+
}
|
|
19608
|
+
},
|
|
19609
|
+
{
|
|
19610
|
+
Description: "List at most 10 catalogs in a folder by ID",
|
|
19611
|
+
Command: "uip tasks catalogs list --folder-id 42 --limit 10",
|
|
19612
|
+
Output: {
|
|
19613
|
+
Code: "TaskCatalogList",
|
|
19614
|
+
Data: [SAMPLE_CATALOG]
|
|
19615
|
+
}
|
|
19616
|
+
}
|
|
19617
|
+
];
|
|
19618
|
+
var CATALOGS_GET_EXAMPLES = [
|
|
19619
|
+
{
|
|
19620
|
+
Description: "Get a task catalog by ID",
|
|
19621
|
+
Command: 'uip tasks catalogs get 7 --folder-path "Shared/Finance"',
|
|
19622
|
+
Output: {
|
|
19623
|
+
Code: "TaskCatalogDetails",
|
|
19624
|
+
Data: SAMPLE_CATALOG
|
|
19625
|
+
}
|
|
19626
|
+
}
|
|
19627
|
+
];
|
|
19628
|
+
var CATALOGS_CREATE_EXAMPLES = [
|
|
19629
|
+
{
|
|
19630
|
+
Description: "Create a catalog whose tasks are deleted after 90 days",
|
|
19631
|
+
Command: 'uip tasks catalogs create --name "Invoice approvals" --description "Approval tasks for supplier invoices" --retention-action Delete --retention-period 90 --folder-path "Shared/Finance"',
|
|
19632
|
+
Output: {
|
|
19633
|
+
Code: "TaskCatalogCreated",
|
|
19634
|
+
Data: SAMPLE_CATALOG
|
|
19635
|
+
}
|
|
19636
|
+
},
|
|
19637
|
+
{
|
|
19638
|
+
Description: "Create an encrypted catalog that moves its tasks to a storage bucket after a year",
|
|
19639
|
+
Command: 'uip tasks catalogs create --name "HR requests" --encrypted --retention-action Archive --retention-period 365 --retention-bucket-id 3 --folder-path "Shared/HR"',
|
|
19640
|
+
Output: {
|
|
19641
|
+
Code: "TaskCatalogCreated",
|
|
19642
|
+
Data: {
|
|
19643
|
+
...SAMPLE_CATALOG,
|
|
19644
|
+
id: 9,
|
|
19645
|
+
key: "1b2c3d4e-5f6a-4b7c-8d9e-0f1a2b3c4d5e",
|
|
19646
|
+
name: "HR requests",
|
|
19647
|
+
description: null,
|
|
19648
|
+
encrypted: true,
|
|
19649
|
+
retentionAction: "Archive",
|
|
19650
|
+
retentionPeriod: 365,
|
|
19651
|
+
retentionBucketId: 3,
|
|
19652
|
+
retentionBucketName: "hr-archive"
|
|
19653
|
+
}
|
|
19654
|
+
}
|
|
19655
|
+
}
|
|
19656
|
+
];
|
|
19657
|
+
var CATALOGS_UPDATE_EXAMPLES = [
|
|
19658
|
+
{
|
|
19659
|
+
Description: "Rename a task catalog",
|
|
19660
|
+
Command: 'uip tasks catalogs update 7 --name "Supplier invoice approvals" --folder-path "Shared/Finance"',
|
|
19661
|
+
Output: {
|
|
19662
|
+
Code: "TaskCatalogUpdated",
|
|
19663
|
+
Data: { id: 7, name: "Supplier invoice approvals" }
|
|
19664
|
+
}
|
|
19665
|
+
},
|
|
19666
|
+
{
|
|
19667
|
+
Description: "Keep a catalog's tasks for 30 days instead",
|
|
19668
|
+
Command: 'uip tasks catalogs update 7 --retention-period 30 --folder-path "Shared/Finance"',
|
|
19669
|
+
Output: {
|
|
19670
|
+
Code: "TaskCatalogUpdated",
|
|
19671
|
+
Data: { id: 7 }
|
|
19672
|
+
}
|
|
19673
|
+
}
|
|
19674
|
+
];
|
|
19575
19675
|
var registerCatalogsCommand = (program) => {
|
|
19576
19676
|
const catalogs = program.command("catalogs").description("Manage task catalogs");
|
|
19577
|
-
addFolderScopeOptions(catalogs.command("list").description("List task catalogs in a folder")).option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").trackedAction(processContext, async (options) => {
|
|
19677
|
+
addFolderScopeOptions(catalogs.command("list").description("List task catalogs in a folder")).option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").examples(CATALOGS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
19578
19678
|
const sdk = await connectTasksClient();
|
|
19579
19679
|
if (!sdk)
|
|
19580
19680
|
return;
|
|
@@ -19622,7 +19722,7 @@ var registerCatalogsCommand = (program) => {
|
|
|
19622
19722
|
Data: limit ? allItems.slice(0, limit) : allItems
|
|
19623
19723
|
});
|
|
19624
19724
|
});
|
|
19625
|
-
addFolderScopeOptions(catalogs.command("get").description("Get a task catalog by ID").argument("<id>", "Task catalog ID")).trackedAction(processContext, async (id, options) => {
|
|
19725
|
+
addFolderScopeOptions(catalogs.command("get").description("Get a task catalog by ID").argument("<id>", "Task catalog ID").examples(CATALOGS_GET_EXAMPLES)).trackedAction(processContext, async (id, options) => {
|
|
19626
19726
|
const sdk = await connectTasksClient();
|
|
19627
19727
|
if (!sdk)
|
|
19628
19728
|
return;
|
|
@@ -19645,7 +19745,7 @@ var registerCatalogsCommand = (program) => {
|
|
|
19645
19745
|
Data: catalog
|
|
19646
19746
|
});
|
|
19647
19747
|
});
|
|
19648
|
-
addFolderScopeOptions(catalogs.command("create").description("Create a task catalog in a folder").requiredOption("--name <name>", "Catalog name (required)")).option("--description <text>", "Catalog description").option("--encrypted", "Encrypt the data of tasks in this catalog").option("--retention-action <action>", "Action at the retention limit (Delete, Archive)").option("--retention-period <days>", "Retention period in days").option("--retention-bucket-id <id>", "Storage bucket ID (used when retention action is Archive)").trackedAction(processContext, async (options) => {
|
|
19748
|
+
addFolderScopeOptions(catalogs.command("create").description("Create a task catalog in a folder").requiredOption("--name <name>", "Catalog name (required)")).option("--description <text>", "Catalog description").option("--encrypted", "Encrypt the data of tasks in this catalog").option("--retention-action <action>", "Action at the retention limit (Delete, Archive)").option("--retention-period <days>", "Retention period in days").option("--retention-bucket-id <id>", "Storage bucket ID (used when retention action is Archive)").examples(CATALOGS_CREATE_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
19649
19749
|
const sdk = await connectTasksClient();
|
|
19650
19750
|
if (!sdk)
|
|
19651
19751
|
return;
|
|
@@ -19669,7 +19769,7 @@ var registerCatalogsCommand = (program) => {
|
|
|
19669
19769
|
Data: catalog
|
|
19670
19770
|
});
|
|
19671
19771
|
});
|
|
19672
|
-
addFolderScopeOptions(catalogs.command("update").description("Update a task catalog").argument("<id>", "Task catalog ID")).option("--name <name>", "New catalog name").option("--description <text>", "Catalog description").option("--retention-action <action>", "Action at the retention limit (Delete, Archive)").option("--retention-period <days>", "Retention period in days").option("--retention-bucket-id <id>", "Storage bucket ID (used when retention action is Archive)").trackedAction(processContext, async (id, options) => {
|
|
19772
|
+
addFolderScopeOptions(catalogs.command("update").description("Update a task catalog").argument("<id>", "Task catalog ID")).option("--name <name>", "New catalog name").option("--description <text>", "Catalog description").option("--retention-action <action>", "Action at the retention limit (Delete, Archive)").option("--retention-period <days>", "Retention period in days").option("--retention-bucket-id <id>", "Storage bucket ID (used when retention action is Archive)").examples(CATALOGS_UPDATE_EXAMPLES).trackedAction(processContext, async (id, options) => {
|
|
19673
19773
|
const sdk = await connectTasksClient();
|
|
19674
19774
|
if (!sdk)
|
|
19675
19775
|
return;
|
|
@@ -19712,9 +19812,56 @@ var registerCatalogsCommand = (program) => {
|
|
|
19712
19812
|
};
|
|
19713
19813
|
|
|
19714
19814
|
// src/commands/comments.ts
|
|
19815
|
+
var SAMPLE_COMMENT = {
|
|
19816
|
+
id: 501,
|
|
19817
|
+
key: "8e9f0a1b-2c3d-4e5f-9a6b-7c8d9e0f1a2b",
|
|
19818
|
+
taskId: 1234,
|
|
19819
|
+
folderId: 42,
|
|
19820
|
+
text: "Escalated to the finance lead",
|
|
19821
|
+
createdTime: "2026-10-02T14:30:00Z",
|
|
19822
|
+
creatorUserId: 1
|
|
19823
|
+
};
|
|
19824
|
+
var COMMENTS_LIST_EXAMPLES = [
|
|
19825
|
+
{
|
|
19826
|
+
Description: "List the comments on a task",
|
|
19827
|
+
Command: 'uip tasks comments list 1234 --folder-path "Shared/Finance"',
|
|
19828
|
+
Output: {
|
|
19829
|
+
Code: "TaskCommentList",
|
|
19830
|
+
Data: [
|
|
19831
|
+
SAMPLE_COMMENT,
|
|
19832
|
+
{
|
|
19833
|
+
...SAMPLE_COMMENT,
|
|
19834
|
+
id: 502,
|
|
19835
|
+
key: "0a1b2c3d-4e5f-4a6b-8c7d-9e0f1a2b3c4d",
|
|
19836
|
+
text: "Approved by the finance lead",
|
|
19837
|
+
createdTime: "2026-10-03T10:05:00Z",
|
|
19838
|
+
creatorUserId: 2
|
|
19839
|
+
}
|
|
19840
|
+
]
|
|
19841
|
+
}
|
|
19842
|
+
},
|
|
19843
|
+
{
|
|
19844
|
+
Description: "List only the first comment, with the folder given by ID",
|
|
19845
|
+
Command: "uip tasks comments list 1234 --folder-id 42 --limit 1",
|
|
19846
|
+
Output: {
|
|
19847
|
+
Code: "TaskCommentList",
|
|
19848
|
+
Data: [SAMPLE_COMMENT]
|
|
19849
|
+
}
|
|
19850
|
+
}
|
|
19851
|
+
];
|
|
19852
|
+
var COMMENTS_ADD_EXAMPLES = [
|
|
19853
|
+
{
|
|
19854
|
+
Description: "Add a comment to a task",
|
|
19855
|
+
Command: 'uip tasks comments add 1234 --text "Escalated to the finance lead" --folder-path "Shared/Finance"',
|
|
19856
|
+
Output: {
|
|
19857
|
+
Code: "TaskCommentCreated",
|
|
19858
|
+
Data: SAMPLE_COMMENT
|
|
19859
|
+
}
|
|
19860
|
+
}
|
|
19861
|
+
];
|
|
19715
19862
|
var registerCommentsCommand = (program) => {
|
|
19716
19863
|
const comments = program.command("comments").description("Manage task comments");
|
|
19717
|
-
addFolderScopeOptions(comments.command("list").description("List the comments on a task").argument("<task-id>", "Task ID")).option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").trackedAction(processContext, async (taskId, options) => {
|
|
19864
|
+
addFolderScopeOptions(comments.command("list").description("List the comments on a task").argument("<task-id>", "Task ID")).option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").examples(COMMENTS_LIST_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
|
|
19718
19865
|
const sdk = await connectTasksClient();
|
|
19719
19866
|
if (!sdk)
|
|
19720
19867
|
return;
|
|
@@ -19768,7 +19915,7 @@ var registerCommentsCommand = (program) => {
|
|
|
19768
19915
|
Data: limit ? allItems.slice(0, limit) : allItems
|
|
19769
19916
|
});
|
|
19770
19917
|
});
|
|
19771
|
-
addFolderScopeOptions(comments.command("add").description("Add a comment to a task").argument("<task-id>", "Task ID").requiredOption("--text <text>", "Comment text (required)")).trackedAction(processContext, async (taskId, options) => {
|
|
19918
|
+
addFolderScopeOptions(comments.command("add").description("Add a comment to a task").argument("<task-id>", "Task ID").requiredOption("--text <text>", "Comment text (required)").examples(COMMENTS_ADD_EXAMPLES)).trackedAction(processContext, async (taskId, options) => {
|
|
19772
19919
|
const sdk = await connectTasksClient();
|
|
19773
19920
|
if (!sdk)
|
|
19774
19921
|
return;
|
|
@@ -19808,9 +19955,46 @@ var registerCommentsCommand = (program) => {
|
|
|
19808
19955
|
};
|
|
19809
19956
|
|
|
19810
19957
|
// src/commands/data.ts
|
|
19958
|
+
var DATA_GET_EXAMPLES = [
|
|
19959
|
+
{
|
|
19960
|
+
Description: "Get a task's data",
|
|
19961
|
+
Command: 'uip tasks data get 1234 --folder-path "Shared/Finance"',
|
|
19962
|
+
Output: {
|
|
19963
|
+
Code: "TaskData",
|
|
19964
|
+
Data: {
|
|
19965
|
+
id: 1234,
|
|
19966
|
+
key: "5f1c2a3b-8d4e-4f6a-9b7c-0d1e2f3a4b5c",
|
|
19967
|
+
title: "Approve invoice INV-1042",
|
|
19968
|
+
type: "FormTask",
|
|
19969
|
+
status: "Pending",
|
|
19970
|
+
priority: "High",
|
|
19971
|
+
folderId: 42,
|
|
19972
|
+
data: {
|
|
19973
|
+
invoiceNumber: "INV-1042",
|
|
19974
|
+
amount: 1250.5,
|
|
19975
|
+
approved: false
|
|
19976
|
+
},
|
|
19977
|
+
action: null,
|
|
19978
|
+
createdTime: "2026-10-01T09:15:00Z",
|
|
19979
|
+
lastModifiedTime: "2026-10-01T09:20:00Z",
|
|
19980
|
+
tags: []
|
|
19981
|
+
}
|
|
19982
|
+
}
|
|
19983
|
+
}
|
|
19984
|
+
];
|
|
19985
|
+
var DATA_SAVE_EXAMPLES = [
|
|
19986
|
+
{
|
|
19987
|
+
Description: "Replace a task's data (send every key you want to keep, not only the changed one)",
|
|
19988
|
+
Command: `uip tasks data save 1234 --data '{"invoiceNumber":"INV-1042","amount":1250.5,"approved":true}' --folder-path "Shared/Finance"`,
|
|
19989
|
+
Output: {
|
|
19990
|
+
Code: "TaskDataSaved",
|
|
19991
|
+
Data: { taskId: 1234 }
|
|
19992
|
+
}
|
|
19993
|
+
}
|
|
19994
|
+
];
|
|
19811
19995
|
var registerDataCommand = (program) => {
|
|
19812
19996
|
const data = program.command("data").description("Manage task data");
|
|
19813
|
-
addFolderScopeOptions(data.command("get").description("Get a task's data").argument("<task-id>", "Task ID")).trackedAction(processContext, async (taskId, options) => {
|
|
19997
|
+
addFolderScopeOptions(data.command("get").description("Get a task's data").argument("<task-id>", "Task ID").examples(DATA_GET_EXAMPLES)).trackedAction(processContext, async (taskId, options) => {
|
|
19814
19998
|
const sdk = await connectTasksClient();
|
|
19815
19999
|
if (!sdk)
|
|
19816
20000
|
return;
|
|
@@ -19836,7 +20020,7 @@ var registerDataCommand = (program) => {
|
|
|
19836
20020
|
Data: task
|
|
19837
20021
|
});
|
|
19838
20022
|
});
|
|
19839
|
-
addFolderScopeOptions(data.command("save").description("Save a task's data").argument("<task-id>", "Task ID").requiredOption("--data <json>", "Task data as a JSON object. REPLACES the task's data; keys you do not include are removed (there is no merge). To keep existing values, read them first with 'tasks data get' and resend them.")).trackedAction(processContext, async (taskId, options) => {
|
|
20023
|
+
addFolderScopeOptions(data.command("save").description("Save a task's data").argument("<task-id>", "Task ID").requiredOption("--data <json>", "Task data as a JSON object. REPLACES the task's data; keys you do not include are removed (there is no merge). To keep existing values, read them first with 'tasks data get' and resend them.").examples(DATA_SAVE_EXAMPLES)).trackedAction(processContext, async (taskId, options) => {
|
|
19840
20024
|
const sdk = await connectTasksClient();
|
|
19841
20025
|
if (!sdk)
|
|
19842
20026
|
return;
|
|
@@ -19884,8 +20068,35 @@ var registerDataCommand = (program) => {
|
|
|
19884
20068
|
};
|
|
19885
20069
|
|
|
19886
20070
|
// src/commands/labels.ts
|
|
20071
|
+
var LABELS_EXAMPLES = [
|
|
20072
|
+
{
|
|
20073
|
+
Description: "Set the labels on a task",
|
|
20074
|
+
Command: `uip tasks labels 1234 --labels '[{"name":"region","displayName":"Region","displayValue":"EMEA"}]' --folder-path "Shared/Finance"`,
|
|
20075
|
+
Output: {
|
|
20076
|
+
Code: "TaskLabelsSaved",
|
|
20077
|
+
Data: {
|
|
20078
|
+
taskId: 1234,
|
|
20079
|
+
labels: [
|
|
20080
|
+
{
|
|
20081
|
+
name: "region",
|
|
20082
|
+
displayName: "Region",
|
|
20083
|
+
displayValue: "EMEA"
|
|
20084
|
+
}
|
|
20085
|
+
]
|
|
20086
|
+
}
|
|
20087
|
+
}
|
|
20088
|
+
},
|
|
20089
|
+
{
|
|
20090
|
+
Description: "Clear all labels on a task",
|
|
20091
|
+
Command: `uip tasks labels 1234 --labels '[]' --folder-path "Shared/Finance"`,
|
|
20092
|
+
Output: {
|
|
20093
|
+
Code: "TaskLabelsSaved",
|
|
20094
|
+
Data: { taskId: 1234, labels: [] }
|
|
20095
|
+
}
|
|
20096
|
+
}
|
|
20097
|
+
];
|
|
19887
20098
|
var registerLabelsCommand = (program) => {
|
|
19888
|
-
addFolderScopeOptions(program.command("labels").description("Set or clear the labels on a task").argument("<task-id>", "Task ID").requiredOption("--labels <json>", `Labels as a JSON array, e.g. '[{"name":"region","displayName":"Region","displayValue":"EMEA"}]' (use '[]' to clear)`)).trackedAction(processContext, async (taskId, options) => {
|
|
20099
|
+
addFolderScopeOptions(program.command("labels").description("Set or clear the labels on a task").argument("<task-id>", "Task ID").requiredOption("--labels <json>", `Labels as a JSON array, e.g. '[{"name":"region","displayName":"Region","displayValue":"EMEA"}]' (use '[]' to clear)`).examples(LABELS_EXAMPLES)).trackedAction(processContext, async (taskId, options) => {
|
|
19889
20100
|
const sdk = await connectTasksClient();
|
|
19890
20101
|
if (!sdk)
|
|
19891
20102
|
return;
|
|
@@ -19935,8 +20146,26 @@ var registerLabelsCommand = (program) => {
|
|
|
19935
20146
|
};
|
|
19936
20147
|
|
|
19937
20148
|
// src/commands/metadata.ts
|
|
20149
|
+
var METADATA_EXAMPLES = [
|
|
20150
|
+
{
|
|
20151
|
+
Description: "Raise a task's priority and record why",
|
|
20152
|
+
Command: 'uip tasks metadata 1234 --priority Critical --note "Customer escalation" --folder-path "Shared/Finance"',
|
|
20153
|
+
Output: {
|
|
20154
|
+
Code: "TaskMetadataEdited",
|
|
20155
|
+
Data: { taskId: 1234 }
|
|
20156
|
+
}
|
|
20157
|
+
},
|
|
20158
|
+
{
|
|
20159
|
+
Description: "Rename a task and link it to a task catalog",
|
|
20160
|
+
Command: 'uip tasks metadata 1234 --title "Approve invoice INV-1042 (urgent)" --catalog-id 7 --folder-path "Shared/Finance"',
|
|
20161
|
+
Output: {
|
|
20162
|
+
Code: "TaskMetadataEdited",
|
|
20163
|
+
Data: { taskId: 1234 }
|
|
20164
|
+
}
|
|
20165
|
+
}
|
|
20166
|
+
];
|
|
19938
20167
|
var registerMetadataCommand = (program) => {
|
|
19939
|
-
addFolderScopeOptions(program.command("metadata").description("Edit a task's metadata").argument("<task-id>", "Task ID")).option("--title <title>", "New title").option("--priority <priority>", "New priority (Low, Medium, High, Critical)").option("--catalog-id <id>", "Associate a task catalog by ID").option("--unset-catalog", "Remove the task's catalog association").option("--note <text>", "Comment recorded with the edit").trackedAction(processContext, async (taskId, options) => {
|
|
20168
|
+
addFolderScopeOptions(program.command("metadata").description("Edit a task's metadata").argument("<task-id>", "Task ID")).option("--title <title>", "New title").option("--priority <priority>", "New priority (Low, Medium, High, Critical)").option("--catalog-id <id>", "Associate a task catalog by ID").option("--unset-catalog", "Remove the task's catalog association").option("--note <text>", "Comment recorded with the edit").examples(METADATA_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
|
|
19940
20169
|
const sdk = await connectTasksClient();
|
|
19941
20170
|
if (!sdk)
|
|
19942
20171
|
return;
|
|
@@ -20021,6 +20250,162 @@ var VALID_TASK_TYPES = [
|
|
|
20021
20250
|
"DataLabelingTask",
|
|
20022
20251
|
"QuickFormTask"
|
|
20023
20252
|
];
|
|
20253
|
+
var SAMPLE_TASK = {
|
|
20254
|
+
id: 1234,
|
|
20255
|
+
key: "5f1c2a3b-8d4e-4f6a-9b7c-0d1e2f3a4b5c",
|
|
20256
|
+
title: "Approve invoice INV-1042",
|
|
20257
|
+
type: "FormTask",
|
|
20258
|
+
status: "Pending",
|
|
20259
|
+
priority: "High",
|
|
20260
|
+
folderId: 42,
|
|
20261
|
+
createdTime: "2026-10-01T09:15:00Z",
|
|
20262
|
+
lastAssignedTime: "2026-10-01T09:20:00Z",
|
|
20263
|
+
completedTime: null
|
|
20264
|
+
};
|
|
20265
|
+
var TASKS_LIST_EXAMPLES = [
|
|
20266
|
+
{
|
|
20267
|
+
Description: "List the first 2 tasks you can see across folders",
|
|
20268
|
+
Command: "uip tasks list --limit 2",
|
|
20269
|
+
Output: {
|
|
20270
|
+
Code: "TaskList",
|
|
20271
|
+
Data: [
|
|
20272
|
+
SAMPLE_TASK,
|
|
20273
|
+
{
|
|
20274
|
+
...SAMPLE_TASK,
|
|
20275
|
+
id: 1235,
|
|
20276
|
+
key: "7a8b9c0d-1e2f-4a3b-8c4d-5e6f7a8b9c0d",
|
|
20277
|
+
title: "Review vendor contract",
|
|
20278
|
+
type: "ExternalTask",
|
|
20279
|
+
status: "Unassigned",
|
|
20280
|
+
priority: "Medium",
|
|
20281
|
+
lastAssignedTime: null
|
|
20282
|
+
}
|
|
20283
|
+
]
|
|
20284
|
+
}
|
|
20285
|
+
},
|
|
20286
|
+
{
|
|
20287
|
+
Description: "List all tasks in one folder as a task admin",
|
|
20288
|
+
Command: 'uip tasks list --folder-path "Shared/Finance" --as-admin',
|
|
20289
|
+
Output: {
|
|
20290
|
+
Code: "TaskList",
|
|
20291
|
+
Data: [SAMPLE_TASK]
|
|
20292
|
+
}
|
|
20293
|
+
}
|
|
20294
|
+
];
|
|
20295
|
+
var TASKS_GET_EXAMPLES = [
|
|
20296
|
+
{
|
|
20297
|
+
Description: "Get a task by ID",
|
|
20298
|
+
Command: "uip tasks get 1234",
|
|
20299
|
+
Output: {
|
|
20300
|
+
Code: "TaskDetails",
|
|
20301
|
+
Data: {
|
|
20302
|
+
...SAMPLE_TASK,
|
|
20303
|
+
isCompleted: false,
|
|
20304
|
+
taskAssigneeName: "alice@company.com",
|
|
20305
|
+
assignedToUser: {
|
|
20306
|
+
id: 1,
|
|
20307
|
+
userName: "alice",
|
|
20308
|
+
emailAddress: "alice@company.com",
|
|
20309
|
+
displayName: "Alice Smith"
|
|
20310
|
+
}
|
|
20311
|
+
}
|
|
20312
|
+
}
|
|
20313
|
+
},
|
|
20314
|
+
{
|
|
20315
|
+
Description: "Get a form task by ID, scoped to its folder",
|
|
20316
|
+
Command: 'uip tasks get 1234 --task-type FormTask --folder-path "Shared/Finance"',
|
|
20317
|
+
Output: {
|
|
20318
|
+
Code: "TaskDetails",
|
|
20319
|
+
Data: {
|
|
20320
|
+
...SAMPLE_TASK,
|
|
20321
|
+
isCompleted: false,
|
|
20322
|
+
taskAssigneeName: "alice@company.com",
|
|
20323
|
+
data: { invoiceNumber: "INV-1042", amount: 1250.5 }
|
|
20324
|
+
}
|
|
20325
|
+
}
|
|
20326
|
+
}
|
|
20327
|
+
];
|
|
20328
|
+
var TASKS_ASSIGN_EXAMPLES = [
|
|
20329
|
+
{
|
|
20330
|
+
Description: "Assign a task to a user by email",
|
|
20331
|
+
Command: "uip tasks assign 1234 --user alice@company.com",
|
|
20332
|
+
Output: {
|
|
20333
|
+
Code: "TaskAssigned",
|
|
20334
|
+
Data: {
|
|
20335
|
+
success: true,
|
|
20336
|
+
data: [{ taskId: 1234, userNameOrEmail: "alice@company.com" }]
|
|
20337
|
+
}
|
|
20338
|
+
}
|
|
20339
|
+
},
|
|
20340
|
+
{
|
|
20341
|
+
Description: "Assign a task to a user ID from 'tasks users'",
|
|
20342
|
+
Command: "uip tasks assign 1234 --user-id 1",
|
|
20343
|
+
Output: {
|
|
20344
|
+
Code: "TaskAssigned",
|
|
20345
|
+
Data: { success: true, data: [{ taskId: 1234, userId: 1 }] }
|
|
20346
|
+
}
|
|
20347
|
+
}
|
|
20348
|
+
];
|
|
20349
|
+
var TASKS_REASSIGN_EXAMPLES = [
|
|
20350
|
+
{
|
|
20351
|
+
Description: "Reassign a task to another user by email",
|
|
20352
|
+
Command: "uip tasks reassign 1234 --user bob@company.com",
|
|
20353
|
+
Output: {
|
|
20354
|
+
Code: "TaskReassigned",
|
|
20355
|
+
Data: {
|
|
20356
|
+
success: true,
|
|
20357
|
+
data: [{ taskId: 1234, userNameOrEmail: "bob@company.com" }]
|
|
20358
|
+
}
|
|
20359
|
+
}
|
|
20360
|
+
},
|
|
20361
|
+
{
|
|
20362
|
+
Description: "Reassign a task to a user ID from 'tasks users'",
|
|
20363
|
+
Command: "uip tasks reassign 1234 --user-id 2",
|
|
20364
|
+
Output: {
|
|
20365
|
+
Code: "TaskReassigned",
|
|
20366
|
+
Data: { success: true, data: [{ taskId: 1234, userId: 2 }] }
|
|
20367
|
+
}
|
|
20368
|
+
}
|
|
20369
|
+
];
|
|
20370
|
+
var TASKS_UNASSIGN_EXAMPLES = [
|
|
20371
|
+
{
|
|
20372
|
+
Description: "Remove the assignee from a task",
|
|
20373
|
+
Command: "uip tasks unassign 1234",
|
|
20374
|
+
Output: {
|
|
20375
|
+
Code: "TaskUnassigned",
|
|
20376
|
+
Data: { success: true, data: [{ taskId: 1234 }] }
|
|
20377
|
+
}
|
|
20378
|
+
}
|
|
20379
|
+
];
|
|
20380
|
+
var TASKS_COMPLETE_EXAMPLES = [
|
|
20381
|
+
{
|
|
20382
|
+
Description: "Complete a form task with an action and its data",
|
|
20383
|
+
Command: `uip tasks complete 1234 --type FormTask --action Approve --data '{"approved":true}' --folder-path "Shared/Finance"`,
|
|
20384
|
+
Output: {
|
|
20385
|
+
Code: "TaskCompleted",
|
|
20386
|
+
Data: {
|
|
20387
|
+
success: true,
|
|
20388
|
+
data: {
|
|
20389
|
+
taskId: 1234,
|
|
20390
|
+
type: "FormTask",
|
|
20391
|
+
action: "Approve",
|
|
20392
|
+
data: { approved: true }
|
|
20393
|
+
}
|
|
20394
|
+
}
|
|
20395
|
+
}
|
|
20396
|
+
},
|
|
20397
|
+
{
|
|
20398
|
+
Description: "Complete an external task, which needs no action",
|
|
20399
|
+
Command: "uip tasks complete 1235 --type ExternalTask --folder-id 42",
|
|
20400
|
+
Output: {
|
|
20401
|
+
Code: "TaskCompleted",
|
|
20402
|
+
Data: {
|
|
20403
|
+
success: true,
|
|
20404
|
+
data: { taskId: 1235, type: "ExternalTask" }
|
|
20405
|
+
}
|
|
20406
|
+
}
|
|
20407
|
+
}
|
|
20408
|
+
];
|
|
20024
20409
|
var TASKS_USERS_EXAMPLES = [
|
|
20025
20410
|
{
|
|
20026
20411
|
Description: "List users with task permissions in a folder",
|
|
@@ -20083,7 +20468,7 @@ var TASKS_USERS_EXAMPLES = [
|
|
|
20083
20468
|
}
|
|
20084
20469
|
];
|
|
20085
20470
|
var registerTasksCommand = (program) => {
|
|
20086
|
-
addFolderScopeOptions(program.command("list").description("List tasks across folders").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")), "Filter by folder ID").option("--as-admin", "List tasks as admin").option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").trackedAction(processContext, async (options) => {
|
|
20471
|
+
addFolderScopeOptions(program.command("list").description("List tasks across folders").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")), "Filter by folder ID").option("--as-admin", "List tasks as admin").option("-l, --limit <number>", "Maximum number of items to return (fetches all if omitted)").examples(TASKS_LIST_EXAMPLES).trackedAction(processContext, async (options) => {
|
|
20087
20472
|
const sdk = await connectTasksClient(options.tenant);
|
|
20088
20473
|
if (!sdk)
|
|
20089
20474
|
return;
|
|
@@ -20141,7 +20526,7 @@ var registerTasksCommand = (program) => {
|
|
|
20141
20526
|
Data: data
|
|
20142
20527
|
});
|
|
20143
20528
|
});
|
|
20144
|
-
addFolderScopeOptions(program.command("get").description("Get details of a task by ID. Use 'tasks list' to find task IDs.").argument("<id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--task-type <type>", "Task type (FormTask, ExternalTask, AppTask, DocumentValidationTask, DocumentClassificationTask, DataLabelingTask, QuickFormTask)"), "Folder ID (a folder is required when task-type is specified)").trackedAction(processContext, async (id, options) => {
|
|
20529
|
+
addFolderScopeOptions(program.command("get").description("Get details of a task by ID. Use 'tasks list' to find task IDs.").argument("<id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--task-type <type>", "Task type (FormTask, ExternalTask, AppTask, DocumentValidationTask, DocumentClassificationTask, DataLabelingTask, QuickFormTask)").examples(TASKS_GET_EXAMPLES), "Folder ID (a folder is required when task-type is specified)").trackedAction(processContext, async (id, options) => {
|
|
20145
20530
|
const sdk = await connectTasksClient(options.tenant);
|
|
20146
20531
|
if (!sdk)
|
|
20147
20532
|
return;
|
|
@@ -20181,13 +20566,13 @@ var registerTasksCommand = (program) => {
|
|
|
20181
20566
|
Data: task
|
|
20182
20567
|
});
|
|
20183
20568
|
});
|
|
20184
|
-
program.command("assign").description("Assign a task to a user").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--user-id <id>", "User ID").option("--user <email>", "User name or email (alternative to --user-id)").trackedAction(processContext, async (taskId, options) => {
|
|
20569
|
+
program.command("assign").description("Assign a task to a user").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--user-id <id>", "User ID").option("--user <email>", "User name or email (alternative to --user-id)").examples(TASKS_ASSIGN_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
|
|
20185
20570
|
await assignOrReassign(taskId, options, "assign");
|
|
20186
20571
|
});
|
|
20187
|
-
program.command("reassign").description("Reassign a task to a different user").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--user-id <id>", "User ID").option("--user <email>", "User name or email (alternative to --user-id)").trackedAction(processContext, async (taskId, options) => {
|
|
20572
|
+
program.command("reassign").description("Reassign a task to a different user").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).option("--user-id <id>", "User ID").option("--user <email>", "User name or email (alternative to --user-id)").examples(TASKS_REASSIGN_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
|
|
20188
20573
|
await assignOrReassign(taskId, options, "reassign");
|
|
20189
20574
|
});
|
|
20190
|
-
program.command("unassign").description("Remove the assignee from a task").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).trackedAction(processContext, async (taskId, options) => {
|
|
20575
|
+
program.command("unassign").description("Remove the assignee from a task").argument("<task-id>", "Task ID").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>")).examples(TASKS_UNASSIGN_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
|
|
20191
20576
|
const sdk = await connectTasksClient(options.tenant);
|
|
20192
20577
|
if (!sdk)
|
|
20193
20578
|
return;
|
|
@@ -20210,7 +20595,7 @@ var registerTasksCommand = (program) => {
|
|
|
20210
20595
|
Data: result
|
|
20211
20596
|
});
|
|
20212
20597
|
});
|
|
20213
|
-
addFolderScopeOptions(program.command("complete").description("Complete a task with an action and optional data").argument("<task-id>", "Task ID").requiredOption("--type <type>", "Task type (FormTask, ExternalTask, AppTask, DocumentValidationTask, DocumentClassificationTask, DataLabelingTask, QuickFormTask)").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>"))).option("--data <json>", "Task data as a JSON object. REPLACES the task's data; keys you do not include are removed (there is no merge). To keep existing values, read them first with 'tasks data get' and resend them.").option("--action <action>", "Action name (required for FormTask and AppTask)").trackedAction(processContext, async (taskId, options) => {
|
|
20598
|
+
addFolderScopeOptions(program.command("complete").description("Complete a task with an action and optional data").argument("<task-id>", "Task ID").requiredOption("--type <type>", "Task type (FormTask, ExternalTask, AppTask, DocumentValidationTask, DocumentClassificationTask, DataLabelingTask, QuickFormTask)").addOption(createHiddenDeprecatedTenantOption("-t, --tenant <tenant-name>"))).option("--data <json>", "Task data as a JSON object. REPLACES the task's data; keys you do not include are removed (there is no merge). To keep existing values, read them first with 'tasks data get' and resend them.").option("--action <action>", "Action name (required for FormTask and AppTask)").examples(TASKS_COMPLETE_EXAMPLES).trackedAction(processContext, async (taskId, options) => {
|
|
20214
20599
|
const sdk = await connectTasksClient(options.tenant);
|
|
20215
20600
|
if (!sdk)
|
|
20216
20601
|
return;
|
|
@@ -20372,13 +20757,13 @@ async function assignOrReassign(taskId, options, action) {
|
|
|
20372
20757
|
}
|
|
20373
20758
|
|
|
20374
20759
|
// src/tool.ts
|
|
20375
|
-
var
|
|
20760
|
+
var metadata2 = {
|
|
20376
20761
|
name: "tasks-tool",
|
|
20377
20762
|
version: package_default.version,
|
|
20378
20763
|
description: "Manage Action Center tasks.",
|
|
20379
20764
|
commandPrefix: "tasks"
|
|
20380
20765
|
};
|
|
20381
|
-
var
|
|
20766
|
+
var registerCommands2 = async (program) => {
|
|
20382
20767
|
registerTasksCommand(program);
|
|
20383
20768
|
registerCatalogsCommand(program);
|
|
20384
20769
|
registerCommentsCommand(program);
|
|
@@ -20387,6 +20772,6 @@ var registerCommands = async (program) => {
|
|
|
20387
20772
|
registerDataCommand(program);
|
|
20388
20773
|
};
|
|
20389
20774
|
|
|
20390
|
-
export {
|
|
20775
|
+
export { metadata2, registerCommands2 };
|
|
20391
20776
|
|
|
20392
|
-
//# debugId=
|
|
20777
|
+
//# debugId=5D875C485FCDCB9564756E2164756E21
|