@uipath/case-tool 1.207.0-preview.366 → 1.207.0-preview.369
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{case-debug-solution-projects-6e6b16qq.js → case-debug-solution-projects-azefha11.js} +1 -1
- package/dist/{case-debug-studio-web-service-gemha75d.js → case-debug-studio-web-service-4z54zt3v.js} +2 -2
- package/dist/{case-pack-service-xyn6t90x.js → case-pack-service-epb723tm.js} +2 -2
- package/dist/{case-splice-service-hwjbt81f.js → case-splice-service-j9e214e7.js} +4 -4
- package/dist/{case-validate-service-17faft6e.js → case-validate-service-2raj1mk1.js} +3 -3
- package/dist/{connector-enrichment-service-jebgzxck.js → connector-enrichment-service-bkkqqs99.js} +6 -6
- package/dist/{connector-lookup-service-dhpzd4fz.js → connector-lookup-service-pzydggen.js} +2 -2
- package/dist/{connector-task-shape-qamydqnd.js → connector-task-shape-g6tyc4z5.js} +2 -4
- package/dist/{index-v2kjjmaj.js → index-2zcbmb0d.js} +4 -6
- package/dist/{index-darrxea2.js → index-csek2rn7.js} +1 -1
- package/dist/{index-w3r610c0.js → index-detd64tx.js} +4 -4
- package/dist/index.js +2 -2
- package/dist/{init-entry-points-pnp9cdn2.js → init-entry-points-x0nvrtm9.js} +1 -1
- package/dist/{integration-service-fetcher-0qegkmef.js → integration-service-fetcher-bqrx7n75.js} +2 -2
- package/dist/{node-sync-service-jy8q0yg5.js → node-sync-service-mbcrw5an.js} +3 -3
- package/dist/{packager-tool-v6fv86sz.js → packager-tool-2a8p7p9y.js} +1 -1
- package/dist/{packager-tool-brgq2a72.js → packager-tool-3tsqa9c3.js} +4 -4
- package/dist/{packager-tool-xnspytxd.js → packager-tool-68xm6p6g.js} +2 -2
- package/dist/{packager-tool-5a00111n.js → packager-tool-c6znpjxg.js} +2 -2
- package/dist/{packager-tool-ysv7n9bq.js → packager-tool-e1r1m1fr.js} +170 -3871
- package/dist/{packager-tool-dr9fxzed.js → packager-tool-h21mc6tk.js} +1 -1
- package/dist/{packager-tool-w4qdchyq.js → packager-tool-kk3x20wv.js} +1 -1
- package/dist/{packager-tool-5ag6241s.js → packager-tool-na9g8het.js} +1 -1
- package/dist/{packager-tool-tntebxp7.js → packager-tool-ndwgf588.js} +1 -1
- package/dist/{packager-tool-cenyx45f.js → packager-tool-p4wps74z.js} +31 -27
- package/dist/{packager-tool-qcj4b7s5.js → packager-tool-qmbqame3.js} +4 -4
- package/dist/packager-tool-rp66dp3a.js +30 -0
- package/dist/{packager-tool-phde58ta.js → packager-tool-v9hbm526.js} +1 -1
- package/dist/packager-tool-vqexp500.js +95 -0
- package/dist/{resourcesSyncService-qvavs9n3.js → resourcesSyncService-7steed3a.js} +4 -4
- package/dist/{rule-type-declaration-8d70fcg1.js → rule-type-declaration-5t95xkbj.js} +1 -1
- package/dist/{sdd-convert-service-nv95qnp3.js → sdd-convert-service-m9spcya6.js} +3 -3
- package/dist/{sdd-resolve-siblings-npmj7bjm.js → sdd-resolve-siblings-qaz89bh4.js} +1 -1
- package/dist/{strict-sdd-audit-cybg0wva.js → strict-sdd-audit-egqnhewp.js} +1 -1
- package/dist/tool.js +1 -1
- package/dist/{trigger-enrichment-service-2nk25yr9.js → trigger-enrichment-service-79yfxy52.js} +10 -10
- package/package.json +2 -2
- package/dist/packager-tool-07mv459d.js +0 -205
- package/dist/packager-tool-e1tx5mqg.js +0 -48
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
// src/utils/schema-helpers.ts
|
|
2
|
-
var VALID_TASK_ENTRY_RULE_TYPES = [
|
|
3
|
-
"current-stage-entered",
|
|
4
|
-
"selected-tasks-completed",
|
|
5
|
-
"task-exited",
|
|
6
|
-
"wait-for-connector",
|
|
7
|
-
"adhoc",
|
|
8
|
-
"runs-sequentially",
|
|
9
|
-
"sla-status-change",
|
|
10
|
-
"api-event"
|
|
11
|
-
];
|
|
12
|
-
var VALID_STAGE_ENTRY_RULE_TYPES = [
|
|
13
|
-
"case-entered",
|
|
14
|
-
"selected-stage-exited",
|
|
15
|
-
"selected-stage-completed",
|
|
16
|
-
"wait-for-connector",
|
|
17
|
-
"user-selected-stage",
|
|
18
|
-
"sla-status-change",
|
|
19
|
-
"api-event"
|
|
20
|
-
];
|
|
21
|
-
var VALID_STAGE_COMPLETION_RULE_TYPES = [
|
|
22
|
-
"required-tasks-completed",
|
|
23
|
-
"selected-tasks-completed",
|
|
24
|
-
"wait-for-connector",
|
|
25
|
-
"sla-status-change",
|
|
26
|
-
"api-event"
|
|
27
|
-
];
|
|
28
|
-
var VALID_STAGE_EXIT_RULE_TYPES = [
|
|
29
|
-
"selected-tasks-completed",
|
|
30
|
-
"task-exited",
|
|
31
|
-
"wait-for-connector",
|
|
32
|
-
"sla-status-change",
|
|
33
|
-
"api-event"
|
|
34
|
-
];
|
|
35
|
-
var VALID_CASE_COMPLETION_RULE_TYPES = [
|
|
36
|
-
"required-stages-completed",
|
|
37
|
-
"selected-stage-exited",
|
|
38
|
-
"selected-stage-completed",
|
|
39
|
-
"wait-for-connector",
|
|
40
|
-
"sla-status-change",
|
|
41
|
-
"api-event"
|
|
42
|
-
];
|
|
43
|
-
var VALID_CASE_EXIT_RULE_TYPES = [
|
|
44
|
-
"selected-stage-completed",
|
|
45
|
-
"selected-stage-exited",
|
|
46
|
-
"wait-for-connector",
|
|
47
|
-
"sla-status-change",
|
|
48
|
-
"api-event"
|
|
49
|
-
];
|
|
50
|
-
function buildRule(options) {
|
|
51
|
-
const {
|
|
52
|
-
id,
|
|
53
|
-
ruleType,
|
|
54
|
-
conditionExpression,
|
|
55
|
-
selectedStageId,
|
|
56
|
-
selectedTasksIds
|
|
57
|
-
} = options;
|
|
58
|
-
switch (ruleType) {
|
|
59
|
-
case "wait-for-connector":
|
|
60
|
-
return { rule: "wait-for-connector", id, conditionExpression };
|
|
61
|
-
case "case-entered":
|
|
62
|
-
return { rule: "case-entered", id, conditionExpression };
|
|
63
|
-
case "selected-stage-completed":
|
|
64
|
-
return {
|
|
65
|
-
rule: "selected-stage-completed",
|
|
66
|
-
id,
|
|
67
|
-
...selectedStageId !== undefined && {
|
|
68
|
-
selectedStageIds: [selectedStageId]
|
|
69
|
-
},
|
|
70
|
-
conditionExpression
|
|
71
|
-
};
|
|
72
|
-
case "selected-stage-exited":
|
|
73
|
-
return {
|
|
74
|
-
rule: "selected-stage-exited",
|
|
75
|
-
id,
|
|
76
|
-
...selectedStageId !== undefined && {
|
|
77
|
-
selectedStageIds: [selectedStageId]
|
|
78
|
-
},
|
|
79
|
-
conditionExpression
|
|
80
|
-
};
|
|
81
|
-
case "selected-tasks-completed":
|
|
82
|
-
return {
|
|
83
|
-
rule: "selected-tasks-completed",
|
|
84
|
-
id,
|
|
85
|
-
selectedTasksIds,
|
|
86
|
-
conditionExpression
|
|
87
|
-
};
|
|
88
|
-
case "task-exited":
|
|
89
|
-
return {
|
|
90
|
-
rule: "task-exited",
|
|
91
|
-
id,
|
|
92
|
-
selectedTasksIds,
|
|
93
|
-
conditionExpression
|
|
94
|
-
};
|
|
95
|
-
case "current-stage-entered":
|
|
96
|
-
return { rule: "current-stage-entered", id, conditionExpression };
|
|
97
|
-
case "adhoc":
|
|
98
|
-
return { rule: "adhoc", id, conditionExpression };
|
|
99
|
-
case "required-stages-completed":
|
|
100
|
-
return {
|
|
101
|
-
rule: "required-stages-completed",
|
|
102
|
-
id,
|
|
103
|
-
conditionExpression
|
|
104
|
-
};
|
|
105
|
-
case "required-tasks-completed":
|
|
106
|
-
return {
|
|
107
|
-
rule: "required-tasks-completed",
|
|
108
|
-
id,
|
|
109
|
-
conditionExpression
|
|
110
|
-
};
|
|
111
|
-
case "user-selected-stage":
|
|
112
|
-
return { rule: "user-selected-stage", id, conditionExpression };
|
|
113
|
-
case "runs-sequentially":
|
|
114
|
-
return { rule: "runs-sequentially", id, conditionExpression };
|
|
115
|
-
case "sla-status-change":
|
|
116
|
-
return { rule: "sla-status-change", id, conditionExpression };
|
|
117
|
-
case "api-event":
|
|
118
|
-
return { rule: "api-event", id, conditionExpression };
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
function isStageNode(node) {
|
|
122
|
-
return node.type === "case-management:Stage" || node.type === "case-management:ExceptionStage";
|
|
123
|
-
}
|
|
124
|
-
function requireStageNode(schema, stageId) {
|
|
125
|
-
const node = schema.nodes.find((n) => n.id === stageId);
|
|
126
|
-
if (!node) {
|
|
127
|
-
throw new Error(`Stage not found with id: ${stageId}`);
|
|
128
|
-
}
|
|
129
|
-
if (!isStageNode(node)) {
|
|
130
|
-
throw new Error(`Node ${stageId} is not a stage (type: ${node.type})`);
|
|
131
|
-
}
|
|
132
|
-
return node;
|
|
133
|
-
}
|
|
134
|
-
function findTask(tasks, taskId) {
|
|
135
|
-
for (let lane = 0;lane < tasks.length; lane++) {
|
|
136
|
-
const index = tasks[lane].findIndex((t) => t.id === taskId);
|
|
137
|
-
if (index !== -1) {
|
|
138
|
-
return { task: tasks[lane][index], lane, index };
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
return;
|
|
142
|
-
}
|
|
143
|
-
function requireTask(tasks, taskId, stageId) {
|
|
144
|
-
const found = findTask(tasks, taskId);
|
|
145
|
-
if (!found) {
|
|
146
|
-
throw new Error(`Task not found with id: ${taskId} in stage: ${stageId}`);
|
|
147
|
-
}
|
|
148
|
-
return found;
|
|
149
|
-
}
|
|
150
|
-
var DEFAULT_TRIGGER_ID = "trigger_1";
|
|
151
|
-
var DEFAULT_TRIGGER_LABEL = "Trigger 1";
|
|
152
|
-
function isTriggerNode(node) {
|
|
153
|
-
return node.type === "case-management:Trigger";
|
|
154
|
-
}
|
|
155
|
-
function isAnyTriggerNode(node) {
|
|
156
|
-
return isTriggerNode(node) || node.type === "uipath.case.trigger";
|
|
157
|
-
}
|
|
158
|
-
function findTriggerNodes(schema) {
|
|
159
|
-
return schema.nodes.filter(isTriggerNode);
|
|
160
|
-
}
|
|
161
|
-
function ensureRootBindings(schema) {
|
|
162
|
-
schema.bindings ??= [];
|
|
163
|
-
schema.variables ??= { inputOutputs: [] };
|
|
164
|
-
return schema;
|
|
165
|
-
}
|
|
166
|
-
function findOrPushBinding(schema, binding) {
|
|
167
|
-
ensureRootBindings(schema);
|
|
168
|
-
const bindings = schema.bindings;
|
|
169
|
-
if (!bindings) {
|
|
170
|
-
throw new Error("Bindings array missing after ensureRootBindings");
|
|
171
|
-
}
|
|
172
|
-
const existing = bindings.find((b) => b.propertyAttribute === binding.propertyAttribute && b.resource === binding.resource && b.resourceKey === binding.resourceKey && b.default === binding.default);
|
|
173
|
-
if (existing)
|
|
174
|
-
return existing;
|
|
175
|
-
bindings.push(binding);
|
|
176
|
-
return binding;
|
|
177
|
-
}
|
|
178
|
-
function remapBindingRefs(value, idRemap) {
|
|
179
|
-
if (idRemap.size === 0)
|
|
180
|
-
return value;
|
|
181
|
-
if (Array.isArray(value)) {
|
|
182
|
-
for (let i = 0;i < value.length; i++) {
|
|
183
|
-
value[i] = remapBindingRefs(value[i], idRemap);
|
|
184
|
-
}
|
|
185
|
-
return value;
|
|
186
|
-
}
|
|
187
|
-
if (value && typeof value === "object") {
|
|
188
|
-
const obj = value;
|
|
189
|
-
for (const key of Object.keys(obj)) {
|
|
190
|
-
obj[key] = remapBindingRefs(obj[key], idRemap);
|
|
191
|
-
}
|
|
192
|
-
return obj;
|
|
193
|
-
}
|
|
194
|
-
if (typeof value === "string") {
|
|
195
|
-
for (const [from, to] of idRemap) {
|
|
196
|
-
if (value === `=bindings.${from}`)
|
|
197
|
-
return `=bindings.${to}`;
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
return value;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
export { VALID_TASK_ENTRY_RULE_TYPES, VALID_STAGE_ENTRY_RULE_TYPES, VALID_STAGE_COMPLETION_RULE_TYPES, VALID_STAGE_EXIT_RULE_TYPES, VALID_CASE_COMPLETION_RULE_TYPES, VALID_CASE_EXIT_RULE_TYPES, buildRule, isStageNode, requireStageNode, requireTask, DEFAULT_TRIGGER_ID, DEFAULT_TRIGGER_LABEL, isAnyTriggerNode, findTriggerNodes, ensureRootBindings, findOrPushBinding, remapBindingRefs };
|
|
204
|
-
|
|
205
|
-
//# debugId=BCEB6BE8BBD7AAE664756E2164756E21
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
prefixedId
|
|
3
|
-
} from "./packager-tool-1h7abxw6.js";
|
|
4
|
-
|
|
5
|
-
// src/utils/binding-builder.ts
|
|
6
|
-
function createBinding(propertyAttribute, defaultValue, resource, resourceKey) {
|
|
7
|
-
return {
|
|
8
|
-
id: prefixedId("b", 8),
|
|
9
|
-
name: propertyAttribute,
|
|
10
|
-
type: "string",
|
|
11
|
-
resource,
|
|
12
|
-
propertyAttribute,
|
|
13
|
-
resourceKey,
|
|
14
|
-
default: defaultValue
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
function createTaskBindings(taskName, folderPath, taskType) {
|
|
18
|
-
const resource = taskType === "action" ? "app" : "process";
|
|
19
|
-
const resourceKey = `${folderPath}.${taskName}`;
|
|
20
|
-
const nameBinding = createBinding("name", taskName, resource, resourceKey);
|
|
21
|
-
const folderPathBinding = createBinding("folderPath", folderPath, resource, resourceKey);
|
|
22
|
-
return [nameBinding, folderPathBinding];
|
|
23
|
-
}
|
|
24
|
-
function createConnectorBindings(connectorKey, connectionId, folderKey) {
|
|
25
|
-
const connectionBinding = {
|
|
26
|
-
id: prefixedId("b", 8),
|
|
27
|
-
name: `${connectorKey} connection`,
|
|
28
|
-
type: "string",
|
|
29
|
-
resource: "Connection",
|
|
30
|
-
propertyAttribute: "ConnectionId",
|
|
31
|
-
resourceKey: connectionId,
|
|
32
|
-
default: connectionId
|
|
33
|
-
};
|
|
34
|
-
const folderKeyBinding = folderKey ? {
|
|
35
|
-
id: prefixedId("b", 8),
|
|
36
|
-
name: "FolderKey",
|
|
37
|
-
type: "string",
|
|
38
|
-
resource: "Connection",
|
|
39
|
-
propertyAttribute: "folderKey",
|
|
40
|
-
resourceKey: connectionId,
|
|
41
|
-
default: folderKey
|
|
42
|
-
} : undefined;
|
|
43
|
-
return [connectionBinding, folderKeyBinding];
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export { createTaskBindings, createConnectorBindings };
|
|
47
|
-
|
|
48
|
-
//# debugId=536BD326FFC9BE9264756E2164756E21
|