@uipath/maestro-builder-sdk 6.122.3 → 6.122.4
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/nodes/document/flow/family.d.ts +1 -0
- package/dist/nodes/document/flow/family.js +1 -0
- package/dist/nodes/document/flow/ixp.d.ts +9 -0
- package/dist/nodes/document/flow/ixp.js +11 -0
- package/dist/nodes/document/flow/node-type.js +2 -2
- package/dist/serialize.js +5 -2
- package/package.json +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/** The document node family, as flow-node-registry.ts lists it: Document Classify, Dynamic Extract and an IxP project's extractor. */
|
|
2
2
|
import type { FlowNodeFamily } from '../../../flow-node-type.js';
|
|
3
|
+
export { isIxpNodeType } from './ixp.js';
|
|
3
4
|
export declare const documentFlowFamily: FlowNodeFamily;
|
|
4
5
|
/**
|
|
5
6
|
* The IDP processor rules, for `compile` (`idp-processor-files.ts`) and
|
|
@@ -5,6 +5,15 @@ export type IxpExtractSpec = {
|
|
|
5
5
|
kind: 'ixpExtract';
|
|
6
6
|
inputs: IxpExtractInputs;
|
|
7
7
|
};
|
|
8
|
+
/**
|
|
9
|
+
* Whether a node of `typeName` is an IxP node instance, which carries no
|
|
10
|
+
* node-level `model`: the slim `{ type, serviceType }` lives only in
|
|
11
|
+
* `definitions[]`, and `flow validate` rejects a node-level copy on every
|
|
12
|
+
* `uipath.ixp.*` node ("Top-level `model` block is forbidden on IxP node
|
|
13
|
+
* instances"). Keyed on the prefix, as the product's rule is, so it holds for
|
|
14
|
+
* a type no factory owns as well as for `ixpExtract()` and `dynamicExtract()`.
|
|
15
|
+
*/
|
|
16
|
+
export declare function isIxpNodeType(typeName: string): boolean;
|
|
8
17
|
export declare const IXP_DIAGNOSTICS: DiagnosticCatalog;
|
|
9
18
|
/**
|
|
10
19
|
* Build the definition for one published IxP project.
|
|
@@ -17,6 +17,17 @@ import { parseIxpProjectType } from './spec.js';
|
|
|
17
17
|
import { CompileRefusal } from '../../../core/compile-refusal.js';
|
|
18
18
|
import { declareKeys } from '../../../core/option-keys.js';
|
|
19
19
|
const IXP_PREFIX = 'uipath.ixp.';
|
|
20
|
+
/**
|
|
21
|
+
* Whether a node of `typeName` is an IxP node instance, which carries no
|
|
22
|
+
* node-level `model`: the slim `{ type, serviceType }` lives only in
|
|
23
|
+
* `definitions[]`, and `flow validate` rejects a node-level copy on every
|
|
24
|
+
* `uipath.ixp.*` node ("Top-level `model` block is forbidden on IxP node
|
|
25
|
+
* instances"). Keyed on the prefix, as the product's rule is, so it holds for
|
|
26
|
+
* a type no factory owns as well as for `ixpExtract()` and `dynamicExtract()`.
|
|
27
|
+
*/
|
|
28
|
+
export function isIxpNodeType(typeName) {
|
|
29
|
+
return typeName.startsWith(IXP_PREFIX);
|
|
30
|
+
}
|
|
20
31
|
export const IXP_DIAGNOSTICS = {
|
|
21
32
|
IXP_FORBIDDEN_INPUT: { severity: 'error', summary: 'an IxP step setting an input the current node does not declare' },
|
|
22
33
|
IXP_NO_FILE: { severity: 'error', summary: 'an IxP step with no fileRef' },
|
|
@@ -351,8 +351,8 @@ export const dynamicExtractNodeType = {
|
|
|
351
351
|
},
|
|
352
352
|
// IxP instances must NOT carry the manifest's model block — the slim
|
|
353
353
|
// { type, serviceType } lives only in definitions[] (product validate
|
|
354
|
-
// rejects a node-level copy).
|
|
355
|
-
//
|
|
354
|
+
// rejects a node-level copy). `makeNode` drops it for every
|
|
355
|
+
// `uipath.ixp.*` node, a rawNode included (`isIxpNodeType`).
|
|
356
356
|
model: 'omit',
|
|
357
357
|
};
|
|
358
358
|
},
|
package/dist/serialize.js
CHANGED
|
@@ -13,6 +13,7 @@ import { Expr, toExpr, flatNameSegmentsOf, parallelFork } from './flow-sdk.js';
|
|
|
13
13
|
import { FlowAction, FlowTrigger } from './core/node-classes.js';
|
|
14
14
|
import { connectorRawNodeRefusal } from './nodes/connector/flow/family.js';
|
|
15
15
|
import { isAgentResourceType } from './nodes/agent/flow/family.js';
|
|
16
|
+
import { isIxpNodeType } from './nodes/document/flow/family.js';
|
|
16
17
|
import { CompileRefusal, LibraryRequiredRefusal } from './core/compile-refusal.js';
|
|
17
18
|
import { nearestName } from './core/edit-distance.js';
|
|
18
19
|
import { unknownOptionRefusal } from './core/option-keys.js';
|
|
@@ -1879,8 +1880,10 @@ function serializeFlow(built, opts) {
|
|
|
1879
1880
|
col++;
|
|
1880
1881
|
// A registered node type may carry no node-level `model`, whichever path
|
|
1881
1882
|
// emits it (its own serialize, or a rawNode through emitContribution) — the
|
|
1882
|
-
// Data Fabric verbs, whose reasons are in their family (`nodeModel`).
|
|
1883
|
-
|
|
1883
|
+
// Data Fabric verbs, whose reasons are in their family (`nodeModel`). Every
|
|
1884
|
+
// IxP node omits it too, registered type or not (`isIxpNodeType`).
|
|
1885
|
+
const omitModel = isIxpNodeType(type)
|
|
1886
|
+
|| registeredRawType(type, String(def?.version ?? ''))?.impl.nodeModel === 'omit';
|
|
1884
1887
|
if (def?.model && !omitModel)
|
|
1885
1888
|
node.model = subNodeId(jsonClone(def.model), id);
|
|
1886
1889
|
if (def?.outputDefinition)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/maestro-builder-sdk",
|
|
3
|
-
"version": "6.122.
|
|
3
|
+
"version": "6.122.4",
|
|
4
4
|
"description": "Build UiPath Flow, Case, and BPMN artifacts by writing TypeScript.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"homepage": "https://docs.uipath.com/maestro",
|
|
@@ -126,5 +126,5 @@
|
|
|
126
126
|
"@types/node": "^22.7.0",
|
|
127
127
|
"esbuild": "^0.28.1"
|
|
128
128
|
},
|
|
129
|
-
"gitref": "
|
|
129
|
+
"gitref": "251bc711e6f04958da7a3bf9952d181ff03a7b08"
|
|
130
130
|
}
|