@uipath/integrationservice-sdk 0.2.0 → 0.9.1
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 +355 -143
- package/dist/index.js +22346 -3026
- package/dist/src/client-factory.d.ts +25 -2
- package/dist/src/dap/essential-config.d.ts +29 -0
- package/dist/src/dap/filter-builder/field-metadata.d.ts +18 -0
- package/dist/src/dap/filter-builder/filter-group-operator.d.ts +4 -0
- package/dist/src/dap/filter-builder/filter-operator.d.ts +32 -0
- package/dist/src/dap/filter-builder/filter-tree.d.ts +12 -0
- package/dist/src/dap/filter-builder/filter.d.ts +11 -0
- package/dist/src/dap/filter-builder/index.d.ts +47 -0
- package/dist/src/dap/filter-builder/uuid.d.ts +8 -0
- package/dist/src/dap/filter-builder/workflow-value.d.ts +9 -0
- package/dist/src/dap/helpers/array-extensions.d.ts +8 -0
- package/dist/src/dap/helpers/clr-type-mock.d.ts +17 -0
- package/dist/src/dap/helpers/constants.d.ts +9 -0
- package/dist/src/dap/helpers/enum-item.d.ts +10 -0
- package/dist/src/dap/helpers/event-field.d.ts +20 -0
- package/dist/src/dap/helpers/exceptions.d.ts +11 -0
- package/dist/src/dap/helpers/filter-builder/filter-helper.d.ts +19 -0
- package/dist/src/dap/helpers/filter-builder/jmes-helper.d.ts +68 -0
- package/dist/src/dap/helpers/string-extensions.d.ts +9 -0
- package/dist/src/dap/helpers/translation.d.ts +11 -0
- package/dist/src/dap/helpers/trim.d.ts +6 -0
- package/dist/src/dap/index.d.ts +6 -0
- package/dist/src/dap/input-metadata.d.ts +21 -0
- package/dist/src/dap/types.d.ts +105 -0
- package/dist/src/dap/validation/index.d.ts +41 -0
- package/dist/src/dap/validation/rules.d.ts +47 -0
- package/dist/src/dap/validation/types.d.ts +53 -0
- package/dist/src/index.d.ts +2 -1
- package/package.json +6 -4
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { ConnectorMethodInfo, ISMetadata, TriggerObjectMetadata } from "../types.js";
|
|
2
|
+
export type IssueType = "Error" | "Warning";
|
|
3
|
+
export type Issue = {
|
|
4
|
+
/** Unique identifier — format: `${nodeId}:${propertyName}:error|warning:${uuid}`. */
|
|
5
|
+
id: string;
|
|
6
|
+
title: string;
|
|
7
|
+
description: string | null;
|
|
8
|
+
type: IssueType;
|
|
9
|
+
canNavigate: boolean;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* A validation rule receives a context and returns zero or more issues.
|
|
13
|
+
* Rules are pure functions — no side effects, no network calls.
|
|
14
|
+
* Adding a new check is as simple as writing a new function that
|
|
15
|
+
* satisfies this signature and including it in the rules array.
|
|
16
|
+
*/
|
|
17
|
+
export type ValidationRule = (context: ConnectorValidationContext) => Issue[];
|
|
18
|
+
/**
|
|
19
|
+
* Surface-agnostic validation context for a connector node.
|
|
20
|
+
*
|
|
21
|
+
* Consumers (flow-tool, case-tool, maestro-tool, coded-apps) populate
|
|
22
|
+
* this from whatever format their node lives in (flow JSON, XAML,
|
|
23
|
+
* BPMN, etc.) and pass it to `validateConnector()`.
|
|
24
|
+
*
|
|
25
|
+
* Fields are optional because not every surface provides every piece
|
|
26
|
+
* of data, and rules gracefully skip checks when their required
|
|
27
|
+
* fields are absent.
|
|
28
|
+
*/
|
|
29
|
+
export type ConnectorValidationContext = {
|
|
30
|
+
/** Node ID in the workflow — used to build issue IDs. */
|
|
31
|
+
nodeId?: string;
|
|
32
|
+
connectorKey?: string;
|
|
33
|
+
objectName?: string;
|
|
34
|
+
/** "activity" or "trigger" — rules can branch on this. */
|
|
35
|
+
nodeKind?: "activity" | "trigger";
|
|
36
|
+
connectionId?: string;
|
|
37
|
+
folderKey?: string;
|
|
38
|
+
httpMethod?: string;
|
|
39
|
+
endpoint?: string;
|
|
40
|
+
eventMode?: string;
|
|
41
|
+
/** The event operation name (e.g. "EMAIL_SENT", "ISSUE_CREATED"). */
|
|
42
|
+
eventType?: string;
|
|
43
|
+
bodyParameters?: Record<string, unknown>;
|
|
44
|
+
queryParameters?: Record<string, unknown>;
|
|
45
|
+
pathParameters?: Record<string, unknown>;
|
|
46
|
+
eventParameters?: Record<string, unknown>;
|
|
47
|
+
/** The `=jsonString:{...}` configuration string from the node. */
|
|
48
|
+
configuration?: string;
|
|
49
|
+
methodInfo?: ConnectorMethodInfo;
|
|
50
|
+
metadata?: ISMetadata;
|
|
51
|
+
/** Trigger-specific IS metadata (event fields with required status). */
|
|
52
|
+
triggerMetadata?: TriggerObjectMetadata;
|
|
53
|
+
};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * from "../generated/connections/src/index.js";
|
|
|
2
2
|
export { ElementsApi } from "../generated/elements/src/apis/index.js";
|
|
3
3
|
export * from "../generated/elements/src/models/index.js";
|
|
4
4
|
export { Configuration as ElementsConfiguration } from "../generated/elements/src/runtime.js";
|
|
5
|
-
export { type CreateApiClientOptions, createApiClient, createConnectionsConfig, createElementsConfig, executeOperation, folderOverride, } from "./client-factory.js";
|
|
5
|
+
export { type CreateApiClientOptions, createApiClient, createConnectionsConfig, createElementsConfig, type ExecuteOperationResult, executeOperation, folderOverride, getEventObjectMetadataAsSchema, getInstanceEventObjectMetadataAsSchema, getInstanceObjectMetadataAsSchema, getObjectMetadataAsSchema, } from "./client-factory.js";
|
|
6
|
+
export * from "./dap/index.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/integrationservice-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.1",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/UiPath/cli.git",
|
|
@@ -34,9 +34,11 @@
|
|
|
34
34
|
"test:coverage": "vitest run --coverage"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@uipath/auth": "0.
|
|
37
|
+
"@uipath/auth": "0.9.1",
|
|
38
38
|
"@openapitools/openapi-generator-cli": "^2.31.1",
|
|
39
39
|
"@types/node": "^25.5.0",
|
|
40
|
-
"typescript": "^5"
|
|
41
|
-
|
|
40
|
+
"typescript": "^5",
|
|
41
|
+
"uuid": "^14.0.0"
|
|
42
|
+
},
|
|
43
|
+
"gitHead": "e8da2857e37a9495c4907cd39f47c9d6ed1a5566"
|
|
42
44
|
}
|