@uipath/uipath-typescript 1.0.0-beta.12 → 1.0.0-beta.14
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 → README.md} +53 -10
- package/dist/index.d.ts +4709 -15
- package/dist/index.esm.js +6077 -0
- package/dist/index.js +6143 -19
- package/package.json +11 -4
- package/dist/core/auth/service.d.ts +0 -72
- package/dist/core/auth/service.d.ts.map +0 -1
- package/dist/core/auth/service.js +0 -244
- package/dist/core/auth/service.js.map +0 -1
- package/dist/core/auth/token-manager.d.ts +0 -82
- package/dist/core/auth/token-manager.d.ts.map +0 -1
- package/dist/core/auth/token-manager.js +0 -248
- package/dist/core/auth/token-manager.js.map +0 -1
- package/dist/core/auth/types.d.ts +0 -20
- package/dist/core/auth/types.d.ts.map +0 -1
- package/dist/core/auth/types.js +0 -2
- package/dist/core/auth/types.js.map +0 -1
- package/dist/core/config/config-utils.d.ts +0 -4
- package/dist/core/config/config-utils.d.ts.map +0 -1
- package/dist/core/config/config-utils.js +0 -13
- package/dist/core/config/config-utils.js.map +0 -1
- package/dist/core/config/config.d.ts +0 -48
- package/dist/core/config/config.d.ts.map +0 -1
- package/dist/core/config/config.js +0 -22
- package/dist/core/config/config.js.map +0 -1
- package/dist/core/config/sdk-config.d.ts +0 -33
- package/dist/core/config/sdk-config.d.ts.map +0 -1
- package/dist/core/config/sdk-config.js +0 -9
- package/dist/core/config/sdk-config.js.map +0 -1
- package/dist/core/context/execution.d.ts +0 -35
- package/dist/core/context/execution.d.ts.map +0 -1
- package/dist/core/context/execution.js +0 -55
- package/dist/core/context/execution.js.map +0 -1
- package/dist/core/errors/authentication.d.ts +0 -13
- package/dist/core/errors/authentication.d.ts.map +0 -1
- package/dist/core/errors/authentication.js +0 -19
- package/dist/core/errors/authentication.js.map +0 -1
- package/dist/core/errors/authorization.d.ts +0 -13
- package/dist/core/errors/authorization.d.ts.map +0 -1
- package/dist/core/errors/authorization.js +0 -19
- package/dist/core/errors/authorization.js.map +0 -1
- package/dist/core/errors/base.d.ts +0 -41
- package/dist/core/errors/base.d.ts.map +0 -1
- package/dist/core/errors/base.js +0 -37
- package/dist/core/errors/base.js.map +0 -1
- package/dist/core/errors/constants.d.ts +0 -57
- package/dist/core/errors/constants.d.ts.map +0 -1
- package/dist/core/errors/constants.js +0 -66
- package/dist/core/errors/constants.js.map +0 -1
- package/dist/core/errors/error-factory.d.ts +0 -17
- package/dist/core/errors/error-factory.d.ts.map +0 -1
- package/dist/core/errors/error-factory.js +0 -57
- package/dist/core/errors/error-factory.js.map +0 -1
- package/dist/core/errors/guards.d.ts +0 -48
- package/dist/core/errors/guards.d.ts.map +0 -1
- package/dist/core/errors/guards.js +0 -76
- package/dist/core/errors/guards.js.map +0 -1
- package/dist/core/errors/index.d.ts +0 -11
- package/dist/core/errors/index.d.ts.map +0 -1
- package/dist/core/errors/index.js +0 -15
- package/dist/core/errors/index.js.map +0 -1
- package/dist/core/errors/network.d.ts +0 -14
- package/dist/core/errors/network.d.ts.map +0 -1
- package/dist/core/errors/network.js +0 -20
- package/dist/core/errors/network.js.map +0 -1
- package/dist/core/errors/not-found.d.ts +0 -13
- package/dist/core/errors/not-found.d.ts.map +0 -1
- package/dist/core/errors/not-found.js +0 -19
- package/dist/core/errors/not-found.js.map +0 -1
- package/dist/core/errors/parser.d.ts +0 -29
- package/dist/core/errors/parser.d.ts.map +0 -1
- package/dist/core/errors/parser.js +0 -152
- package/dist/core/errors/parser.js.map +0 -1
- package/dist/core/errors/rate-limit.d.ts +0 -12
- package/dist/core/errors/rate-limit.d.ts.map +0 -1
- package/dist/core/errors/rate-limit.js +0 -18
- package/dist/core/errors/rate-limit.js.map +0 -1
- package/dist/core/errors/server.d.ts +0 -17
- package/dist/core/errors/server.d.ts.map +0 -1
- package/dist/core/errors/server.js +0 -27
- package/dist/core/errors/server.js.map +0 -1
- package/dist/core/errors/types.d.ts +0 -94
- package/dist/core/errors/types.d.ts.map +0 -1
- package/dist/core/errors/types.js +0 -28
- package/dist/core/errors/types.js.map +0 -1
- package/dist/core/errors/validation.d.ts +0 -13
- package/dist/core/errors/validation.d.ts.map +0 -1
- package/dist/core/errors/validation.js +0 -19
- package/dist/core/errors/validation.js.map +0 -1
- package/dist/core/http/api-client.d.ts +0 -30
- package/dist/core/http/api-client.d.ts.map +0 -1
- package/dist/core/http/api-client.js +0 -131
- package/dist/core/http/api-client.js.map +0 -1
- package/dist/core/telemetry/client.d.ts +0 -34
- package/dist/core/telemetry/client.d.ts.map +0 -1
- package/dist/core/telemetry/client.js +0 -193
- package/dist/core/telemetry/client.js.map +0 -1
- package/dist/core/telemetry/constants.d.ts +0 -19
- package/dist/core/telemetry/constants.d.ts.map +0 -1
- package/dist/core/telemetry/constants.js +0 -24
- package/dist/core/telemetry/constants.js.map +0 -1
- package/dist/core/telemetry/index.d.ts +0 -7
- package/dist/core/telemetry/index.d.ts.map +0 -1
- package/dist/core/telemetry/index.js +0 -7
- package/dist/core/telemetry/index.js.map +0 -1
- package/dist/core/telemetry/track.d.ts +0 -26
- package/dist/core/telemetry/track.d.ts.map +0 -1
- package/dist/core/telemetry/track.js +0 -67
- package/dist/core/telemetry/track.js.map +0 -1
- package/dist/core/telemetry/types.d.ts +0 -18
- package/dist/core/telemetry/types.d.ts.map +0 -1
- package/dist/core/telemetry/types.js +0 -5
- package/dist/core/telemetry/types.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/models/action-center/index.d.ts +0 -3
- package/dist/models/action-center/index.d.ts.map +0 -1
- package/dist/models/action-center/index.js +0 -3
- package/dist/models/action-center/index.js.map +0 -1
- package/dist/models/action-center/tasks.constants.d.ts +0 -12
- package/dist/models/action-center/tasks.constants.d.ts.map +0 -1
- package/dist/models/action-center/tasks.constants.js +0 -18
- package/dist/models/action-center/tasks.constants.js.map +0 -1
- package/dist/models/action-center/tasks.internal-types.d.ts +0 -13
- package/dist/models/action-center/tasks.internal-types.d.ts.map +0 -1
- package/dist/models/action-center/tasks.internal-types.js +0 -2
- package/dist/models/action-center/tasks.internal-types.js.map +0 -1
- package/dist/models/action-center/tasks.models.d.ts +0 -79
- package/dist/models/action-center/tasks.models.d.ts.map +0 -1
- package/dist/models/action-center/tasks.models.js +0 -60
- package/dist/models/action-center/tasks.models.js.map +0 -1
- package/dist/models/action-center/tasks.types.d.ts +0 -180
- package/dist/models/action-center/tasks.types.d.ts.map +0 -1
- package/dist/models/action-center/tasks.types.js +0 -40
- package/dist/models/action-center/tasks.types.js.map +0 -1
- package/dist/models/common/index.d.ts +0 -3
- package/dist/models/common/index.d.ts.map +0 -1
- package/dist/models/common/index.js +0 -3
- package/dist/models/common/index.js.map +0 -1
- package/dist/models/common/request-spec.d.ts +0 -89
- package/dist/models/common/request-spec.d.ts.map +0 -1
- package/dist/models/common/request-spec.js +0 -2
- package/dist/models/common/request-spec.js.map +0 -1
- package/dist/models/common/types.d.ts +0 -43
- package/dist/models/common/types.d.ts.map +0 -1
- package/dist/models/common/types.js +0 -16
- package/dist/models/common/types.js.map +0 -1
- package/dist/models/data-fabric/entities.constants.d.ts +0 -32
- package/dist/models/data-fabric/entities.constants.d.ts.map +0 -1
- package/dist/models/data-fabric/entities.constants.js +0 -46
- package/dist/models/data-fabric/entities.constants.js.map +0 -1
- package/dist/models/data-fabric/entities.internal-types.d.ts +0 -12
- package/dist/models/data-fabric/entities.internal-types.d.ts.map +0 -1
- package/dist/models/data-fabric/entities.internal-types.js +0 -2
- package/dist/models/data-fabric/entities.internal-types.js.map +0 -1
- package/dist/models/data-fabric/entities.models.d.ts +0 -213
- package/dist/models/data-fabric/entities.models.d.ts.map +0 -1
- package/dist/models/data-fabric/entities.models.js +0 -43
- package/dist/models/data-fabric/entities.models.js.map +0 -1
- package/dist/models/data-fabric/entities.types.d.ts +0 -264
- package/dist/models/data-fabric/entities.types.d.ts.map +0 -1
- package/dist/models/data-fabric/entities.types.js +0 -63
- package/dist/models/data-fabric/entities.types.js.map +0 -1
- package/dist/models/data-fabric/index.d.ts +0 -3
- package/dist/models/data-fabric/index.d.ts.map +0 -1
- package/dist/models/data-fabric/index.js +0 -3
- package/dist/models/data-fabric/index.js.map +0 -1
- package/dist/models/index.d.ts +0 -6
- package/dist/models/index.d.ts.map +0 -1
- package/dist/models/index.js +0 -11
- package/dist/models/index.js.map +0 -1
- package/dist/models/maestro/index.d.ts +0 -5
- package/dist/models/maestro/index.d.ts.map +0 -1
- package/dist/models/maestro/index.js +0 -8
- package/dist/models/maestro/index.js.map +0 -1
- package/dist/models/maestro/process-instances.constants.d.ts +0 -13
- package/dist/models/maestro/process-instances.constants.d.ts.map +0 -1
- package/dist/models/maestro/process-instances.constants.js +0 -17
- package/dist/models/maestro/process-instances.constants.js.map +0 -1
- package/dist/models/maestro/process-instances.models.d.ts +0 -210
- package/dist/models/maestro/process-instances.models.d.ts.map +0 -1
- package/dist/models/maestro/process-instances.models.js +0 -38
- package/dist/models/maestro/process-instances.models.js.map +0 -1
- package/dist/models/maestro/process-instances.types.d.ts +0 -78
- package/dist/models/maestro/process-instances.types.d.ts.map +0 -1
- package/dist/models/maestro/process-instances.types.js +0 -6
- package/dist/models/maestro/process-instances.types.js.map +0 -1
- package/dist/models/maestro/processes.models.d.ts +0 -31
- package/dist/models/maestro/processes.models.d.ts.map +0 -1
- package/dist/models/maestro/processes.models.js +0 -6
- package/dist/models/maestro/processes.models.js.map +0 -1
- package/dist/models/maestro/processes.types.d.ts +0 -42
- package/dist/models/maestro/processes.types.d.ts.map +0 -1
- package/dist/models/maestro/processes.types.js +0 -6
- package/dist/models/maestro/processes.types.js.map +0 -1
- package/dist/models/orchestrator/assets.constants.d.ts +0 -7
- package/dist/models/orchestrator/assets.constants.d.ts.map +0 -1
- package/dist/models/orchestrator/assets.constants.js +0 -8
- package/dist/models/orchestrator/assets.constants.js.map +0 -1
- package/dist/models/orchestrator/assets.models.d.ts +0 -55
- package/dist/models/orchestrator/assets.models.d.ts.map +0 -1
- package/dist/models/orchestrator/assets.models.js +0 -2
- package/dist/models/orchestrator/assets.models.js.map +0 -1
- package/dist/models/orchestrator/assets.types.d.ts +0 -65
- package/dist/models/orchestrator/assets.types.d.ts.map +0 -1
- package/dist/models/orchestrator/assets.types.js +0 -24
- package/dist/models/orchestrator/assets.types.js.map +0 -1
- package/dist/models/orchestrator/buckets.constants.d.ts +0 -7
- package/dist/models/orchestrator/buckets.constants.d.ts.map +0 -1
- package/dist/models/orchestrator/buckets.constants.js +0 -9
- package/dist/models/orchestrator/buckets.constants.js.map +0 -1
- package/dist/models/orchestrator/buckets.models.d.ts +0 -144
- package/dist/models/orchestrator/buckets.models.d.ts.map +0 -1
- package/dist/models/orchestrator/buckets.models.js +0 -2
- package/dist/models/orchestrator/buckets.models.js.map +0 -1
- package/dist/models/orchestrator/buckets.types.d.ts +0 -176
- package/dist/models/orchestrator/buckets.types.d.ts.map +0 -1
- package/dist/models/orchestrator/buckets.types.js +0 -8
- package/dist/models/orchestrator/buckets.types.js.map +0 -1
- package/dist/models/orchestrator/index.d.ts +0 -9
- package/dist/models/orchestrator/index.d.ts.map +0 -1
- package/dist/models/orchestrator/index.js +0 -13
- package/dist/models/orchestrator/index.js.map +0 -1
- package/dist/models/orchestrator/processes.constants.d.ts +0 -7
- package/dist/models/orchestrator/processes.constants.d.ts.map +0 -1
- package/dist/models/orchestrator/processes.constants.js +0 -17
- package/dist/models/orchestrator/processes.constants.js.map +0 -1
- package/dist/models/orchestrator/processes.models.d.ts +0 -87
- package/dist/models/orchestrator/processes.models.d.ts.map +0 -1
- package/dist/models/orchestrator/processes.models.js +0 -2
- package/dist/models/orchestrator/processes.models.js.map +0 -1
- package/dist/models/orchestrator/processes.types.d.ts +0 -293
- package/dist/models/orchestrator/processes.types.d.ts.map +0 -1
- package/dist/models/orchestrator/processes.types.js +0 -110
- package/dist/models/orchestrator/processes.types.js.map +0 -1
- package/dist/models/orchestrator/queues.constants.d.ts +0 -7
- package/dist/models/orchestrator/queues.constants.d.ts.map +0 -1
- package/dist/models/orchestrator/queues.constants.js +0 -9
- package/dist/models/orchestrator/queues.constants.js.map +0 -1
- package/dist/models/orchestrator/queues.models.d.ts +0 -61
- package/dist/models/orchestrator/queues.models.d.ts.map +0 -1
- package/dist/models/orchestrator/queues.models.js +0 -2
- package/dist/models/orchestrator/queues.models.js.map +0 -1
- package/dist/models/orchestrator/queues.types.d.ts +0 -39
- package/dist/models/orchestrator/queues.types.d.ts.map +0 -1
- package/dist/models/orchestrator/queues.types.js +0 -2
- package/dist/models/orchestrator/queues.types.js.map +0 -1
- package/dist/services/action-center/index.d.ts +0 -2
- package/dist/services/action-center/index.d.ts.map +0 -1
- package/dist/services/action-center/index.js +0 -2
- package/dist/services/action-center/index.js.map +0 -1
- package/dist/services/action-center/tasks.d.ts +0 -254
- package/dist/services/action-center/tasks.d.ts.map +0 -1
- package/dist/services/action-center/tasks.js +0 -446
- package/dist/services/action-center/tasks.js.map +0 -1
- package/dist/services/base.d.ts +0 -49
- package/dist/services/base.d.ts.map +0 -1
- package/dist/services/base.js +0 -183
- package/dist/services/base.js.map +0 -1
- package/dist/services/data-fabric/entities.d.ts +0 -180
- package/dist/services/data-fabric/entities.d.ts.map +0 -1
- package/dist/services/data-fabric/entities.js +0 -326
- package/dist/services/data-fabric/entities.js.map +0 -1
- package/dist/services/data-fabric/index.d.ts +0 -2
- package/dist/services/data-fabric/index.d.ts.map +0 -1
- package/dist/services/data-fabric/index.js +0 -2
- package/dist/services/data-fabric/index.js.map +0 -1
- package/dist/services/folder-scoped.d.ts +0 -21
- package/dist/services/folder-scoped.d.ts.map +0 -1
- package/dist/services/folder-scoped.js +0 -36
- package/dist/services/folder-scoped.js.map +0 -1
- package/dist/services/index.d.ts +0 -6
- package/dist/services/index.d.ts.map +0 -1
- package/dist/services/index.js +0 -6
- package/dist/services/index.js.map +0 -1
- package/dist/services/maestro/index.d.ts +0 -3
- package/dist/services/maestro/index.d.ts.map +0 -1
- package/dist/services/maestro/index.js +0 -3
- package/dist/services/maestro/index.js.map +0 -1
- package/dist/services/maestro/maestro-processes.d.ts +0 -35
- package/dist/services/maestro/maestro-processes.d.ts.map +0 -1
- package/dist/services/maestro/maestro-processes.js +0 -47
- package/dist/services/maestro/maestro-processes.js.map +0 -1
- package/dist/services/maestro/process-instances.d.ts +0 -96
- package/dist/services/maestro/process-instances.d.ts.map +0 -1
- package/dist/services/maestro/process-instances.js +0 -190
- package/dist/services/maestro/process-instances.js.map +0 -1
- package/dist/services/orchestrator/assets.d.ts +0 -63
- package/dist/services/orchestrator/assets.d.ts.map +0 -1
- package/dist/services/orchestrator/assets.js +0 -110
- package/dist/services/orchestrator/assets.js.map +0 -1
- package/dist/services/orchestrator/buckets.d.ts +0 -186
- package/dist/services/orchestrator/buckets.d.ts.map +0 -1
- package/dist/services/orchestrator/buckets.js +0 -436
- package/dist/services/orchestrator/buckets.js.map +0 -1
- package/dist/services/orchestrator/index.d.ts +0 -5
- package/dist/services/orchestrator/index.d.ts.map +0 -1
- package/dist/services/orchestrator/index.js +0 -5
- package/dist/services/orchestrator/index.js.map +0 -1
- package/dist/services/orchestrator/processes.d.ts +0 -96
- package/dist/services/orchestrator/processes.d.ts.map +0 -1
- package/dist/services/orchestrator/processes.js +0 -172
- package/dist/services/orchestrator/processes.js.map +0 -1
- package/dist/services/orchestrator/queues.d.ts +0 -72
- package/dist/services/orchestrator/queues.d.ts.map +0 -1
- package/dist/services/orchestrator/queues.js +0 -117
- package/dist/services/orchestrator/queues.js.map +0 -1
- package/dist/uipath.d.ts +0 -65
- package/dist/uipath.d.ts.map +0 -1
- package/dist/uipath.js +0 -146
- package/dist/uipath.js.map +0 -1
- package/dist/utils/constants/common.d.ts +0 -84
- package/dist/utils/constants/common.d.ts.map +0 -1
- package/dist/utils/constants/common.js +0 -84
- package/dist/utils/constants/common.js.map +0 -1
- package/dist/utils/constants/endpoints.d.ts +0 -96
- package/dist/utils/constants/endpoints.d.ts.map +0 -1
- package/dist/utils/constants/endpoints.js +0 -96
- package/dist/utils/constants/endpoints.js.map +0 -1
- package/dist/utils/constants/headers.d.ts +0 -27
- package/dist/utils/constants/headers.d.ts.map +0 -1
- package/dist/utils/constants/headers.js +0 -27
- package/dist/utils/constants/headers.js.map +0 -1
- package/dist/utils/encoding/base64.d.ts +0 -13
- package/dist/utils/encoding/base64.d.ts.map +0 -1
- package/dist/utils/encoding/base64.js +0 -49
- package/dist/utils/encoding/base64.js.map +0 -1
- package/dist/utils/encoding/index.d.ts +0 -2
- package/dist/utils/encoding/index.d.ts.map +0 -1
- package/dist/utils/encoding/index.js +0 -2
- package/dist/utils/encoding/index.js.map +0 -1
- package/dist/utils/http/headers.d.ts +0 -37
- package/dist/utils/http/headers.d.ts.map +0 -1
- package/dist/utils/http/headers.js +0 -51
- package/dist/utils/http/headers.js.map +0 -1
- package/dist/utils/http/params.d.ts +0 -27
- package/dist/utils/http/params.d.ts.map +0 -1
- package/dist/utils/http/params.js +0 -35
- package/dist/utils/http/params.js.map +0 -1
- package/dist/utils/object.d.ts +0 -32
- package/dist/utils/object.d.ts.map +0 -1
- package/dist/utils/object.js +0 -50
- package/dist/utils/object.js.map +0 -1
- package/dist/utils/pagination/constants.d.ts +0 -18
- package/dist/utils/pagination/constants.d.ts.map +0 -1
- package/dist/utils/pagination/constants.js +0 -23
- package/dist/utils/pagination/constants.js.map +0 -1
- package/dist/utils/pagination/helpers.d.ts +0 -62
- package/dist/utils/pagination/helpers.d.ts.map +0 -1
- package/dist/utils/pagination/helpers.js +0 -255
- package/dist/utils/pagination/helpers.js.map +0 -1
- package/dist/utils/pagination/index.d.ts +0 -3
- package/dist/utils/pagination/index.d.ts.map +0 -1
- package/dist/utils/pagination/index.js +0 -3
- package/dist/utils/pagination/index.js.map +0 -1
- package/dist/utils/pagination/internal-types.d.ts +0 -184
- package/dist/utils/pagination/internal-types.d.ts.map +0 -1
- package/dist/utils/pagination/internal-types.js +0 -9
- package/dist/utils/pagination/internal-types.js.map +0 -1
- package/dist/utils/pagination/pagination-manager.d.ts +0 -17
- package/dist/utils/pagination/pagination-manager.d.ts.map +0 -1
- package/dist/utils/pagination/pagination-manager.js +0 -77
- package/dist/utils/pagination/pagination-manager.js.map +0 -1
- package/dist/utils/pagination/types.d.ts +0 -68
- package/dist/utils/pagination/types.d.ts.map +0 -1
- package/dist/utils/pagination/types.js +0 -2
- package/dist/utils/pagination/types.js.map +0 -1
- package/dist/utils/platform.d.ts +0 -8
- package/dist/utils/platform.d.ts.map +0 -1
- package/dist/utils/platform.js +0 -8
- package/dist/utils/platform.js.map +0 -1
- package/dist/utils/transform.d.ts +0 -240
- package/dist/utils/transform.d.ts.map +0 -1
- package/dist/utils/transform.js +0 -334
- package/dist/utils/transform.js.map +0 -1
|
@@ -1,326 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { BaseService } from '../base';
|
|
8
|
-
import { createEntityWithMethods } from '../../models/data-fabric/entities.models';
|
|
9
|
-
import { PaginationType } from '../../utils/pagination/internal-types';
|
|
10
|
-
import { PaginationHelpers } from '../../utils/pagination/helpers';
|
|
11
|
-
import { ENTITY_PAGINATION, ENTITY_OFFSET_PARAMS } from '../../utils/constants/common';
|
|
12
|
-
import { DATA_FABRIC_ENDPOINTS } from '../../utils/constants/endpoints';
|
|
13
|
-
import { createParams } from '../../utils/http/params';
|
|
14
|
-
import { pascalToCamelCaseKeys, transformData } from '../../utils/transform';
|
|
15
|
-
import { EntityFieldTypeMap, EntityMap } from '../../models/data-fabric/entities.constants';
|
|
16
|
-
import { track } from '../../core/telemetry';
|
|
17
|
-
/**
|
|
18
|
-
* Service for interacting with the Data Fabric Entity API
|
|
19
|
-
*/
|
|
20
|
-
export class EntityService extends BaseService {
|
|
21
|
-
/**
|
|
22
|
-
* @hideconstructor
|
|
23
|
-
*/
|
|
24
|
-
constructor(config, executionContext, tokenManager) {
|
|
25
|
-
super(config, executionContext, tokenManager);
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Gets entity metadata by entity ID with attached operation methods
|
|
29
|
-
*
|
|
30
|
-
* @param id - UUID of the entity
|
|
31
|
-
* @returns Promise resolving to entity metadata with schema information and operation methods
|
|
32
|
-
*
|
|
33
|
-
* @example
|
|
34
|
-
* ```typescript
|
|
35
|
-
* // Get entity metadata with methods
|
|
36
|
-
* const entity = await sdk.entities.getById("<entityId>");
|
|
37
|
-
*
|
|
38
|
-
* // Call operations directly on the entity
|
|
39
|
-
* const records = await entity.getRecords();
|
|
40
|
-
*
|
|
41
|
-
* const insertResult = await entity.insert([
|
|
42
|
-
* { name: "John", age: 30 }
|
|
43
|
-
* ]);
|
|
44
|
-
* ```
|
|
45
|
-
*/
|
|
46
|
-
async getById(id) {
|
|
47
|
-
// Get entity metadata
|
|
48
|
-
const response = await this.get(DATA_FABRIC_ENDPOINTS.ENTITY.GET_BY_ID(id));
|
|
49
|
-
// Apply EntityMap transformations
|
|
50
|
-
const metadata = transformData(response.data, EntityMap);
|
|
51
|
-
// Transform metadata with field mappers
|
|
52
|
-
this.applyFieldMappings(metadata);
|
|
53
|
-
// Return the entity metadata with methods attached
|
|
54
|
-
return createEntityWithMethods(metadata, this);
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Orchestrates all field mapping transformations
|
|
58
|
-
*
|
|
59
|
-
* @param metadata - Entity metadata to transform
|
|
60
|
-
* @private
|
|
61
|
-
*/
|
|
62
|
-
applyFieldMappings(metadata) {
|
|
63
|
-
this.mapFieldTypes(metadata);
|
|
64
|
-
this.mapExternalFields(metadata);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* Maps SQL field types to friendly EntityFieldTypes
|
|
68
|
-
*
|
|
69
|
-
* @param metadata - Entity metadata with fields
|
|
70
|
-
* @private
|
|
71
|
-
*/
|
|
72
|
-
mapFieldTypes(metadata) {
|
|
73
|
-
if (!metadata.fields?.length)
|
|
74
|
-
return;
|
|
75
|
-
metadata.fields = metadata.fields.map(field => {
|
|
76
|
-
// Rename sqlType to fieldDataType
|
|
77
|
-
let transformedField = transformData(field, EntityMap);
|
|
78
|
-
// Map SQL field type to friendly name
|
|
79
|
-
if (transformedField.fieldDataType?.name) {
|
|
80
|
-
const sqlTypeName = transformedField.fieldDataType.name;
|
|
81
|
-
if (EntityFieldTypeMap[sqlTypeName]) {
|
|
82
|
-
transformedField.fieldDataType.name = EntityFieldTypeMap[sqlTypeName];
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
this.transformNestedReferences(transformedField);
|
|
86
|
-
return transformedField;
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Transforms nested reference objects in field metadata
|
|
91
|
-
*/
|
|
92
|
-
transformNestedReferences(field) {
|
|
93
|
-
if (field.referenceEntity) {
|
|
94
|
-
field.referenceEntity = transformData(field.referenceEntity, EntityMap);
|
|
95
|
-
}
|
|
96
|
-
if (field.referenceChoiceSet) {
|
|
97
|
-
field.referenceChoiceSet = transformData(field.referenceChoiceSet, EntityMap);
|
|
98
|
-
}
|
|
99
|
-
if (field.referenceField?.definition) {
|
|
100
|
-
field.referenceField.definition = transformData(field.referenceField.definition, EntityMap);
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
/**
|
|
104
|
-
* Maps external field names to consistent naming
|
|
105
|
-
*
|
|
106
|
-
* @param metadata - Entity metadata with externalFields
|
|
107
|
-
* @private
|
|
108
|
-
*/
|
|
109
|
-
mapExternalFields(metadata) {
|
|
110
|
-
if (!metadata.externalFields?.length)
|
|
111
|
-
return;
|
|
112
|
-
metadata.externalFields = metadata.externalFields.map(externalSource => {
|
|
113
|
-
if (externalSource.fields?.length) {
|
|
114
|
-
externalSource.fields = externalSource.fields.map(field => {
|
|
115
|
-
const transformedField = transformData(field, EntityMap);
|
|
116
|
-
if (transformedField.fieldMetaData) {
|
|
117
|
-
transformedField.fieldMetaData = transformData(transformedField.fieldMetaData, EntityMap);
|
|
118
|
-
this.transformNestedReferences(transformedField.fieldMetaData);
|
|
119
|
-
}
|
|
120
|
-
return transformedField;
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
return externalSource;
|
|
124
|
-
});
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Gets entity records by entity ID
|
|
128
|
-
*
|
|
129
|
-
* @param entityId - UUID of the entity
|
|
130
|
-
* @param options - Query options including expansionLevel and pagination options
|
|
131
|
-
* @returns Promise resolving to an array of entity records or paginated response
|
|
132
|
-
*
|
|
133
|
-
* @example
|
|
134
|
-
* ```typescript
|
|
135
|
-
* // Basic usage (non-paginated)
|
|
136
|
-
* const records = await sdk.entities.getRecordsById(<entityId>);
|
|
137
|
-
*
|
|
138
|
-
* // With expansion level
|
|
139
|
-
* const records = await sdk.entities.getRecordsById(<entityId>, {
|
|
140
|
-
* expansionLevel: 1
|
|
141
|
-
* });
|
|
142
|
-
*
|
|
143
|
-
* // With pagination
|
|
144
|
-
* const paginatedResponse = await sdk.entities.getRecordsById(<entityId>, {
|
|
145
|
-
* pageSize: 50,
|
|
146
|
-
* expansionLevel: 1
|
|
147
|
-
* });
|
|
148
|
-
*
|
|
149
|
-
* // Navigate to next page
|
|
150
|
-
* const nextPage = await sdk.entities.getRecordsById(<entityId>, {
|
|
151
|
-
* cursor: paginatedResponse.nextCursor,
|
|
152
|
-
* expansionLevel: 1
|
|
153
|
-
* });
|
|
154
|
-
* ```
|
|
155
|
-
*/
|
|
156
|
-
async getRecordsById(entityId, options) {
|
|
157
|
-
return PaginationHelpers.getAll({
|
|
158
|
-
serviceAccess: this.createPaginationServiceAccess(),
|
|
159
|
-
getEndpoint: () => DATA_FABRIC_ENDPOINTS.ENTITY.GET_ENTITY_RECORDS(entityId),
|
|
160
|
-
transformFn: (item) => pascalToCamelCaseKeys(item),
|
|
161
|
-
pagination: {
|
|
162
|
-
paginationType: PaginationType.OFFSET,
|
|
163
|
-
itemsField: ENTITY_PAGINATION.ITEMS_FIELD,
|
|
164
|
-
totalCountField: ENTITY_PAGINATION.TOTAL_COUNT_FIELD,
|
|
165
|
-
paginationParams: {
|
|
166
|
-
pageSizeParam: ENTITY_OFFSET_PARAMS.PAGE_SIZE_PARAM,
|
|
167
|
-
offsetParam: ENTITY_OFFSET_PARAMS.OFFSET_PARAM,
|
|
168
|
-
countParam: ENTITY_OFFSET_PARAMS.COUNT_PARAM
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
excludeFromPrefix: ['expansionLevel'] // Don't add ODATA prefix to expansionLevel
|
|
172
|
-
}, options);
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Inserts data into an entity by entity ID
|
|
176
|
-
*
|
|
177
|
-
* @param entityId - UUID of the entity
|
|
178
|
-
* @param data - Array of records to insert
|
|
179
|
-
* @param options - Insert options
|
|
180
|
-
* @returns Promise resolving to insert response
|
|
181
|
-
*
|
|
182
|
-
* @example
|
|
183
|
-
* ```typescript
|
|
184
|
-
* // Basic usage
|
|
185
|
-
* const result = await sdk.entities.insertById(<entityId>, [
|
|
186
|
-
* { name: "John", age: 30 },
|
|
187
|
-
* { name: "Jane", age: 25 }
|
|
188
|
-
* ]);
|
|
189
|
-
*
|
|
190
|
-
* // With options
|
|
191
|
-
* const result = await sdk.entities.insertById(<entityId>, [
|
|
192
|
-
* { name: "John", age: 30 },
|
|
193
|
-
* { name: "Jane", age: 25 }
|
|
194
|
-
* ], {
|
|
195
|
-
* expansionLevel: 1,
|
|
196
|
-
* failOnFirst: true
|
|
197
|
-
* });
|
|
198
|
-
* ```
|
|
199
|
-
*/
|
|
200
|
-
async insertById(id, data, options = {}) {
|
|
201
|
-
const params = createParams({
|
|
202
|
-
expansionLevel: options.expansionLevel,
|
|
203
|
-
failOnFirst: options.failOnFirst
|
|
204
|
-
});
|
|
205
|
-
const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.INSERT_BY_ID(id), data, {
|
|
206
|
-
params,
|
|
207
|
-
...options
|
|
208
|
-
});
|
|
209
|
-
// Convert PascalCase response to camelCase
|
|
210
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
211
|
-
return camelResponse;
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* Updates data in an entity by entity ID
|
|
215
|
-
*
|
|
216
|
-
* @param entityId - UUID of the entity
|
|
217
|
-
* @param data - Array of records to update. Each record MUST contain the record Id,
|
|
218
|
-
* otherwise the update will fail.
|
|
219
|
-
* @param options - Update options
|
|
220
|
-
* @returns Promise resolving to update response
|
|
221
|
-
*
|
|
222
|
-
* @example
|
|
223
|
-
* ```typescript
|
|
224
|
-
* // Basic usage
|
|
225
|
-
* const result = await sdk.entities.updateById(<entityId>, [
|
|
226
|
-
* { Id: "123", name: "John Updated", age: 31 },
|
|
227
|
-
* { Id: "456", name: "Jane Updated", age: 26 }
|
|
228
|
-
* ]);
|
|
229
|
-
*
|
|
230
|
-
* // With options
|
|
231
|
-
* const result = await sdk.entities.updateById(<entityId>, [
|
|
232
|
-
* { Id: "123", name: "John Updated", age: 31 },
|
|
233
|
-
* { Id: "456", name: "Jane Updated", age: 26 }
|
|
234
|
-
* ], {
|
|
235
|
-
* expansionLevel: 1,
|
|
236
|
-
* failOnFirst: true
|
|
237
|
-
* });
|
|
238
|
-
* ```
|
|
239
|
-
*/
|
|
240
|
-
async updateById(id, data, options = {}) {
|
|
241
|
-
const params = createParams({
|
|
242
|
-
expansionLevel: options.expansionLevel,
|
|
243
|
-
failOnFirst: options.failOnFirst
|
|
244
|
-
});
|
|
245
|
-
const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.UPDATE_BY_ID(id), data, {
|
|
246
|
-
params,
|
|
247
|
-
...options
|
|
248
|
-
});
|
|
249
|
-
// Convert PascalCase response to camelCase
|
|
250
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
251
|
-
return camelResponse;
|
|
252
|
-
}
|
|
253
|
-
/**
|
|
254
|
-
* Deletes data from an entity by entity ID
|
|
255
|
-
*
|
|
256
|
-
* @param entityId - UUID of the entity
|
|
257
|
-
* @param recordIds - Array of record UUIDs to delete
|
|
258
|
-
* @param options - Delete options
|
|
259
|
-
* @returns Promise resolving to delete response
|
|
260
|
-
*
|
|
261
|
-
* @example
|
|
262
|
-
* ```typescript
|
|
263
|
-
* // Basic usage
|
|
264
|
-
* const result = await sdk.entities.deleteById(<entityId>, [
|
|
265
|
-
* <recordId-1>, <recordId-2>
|
|
266
|
-
* ]);
|
|
267
|
-
* ```
|
|
268
|
-
*/
|
|
269
|
-
async deleteById(id, recordIds, options = {}) {
|
|
270
|
-
const params = createParams({
|
|
271
|
-
failOnFirst: options.failOnFirst
|
|
272
|
-
});
|
|
273
|
-
const response = await this.post(DATA_FABRIC_ENDPOINTS.ENTITY.DELETE_BY_ID(id), recordIds, {
|
|
274
|
-
params,
|
|
275
|
-
...options
|
|
276
|
-
});
|
|
277
|
-
// Convert PascalCase response to camelCase
|
|
278
|
-
const camelResponse = pascalToCamelCaseKeys(response.data);
|
|
279
|
-
return camelResponse;
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* Gets all entities in the system
|
|
283
|
-
*
|
|
284
|
-
* @returns Promise resolving to an array of entity metadata
|
|
285
|
-
*
|
|
286
|
-
* @example
|
|
287
|
-
* ```typescript
|
|
288
|
-
* // Get all entities
|
|
289
|
-
* const entities = await sdk.entities.getAll();
|
|
290
|
-
*
|
|
291
|
-
* // Call operations on an entity
|
|
292
|
-
* const records = await entities[0].getRecords();
|
|
293
|
-
* ```
|
|
294
|
-
*/
|
|
295
|
-
async getAll() {
|
|
296
|
-
const response = await this.get(DATA_FABRIC_ENDPOINTS.ENTITY.GET_ALL);
|
|
297
|
-
// Apply transformations
|
|
298
|
-
const entities = response.data.map(entity => {
|
|
299
|
-
// Transform each entity
|
|
300
|
-
const metadata = transformData(entity, EntityMap);
|
|
301
|
-
this.applyFieldMappings(metadata);
|
|
302
|
-
// Attach entity methods
|
|
303
|
-
return createEntityWithMethods(metadata, this);
|
|
304
|
-
});
|
|
305
|
-
return entities;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
__decorate([
|
|
309
|
-
track('GetById')
|
|
310
|
-
], EntityService.prototype, "getById", null);
|
|
311
|
-
__decorate([
|
|
312
|
-
track('GetRecordsById')
|
|
313
|
-
], EntityService.prototype, "getRecordsById", null);
|
|
314
|
-
__decorate([
|
|
315
|
-
track('InsertById')
|
|
316
|
-
], EntityService.prototype, "insertById", null);
|
|
317
|
-
__decorate([
|
|
318
|
-
track('UpdateById')
|
|
319
|
-
], EntityService.prototype, "updateById", null);
|
|
320
|
-
__decorate([
|
|
321
|
-
track('DeleteById')
|
|
322
|
-
], EntityService.prototype, "deleteById", null);
|
|
323
|
-
__decorate([
|
|
324
|
-
track('GetAll')
|
|
325
|
-
], EntityService.prototype, "getAll", null);
|
|
326
|
-
//# sourceMappingURL=entities.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"entities.js","sourceRoot":"","sources":["../../../src/services/data-fabric/entities.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC,OAAO,EAAyC,uBAAuB,EAAE,MAAM,0CAA0C,CAAC;AAc1H,OAAO,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACvF,OAAO,EAAE,qB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"","sources":["../../../src/services/data-fabric/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/data-fabric/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { BaseService } from './base';
|
|
2
|
-
import { Config } from '../core/config/config';
|
|
3
|
-
import { ExecutionContext } from '../core/context/execution';
|
|
4
|
-
import { TokenManager } from '../core/auth/token-manager';
|
|
5
|
-
/**
|
|
6
|
-
* Base service for services that need folder-specific functionality
|
|
7
|
-
*/
|
|
8
|
-
export declare class FolderScopedService extends BaseService {
|
|
9
|
-
constructor(config: Config, executionContext: ExecutionContext, tokenManager: TokenManager);
|
|
10
|
-
/**
|
|
11
|
-
* Gets resources in a folder with optional query parameters
|
|
12
|
-
*
|
|
13
|
-
* @param endpoint - API endpoint to call
|
|
14
|
-
* @param folderId - required folder ID
|
|
15
|
-
* @param options - Query options
|
|
16
|
-
* @param transformFn - Optional function to transform the response data
|
|
17
|
-
* @returns Promise resolving to an array of resources
|
|
18
|
-
*/
|
|
19
|
-
protected _getByFolder<T, R = T>(endpoint: string, folderId: number, options?: Record<string, any>, transformFn?: (item: T) => R): Promise<R[]>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=folder-scoped.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"folder-scoped.d.ts","sourceRoot":"","sources":["../../src/services/folder-scoped.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAC;AAC/C,OAAO,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAO1D;;GAEG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;gBACtC,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY;IAI1F;;;;;;;;OAQG;cACa,YAAY,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EACnC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAM,EACjC,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAC3B,OAAO,CAAC,CAAC,EAAE,CAAC;CAoBhB"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { BaseService } from './base';
|
|
2
|
-
import { createHeaders } from '../utils/http/headers';
|
|
3
|
-
import { FOLDER_ID } from '../utils/constants/headers';
|
|
4
|
-
import { ODATA_PREFIX } from '../utils/constants/common';
|
|
5
|
-
import { addPrefixToKeys } from '../utils/transform';
|
|
6
|
-
/**
|
|
7
|
-
* Base service for services that need folder-specific functionality
|
|
8
|
-
*/
|
|
9
|
-
export class FolderScopedService extends BaseService {
|
|
10
|
-
constructor(config, executionContext, tokenManager) {
|
|
11
|
-
super(config, executionContext, tokenManager);
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Gets resources in a folder with optional query parameters
|
|
15
|
-
*
|
|
16
|
-
* @param endpoint - API endpoint to call
|
|
17
|
-
* @param folderId - required folder ID
|
|
18
|
-
* @param options - Query options
|
|
19
|
-
* @param transformFn - Optional function to transform the response data
|
|
20
|
-
* @returns Promise resolving to an array of resources
|
|
21
|
-
*/
|
|
22
|
-
async _getByFolder(endpoint, folderId, options = {}, transformFn) {
|
|
23
|
-
const headers = createHeaders({ [FOLDER_ID]: folderId });
|
|
24
|
-
const keysToPrefix = Object.keys(options);
|
|
25
|
-
const apiOptions = addPrefixToKeys(options, ODATA_PREFIX, keysToPrefix);
|
|
26
|
-
const response = await this.get(endpoint, {
|
|
27
|
-
params: apiOptions,
|
|
28
|
-
headers
|
|
29
|
-
});
|
|
30
|
-
if (transformFn) {
|
|
31
|
-
return response.data?.value.map(transformFn);
|
|
32
|
-
}
|
|
33
|
-
return response.data?.value;
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
//# sourceMappingURL=folder-scoped.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"folder-scoped.js","sourceRoot":"","sources":["../../src/services/folder-scoped.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,QAAQ,CAAC;AAKrC,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAErD;;GAEG;AACH,MAAM,OAAO,mBAAoB,SAAQ,WAAW;IAClD,YAAY,MAAc,EAAE,gBAAkC,EAAE,YAA0B;QACxF,KAAK,CAAC,MAAM,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;;OAQG;IACO,KAAK,CAAC,YAAY,CAC1B,QAAgB,EAChB,QAAgB,EAChB,UAA+B,EAAE,EACjC,WAA4B;QAE5B,MAAM,OAAO,GAAG,aAAa,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;QAEzD,MAAM,YAAY,GAAG,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1C,MAAM,UAAU,GAAG,eAAe,CAAC,OAAO,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC;QAExE,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAC7B,QAAQ,EACR;YACE,MAAM,EAAE,UAAU;YAClB,OAAO;SACR,CACF,CAAC;QAEF,IAAI,WAAW,EAAE,CAAC;YAChB,OAAO,QAAQ,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,QAAQ,CAAC,IAAI,EAAE,KAAuB,CAAC;IAChD,CAAC;CACF"}
|
package/dist/services/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
package/dist/services/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/maestro/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/services/maestro/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC"}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { MaestroProcessGetAllResponse } from '../../models/maestro';
|
|
2
|
-
import { BaseService } from '../base';
|
|
3
|
-
import { Config } from '../../core/config/config';
|
|
4
|
-
import { ExecutionContext } from '../../core/context/execution';
|
|
5
|
-
import { TokenManager } from '../../core/auth/token-manager';
|
|
6
|
-
import type { MaestroProcessesServiceModel } from '../../models/maestro/processes.models';
|
|
7
|
-
/**
|
|
8
|
-
* Service for interacting with Maestro Processes
|
|
9
|
-
*/
|
|
10
|
-
export declare class MaestroProcessesService extends BaseService implements MaestroProcessesServiceModel {
|
|
11
|
-
/**
|
|
12
|
-
* @hideconstructor
|
|
13
|
-
*/
|
|
14
|
-
constructor(config: Config, executionContext: ExecutionContext, tokenManager: TokenManager);
|
|
15
|
-
/**
|
|
16
|
-
* Get all processes with their instance statistics
|
|
17
|
-
* @returns Promise resolving to array of MaestroProcess objects
|
|
18
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```typescript
|
|
21
|
-
* // Get all processes
|
|
22
|
-
* const processes = await sdk.maestro.processes.getAll();
|
|
23
|
-
*
|
|
24
|
-
* // Access process information
|
|
25
|
-
* for (const process of processes) {
|
|
26
|
-
* console.log(`Process: ${process.processKey}`);
|
|
27
|
-
* console.log(`Running instances: ${process.runningCount}`);
|
|
28
|
-
* console.log(`Faulted instances: ${process.faultedCount}`);
|
|
29
|
-
* }
|
|
30
|
-
*
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
getAll(): Promise<MaestroProcessGetAllResponse[]>;
|
|
34
|
-
}
|
|
35
|
-
//# sourceMappingURL=maestro-processes.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maestro-processes.d.ts","sourceRoot":"","sources":["../../../src/services/maestro/maestro-processes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE7D,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AAG1F;;GAEG;AACH,qBAAa,uBAAwB,SAAQ,WAAY,YAAW,4BAA4B;IAC9F;;OAEG;gBACS,MAAM,EAAE,MAAM,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,EAAE,YAAY;IAI1F;;;;;;;;;;;;;;;;;OAiBG;IAEG,MAAM,IAAI,OAAO,CAAC,4BAA4B,EAAE,CAAC;CAMxD"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
2
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
3
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
4
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
5
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
6
|
-
};
|
|
7
|
-
import { BaseService } from '../base';
|
|
8
|
-
import { MAESTRO_ENDPOINTS } from '../../utils/constants/endpoints';
|
|
9
|
-
import { track } from '../../core/telemetry';
|
|
10
|
-
/**
|
|
11
|
-
* Service for interacting with Maestro Processes
|
|
12
|
-
*/
|
|
13
|
-
export class MaestroProcessesService extends BaseService {
|
|
14
|
-
/**
|
|
15
|
-
* @hideconstructor
|
|
16
|
-
*/
|
|
17
|
-
constructor(config, executionContext, tokenManager) {
|
|
18
|
-
super(config, executionContext, tokenManager);
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Get all processes with their instance statistics
|
|
22
|
-
* @returns Promise resolving to array of MaestroProcess objects
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* // Get all processes
|
|
27
|
-
* const processes = await sdk.maestro.processes.getAll();
|
|
28
|
-
*
|
|
29
|
-
* // Access process information
|
|
30
|
-
* for (const process of processes) {
|
|
31
|
-
* console.log(`Process: ${process.processKey}`);
|
|
32
|
-
* console.log(`Running instances: ${process.runningCount}`);
|
|
33
|
-
* console.log(`Faulted instances: ${process.faultedCount}`);
|
|
34
|
-
* }
|
|
35
|
-
*
|
|
36
|
-
* ```
|
|
37
|
-
*/
|
|
38
|
-
async getAll() {
|
|
39
|
-
const response = await this.get(MAESTRO_ENDPOINTS.PROCESSES.GET_ALL);
|
|
40
|
-
// Return the data directly with null safety
|
|
41
|
-
return response.data || [];
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
__decorate([
|
|
45
|
-
track('GetAll')
|
|
46
|
-
], MaestroProcessesService.prototype, "getAll", null);
|
|
47
|
-
//# sourceMappingURL=maestro-processes.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"maestro-processes.js","sourceRoot":"","sources":["../../../src/services/maestro/maestro-processes.ts"],"names":[],"mappings":";;;;;;AACA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAItC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAC;AAEpE,OAAO,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE7C;;GAEG;AACH,MAAM,OAAO,uBAAwB,SAAQ,WAAW;IACtD;;OAEG;IACH,YAAY,MAAc,EAAE,gBAAkC,EAAE,YAA0B;QACxF,KAAK,CAAC,MAAM,EAAE,gBAAgB,EAAE,YAAY,CAAC,CAAC;IAChD,CAAC;IAED;;;;;;;;;;;;;;;;;OAiBG;IAEG,AAAN,KAAK,CAAC,MAAM;QACV,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,GAAG,CAAiC,iBAAiB,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QAErG,4CAA4C;QAC5C,OAAO,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC;IAC7B,CAAC;CACF;AANO;IADL,KAAK,CAAC,QAAQ,CAAC;qDAMf"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import { BaseService } from '../base';
|
|
2
|
-
import { Config } from '../../core/config/config';
|
|
3
|
-
import { ExecutionContext } from '../../core/context/execution';
|
|
4
|
-
import { TokenManager } from '../../core/auth/token-manager';
|
|
5
|
-
import { ProcessInstanceGetResponse, ProcessInstanceGetAllWithPaginationOptions, ProcessInstanceOperationOptions, ProcessInstanceOperationResponse, ProcessInstanceExecutionHistoryResponse, ProcessInstancesServiceModel } from '../../models/maestro';
|
|
6
|
-
import { OperationResponse } from '../../models/common/types';
|
|
7
|
-
import { BpmnXmlString } from '../../models/maestro/process-instances.types';
|
|
8
|
-
import { PaginatedResponse, NonPaginatedResponse, HasPaginationOptions } from '../../utils/pagination';
|
|
9
|
-
export declare class ProcessInstancesService extends BaseService implements ProcessInstancesServiceModel {
|
|
10
|
-
/**
|
|
11
|
-
* @hideconstructor
|
|
12
|
-
*/
|
|
13
|
-
constructor(config: Config, executionContext: ExecutionContext, tokenManager: TokenManager);
|
|
14
|
-
/**
|
|
15
|
-
* Get all process instances with optional filtering and pagination
|
|
16
|
-
*
|
|
17
|
-
* The method returns either:
|
|
18
|
-
* - A NonPaginatedResponse with items array (when no pagination parameters are provided)
|
|
19
|
-
* - A PaginatedResponse with navigation cursors (when any pagination parameter is provided)
|
|
20
|
-
*
|
|
21
|
-
* @param options Query parameters for filtering instances and pagination
|
|
22
|
-
* @returns Promise resolving to process instances or paginated result
|
|
23
|
-
*
|
|
24
|
-
* @example
|
|
25
|
-
* ```typescript
|
|
26
|
-
* // Get all instances (non-paginated)
|
|
27
|
-
* const instances = await sdk.maestro.processes.instances.getAll();
|
|
28
|
-
*
|
|
29
|
-
* // Cancel faulted instances using methods directly on instances
|
|
30
|
-
* for (const instance of instances.items) {
|
|
31
|
-
* if (instance.latestRunStatus === 'Faulted') {
|
|
32
|
-
* await instance.cancel({ comment: 'Cancelling faulted instance' });
|
|
33
|
-
* }
|
|
34
|
-
* }
|
|
35
|
-
*
|
|
36
|
-
* // With filtering
|
|
37
|
-
* const instances = await sdk.maestro.processes.instances.getAll({
|
|
38
|
-
* processKey: 'MyProcess'
|
|
39
|
-
* });
|
|
40
|
-
*
|
|
41
|
-
* // First page with pagination
|
|
42
|
-
* const page1 = await sdk.maestro.processes.instances.getAll({ pageSize: 10 });
|
|
43
|
-
*
|
|
44
|
-
* // Navigate using cursor
|
|
45
|
-
* if (page1.hasNextPage) {
|
|
46
|
-
* const page2 = await sdk.maestro.processes.instances.getAll({ cursor: page1.nextCursor });
|
|
47
|
-
* }
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
getAll<T extends ProcessInstanceGetAllWithPaginationOptions = ProcessInstanceGetAllWithPaginationOptions>(options?: T): Promise<T extends HasPaginationOptions<T> ? PaginatedResponse<ProcessInstanceGetResponse> : NonPaginatedResponse<ProcessInstanceGetResponse>>;
|
|
51
|
-
/**
|
|
52
|
-
* Get a process instance by ID with operation methods (cancel, pause, resume)
|
|
53
|
-
* @param id The ID of the instance to retrieve
|
|
54
|
-
* @param folderKey The folder key for authorization
|
|
55
|
-
* @returns Promise<ProcessInstanceGetResponse>
|
|
56
|
-
*/
|
|
57
|
-
getById(id: string, folderKey: string): Promise<ProcessInstanceGetResponse>;
|
|
58
|
-
/**
|
|
59
|
-
* Get execution history (spans) for a process instance
|
|
60
|
-
* @param instanceId The ID of the instance to get history for
|
|
61
|
-
* @returns Promise<ProcessInstanceExecutionHistoryResponse[]>
|
|
62
|
-
*/
|
|
63
|
-
getExecutionHistory(instanceId: string): Promise<ProcessInstanceExecutionHistoryResponse[]>;
|
|
64
|
-
/**
|
|
65
|
-
* Get BPMN XML file for a process instance
|
|
66
|
-
* @param instanceId The ID of the instance to get BPMN for
|
|
67
|
-
* @param folderKey The folder key for authorization
|
|
68
|
-
* @returns Promise<BpmnXmlString> The BPMN XML contents as a string
|
|
69
|
-
*/
|
|
70
|
-
getBpmn(instanceId: string, folderKey: string): Promise<BpmnXmlString>;
|
|
71
|
-
/**
|
|
72
|
-
* Cancel a process instance
|
|
73
|
-
* @param instanceId The ID of the instance to cancel
|
|
74
|
-
* @param folderKey The folder key for authorization
|
|
75
|
-
* @param options Optional cancellation options with comment
|
|
76
|
-
* @returns Promise resolving to operation result with updated instance data
|
|
77
|
-
*/
|
|
78
|
-
cancel(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
79
|
-
/**
|
|
80
|
-
* Pause a process instance
|
|
81
|
-
* @param instanceId The ID of the instance to pause
|
|
82
|
-
* @param folderKey The folder key for authorization
|
|
83
|
-
* @param options Optional pause options with comment
|
|
84
|
-
* @returns Promise resolving to operation result with updated instance data
|
|
85
|
-
*/
|
|
86
|
-
pause(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
87
|
-
/**
|
|
88
|
-
* Resume a process instance
|
|
89
|
-
* @param instanceId The ID of the instance to resume
|
|
90
|
-
* @param folderKey The folder key for authorization
|
|
91
|
-
* @param options Optional resume options with comment
|
|
92
|
-
* @returns Promise resolving to operation result with updated instance data
|
|
93
|
-
*/
|
|
94
|
-
resume(instanceId: string, folderKey: string, options?: ProcessInstanceOperationOptions): Promise<OperationResponse<ProcessInstanceOperationResponse>>;
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=process-instances.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"process-instances.d.ts","sourceRoot":"","sources":["../../../src/services/maestro/process-instances.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,0BAA0B,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAC7D,OAAO,EACL,0BAA0B,EAE1B,0CAA0C,EAC1C,+BAA+B,EAC/B,gCAAgC,EAChC,uCAAuC,EACvC,4BAA4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