@uipath/case-tool 1.203.0-preview.205 → 1.204.0-preview.206
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 +6 -1
- package/dist/THIRD-PARTY-NOTICES.md +48 -9
- package/dist/authoring-0hr88kff.js +623 -0
- package/dist/{case-api-v6cjyrfw.js → case-api-gdaj9469.js} +5 -5
- package/dist/case-bindings-service-c2mze9vj.js +476 -0
- package/dist/{case-debug-studio-web-service-shg84pn8.js → case-debug-studio-web-service-cc0vj7md.js} +11 -10
- package/dist/case-described-io-service-cpe5h2ks.js +132 -0
- package/dist/{case-format-service-q345a2fd.js → case-format-service-qwyjyt0y.js} +2 -2
- package/dist/{case-pack-service-29rza2q2.js → case-pack-service-47yrvmg0.js} +11 -11
- package/dist/case-shape-reader-mw58avr0.js +13 -0
- package/dist/case-splice-service-9zvw19ca.js +312 -0
- package/dist/{case-validate-service-2n2bqc1g.js → case-validate-service-vrvx19c1.js} +415 -1449
- package/dist/{connector-enrichment-service-h662r92z.js → connector-enrichment-service-rg87npf0.js} +20 -18
- package/dist/{connector-lookup-service-y7x6xsc6.js → connector-lookup-service-c49pvfwb.js} +7 -7
- package/dist/{connector-task-spec-qm6q8qma.js → connector-task-spec-t3tjeeqt.js} +86 -26
- package/dist/{debug-service-8x087xxt.js → debug-service-vf5mw0nr.js} +3 -3
- package/dist/{embedded-file-reader-0sjt4nkj.js → embedded-file-reader-v8c2yj2a.js} +2 -2
- package/dist/{enrichment-service-7vbxcwge.js → enrichment-service-78b0gqck.js} +8 -7
- package/dist/index-hhsf00x8.js +15 -0
- package/dist/{index-fz4ttsde.js → index-j2r3jb6c.js} +5 -3
- package/dist/{index-jxj2jz45.js → index-rgw7caht.js} +416 -87
- package/dist/{index-k4xz16db.js → index-wmffgzmr.js} +12522 -7316
- package/dist/{index-va9sm89y.js → index-ynnr55wk.js} +59 -27
- package/dist/index.js +15 -11
- package/dist/{input-reader-pnh948bq.js → input-reader-bb0ptk2v.js} +2 -2
- package/dist/migration-diagnosis-ag2sgd1e.js +71 -0
- package/dist/{node-strategy-gc4sg6a2.js → node-strategy-5pz40tee.js} +1 -1
- package/dist/{node-sync-service-mehbp4qq.js → node-sync-service-xw3tpfj5.js} +6 -6
- package/dist/out-target-1f4n9vqb.js +70 -0
- package/dist/{packager-tool-wefb1zw3.js → packager-tool-0p3td5zv.js} +8 -7
- package/dist/packager-tool-21qfsbxn.js +17 -0
- package/dist/{strict-sdd-audit-8e2fh9jg.js → packager-tool-4e56rmwe.js} +2771 -1746
- package/dist/{packager-tool-sfkyb4kz.js → packager-tool-4rqd21wc.js} +194 -2
- package/dist/packager-tool-57pzrd0g.js +32 -0
- package/dist/{packager-tool-kpcjnxd1.js → packager-tool-58kx79ta.js} +586 -113
- package/dist/{packager-tool-hrdan5ms.js → packager-tool-5qghkdd0.js} +2 -2
- package/dist/packager-tool-5qp9xza1.js +10 -0
- package/dist/packager-tool-8a9yqfq7.js +76 -0
- package/dist/{packager-tool-40vq60aa.js → packager-tool-8mpxsyje.js} +4 -4
- package/dist/{packager-tool-e3k5gzd3.js → packager-tool-a6wztj6y.js} +669 -100
- package/dist/{packager-tool-p0zh9hw6.js → packager-tool-ayevyw80.js} +5 -5
- package/dist/packager-tool-b250k6w4.js +75 -0
- package/dist/packager-tool-bfgdz1zh.js +73 -0
- package/dist/{packager-tool-p7jgrm5r.js → packager-tool-cmwets3m.js} +1 -1
- package/dist/{packager-tool-d4sjk46c.js → packager-tool-cv05dwac.js} +18 -21
- package/dist/packager-tool-d7jjng8a.js +21 -0
- package/dist/packager-tool-dthjwajc.js +13 -0
- package/dist/{packager-tool-zcsm7dsj.js → packager-tool-e760vtgg.js} +4 -4
- package/dist/packager-tool-f78ntj5g.js +228 -0
- package/dist/{packager-tool-2xfyykm0.js → packager-tool-ggbvxvey.js} +320 -200
- package/dist/{packager-tool-6karkrc8.js → packager-tool-jx0yq0b5.js} +6 -6
- package/dist/{packager-tool-cg2j4rma.js → packager-tool-kacqd7h7.js} +4 -4
- package/dist/packager-tool-mknccck5.js +24 -0
- package/dist/{packager-tool-sv0d6wb6.js → packager-tool-nj4seavy.js} +7 -3
- package/dist/{packager-tool-adcaxdhs.js → packager-tool-paepfv5d.js} +1 -1
- package/dist/{packager-tool-052kvydg.js → packager-tool-pm646ag4.js} +1 -1
- package/dist/{packager-tool-dd8bq6az.js → packager-tool-rgpdaxbx.js} +548 -108
- package/dist/{packager-tool-8q7vzh65.js → packager-tool-s3e2kepj.js} +455 -13
- package/dist/{packager-tool-r84ng21s.js → packager-tool-sag9gz55.js} +3 -1
- package/dist/{packager-tool-0mj06yen.js → packager-tool-sq931c23.js} +5 -22
- package/dist/{packager-tool-yrsrzz1a.js → packager-tool-v99ygh9f.js} +23 -8
- package/dist/packager-tool-wj9d9mqe.js +267 -0
- package/dist/{packager-tool-hz1mz8fs.js → packager-tool-wjaya2k2.js} +2 -2
- package/dist/packager-tool-xcd87qyx.js +44 -0
- package/dist/{packager-tool-0v3s8r01.js → packager-tool-xdxr3ync.js} +4 -2
- package/dist/{packager-tool-61hxhgeg.js → packager-tool-xkgq5fkf.js} +3 -3
- package/dist/packager-tool.js +6 -6
- package/dist/{project-artifacts-8snev67g.js → project-artifacts-wzrhketn.js} +1 -1
- package/dist/resolved-check-p99hysaw.js +50 -0
- package/dist/{resourcesSyncService-pmfwz9cd.js → resourcesSyncService-1ezvhcbc.js} +25 -18
- package/dist/rule-group-members-zje7n3kf.js +76 -0
- package/dist/sdd-convert-service-gp9733qv.js +1962 -0
- package/dist/{sdd-lookup-x08j9g9m.js → sdd-lookup-vpjej1kt.js} +2 -2
- package/dist/sdd-resolve-service-4hx64x3z.js +288 -0
- package/dist/strict-case-rules-ksy8q7pg.js +731 -0
- package/dist/strict-entry-points-v14d7y50.js +124 -0
- package/dist/strict-sdd-audit-k6hh0mbr.js +23 -0
- package/dist/task-selector-8bjn35dv.js +57 -0
- package/dist/tool.js +15 -11
- package/dist/{trigger-enrichment-service-xexg7qbk.js → trigger-enrichment-service-pjw5ysny.js} +41 -23
- package/package.json +2 -2
- package/dist/authoring-kngaggwm.js +0 -360
- package/dist/case-bindings-service-1wxfghzd.js +0 -240
- package/dist/packager-tool-83qnybab.js +0 -1564
- package/dist/strict-case-rules-x6t0vb40.js +0 -409
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import"./packager-tool-1yh8g550.js";
|
|
2
|
+
|
|
3
|
+
// src/services/strict-entry-points.ts
|
|
4
|
+
var CASE_ENTRY_TYPE = "CaseManagement";
|
|
5
|
+
var INVENTED_KEYS = {
|
|
6
|
+
path: "filePath",
|
|
7
|
+
file: "filePath",
|
|
8
|
+
id: "uniqueId",
|
|
9
|
+
name: "displayName",
|
|
10
|
+
label: "displayName"
|
|
11
|
+
};
|
|
12
|
+
var nonEmptyString = (value) => typeof value === "string" && value.trim() !== "";
|
|
13
|
+
var TRIGGER_NODE_TYPES = new Set([
|
|
14
|
+
"case-management:Trigger",
|
|
15
|
+
"uipath.case.trigger"
|
|
16
|
+
]);
|
|
17
|
+
var nodeIdSets = (parsed) => {
|
|
18
|
+
const nodes = Array.isArray(parsed.nodes) ? parsed.nodes : [];
|
|
19
|
+
const all = new Set;
|
|
20
|
+
const triggers = new Set;
|
|
21
|
+
for (const node of nodes) {
|
|
22
|
+
if (typeof node !== "object" || node === null)
|
|
23
|
+
continue;
|
|
24
|
+
const record = node;
|
|
25
|
+
const id = record.id;
|
|
26
|
+
if (!nonEmptyString(id))
|
|
27
|
+
continue;
|
|
28
|
+
all.add(id);
|
|
29
|
+
const type = typeof record.type === "string" ? record.type : "";
|
|
30
|
+
if (TRIGGER_NODE_TYPES.has(type))
|
|
31
|
+
triggers.add(id);
|
|
32
|
+
}
|
|
33
|
+
return { all, triggers };
|
|
34
|
+
};
|
|
35
|
+
var inventedKeyHint = (record) => {
|
|
36
|
+
const found = Object.keys(INVENTED_KEYS).filter((key) => (key in record)).map((key) => `\`${key}\` for \`${INVENTED_KEYS[key]}\``);
|
|
37
|
+
return found.length === 0 ? "" : ` It carries ${found.join(", ")} — the key names are not ours to choose.`;
|
|
38
|
+
};
|
|
39
|
+
var checkEntryPoints = (entryPoints, parsed, fileName = "entry-points.json", planFileName) => {
|
|
40
|
+
const document = typeof entryPoints === "object" && entryPoints !== null && !Array.isArray(entryPoints) ? entryPoints : undefined;
|
|
41
|
+
if (entryPoints !== undefined) {
|
|
42
|
+
const declared = document?.entryPoints;
|
|
43
|
+
if (document === undefined || declared !== undefined && !Array.isArray(declared)) {
|
|
44
|
+
return [
|
|
45
|
+
{
|
|
46
|
+
code: "STRICT_ENTRY_POINT_SIDECAR_UNREADABLE",
|
|
47
|
+
path: fileName,
|
|
48
|
+
severity: "error",
|
|
49
|
+
message: `\`${fileName}\` parsed, and ${document === undefined ? "its root is not a JSON object" : "its `entryPoints` is not an array"}, so it declares no entry points to check. The runtime launches whichever BPMN the first entry resolves to and \`case pack\` fails on a file it cannot read, so the package would not ship. Write \`entryPoints\` as an array, or delete the file if the project does not need one.`
|
|
50
|
+
}
|
|
51
|
+
];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
const entries = Array.isArray(document?.entryPoints) ? document.entryPoints : [];
|
|
55
|
+
const { all: ids, triggers } = nodeIdSets(parsed);
|
|
56
|
+
const issues = [];
|
|
57
|
+
const registered = new Set;
|
|
58
|
+
entries.forEach((entry, index) => {
|
|
59
|
+
const path = `${fileName}.entryPoints[${index}]`;
|
|
60
|
+
if (typeof entry !== "object" || entry === null || Array.isArray(entry)) {
|
|
61
|
+
issues.push({
|
|
62
|
+
code: "STRICT_ENTRY_POINT_SIDECAR_UNREADABLE",
|
|
63
|
+
path,
|
|
64
|
+
severity: "error",
|
|
65
|
+
message: `\`${fileName}\` has a \`${Array.isArray(entry) ? "array" : entry === null ? "null" : typeof entry}\` at \`entryPoints[${index}]\` where an entry object belongs. \`case pack\` reads \`filePath\` from every item, so it fails on this file and the package cannot ship. Give the item the entry shape (\`filePath\`, \`uniqueId\`, \`type\`, \`displayName\`) or delete it.`
|
|
66
|
+
});
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const record = entry;
|
|
70
|
+
const named = nonEmptyString(record.displayName) ? record.displayName : nonEmptyString(record.name) ? String(record.name) : "";
|
|
71
|
+
const label = named === "" ? "" : ` ("${named}")`;
|
|
72
|
+
const issue = (code, message) => {
|
|
73
|
+
issues.push({ code, path, severity: "error", message });
|
|
74
|
+
};
|
|
75
|
+
if (record.type !== CASE_ENTRY_TYPE) {
|
|
76
|
+
const carried = nonEmptyString(record.type) ? `\`${String(record.type)}\`` : "nothing";
|
|
77
|
+
issue("STRICT_ENTRY_POINT_TYPE", `This entry point${label} has a \`type\` of ${carried}. The ` + `entry-points.json beside a case plan belongs to a case ` + `project, so every entry in it is \`"${CASE_ENTRY_TYPE}"\` ` + "— the runtime keys off that value to know what it is " + "starting.");
|
|
78
|
+
}
|
|
79
|
+
const missing = ["uniqueId", "displayName"].filter((field) => !nonEmptyString(record[field]));
|
|
80
|
+
if (missing.length > 0) {
|
|
81
|
+
issue("STRICT_ENTRY_POINT_INCOMPLETE", `This entry point${label} is missing ` + `${missing.map((field) => `\`${field}\``).join(", ")}.` + `${inventedKeyHint(record)} An entry carries ` + '`filePath`, `uniqueId`, `type: "CaseManagement"` and ' + "`displayName` — write the missing one.");
|
|
82
|
+
}
|
|
83
|
+
if (!nonEmptyString(record.filePath)) {
|
|
84
|
+
issue("STRICT_ENTRY_POINT_NO_FILE_PATH", `This entry point${label} has no \`filePath\`.` + `${inventedKeyHint(record)} That field is how the runtime ` + "finds the node to start, so the trigger is in the case " + "plan and invisible when the case runs. Write it as " + "`/content/<bpmn file>#<trigger node id>`.");
|
|
85
|
+
return;
|
|
86
|
+
}
|
|
87
|
+
const [filePart = "", fragment = ""] = record.filePath.split("#");
|
|
88
|
+
if (fragment.trim() === "") {
|
|
89
|
+
issue("STRICT_ENTRY_POINT_NO_FRAGMENT", `This entry point${label} points at ` + `${JSON.stringify(record.filePath)}, which names a file ` + "but no node. The runtime splits the path on `#` to get " + "the element to start, so it starts nothing. Write it as " + "`/content/<bpmn file>#<trigger node id>`.");
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (ids.size > 0 && !ids.has(fragment)) {
|
|
93
|
+
issue("STRICT_ENTRY_POINT_DANGLING", `This entry point${label} points at node \`${fragment}\`, and ` + "the case plan has no node with that id. The entry " + "resolves to nothing at run time. Renaming or replacing a " + "trigger node means updating the entry that names it.");
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
if (triggers.size > 0 && !triggers.has(fragment)) {
|
|
97
|
+
issue("STRICT_ENTRY_POINT_NOT_A_TRIGGER", `This entry point${label} points at node \`${fragment}\`, ` + "which is not a trigger. The runtime starts the element " + "the fragment names, and only a trigger starts a case — " + "so this entry starts nothing whatever else is right " + "about it.");
|
|
98
|
+
return;
|
|
99
|
+
}
|
|
100
|
+
registered.add(fragment);
|
|
101
|
+
const fileLeaf = filePart.split("/").at(-1) ?? "";
|
|
102
|
+
if (planFileName !== undefined && fileLeaf !== `${planFileName}.bpmn`) {
|
|
103
|
+
issue("STRICT_ENTRY_POINT_WRONG_FILE", `This entry point${label} names ` + `${JSON.stringify(filePart)}, and this plan packs to ` + `\`${planFileName}.bpmn\`. The runtime resolves both ` + "halves of the path, so a fragment that exists in another " + "document resolves to nothing here.");
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
if (document !== undefined && issues.length === 0) {
|
|
107
|
+
for (const trigger of triggers) {
|
|
108
|
+
if (registered.has(trigger))
|
|
109
|
+
continue;
|
|
110
|
+
issues.push({
|
|
111
|
+
code: "STRICT_ENTRY_POINT_TRIGGER_UNREGISTERED",
|
|
112
|
+
path: `${fileName}.entryPoints`,
|
|
113
|
+
severity: "error",
|
|
114
|
+
message: `Trigger node \`${trigger}\` has no entry point. Nothing ` + "can start it: the runtime finds a case's starting " + "elements through this file, so a trigger absent from it " + "is in the plan and unreachable. Add an entry naming it, " + `as \`/content/${planFileName ?? "<plan>"}.bpmn#${trigger}\`.`
|
|
115
|
+
});
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
return issues;
|
|
119
|
+
};
|
|
120
|
+
export {
|
|
121
|
+
checkEntryPoints
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
//# debugId=B1927A53F59DB0F264756E2164756E21
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_GROUP,
|
|
3
|
+
VARIABLE_PLACEMENT,
|
|
4
|
+
auditCaseplanAgainstSdd,
|
|
5
|
+
bodySchemaIn,
|
|
6
|
+
parseSddToJson
|
|
7
|
+
} from "./packager-tool-4e56rmwe.js";
|
|
8
|
+
import"./packager-tool-b250k6w4.js";
|
|
9
|
+
import"./packager-tool-21qfsbxn.js";
|
|
10
|
+
import"./packager-tool-f78ntj5g.js";
|
|
11
|
+
import"./packager-tool-nj4seavy.js";
|
|
12
|
+
import"./packager-tool-58kx79ta.js";
|
|
13
|
+
import"./packager-tool-xdxr3ync.js";
|
|
14
|
+
import"./packager-tool-1yh8g550.js";
|
|
15
|
+
export {
|
|
16
|
+
DEFAULT_GROUP,
|
|
17
|
+
VARIABLE_PLACEMENT,
|
|
18
|
+
auditCaseplanAgainstSdd,
|
|
19
|
+
bodySchemaIn,
|
|
20
|
+
parseSddToJson
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
//# debugId=D463A7DC9E83701064756E2164756E21
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import"./packager-tool-1yh8g550.js";
|
|
2
|
+
|
|
3
|
+
// src/services/task-selector.ts
|
|
4
|
+
var asRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
|
|
5
|
+
var asArray = (value) => Array.isArray(value) ? value : [];
|
|
6
|
+
var isTaskSelectorFailure = (value) => ("message" in value);
|
|
7
|
+
var tasksOf = (document) => {
|
|
8
|
+
const found = [];
|
|
9
|
+
for (const rawNode of asArray(document.nodes)) {
|
|
10
|
+
const node = asRecord(rawNode);
|
|
11
|
+
for (const lane of asArray(asRecord(node?.data)?.tasks)) {
|
|
12
|
+
for (const rawTask of asArray(lane)) {
|
|
13
|
+
const task = asRecord(rawTask);
|
|
14
|
+
if (task === undefined)
|
|
15
|
+
continue;
|
|
16
|
+
found.push({
|
|
17
|
+
id: typeof task.id === "string" ? task.id : "",
|
|
18
|
+
displayName: typeof task.displayName === "string" ? task.displayName : ""
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
return found;
|
|
24
|
+
};
|
|
25
|
+
var resolveTaskSelector = (document, selector) => {
|
|
26
|
+
const { taskId, taskName } = selector;
|
|
27
|
+
if (taskId === undefined === (taskName === undefined)) {
|
|
28
|
+
const both = taskId !== undefined;
|
|
29
|
+
return {
|
|
30
|
+
message: "Pass exactly one of --task-id or --task-name",
|
|
31
|
+
instructions: "--task-name takes the task's display name as the plan spells it; --task-id takes the generated id from `nodes[].data.tasks[][].id`." + (both ? " Passing both is two names for one task with no rule for which wins when they disagree, so neither was used." : " Neither was passed, so there is nothing saying which task to write into.")
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
if (taskId !== undefined)
|
|
35
|
+
return { id: taskId };
|
|
36
|
+
const matches = tasksOf(document).filter((task) => task.displayName === taskName);
|
|
37
|
+
const only = matches[0];
|
|
38
|
+
if (only !== undefined && matches.length === 1)
|
|
39
|
+
return { id: only.id };
|
|
40
|
+
if (only === undefined) {
|
|
41
|
+
const known = tasksOf(document).map((task) => task.displayName).filter((name) => name !== "");
|
|
42
|
+
return {
|
|
43
|
+
message: `No task named "${String(taskName)}" in this case plan`,
|
|
44
|
+
instructions: "The name has to match the task's `displayName` exactly — same case, same spacing — because that is how the SDD audit and the canvas compare it." + (known.length === 0 ? " This plan declares no task display names, so address the task by `--task-id`." : ` This plan has: ${known.map((name) => `"${name}"`).join(", ")}.`)
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
return {
|
|
48
|
+
message: `${matches.length} tasks in this case plan are named "${String(taskName)}"`,
|
|
49
|
+
instructions: `Display names are meant to be unique across a case, so this plan is already inconsistent. Pass \`--task-id\` for the one you mean — ${matches.map((task) => `\`${task.id}\``).join(", ")} — or give the tasks distinct names first.`
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export {
|
|
53
|
+
isTaskSelectorFailure,
|
|
54
|
+
resolveTaskSelector
|
|
55
|
+
};
|
|
56
|
+
|
|
57
|
+
//# debugId=B75FEDC4F7F58D1064756E2164756E21
|
package/dist/tool.js
CHANGED
|
@@ -1,24 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
2
|
metadata,
|
|
3
3
|
registerCommands
|
|
4
|
-
} from "./packager-tool-
|
|
5
|
-
import"./packager-tool-
|
|
6
|
-
import"./packager-tool-
|
|
7
|
-
import"./packager-tool-
|
|
8
|
-
import"./packager-tool-
|
|
9
|
-
import"./packager-tool-
|
|
4
|
+
} from "./packager-tool-a6wztj6y.js";
|
|
5
|
+
import"./packager-tool-57pzrd0g.js";
|
|
6
|
+
import"./packager-tool-sq931c23.js";
|
|
7
|
+
import"./packager-tool-xcd87qyx.js";
|
|
8
|
+
import"./packager-tool-mknccck5.js";
|
|
9
|
+
import"./packager-tool-nj4seavy.js";
|
|
10
|
+
import"./packager-tool-kacqd7h7.js";
|
|
11
|
+
import"./packager-tool-sag9gz55.js";
|
|
12
|
+
import"./packager-tool-wjaya2k2.js";
|
|
10
13
|
import"./packager-tool-vepqrsse.js";
|
|
11
|
-
import"./packager-tool-
|
|
14
|
+
import"./packager-tool-v99ygh9f.js";
|
|
12
15
|
import"./packager-tool-0gctz400.js";
|
|
13
16
|
import"./packager-tool-qa9gftnj.js";
|
|
14
17
|
import"./packager-tool-yc4kw997.js";
|
|
15
|
-
import"./packager-tool-
|
|
16
|
-
import"./packager-tool-
|
|
17
|
-
import"./packager-tool-
|
|
18
|
+
import"./packager-tool-cmwets3m.js";
|
|
19
|
+
import"./packager-tool-paepfv5d.js";
|
|
20
|
+
import"./packager-tool-58kx79ta.js";
|
|
21
|
+
import"./packager-tool-xdxr3ync.js";
|
|
18
22
|
import"./packager-tool-1yh8g550.js";
|
|
19
23
|
export {
|
|
20
24
|
metadata,
|
|
21
25
|
registerCommands
|
|
22
26
|
};
|
|
23
27
|
|
|
24
|
-
//# debugId=
|
|
28
|
+
//# debugId=AF39B1B8CADA91DC64756E2164756E21
|
package/dist/{trigger-enrichment-service-xexg7qbk.js → trigger-enrichment-service-pjw5ysny.js}
RENAMED
|
@@ -1,48 +1,50 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseEntryConfiguration
|
|
3
|
-
} from "./packager-tool-
|
|
3
|
+
} from "./packager-tool-jx0yq0b5.js";
|
|
4
4
|
import {
|
|
5
5
|
fetchConnectorConnections,
|
|
6
6
|
lookupTypeCacheEntry
|
|
7
|
-
} from "./packager-tool-
|
|
7
|
+
} from "./packager-tool-8mpxsyje.js";
|
|
8
8
|
import {
|
|
9
9
|
addVarIdsToInputsOutputs,
|
|
10
10
|
buildErrorOutput
|
|
11
|
-
} from "./packager-tool-
|
|
12
|
-
import"./packager-tool-
|
|
13
|
-
import"./packager-tool-
|
|
14
|
-
import"./packager-tool-
|
|
15
|
-
import"./packager-tool-
|
|
11
|
+
} from "./packager-tool-xkgq5fkf.js";
|
|
12
|
+
import"./packager-tool-rgpdaxbx.js";
|
|
13
|
+
import"./packager-tool-bfgdz1zh.js";
|
|
14
|
+
import"./packager-tool-0p3td5zv.js";
|
|
15
|
+
import"./packager-tool-ayevyw80.js";
|
|
16
|
+
import"./packager-tool-5qghkdd0.js";
|
|
16
17
|
import {
|
|
17
18
|
ConnectionOperationsApi,
|
|
18
19
|
ElementsApi,
|
|
19
20
|
assertActivityMetadataResolved,
|
|
20
21
|
createApiClient,
|
|
21
22
|
createConfiguredActivityClient
|
|
22
|
-
} from "./packager-tool-
|
|
23
|
+
} from "./packager-tool-e760vtgg.js";
|
|
23
24
|
import"./packager-tool-16q84571.js";
|
|
24
25
|
import"./packager-tool-7q6z6npd.js";
|
|
25
26
|
import"./packager-tool-sc961w0q.js";
|
|
26
27
|
import"./packager-tool-d88rqwk8.js";
|
|
27
|
-
import"./packager-tool-
|
|
28
|
+
import"./packager-tool-s3e2kepj.js";
|
|
28
29
|
import"./packager-tool-jysvpt8p.js";
|
|
29
30
|
import {
|
|
30
31
|
createConnectorBindings
|
|
31
|
-
} from "./packager-tool-
|
|
32
|
-
import"./packager-tool-
|
|
33
|
-
import"./packager-tool-
|
|
34
|
-
import"./packager-tool-
|
|
32
|
+
} from "./packager-tool-sq931c23.js";
|
|
33
|
+
import"./packager-tool-mknccck5.js";
|
|
34
|
+
import"./packager-tool-kacqd7h7.js";
|
|
35
|
+
import"./packager-tool-sag9gz55.js";
|
|
36
|
+
import"./packager-tool-wjaya2k2.js";
|
|
35
37
|
import"./packager-tool-vepqrsse.js";
|
|
36
|
-
import"./packager-tool-
|
|
38
|
+
import"./packager-tool-v99ygh9f.js";
|
|
37
39
|
import"./packager-tool-0gctz400.js";
|
|
38
40
|
import"./packager-tool-qa9gftnj.js";
|
|
39
41
|
import"./packager-tool-yc4kw997.js";
|
|
40
|
-
import"./packager-tool-
|
|
42
|
+
import"./packager-tool-paepfv5d.js";
|
|
41
43
|
import {
|
|
42
44
|
catchError,
|
|
43
45
|
logger
|
|
44
|
-
} from "./packager-tool-
|
|
45
|
-
import"./packager-tool-
|
|
46
|
+
} from "./packager-tool-58kx79ta.js";
|
|
47
|
+
import"./packager-tool-xdxr3ync.js";
|
|
46
48
|
import"./packager-tool-1yh8g550.js";
|
|
47
49
|
|
|
48
50
|
// src/services/trigger-enrichment-service.ts
|
|
@@ -77,11 +79,25 @@ function buildTriggerOutputs(params) {
|
|
|
77
79
|
outputs.push(buildErrorOutput());
|
|
78
80
|
return outputs;
|
|
79
81
|
}
|
|
82
|
+
function triggerActivityType(kind, configured) {
|
|
83
|
+
const base = typeof configured === "string" && configured !== "" ? configured : "CuratedTrigger";
|
|
84
|
+
if (kind === "start")
|
|
85
|
+
return base;
|
|
86
|
+
return base.startsWith("Generic") ? "GenericWaitFor" : "CuratedWaitFor";
|
|
87
|
+
}
|
|
80
88
|
async function buildTriggerPropertyConfig(params) {
|
|
81
|
-
const {
|
|
89
|
+
const {
|
|
90
|
+
kind,
|
|
91
|
+
entry,
|
|
92
|
+
config,
|
|
93
|
+
uiPathActivityTypeId,
|
|
94
|
+
connectionId,
|
|
95
|
+
eventParams
|
|
96
|
+
} = params;
|
|
97
|
+
const parsed = parseEntryConfiguration(entry);
|
|
82
98
|
const instanceParameters = {
|
|
83
|
-
...
|
|
84
|
-
activityType:
|
|
99
|
+
...parsed,
|
|
100
|
+
activityType: triggerActivityType(kind, parsed.activityType)
|
|
85
101
|
};
|
|
86
102
|
const triggerClient = await createConfiguredActivityClient({
|
|
87
103
|
instanceParameters,
|
|
@@ -264,7 +280,7 @@ function buildEventOutputSchema(fields) {
|
|
|
264
280
|
...Object.keys(definitions).length > 0 ? { definitions } : {}
|
|
265
281
|
};
|
|
266
282
|
}
|
|
267
|
-
async function enrichConnectorTrigger(triggerTypeId, connectionId, eventParams, indexType = "typecache-triggers") {
|
|
283
|
+
async function enrichConnectorTrigger(kind, triggerTypeId, connectionId, eventParams, indexType = "typecache-triggers") {
|
|
268
284
|
const { entry, config } = await lookupTypeCacheEntry(triggerTypeId, indexType);
|
|
269
285
|
const connections = await fetchConnectorConnections(config.connectorKey);
|
|
270
286
|
const connection = connections.find((c) => c.id === connectionId);
|
|
@@ -273,6 +289,7 @@ async function enrichConnectorTrigger(triggerTypeId, connectionId, eventParams,
|
|
|
273
289
|
}
|
|
274
290
|
const hasEventParams = eventParams !== undefined && Object.keys(eventParams).length > 0;
|
|
275
291
|
const { activityPropertyConfiguration, filterExpression } = await buildTriggerPropertyConfig({
|
|
292
|
+
kind,
|
|
276
293
|
entry,
|
|
277
294
|
config,
|
|
278
295
|
uiPathActivityTypeId: triggerTypeId,
|
|
@@ -334,7 +351,8 @@ export {
|
|
|
334
351
|
buildTriggerOutputs,
|
|
335
352
|
enrichConnectorTrigger,
|
|
336
353
|
fetchEventOutputFields,
|
|
337
|
-
fetchTriggerFieldInfo
|
|
354
|
+
fetchTriggerFieldInfo,
|
|
355
|
+
triggerActivityType
|
|
338
356
|
};
|
|
339
357
|
|
|
340
|
-
//# debugId=
|
|
358
|
+
//# debugId=42B03D48D53E1A8564756E2164756E21
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@uipath/case-tool",
|
|
3
3
|
"author": "UiPath",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
|
-
"version": "1.
|
|
5
|
+
"version": "1.204.0-preview.206",
|
|
6
6
|
"description": "Manage Case Management instances, processes, and incidents.",
|
|
7
7
|
"private": false,
|
|
8
8
|
"repository": {
|
|
@@ -28,5 +28,5 @@
|
|
|
28
28
|
"files": [
|
|
29
29
|
"dist"
|
|
30
30
|
],
|
|
31
|
-
"gitHead": "
|
|
31
|
+
"gitHead": "ea7fd32a02acccf14e8e83522e69101430627b83"
|
|
32
32
|
}
|