@uipath/uipath-typescript 1.0.0-beta.12 → 1.0.0-beta.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +3902 -15
- package/dist/index.esm.js +5278 -0
- package/dist/index.js +5343 -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,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Common constants used across the SDK
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Prefix used for OData query parameters
|
|
6
|
-
*/
|
|
7
|
-
export declare const ODATA_PREFIX = "$";
|
|
8
|
-
/**
|
|
9
|
-
* OData pagination constants
|
|
10
|
-
*/
|
|
11
|
-
export declare const ODATA_PAGINATION: {
|
|
12
|
-
/** Default field name for items in a paginated OData response */
|
|
13
|
-
ITEMS_FIELD: string;
|
|
14
|
-
/** Default field name for total count in a paginated OData response */
|
|
15
|
-
TOTAL_COUNT_FIELD: string;
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Entity pagination constants for Data Fabric entities
|
|
19
|
-
*/
|
|
20
|
-
export declare const ENTITY_PAGINATION: {
|
|
21
|
-
/** Field name for items in entity response */
|
|
22
|
-
ITEMS_FIELD: string;
|
|
23
|
-
/** Field name for total count in entity response */
|
|
24
|
-
TOTAL_COUNT_FIELD: string;
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Bucket pagination constants for token-based pagination
|
|
28
|
-
*/
|
|
29
|
-
export declare const BUCKET_PAGINATION: {
|
|
30
|
-
/** Field name for items in bucket file metadata response */
|
|
31
|
-
ITEMS_FIELD: string;
|
|
32
|
-
/** Field name for continuation token in bucket file metadata response */
|
|
33
|
-
CONTINUATION_TOKEN_FIELD: string;
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Process Instance pagination constants for token-based pagination
|
|
37
|
-
*/
|
|
38
|
-
export declare const PROCESS_INSTANCE_PAGINATION: {
|
|
39
|
-
/** Field name for items in process instance response */
|
|
40
|
-
ITEMS_FIELD: string;
|
|
41
|
-
/** Field name for continuation token in process instance response */
|
|
42
|
-
CONTINUATION_TOKEN_FIELD: string;
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* OData OFFSET pagination parameter names (ODATA-style)
|
|
46
|
-
*/
|
|
47
|
-
export declare const ODATA_OFFSET_PARAMS: {
|
|
48
|
-
/** OData page size parameter name */
|
|
49
|
-
PAGE_SIZE_PARAM: string;
|
|
50
|
-
/** OData offset parameter name */
|
|
51
|
-
OFFSET_PARAM: string;
|
|
52
|
-
/** OData count parameter name */
|
|
53
|
-
COUNT_PARAM: string;
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Entity OFFSET pagination parameter names (limit/start style)
|
|
57
|
-
*/
|
|
58
|
-
export declare const ENTITY_OFFSET_PARAMS: {
|
|
59
|
-
/** Entity page size parameter name */
|
|
60
|
-
PAGE_SIZE_PARAM: string;
|
|
61
|
-
/** Entity offset parameter name */
|
|
62
|
-
OFFSET_PARAM: string;
|
|
63
|
-
/** Entity count parameter (not used) */
|
|
64
|
-
COUNT_PARAM: undefined;
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Bucket TOKEN pagination parameter names
|
|
68
|
-
*/
|
|
69
|
-
export declare const BUCKET_TOKEN_PARAMS: {
|
|
70
|
-
/** Bucket page size parameter name */
|
|
71
|
-
PAGE_SIZE_PARAM: string;
|
|
72
|
-
/** Bucket token parameter name */
|
|
73
|
-
TOKEN_PARAM: string;
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Process Instance TOKEN pagination parameter names
|
|
77
|
-
*/
|
|
78
|
-
export declare const PROCESS_INSTANCE_TOKEN_PARAMS: {
|
|
79
|
-
/** Process instance page size parameter name */
|
|
80
|
-
PAGE_SIZE_PARAM: string;
|
|
81
|
-
/** Process instance token parameter name */
|
|
82
|
-
TOKEN_PARAM: string;
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=common.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../../../src/utils/constants/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC;;GAEG;AACH,eAAO,MAAM,gBAAgB;IAC3B,iEAAiE;;IAGjE,uEAAuE;;CAExE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B,8CAA8C;;IAG9C,oDAAoD;;CAErD,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB;IAC5B,4DAA4D;;IAG5D,yEAAyE;;CAE1E,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B;IACtC,wDAAwD;;IAGxD,qEAAqE;;CAEtE,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC9B,qCAAqC;;IAGrC,kCAAkC;;IAGlC,iCAAiC;;CAElC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,oBAAoB;IAC/B,sCAAsC;;IAGtC,mCAAmC;;IAGnC,wCAAwC;;CAEzC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,mBAAmB;IAC9B,sCAAsC;;IAGtC,kCAAkC;;CAEnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,6BAA6B;IACxC,gDAAgD;;IAGhD,4CAA4C;;CAE7C,CAAC"}
|
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Common constants used across the SDK
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Prefix used for OData query parameters
|
|
6
|
-
*/
|
|
7
|
-
export const ODATA_PREFIX = '$';
|
|
8
|
-
/**
|
|
9
|
-
* OData pagination constants
|
|
10
|
-
*/
|
|
11
|
-
export const ODATA_PAGINATION = {
|
|
12
|
-
/** Default field name for items in a paginated OData response */
|
|
13
|
-
ITEMS_FIELD: 'value',
|
|
14
|
-
/** Default field name for total count in a paginated OData response */
|
|
15
|
-
TOTAL_COUNT_FIELD: '@odata.count'
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* Entity pagination constants for Data Fabric entities
|
|
19
|
-
*/
|
|
20
|
-
export const ENTITY_PAGINATION = {
|
|
21
|
-
/** Field name for items in entity response */
|
|
22
|
-
ITEMS_FIELD: 'value',
|
|
23
|
-
/** Field name for total count in entity response */
|
|
24
|
-
TOTAL_COUNT_FIELD: 'totalRecordCount'
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* Bucket pagination constants for token-based pagination
|
|
28
|
-
*/
|
|
29
|
-
export const BUCKET_PAGINATION = {
|
|
30
|
-
/** Field name for items in bucket file metadata response */
|
|
31
|
-
ITEMS_FIELD: 'items',
|
|
32
|
-
/** Field name for continuation token in bucket file metadata response */
|
|
33
|
-
CONTINUATION_TOKEN_FIELD: 'continuationToken'
|
|
34
|
-
};
|
|
35
|
-
/**
|
|
36
|
-
* Process Instance pagination constants for token-based pagination
|
|
37
|
-
*/
|
|
38
|
-
export const PROCESS_INSTANCE_PAGINATION = {
|
|
39
|
-
/** Field name for items in process instance response */
|
|
40
|
-
ITEMS_FIELD: 'instances',
|
|
41
|
-
/** Field name for continuation token in process instance response */
|
|
42
|
-
CONTINUATION_TOKEN_FIELD: 'nextPage'
|
|
43
|
-
};
|
|
44
|
-
/**
|
|
45
|
-
* OData OFFSET pagination parameter names (ODATA-style)
|
|
46
|
-
*/
|
|
47
|
-
export const ODATA_OFFSET_PARAMS = {
|
|
48
|
-
/** OData page size parameter name */
|
|
49
|
-
PAGE_SIZE_PARAM: '$top',
|
|
50
|
-
/** OData offset parameter name */
|
|
51
|
-
OFFSET_PARAM: '$skip',
|
|
52
|
-
/** OData count parameter name */
|
|
53
|
-
COUNT_PARAM: '$count'
|
|
54
|
-
};
|
|
55
|
-
/**
|
|
56
|
-
* Entity OFFSET pagination parameter names (limit/start style)
|
|
57
|
-
*/
|
|
58
|
-
export const ENTITY_OFFSET_PARAMS = {
|
|
59
|
-
/** Entity page size parameter name */
|
|
60
|
-
PAGE_SIZE_PARAM: 'limit',
|
|
61
|
-
/** Entity offset parameter name */
|
|
62
|
-
OFFSET_PARAM: 'start',
|
|
63
|
-
/** Entity count parameter (not used) */
|
|
64
|
-
COUNT_PARAM: undefined
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* Bucket TOKEN pagination parameter names
|
|
68
|
-
*/
|
|
69
|
-
export const BUCKET_TOKEN_PARAMS = {
|
|
70
|
-
/** Bucket page size parameter name */
|
|
71
|
-
PAGE_SIZE_PARAM: 'takeHint',
|
|
72
|
-
/** Bucket token parameter name */
|
|
73
|
-
TOKEN_PARAM: 'continuationToken'
|
|
74
|
-
};
|
|
75
|
-
/**
|
|
76
|
-
* Process Instance TOKEN pagination parameter names
|
|
77
|
-
*/
|
|
78
|
-
export const PROCESS_INSTANCE_TOKEN_PARAMS = {
|
|
79
|
-
/** Process instance page size parameter name */
|
|
80
|
-
PAGE_SIZE_PARAM: 'pageSize',
|
|
81
|
-
/** Process instance token parameter name */
|
|
82
|
-
TOKEN_PARAM: 'nextPage'
|
|
83
|
-
};
|
|
84
|
-
//# sourceMappingURL=common.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../src/utils/constants/common.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;GAEG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC;AAEhC;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC9B,iEAAiE;IACjE,WAAW,EAAE,OAAO;IAEpB,uEAAuE;IACvE,iBAAiB,EAAE,cAAc;CAClC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,8CAA8C;IAC9C,WAAW,EAAE,OAAO;IAEpB,oDAAoD;IACpD,iBAAiB,EAAE,kBAAkB;CACtC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC/B,4DAA4D;IAC5D,WAAW,EAAE,OAAO;IAEpB,yEAAyE;IACzE,wBAAwB,EAAE,mBAAmB;CAC9C,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,wDAAwD;IACxD,WAAW,EAAE,WAAW;IAExB,qEAAqE;IACrE,wBAAwB,EAAE,UAAU;CACrC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,qCAAqC;IACrC,eAAe,EAAE,MAAM;IAEvB,kCAAkC;IAClC,YAAY,EAAE,OAAO;IAErB,iCAAiC;IACjC,WAAW,EAAE,QAAQ;CACtB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,sCAAsC;IACtC,eAAe,EAAE,OAAO;IAExB,mCAAmC;IACnC,YAAY,EAAE,OAAO;IAErB,wCAAwC;IACxC,WAAW,EAAE,SAAS;CACvB,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,sCAAsC;IACtC,eAAe,EAAE,UAAU;IAE3B,kCAAkC;IAClC,WAAW,EAAE,mBAAmB;CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAAG;IAC3C,gDAAgD;IAChD,eAAe,EAAE,UAAU;IAE3B,4CAA4C;IAC5C,WAAW,EAAE,UAAU;CACxB,CAAC"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API Endpoint Constants
|
|
3
|
-
* Centralized location for all API endpoints used throughout the SDK
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Maestro Process Service Endpoints
|
|
7
|
-
*/
|
|
8
|
-
export declare const MAESTRO_ENDPOINTS: {
|
|
9
|
-
readonly BASE_PATH: "pims_/api/v1";
|
|
10
|
-
readonly PROCESSES: {
|
|
11
|
-
readonly GET_ALL: "pims_/api/v1/processes/summary";
|
|
12
|
-
readonly GET_SETTINGS: (processKey: string) => string;
|
|
13
|
-
};
|
|
14
|
-
readonly INSTANCES: {
|
|
15
|
-
readonly GET_ALL: "pims_/api/v1/instances";
|
|
16
|
-
readonly GET_BY_ID: (instanceId: string) => string;
|
|
17
|
-
readonly GET_EXECUTION_HISTORY: (instanceId: string) => string;
|
|
18
|
-
readonly GET_BPMN: (instanceId: string) => string;
|
|
19
|
-
readonly CANCEL: (instanceId: string) => string;
|
|
20
|
-
readonly PAUSE: (instanceId: string) => string;
|
|
21
|
-
readonly RESUME: (instanceId: string) => string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Task Service (Action Center) Endpoints
|
|
26
|
-
*/
|
|
27
|
-
export declare const TASK_ENDPOINTS: {
|
|
28
|
-
readonly CREATE_GENERIC_TASK: "/tasks/GenericTasks/CreateTask";
|
|
29
|
-
readonly GET_TASK_USERS: (folderId: number) => string;
|
|
30
|
-
readonly GET_TASKS_ACROSS_FOLDERS: "/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders";
|
|
31
|
-
readonly GET_BY_ID: (id: number) => string;
|
|
32
|
-
readonly ASSIGN_TASKS: "/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks";
|
|
33
|
-
readonly REASSIGN_TASKS: "/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks";
|
|
34
|
-
readonly UNASSIGN_TASKS: "/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks";
|
|
35
|
-
readonly COMPLETE_FORM_TASK: "/forms/TaskForms/CompleteTask";
|
|
36
|
-
readonly COMPLETE_APP_TASK: "/tasks/AppTasks/CompleteAppTask";
|
|
37
|
-
readonly COMPLETE_GENERIC_TASK: "/tasks/GenericTasks/CompleteTask";
|
|
38
|
-
readonly GET_TASK_FORM_BY_ID: "/forms/TaskForms/GetTaskFormById";
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Data Fabric Service Endpoints
|
|
42
|
-
*/
|
|
43
|
-
export declare const DATA_FABRIC_ENDPOINTS: {
|
|
44
|
-
readonly ENTITY: {
|
|
45
|
-
readonly GET_ALL: "datafabric_/api/Entity";
|
|
46
|
-
readonly GET_ENTITY_RECORDS: (entityId: string) => string;
|
|
47
|
-
readonly GET_BY_ID: (entityId: string) => string;
|
|
48
|
-
readonly INSERT_BY_ID: (entityId: string) => string;
|
|
49
|
-
readonly UPDATE_BY_ID: (entityId: string) => string;
|
|
50
|
-
readonly DELETE_BY_ID: (entityId: string) => string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Orchestrator Bucket Endpoints
|
|
55
|
-
*/
|
|
56
|
-
export declare const BUCKET_ENDPOINTS: {
|
|
57
|
-
readonly GET_BY_FOLDER: "/odata/Buckets";
|
|
58
|
-
readonly GET_ALL: "/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders";
|
|
59
|
-
readonly GET_BY_ID: (id: number) => string;
|
|
60
|
-
readonly GET_FILE_META_DATA: (id: number) => string;
|
|
61
|
-
readonly GET_READ_URI: (id: number) => string;
|
|
62
|
-
readonly GET_WRITE_URI: (id: number) => string;
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Identity/Authentication Endpoints
|
|
66
|
-
*/
|
|
67
|
-
export declare const IDENTITY_ENDPOINTS: {
|
|
68
|
-
readonly BASE_PATH: "identity_/connect";
|
|
69
|
-
readonly TOKEN: "identity_/connect/token";
|
|
70
|
-
readonly AUTHORIZE: "identity_/connect/authorize";
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Orchestrator Process Service Endpoints
|
|
74
|
-
*/
|
|
75
|
-
export declare const PROCESS_ENDPOINTS: {
|
|
76
|
-
readonly GET_ALL: "/odata/Releases";
|
|
77
|
-
readonly START_PROCESS: "/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs";
|
|
78
|
-
readonly GET_BY_ID: (id: number) => string;
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Orchestrator Queue Service Endpoints
|
|
82
|
-
*/
|
|
83
|
-
export declare const QUEUE_ENDPOINTS: {
|
|
84
|
-
readonly GET_BY_FOLDER: "/odata/QueueDefinitions";
|
|
85
|
-
readonly GET_ALL: "/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders";
|
|
86
|
-
readonly GET_BY_ID: (id: number) => string;
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Orchestrator Asset Service Endpoints
|
|
90
|
-
*/
|
|
91
|
-
export declare const ASSET_ENDPOINTS: {
|
|
92
|
-
readonly GET_BY_FOLDER: "/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered";
|
|
93
|
-
readonly GET_ALL: "/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders";
|
|
94
|
-
readonly GET_BY_ID: (id: number) => string;
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=endpoints.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.d.ts","sourceRoot":"","sources":["../../../src/utils/constants/endpoints.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;4CAIC,MAAM;;;;yCAIT,MAAM;qDACM,MAAM;wCACnB,MAAM;sCACR,MAAM;qCACP,MAAM;sCACL,MAAM;;CAErB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;wCAEE,MAAM;;6BAEjB,MAAM;;;;;;;;CAQd,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,qBAAqB;;;gDAGC,MAAM;uCACf,MAAM;0CACH,MAAM;0CACN,MAAM;0CACN,MAAM;;CAEzB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,gBAAgB;;;6BAGX,MAAM;sCACG,MAAM;gCACZ,MAAM;iCACL,MAAM;CAClB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,kBAAkB;;;;CAIrB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;6BAGZ,MAAM;CACd,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe;;;6BAGV,MAAM;CACd,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,eAAe;;;6BAGV,MAAM;CACd,CAAC"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API Endpoint Constants
|
|
3
|
-
* Centralized location for all API endpoints used throughout the SDK
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Maestro Process Service Endpoints
|
|
7
|
-
*/
|
|
8
|
-
export const MAESTRO_ENDPOINTS = {
|
|
9
|
-
BASE_PATH: 'pims_/api/v1',
|
|
10
|
-
PROCESSES: {
|
|
11
|
-
GET_ALL: 'pims_/api/v1/processes/summary',
|
|
12
|
-
GET_SETTINGS: (processKey) => `pims_/api/v1/processes/${processKey}/settings`,
|
|
13
|
-
},
|
|
14
|
-
INSTANCES: {
|
|
15
|
-
GET_ALL: 'pims_/api/v1/instances',
|
|
16
|
-
GET_BY_ID: (instanceId) => `pims_/api/v1/instances/${instanceId}`,
|
|
17
|
-
GET_EXECUTION_HISTORY: (instanceId) => `pims_/api/v1/spans/${instanceId}`,
|
|
18
|
-
GET_BPMN: (instanceId) => `pims_/api/v1/instances/${instanceId}/bpmn`,
|
|
19
|
-
CANCEL: (instanceId) => `pims_/api/v1/instances/${instanceId}/cancel`,
|
|
20
|
-
PAUSE: (instanceId) => `pims_/api/v1/instances/${instanceId}/pause`,
|
|
21
|
-
RESUME: (instanceId) => `pims_/api/v1/instances/${instanceId}/resume`,
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Task Service (Action Center) Endpoints
|
|
26
|
-
*/
|
|
27
|
-
export const TASK_ENDPOINTS = {
|
|
28
|
-
CREATE_GENERIC_TASK: '/tasks/GenericTasks/CreateTask',
|
|
29
|
-
GET_TASK_USERS: (folderId) => `/odata/Tasks/UiPath.Server.Configuration.OData.GetTaskUsers(organizationUnitId=${folderId})`,
|
|
30
|
-
GET_TASKS_ACROSS_FOLDERS: '/odata/Tasks/UiPath.Server.Configuration.OData.GetTasksAcrossFolders',
|
|
31
|
-
GET_BY_ID: (id) => `/odata/Tasks(${id})`,
|
|
32
|
-
ASSIGN_TASKS: '/odata/Tasks/UiPath.Server.Configuration.OData.AssignTasks',
|
|
33
|
-
REASSIGN_TASKS: '/odata/Tasks/UiPath.Server.Configuration.OData.ReassignTasks',
|
|
34
|
-
UNASSIGN_TASKS: '/odata/Tasks/UiPath.Server.Configuration.OData.UnassignTasks',
|
|
35
|
-
COMPLETE_FORM_TASK: '/forms/TaskForms/CompleteTask',
|
|
36
|
-
COMPLETE_APP_TASK: '/tasks/AppTasks/CompleteAppTask',
|
|
37
|
-
COMPLETE_GENERIC_TASK: '/tasks/GenericTasks/CompleteTask',
|
|
38
|
-
GET_TASK_FORM_BY_ID: '/forms/TaskForms/GetTaskFormById',
|
|
39
|
-
};
|
|
40
|
-
/**
|
|
41
|
-
* Data Fabric Service Endpoints
|
|
42
|
-
*/
|
|
43
|
-
export const DATA_FABRIC_ENDPOINTS = {
|
|
44
|
-
ENTITY: {
|
|
45
|
-
GET_ALL: 'datafabric_/api/Entity',
|
|
46
|
-
GET_ENTITY_RECORDS: (entityId) => `datafabric_/api/EntityService/entity/${entityId}/read`,
|
|
47
|
-
GET_BY_ID: (entityId) => `datafabric_/api/Entity/${entityId}`,
|
|
48
|
-
INSERT_BY_ID: (entityId) => `datafabric_/api/EntityService/entity/${entityId}/insert-batch`,
|
|
49
|
-
UPDATE_BY_ID: (entityId) => `datafabric_/api/EntityService/entity/${entityId}/update-batch`,
|
|
50
|
-
DELETE_BY_ID: (entityId) => `datafabric_/api/EntityService/entity/${entityId}/delete-batch`,
|
|
51
|
-
},
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* Orchestrator Bucket Endpoints
|
|
55
|
-
*/
|
|
56
|
-
export const BUCKET_ENDPOINTS = {
|
|
57
|
-
GET_BY_FOLDER: '/odata/Buckets',
|
|
58
|
-
GET_ALL: '/odata/Buckets/UiPath.Server.Configuration.OData.GetBucketsAcrossFolders',
|
|
59
|
-
GET_BY_ID: (id) => `/odata/Buckets(${id})`,
|
|
60
|
-
GET_FILE_META_DATA: (id) => `/api/Buckets/${id}/ListFiles`,
|
|
61
|
-
GET_READ_URI: (id) => `/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetReadUri`,
|
|
62
|
-
GET_WRITE_URI: (id) => `/odata/Buckets(${id})/UiPath.Server.Configuration.OData.GetWriteUri`,
|
|
63
|
-
};
|
|
64
|
-
/**
|
|
65
|
-
* Identity/Authentication Endpoints
|
|
66
|
-
*/
|
|
67
|
-
export const IDENTITY_ENDPOINTS = {
|
|
68
|
-
BASE_PATH: 'identity_/connect',
|
|
69
|
-
TOKEN: 'identity_/connect/token',
|
|
70
|
-
AUTHORIZE: 'identity_/connect/authorize',
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Orchestrator Process Service Endpoints
|
|
74
|
-
*/
|
|
75
|
-
export const PROCESS_ENDPOINTS = {
|
|
76
|
-
GET_ALL: '/odata/Releases',
|
|
77
|
-
START_PROCESS: '/odata/Jobs/UiPath.Server.Configuration.OData.StartJobs',
|
|
78
|
-
GET_BY_ID: (id) => `/odata/Releases(${id})`,
|
|
79
|
-
};
|
|
80
|
-
/**
|
|
81
|
-
* Orchestrator Queue Service Endpoints
|
|
82
|
-
*/
|
|
83
|
-
export const QUEUE_ENDPOINTS = {
|
|
84
|
-
GET_BY_FOLDER: '/odata/QueueDefinitions',
|
|
85
|
-
GET_ALL: '/odata/QueueDefinitions/UiPath.Server.Configuration.OData.GetQueuesAcrossFolders',
|
|
86
|
-
GET_BY_ID: (id) => `/odata/QueueDefinitions(${id})`,
|
|
87
|
-
};
|
|
88
|
-
/**
|
|
89
|
-
* Orchestrator Asset Service Endpoints
|
|
90
|
-
*/
|
|
91
|
-
export const ASSET_ENDPOINTS = {
|
|
92
|
-
GET_BY_FOLDER: '/odata/Assets/UiPath.Server.Configuration.OData.GetFiltered',
|
|
93
|
-
GET_ALL: '/odata/Assets/UiPath.Server.Configuration.OData.GetAssetsAcrossFolders',
|
|
94
|
-
GET_BY_ID: (id) => `/odata/Assets(${id})`,
|
|
95
|
-
};
|
|
96
|
-
//# sourceMappingURL=endpoints.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"endpoints.js","sourceRoot":"","sources":["../../../src/utils/constants/endpoints.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export declare const FOLDER_KEY = "X-UIPATH-FolderKey";
|
|
2
|
-
export declare const FOLDER_PATH = "X-UIPATH-FolderPath";
|
|
3
|
-
export declare const USER_AGENT = "X-UIPATH-UserAgent";
|
|
4
|
-
export declare const TENANT_ID = "X-UIPATH-Internal-TenantId";
|
|
5
|
-
export declare const ACCOUNT_ID = "X-UIPATH-Internal-AccountId";
|
|
6
|
-
export declare const CORRELATION_ID = "X-UIPATH-Correlation-Id";
|
|
7
|
-
export declare const JOB_KEY = "X-UIPATH-JobKey";
|
|
8
|
-
export declare const FOLDER_ID = "X-UIPATH-OrganizationUnitId";
|
|
9
|
-
export declare const INSTANCE_ID = "X-UIPATH-InstanceId";
|
|
10
|
-
/**
|
|
11
|
-
* Content type constants for HTTP requests/responses
|
|
12
|
-
*/
|
|
13
|
-
export declare const CONTENT_TYPES: {
|
|
14
|
-
readonly JSON: "application/json";
|
|
15
|
-
readonly XML: "application/xml";
|
|
16
|
-
readonly OCTET_STREAM: "application/octet-stream";
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Response type constants for HTTP requests
|
|
20
|
-
*/
|
|
21
|
-
export declare const RESPONSE_TYPES: {
|
|
22
|
-
readonly JSON: "json";
|
|
23
|
-
readonly TEXT: "text";
|
|
24
|
-
readonly BLOB: "blob";
|
|
25
|
-
readonly ARRAYBUFFER: "arraybuffer";
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=headers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../src/utils/constants/headers.ts"],"names":[],"mappings":"AAAA,eAAO,MAAO,UAAU,uBAAuB,CAAC;AAChD,eAAO,MAAO,WAAW,wBAAwB,CAAC;AAClD,eAAO,MAAO,UAAU,uBAAuB,CAAC;AAChD,eAAO,MAAO,SAAS,+BAA+B,CAAC;AACvD,eAAO,MAAO,UAAU,gCAAgC,CAAC;AACzD,eAAO,MAAO,cAAc,4BAA4B,CAAC;AACzD,eAAO,MAAO,OAAO,oBAAoB,CAAC;AAC1C,eAAO,MAAO,SAAS,gCAAgC,CAAC;AACxD,eAAO,MAAO,WAAW,wBAAwB,CAAC;AAElD;;GAEG;AACH,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AAEX;;GAEG;AACH,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export const FOLDER_KEY = 'X-UIPATH-FolderKey';
|
|
2
|
-
export const FOLDER_PATH = 'X-UIPATH-FolderPath';
|
|
3
|
-
export const USER_AGENT = 'X-UIPATH-UserAgent';
|
|
4
|
-
export const TENANT_ID = 'X-UIPATH-Internal-TenantId';
|
|
5
|
-
export const ACCOUNT_ID = 'X-UIPATH-Internal-AccountId';
|
|
6
|
-
export const CORRELATION_ID = 'X-UIPATH-Correlation-Id';
|
|
7
|
-
export const JOB_KEY = 'X-UIPATH-JobKey';
|
|
8
|
-
export const FOLDER_ID = 'X-UIPATH-OrganizationUnitId';
|
|
9
|
-
export const INSTANCE_ID = 'X-UIPATH-InstanceId';
|
|
10
|
-
/**
|
|
11
|
-
* Content type constants for HTTP requests/responses
|
|
12
|
-
*/
|
|
13
|
-
export const CONTENT_TYPES = {
|
|
14
|
-
JSON: 'application/json',
|
|
15
|
-
XML: 'application/xml',
|
|
16
|
-
OCTET_STREAM: 'application/octet-stream'
|
|
17
|
-
};
|
|
18
|
-
/**
|
|
19
|
-
* Response type constants for HTTP requests
|
|
20
|
-
*/
|
|
21
|
-
export const RESPONSE_TYPES = {
|
|
22
|
-
JSON: 'json',
|
|
23
|
-
TEXT: 'text',
|
|
24
|
-
BLOB: 'blob',
|
|
25
|
-
ARRAYBUFFER: 'arraybuffer'
|
|
26
|
-
};
|
|
27
|
-
//# sourceMappingURL=headers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"headers.js","sourceRoot":"","sources":["../../../src/utils/constants/headers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAO,UAAU,GAAG,oBAAoB,CAAC;AAChD,MAAM,CAAC,MAAO,WAAW,GAAG,qBAAqB,CAAC;AAClD,MAAM,CAAC,MAAO,UAAU,GAAG,oBAAoB,CAAC;AAChD,MAAM,CAAC,MAAO,SAAS,GAAG,4BAA4B,CAAC;AACvD,MAAM,CAAC,MAAO,UAAU,GAAG,6BAA6B,CAAC;AACzD,MAAM,CAAC,MAAO,cAAc,GAAG,yBAAyB,CAAC;AACzD,MAAM,CAAC,MAAO,OAAO,GAAG,iBAAiB,CAAC;AAC1C,MAAM,CAAC,MAAO,SAAS,GAAG,6BAA6B,CAAC;AACxD,MAAM,CAAC,MAAO,WAAW,GAAG,qBAAqB,CAAC;AAElD;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,IAAI,EAAE,kBAAkB;IACxB,GAAG,EAAE,iBAAiB;IACtB,YAAY,EAAE,0BAA0B;CAChC,CAAC;AAEX;;GAEG;AACH,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,WAAW,EAAE,aAAa;CAClB,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Encodes a string to base64
|
|
3
|
-
* @param str - The string to encode
|
|
4
|
-
* @returns Base64 encoded string
|
|
5
|
-
*/
|
|
6
|
-
export declare function encodeBase64(str: string): string;
|
|
7
|
-
/**
|
|
8
|
-
* Decodes a base64 string
|
|
9
|
-
* @param base64 - The base64 string to decode
|
|
10
|
-
* @returns Decoded string
|
|
11
|
-
*/
|
|
12
|
-
export declare function decodeBase64(base64: string): string;
|
|
13
|
-
//# sourceMappingURL=base64.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base64.d.ts","sourceRoot":"","sources":["../../../src/utils/encoding/base64.ts"],"names":[],"mappings":"AAKA;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAehD;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAkBnD"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base64 encoding/decoding
|
|
3
|
-
*/
|
|
4
|
-
import { isBrowser } from '../platform';
|
|
5
|
-
/**
|
|
6
|
-
* Encodes a string to base64
|
|
7
|
-
* @param str - The string to encode
|
|
8
|
-
* @returns Base64 encoded string
|
|
9
|
-
*/
|
|
10
|
-
export function encodeBase64(str) {
|
|
11
|
-
// TextEncoder for UTF-8 encoding (works in both browser and Node.js)
|
|
12
|
-
const encoder = new TextEncoder();
|
|
13
|
-
const data = encoder.encode(str);
|
|
14
|
-
// Convert Uint8Array to base64
|
|
15
|
-
if (isBrowser) {
|
|
16
|
-
// Browser environment
|
|
17
|
-
// Convert Uint8Array to binary string then to base64
|
|
18
|
-
const binaryString = Array.from(data, byte => String.fromCharCode(byte)).join('');
|
|
19
|
-
return btoa(binaryString);
|
|
20
|
-
}
|
|
21
|
-
else {
|
|
22
|
-
// Node.js environment
|
|
23
|
-
return Buffer.from(data).toString('base64');
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Decodes a base64 string
|
|
28
|
-
* @param base64 - The base64 string to decode
|
|
29
|
-
* @returns Decoded string
|
|
30
|
-
*/
|
|
31
|
-
export function decodeBase64(base64) {
|
|
32
|
-
let bytes;
|
|
33
|
-
if (isBrowser) {
|
|
34
|
-
// Browser environment
|
|
35
|
-
const binaryString = atob(base64);
|
|
36
|
-
bytes = new Uint8Array(binaryString.length);
|
|
37
|
-
for (let i = 0; i < binaryString.length; i++) {
|
|
38
|
-
bytes[i] = binaryString.charCodeAt(i);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
else {
|
|
42
|
-
// Node.js environment
|
|
43
|
-
bytes = new Uint8Array(Buffer.from(base64, 'base64'));
|
|
44
|
-
}
|
|
45
|
-
// TextDecoder for UTF-8 decoding (works in both browser and Node.js)
|
|
46
|
-
const decoder = new TextDecoder();
|
|
47
|
-
return decoder.decode(bytes);
|
|
48
|
-
}
|
|
49
|
-
//# sourceMappingURL=base64.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base64.js","sourceRoot":"","sources":["../../../src/utils/encoding/base64.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,qEAAqE;IACrE,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IAEjC,+BAA+B;IAC/B,IAAI,SAAS,EAAE,CAAC;QACd,sBAAsB;QACtB,qDAAqD;QACrD,MAAM,YAAY,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClF,OAAO,IAAI,CAAC,YAAY,CAAC,CAAC;IAC5B,CAAC;SAAM,CAAC;QACN,sBAAsB;QACtB,OAAO,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC9C,CAAC;AACH,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,YAAY,CAAC,MAAc;IACzC,IAAI,KAAiB,CAAC;IAEtB,IAAI,SAAS,EAAE,CAAC;QACd,sBAAsB;QACtB,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,CAAC,CAAC;QAClC,KAAK,GAAG,IAAI,UAAU,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;QAC5C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC7C,KAAK,CAAC,CAAC,CAAC,GAAG,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC;QACxC,CAAC;IACH,CAAC;SAAM,CAAC;QACN,sBAAsB;QACtB,KAAK,GAAG,IAAI,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC;IACxD,CAAC;IAED,qEAAqE;IACrE,MAAM,OAAO,GAAG,IAAI,WAAW,EAAE,CAAC;IAClC,OAAO,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/encoding/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/utils/encoding/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates headers object from key-value pairs
|
|
3
|
-
* @param headersObj - Object containing header key-value pairs
|
|
4
|
-
* @returns Headers object with all values converted to strings
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```typescript
|
|
8
|
-
* // Single header
|
|
9
|
-
* const headers = createHeaders({ 'X-UIPATH-FolderKey': '1234567890' });
|
|
10
|
-
*
|
|
11
|
-
* // Multiple headers
|
|
12
|
-
* const headers = createHeaders({
|
|
13
|
-
* 'X-UIPATH-FolderKey': '1234567890',
|
|
14
|
-
* 'X-UIPATH-OrganizationUnitId': 123,
|
|
15
|
-
* 'Accept': 'application/json'
|
|
16
|
-
* });
|
|
17
|
-
*
|
|
18
|
-
* // Using constants
|
|
19
|
-
* import { FOLDER_KEY, FOLDER_ID } from '../constants/headers';
|
|
20
|
-
* const headers = createHeaders({
|
|
21
|
-
* [FOLDER_KEY]: 'abc-123',
|
|
22
|
-
* [FOLDER_ID]: 456
|
|
23
|
-
* });
|
|
24
|
-
*
|
|
25
|
-
* // Empty headers
|
|
26
|
-
* const headers = createHeaders();
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
export declare function createHeaders(headersObj: Record<string, string | number | undefined>): Record<string, string>;
|
|
30
|
-
/**
|
|
31
|
-
* Legacy support - creates headers with folder ID
|
|
32
|
-
* @deprecated Use createHeaders({ [FOLDER_ID]: folderId }) instead
|
|
33
|
-
* @param folderId - Folder/organization unit ID
|
|
34
|
-
* @returns Headers object with folder ID
|
|
35
|
-
*/
|
|
36
|
-
export declare function createHeadersLegacy(folderId?: number): Record<string, string>;
|
|
37
|
-
//# sourceMappingURL=headers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"headers.d.ts","sourceRoot":"","sources":["../../../src/utils/http/headers.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAU7G;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAM7E"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { FOLDER_ID } from "../constants/headers";
|
|
2
|
-
/**
|
|
3
|
-
* Creates headers object from key-value pairs
|
|
4
|
-
* @param headersObj - Object containing header key-value pairs
|
|
5
|
-
* @returns Headers object with all values converted to strings
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* // Single header
|
|
10
|
-
* const headers = createHeaders({ 'X-UIPATH-FolderKey': '1234567890' });
|
|
11
|
-
*
|
|
12
|
-
* // Multiple headers
|
|
13
|
-
* const headers = createHeaders({
|
|
14
|
-
* 'X-UIPATH-FolderKey': '1234567890',
|
|
15
|
-
* 'X-UIPATH-OrganizationUnitId': 123,
|
|
16
|
-
* 'Accept': 'application/json'
|
|
17
|
-
* });
|
|
18
|
-
*
|
|
19
|
-
* // Using constants
|
|
20
|
-
* import { FOLDER_KEY, FOLDER_ID } from '../constants/headers';
|
|
21
|
-
* const headers = createHeaders({
|
|
22
|
-
* [FOLDER_KEY]: 'abc-123',
|
|
23
|
-
* [FOLDER_ID]: 456
|
|
24
|
-
* });
|
|
25
|
-
*
|
|
26
|
-
* // Empty headers
|
|
27
|
-
* const headers = createHeaders();
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export function createHeaders(headersObj) {
|
|
31
|
-
const headers = {};
|
|
32
|
-
for (const [key, value] of Object.entries(headersObj)) {
|
|
33
|
-
if (value !== undefined && value !== null) {
|
|
34
|
-
headers[key] = value.toString();
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
return headers;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Legacy support - creates headers with folder ID
|
|
41
|
-
* @deprecated Use createHeaders({ [FOLDER_ID]: folderId }) instead
|
|
42
|
-
* @param folderId - Folder/organization unit ID
|
|
43
|
-
* @returns Headers object with folder ID
|
|
44
|
-
*/
|
|
45
|
-
export function createHeadersLegacy(folderId) {
|
|
46
|
-
if (folderId === undefined) {
|
|
47
|
-
return {};
|
|
48
|
-
}
|
|
49
|
-
return createHeaders({ [FOLDER_ID]: folderId });
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=headers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"headers.js","sourceRoot":"","sources":["../../../src/utils/http/headers.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAEjD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,UAAU,aAAa,CAAC,UAAuD;IACnF,MAAM,OAAO,GAA2B,EAAE,CAAC;IAE3C,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC;QACtD,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YAC1C,OAAO,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC,QAAQ,EAAE,CAAC;QAClC,CAAC;IACH,CAAC;IAED,OAAO,OAAO,CAAC;AACjB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,mBAAmB,CAAC,QAAiB;IACnD,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;QAC3B,OAAO,EAAE,CAAC;IACZ,CAAC;IAED,OAAO,aAAa,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClD,CAAC"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Creates query parameters object from key-value pairs, filtering out undefined values
|
|
3
|
-
* @param paramsObj - Object containing parameter key-value pairs
|
|
4
|
-
* @returns Parameters object with undefined values filtered out
|
|
5
|
-
*
|
|
6
|
-
* @example
|
|
7
|
-
* ```typescript
|
|
8
|
-
* // Entity service parameters
|
|
9
|
-
* const params = createParams({
|
|
10
|
-
* start: 0,
|
|
11
|
-
* limit: 10,
|
|
12
|
-
* expansionLevel: 1
|
|
13
|
-
* });
|
|
14
|
-
*
|
|
15
|
-
* // With optional/undefined values (automatically filtered)
|
|
16
|
-
* const params = createParams({
|
|
17
|
-
* start: options.start, // Could be undefined
|
|
18
|
-
* limit: options.limit, // Could be undefined
|
|
19
|
-
* expansionLevel: options.expansionLevel // Could be undefined
|
|
20
|
-
* });
|
|
21
|
-
*
|
|
22
|
-
* // Empty params
|
|
23
|
-
* const params = createParams();
|
|
24
|
-
* ```
|
|
25
|
-
*/
|
|
26
|
-
export declare function createParams(paramsObj?: Record<string, string | number | boolean | undefined>): Record<string, string | number | boolean>;
|
|
27
|
-
//# sourceMappingURL=params.d.ts.map
|