@uipath/maestro-sdk 1.199.0-preview.110 → 1.199.0-preview.111
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.
|
@@ -3784,8 +3784,8 @@ var bpmn_spec_default = {
|
|
|
3784
3784
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
3785
3785
|
</bpmn:Task>`,
|
|
3786
3786
|
inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
|
|
3787
|
-
bpmnElementNotes: "Also used on bpmn:StartEvent and bpmn:
|
|
3788
|
-
extensionTagNotes: "Uses uipath:mapping (not uipath:activity).
|
|
3787
|
+
bpmnElementNotes: "Also used on bpmn:StartEvent, bpmn:EndEvent, bpmn:ScriptTask, and bpmn:SubProcess for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
|
|
3788
|
+
extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
|
|
3789
3789
|
},
|
|
3790
3790
|
"BPMN.ScriptTask": {
|
|
3791
3791
|
extensionType: "BPMN.ScriptTask",
|
|
@@ -18150,4 +18150,4 @@ export {
|
|
|
18150
18150
|
BPMN_PARSE_ERROR
|
|
18151
18151
|
};
|
|
18152
18152
|
|
|
18153
|
-
//# debugId=
|
|
18153
|
+
//# debugId=BAFB4C19AB3E5A8F64756E2164756E21
|
|
@@ -2250,8 +2250,8 @@ var bpmn_spec_default = {
|
|
|
2250
2250
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
2251
2251
|
</bpmn:Task>`,
|
|
2252
2252
|
inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
|
|
2253
|
-
bpmnElementNotes: "Also used on bpmn:StartEvent and bpmn:
|
|
2254
|
-
extensionTagNotes: "Uses uipath:mapping (not uipath:activity).
|
|
2253
|
+
bpmnElementNotes: "Also used on bpmn:StartEvent, bpmn:EndEvent, bpmn:ScriptTask, and bpmn:SubProcess for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
|
|
2254
|
+
extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
|
|
2255
2255
|
},
|
|
2256
2256
|
"BPMN.ScriptTask": {
|
|
2257
2257
|
extensionType: "BPMN.ScriptTask",
|
|
@@ -2998,6 +2998,7 @@ var SUPPORTED_UIPATH_EXTENSION_TAGS = Object.freeze(SUPPORTED_UIPATH_EXTENSION_T
|
|
|
2998
2998
|
// src/bpmn-validation/project-validator.ts
|
|
2999
2999
|
var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
|
|
3000
3000
|
var SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR";
|
|
3001
|
+
var BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL";
|
|
3001
3002
|
|
|
3002
3003
|
class BpmnValidateService {
|
|
3003
3004
|
fileSystem;
|
|
@@ -3204,7 +3205,7 @@ class BpmnValidateService {
|
|
|
3204
3205
|
});
|
|
3205
3206
|
}
|
|
3206
3207
|
const allowedOwners = getAllowedOwnerTypes(contract);
|
|
3207
|
-
if (!allowedOwners.some((allowedOwner) =>
|
|
3208
|
+
if (!allowedOwners.some((allowedOwner) => getLocalName(allowedOwner) === getLocalName(owner.name) && resolveNamespace(owner) === BPMN_MODEL_NAMESPACE)) {
|
|
3208
3209
|
diagnostics.push({
|
|
3209
3210
|
file,
|
|
3210
3211
|
element: describeElement(owner),
|
|
@@ -3673,10 +3674,23 @@ function findFirst(node, predicate) {
|
|
|
3673
3674
|
return;
|
|
3674
3675
|
}
|
|
3675
3676
|
function hasLocalName(node, localName) {
|
|
3676
|
-
return
|
|
3677
|
+
return getLocalName(node.name) === localName.toLowerCase();
|
|
3677
3678
|
}
|
|
3678
|
-
function
|
|
3679
|
-
return name.toLowerCase();
|
|
3679
|
+
function getLocalName(name) {
|
|
3680
|
+
return name.slice(name.lastIndexOf(":") + 1).toLowerCase();
|
|
3681
|
+
}
|
|
3682
|
+
function resolveNamespace(node) {
|
|
3683
|
+
const separator = node.name.indexOf(":");
|
|
3684
|
+
const prefix = separator === -1 ? "" : node.name.slice(0, separator);
|
|
3685
|
+
const declaration = prefix ? `xmlns:${prefix}` : "xmlns";
|
|
3686
|
+
let current = node;
|
|
3687
|
+
while (current) {
|
|
3688
|
+
if (Object.hasOwn(current.attributes, declaration)) {
|
|
3689
|
+
return current.attributes[declaration];
|
|
3690
|
+
}
|
|
3691
|
+
current = current.parent;
|
|
3692
|
+
}
|
|
3693
|
+
return;
|
|
3680
3694
|
}
|
|
3681
3695
|
function findBpmnOwner(payload) {
|
|
3682
3696
|
const extensionElements = payload.parent;
|
|
@@ -3705,7 +3719,8 @@ function getAllowedOwnerTypes(contract) {
|
|
|
3705
3719
|
"bpmn:StartEvent",
|
|
3706
3720
|
"bpmn:EndEvent",
|
|
3707
3721
|
"bpmn:Task",
|
|
3708
|
-
"bpmn:ScriptTask"
|
|
3722
|
+
"bpmn:ScriptTask",
|
|
3723
|
+
"bpmn:SubProcess"
|
|
3709
3724
|
];
|
|
3710
3725
|
}
|
|
3711
3726
|
const placementTypes = Object.values(contract.placements).map((placement) => placement.type);
|
|
@@ -3865,4 +3880,4 @@ export {
|
|
|
3865
3880
|
BpmnValidateService
|
|
3866
3881
|
};
|
|
3867
3882
|
|
|
3868
|
-
//# debugId=
|
|
3883
|
+
//# debugId=DE15716967BCD42764756E2164756E21
|
package/dist/index.js
CHANGED
|
@@ -49455,8 +49455,8 @@ var bpmn_spec_default = {
|
|
|
49455
49455
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
49456
49456
|
</bpmn:Task>`,
|
|
49457
49457
|
inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
|
|
49458
|
-
bpmnElementNotes: "Also used on bpmn:StartEvent and bpmn:
|
|
49459
|
-
extensionTagNotes: "Uses uipath:mapping (not uipath:activity).
|
|
49458
|
+
bpmnElementNotes: "Also used on bpmn:StartEvent, bpmn:EndEvent, bpmn:ScriptTask, and bpmn:SubProcess for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
|
|
49459
|
+
extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
|
|
49460
49460
|
},
|
|
49461
49461
|
"BPMN.ScriptTask": {
|
|
49462
49462
|
extensionType: "BPMN.ScriptTask",
|
|
@@ -50203,6 +50203,7 @@ var SUPPORTED_UIPATH_EXTENSION_TAGS = Object.freeze(SUPPORTED_UIPATH_EXTENSION_T
|
|
|
50203
50203
|
// src/bpmn-validation/project-validator.ts
|
|
50204
50204
|
var KNOWN_UIPATH_TAGS = new Set(SUPPORTED_UIPATH_EXTENSION_TAGS);
|
|
50205
50205
|
var SEMANTIC_VALIDATION_ERROR = "BPMN_VALIDATION_ERROR";
|
|
50206
|
+
var BPMN_MODEL_NAMESPACE = "http://www.omg.org/spec/BPMN/20100524/MODEL";
|
|
50206
50207
|
|
|
50207
50208
|
class BpmnValidateService {
|
|
50208
50209
|
fileSystem;
|
|
@@ -50409,7 +50410,7 @@ class BpmnValidateService {
|
|
|
50409
50410
|
});
|
|
50410
50411
|
}
|
|
50411
50412
|
const allowedOwners = getAllowedOwnerTypes(contract);
|
|
50412
|
-
if (!allowedOwners.some((allowedOwner) =>
|
|
50413
|
+
if (!allowedOwners.some((allowedOwner) => getLocalName(allowedOwner) === getLocalName(owner.name) && resolveNamespace(owner) === BPMN_MODEL_NAMESPACE)) {
|
|
50413
50414
|
diagnostics.push({
|
|
50414
50415
|
file,
|
|
50415
50416
|
element: describeElement(owner),
|
|
@@ -50878,10 +50879,23 @@ function findFirst(node, predicate) {
|
|
|
50878
50879
|
return;
|
|
50879
50880
|
}
|
|
50880
50881
|
function hasLocalName(node, localName) {
|
|
50881
|
-
return
|
|
50882
|
+
return getLocalName(node.name) === localName.toLowerCase();
|
|
50882
50883
|
}
|
|
50883
|
-
function
|
|
50884
|
-
return name.toLowerCase();
|
|
50884
|
+
function getLocalName(name) {
|
|
50885
|
+
return name.slice(name.lastIndexOf(":") + 1).toLowerCase();
|
|
50886
|
+
}
|
|
50887
|
+
function resolveNamespace(node) {
|
|
50888
|
+
const separator = node.name.indexOf(":");
|
|
50889
|
+
const prefix = separator === -1 ? "" : node.name.slice(0, separator);
|
|
50890
|
+
const declaration = prefix ? `xmlns:${prefix}` : "xmlns";
|
|
50891
|
+
let current = node;
|
|
50892
|
+
while (current) {
|
|
50893
|
+
if (Object.hasOwn(current.attributes, declaration)) {
|
|
50894
|
+
return current.attributes[declaration];
|
|
50895
|
+
}
|
|
50896
|
+
current = current.parent;
|
|
50897
|
+
}
|
|
50898
|
+
return;
|
|
50885
50899
|
}
|
|
50886
50900
|
function findBpmnOwner(payload) {
|
|
50887
50901
|
const extensionElements = payload.parent;
|
|
@@ -50910,7 +50924,8 @@ function getAllowedOwnerTypes(contract) {
|
|
|
50910
50924
|
"bpmn:StartEvent",
|
|
50911
50925
|
"bpmn:EndEvent",
|
|
50912
50926
|
"bpmn:Task",
|
|
50913
|
-
"bpmn:ScriptTask"
|
|
50927
|
+
"bpmn:ScriptTask",
|
|
50928
|
+
"bpmn:SubProcess"
|
|
50914
50929
|
];
|
|
50915
50930
|
}
|
|
50916
50931
|
const placementTypes = Object.values(contract.placements).map((placement) => placement.type);
|
|
@@ -131080,7 +131095,7 @@ class TextApiResponse {
|
|
|
131080
131095
|
var package_default = {
|
|
131081
131096
|
name: "@uipath/integrationservice-sdk",
|
|
131082
131097
|
license: "MIT",
|
|
131083
|
-
version: "1.199.0-preview.
|
|
131098
|
+
version: "1.199.0-preview.111",
|
|
131084
131099
|
repository: {
|
|
131085
131100
|
type: "git",
|
|
131086
131101
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -142942,4 +142957,4 @@ export {
|
|
|
142942
142957
|
BPMN_SPEC
|
|
142943
142958
|
};
|
|
142944
142959
|
|
|
142945
|
-
//# debugId=
|
|
142960
|
+
//# debugId=569CDD15D6C3D79764756E2164756E21
|
|
@@ -2250,8 +2250,8 @@ var bpmn_spec_default = {
|
|
|
2250
2250
|
<bpmn:outgoing>{outgoingEdge}</bpmn:outgoing>
|
|
2251
2251
|
</bpmn:Task>`,
|
|
2252
2252
|
inputNotes: "Variable mappings use uipath:mapping with direct input/output elements, not a jsonBody pattern",
|
|
2253
|
-
bpmnElementNotes: "Also used on bpmn:StartEvent and bpmn:
|
|
2254
|
-
extensionTagNotes: "Uses uipath:mapping (not uipath:activity).
|
|
2253
|
+
bpmnElementNotes: "Also used on bpmn:StartEvent, bpmn:EndEvent, bpmn:ScriptTask, and bpmn:SubProcess for variable mappings. On bpmn:Task with no serviceType, defaults to BPMN.Variables.",
|
|
2254
|
+
extensionTagNotes: "Uses uipath:mapping (not uipath:activity). BPMN.Variables mappings are supported on StartEvent, EndEvent, Task, ScriptTask, and SubProcess owners."
|
|
2255
2255
|
},
|
|
2256
2256
|
"BPMN.ScriptTask": {
|
|
2257
2257
|
extensionType: "BPMN.ScriptTask",
|
|
@@ -3000,4 +3000,4 @@ export {
|
|
|
3000
3000
|
BPMN_SPEC
|
|
3001
3001
|
};
|
|
3002
3002
|
|
|
3003
|
-
//# debugId=
|
|
3003
|
+
//# debugId=2A58D609C0428ABD64756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-sdk",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.199.0-preview.
|
|
4
|
+
"version": "1.199.0-preview.111",
|
|
5
5
|
"description": "SDK for the UiPath Maestro (PIMS) API — process instance management.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"files": [
|
|
48
48
|
"dist"
|
|
49
49
|
],
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "1a86625f94b9abd4d02444b8c5deec7e9d08d210"
|
|
51
51
|
}
|