@uipath/uipath-typescript 1.0.0-beta.10
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/LICENSE +9 -0
- package/Readme.md +260 -0
- package/dist/core/auth/service.d.ts +72 -0
- package/dist/core/auth/service.d.ts.map +1 -0
- package/dist/core/auth/service.js +244 -0
- package/dist/core/auth/service.js.map +1 -0
- package/dist/core/auth/token-manager.d.ts +82 -0
- package/dist/core/auth/token-manager.d.ts.map +1 -0
- package/dist/core/auth/token-manager.js +248 -0
- package/dist/core/auth/token-manager.js.map +1 -0
- package/dist/core/auth/types.d.ts +20 -0
- package/dist/core/auth/types.d.ts.map +1 -0
- package/dist/core/auth/types.js +2 -0
- package/dist/core/auth/types.js.map +1 -0
- package/dist/core/config/config-utils.d.ts +4 -0
- package/dist/core/config/config-utils.d.ts.map +1 -0
- package/dist/core/config/config-utils.js +13 -0
- package/dist/core/config/config-utils.js.map +1 -0
- package/dist/core/config/config.d.ts +48 -0
- package/dist/core/config/config.d.ts.map +1 -0
- package/dist/core/config/config.js +22 -0
- package/dist/core/config/config.js.map +1 -0
- package/dist/core/config/sdk-config.d.ts +33 -0
- package/dist/core/config/sdk-config.d.ts.map +1 -0
- package/dist/core/config/sdk-config.js +9 -0
- package/dist/core/config/sdk-config.js.map +1 -0
- package/dist/core/context/execution.d.ts +35 -0
- package/dist/core/context/execution.d.ts.map +1 -0
- package/dist/core/context/execution.js +55 -0
- package/dist/core/context/execution.js.map +1 -0
- package/dist/core/errors/authentication.d.ts +13 -0
- package/dist/core/errors/authentication.d.ts.map +1 -0
- package/dist/core/errors/authentication.js +19 -0
- package/dist/core/errors/authentication.js.map +1 -0
- package/dist/core/errors/authorization.d.ts +13 -0
- package/dist/core/errors/authorization.d.ts.map +1 -0
- package/dist/core/errors/authorization.js +19 -0
- package/dist/core/errors/authorization.js.map +1 -0
- package/dist/core/errors/base.d.ts +41 -0
- package/dist/core/errors/base.d.ts.map +1 -0
- package/dist/core/errors/base.js +37 -0
- package/dist/core/errors/base.js.map +1 -0
- package/dist/core/errors/constants.d.ts +57 -0
- package/dist/core/errors/constants.d.ts.map +1 -0
- package/dist/core/errors/constants.js +66 -0
- package/dist/core/errors/constants.js.map +1 -0
- package/dist/core/errors/error-factory.d.ts +17 -0
- package/dist/core/errors/error-factory.d.ts.map +1 -0
- package/dist/core/errors/error-factory.js +57 -0
- package/dist/core/errors/error-factory.js.map +1 -0
- package/dist/core/errors/guards.d.ts +48 -0
- package/dist/core/errors/guards.d.ts.map +1 -0
- package/dist/core/errors/guards.js +76 -0
- package/dist/core/errors/guards.js.map +1 -0
- package/dist/core/errors/index.d.ts +11 -0
- package/dist/core/errors/index.d.ts.map +1 -0
- package/dist/core/errors/index.js +15 -0
- package/dist/core/errors/index.js.map +1 -0
- package/dist/core/errors/network.d.ts +14 -0
- package/dist/core/errors/network.d.ts.map +1 -0
- package/dist/core/errors/network.js +20 -0
- package/dist/core/errors/network.js.map +1 -0
- package/dist/core/errors/not-found.d.ts +13 -0
- package/dist/core/errors/not-found.d.ts.map +1 -0
- package/dist/core/errors/not-found.js +19 -0
- package/dist/core/errors/not-found.js.map +1 -0
- package/dist/core/errors/parser.d.ts +29 -0
- package/dist/core/errors/parser.d.ts.map +1 -0
- package/dist/core/errors/parser.js +152 -0
- package/dist/core/errors/parser.js.map +1 -0
- package/dist/core/errors/rate-limit.d.ts +12 -0
- package/dist/core/errors/rate-limit.d.ts.map +1 -0
- package/dist/core/errors/rate-limit.js +18 -0
- package/dist/core/errors/rate-limit.js.map +1 -0
- package/dist/core/errors/server.d.ts +17 -0
- package/dist/core/errors/server.d.ts.map +1 -0
- package/dist/core/errors/server.js +27 -0
- package/dist/core/errors/server.js.map +1 -0
- package/dist/core/errors/types.d.ts +94 -0
- package/dist/core/errors/types.d.ts.map +1 -0
- package/dist/core/errors/types.js +28 -0
- package/dist/core/errors/types.js.map +1 -0
- package/dist/core/errors/validation.d.ts +13 -0
- package/dist/core/errors/validation.d.ts.map +1 -0
- package/dist/core/errors/validation.js +19 -0
- package/dist/core/errors/validation.js.map +1 -0
- package/dist/core/http/api-client.d.ts +30 -0
- package/dist/core/http/api-client.d.ts.map +1 -0
- package/dist/core/http/api-client.js +131 -0
- package/dist/core/http/api-client.js.map +1 -0
- package/dist/core/telemetry/client.d.ts +34 -0
- package/dist/core/telemetry/client.d.ts.map +1 -0
- package/dist/core/telemetry/client.js +189 -0
- package/dist/core/telemetry/client.js.map +1 -0
- package/dist/core/telemetry/constants.d.ts +19 -0
- package/dist/core/telemetry/constants.d.ts.map +1 -0
- package/dist/core/telemetry/constants.js +24 -0
- package/dist/core/telemetry/constants.js.map +1 -0
- package/dist/core/telemetry/index.d.ts +7 -0
- package/dist/core/telemetry/index.d.ts.map +1 -0
- package/dist/core/telemetry/index.js +7 -0
- package/dist/core/telemetry/index.js.map +1 -0
- package/dist/core/telemetry/track.d.ts +26 -0
- package/dist/core/telemetry/track.d.ts.map +1 -0
- package/dist/core/telemetry/track.js +67 -0
- package/dist/core/telemetry/track.js.map +1 -0
- package/dist/core/telemetry/types.d.ts +18 -0
- package/dist/core/telemetry/types.d.ts.map +1 -0
- package/dist/core/telemetry/types.js +5 -0
- package/dist/core/telemetry/types.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -0
- package/dist/index.js.map +1 -0
- package/dist/models/action-center/index.d.ts +3 -0
- package/dist/models/action-center/index.d.ts.map +1 -0
- package/dist/models/action-center/index.js +3 -0
- package/dist/models/action-center/index.js.map +1 -0
- package/dist/models/action-center/tasks.constants.d.ts +12 -0
- package/dist/models/action-center/tasks.constants.d.ts.map +1 -0
- package/dist/models/action-center/tasks.constants.js +18 -0
- package/dist/models/action-center/tasks.constants.js.map +1 -0
- package/dist/models/action-center/tasks.internal-types.d.ts +13 -0
- package/dist/models/action-center/tasks.internal-types.d.ts.map +1 -0
- package/dist/models/action-center/tasks.internal-types.js +2 -0
- package/dist/models/action-center/tasks.internal-types.js.map +1 -0
- package/dist/models/action-center/tasks.models.d.ts +79 -0
- package/dist/models/action-center/tasks.models.d.ts.map +1 -0
- package/dist/models/action-center/tasks.models.js +60 -0
- package/dist/models/action-center/tasks.models.js.map +1 -0
- package/dist/models/action-center/tasks.types.d.ts +180 -0
- package/dist/models/action-center/tasks.types.d.ts.map +1 -0
- package/dist/models/action-center/tasks.types.js +40 -0
- package/dist/models/action-center/tasks.types.js.map +1 -0
- package/dist/models/common/index.d.ts +3 -0
- package/dist/models/common/index.d.ts.map +1 -0
- package/dist/models/common/index.js +3 -0
- package/dist/models/common/index.js.map +1 -0
- package/dist/models/common/request-spec.d.ts +89 -0
- package/dist/models/common/request-spec.d.ts.map +1 -0
- package/dist/models/common/request-spec.js +2 -0
- package/dist/models/common/request-spec.js.map +1 -0
- package/dist/models/common/types.d.ts +43 -0
- package/dist/models/common/types.d.ts.map +1 -0
- package/dist/models/common/types.js +16 -0
- package/dist/models/common/types.js.map +1 -0
- package/dist/models/data-fabric/entities.constants.d.ts +32 -0
- package/dist/models/data-fabric/entities.constants.d.ts.map +1 -0
- package/dist/models/data-fabric/entities.constants.js +46 -0
- package/dist/models/data-fabric/entities.constants.js.map +1 -0
- package/dist/models/data-fabric/entities.internal-types.d.ts +12 -0
- package/dist/models/data-fabric/entities.internal-types.d.ts.map +1 -0
- package/dist/models/data-fabric/entities.internal-types.js +2 -0
- package/dist/models/data-fabric/entities.internal-types.js.map +1 -0
- package/dist/models/data-fabric/entities.models.d.ts +213 -0
- package/dist/models/data-fabric/entities.models.d.ts.map +1 -0
- package/dist/models/data-fabric/entities.models.js +43 -0
- package/dist/models/data-fabric/entities.models.js.map +1 -0
- package/dist/models/data-fabric/entities.types.d.ts +264 -0
- package/dist/models/data-fabric/entities.types.d.ts.map +1 -0
- package/dist/models/data-fabric/entities.types.js +63 -0
- package/dist/models/data-fabric/entities.types.js.map +1 -0
- package/dist/models/data-fabric/index.d.ts +3 -0
- package/dist/models/data-fabric/index.d.ts.map +1 -0
- package/dist/models/data-fabric/index.js +3 -0
- package/dist/models/data-fabric/index.js.map +1 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.d.ts.map +1 -0
- package/dist/models/index.js +11 -0
- package/dist/models/index.js.map +1 -0
- package/dist/models/maestro/index.d.ts +5 -0
- package/dist/models/maestro/index.d.ts.map +1 -0
- package/dist/models/maestro/index.js +8 -0
- package/dist/models/maestro/index.js.map +1 -0
- package/dist/models/maestro/process-instances.constants.d.ts +13 -0
- package/dist/models/maestro/process-instances.constants.d.ts.map +1 -0
- package/dist/models/maestro/process-instances.constants.js +17 -0
- package/dist/models/maestro/process-instances.constants.js.map +1 -0
- package/dist/models/maestro/process-instances.models.d.ts +210 -0
- package/dist/models/maestro/process-instances.models.d.ts.map +1 -0
- package/dist/models/maestro/process-instances.models.js +38 -0
- package/dist/models/maestro/process-instances.models.js.map +1 -0
- package/dist/models/maestro/process-instances.types.d.ts +78 -0
- package/dist/models/maestro/process-instances.types.d.ts.map +1 -0
- package/dist/models/maestro/process-instances.types.js +6 -0
- package/dist/models/maestro/process-instances.types.js.map +1 -0
- package/dist/models/maestro/processes.models.d.ts +31 -0
- package/dist/models/maestro/processes.models.d.ts.map +1 -0
- package/dist/models/maestro/processes.models.js +6 -0
- package/dist/models/maestro/processes.models.js.map +1 -0
- package/dist/models/maestro/processes.types.d.ts +42 -0
- package/dist/models/maestro/processes.types.d.ts.map +1 -0
- package/dist/models/maestro/processes.types.js +6 -0
- package/dist/models/maestro/processes.types.js.map +1 -0
- package/dist/models/orchestrator/assets.constants.d.ts +7 -0
- package/dist/models/orchestrator/assets.constants.d.ts.map +1 -0
- package/dist/models/orchestrator/assets.constants.js +8 -0
- package/dist/models/orchestrator/assets.constants.js.map +1 -0
- package/dist/models/orchestrator/assets.models.d.ts +55 -0
- package/dist/models/orchestrator/assets.models.d.ts.map +1 -0
- package/dist/models/orchestrator/assets.models.js +2 -0
- package/dist/models/orchestrator/assets.models.js.map +1 -0
- package/dist/models/orchestrator/assets.types.d.ts +65 -0
- package/dist/models/orchestrator/assets.types.d.ts.map +1 -0
- package/dist/models/orchestrator/assets.types.js +24 -0
- package/dist/models/orchestrator/assets.types.js.map +1 -0
- package/dist/models/orchestrator/buckets.constants.d.ts +7 -0
- package/dist/models/orchestrator/buckets.constants.d.ts.map +1 -0
- package/dist/models/orchestrator/buckets.constants.js +9 -0
- package/dist/models/orchestrator/buckets.constants.js.map +1 -0
- package/dist/models/orchestrator/buckets.models.d.ts +144 -0
- package/dist/models/orchestrator/buckets.models.d.ts.map +1 -0
- package/dist/models/orchestrator/buckets.models.js +2 -0
- package/dist/models/orchestrator/buckets.models.js.map +1 -0
- package/dist/models/orchestrator/buckets.types.d.ts +176 -0
- package/dist/models/orchestrator/buckets.types.d.ts.map +1 -0
- package/dist/models/orchestrator/buckets.types.js +8 -0
- package/dist/models/orchestrator/buckets.types.js.map +1 -0
- package/dist/models/orchestrator/index.d.ts +9 -0
- package/dist/models/orchestrator/index.d.ts.map +1 -0
- package/dist/models/orchestrator/index.js +13 -0
- package/dist/models/orchestrator/index.js.map +1 -0
- package/dist/models/orchestrator/processes.constants.d.ts +7 -0
- package/dist/models/orchestrator/processes.constants.d.ts.map +1 -0
- package/dist/models/orchestrator/processes.constants.js +17 -0
- package/dist/models/orchestrator/processes.constants.js.map +1 -0
- package/dist/models/orchestrator/processes.models.d.ts +87 -0
- package/dist/models/orchestrator/processes.models.d.ts.map +1 -0
- package/dist/models/orchestrator/processes.models.js +2 -0
- package/dist/models/orchestrator/processes.models.js.map +1 -0
- package/dist/models/orchestrator/processes.types.d.ts +293 -0
- package/dist/models/orchestrator/processes.types.d.ts.map +1 -0
- package/dist/models/orchestrator/processes.types.js +110 -0
- package/dist/models/orchestrator/processes.types.js.map +1 -0
- package/dist/models/orchestrator/queues.constants.d.ts +7 -0
- package/dist/models/orchestrator/queues.constants.d.ts.map +1 -0
- package/dist/models/orchestrator/queues.constants.js +9 -0
- package/dist/models/orchestrator/queues.constants.js.map +1 -0
- package/dist/models/orchestrator/queues.models.d.ts +61 -0
- package/dist/models/orchestrator/queues.models.d.ts.map +1 -0
- package/dist/models/orchestrator/queues.models.js +2 -0
- package/dist/models/orchestrator/queues.models.js.map +1 -0
- package/dist/models/orchestrator/queues.types.d.ts +39 -0
- package/dist/models/orchestrator/queues.types.d.ts.map +1 -0
- package/dist/models/orchestrator/queues.types.js +2 -0
- package/dist/models/orchestrator/queues.types.js.map +1 -0
- package/dist/services/action-center/index.d.ts +2 -0
- package/dist/services/action-center/index.d.ts.map +1 -0
- package/dist/services/action-center/index.js +2 -0
- package/dist/services/action-center/index.js.map +1 -0
- package/dist/services/action-center/tasks.d.ts +254 -0
- package/dist/services/action-center/tasks.d.ts.map +1 -0
- package/dist/services/action-center/tasks.js +446 -0
- package/dist/services/action-center/tasks.js.map +1 -0
- package/dist/services/base.d.ts +49 -0
- package/dist/services/base.d.ts.map +1 -0
- package/dist/services/base.js +183 -0
- package/dist/services/base.js.map +1 -0
- package/dist/services/data-fabric/entities.d.ts +180 -0
- package/dist/services/data-fabric/entities.d.ts.map +1 -0
- package/dist/services/data-fabric/entities.js +326 -0
- package/dist/services/data-fabric/entities.js.map +1 -0
- package/dist/services/data-fabric/index.d.ts +2 -0
- package/dist/services/data-fabric/index.d.ts.map +1 -0
- package/dist/services/data-fabric/index.js +2 -0
- package/dist/services/data-fabric/index.js.map +1 -0
- package/dist/services/folder-scoped.d.ts +21 -0
- package/dist/services/folder-scoped.d.ts.map +1 -0
- package/dist/services/folder-scoped.js +36 -0
- package/dist/services/folder-scoped.js.map +1 -0
- package/dist/services/index.d.ts +6 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/index.js +6 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/maestro/index.d.ts +3 -0
- package/dist/services/maestro/index.d.ts.map +1 -0
- package/dist/services/maestro/index.js +3 -0
- package/dist/services/maestro/index.js.map +1 -0
- package/dist/services/maestro/maestro-processes.d.ts +35 -0
- package/dist/services/maestro/maestro-processes.d.ts.map +1 -0
- package/dist/services/maestro/maestro-processes.js +47 -0
- package/dist/services/maestro/maestro-processes.js.map +1 -0
- package/dist/services/maestro/process-instances.d.ts +96 -0
- package/dist/services/maestro/process-instances.d.ts.map +1 -0
- package/dist/services/maestro/process-instances.js +190 -0
- package/dist/services/maestro/process-instances.js.map +1 -0
- package/dist/services/orchestrator/assets.d.ts +63 -0
- package/dist/services/orchestrator/assets.d.ts.map +1 -0
- package/dist/services/orchestrator/assets.js +110 -0
- package/dist/services/orchestrator/assets.js.map +1 -0
- package/dist/services/orchestrator/buckets.d.ts +186 -0
- package/dist/services/orchestrator/buckets.d.ts.map +1 -0
- package/dist/services/orchestrator/buckets.js +436 -0
- package/dist/services/orchestrator/buckets.js.map +1 -0
- package/dist/services/orchestrator/index.d.ts +5 -0
- package/dist/services/orchestrator/index.d.ts.map +1 -0
- package/dist/services/orchestrator/index.js +5 -0
- package/dist/services/orchestrator/index.js.map +1 -0
- package/dist/services/orchestrator/processes.d.ts +96 -0
- package/dist/services/orchestrator/processes.d.ts.map +1 -0
- package/dist/services/orchestrator/processes.js +172 -0
- package/dist/services/orchestrator/processes.js.map +1 -0
- package/dist/services/orchestrator/queues.d.ts +72 -0
- package/dist/services/orchestrator/queues.d.ts.map +1 -0
- package/dist/services/orchestrator/queues.js +117 -0
- package/dist/services/orchestrator/queues.js.map +1 -0
- package/dist/uipath.d.ts +65 -0
- package/dist/uipath.d.ts.map +1 -0
- package/dist/uipath.js +146 -0
- package/dist/uipath.js.map +1 -0
- package/dist/utils/constants/common.d.ts +84 -0
- package/dist/utils/constants/common.d.ts.map +1 -0
- package/dist/utils/constants/common.js +84 -0
- package/dist/utils/constants/common.js.map +1 -0
- package/dist/utils/constants/endpoints.d.ts +96 -0
- package/dist/utils/constants/endpoints.d.ts.map +1 -0
- package/dist/utils/constants/endpoints.js +96 -0
- package/dist/utils/constants/endpoints.js.map +1 -0
- package/dist/utils/constants/headers.d.ts +27 -0
- package/dist/utils/constants/headers.d.ts.map +1 -0
- package/dist/utils/constants/headers.js +27 -0
- package/dist/utils/constants/headers.js.map +1 -0
- package/dist/utils/http/headers.d.ts +37 -0
- package/dist/utils/http/headers.d.ts.map +1 -0
- package/dist/utils/http/headers.js +51 -0
- package/dist/utils/http/headers.js.map +1 -0
- package/dist/utils/http/params.d.ts +27 -0
- package/dist/utils/http/params.d.ts.map +1 -0
- package/dist/utils/http/params.js +35 -0
- package/dist/utils/http/params.js.map +1 -0
- package/dist/utils/object.d.ts +32 -0
- package/dist/utils/object.d.ts.map +1 -0
- package/dist/utils/object.js +50 -0
- package/dist/utils/object.js.map +1 -0
- package/dist/utils/pagination/constants.d.ts +18 -0
- package/dist/utils/pagination/constants.d.ts.map +1 -0
- package/dist/utils/pagination/constants.js +23 -0
- package/dist/utils/pagination/constants.js.map +1 -0
- package/dist/utils/pagination/helpers.d.ts +62 -0
- package/dist/utils/pagination/helpers.d.ts.map +1 -0
- package/dist/utils/pagination/helpers.js +254 -0
- package/dist/utils/pagination/helpers.js.map +1 -0
- package/dist/utils/pagination/index.d.ts +3 -0
- package/dist/utils/pagination/index.d.ts.map +1 -0
- package/dist/utils/pagination/index.js +3 -0
- package/dist/utils/pagination/index.js.map +1 -0
- package/dist/utils/pagination/internal-types.d.ts +184 -0
- package/dist/utils/pagination/internal-types.d.ts.map +1 -0
- package/dist/utils/pagination/internal-types.js +9 -0
- package/dist/utils/pagination/internal-types.js.map +1 -0
- package/dist/utils/pagination/pagination-manager.d.ts +17 -0
- package/dist/utils/pagination/pagination-manager.d.ts.map +1 -0
- package/dist/utils/pagination/pagination-manager.js +76 -0
- package/dist/utils/pagination/pagination-manager.js.map +1 -0
- package/dist/utils/pagination/types.d.ts +68 -0
- package/dist/utils/pagination/types.d.ts.map +1 -0
- package/dist/utils/pagination/types.js +2 -0
- package/dist/utils/pagination/types.js.map +1 -0
- package/dist/utils/platform.d.ts +8 -0
- package/dist/utils/platform.d.ts.map +1 -0
- package/dist/utils/platform.js +8 -0
- package/dist/utils/platform.js.map +1 -0
- package/dist/utils/transform.d.ts +240 -0
- package/dist/utils/transform.d.ts.map +1 -0
- package/dist/utils/transform.js +334 -0
- package/dist/utils/transform.js.map +1 -0
- package/package.json +56 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps fields for Process Instance entities to ensure consistent naming
|
|
3
|
+
*/
|
|
4
|
+
export declare const ProcessInstanceMap: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
/**
|
|
8
|
+
* Maps fields for Process Instance Execution History to ensure consistent naming
|
|
9
|
+
*/
|
|
10
|
+
export declare const ProcessInstanceExecutionHistoryMap: {
|
|
11
|
+
[key: string]: string;
|
|
12
|
+
};
|
|
13
|
+
//# sourceMappingURL=process-instances.constants.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-instances.constants.d.ts","sourceRoot":"","sources":["../../../src/models/maestro/process-instances.constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,kBAAkB,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAMvD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,kCAAkC,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAEvE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maps fields for Process Instance entities to ensure consistent naming
|
|
3
|
+
*/
|
|
4
|
+
export const ProcessInstanceMap = {
|
|
5
|
+
startedTimeUtc: 'startedTime',
|
|
6
|
+
completedTimeUtc: 'completedTime',
|
|
7
|
+
expiryTimeUtc: 'expiredTime',
|
|
8
|
+
createdAt: 'createdTime',
|
|
9
|
+
updatedAt: 'updatedTime'
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* Maps fields for Process Instance Execution History to ensure consistent naming
|
|
13
|
+
*/
|
|
14
|
+
export const ProcessInstanceExecutionHistoryMap = {
|
|
15
|
+
startTime: 'startedTime'
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=process-instances.constants.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-instances.constants.js","sourceRoot":"","sources":["../../../src/models/maestro/process-instances.constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAA8B;IAC3D,cAAc,EAAE,aAAa;IAC7B,gBAAgB,EAAE,eAAe;IACjC,aAAa,EAAE,aAAa;IAC5B,SAAS,EAAE,aAAa;IACxB,SAAS,EAAE,aAAa;CACzB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,kCAAkC,GAA8B;IAC3E,SAAS,EAAE,aAAa;CACzB,CAAC"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
import type { RawProcessInstanceGetResponse, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceExecutionHistoryResponse, BpmnXmlString } from './process-instances.types';
|
|
2
|
+
import { OperationResponse } from '../common/types';
|
|
3
|
+
import { PaginatedResponse, NonPaginatedResponse, HasPaginationOptions } from '../../utils/pagination';
|
|
4
|
+
/**
|
|
5
|
+
* Service for managing UiPath Maestro Process instances
|
|
6
|
+
*
|
|
7
|
+
* Maestro process instances are the running instances of Maestro processes. [UiPath Maestro Process Instances Guide](https://docs.uipath.com/maestro/automation-cloud/latest/user-guide/all-instances-view)
|
|
8
|
+
*/
|
|
9
|
+
export interface ProcessInstancesServiceModel {
|
|
10
|
+
/**
|
|
11
|
+
* Get all process instances with optional filtering and pagination
|
|
12
|
+
*
|
|
13
|
+
* The method returns either:
|
|
14
|
+
* - A NonPaginatedResponse with items array (when no pagination parameters are provided)
|
|
15
|
+
* - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
|
|
16
|
+
*
|
|
17
|
+
* @param options Query parameters for filtering instances and pagination
|
|
18
|
+
* @returns Promise resolving to either an array of process instances NonPaginatedResponse<ProcessInstanceGetResponse> or a PaginatedResponse<ProcessInstanceGetResponse> when pagination options are used.
|
|
19
|
+
* {@link ProcessInstanceGetResponse}
|
|
20
|
+
* @example
|
|
21
|
+
* ```typescript
|
|
22
|
+
* // Get all instances (non-paginated)
|
|
23
|
+
* const instances = await sdk.maestro.processes.instances.getAll();
|
|
24
|
+
*
|
|
25
|
+
* // Cancel faulted instances using methods directly on instances
|
|
26
|
+
* for (const instance of instances.items) {
|
|
27
|
+
* if (instance.latestRunStatus === 'Faulted') {
|
|
28
|
+
* await instance.cancel({ comment: 'Cancelling faulted instance' });
|
|
29
|
+
* }
|
|
30
|
+
* }
|
|
31
|
+
*
|
|
32
|
+
* // With filtering
|
|
33
|
+
* const instances = await sdk.maestro.processes.instances.getAll({
|
|
34
|
+
* processKey: 'MyProcess'
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* // First page with pagination
|
|
38
|
+
* const page1 = await sdk.maestro.processes.instances.getAll({ pageSize: 10 });
|
|
39
|
+
*
|
|
40
|
+
* // Navigate using cursor
|
|
41
|
+
* if (page1.hasNextPage) {
|
|
42
|
+
* const page2 = await sdk.maestro.processes.instances.getAll({ cursor: page1.nextCursor });
|
|
43
|
+
* }
|
|
44
|
+
* ```
|
|
45
|
+
*/
|
|
46
|
+
getAll<T extends ProcessInstanceGetAllWithPaginationOptions = ProcessInstanceGetAllWithPaginationOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ProcessInstanceGetResponse> : NonPaginatedResponse<ProcessInstanceGetResponse>>;
|
|
47
|
+
/**
|
|
48
|
+
* Get a process instance by ID with operation methods (cancel, pause, resume)
|
|
49
|
+
* @param id The ID of the instance to retrieve
|
|
50
|
+
* @param folderKey The folder key for authorization
|
|
51
|
+
* @returns Promise resolving to a process instance
|
|
52
|
+
* {@link ProcessInstanceGetResponse}
|
|
53
|
+
* @example
|
|
54
|
+
* ```typescript
|
|
55
|
+
* // Get a specific process instance
|
|
56
|
+
* const instance = await sdk.maestro.processes.instances.getById(
|
|
57
|
+
* <instanceId>,
|
|
58
|
+
* <folderKey>
|
|
59
|
+
* );
|
|
60
|
+
*
|
|
61
|
+
* // Access instance properties
|
|
62
|
+
* console.log(`Status: ${instance.latestRunStatus}`);
|
|
63
|
+
*
|
|
64
|
+
* ```
|
|
65
|
+
*/
|
|
66
|
+
getById(id: string, folderKey: string): Promise<ProcessInstanceGetResponse>;
|
|
67
|
+
/**
|
|
68
|
+
* Get execution history (spans) for a process instance
|
|
69
|
+
* @param instanceId The ID of the instance to get history for
|
|
70
|
+
* @returns Promise resolving to execution history
|
|
71
|
+
* {@link ProcessInstanceExecutionHistoryResponse}
|
|
72
|
+
* @example
|
|
73
|
+
* ```typescript
|
|
74
|
+
* // Get execution history for a process instance
|
|
75
|
+
* const history = await sdk.maestro.processes.instances.getExecutionHistory(
|
|
76
|
+
* <instanceId>
|
|
77
|
+
* );
|
|
78
|
+
*
|
|
79
|
+
* // Analyze execution timeline
|
|
80
|
+
* history.forEach(span => {
|
|
81
|
+
* console.log(`Activity: ${span.name}`);
|
|
82
|
+
* console.log(`Start: ${span.startTime}`);
|
|
83
|
+
* console.log(`Duration: ${span.duration}ms`);
|
|
84
|
+
* });
|
|
85
|
+
*
|
|
86
|
+
* ```
|
|
87
|
+
*/
|
|
88
|
+
getExecutionHistory(instanceId: string): Promise<ProcessInstanceExecutionHistoryResponse[]>;
|
|
89
|
+
/**
|
|
90
|
+
* Get BPMN XML file for a process instance
|
|
91
|
+
* @param instanceId The ID of the instance to get BPMN for
|
|
92
|
+
* @param folderKey The folder key for authorization
|
|
93
|
+
* @returns Promise resolving to BPMN XML file
|
|
94
|
+
* {@link BpmnXmlString}
|
|
95
|
+
* @example
|
|
96
|
+
* ```typescript
|
|
97
|
+
* // Get BPMN XML for a process instance
|
|
98
|
+
* const bpmnXml = await sdk.maestro.processes.instances.getBpmn(
|
|
99
|
+
* <instanceId>,
|
|
100
|
+
* <folderKey>
|
|
101
|
+
* );
|
|
102
|
+
*
|
|
103
|
+
* // Render BPMN diagram in frontend using bpmn-js
|
|
104
|
+
* import BpmnViewer from 'bpmn-js/lib/Viewer';
|
|
105
|
+
*
|
|
106
|
+
* const viewer = new BpmnViewer({
|
|
107
|
+
* container: '#bpmn-diagram'
|
|
108
|
+
* });
|
|
109
|
+
*
|
|
110
|
+
* await viewer.importXML(bpmnXml);
|
|
111
|
+
*
|
|
112
|
+
* // Zoom to fit the diagram
|
|
113
|
+
* viewer.get('canvas').zoom('fit-viewport');
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
getBpmn(instanceId: string, folderKey: string): Promise<BpmnXmlString>;
|
|
117
|
+
/**
|
|
118
|
+
* Cancel a process instance
|
|
119
|
+
* @param instanceId The ID of the instance to cancel
|
|
120
|
+
* @param folderKey The folder key for authorization
|
|
121
|
+
* @param options Optional cancellation options with comment
|
|
122
|
+
* @returns Promise resolving to operation result with instance data
|
|
123
|
+
* @example
|
|
124
|
+
* ```typescript
|
|
125
|
+
* // Cancel a process instance
|
|
126
|
+
* const result = await sdk.maestro.processes.instances.cancel(
|
|
127
|
+
* <instanceId>,
|
|
128
|
+
* <folderKey>
|
|
129
|
+
* );
|
|
130
|
+
*
|
|
131
|
+
* if (result.success) {
|
|
132
|
+
* console.log(`Instance ${result.data.instanceId} now has status: ${result.data.status}`);
|
|
133
|
+
* }
|
|
134
|
+
*
|
|
135
|
+
* // Cancel with a comment
|
|
136
|
+
* const result = await sdk.maestro.processes.instances.cancel(
|
|
137
|
+
* <instanceId>,
|
|
138
|
+
* <folderKey>,
|
|
139
|
+
* { comment: <comment> }
|
|
140
|
+
* );
|
|
141
|
+
*
|
|
142
|
+
* // Cancel multiple faulted instances
|
|
143
|
+
* const instances = await sdk.maestro.processes.instances.getAll({
|
|
144
|
+
* latestRunStatus: "Faulted"
|
|
145
|
+
* });
|
|
146
|
+
*
|
|
147
|
+
* for (const instance of instances.items) {
|
|
148
|
+
* const result = await sdk.maestro.processes.instances.cancel(
|
|
149
|
+
* instance.instanceId,
|
|
150
|
+
* instance.folderKey,
|
|
151
|
+
* { comment: <comment> }
|
|
152
|
+
* );
|
|
153
|
+
*
|
|
154
|
+
* if (result.success) {
|
|
155
|
+
* console.log(`Cancelled instance: ${result.data.instanceId}`);
|
|
156
|
+
* }
|
|
157
|
+
* }
|
|
158
|
+
* ```
|
|
159
|
+
*/
|
|
160
|
+
cancel(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
161
|
+
/**
|
|
162
|
+
* Pause a process instance
|
|
163
|
+
* @param instanceId The ID of the instance to pause
|
|
164
|
+
* @param folderKey The folder key for authorization
|
|
165
|
+
* @param options Optional pause options with comment
|
|
166
|
+
* @returns Promise resolving to operation result with instance data
|
|
167
|
+
*/
|
|
168
|
+
pause(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
169
|
+
/**
|
|
170
|
+
* Resume a process instance
|
|
171
|
+
* @param instanceId The ID of the instance to resume
|
|
172
|
+
* @param folderKey The folder key for authorization
|
|
173
|
+
* @param options Optional resume options with comment
|
|
174
|
+
* @returns Promise resolving to operation result with instance data
|
|
175
|
+
*/
|
|
176
|
+
resume(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
177
|
+
}
|
|
178
|
+
export interface ProcessInstanceMethods {
|
|
179
|
+
/**
|
|
180
|
+
* Cancels this process instance
|
|
181
|
+
*
|
|
182
|
+
* @param options - Optional cancellation options with comment
|
|
183
|
+
* @returns Promise resolving to operation result
|
|
184
|
+
*/
|
|
185
|
+
cancel(options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
186
|
+
/**
|
|
187
|
+
* Pauses this process instance
|
|
188
|
+
*
|
|
189
|
+
* @param options - Optional pause options with comment
|
|
190
|
+
* @returns Promise resolving to operation result
|
|
191
|
+
*/
|
|
192
|
+
pause(options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
193
|
+
/**
|
|
194
|
+
* Resumes this process instance
|
|
195
|
+
*
|
|
196
|
+
* @param options - Optional resume options with comment
|
|
197
|
+
* @returns Promise resolving to operation result
|
|
198
|
+
*/
|
|
199
|
+
resume(options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
200
|
+
}
|
|
201
|
+
export type ProcessInstanceGetResponse = RawProcessInstanceGetResponse & ProcessInstanceMethods;
|
|
202
|
+
/**
|
|
203
|
+
* Creates an actionable process instance by combining API process instance data with operational methods.
|
|
204
|
+
*
|
|
205
|
+
* @param instanceData - The process instance data from API
|
|
206
|
+
* @param service - The process instance service instance
|
|
207
|
+
* @returns A process instance object with added methods
|
|
208
|
+
*/
|
|
209
|
+
export declare function createProcessInstanceWithMethods(instanceData: RawProcessInstanceGetResponse, service: ProcessInstancesServiceModel): ProcessInstanceGetResponse;
|
|
210
|
+
//# sourceMappingURL=process-instances.models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-instances.models.d.ts","sourceRoot":"","sources":["../../../src/models/maestro/process-instances.models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,6BAA6B,EAC7B,0CAA0C,EAC1C,+BAA+B,EAC/B,gCAAgC,EAChC,uCAAuC,EACvC,aAAa,EACd,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEvG;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAmCG;IACH,MAAM,CAAC,CAAC,SAAS,0CAA0C,GAAG,0CAA0C,EACtG,OAAO,CAAC,EAAE,CAAC,GACV,OAAO,CACR,CAAC,SAAS,oBAAoB,CAAC,CAAC,CAAC,GAC7B,iBAAiB,CAAC,0BAA0B,CAAC,GAC7C,oBAAoB,CAAC,0BAA0B,CAAC,CACrD,CAAC;IAEF;;;;;;;;;;;;;;;;;;OAkBG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;IAE5E;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,mBAAmB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,uCAAuC,EAAE,CAAC,CAAC;IAE5F;;;;;;;;;;;;;;;;;;;;;;;;;;OA0BG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAAC;IAEvE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA0CG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,+BAA+B,GAAG,OAAO,CAAC,iBAAiB,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAEvJ;;;;;;OAMG;IACH,KAAK,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,+BAA+B,GAAG,OAAO,CAAC,iBAAiB,CAAC,gCAAgC,CAAC,CAAC,CAAA;IAErJ;;;;;;OAMG;IACH,MAAM,CAAC,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,+BAA+B,GAAG,OAAO,CAAC,iBAAiB,CAAC,gCAAgC,CAAC,CAAC,CAAC;CACxJ;AAGD,MAAM,WAAW,sBAAsB;IACrC;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,+BAA+B,GAAG,OAAO,CAAC,iBAAiB,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAEhH;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CAAC,EAAE,+BAA+B,GAAG,OAAO,CAAC,iBAAiB,CAAC,gCAAgC,CAAC,CAAC,CAAC;IAE/G;;;;;OAKG;IACH,MAAM,CAAC,OAAO,CAAC,EAAE,+BAA+B,GAAG,OAAO,CAAC,iBAAiB,CAAC,gCAAgC,CAAC,CAAC,CAAC;CACjH;AAGD,MAAM,MAAM,0BAA0B,GAAG,6BAA6B,GAAG,sBAAsB,CAAC;AA+BhG;;;;;;GAMG;AACH,wBAAgB,gCAAgC,CAC9C,YAAY,EAAE,6BAA6B,EAC3C,OAAO,EAAE,4BAA4B,GACpC,0BAA0B,CAG5B"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Creates methods for a process instance
|
|
3
|
+
*
|
|
4
|
+
* @param instanceData - The process instance data (response from API)
|
|
5
|
+
* @param service - The process instance service instance
|
|
6
|
+
* @returns Object containing process instance methods
|
|
7
|
+
*/
|
|
8
|
+
function createProcessInstanceMethods(instanceData, service) {
|
|
9
|
+
return {
|
|
10
|
+
async cancel(options) {
|
|
11
|
+
if (!instanceData.instanceId)
|
|
12
|
+
throw new Error('Process instance ID is undefined');
|
|
13
|
+
return service.cancel(instanceData.instanceId, instanceData.folderKey, options);
|
|
14
|
+
},
|
|
15
|
+
async pause(options) {
|
|
16
|
+
if (!instanceData.instanceId)
|
|
17
|
+
throw new Error('Process instance ID is undefined');
|
|
18
|
+
return service.pause(instanceData.instanceId, instanceData.folderKey, options);
|
|
19
|
+
},
|
|
20
|
+
async resume(options) {
|
|
21
|
+
if (!instanceData.instanceId)
|
|
22
|
+
throw new Error('Process instance ID is undefined');
|
|
23
|
+
return service.resume(instanceData.instanceId, instanceData.folderKey, options);
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Creates an actionable process instance by combining API process instance data with operational methods.
|
|
29
|
+
*
|
|
30
|
+
* @param instanceData - The process instance data from API
|
|
31
|
+
* @param service - The process instance service instance
|
|
32
|
+
* @returns A process instance object with added methods
|
|
33
|
+
*/
|
|
34
|
+
export function createProcessInstanceWithMethods(instanceData, service) {
|
|
35
|
+
const methods = createProcessInstanceMethods(instanceData, service);
|
|
36
|
+
return Object.assign({}, instanceData, methods);
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=process-instances.models.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-instances.models.js","sourceRoot":"","sources":["../../../src/models/maestro/process-instances.models.ts"],"names":[],"mappings":"AAoOA;;;;;;GAMG;AACH,SAAS,4BAA4B,CAAC,YAA2C,EAAE,OAAqC;IACtH,OAAO;QACL,KAAK,CAAC,MAAM,CAAC,OAAyC;YACpD,IAAI,CAAC,YAAY,CAAC,UAAU;gBAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;YAElF,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAClF,CAAC;QAED,KAAK,CAAC,KAAK,CAAC,OAAyC;YACnD,IAAI,CAAC,YAAY,CAAC,UAAU;gBAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;YAElF,OAAO,OAAO,CAAC,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QACjF,CAAC;QAED,KAAK,CAAC,MAAM,CAAC,OAAyC;YACpD,IAAI,CAAC,YAAY,CAAC,UAAU;gBAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;YAElF,OAAO,OAAO,CAAC,MAAM,CAAC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAClF,CAAC;KACF,CAAC;AACJ,CAAC;AAED;;;;;;GAMG;AACH,MAAM,UAAU,gCAAgC,CAC9C,YAA2C,EAC3C,OAAqC;IAErC,MAAM,OAAO,GAAG,4BAA4B,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IACpE,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,CAA+B,CAAC;AAChF,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Process Instance Types
|
|
3
|
+
* Types and interfaces for Maestro process instance management
|
|
4
|
+
*/
|
|
5
|
+
import { PaginationOptions } from "../../utils/pagination";
|
|
6
|
+
/**
|
|
7
|
+
* Response for getting a single process instance
|
|
8
|
+
*/
|
|
9
|
+
export interface RawProcessInstanceGetResponse {
|
|
10
|
+
instanceId: string;
|
|
11
|
+
packageKey: string;
|
|
12
|
+
packageId: string;
|
|
13
|
+
packageVersion: string;
|
|
14
|
+
latestRunId: string;
|
|
15
|
+
latestRunStatus: string;
|
|
16
|
+
processKey: string;
|
|
17
|
+
folderKey: string;
|
|
18
|
+
userId: number;
|
|
19
|
+
instanceDisplayName: string;
|
|
20
|
+
startedByUser: string;
|
|
21
|
+
source: string;
|
|
22
|
+
creatorUserKey: string;
|
|
23
|
+
startedTime: string;
|
|
24
|
+
completedTime: string | null;
|
|
25
|
+
instanceRuns: ProcessInstanceRun[];
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Query options for getting process instances
|
|
29
|
+
*/
|
|
30
|
+
export interface ProcessInstanceGetAllOptions {
|
|
31
|
+
packageId?: string;
|
|
32
|
+
packageVersion?: string;
|
|
33
|
+
processKey?: string;
|
|
34
|
+
errorCode?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Query options for getting process instances with pagination support
|
|
38
|
+
*/
|
|
39
|
+
export type ProcessInstanceGetAllWithPaginationOptions = ProcessInstanceGetAllOptions & PaginationOptions;
|
|
40
|
+
/**
|
|
41
|
+
* Request for process instance operations (cancel, pause, resume)
|
|
42
|
+
*/
|
|
43
|
+
export interface ProcessInstanceOperationOptions {
|
|
44
|
+
comment?: string;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Response from PIMS operations (cancel, pause, resume)
|
|
48
|
+
*/
|
|
49
|
+
export interface ProcessInstanceOperationResponse {
|
|
50
|
+
instanceId: string;
|
|
51
|
+
status: string;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Response for process instance execution history
|
|
55
|
+
*/
|
|
56
|
+
export interface ProcessInstanceExecutionHistoryResponse {
|
|
57
|
+
id: string;
|
|
58
|
+
traceId: string;
|
|
59
|
+
parentId: string | null;
|
|
60
|
+
name: string;
|
|
61
|
+
startedTime: string;
|
|
62
|
+
endTime: string | null;
|
|
63
|
+
attributes: string | null;
|
|
64
|
+
createdTime: string;
|
|
65
|
+
updatedTime?: string;
|
|
66
|
+
expiredTime: string | null;
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Process Instance run
|
|
70
|
+
*/
|
|
71
|
+
export interface ProcessInstanceRun {
|
|
72
|
+
runId: string;
|
|
73
|
+
status: string;
|
|
74
|
+
startedTime: string;
|
|
75
|
+
completedTime: string;
|
|
76
|
+
}
|
|
77
|
+
export type BpmnXmlString = string;
|
|
78
|
+
//# sourceMappingURL=process-instances.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-instances.types.d.ts","sourceRoot":"","sources":["../../../src/models/maestro/process-instances.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;GAEG;AACH,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,mBAAmB,EAAE,MAAM,CAAC;IAC5B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,YAAY,EAAE,kBAAkB,EAAE,CAAC;CACpC;AAGD;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,MAAM,0CAA0C,GAAG,4BAA4B,GAAG,iBAAiB,CAAC;AAE1G;;GAEG;AACH,MAAM,WAAW,+BAA+B;IAC9C,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,gCAAgC;IAC/C,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,uCAAuC;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;CAE5B;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"process-instances.types.js","sourceRoot":"","sources":["../../../src/models/maestro/process-instances.types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maestro Process Models
|
|
3
|
+
* Model classes for Maestro processes
|
|
4
|
+
*/
|
|
5
|
+
import { MaestroProcessGetAllResponse } from './processes.types';
|
|
6
|
+
/**
|
|
7
|
+
* Service for managing Maestro Processes
|
|
8
|
+
*
|
|
9
|
+
* UiPath Maestro is a cloud-native orchestration layer that coordinates bots, AI agents, and humans for seamless, intelligent automation of complex workflows. [UiPath Maestro Guide](https://docs.uipath.com/maestro/automation-cloud/latest/user-guide/introduction-to-maestro)
|
|
10
|
+
*/
|
|
11
|
+
export interface MaestroProcessesServiceModel {
|
|
12
|
+
/**
|
|
13
|
+
* @returns Promise resolving to array of MaestroProcess objects
|
|
14
|
+
* {@link MaestroProcessGetAllResponse}
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* // Get all processes
|
|
18
|
+
* const processes = await sdk.maestro.processes.getAll();
|
|
19
|
+
*
|
|
20
|
+
* // Access process information
|
|
21
|
+
* for (const process of processes) {
|
|
22
|
+
* console.log(`Process: ${process.processKey}`);
|
|
23
|
+
* console.log(`Running instances: ${process.runningCount}`);
|
|
24
|
+
* console.log(`Faulted instances: ${process.faultedCount}`);
|
|
25
|
+
* }
|
|
26
|
+
*
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
getAll(): Promise<MaestroProcessGetAllResponse[]>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=processes.models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processes.models.d.ts","sourceRoot":"","sources":["../../../src/models/maestro/processes.models.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,4BAA4B,EAAE,MAAM,mBAAmB,CAAC;AAEjE;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,IAAI,OAAO,CAAC,4BAA4B,EAAE,CAAC,CAAC;CACnD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processes.models.js","sourceRoot":"","sources":["../../../src/models/maestro/processes.models.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Maestro Process Types
|
|
3
|
+
* Types and interfaces for Maestro process management
|
|
4
|
+
*/
|
|
5
|
+
/**
|
|
6
|
+
* Process information with instance statistics
|
|
7
|
+
*/
|
|
8
|
+
export interface MaestroProcessGetAllResponse {
|
|
9
|
+
/** Unique key identifying the process */
|
|
10
|
+
processKey: string;
|
|
11
|
+
/** Package identifier */
|
|
12
|
+
packageId: string;
|
|
13
|
+
/** Folder key where process is located */
|
|
14
|
+
folderKey: string;
|
|
15
|
+
/** Folder name */
|
|
16
|
+
folderName: string;
|
|
17
|
+
/** Available package versions */
|
|
18
|
+
packageVersions: string[];
|
|
19
|
+
/** Total number of versions */
|
|
20
|
+
versionCount: number;
|
|
21
|
+
/** Process instance count - pending */
|
|
22
|
+
pendingCount: number;
|
|
23
|
+
/** Process instance count - running */
|
|
24
|
+
runningCount: number;
|
|
25
|
+
/** Process instance count - completed */
|
|
26
|
+
completedCount: number;
|
|
27
|
+
/** Process instance count - paused */
|
|
28
|
+
pausedCount: number;
|
|
29
|
+
/** Process instance count - cancelled */
|
|
30
|
+
cancelledCount: number;
|
|
31
|
+
/** Process instance count - faulted */
|
|
32
|
+
faultedCount: number;
|
|
33
|
+
/** Process instance count - retrying */
|
|
34
|
+
retryingCount: number;
|
|
35
|
+
/** Process instance count - resuming */
|
|
36
|
+
resumingCount: number;
|
|
37
|
+
/** Process instance count - pausing */
|
|
38
|
+
pausingCount: number;
|
|
39
|
+
/** Process instance count - canceling */
|
|
40
|
+
cancelingCount: number;
|
|
41
|
+
}
|
|
42
|
+
//# sourceMappingURL=processes.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processes.types.d.ts","sourceRoot":"","sources":["../../../src/models/maestro/processes.types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,MAAM,WAAW,4BAA4B;IAC3C,yCAAyC;IACzC,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,kBAAkB;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,+BAA+B;IAC/B,YAAY,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,cAAc,EAAE,MAAM,CAAC;IACvB,sCAAsC;IACtC,WAAW,EAAE,MAAM,CAAC;IACpB,yCAAyC;IACzC,cAAc,EAAE,MAAM,CAAC;IACvB,uCAAuC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,wCAAwC;IACxC,aAAa,EAAE,MAAM,CAAC;IACtB,uCAAuC;IACvC,YAAY,EAAE,MAAM,CAAC;IACrB,yCAAyC;IACzC,cAAc,EAAE,MAAM,CAAC;CACxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"processes.types.js","sourceRoot":"","sources":["../../../src/models/maestro/processes.types.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.constants.d.ts","sourceRoot":"","sources":["../../../src/models/orchestrator/assets.constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,eAAO,MAAM,QAAQ,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;CAG7C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.constants.js","sourceRoot":"","sources":["../../../src/models/orchestrator/assets.constants.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAC,MAAM,QAAQ,GAA8B;IACjD,YAAY,EAAE,aAAa;IAC3B,oBAAoB,EAAE,kBAAkB;CACzC,CAAC"}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { AssetGetAllOptions, AssetGetResponse, AssetGetByIdOptions } from './assets.types';
|
|
2
|
+
import { PaginatedResponse, NonPaginatedResponse, HasPaginationOptions } from '../../utils/pagination';
|
|
3
|
+
/**
|
|
4
|
+
* Service for managing UiPath Assets.
|
|
5
|
+
*
|
|
6
|
+
* Assets are key-value pairs that can be used to store configuration data, credentials, and other settings used by automation processes. [UiPath Assets Guide](https://docs.uipath.com/orchestrator/automation-cloud/latest/user-guide/about-assets)
|
|
7
|
+
*/
|
|
8
|
+
export interface AssetServiceModel {
|
|
9
|
+
/**
|
|
10
|
+
* Gets all assets across folders with optional filtering
|
|
11
|
+
*
|
|
12
|
+
* @param options Query options including optional folderId and pagination options
|
|
13
|
+
* @returns Promise resolving to either an array of assets NonPaginatedResponse<AssetGetResponse> or a PaginatedResponse<AssetGetResponse> when pagination options are used.
|
|
14
|
+
* {@link AssetGetResponse}
|
|
15
|
+
* @example
|
|
16
|
+
* ```typescript
|
|
17
|
+
* // Standard array return
|
|
18
|
+
* const assets = await sdk.assets.getAll();
|
|
19
|
+
*
|
|
20
|
+
* // With folder
|
|
21
|
+
* const folderAssets = await sdk.assets.getAll({ folderId: <folderId> });
|
|
22
|
+
*
|
|
23
|
+
* // First page with pagination
|
|
24
|
+
* const page1 = await sdk.assets.getAll({ pageSize: 10 });
|
|
25
|
+
*
|
|
26
|
+
* // Navigate using cursor
|
|
27
|
+
* if (page1.hasNextPage) {
|
|
28
|
+
* const page2 = await sdk.assets.getAll({ cursor: page1.nextCursor });
|
|
29
|
+
* }
|
|
30
|
+
*
|
|
31
|
+
* // Jump to specific page
|
|
32
|
+
* const page5 = await sdk.assets.getAll({
|
|
33
|
+
* jumpToPage: 5,
|
|
34
|
+
* pageSize: 10
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*/
|
|
38
|
+
getAll<T extends AssetGetAllOptions = AssetGetAllOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<AssetGetResponse> : NonPaginatedResponse<AssetGetResponse>>;
|
|
39
|
+
/**
|
|
40
|
+
* Gets a single asset by ID
|
|
41
|
+
*
|
|
42
|
+
* @param id - Asset ID
|
|
43
|
+
* @param folderId - Required folder ID
|
|
44
|
+
* @param options - Optional query parameters (expand, select)
|
|
45
|
+
* @returns Promise resolving to a single asset
|
|
46
|
+
* {@link AssetGetResponse}
|
|
47
|
+
* @example
|
|
48
|
+
* ```typescript
|
|
49
|
+
* // Get asset by ID
|
|
50
|
+
* const asset = await sdk.assets.getById(<assetId>, <folderId>);
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
getById(id: number, folderId: number, options?: AssetGetByIdOptions): Promise<AssetGetResponse>;
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=assets.models.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.models.d.ts","sourceRoot":"","sources":["../../../src/models/orchestrator/assets.models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC3F,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAEvG;;;;GAIG;AACH,MAAM,WAAW,iBAAiB;IAChC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,CAAC,SAAS,kBAAkB,GAAG,kBAAkB,EAAE,OAAO,CAAC,EAAE,CAAC,GAAG,OAAO,CAC7E,CAAC,SAAS,oBAAoB,CAAC,CAAC,CAAC,GAC7B,iBAAiB,CAAC,gBAAgB,CAAC,GACnC,oBAAoB,CAAC,gBAAgB,CAAC,CAC3C,CAAC;IAEF;;;;;;;;;;;;;OAaG;IACH,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACjG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assets.models.js","sourceRoot":"","sources":["../../../src/models/orchestrator/assets.models.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { BaseOptions, RequestOptions } from '../common/types';
|
|
2
|
+
import { PaginationOptions } from '../../utils/pagination';
|
|
3
|
+
/**
|
|
4
|
+
* Enum for Asset Value Scope
|
|
5
|
+
*/
|
|
6
|
+
export declare enum AssetValueScope {
|
|
7
|
+
Global = "Global",
|
|
8
|
+
PerRobot = "PerRobot"
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Enum for Asset Value Type
|
|
12
|
+
*/
|
|
13
|
+
export declare enum AssetValueType {
|
|
14
|
+
DBConnectionString = "DBConnectionString",
|
|
15
|
+
HttpConnectionString = "HttpConnectionString",
|
|
16
|
+
Text = "Text",
|
|
17
|
+
Bool = "Bool",
|
|
18
|
+
Integer = "Integer",
|
|
19
|
+
Credential = "Credential",
|
|
20
|
+
WindowsCredential = "WindowsCredential",
|
|
21
|
+
KeyValueList = "KeyValueList",
|
|
22
|
+
Secret = "Secret"
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Interface for key-value pair used in assets
|
|
26
|
+
*/
|
|
27
|
+
export interface CustomKeyValuePair {
|
|
28
|
+
key?: string;
|
|
29
|
+
value?: string;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Interface for asset response
|
|
33
|
+
*/
|
|
34
|
+
export interface AssetGetResponse {
|
|
35
|
+
key: string;
|
|
36
|
+
name: string;
|
|
37
|
+
id: number;
|
|
38
|
+
canBeDeleted: boolean;
|
|
39
|
+
valueScope: AssetValueScope;
|
|
40
|
+
valueType: AssetValueType;
|
|
41
|
+
value: string | null;
|
|
42
|
+
credentialStoreId: number | null;
|
|
43
|
+
keyValueList: CustomKeyValuePair[];
|
|
44
|
+
hasDefaultValue: boolean;
|
|
45
|
+
description: string | null;
|
|
46
|
+
foldersCount: number;
|
|
47
|
+
lastModifiedTime: string | null;
|
|
48
|
+
lastModifierUserId: number | null;
|
|
49
|
+
createdTime: string;
|
|
50
|
+
creatorUserId: number;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Options for getting assets across folders
|
|
54
|
+
*/
|
|
55
|
+
export type AssetGetAllOptions = RequestOptions & PaginationOptions & {
|
|
56
|
+
/**
|
|
57
|
+
* Optional folder ID to filter assets by folder
|
|
58
|
+
*/
|
|
59
|
+
folderId?: number;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* Options for getting a single asset by ID
|
|
63
|
+
*/
|
|
64
|
+
export type AssetGetByIdOptions = BaseOptions;
|
|
65
|
+
//# sourceMappingURL=assets.types.d.ts.map
|