@adobe/data 0.5.2 → 0.5.3
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/blob/blob-handle.d.ts +29 -0
- package/dist/blob/blob-handle.js +11 -0
- package/dist/blob/blob-handle.js.map +1 -0
- package/dist/blob/blob-meta.d.ts +23 -0
- package/dist/blob/blob-meta.js +12 -0
- package/dist/blob/blob-meta.js.map +1 -0
- package/dist/blob/download-handle.d.ts +4 -0
- package/dist/blob/download-handle.js +2 -0
- package/dist/blob/download-handle.js.map +1 -0
- package/dist/blob/index.d.ts +4 -0
- package/dist/blob/index.js +5 -0
- package/dist/blob/index.js.map +1 -0
- package/dist/blob/upload-handle.d.ts +4 -0
- package/dist/blob/upload-handle.js +2 -0
- package/dist/blob/upload-handle.js.map +1 -0
- package/dist/schema/schema.d.ts +8 -12
- package/dist/schema/schema.js.map +1 -1
- package/dist/service/is-service.js +1 -2
- package/dist/service/is-service.js.map +1 -1
- package/dist/service/progressive-result.d.ts +5 -6
- package/dist/service/progressive-result.js.map +1 -1
- package/dist/services/add-observable-actions.d.ts +29 -0
- package/dist/services/add-observable-actions.js +108 -0
- package/dist/services/add-observable-actions.js.map +1 -0
- package/dist/services/index.d.ts +4 -0
- package/dist/{core → services}/index.js +3 -3
- package/dist/services/index.js.map +1 -0
- package/dist/services/is-service.d.ts +2 -0
- package/dist/{cache/functions/omit.js → services/is-service.js} +3 -7
- package/dist/services/is-service.js.map +1 -0
- package/dist/services/progressive-result.d.ts +96 -0
- package/dist/services/progressive-result.js +99 -0
- package/dist/services/progressive-result.js.map +1 -0
- package/dist/services/service.d.ts +4 -0
- package/dist/{cache/functions/types.js → services/service.js} +1 -1
- package/dist/services/service.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/replace.d.ts +7 -0
- package/dist/types/replace.js +5 -0
- package/dist/types/replace.js.map +1 -0
- package/package.json +8 -1
- package/dist/README.md +0 -310
- package/dist/cache/functions/bind-functions.d.ts +0 -6
- package/dist/cache/functions/bind-functions.js +0 -33
- package/dist/cache/functions/bind-functions.js.map +0 -1
- package/dist/cache/functions/hashing/arrayBufferToHex.d.ts +0 -1
- package/dist/cache/functions/hashing/arrayBufferToHex.js +0 -27
- package/dist/cache/functions/hashing/arrayBufferToHex.js.map +0 -1
- package/dist/cache/functions/omit.d.ts +0 -1
- package/dist/cache/functions/omit.js.map +0 -1
- package/dist/cache/functions/types.d.ts +0 -1
- package/dist/cache/functions/types.js.map +0 -1
- package/dist/core/data.d.ts +0 -22
- package/dist/core/data.js +0 -52
- package/dist/core/data.js.map +0 -1
- package/dist/core/data.test.d.ts +0 -1
- package/dist/core/data.test.js +0 -48
- package/dist/core/data.test.js.map +0 -1
- package/dist/core/functions/array-equals.d.ts +0 -1
- package/dist/core/functions/array-equals.js +0 -34
- package/dist/core/functions/array-equals.js.map +0 -1
- package/dist/core/functions/deep-merge.d.ts +0 -32
- package/dist/core/functions/deep-merge.js +0 -54
- package/dist/core/functions/deep-merge.js.map +0 -1
- package/dist/core/functions/deep-merge.test.d.ts +0 -1
- package/dist/core/functions/deep-merge.test.js +0 -94
- package/dist/core/functions/deep-merge.test.js.map +0 -1
- package/dist/core/functions/index.d.ts +0 -3
- package/dist/core/functions/index.js +0 -25
- package/dist/core/functions/index.js.map +0 -1
- package/dist/core/functions/is-async-generator.d.ts +0 -1
- package/dist/core/functions/is-async-generator.js +0 -25
- package/dist/core/functions/is-async-generator.js.map +0 -1
- package/dist/core/functions/is-promise.d.ts +0 -1
- package/dist/core/functions/is-promise.js +0 -26
- package/dist/core/functions/is-promise.js.map +0 -1
- package/dist/core/functions/with-validation.d.ts +0 -5
- package/dist/core/functions/with-validation.js +0 -38
- package/dist/core/functions/with-validation.js.map +0 -1
- package/dist/core/functions/with-validation.test.d.ts +0 -1
- package/dist/core/functions/with-validation.test.js +0 -96
- package/dist/core/functions/with-validation.test.js.map +0 -1
- package/dist/core/index.d.ts +0 -3
- package/dist/core/index.js.map +0 -1
- package/dist/core/schema/dynamic/dynamic-schema.d.ts +0 -27
- package/dist/core/schema/dynamic/dynamic-schema.js +0 -2
- package/dist/core/schema/dynamic/dynamic-schema.js.map +0 -1
- package/dist/core/schema/dynamic/enumerate-patches.d.ts +0 -9
- package/dist/core/schema/dynamic/enumerate-patches.js +0 -50
- package/dist/core/schema/dynamic/enumerate-patches.js.map +0 -1
- package/dist/core/schema/dynamic/enumerate-patches.test.d.ts +0 -134
- package/dist/core/schema/dynamic/enumerate-patches.test.js +0 -209
- package/dist/core/schema/dynamic/enumerate-patches.test.js.map +0 -1
- package/dist/core/schema/dynamic/get-dynamic-schema.d.ts +0 -5
- package/dist/core/schema/dynamic/get-dynamic-schema.js +0 -26
- package/dist/core/schema/dynamic/get-dynamic-schema.js.map +0 -1
- package/dist/core/schema/dynamic/get-dynamic-schema.test.d.ts +0 -1
- package/dist/core/schema/dynamic/get-dynamic-schema.test.js +0 -94
- package/dist/core/schema/dynamic/get-dynamic-schema.test.js.map +0 -1
- package/dist/core/schema/dynamic/index.d.ts +0 -1
- package/dist/core/schema/dynamic/index.js +0 -2
- package/dist/core/schema/dynamic/index.js.map +0 -1
- package/dist/core/schema/dynamic/schema-path-value-path.d.ts +0 -5
- package/dist/core/schema/dynamic/schema-path-value-path.js +0 -12
- package/dist/core/schema/dynamic/schema-path-value-path.js.map +0 -1
- package/dist/core/schema/dynamic-schema.d.ts +0 -27
- package/dist/core/schema/dynamic-schema.js +0 -2
- package/dist/core/schema/dynamic-schema.js.map +0 -1
- package/dist/core/schema/index.d.ts +0 -4
- package/dist/core/schema/index.js +0 -26
- package/dist/core/schema/index.js.map +0 -1
- package/dist/core/schema/schema.d.ts +0 -122
- package/dist/core/schema/schema.js +0 -34
- package/dist/core/schema/schema.js.map +0 -1
- package/dist/core/schema/schemas.d.ts +0 -45
- package/dist/core/schema/schemas.js +0 -39
- package/dist/core/schema/schemas.js.map +0 -1
- package/dist/core/schema/ui-schema.d.ts +0 -25
- package/dist/core/schema/ui-schema.js +0 -2
- package/dist/core/schema/ui-schema.js.map +0 -1
- package/dist/core/schema/validation/is-valid.d.ts +0 -2
- package/dist/core/schema/validation/is-valid.js +0 -14
- package/dist/core/schema/validation/is-valid.js.map +0 -1
- package/dist/core/schema/validation/is-valid.test.d.ts +0 -1
- package/dist/core/schema/validation/is-valid.test.js +0 -40
- package/dist/core/schema/validation/is-valid.test.js.map +0 -1
- package/dist/core/schema/validation/validate.d.ts +0 -2
- package/dist/core/schema/validation/validate.js +0 -38
- package/dist/core/schema/validation/validate.js.map +0 -1
- package/dist/core/schema/validation/validate.test.d.ts +0 -1
- package/dist/core/schema/validation/validate.test.js +0 -106
- package/dist/core/schema/validation/validate.test.js.map +0 -1
- package/dist/core/schema/validation/with-validation.d.ts +0 -5
- package/dist/core/schema/validation/with-validation.js +0 -16
- package/dist/core/schema/validation/with-validation.js.map +0 -1
- package/dist/core/schema/validation/with-validation.test.d.ts +0 -1
- package/dist/core/schema/validation/with-validation.test.js +0 -96
- package/dist/core/schema/validation/with-validation.test.js.map +0 -1
- package/dist/core/schema.d.ts +0 -86
- package/dist/core/schema.js +0 -33
- package/dist/core/schema.js.map +0 -1
- package/dist/core/schema.test.d.ts +0 -1
- package/dist/core/schema.test.js +0 -16
- package/dist/core/schema.test.js.map +0 -1
- package/dist/core/schemas.d.ts +0 -45
- package/dist/core/schemas.js +0 -39
- package/dist/core/schemas.js.map +0 -1
- package/dist/ecs/action-ecs/action-ecs.d.ts +0 -19
- package/dist/ecs/action-ecs/action-ecs.js +0 -203
- package/dist/ecs/action-ecs/action-ecs.js.map +0 -1
- package/dist/ecs/action-ecs/action-ecs.test.d.ts +0 -1
- package/dist/ecs/action-ecs/action-ecs.test.js +0 -362
- package/dist/ecs/action-ecs/action-ecs.test.js.map +0 -1
- package/dist/ecs/action-ecs/action-types.d.ts +0 -106
- package/dist/ecs/action-ecs/action-types.js +0 -19
- package/dist/ecs/action-ecs/action-types.js.map +0 -1
- package/dist/ecs/action-ecs/index.d.ts +0 -2
- package/dist/ecs/action-ecs/index.js +0 -23
- package/dist/ecs/action-ecs/index.js.map +0 -1
- package/dist/ecs/core-ecs/core-ecs-serialization.test.d.ts +0 -1
- package/dist/ecs/core-ecs/core-ecs-serialization.test.js +0 -230
- package/dist/ecs/core-ecs/core-ecs-serialization.test.js.map +0 -1
- package/dist/ecs/core-ecs/core-ecs-types.d.ts +0 -141
- package/dist/ecs/core-ecs/core-ecs-types.js +0 -23
- package/dist/ecs/core-ecs/core-ecs-types.js.map +0 -1
- package/dist/ecs/core-ecs/core-ecs.d.ts +0 -7
- package/dist/ecs/core-ecs/core-ecs.js +0 -492
- package/dist/ecs/core-ecs/core-ecs.js.map +0 -1
- package/dist/ecs/core-ecs/core-ecs.test.d.ts +0 -1
- package/dist/ecs/core-ecs/core-ecs.test.js +0 -425
- package/dist/ecs/core-ecs/core-ecs.test.js.map +0 -1
- package/dist/ecs/core-ecs/index.d.ts +0 -1
- package/dist/ecs/core-ecs/index.js +0 -2
- package/dist/ecs/core-ecs/index.js.map +0 -1
- package/dist/ecs/database/database-schema/create-database-schema-test.d.ts +0 -1
- package/dist/ecs/database/database-schema/create-database-schema-test.js +0 -42
- package/dist/ecs/database/database-schema/create-database-schema-test.js.map +0 -1
- package/dist/ecs/database/database-schema/create-database-schema.d.ts +0 -12
- package/dist/ecs/database/database-schema/create-database-schema.js +0 -26
- package/dist/ecs/database/database-schema/create-database-schema.js.map +0 -1
- package/dist/ecs/database/database-schema/database-schema.d.ts +0 -15
- package/dist/ecs/database/database-schema/database-schema.js +0 -23
- package/dist/ecs/database/database-schema/database-schema.js.map +0 -1
- package/dist/ecs/database/database-schema/index.d.ts +0 -2
- package/dist/ecs/database/database-schema/index.js +0 -24
- package/dist/ecs/database/database-schema/index.js.map +0 -1
- package/dist/ecs/database/register-database-codec.d.ts +0 -1
- package/dist/ecs/database/register-database-codec.js +0 -35
- package/dist/ecs/database/register-database-codec.js.map +0 -1
- package/dist/ecs/database/register-database-codecs.d.ts +0 -1
- package/dist/ecs/database/register-database-codecs.js +0 -35
- package/dist/ecs/database/register-database-codecs.js.map +0 -1
- package/dist/ecs/database/register-store-codec.d.ts +0 -1
- package/dist/ecs/database/register-store-codec.js +0 -35
- package/dist/ecs/database/register-store-codec.js.map +0 -1
- package/dist/ecs/database/register-typed-buffer-codecs.d.ts +0 -1
- package/dist/ecs/database/register-typed-buffer-codecs.js +0 -80
- package/dist/ecs/database/register-typed-buffer-codecs.js.map +0 -1
- package/dist/ecs/database/transactional-store/apply-write-operations.d.ts +0 -7
- package/dist/ecs/database/transactional-store/apply-write-operations.js +0 -20
- package/dist/ecs/database/transactional-store/apply-write-operations.js.map +0 -1
- package/dist/ecs/database/transactional-store/applyWriteOperations.d.ts +0 -7
- package/dist/ecs/database/transactional-store/applyWriteOperations.js +0 -20
- package/dist/ecs/database/transactional-store/applyWriteOperations.js.map +0 -1
- package/dist/ecs/database/transactional-store/create-test-transaction.d.ts +0 -7
- package/dist/ecs/database/transactional-store/create-test-transaction.js +0 -7
- package/dist/ecs/database/transactional-store/create-test-transaction.js.map +0 -1
- package/dist/ecs/database/transactional-store/patch.d.ts +0 -3
- package/dist/ecs/database/transactional-store/patch.js +0 -7
- package/dist/ecs/database/transactional-store/patch.js.map +0 -1
- package/dist/ecs/database/transactional-store/undoable.d.ts +0 -13
- package/dist/ecs/database/transactional-store/undoable.js +0 -23
- package/dist/ecs/database/transactional-store/undoable.js.map +0 -1
- package/dist/ecs/database/transactional-store/with-undoable.d.ts +0 -10
- package/dist/ecs/database/transactional-store/with-undoable.js +0 -13
- package/dist/ecs/database/transactional-store/with-undoable.js.map +0 -1
- package/dist/ecs/database/with-undoable.d.ts +0 -10
- package/dist/ecs/database/with-undoable.js +0 -13
- package/dist/ecs/database/with-undoable.js.map +0 -1
- package/dist/ecs/ecs/ecs-types.d.ts +0 -132
- package/dist/ecs/ecs/ecs-types.js +0 -23
- package/dist/ecs/ecs/ecs-types.js.map +0 -1
- package/dist/ecs/ecs/ecs-where-functions.d.ts +0 -6
- package/dist/ecs/ecs/ecs-where-functions.js +0 -91
- package/dist/ecs/ecs/ecs-where-functions.js.map +0 -1
- package/dist/ecs/ecs/ecs.d.ts +0 -13
- package/dist/ecs/ecs/ecs.js +0 -177
- package/dist/ecs/ecs/ecs.js.map +0 -1
- package/dist/ecs/ecs/ecs.test.d.ts +0 -1
- package/dist/ecs/ecs/ecs.test.js +0 -399
- package/dist/ecs/ecs/ecs.test.js.map +0 -1
- package/dist/ecs/ecs/index.d.ts +0 -3
- package/dist/ecs/ecs/index.js +0 -3
- package/dist/ecs/ecs/index.js.map +0 -1
- package/dist/ecs/entity-location-table/register-database-codec.d.ts +0 -1
- package/dist/ecs/entity-location-table/register-database-codec.js +0 -35
- package/dist/ecs/entity-location-table/register-database-codec.js.map +0 -1
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.d.ts +0 -1
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.js +0 -42
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.js.map +0 -1
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.test.d.ts +0 -1
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.test.js +0 -70
- package/dist/ecs/entity-location-table/register-entity-location-table-codec.test.js.map +0 -1
- package/dist/ecs/persistence-service/create-persistence-service.d.ts +0 -6
- package/dist/ecs/persistence-service/create-persistence-service.js +0 -24
- package/dist/ecs/persistence-service/create-persistence-service.js.map +0 -1
- package/dist/ecs/persistence-service/create-session-persistence-service.d.ts +0 -8
- package/dist/ecs/persistence-service/create-session-persistence-service.js +0 -49
- package/dist/ecs/persistence-service/create-session-persistence-service.js.map +0 -1
- package/dist/ecs/persistence-service/persistence-service copy.d.ts +0 -5
- package/dist/ecs/persistence-service/persistence-service copy.js +0 -2
- package/dist/ecs/persistence-service/persistence-service copy.js.map +0 -1
- package/dist/ecs/persistence-service/to-blob-refs.d.ts +0 -2
- package/dist/ecs/persistence-service/to-blob-refs.js +0 -3
- package/dist/ecs/persistence-service/to-blob-refs.js.map +0 -1
- package/dist/ecs/persistence-service/undo-redo-service.d.ts +0 -11
- package/dist/ecs/persistence-service/undo-redo-service.js +0 -23
- package/dist/ecs/persistence-service/undo-redo-service.js.map +0 -1
- package/dist/ecs/store/core/register-core-codec.d.ts +0 -1
- package/dist/ecs/store/core/register-core-codec.js +0 -45
- package/dist/ecs/store/core/register-core-codec.js.map +0 -1
- package/dist/ecs/store/core/register-core-codec.test.d.ts +0 -1
- package/dist/ecs/store/core/register-core-codec.test.js +0 -136
- package/dist/ecs/store/core/register-core-codec.test.js.map +0 -1
- package/dist/ecs/store/query.d.ts +0 -47
- package/dist/ecs/store/query.js +0 -2
- package/dist/ecs/store/query.js.map +0 -1
- package/dist/ecs/store/register-core-codec.d.ts +0 -1
- package/dist/ecs/store/register-core-codec.js +0 -38
- package/dist/ecs/store/register-core-codec.js.map +0 -1
- package/dist/ecs/store/register-store-codec.d.ts +0 -1
- package/dist/ecs/store/register-store-codec.js +0 -38
- package/dist/ecs/store/register-store-codec.js.map +0 -1
- package/dist/ecs/store/restore-store.d.ts +0 -12
- package/dist/ecs/store/restore-store.js +0 -91
- package/dist/ecs/store/restore-store.js.map +0 -1
- package/dist/ecs/store/select-options.d.ts +0 -1
- package/dist/ecs/store/select-options.js +0 -16
- package/dist/ecs/store/select-options.js.map +0 -1
- package/dist/ecs/store/select.d.ts +0 -44
- package/dist/ecs/store/select.js +0 -2
- package/dist/ecs/store/select.js.map +0 -1
- package/dist/ecs/transaction-ecs/index.d.ts +0 -2
- package/dist/ecs/transaction-ecs/index.js +0 -24
- package/dist/ecs/transaction-ecs/index.js.map +0 -1
- package/dist/ecs/transaction-ecs/transaction-ecs.d.ts +0 -11
- package/dist/ecs/transaction-ecs/transaction-ecs.js +0 -184
- package/dist/ecs/transaction-ecs/transaction-ecs.js.map +0 -1
- package/dist/ecs/transaction-ecs/transaction-ecs.test.d.ts +0 -1
- package/dist/ecs/transaction-ecs/transaction-ecs.test.js +0 -599
- package/dist/ecs/transaction-ecs/transaction-ecs.test.js.map +0 -1
- package/dist/ecs/transaction-ecs/transaction-types.d.ts +0 -135
- package/dist/ecs/transaction-ecs/transaction-types.js +0 -2
- package/dist/ecs/transaction-ecs/transaction-types.js.map +0 -1
- package/dist/ecs/transaction-ecs/transactions.d.ts +0 -5
- package/dist/ecs/transaction-ecs/transactions.js +0 -158
- package/dist/ecs/transaction-ecs/transactions.js.map +0 -1
- package/dist/ecs/undo-redo/create-undo-redo-actions.d.ts +0 -10
- package/dist/ecs/undo-redo/create-undo-redo-actions.js +0 -69
- package/dist/ecs/undo-redo/create-undo-redo-actions.js.map +0 -1
- package/dist/ecs/undo-redo/create-undo-redo-actions.test.d.ts +0 -1
- package/dist/ecs/undo-redo/create-undo-redo-actions.test.js +0 -295
- package/dist/ecs/undo-redo/create-undo-redo-actions.test.js.map +0 -1
- package/dist/ecs/undo-redo/do.d.ts +0 -3
- package/dist/ecs/undo-redo/do.js +0 -3
- package/dist/ecs/undo-redo/do.js.map +0 -1
- package/dist/ecs/undo-redo/index.d.ts +0 -1
- package/dist/ecs/undo-redo/index.js +0 -23
- package/dist/ecs/undo-redo/index.js.map +0 -1
- package/dist/functions/serialization/deserialize.d.ts +0 -1
- package/dist/functions/serialization/deserialize.js +0 -2
- package/dist/functions/serialization/deserialize.js.map +0 -1
- package/dist/functions/serialization/register-typed-array-codecs copy.d.ts +0 -1
- package/dist/functions/serialization/register-typed-array-codecs copy.js +0 -13
- package/dist/functions/serialization/register-typed-array-codecs copy.js.map +0 -1
- package/dist/functions/serialization/serialize-to-blobs copy.d.ts +0 -8
- package/dist/functions/serialization/serialize-to-blobs copy.js +0 -21
- package/dist/functions/serialization/serialize-to-blobs copy.js.map +0 -1
- package/dist/internal/typed-array/typed-array-constructer.d.ts +0 -7
- package/dist/internal/typed-array/typed-array-constructer.js +0 -2
- package/dist/internal/typed-array/typed-array-constructer.js.map +0 -1
- package/dist/internal/typed-array/typed-array.d.ts +0 -1
- package/dist/internal/typed-array/typed-array.js +0 -23
- package/dist/internal/typed-array/typed-array.js.map +0 -1
- package/dist/observe/with-map copy.d.ts +0 -5
- package/dist/observe/with-map copy.js +0 -14
- package/dist/observe/with-map copy.js.map +0 -1
- package/dist/package.json +0 -129
- package/dist/schema/f32 copy.d.ts +0 -6
- package/dist/schema/f32 copy.js +0 -6
- package/dist/schema/f32 copy.js.map +0 -1
- package/dist/schemas/index.d.ts +0 -1
- package/dist/schemas/index.js +0 -23
- package/dist/schemas/index.js.map +0 -1
- package/dist/schemas/schemas.d.ts +0 -45
- package/dist/schemas/schemas.js +0 -39
- package/dist/schemas/schemas.js.map +0 -1
- package/dist/service/sequential-action.d.ts +0 -18
- package/dist/service/sequential-action.js +0 -45
- package/dist/service/sequential-action.js.map +0 -1
- package/dist/table/ensure-capacity copy.d.ts +0 -2
- package/dist/table/ensure-capacity copy.js +0 -15
- package/dist/table/ensure-capacity copy.js.map +0 -1
- package/dist/table/filter-rows.d.ts +0 -2
- package/dist/table/filter-rows.js +0 -15
- package/dist/table/filter-rows.js.map +0 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { FromSchema } from "../schema/schema.js";
|
|
2
|
+
export declare const BlobHandleSchema: {
|
|
3
|
+
readonly type: "object";
|
|
4
|
+
readonly properties: {
|
|
5
|
+
readonly handle: {
|
|
6
|
+
readonly type: "string";
|
|
7
|
+
};
|
|
8
|
+
readonly expires: {
|
|
9
|
+
readonly type: "string";
|
|
10
|
+
};
|
|
11
|
+
readonly type: {
|
|
12
|
+
readonly type: "string";
|
|
13
|
+
};
|
|
14
|
+
readonly size: {
|
|
15
|
+
readonly type: "number";
|
|
16
|
+
};
|
|
17
|
+
readonly width: {
|
|
18
|
+
readonly type: "number";
|
|
19
|
+
};
|
|
20
|
+
readonly height: {
|
|
21
|
+
readonly type: "number";
|
|
22
|
+
};
|
|
23
|
+
readonly duration: {
|
|
24
|
+
readonly type: "number";
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
readonly required: readonly ["type", "size", "handle"];
|
|
28
|
+
};
|
|
29
|
+
export type BlobHandle = FromSchema<typeof BlobHandleSchema>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BlobMetaSchema } from "./blob-meta.js";
|
|
2
|
+
export const BlobHandleSchema = {
|
|
3
|
+
type: 'object',
|
|
4
|
+
properties: {
|
|
5
|
+
...BlobMetaSchema.properties,
|
|
6
|
+
handle: { type: 'string' },
|
|
7
|
+
expires: { type: 'string' },
|
|
8
|
+
},
|
|
9
|
+
required: [...BlobMetaSchema.required, 'handle'],
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=blob-handle.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blob-handle.js","sourceRoot":"","sources":["../../src/blob/blob-handle.ts"],"names":[],"mappings":"AACA,OAAO,EAAY,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAI1D,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,GAAG,cAAc,CAAC,UAAU;QAC5B,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC9B;IACD,QAAQ,EAAE,CAAC,GAAG,cAAc,CAAC,QAAQ,EAAE,QAAQ,CAAC;CACzB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FromSchema } from "../schema/schema.js";
|
|
2
|
+
export declare const BlobMetaSchema: {
|
|
3
|
+
readonly type: "object";
|
|
4
|
+
readonly properties: {
|
|
5
|
+
readonly type: {
|
|
6
|
+
readonly type: "string";
|
|
7
|
+
};
|
|
8
|
+
readonly size: {
|
|
9
|
+
readonly type: "number";
|
|
10
|
+
};
|
|
11
|
+
readonly width: {
|
|
12
|
+
readonly type: "number";
|
|
13
|
+
};
|
|
14
|
+
readonly height: {
|
|
15
|
+
readonly type: "number";
|
|
16
|
+
};
|
|
17
|
+
readonly duration: {
|
|
18
|
+
readonly type: "number";
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
readonly required: readonly ["type", "size"];
|
|
22
|
+
};
|
|
23
|
+
export type BlobMeta = FromSchema<typeof BlobMetaSchema>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export const BlobMetaSchema = {
|
|
2
|
+
type: 'object',
|
|
3
|
+
properties: {
|
|
4
|
+
type: { type: 'string' },
|
|
5
|
+
size: { type: 'number' },
|
|
6
|
+
width: { type: 'number' },
|
|
7
|
+
height: { type: 'number' },
|
|
8
|
+
duration: { type: 'number' },
|
|
9
|
+
},
|
|
10
|
+
required: ['type', 'size'],
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=blob-meta.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"blob-meta.js","sourceRoot":"","sources":["../../src/blob/blob-meta.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,cAAc,GAAG;IAC1B,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACR,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,IAAI,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACxB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACzB,MAAM,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC1B,QAAQ,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;KAC/B;IACD,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"download-handle.js","sourceRoot":"","sources":["../../src/blob/download-handle.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/blob/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload-handle.js","sourceRoot":"","sources":["../../src/blob/upload-handle.ts"],"names":[],"mappings":""}
|
package/dist/schema/schema.d.ts
CHANGED
|
@@ -107,21 +107,17 @@ type FromSchemaObject<T extends Schema, Depth extends number> = T extends {
|
|
|
107
107
|
[K in OptionalKeys<T>]?: FromSchema<P[K], Depth>;
|
|
108
108
|
} & (T extends {
|
|
109
109
|
additionalProperties: infer AP;
|
|
110
|
-
} ? AP extends false ? {} : AP extends
|
|
111
|
-
[key: string]: FromSchema<AP, Depth>;
|
|
112
|
-
} : {
|
|
113
|
-
[key: string]: any;
|
|
114
|
-
} : {
|
|
110
|
+
} ? AP extends false ? {} : AP extends boolean ? AP extends true ? {
|
|
115
111
|
[key: string]: any;
|
|
116
|
-
}
|
|
117
|
-
additionalProperties: infer AP;
|
|
118
|
-
} ? AP extends Schema ? {
|
|
112
|
+
} : {} : AP extends Schema ? {
|
|
119
113
|
[key: string]: FromSchema<AP, Depth>;
|
|
120
|
-
} : {
|
|
121
|
-
|
|
122
|
-
}
|
|
114
|
+
} : {} : {})> : T extends {
|
|
115
|
+
additionalProperties: infer AP;
|
|
116
|
+
} ? AP extends boolean ? AP extends true ? {
|
|
123
117
|
[key: string]: any;
|
|
124
|
-
}
|
|
118
|
+
} : {} : AP extends Schema ? {
|
|
119
|
+
[key: string]: FromSchema<AP, Depth>;
|
|
120
|
+
} : {} : {};
|
|
125
121
|
type RequiredKeys<T> = T extends {
|
|
126
122
|
required: infer R;
|
|
127
123
|
} ? R extends readonly (infer K)[] ? K extends string ? K : never : never : never;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../src/schema/schema.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AA2MX,MAAM,QAAQ,GAAG;IACf,IAAI,EAAE,QAAQ;IACd,UAAU,EAAE;QACV,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACrB,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE;KACvB;IACD,QAAQ,EAAE,CAAC,GAAG,EAAE,GAAG,CAAC;IACpB,oBAAoB,EAAE,KAAK;CACF,CAAC"}
|
|
@@ -20,7 +20,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.*/
|
|
22
22
|
export function isService(value) {
|
|
23
|
-
|
|
24
|
-
return typeof maybeService?.serviceName === 'string';
|
|
23
|
+
return value !== null && typeof value === "object" && "serviceName" in value && typeof value.serviceName === "string";
|
|
25
24
|
}
|
|
26
25
|
//# sourceMappingURL=is-service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-service.js","sourceRoot":"","sources":["../../src/service/is-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAKX,MAAM,UAAU,SAAS,CAAC,KAAc;IACtC,
|
|
1
|
+
{"version":3,"file":"is-service.js","sourceRoot":"","sources":["../../src/service/is-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAKX,MAAM,UAAU,SAAS,CAAC,KAAc;IACtC,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,aAAa,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ,CAAC;AACxH,CAAC"}
|
|
@@ -11,8 +11,7 @@ export type SuccessResult<Result> = Result & {
|
|
|
11
11
|
readonly error?: never;
|
|
12
12
|
readonly progress: 1.0;
|
|
13
13
|
};
|
|
14
|
-
export type
|
|
15
|
-
export type ProgressiveResult<Result, Error> = IntermediateResult<Result> | FinalResult<Result, Error>;
|
|
14
|
+
export type ProgressiveResult<Result, Error> = IntermediateResult<Result> | SuccessResult<Result> | ErrorResult<Result, Error>;
|
|
16
15
|
/**
|
|
17
16
|
* Results must be objects as we are going to add error and progress properties to them.
|
|
18
17
|
*/
|
|
@@ -81,17 +80,17 @@ export declare function ProgressiveResultSchema<T extends ResultSchema, E extend
|
|
|
81
80
|
/**
|
|
82
81
|
* Checks if the result is an error result.
|
|
83
82
|
*/
|
|
84
|
-
export declare function isErrorResult<FinalValue
|
|
83
|
+
export declare function isErrorResult<FinalValue, ErrorValue>(result: ProgressiveResult<FinalValue, ErrorValue>): result is ErrorResult<FinalValue, ErrorValue>;
|
|
85
84
|
/**
|
|
86
85
|
* Checks if the result is not started. We check progress < 0.0 to mean not started.
|
|
87
86
|
*/
|
|
88
|
-
export declare function isNotStarted<FinalValue
|
|
87
|
+
export declare function isNotStarted<FinalValue, ErrorValue>(result: ProgressiveResult<FinalValue, ErrorValue>): result is IntermediateResult<FinalValue>;
|
|
89
88
|
/**
|
|
90
89
|
* Checks if the result is an intermediate result.
|
|
91
90
|
*/
|
|
92
|
-
export declare function isIntermediateResult<FinalValue
|
|
91
|
+
export declare function isIntermediateResult<FinalValue, ErrorValue>(result: ProgressiveResult<FinalValue, ErrorValue>): result is IntermediateResult<FinalValue>;
|
|
93
92
|
/**
|
|
94
93
|
* Checks if the result is a final result.
|
|
95
94
|
*/
|
|
96
|
-
export declare function isSuccessResult<FinalValue
|
|
95
|
+
export declare function isSuccessResult<FinalValue, ErrorValue>(result: ProgressiveResult<FinalValue, ErrorValue>): result is SuccessResult<FinalValue>;
|
|
97
96
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"progressive-result.js","sourceRoot":"","sources":["../../src/service/progressive-result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;
|
|
1
|
+
{"version":3,"file":"progressive-result.js","sourceRoot":"","sources":["../../src/service/progressive-result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AA0BX;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAyB,WAAc;IACxE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACtD,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,UAAU;YACb,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;SACzB;QACD,QAAQ,EAAE,CAAC,GAAG,QAAQ,EAAE,UAAU,CAAC;KAC3B,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CAAyB,WAAc;IAC7E,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACtD,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,UAAU;YACb,KAAK,EAAE,WAAW;SACnB;QACD,QAAQ,EAAE,CAAC,UAAU,CAAC;KACd,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAiD,WAAc,EAAE,WAAc;IAC9G,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACtD,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,UAAU;YACb,KAAK,EAAE,WAAW;SACnB;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACX,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACrC,aAAgB,EAChB,WAAc;IAEd,OAAO;QACL,KAAK,EAAE,CAAC,wBAAwB,CAAC,aAAa,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;KAC3H,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAiD;IAEjD,OAAO,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC;AAC7D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAC1B,MAAiD;IAEjD,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC;AACzD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAiD;IAEjD,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC;AAC3D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAiD;IAEjD,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC;AAC3D,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Service } from './service.js';
|
|
2
|
+
import { Observe } from '../observe/index.js';
|
|
3
|
+
import { Expand, IsVoid, NoNever } from '../types/index.js';
|
|
4
|
+
declare const NESTED_SERVICE_SEPARATOR = "_";
|
|
5
|
+
export type WithObservableActions<T extends Service> = T & {
|
|
6
|
+
actions: Observe<ServiceActionMessages<T>>;
|
|
7
|
+
};
|
|
8
|
+
export declare function addObservableActions<T extends Service>(service: T): WithObservableActions<T>;
|
|
9
|
+
type FunctionsToMessages<T, Prefix extends string = ''> = {
|
|
10
|
+
[K in keyof T]: K extends string ? T[K] extends (...args: any[]) => unknown ? {
|
|
11
|
+
action: `${Prefix}${K}`;
|
|
12
|
+
args: Parameters<T[K]>;
|
|
13
|
+
} : never : never;
|
|
14
|
+
};
|
|
15
|
+
type SubServices<T> = NoNever<{
|
|
16
|
+
[K in keyof T]: T[K] extends Service ? T[K] : never;
|
|
17
|
+
}>;
|
|
18
|
+
type SubServiceActionMessages<T, ParentPrefix extends string = ''> = {
|
|
19
|
+
[K in keyof T]: K extends string ? ServiceActionMessagesWithPrefix<T[K], `${ParentPrefix}${K}${typeof NESTED_SERVICE_SEPARATOR}`> : never;
|
|
20
|
+
};
|
|
21
|
+
type IsPromiseOrVoid<T> = T extends Promise<unknown> ? true : IsVoid<T>;
|
|
22
|
+
type PromiseOrVoidFunctions<T> = NoNever<{
|
|
23
|
+
[K in keyof T]: T[K] extends (...args: any[]) => infer R ? (IsPromiseOrVoid<R> extends true ? T[K] : never) : never;
|
|
24
|
+
}>;
|
|
25
|
+
type ServiceActionMessagesWithPrefix<T, Prefix extends string = ''> = FunctionsToMessages<PromiseOrVoidFunctions<T>, Prefix>[keyof FunctionsToMessages<PromiseOrVoidFunctions<T>, Prefix>] | (T extends Service ? Expand<SubServiceActionMessages<SubServices<T>, Prefix>[keyof SubServiceActionMessages<SubServices<T>, Prefix>]> : never);
|
|
26
|
+
export type ServiceActionMessages<T> = Extract<ServiceActionMessagesWithPrefix<T>, {
|
|
27
|
+
action: string;
|
|
28
|
+
}>;
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
import { isService } from "./is-service.js";
|
|
23
|
+
import { createObservableEvent } from '../observe/index.js';
|
|
24
|
+
import { isPromise } from '../internal/promise/is-promise.js';
|
|
25
|
+
const NESTED_SERVICE_SEPARATOR = '_';
|
|
26
|
+
/**
|
|
27
|
+
* Returns true if this function return value is from an action function.
|
|
28
|
+
* Action functions are only allowed to return void, BUT some action function implementations
|
|
29
|
+
* may be async and return a Promise<void>. This is convenient for authoring and since
|
|
30
|
+
* no other service functions are allowed to return Promises then we will assume this is an action.
|
|
31
|
+
*/
|
|
32
|
+
function isActionReturnValue(result) {
|
|
33
|
+
return result === undefined || isPromise(result);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Intercepts actions on a service and notifies via a callback.
|
|
37
|
+
*
|
|
38
|
+
* This function creates a proxy around the given service object. It intercepts
|
|
39
|
+
* action calls and sends back action messages after each call.
|
|
40
|
+
* It also wraps any child services within their own namespaced interceptActions Proxy.
|
|
41
|
+
*
|
|
42
|
+
* @template T - The type of the service object.
|
|
43
|
+
* @param {T} service - The service object to be proxied.
|
|
44
|
+
* @param {string} prefix - A prefix to be added to action names for nested services.
|
|
45
|
+
* @param {(...args: unknown[]) => void} callback - A callback function to be called after an action is executed.
|
|
46
|
+
* @returns {T} - The proxied service object.
|
|
47
|
+
*/
|
|
48
|
+
function interceptActions(service, prefix, callback) {
|
|
49
|
+
const propertyCache = new Map();
|
|
50
|
+
const serviceCache = new Map();
|
|
51
|
+
return new Proxy(service, {
|
|
52
|
+
get(target, prop, receiver) {
|
|
53
|
+
const value = Reflect.get(target, prop, receiver);
|
|
54
|
+
const cached = propertyCache.get(prop);
|
|
55
|
+
if (cached) {
|
|
56
|
+
return cached;
|
|
57
|
+
}
|
|
58
|
+
let returnValue = value;
|
|
59
|
+
if (typeof prop === 'string') {
|
|
60
|
+
if (typeof value === 'function') {
|
|
61
|
+
returnValue = (...args) => {
|
|
62
|
+
// Call the original function with the same arguments
|
|
63
|
+
// the binding to the target as `this` shouldn't be necessary but
|
|
64
|
+
// we'll add it out of an abundance of caution.
|
|
65
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- calling with same args.
|
|
66
|
+
const result = value.call(target, ...args);
|
|
67
|
+
const executeCallback = () => {
|
|
68
|
+
// this is an action, as actions always return void.
|
|
69
|
+
callback({ action: prefix + prop, args });
|
|
70
|
+
};
|
|
71
|
+
// Notify via callback if the function returns void
|
|
72
|
+
if (isActionReturnValue(result)) {
|
|
73
|
+
if (isPromise(result)) {
|
|
74
|
+
result.finally(executeCallback);
|
|
75
|
+
}
|
|
76
|
+
else {
|
|
77
|
+
executeCallback();
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
return result;
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
else if (isService(value)) {
|
|
84
|
+
// Wrap nested services in the same way
|
|
85
|
+
const cachedService = serviceCache.get(prop);
|
|
86
|
+
if (cachedService) {
|
|
87
|
+
return cachedService;
|
|
88
|
+
}
|
|
89
|
+
const wrappedService = interceptActions(value, prefix + prop + NESTED_SERVICE_SEPARATOR, callback);
|
|
90
|
+
serviceCache.set(prop, wrappedService);
|
|
91
|
+
return wrappedService;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
propertyCache.set(prop, returnValue);
|
|
95
|
+
return returnValue;
|
|
96
|
+
},
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
// Function to add observable actions to a service
|
|
100
|
+
export function addObservableActions(service) {
|
|
101
|
+
const [actions, notifyActions] = createObservableEvent();
|
|
102
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any -- the compiler is complaining about type recursion for no discernable reason.
|
|
103
|
+
return interceptActions({ ...service, actions }, '', notifyActions);
|
|
104
|
+
}
|
|
105
|
+
// Compile-time type unit tests
|
|
106
|
+
{
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=add-observable-actions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-observable-actions.js","sourceRoot":"","sources":["../../src/services/add-observable-actions.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAGX,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAW,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAE9D,MAAM,wBAAwB,GAAG,GAAG,CAAC;AAKrC;;;;;GAKG;AACH,SAAS,mBAAmB,CAAC,MAAe;IAC1C,OAAO,MAAM,KAAK,SAAS,IAAI,SAAS,CAAC,MAAM,CAAC,CAAC;AACnD,CAAC;AAED;;;;;;;;;;;;GAYG;AACH,SAAS,gBAAgB,CAAmB,OAAU,EAAE,MAAc,EAAE,QAAsC;IAC5G,MAAM,aAAa,GAAG,IAAI,GAAG,EAA4B,CAAC;IAC1D,MAAM,YAAY,GAAG,IAAI,GAAG,EAA4B,CAAC;IAEzD,OAAO,IAAI,KAAK,CAAC,OAAO,EAAE;QACxB,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ;YACxB,MAAM,KAAK,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC;YAClD,MAAM,MAAM,GAAG,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YACvC,IAAI,MAAM,EAAE,CAAC;gBACX,OAAO,MAAM,CAAC;YAChB,CAAC;YACD,IAAI,WAAW,GAAY,KAAK,CAAC;YACjC,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;gBAC7B,IAAI,OAAO,KAAK,KAAK,UAAU,EAAE,CAAC;oBAChC,WAAW,GAAG,CAAC,GAAG,IAAe,EAAE,EAAE;wBACnC,qDAAqD;wBACrD,iEAAiE;wBACjE,+CAA+C;wBAC/C,yFAAyF;wBACzF,MAAM,MAAM,GAAI,KAAa,CAAC,IAAI,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAC;wBACpD,MAAM,eAAe,GAAG,GAAG,EAAE;4BAC3B,oDAAoD;4BACpD,QAAQ,CAAC,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;wBAC5C,CAAC,CAAC;wBAEF,mDAAmD;wBACnD,IAAI,mBAAmB,CAAC,MAAM,CAAC,EAAE,CAAC;4BAChC,IAAI,SAAS,CAAC,MAAM,CAAC,EAAE,CAAC;gCACtB,MAAM,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC;4BAClC,CAAC;iCAAM,CAAC;gCACN,eAAe,EAAE,CAAC;4BACpB,CAAC;wBACH,CAAC;wBAED,OAAO,MAAM,CAAC;oBAChB,CAAC,CAAC;gBACJ,CAAC;qBAAM,IAAI,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;oBAC5B,uCAAuC;oBACvC,MAAM,aAAa,GAAG,YAAY,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;oBAC7C,IAAI,aAAa,EAAE,CAAC;wBAClB,OAAO,aAAa,CAAC;oBACvB,CAAC;oBACD,MAAM,cAAc,GAAG,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,wBAAwB,EAAE,QAAQ,CAAC,CAAC;oBACnG,YAAY,CAAC,GAAG,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;oBACvC,OAAO,cAAc,CAAC;gBACxB,CAAC;YACH,CAAC;YACD,aAAa,CAAC,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;YACrC,OAAO,WAAW,CAAC;QACrB,CAAC;KACF,CAAiB,CAAC;AACrB,CAAC;AAED,kDAAkD;AAClD,MAAM,UAAU,oBAAoB,CAAoB,OAAU;IAChE,MAAM,CAAC,OAAO,EAAE,aAAa,CAAC,GAAG,qBAAqB,EAA4B,CAAC;IACnF,8IAA8I;IAC9I,OAAQ,gBAAwB,CAAC,EAAE,GAAG,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;AAC/E,CAAC;AAuCD,+BAA+B;AAC/B,CAAC;AAoDD,CAAC"}
|
|
@@ -19,7 +19,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.*/
|
|
22
|
-
export
|
|
23
|
-
export
|
|
24
|
-
export * from
|
|
22
|
+
export { isService } from './is-service.js';
|
|
23
|
+
export { addObservableActions } from './add-observable-actions.js';
|
|
24
|
+
export * from './progressive-result.js';
|
|
25
25
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAGX,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAA0D,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC3H,cAAc,yBAAyB,CAAC"}
|
|
@@ -19,11 +19,7 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.*/
|
|
22
|
-
export function
|
|
23
|
-
|
|
24
|
-
for (const key of keys) {
|
|
25
|
-
delete result[key];
|
|
26
|
-
}
|
|
27
|
-
return result;
|
|
22
|
+
export function isService(value) {
|
|
23
|
+
return value !== null && typeof value === "object" && "serviceName" in value && typeof value.serviceName === "string";
|
|
28
24
|
}
|
|
29
|
-
//# sourceMappingURL=
|
|
25
|
+
//# sourceMappingURL=is-service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"is-service.js","sourceRoot":"","sources":["../../src/services/is-service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AAKX,MAAM,UAAU,SAAS,CAAC,KAAc;IACtC,OAAO,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,aAAa,IAAI,KAAK,IAAI,OAAO,KAAK,CAAC,WAAW,KAAK,QAAQ,CAAC;AACxH,CAAC"}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import { Schema } from "../schema/schema.js";
|
|
2
|
+
export type ErrorResult<Result, Error> = Partial<Result> & {
|
|
3
|
+
readonly error: Error;
|
|
4
|
+
readonly progress?: number;
|
|
5
|
+
};
|
|
6
|
+
export type IntermediateResult<Result> = Partial<Result> & {
|
|
7
|
+
readonly error?: never;
|
|
8
|
+
readonly progress: number;
|
|
9
|
+
};
|
|
10
|
+
export type SuccessResult<Result> = Result & {
|
|
11
|
+
readonly error?: never;
|
|
12
|
+
readonly progress: 1.0;
|
|
13
|
+
};
|
|
14
|
+
export type ProgressiveResult<Result, Error> = IntermediateResult<Result> | SuccessResult<Result> | ErrorResult<Result, Error>;
|
|
15
|
+
/**
|
|
16
|
+
* Results must be objects as we are going to add error and progress properties to them.
|
|
17
|
+
*/
|
|
18
|
+
type ResultSchema = Schema & {
|
|
19
|
+
properties: {};
|
|
20
|
+
required: string[];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* Returns a json schema for an final result with the specified value schema.
|
|
24
|
+
*/
|
|
25
|
+
export declare function SuccessResultSchema<T extends ResultSchema>(valueSchema: T): Omit<T, "properties" | "required"> & {
|
|
26
|
+
readonly type: "object";
|
|
27
|
+
readonly properties: {
|
|
28
|
+
readonly progress: {
|
|
29
|
+
readonly const: 1;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
readonly required: readonly [...string[], "progress"];
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Returns a json schema for an intermediate result with the specified result schema.
|
|
36
|
+
*/
|
|
37
|
+
export declare function IntermediateResultSchema<T extends ResultSchema>(valueSchema: T): Omit<T, "properties" | "required"> & {
|
|
38
|
+
readonly type: "object";
|
|
39
|
+
readonly properties: {
|
|
40
|
+
readonly error: T;
|
|
41
|
+
};
|
|
42
|
+
readonly required: readonly ["progress"];
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Returns a json schema for an error result with the specified result schema.
|
|
46
|
+
*/
|
|
47
|
+
export declare function ErrorResultSchema<T extends ResultSchema, E extends ResultSchema>(valueSchema: T, errorSchema: E): Omit<T, "properties" | "required"> & {
|
|
48
|
+
readonly type: "object";
|
|
49
|
+
readonly properties: {
|
|
50
|
+
readonly error: E;
|
|
51
|
+
};
|
|
52
|
+
readonly required: readonly ["error"];
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Returns a json schema for a progressive result with the specified result schemas.
|
|
56
|
+
*/
|
|
57
|
+
export declare function ProgressiveResultSchema<T extends ResultSchema, E extends ResultSchema>(successSchema: T, errorSchema: E): {
|
|
58
|
+
readonly oneOf: readonly [Omit<T, "properties" | "required"> & {
|
|
59
|
+
readonly type: "object";
|
|
60
|
+
readonly properties: {
|
|
61
|
+
readonly error: T;
|
|
62
|
+
};
|
|
63
|
+
readonly required: readonly ["progress"];
|
|
64
|
+
}, Omit<T, "properties" | "required"> & {
|
|
65
|
+
readonly type: "object";
|
|
66
|
+
readonly properties: {
|
|
67
|
+
readonly progress: {
|
|
68
|
+
readonly const: 1;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
readonly required: readonly [...string[], "progress"];
|
|
72
|
+
}, Omit<T, "properties" | "required"> & {
|
|
73
|
+
readonly type: "object";
|
|
74
|
+
readonly properties: {
|
|
75
|
+
readonly error: E;
|
|
76
|
+
};
|
|
77
|
+
readonly required: readonly ["error"];
|
|
78
|
+
}];
|
|
79
|
+
};
|
|
80
|
+
/**
|
|
81
|
+
* Checks if the result is an error result.
|
|
82
|
+
*/
|
|
83
|
+
export declare function isErrorResult<FinalValue, ErrorValue>(result: ProgressiveResult<FinalValue, ErrorValue>): result is ErrorResult<FinalValue, ErrorValue>;
|
|
84
|
+
/**
|
|
85
|
+
* Checks if the result is not started. We check progress < 0.0 to mean not started.
|
|
86
|
+
*/
|
|
87
|
+
export declare function isNotStarted<FinalValue, ErrorValue>(result: ProgressiveResult<FinalValue, ErrorValue>): result is IntermediateResult<FinalValue>;
|
|
88
|
+
/**
|
|
89
|
+
* Checks if the result is an intermediate result.
|
|
90
|
+
*/
|
|
91
|
+
export declare function isIntermediateResult<FinalValue, ErrorValue>(result: ProgressiveResult<FinalValue, ErrorValue>): result is IntermediateResult<FinalValue>;
|
|
92
|
+
/**
|
|
93
|
+
* Checks if the result is a final result.
|
|
94
|
+
*/
|
|
95
|
+
export declare function isSuccessResult<FinalValue, ErrorValue>(result: ProgressiveResult<FinalValue, ErrorValue>): result is SuccessResult<FinalValue>;
|
|
96
|
+
export { };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
/*MIT License
|
|
2
|
+
|
|
3
|
+
© Copyright 2025 Adobe. All rights reserved.
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.*/
|
|
22
|
+
/**
|
|
23
|
+
* Returns a json schema for an final result with the specified value schema.
|
|
24
|
+
*/
|
|
25
|
+
export function SuccessResultSchema(valueSchema) {
|
|
26
|
+
const { properties, required, ...rest } = valueSchema;
|
|
27
|
+
return {
|
|
28
|
+
...rest,
|
|
29
|
+
type: 'object',
|
|
30
|
+
properties: {
|
|
31
|
+
...properties,
|
|
32
|
+
progress: { const: 1.0 },
|
|
33
|
+
},
|
|
34
|
+
required: [...required, 'progress'],
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Returns a json schema for an intermediate result with the specified result schema.
|
|
39
|
+
*/
|
|
40
|
+
export function IntermediateResultSchema(valueSchema) {
|
|
41
|
+
const { properties, required, ...rest } = valueSchema;
|
|
42
|
+
return {
|
|
43
|
+
...rest,
|
|
44
|
+
type: 'object',
|
|
45
|
+
properties: {
|
|
46
|
+
...properties,
|
|
47
|
+
error: valueSchema,
|
|
48
|
+
},
|
|
49
|
+
required: ['progress'],
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Returns a json schema for an error result with the specified result schema.
|
|
54
|
+
*/
|
|
55
|
+
export function ErrorResultSchema(valueSchema, errorSchema) {
|
|
56
|
+
const { properties, required, ...rest } = valueSchema;
|
|
57
|
+
return {
|
|
58
|
+
...rest,
|
|
59
|
+
type: 'object',
|
|
60
|
+
properties: {
|
|
61
|
+
...properties,
|
|
62
|
+
error: errorSchema,
|
|
63
|
+
},
|
|
64
|
+
required: ['error'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Returns a json schema for a progressive result with the specified result schemas.
|
|
69
|
+
*/
|
|
70
|
+
export function ProgressiveResultSchema(successSchema, errorSchema) {
|
|
71
|
+
return {
|
|
72
|
+
oneOf: [IntermediateResultSchema(successSchema), SuccessResultSchema(successSchema), ErrorResultSchema(successSchema, errorSchema)],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Checks if the result is an error result.
|
|
77
|
+
*/
|
|
78
|
+
export function isErrorResult(result) {
|
|
79
|
+
return result.error !== null && result.error !== undefined;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Checks if the result is not started. We check progress < 0.0 to mean not started.
|
|
83
|
+
*/
|
|
84
|
+
export function isNotStarted(result) {
|
|
85
|
+
return !isErrorResult(result) && result.progress < 0.0;
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Checks if the result is an intermediate result.
|
|
89
|
+
*/
|
|
90
|
+
export function isIntermediateResult(result) {
|
|
91
|
+
return !isErrorResult(result) && result.progress !== 1.0;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Checks if the result is a final result.
|
|
95
|
+
*/
|
|
96
|
+
export function isSuccessResult(result) {
|
|
97
|
+
return !isErrorResult(result) && result.progress === 1.0;
|
|
98
|
+
}
|
|
99
|
+
//# sourceMappingURL=progressive-result.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"progressive-result.js","sourceRoot":"","sources":["../../src/services/progressive-result.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW;AA4BX;;GAEG;AACH,MAAM,UAAU,mBAAmB,CAAyB,WAAc;IACxE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACtD,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,UAAU;YACb,QAAQ,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE;SACzB;QACD,QAAQ,EAAE,CAAC,GAAG,QAAQ,EAAE,UAAU,CAAC;KAC3B,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,wBAAwB,CAAyB,WAAc;IAC7E,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACtD,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,UAAU;YACb,KAAK,EAAE,WAAW;SACnB;QACD,QAAQ,EAAE,CAAC,UAAU,CAAC;KACd,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB,CAAiD,WAAc,EAAE,WAAc;IAC9G,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,IAAI,EAAE,GAAG,WAAW,CAAC;IACtD,OAAO;QACL,GAAG,IAAI;QACP,IAAI,EAAE,QAAQ;QACd,UAAU,EAAE;YACV,GAAG,UAAU;YACb,KAAK,EAAE,WAAW;SACnB;QACD,QAAQ,EAAE,CAAC,OAAO,CAAC;KACX,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,uBAAuB,CACrC,aAAgB,EAChB,WAAc;IAEd,OAAO;QACL,KAAK,EAAE,CAAC,wBAAwB,CAAC,aAAa,CAAC,EAAE,mBAAmB,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC;KAC3H,CAAC;AACb,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,aAAa,CAC3B,MAAiD;IAEjD,OAAO,MAAM,CAAC,KAAK,KAAK,IAAI,IAAI,MAAM,CAAC,KAAK,KAAK,SAAS,CAAC;AAC7D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,YAAY,CAC1B,MAAiD;IAEjD,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,GAAG,GAAG,CAAC;AACzD,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,oBAAoB,CAClC,MAAiD;IAEjD,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC;AAC3D,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,eAAe,CAC7B,MAAiD;IAEjD,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,KAAK,GAAG,CAAC;AAC3D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/services/service.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;WAoBW"}
|