@uipath/integrationservice-sdk 1.199.0 → 1.201.0-preview.115
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/generated/connections/src/models/TextBlockMessageSeverity.d.ts +3 -3
- package/dist/generated/connections/src/models/TextBlockPosition.d.ts +4 -4
- package/dist/generated/elements/src/apis/ElementsApi.d.ts +2 -2
- package/dist/generated/elements/src/models/AvailableVersions.d.ts +3 -3
- package/dist/generated/elements/src/models/Delete.d.ts +15 -15
- package/dist/generated/elements/src/models/DeleteOrBuilder.d.ts +15 -15
- package/dist/generated/elements/src/models/EditionDefault.d.ts +9 -9
- package/dist/generated/elements/src/models/EditionDefaultOrBuilder.d.ts +9 -9
- package/dist/generated/elements/src/models/ElementVersion.d.ts +3 -3
- package/dist/generated/elements/src/models/Encoding.d.ts +4 -4
- package/dist/generated/elements/src/models/ErrorMessage.d.ts +69 -69
- package/dist/generated/elements/src/models/ExtensionRangeOptions.d.ts +2 -2
- package/dist/generated/elements/src/models/ExtensionRangeOptionsOrBuilder.d.ts +2 -2
- package/dist/generated/elements/src/models/FeatureSet.d.ts +19 -19
- package/dist/generated/elements/src/models/FeatureSetOrBuilder.d.ts +19 -19
- package/dist/generated/elements/src/models/FieldDescriptor.d.ts +54 -54
- package/dist/generated/elements/src/models/FieldDescriptorProto.d.ts +21 -21
- package/dist/generated/elements/src/models/FieldDescriptorProtoOrBuilder.d.ts +21 -21
- package/dist/generated/elements/src/models/FieldOptions.d.ts +9 -9
- package/dist/generated/elements/src/models/FieldOptionsOrBuilder.d.ts +9 -9
- package/dist/generated/elements/src/models/FileDescriptor.d.ts +13 -13
- package/dist/generated/elements/src/models/FileDescriptorProto.d.ts +9 -9
- package/dist/generated/elements/src/models/FileOptions.d.ts +3 -3
- package/dist/generated/elements/src/models/FileOptionsOrBuilder.d.ts +3 -3
- package/dist/generated/elements/src/models/Get.d.ts +15 -15
- package/dist/generated/elements/src/models/GetById.d.ts +15 -15
- package/dist/generated/elements/src/models/GetByIdOrBuilder.d.ts +15 -15
- package/dist/generated/elements/src/models/GetOrBuilder.d.ts +15 -15
- package/dist/generated/elements/src/models/Header.d.ts +1 -1
- package/dist/generated/elements/src/models/MethodOptions.d.ts +3 -3
- package/dist/generated/elements/src/models/MethodOptionsOrBuilder.d.ts +3 -3
- package/dist/generated/elements/src/models/Parameter.d.ts +7 -7
- package/dist/generated/elements/src/models/Patch.d.ts +15 -15
- package/dist/generated/elements/src/models/PatchOrBuilder.d.ts +15 -15
- package/dist/generated/elements/src/models/Post.d.ts +15 -15
- package/dist/generated/elements/src/models/PostOrBuilder.d.ts +15 -15
- package/dist/generated/elements/src/models/Put.d.ts +15 -15
- package/dist/generated/elements/src/models/PutOrBuilder.d.ts +15 -15
- package/dist/generated/elements/src/models/RemapConfiguration.d.ts +12 -12
- package/dist/generated/elements/src/models/RemapConfigurationOrBuilder.d.ts +12 -12
- package/dist/generated/elements/src/models/SecurityScheme.d.ts +8 -8
- package/dist/generated/elements/src/models/StandardResource.d.ts +10 -10
- package/dist/generated/elements/src/models/StandardResourceBulkTypes.d.ts +4 -4
- package/dist/generated/elements/src/models/StandardResourceBulkTypesOrBuilder.d.ts +4 -4
- package/dist/generated/elements/src/models/StandardResourceEventTypes.d.ts +3 -3
- package/dist/generated/elements/src/models/StandardResourceEventTypesOrBuilder.d.ts +3 -3
- package/dist/generated/elements/src/models/StandardResourceField.d.ts +5 -5
- package/dist/generated/elements/src/models/StandardResourceFieldDesign.d.ts +4 -4
- package/dist/generated/elements/src/models/StandardResourceFieldDesignOrBuilder.d.ts +4 -4
- package/dist/generated/elements/src/models/StandardResourceFieldMethodDesign.d.ts +4 -4
- package/dist/generated/elements/src/models/StandardResourceFieldMethodDesignOrBuilder.d.ts +4 -4
- package/dist/generated/elements/src/models/StandardResourceOutputResponseOption.d.ts +4 -4
- package/dist/generated/elements/src/models/StandardResourceOutputResponseOptionOrBuilder.d.ts +4 -4
- package/dist/generated/elements/src/models/StandardResourceTextBlock.d.ts +9 -9
- package/dist/generated/elements/src/models/StandardResourceTextBlockOrBuilder.d.ts +9 -9
- package/dist/generated/elements/src/models/Tenancy.d.ts +5 -5
- package/dist/generated/elements/src/models/ValueOrBuilder.d.ts +9 -9
- package/dist/index.js +56298 -18136
- package/dist/src/connection-state.d.ts +1 -0
- package/dist/src/dap/essential-config.d.ts +64 -28
- package/dist/src/dap/filter-builder/field-metadata.d.ts +5 -21
- package/dist/src/dap/filter-builder/index.d.ts +44 -50
- package/dist/src/dap/index.d.ts +1 -9
- package/dist/src/dap/input-metadata.d.ts +5 -1
- package/dist/src/dap/live-connection-provider.d.ts +11 -0
- package/dist/src/dap/types.d.ts +7 -0
- package/dist/src/index.d.ts +2 -0
- package/package.json +5 -2
- package/dist/src/dap/filter-builder/filter-group-operator.d.ts +0 -4
- package/dist/src/dap/filter-builder/filter-operator.d.ts +0 -32
- package/dist/src/dap/filter-builder/filter-tree.d.ts +0 -12
- package/dist/src/dap/filter-builder/filter.d.ts +0 -11
- package/dist/src/dap/filter-builder/uuid.d.ts +0 -8
- package/dist/src/dap/filter-builder/workflow-value.d.ts +0 -9
- package/dist/src/dap/helpers/activity-configuration-extensions.d.ts +0 -21
- package/dist/src/dap/helpers/array-extensions.d.ts +0 -8
- package/dist/src/dap/helpers/clr-type-mock.d.ts +0 -21
- package/dist/src/dap/helpers/configuration-field.d.ts +0 -25
- package/dist/src/dap/helpers/constants.d.ts +0 -9
- package/dist/src/dap/helpers/enum-item.d.ts +0 -10
- package/dist/src/dap/helpers/event-field.d.ts +0 -20
- package/dist/src/dap/helpers/exceptions.d.ts +0 -11
- package/dist/src/dap/helpers/field-location.d.ts +0 -14
- package/dist/src/dap/helpers/field-object-helpers.d.ts +0 -16
- package/dist/src/dap/helpers/field-object-type.d.ts +0 -12
- package/dist/src/dap/helpers/field-object.d.ts +0 -18
- package/dist/src/dap/helpers/field-type-helper.d.ts +0 -9
- package/dist/src/dap/helpers/filter-builder/ceql-helper.d.ts +0 -39
- package/dist/src/dap/helpers/filter-builder/filter-helper.d.ts +0 -19
- package/dist/src/dap/helpers/filter-builder/jmes-helper.d.ts +0 -98
- package/dist/src/dap/helpers/mandatory-filter-builder.d.ts +0 -24
- package/dist/src/dap/helpers/string-extensions.d.ts +0 -9
- package/dist/src/dap/helpers/translation.d.ts +0 -16
- package/dist/src/dap/helpers/trim.d.ts +0 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function normalizeConnectionStatus(status: unknown): string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DesignTimeFilterTree, IDesignTimeActivityClient } from "@uipath/integration-service-design-time";
|
|
2
2
|
import type { ConnectorMethodInfo, CustomFieldsRequestDetails } from "./types.js";
|
|
3
3
|
/**
|
|
4
4
|
* Connector key and version for the managed HTTP node (core.action.http.v2).
|
|
@@ -8,39 +8,75 @@ import type { ConnectorMethodInfo, CustomFieldsRequestDetails } from "./types.js
|
|
|
8
8
|
export declare const MANAGED_HTTP_CONNECTOR_KEY = "uipath-uipath-http";
|
|
9
9
|
export declare const MANAGED_HTTP_CONNECTOR_VERSION = "1.4.50";
|
|
10
10
|
/**
|
|
11
|
-
* Build the essential-only configuration blob for an activity connector node
|
|
12
|
-
*
|
|
11
|
+
* Build the OFFLINE (no-fetch) essential-only configuration blob for an activity connector node from
|
|
12
|
+
* the caller-supplied identity + `methodInfo`. `connectorVersion` and the connector's real fields are
|
|
13
|
+
* not available this way (left null); for a blob derived from the connector's own metadata, drive a
|
|
14
|
+
* live client via {@link createConfiguredActivityClient} and read `getEssentialConfiguration()` off it.
|
|
13
15
|
*
|
|
14
|
-
* `savedFilterTrees` is a map keyed by the connector's filter input
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* persisting both halves keeps the activity round-trippable in Studio Web,
|
|
19
|
-
* which reads the tree to render the filter widget and re-derives the
|
|
20
|
-
* CEQL expression on save.
|
|
16
|
+
* `savedFilterTrees` is a map keyed by the connector's filter input parameter name (e.g. `"where"`)
|
|
17
|
+
* and valued by the structured filter tree the user authored. The compiled CEQL string lives separately
|
|
18
|
+
* on `inputs.detail.queryParameters[<paramName>]`; persisting both halves keeps the activity
|
|
19
|
+
* round-trippable in Studio Web.
|
|
21
20
|
*
|
|
22
|
-
* `customFieldsRequestDetails` is the design-time inputs for a
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
* the caller is responsible for supplying a payload that the runtime will
|
|
26
|
-
* accept.
|
|
21
|
+
* `customFieldsRequestDetails` is the design-time inputs for a connector's "fetch custom fields"
|
|
22
|
+
* ObjectAction (e.g. Jira's GenerateSchema). The CLI does not validate ObjectAction existence or
|
|
23
|
+
* parameter coverage — the caller supplies a payload the runtime will accept.
|
|
27
24
|
*/
|
|
28
|
-
export declare function buildActivityEssentialConfiguration(instanceParameters: Record<string, unknown>, methodInfo: ConnectorMethodInfo, savedFilterTrees?: Record<string,
|
|
25
|
+
export declare function buildActivityEssentialConfiguration(instanceParameters: Record<string, unknown>, methodInfo: ConnectorMethodInfo, savedFilterTrees?: Record<string, DesignTimeFilterTree> | null, customFieldsRequestDetails?: CustomFieldsRequestDetails | null): Record<string, unknown>;
|
|
26
|
+
/**
|
|
27
|
+
* Build a fully-configured design-time activity client and return it for the caller to hold and read
|
|
28
|
+
* from. Fetches the connector's metadata from Integration Service — using the logged-in platform
|
|
29
|
+
* bearer via {@link createLiveConnectionsProvider} — so the returned client exposes the connector's
|
|
30
|
+
* real operation, HTTP method, path, version, and field set instead of hand-derived values. The
|
|
31
|
+
* caller's authored data is produced by the activity itself rather than overlaid afterwards:
|
|
32
|
+
* - `customFieldsRequestDetails` is replayed as property edits so the connector's custom-fields
|
|
33
|
+
* request (e.g. Jira's GenerateSchema) fires and the activity caches the result.
|
|
34
|
+
* - `savedFilterTrees` is applied as a filter-builder edit so the activity derives the saved tree
|
|
35
|
+
* itself, instead of re-implementing the connector's filter logic here. The map is keyed by the
|
|
36
|
+
* property that receives each tree — the connector's filter parameter for an activity (e.g. `where`),
|
|
37
|
+
* or `filter` for a trigger node (the underlying activity routes its subtype from `instanceParameters`,
|
|
38
|
+
* so triggers reuse this same client; the output blob then carries `filter` instead of `savedFilterTrees`).
|
|
39
|
+
* Trees containing a dynamic operand (`isLiteral: false`) are rejected with `FilterNotSupportedError`
|
|
40
|
+
* before any fetch — the client compiles them into an unresolvable embedded expression (MST-13005).
|
|
41
|
+
* Run each tree through `substituteFilterVariables` first to author a dynamic filter, then hand the
|
|
42
|
+
* authored tree back with {@link applySavedFilterTree} once the compiled expression has been read.
|
|
43
|
+
* - `fieldValues` is the flat `{ field: value }` map of regular field values (body / query / path, or a
|
|
44
|
+
* trigger's event parameters). The activity fills its property grid from them, so reads that depend on
|
|
45
|
+
* field values — required-field validation and a trigger's mandatory filter — see what the caller set.
|
|
46
|
+
* Applied after the custom-field replay so fields that only appear after a `GenerateSchema` fetch exist.
|
|
47
|
+
*
|
|
48
|
+
* The caller holds the returned client and reads it through its getters (`getEssentialConfiguration()`),
|
|
49
|
+
* so a single metadata fetch serves every read instead of re-fetching per call. Pass the resulting
|
|
50
|
+
* essential configuration to {@link assertActivityMetadataResolved} to check the connection resolved
|
|
51
|
+
* (a stale token or disabled connection leaves the configuration without a connector version).
|
|
52
|
+
*
|
|
53
|
+
* Requires a `connectionId` — the connector's metadata cannot be fetched without a connection.
|
|
54
|
+
*/
|
|
55
|
+
export declare function createConfiguredActivityClient({ instanceParameters, connectionId, savedFilterTrees, customFieldsRequestDetails, fieldValues, }: {
|
|
56
|
+
instanceParameters: Record<string, unknown>;
|
|
57
|
+
connectionId: string;
|
|
58
|
+
savedFilterTrees?: Record<string, DesignTimeFilterTree> | null;
|
|
59
|
+
customFieldsRequestDetails?: CustomFieldsRequestDetails | null;
|
|
60
|
+
fieldValues?: Record<string, unknown> | null;
|
|
61
|
+
}): Promise<IDesignTimeActivityClient>;
|
|
62
|
+
/**
|
|
63
|
+
* Apply one filter tree to a live client as a FilterBuilder edit — the same edit
|
|
64
|
+
* {@link createConfiguredActivityClient} makes, exposed on its own so a caller can hand the client a
|
|
65
|
+
* different tree after construction. The filter-variable path (MST-13005) needs both trees in turn:
|
|
66
|
+
* the client is built with the placeholder tree so it compiles a runtime-resolvable expression, then
|
|
67
|
+
* the AUTHORED tree is applied here so the essential configuration the caller persists carries the
|
|
68
|
+
* author's real expressions for Studio Web's filter widget.
|
|
69
|
+
*/
|
|
70
|
+
export declare function applySavedFilterTree(client: IDesignTimeActivityClient, propertyName: string, tree: DesignTimeFilterTree): Promise<void>;
|
|
71
|
+
/**
|
|
72
|
+
* Guard: throw if the activity's essential configuration was not resolved from connector metadata
|
|
73
|
+
* (no `connectorVersion`) — e.g. a stale token or disabled connection. Call it on the configuration
|
|
74
|
+
* read off a {@link createConfiguredActivityClient} client.
|
|
75
|
+
*/
|
|
76
|
+
export declare function assertActivityMetadataResolved(essentialConfiguration: Record<string, unknown>, connectionId: string): void;
|
|
29
77
|
/**
|
|
30
78
|
* Build the essential-only configuration blob for a managed HTTP node
|
|
31
79
|
* (core.action.http.v2). The managed HTTP node always proxies through the
|
|
32
80
|
* uipath-uipath-http connector with a fixed POST /http-request shape.
|
|
33
81
|
*/
|
|
34
82
|
export declare function buildManagedHttpEssentialConfiguration(): Record<string, unknown>;
|
|
35
|
-
/**
|
|
36
|
-
* Build the essential-only configuration blob for a trigger connector node.
|
|
37
|
-
* Trigger essentials include filter (user-configured, not recoverable from connector)
|
|
38
|
-
* but omit operation, httpMethod, path (not applicable to triggers).
|
|
39
|
-
*
|
|
40
|
-
* The `filter` tree is the design-time source of truth for the user's filter
|
|
41
|
-
* conditions. The mandatory filter (from required event parameters) is NOT
|
|
42
|
-
* persisted in essentialConfiguration — it's computed fresh from event parameters
|
|
43
|
-
* and combined with the user filter expression at configure-time to produce
|
|
44
|
-
* detail.filterExpression.
|
|
45
|
-
*/
|
|
46
|
-
export declare function buildTriggerEssentialConfiguration(instanceParameters: Record<string, unknown>, filter?: FilterTree | null): Record<string, unknown>;
|
|
@@ -1,25 +1,9 @@
|
|
|
1
|
-
import type { FilterTree } from "./filter-tree.js";
|
|
2
1
|
/**
|
|
3
|
-
*
|
|
2
|
+
* Primitive type kinds the design-time package understands for a filter field.
|
|
4
3
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* The CLI no longer compiles filters itself — the published
|
|
5
|
+
* `@uipath/integration-service-design-time` client owns that now — but callers
|
|
6
|
+
* still map raw IS metadata field types into this union when classifying a
|
|
7
|
+
* saved filter tree's fields, so it stays on the SDK surface.
|
|
8
8
|
*/
|
|
9
9
|
export type FilterFieldType = "string" | "number" | "integer" | "boolean" | "date-time";
|
|
10
|
-
export type FilterFieldMetadata = {
|
|
11
|
-
name: string;
|
|
12
|
-
type: FilterFieldType;
|
|
13
|
-
/**
|
|
14
|
-
* Connector-side aliases for the field. When present, the CEQL compiler
|
|
15
|
-
* emits `searchableNames[0]` as the field identifier instead of `name`
|
|
16
|
-
* (Studio Web parity — some connectors expose a friendlier `name` but
|
|
17
|
-
* require the alias in the query string).
|
|
18
|
-
*/
|
|
19
|
-
searchableNames?: readonly string[];
|
|
20
|
-
};
|
|
21
|
-
/** Result of building a filter: both the normalized tree and derived JMESPath. */
|
|
22
|
-
export type BuiltFilter = {
|
|
23
|
-
filter: FilterTree;
|
|
24
|
-
filterExpression: string;
|
|
25
|
-
};
|
|
@@ -1,62 +1,56 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
* derived `filterExpression` that Studio Web and the Maestro runtime consume.
|
|
2
|
+
* Filter field typing helpers.
|
|
4
3
|
*
|
|
5
|
-
* The
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* `filter` tree; it cannot parse an expression back into the tree. Before
|
|
12
|
-
* MST-8802, the CLI wrote only `filterExpression` and left `filter: null`,
|
|
13
|
-
* which caused SW to show an empty filter UI and silently drop the user's
|
|
14
|
-
* configuration on save. The CLI must now accept the filter tree as input
|
|
15
|
-
* and emit both fields in lockstep.
|
|
16
|
-
*/
|
|
17
|
-
export type { BuiltFilter, FilterFieldMetadata, FilterFieldType, } from "./field-metadata.js";
|
|
18
|
-
export { Filter } from "./filter.js";
|
|
19
|
-
export { FilterGroupOperator } from "./filter-group-operator.js";
|
|
20
|
-
export { FilterOperator } from "./filter-operator.js";
|
|
21
|
-
export { FilterTree } from "./filter-tree.js";
|
|
22
|
-
export { getUuid } from "./uuid.js";
|
|
23
|
-
export { WorkflowValue } from "./workflow-value.js";
|
|
24
|
-
import type { BuiltFilter, FilterFieldMetadata } from "./field-metadata.js";
|
|
25
|
-
import type { FilterTree } from "./filter-tree.js";
|
|
26
|
-
export type BuiltCeqlFilter = {
|
|
27
|
-
filter: FilterTree;
|
|
28
|
-
ceqlExpression: string;
|
|
29
|
-
isLiteral: boolean;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* Raised when the caller hands the builder a filter feature we haven't
|
|
33
|
-
* ported yet (array fields, expression/non-literal values, enum arrays, etc.).
|
|
34
|
-
* Kept as a distinct error type so callers can surface a clear message rather
|
|
35
|
-
* than seeing a raw `InvalidOperationException` / `ArgumentNullException`
|
|
36
|
-
* bubble out from the SW helpers.
|
|
4
|
+
* The structured filter tree and its JMESPath/CEQL compilation now live in the
|
|
5
|
+
* published `@uipath/integration-service-design-time` client — the CLI only
|
|
6
|
+
* threads a saved tree through and reads the compiled expression back. What
|
|
7
|
+
* remains here is the `FilterFieldType` union callers use to classify raw IS
|
|
8
|
+
* metadata field types, plus the filter-variable substitution and the guard the
|
|
9
|
+
* compiled path runs behind. See MST-8802 / MST-13005.
|
|
37
10
|
*/
|
|
11
|
+
import type { DesignTimeFilterTree } from "@uipath/integration-service-design-time";
|
|
12
|
+
export type { FilterFieldType } from "./field-metadata.js";
|
|
38
13
|
export declare class FilterNotSupportedError extends Error {
|
|
39
14
|
constructor(message: string);
|
|
40
15
|
}
|
|
41
16
|
/**
|
|
42
|
-
*
|
|
17
|
+
* Guard a filter tree on its way to the compiled filter path. Throws
|
|
18
|
+
* {@link FilterNotSupportedError} for any condition (including nested groups)
|
|
19
|
+
* whose value is a dynamic operand (`isLiteral: false`); literal values pass.
|
|
43
20
|
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
21
|
+
* A tree returned by {@link substituteFilterVariables} always passes — every
|
|
22
|
+
* dynamic operand has become a `{var_<hash>}` literal placeholder.
|
|
46
23
|
*/
|
|
47
|
-
export declare function
|
|
48
|
-
/**
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
24
|
+
export declare function assertFilterTreeSupported(tree: DesignTimeFilterTree): void;
|
|
25
|
+
/** Result of {@link substituteFilterVariables}. */
|
|
26
|
+
export interface SubstitutedFilterTree {
|
|
27
|
+
/**
|
|
28
|
+
* Compile-ready copy of the authored tree: every dynamic operand replaced
|
|
29
|
+
* by its `{var_<hash>}` placeholder, so the compiler emits a plain literal
|
|
30
|
+
* where the runtime later substitutes the resolved value.
|
|
31
|
+
*/
|
|
32
|
+
tree: DesignTimeFilterTree;
|
|
33
|
+
/**
|
|
34
|
+
* `var_<hash>` → whole-value `=js:` expression. Persisted as the sidecar
|
|
35
|
+
* the runtime resolves each placeholder from; empty when the authored tree
|
|
36
|
+
* holds no dynamic operand.
|
|
37
|
+
*/
|
|
38
|
+
variables: Record<string, string>;
|
|
39
|
+
}
|
|
53
40
|
/**
|
|
54
|
-
*
|
|
55
|
-
*
|
|
41
|
+
* Split an authored filter tree into the tree the design-time client should
|
|
42
|
+
* compile and the filter-variable sidecar the runtime resolves — the contract
|
|
43
|
+
* Studio Web has shipped since it allowed dynamic filter operands (MST-13005).
|
|
44
|
+
*
|
|
45
|
+
* Each condition whose value is a dynamic operand (`isLiteral: false`) becomes
|
|
46
|
+
* a literal `{var_<hash>}` placeholder, and its expression is collected under
|
|
47
|
+
* that key as a whole-value `=js:` string. Identical expressions share one
|
|
48
|
+
* placeholder. The authored tree is not mutated — persist it as-is so Studio
|
|
49
|
+
* Web re-renders the filter widget with the author's real expressions.
|
|
56
50
|
*
|
|
57
|
-
*
|
|
58
|
-
*
|
|
59
|
-
*
|
|
60
|
-
*
|
|
51
|
+
* Throws {@link FilterNotSupportedError} for a dynamic operand carrying no
|
|
52
|
+
* expression, or one whose value is not a string: there is nothing to resolve,
|
|
53
|
+
* and compiling it yields an unresolvable expression the connector receives as
|
|
54
|
+
* literal text.
|
|
61
55
|
*/
|
|
62
|
-
export declare function
|
|
56
|
+
export declare function substituteFilterVariables(tree: DesignTimeFilterTree): SubstitutedFilterTree;
|
package/dist/src/dap/index.d.ts
CHANGED
|
@@ -1,13 +1,5 @@
|
|
|
1
|
-
export { buildActivityEssentialConfiguration, buildManagedHttpEssentialConfiguration,
|
|
1
|
+
export { applySavedFilterTree, assertActivityMetadataResolved, buildActivityEssentialConfiguration, buildManagedHttpEssentialConfiguration, createConfiguredActivityClient, MANAGED_HTTP_CONNECTOR_KEY, MANAGED_HTTP_CONNECTOR_VERSION, } from "./essential-config.js";
|
|
2
2
|
export * from "./filter-builder/index.js";
|
|
3
|
-
export { ActivityConfigurationExtensions } from "./helpers/activity-configuration-extensions.js";
|
|
4
|
-
export { ClrTypeMock, toClrType } from "./helpers/clr-type-mock.js";
|
|
5
|
-
export { ConfigurationField } from "./helpers/configuration-field.js";
|
|
6
|
-
export { FieldLocation } from "./helpers/field-location.js";
|
|
7
|
-
export { FieldObject } from "./helpers/field-object.js";
|
|
8
|
-
export { FieldObjectHelpers } from "./helpers/field-object-helpers.js";
|
|
9
|
-
export { FieldObjectType } from "./helpers/field-object-type.js";
|
|
10
|
-
export { buildMandatoryFilterExpression } from "./helpers/mandatory-filter-builder.js";
|
|
11
3
|
export { buildInputMetadata, extractMultipartParameters, inlineMultipartFileValues, } from "./input-metadata.js";
|
|
12
4
|
export type { ConnectorMethodInfo, CustomFieldsRequestDetails, FieldDesign, FieldReference, InputMetadata, ISField, ISFieldMethod, ISMetadata, ISMetadataParam, MultipartParam, TriggerField, TriggerFieldEvent, TriggerObjectMetadata, } from "./types.js";
|
|
13
5
|
export type { ConnectorValidationContext, Issue, IssueType, ValidationRule, } from "./validation/index.js";
|
|
@@ -45,6 +45,10 @@ export declare function inlineMultipartFileValues(multipartParams: MultipartPara
|
|
|
45
45
|
* default 1000 cap. StudioWeb resolves this from
|
|
46
46
|
* `objectMethod.Pagination.MaxPageSize ?? connectorConfigurations.GetMaxPageSize()`.
|
|
47
47
|
*
|
|
48
|
+
* `expressionResolutionFields` names the FilterBuilder parameters whose compiled value carries
|
|
49
|
+
* `{var_…}` placeholders. Studio Web derives it from the stored `fieldsContainer`, which the CLI does
|
|
50
|
+
* not persist, so callers pass the names they substituted (MST-13005).
|
|
51
|
+
*
|
|
48
52
|
* Returns undefined when there's nothing to report.
|
|
49
53
|
*/
|
|
50
|
-
export declare function buildInputMetadata(multipartParams: MultipartParam[], operation: string, maxPageSize?: number): InputMetadata | undefined;
|
|
54
|
+
export declare function buildInputMetadata(multipartParams: MultipartParam[], operation: string, maxPageSize?: number, expressionResolutionFields?: string[]): InputMetadata | undefined;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ConnectorConnectionsProvider } from "@uipath/integration-service-design-time";
|
|
2
|
+
/**
|
|
3
|
+
* Build a {@link ConnectorConnectionsProvider} backed by the logged-in CLI session. Pass it to the
|
|
4
|
+
* activity client so `updateConnection(connectionId)` performs the real metadata fetch.
|
|
5
|
+
*
|
|
6
|
+
* `getConnectionInfo` re-reads `getAuthContext` per call so the bearer is always fresh (a stale token
|
|
7
|
+
* 401s on every Integration Service endpoint). `elementInstanceId` is set to the connection id itself
|
|
8
|
+
* so the package's `instances/{id}/…` URL matches the CLI's `instances/{connectionId}/…` — Integration
|
|
9
|
+
* Service resolves it server-side.
|
|
10
|
+
*/
|
|
11
|
+
export declare function createLiveConnectionsProvider(): ConnectorConnectionsProvider;
|
package/dist/src/dap/types.d.ts
CHANGED
|
@@ -44,6 +44,13 @@ export type InputMetadata = {
|
|
|
44
44
|
pagination?: {
|
|
45
45
|
maxPageSize: number;
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* Names of the FilterBuilder parameters whose value carries `{var_…}`
|
|
49
|
+
* placeholders resolved from `inputs.detail.filterVariables`. The BPMN
|
|
50
|
+
* serializer only pairs a filter with its variables for the parameters
|
|
51
|
+
* listed here (MST-13005).
|
|
52
|
+
*/
|
|
53
|
+
expressionResolutionFields?: string[];
|
|
47
54
|
};
|
|
48
55
|
export type ConnectorMethodInfo = {
|
|
49
56
|
operation: string;
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import "./user-agent.js";
|
|
2
|
+
export type { DesignTimeFilterTree } from "@uipath/integration-service-design-time";
|
|
2
3
|
export * from "../generated/connections/src/index.js";
|
|
3
4
|
export { ElementsApi } from "../generated/elements/src/apis/index.js";
|
|
4
5
|
export * from "../generated/elements/src/models/index.js";
|
|
5
6
|
export { Configuration as ElementsConfiguration } from "../generated/elements/src/runtime.js";
|
|
6
7
|
export { type ConnectorSummary, type CreateApiClientOptions, createApiClient, createConnectionsConfig, createDesignConnector, createElementsConfig, type DesignConnectorRef, type EventOperationObject, type ExecuteOperationResult, executeOperation, exportConnectorZip, findDesignConnectorByKey, folderOverride, getConnectorById, getEventObjectMetadataAsSchema, getEventOperationObjects, getHttpRequestPreview, getInstanceEventObjectMetadataAsSchema, getInstanceObjectMetadataAsSchema, getObjectMetadataAsSchema, getPublishStatus, getValidatedAuthContext, getWebhookConfig, type HttpRequestPreviewResult, type ImportedConnector, type InstanceDesignActionResult, importConnectorZip, listConnectors, type PersistedConnector, type PublishConnectorArgs, type PublishJobResult, type PublishStatusResult, publishConnector, runInstanceDesignAction, updateDesignConnector, type WebhookConfigResult, } from "./client-factory.js";
|
|
8
|
+
export { normalizeConnectionStatus } from "./connection-state.js";
|
|
7
9
|
export * from "./dap/index.js";
|
|
8
10
|
export { decodeElementsNextPageToken, ELEMENTS_NEXT_PAGE_DONE, type ElementsNextPage, hasMoreElementsPages, } from "./pagination.js";
|
|
9
11
|
export { SDK_USER_AGENT } from "./user-agent.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/integrationservice-sdk",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.201.0-preview.115",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "https://github.com/UiPath/cli.git",
|
|
@@ -27,5 +27,8 @@
|
|
|
27
27
|
"files": [
|
|
28
28
|
"dist"
|
|
29
29
|
],
|
|
30
|
-
"
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@uipath/integration-service-design-time": "0.19.3"
|
|
32
|
+
},
|
|
33
|
+
"gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
|
|
31
34
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export declare enum FilterOperator {
|
|
2
|
-
Equals = "Equals",
|
|
3
|
-
NotEquals = "NotEquals",
|
|
4
|
-
LessThan = "LessThan",
|
|
5
|
-
LessThanOrEqual = "LessThanOrEqual",
|
|
6
|
-
GreaterThan = "GreaterThan",
|
|
7
|
-
GreaterThanOrEqual = "GreaterThanOrEqual",
|
|
8
|
-
Contains = "Contains",
|
|
9
|
-
NotContains = "NotContains",
|
|
10
|
-
IsOneOf = "IsOneOf",
|
|
11
|
-
IsNotOneOf = "IsNotOneOf",
|
|
12
|
-
StartsWith = "StartsWith",
|
|
13
|
-
NotStartsWith = "NotStartsWith",
|
|
14
|
-
EndsWith = "EndsWith",
|
|
15
|
-
NotEndsWith = "NotEndsWith",
|
|
16
|
-
IsEmpty = "IsEmpty",
|
|
17
|
-
IsNotEmpty = "IsNotEmpty",
|
|
18
|
-
Is = "Is",
|
|
19
|
-
IsNot = "IsNot",
|
|
20
|
-
DateTimeEquals = "DateTimeEquals",
|
|
21
|
-
DateTimeNotEqual = "DateTimeNotEqual",
|
|
22
|
-
After = "After",
|
|
23
|
-
AfterOrEqual = "AfterOrEqual",
|
|
24
|
-
Before = "Before",
|
|
25
|
-
BeforeOrEqual = "BeforeOrEqual",
|
|
26
|
-
In = "In",
|
|
27
|
-
NotIn = "NotIn",
|
|
28
|
-
NotLike = "NotLike",
|
|
29
|
-
Like = "Like",
|
|
30
|
-
IsNotNull = "IsNotNull",
|
|
31
|
-
IsNull = "IsNull"
|
|
32
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Filter } from "./filter.js";
|
|
2
|
-
import type { FilterGroupOperator } from "./filter-group-operator.js";
|
|
3
|
-
export declare class FilterTree {
|
|
4
|
-
constructor(groupOperator: FilterGroupOperator | null, index: number, filters: Filter[], uuId: string | null);
|
|
5
|
-
readonly groupOperator: FilterGroupOperator | null;
|
|
6
|
-
readonly index: number;
|
|
7
|
-
readonly uuId: string | null;
|
|
8
|
-
readonly filters: Filter[];
|
|
9
|
-
readonly groups: FilterTree[];
|
|
10
|
-
static factory(serialized: string): FilterTree;
|
|
11
|
-
private static _reviver;
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { FilterOperator } from "./filter-operator.js";
|
|
2
|
-
import { WorkflowValue } from "./workflow-value.js";
|
|
3
|
-
export declare class Filter {
|
|
4
|
-
constructor(id: string, operator: FilterOperator | null, value: WorkflowValue | null, uiId: string | null);
|
|
5
|
-
readonly id: string;
|
|
6
|
-
readonly uiId: string | null;
|
|
7
|
-
readonly operator: FilterOperator | null;
|
|
8
|
-
value: WorkflowValue | null;
|
|
9
|
-
static factory(serialized: string): Filter;
|
|
10
|
-
private static _reviver;
|
|
11
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generate a UUID for filter tree group/leaf identifiers.
|
|
3
|
-
*
|
|
4
|
-
* Ported verbatim from Studio Web's `getUuid` helper to keep SW and CLI in
|
|
5
|
-
* sync — prefer the platform `crypto.randomUUID()` when available, fall back
|
|
6
|
-
* to the `uuid` package otherwise.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getUuid(): string;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare class WorkflowValue {
|
|
2
|
-
isLiteral: boolean;
|
|
3
|
-
readonly rawString: string | null;
|
|
4
|
-
value: unknown | null;
|
|
5
|
-
constructor(value: unknown | null);
|
|
6
|
-
constructor(value: unknown | null, isLiteral: boolean);
|
|
7
|
-
static factory(serialized: string): WorkflowValue;
|
|
8
|
-
static canBeWorkflowValue(obj: unknown): boolean;
|
|
9
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Local shim for SW's `ActivityConfigurationExtensions` (mirrors
|
|
3
|
-
* `@sw/.../runtime/extensions/activity-configuration-extensions`). Only the
|
|
4
|
-
* `getMandatoryFilterFields` selector consumed by `mandatory-filter-builder`
|
|
5
|
-
* is ported; SW exposes additional helpers the CLI does not yet exercise.
|
|
6
|
-
*/
|
|
7
|
-
import type { ConfigurationField } from "./configuration-field.js";
|
|
8
|
-
export declare class ActivityConfigurationExtensions {
|
|
9
|
-
/**
|
|
10
|
-
* Mirrors SW `getMandatoryFilterFields(activityConfiguration)`:
|
|
11
|
-
*
|
|
12
|
-
* activityConfiguration.fieldsContainer.inputFields
|
|
13
|
-
* .filter(f => f.fieldLocation !== Path && f.fieldLocation !== Query);
|
|
14
|
-
*
|
|
15
|
-
* The CLI lifts the input arg to a free `ConfigurationField[]` since the
|
|
16
|
-
* `TriggerActivityConfiguration` wrapper is not yet ported. Path/Query
|
|
17
|
-
* parameters are never mandatory filter sources because they shape the
|
|
18
|
-
* connector request URL, not the event subscription body.
|
|
19
|
-
*/
|
|
20
|
-
static getMandatoryFilterFields(inputFields: readonly ConfigurationField[]): ConfigurationField[];
|
|
21
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Local shim for SW's `ArrayExtensions`. Mirrors
|
|
3
|
-
* `@sw/.../extension-methods/array-extensions` — only the members the
|
|
4
|
-
* filter-builder helpers use.
|
|
5
|
-
*/
|
|
6
|
-
export declare class ArrayExtensions {
|
|
7
|
-
static any<T>(arr: readonly T[] | null | undefined): boolean;
|
|
8
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* NO-OP
|
|
3
|
-
*/
|
|
4
|
-
export declare class ClrTypeMock {
|
|
5
|
-
static readonly Int = "Int";
|
|
6
|
-
static readonly Long = "Long";
|
|
7
|
-
static readonly Double = "Double";
|
|
8
|
-
static readonly Float = "Float";
|
|
9
|
-
static readonly Boolean = "Boolean";
|
|
10
|
-
static readonly String = "String";
|
|
11
|
-
static readonly DateTimeOffset = "DateTimeOffset";
|
|
12
|
-
static readonly Enum: ClrTypeMock;
|
|
13
|
-
readonly name: string;
|
|
14
|
-
readonly isArray: boolean;
|
|
15
|
-
constructor(name: string, isArray?: boolean);
|
|
16
|
-
isSame(other: ClrTypeMock | string | null | undefined): boolean;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Map IS field type strings to ClrTypeMock instances for mandatory filter building.
|
|
20
|
-
*/
|
|
21
|
-
export declare function toClrType(rawType: string | undefined): ClrTypeMock;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ClrTypeMock } from "./clr-type-mock.js";
|
|
2
|
-
import { FieldLocation } from "./field-location.js";
|
|
3
|
-
/**
|
|
4
|
-
* Local shim for SW's `ConfigurationField` (mirrors
|
|
5
|
-
* `@sw/.../runtime/models/configuration-field`). SW's class carries the full
|
|
6
|
-
* activity-configuration field descriptor; this shim keeps the members the
|
|
7
|
-
* filter-builder + mandatory-filter helpers read (`name`, `id`, `clrType`,
|
|
8
|
-
* `mask`, `fieldLocation`).
|
|
9
|
-
*
|
|
10
|
-
* `id` is the **sanitized** field identifier (post `NamingHelper.getValidDesignPropertyName`,
|
|
11
|
-
* e.g. `ParentFolders[*].ID` → `ParentFolders_array_ID`). Mandatory-filter
|
|
12
|
-
* `FieldObject` lookups go through `id`, never `name` — see SW PR #18040.
|
|
13
|
-
*
|
|
14
|
-
* `fieldLocation` mirrors SW's `FieldLocation` enum and is consumed by
|
|
15
|
-
* `ActivityConfigurationExtensions.getMandatoryFilterFields`, which excludes
|
|
16
|
-
* `Path` and `Query` parameters from the mandatory-filter set.
|
|
17
|
-
*/
|
|
18
|
-
export declare class ConfigurationField {
|
|
19
|
-
readonly name: string;
|
|
20
|
-
readonly id: string;
|
|
21
|
-
readonly clrType: ClrTypeMock;
|
|
22
|
-
readonly mask: string | null;
|
|
23
|
-
readonly fieldLocation: FieldLocation;
|
|
24
|
-
constructor(name: string, clrType?: ClrTypeMock, mask?: string | null, id?: string, fieldLocation?: FieldLocation);
|
|
25
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Local shim for SW's runtime-helpers `Constants`. Mirrors
|
|
3
|
-
* `@sw/.../runtime/helpers/constants`. Only carries the two markers the
|
|
4
|
-
* filter-builder helpers use.
|
|
5
|
-
*/
|
|
6
|
-
export declare class Constants {
|
|
7
|
-
static readonly FieldArrayMarker = "[*]";
|
|
8
|
-
static readonly ChunkSeparator = ".";
|
|
9
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TEMP no-op shim for SW's `EnumItem` (mirrors
|
|
3
|
-
* `@sw/.../runtime/models/enum-item`). The CLI filter-builder does not author
|
|
4
|
-
* enum-typed fields, so this carries only the `value` slot the helpers dereference.
|
|
5
|
-
* Revisit if/when enum filter support is ported.
|
|
6
|
-
*/
|
|
7
|
-
export declare class EnumItem {
|
|
8
|
-
readonly value: unknown;
|
|
9
|
-
constructor(value: unknown);
|
|
10
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { ClrTypeMock } from "./clr-type-mock.js";
|
|
2
|
-
/**
|
|
3
|
-
* Local shim for SW's `EventField` (mirrors
|
|
4
|
-
* `@sw/.../runtime/models/connector-metadata/event-field`). SW's class carries
|
|
5
|
-
* a richer connector-metadata descriptor; this shim keeps the members the
|
|
6
|
-
* filter-builder helpers read (`name`, `clrType`, `type`, `mask`).
|
|
7
|
-
*/
|
|
8
|
-
export declare class EventField {
|
|
9
|
-
readonly name: string;
|
|
10
|
-
readonly clrType: ClrTypeMock;
|
|
11
|
-
readonly type?: string;
|
|
12
|
-
readonly mask: string | null;
|
|
13
|
-
constructor(name: string, clrType: ClrTypeMock, type?: string, mask?: string | null);
|
|
14
|
-
/**
|
|
15
|
-
* TEMP no-op: SW synthesizes a string-typed event-field for connectors with
|
|
16
|
-
* `hasStaticLeftOperandFilterBuilder` (freeform left-operand). The CLI does
|
|
17
|
-
* not author freeform filters yet, so this returns a plain string field.
|
|
18
|
-
*/
|
|
19
|
-
static createFreeform(name: string): EventField;
|
|
20
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Local shim for SW's old-infra exception classes. Mirrors
|
|
3
|
-
* `@sw/.../old-infra/invalid-operation-exception` and
|
|
4
|
-
* `@sw/.../old-infra/argument-null-exception`.
|
|
5
|
-
*/
|
|
6
|
-
export declare class InvalidOperationException extends Error {
|
|
7
|
-
constructor(message: string);
|
|
8
|
-
}
|
|
9
|
-
export declare class ArgumentNullException extends Error {
|
|
10
|
-
constructor(message: string);
|
|
11
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Local shim for SW's `FieldLocation` (mirrors
|
|
3
|
-
* `@sw/.../runtime/models/connector-metadata/field-location`). Used by
|
|
4
|
-
* `ActivityConfigurationExtensions.getMandatoryFilterFields` to filter
|
|
5
|
-
* inputFields to those located in the request body — path/query parameters
|
|
6
|
-
* are never mandatory filter sources.
|
|
7
|
-
*/
|
|
8
|
-
export declare const FieldLocation: {
|
|
9
|
-
readonly Body: "Body";
|
|
10
|
-
readonly Path: "Path";
|
|
11
|
-
readonly Query: "Query";
|
|
12
|
-
readonly Header: "Header";
|
|
13
|
-
};
|
|
14
|
-
export type FieldLocation = (typeof FieldLocation)[keyof typeof FieldLocation];
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { FieldObject } from "./field-object.js";
|
|
2
|
-
/**
|
|
3
|
-
* Local shim for SW's `FieldObjectHelpers` (mirrors
|
|
4
|
-
* `@sw/.../design-time/helpers/field-object-helpers`). Only the lookup helper
|
|
5
|
-
* used by mandatory-filter assembly is ported; SW carries additional helpers
|
|
6
|
-
* that the CLI does not yet exercise.
|
|
7
|
-
*/
|
|
8
|
-
export declare class FieldObjectHelpers {
|
|
9
|
-
/**
|
|
10
|
-
* Returns the first `FieldArgument` or `FieldLiteral` entry with `id ===
|
|
11
|
-
* fieldId`, or `undefined`. Lookup is by **sanitized** id only — callers
|
|
12
|
-
* passing `field.name` for array/dotted paths will miss (this is the bug
|
|
13
|
-
* fixed in SW PR #18040).
|
|
14
|
-
*/
|
|
15
|
-
static getFieldArgumentOrLiteral(fieldObjects: readonly FieldObject[], fieldId: string): FieldObject | undefined;
|
|
16
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Local shim for SW's `FieldObjectType` (mirrors
|
|
3
|
-
* `@sw/.../runtime/models/field-object-type`). Used by `FieldObjectHelpers` to
|
|
4
|
-
* filter mandatory-filter sources to argument or literal entries (resolved at
|
|
5
|
-
* design time) and skip expressions resolved at runtime.
|
|
6
|
-
*/
|
|
7
|
-
export declare const FieldObjectType: {
|
|
8
|
-
readonly FieldArgument: "FieldArgument";
|
|
9
|
-
readonly FieldLiteral: "FieldLiteral";
|
|
10
|
-
readonly FieldExpression: "FieldExpression";
|
|
11
|
-
};
|
|
12
|
-
export type FieldObjectType = (typeof FieldObjectType)[keyof typeof FieldObjectType];
|