@velajs/vela 1.18.0 → 1.19.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +78 -14
- package/dist/configurable-module.builder-5FGMaXG6.js +91 -0
- package/dist/configurable-module.builder-5FGMaXG6.js.map +1 -0
- package/dist/container-BqUHID4l.js +645 -0
- package/dist/container-BqUHID4l.js.map +1 -0
- package/dist/cron-matcher-C9qv5OUA.js +113 -0
- package/dist/cron-matcher-C9qv5OUA.js.map +1 -0
- package/dist/decorate-GcSMAbKn.js +528 -0
- package/dist/decorate-GcSMAbKn.js.map +1 -0
- package/dist/decorators-C8YBFCIk.js +53 -0
- package/dist/decorators-C8YBFCIk.js.map +1 -0
- package/dist/define-module-NOyOZNXD.js +235 -0
- package/dist/define-module-NOyOZNXD.js.map +1 -0
- package/dist/discovery.service-BYm95SSD.js +368 -0
- package/dist/discovery.service-BYm95SSD.js.map +1 -0
- package/dist/discovery.service-Cpf1QcZ5.d.ts +648 -0
- package/dist/i18n/index.d.ts +138 -10
- package/dist/i18n/index.js +270 -8
- package/dist/i18n/index.js.map +1 -0
- package/dist/index-D72EQfcC.d.ts +430 -0
- package/dist/index-DhShDLCM.d.ts +2310 -0
- package/dist/index.d.ts +6 -66
- package/dist/index.js +14 -71
- package/dist/internal.d.ts +13 -17
- package/dist/internal.js +6 -19
- package/dist/live/index.d.ts +2 -12
- package/dist/live/index.js +826 -16
- package/dist/live/index.js.map +1 -0
- package/dist/metadata.registry-D1od8ZBt.d.ts +842 -0
- package/dist/plugin-ByBlVOve.js +1387 -0
- package/dist/plugin-ByBlVOve.js.map +1 -0
- package/dist/queue/index.d.ts +247 -10
- package/dist/queue/index.js +384 -12
- package/dist/queue/index.js.map +1 -0
- package/dist/request-context-C3nCGJNd.js +26 -0
- package/dist/request-context-C3nCGJNd.js.map +1 -0
- package/dist/route.manager-DRAZ5X04.js +991 -0
- package/dist/route.manager-DRAZ5X04.js.map +1 -0
- package/dist/schedule-node/index.d.ts +32 -3
- package/dist/schedule-node/index.js +97 -3
- package/dist/schedule-node/index.js.map +1 -0
- package/dist/schedule.registry-DVm7Jp5w.d.ts +55 -0
- package/dist/seeder/index.d.ts +75 -5
- package/dist/seeder/index.js +105 -4
- package/dist/seeder/index.js.map +1 -0
- package/dist/signed-url-CMmi0SIb.js +56 -0
- package/dist/signed-url-CMmi0SIb.js.map +1 -0
- package/dist/signed-url-DKhgja4U.d.ts +16 -0
- package/dist/src-eb5CI6Xn.js +2151 -0
- package/dist/src-eb5CI6Xn.js.map +1 -0
- package/dist/storage/index.d.ts +57 -4
- package/dist/storage/index.js +22 -5
- package/dist/storage/index.js.map +1 -0
- package/dist/streaming/index.d.ts +2 -2
- package/dist/streaming/index.js +2 -1
- package/dist/websocket/index.d.ts +3 -12
- package/dist/websocket/index.js +2 -16
- package/dist/websocket-DXmB-MWJ.js +697 -0
- package/dist/websocket-DXmB-MWJ.js.map +1 -0
- package/dist/websocket-node/index.d.ts +108 -6
- package/dist/websocket-node/index.js +228 -6
- package/dist/websocket-node/index.js.map +1 -0
- package/package.json +67 -53
- package/dist/__tests__/workers/entry.d.ts +0 -9
- package/dist/__tests__/workers-als/entry-als.d.ts +0 -9
- package/dist/application.d.ts +0 -91
- package/dist/application.js +0 -308
- package/dist/cache/cache.decorators.d.ts +0 -2
- package/dist/cache/cache.decorators.js +0 -4
- package/dist/cache/cache.interceptor.d.ts +0 -9
- package/dist/cache/cache.interceptor.js +0 -60
- package/dist/cache/cache.module.d.ts +0 -7
- package/dist/cache/cache.module.js +0 -58
- package/dist/cache/cache.service.d.ts +0 -9
- package/dist/cache/cache.service.js +0 -42
- package/dist/cache/cache.store.d.ts +0 -12
- package/dist/cache/cache.store.js +0 -51
- package/dist/cache/cache.tokens.d.ts +0 -6
- package/dist/cache/cache.tokens.js +0 -5
- package/dist/cache/cache.types.d.ts +0 -41
- package/dist/cache/cache.types.js +0 -1
- package/dist/cache/index.d.ts +0 -8
- package/dist/cache/index.js +0 -7
- package/dist/cache/tiered-cache.store.d.ts +0 -19
- package/dist/cache/tiered-cache.store.js +0 -40
- package/dist/config/config.module.d.ts +0 -19
- package/dist/config/config.module.js +0 -98
- package/dist/config/config.service.d.ts +0 -20
- package/dist/config/config.service.js +0 -43
- package/dist/config/config.store.d.ts +0 -46
- package/dist/config/config.store.js +0 -119
- package/dist/config/config.tokens.d.ts +0 -13
- package/dist/config/config.tokens.js +0 -14
- package/dist/config/config.types.d.ts +0 -41
- package/dist/config/config.types.js +0 -4
- package/dist/config/index.d.ts +0 -7
- package/dist/config/index.js +0 -5
- package/dist/config/register-as.d.ts +0 -52
- package/dist/config/register-as.js +0 -39
- package/dist/constants.d.ts +0 -44
- package/dist/constants.js +0 -46
- package/dist/container/container.d.ts +0 -154
- package/dist/container/container.js +0 -849
- package/dist/container/decorators.d.ts +0 -17
- package/dist/container/decorators.js +0 -57
- package/dist/container/disposable.d.ts +0 -5
- package/dist/container/disposable.js +0 -33
- package/dist/container/index.d.ts +0 -6
- package/dist/container/index.js +0 -5
- package/dist/container/mixin.d.ts +0 -24
- package/dist/container/mixin.js +0 -26
- package/dist/container/module-ref.d.ts +0 -21
- package/dist/container/module-ref.js +0 -48
- package/dist/container/types.d.ts +0 -154
- package/dist/container/types.js +0 -49
- package/dist/cors/cors.module.d.ts +0 -7
- package/dist/cors/cors.module.js +0 -37
- package/dist/cors/cors.tokens.d.ts +0 -3
- package/dist/cors/cors.tokens.js +0 -2
- package/dist/cors/cors.types.d.ts +0 -8
- package/dist/cors/cors.types.js +0 -1
- package/dist/cors/index.d.ts +0 -3
- package/dist/cors/index.js +0 -2
- package/dist/crypto/signed-url.d.ts +0 -12
- package/dist/crypto/signed-url.js +0 -60
- package/dist/discovery/discoverable.decorator.d.ts +0 -38
- package/dist/discovery/discoverable.decorator.js +0 -42
- package/dist/discovery/discovery.service.d.ts +0 -102
- package/dist/discovery/discovery.service.js +0 -177
- package/dist/discovery/index.d.ts +0 -2
- package/dist/discovery/index.js +0 -2
- package/dist/entrypoint/entrypoint.registry.d.ts +0 -42
- package/dist/entrypoint/entrypoint.registry.js +0 -112
- package/dist/entrypoint/entrypoint.types.d.ts +0 -41
- package/dist/entrypoint/entrypoint.types.js +0 -3
- package/dist/entrypoint/execution-context.d.ts +0 -15
- package/dist/entrypoint/execution-context.js +0 -21
- package/dist/entrypoint/execution-scope.d.ts +0 -21
- package/dist/entrypoint/execution-scope.js +0 -28
- package/dist/entrypoint/index.d.ts +0 -4
- package/dist/entrypoint/index.js +0 -4
- package/dist/errors/http-exception.d.ts +0 -62
- package/dist/errors/http-exception.js +0 -134
- package/dist/errors/index.d.ts +0 -1
- package/dist/errors/index.js +0 -1
- package/dist/event-emitter/event-emitter.decorators.d.ts +0 -1
- package/dist/event-emitter/event-emitter.decorators.js +0 -10
- package/dist/event-emitter/event-emitter.module.d.ts +0 -2
- package/dist/event-emitter/event-emitter.module.js +0 -23
- package/dist/event-emitter/event-emitter.service.d.ts +0 -13
- package/dist/event-emitter/event-emitter.service.js +0 -127
- package/dist/event-emitter/event-emitter.subscriber.d.ts +0 -9
- package/dist/event-emitter/event-emitter.subscriber.js +0 -45
- package/dist/event-emitter/event-emitter.tokens.d.ts +0 -1
- package/dist/event-emitter/event-emitter.tokens.js +0 -1
- package/dist/event-emitter/event-emitter.types.d.ts +0 -5
- package/dist/event-emitter/event-emitter.types.js +0 -1
- package/dist/event-emitter/index.d.ts +0 -6
- package/dist/event-emitter/index.js +0 -5
- package/dist/factory/adapter.d.ts +0 -36
- package/dist/factory/adapter.js +0 -18
- package/dist/factory/bootstrap.d.ts +0 -23
- package/dist/factory/bootstrap.js +0 -108
- package/dist/factory.d.ts +0 -16
- package/dist/factory.js +0 -36
- package/dist/fetch/fetch.module.d.ts +0 -7
- package/dist/fetch/fetch.module.js +0 -31
- package/dist/fetch/fetch.service.d.ts +0 -24
- package/dist/fetch/fetch.service.js +0 -145
- package/dist/fetch/fetch.types.d.ts +0 -24
- package/dist/fetch/fetch.types.js +0 -1
- package/dist/fetch/index.d.ts +0 -3
- package/dist/fetch/index.js +0 -2
- package/dist/health/health.http.d.ts +0 -14
- package/dist/health/health.http.js +0 -75
- package/dist/health/health.indicator.d.ts +0 -9
- package/dist/health/health.indicator.js +0 -32
- package/dist/health/health.module.d.ts +0 -2
- package/dist/health/health.module.js +0 -26
- package/dist/health/health.service.d.ts +0 -7
- package/dist/health/health.service.js +0 -69
- package/dist/health/health.types.d.ts +0 -15
- package/dist/health/health.types.js +0 -1
- package/dist/health/index.d.ts +0 -6
- package/dist/health/index.js +0 -4
- package/dist/http/ambient.d.ts +0 -17
- package/dist/http/ambient.js +0 -44
- package/dist/http/argument-resolver.d.ts +0 -10
- package/dist/http/argument-resolver.js +0 -89
- package/dist/http/decorators.d.ts +0 -198
- package/dist/http/decorators.js +0 -321
- package/dist/http/execution-context.d.ts +0 -8
- package/dist/http/execution-context.js +0 -35
- package/dist/http/handler-executor.d.ts +0 -20
- package/dist/http/handler-executor.js +0 -111
- package/dist/http/index.d.ts +0 -12
- package/dist/http/index.js +0 -7
- package/dist/http/instantiate.d.ts +0 -4
- package/dist/http/instantiate.js +0 -45
- package/dist/http/lazy-param.decorator.d.ts +0 -37
- package/dist/http/lazy-param.decorator.js +0 -117
- package/dist/http/request-container.d.ts +0 -16
- package/dist/http/request-container.js +0 -19
- package/dist/http/request-context.d.ts +0 -13
- package/dist/http/request-context.js +0 -22
- package/dist/http/response-mapper.d.ts +0 -8
- package/dist/http/response-mapper.js +0 -42
- package/dist/http/route-contributor.d.ts +0 -68
- package/dist/http/route-contributor.js +0 -22
- package/dist/http/route-map.d.ts +0 -30
- package/dist/http/route-map.js +0 -27
- package/dist/http/route.manager.d.ts +0 -92
- package/dist/http/route.manager.js +0 -481
- package/dist/http/types.d.ts +0 -37
- package/dist/http/types.js +0 -1
- package/dist/http/url/index.d.ts +0 -4
- package/dist/http/url/index.js +0 -3
- package/dist/http/url/signed-url.guard.d.ts +0 -27
- package/dist/http/url/signed-url.guard.js +0 -62
- package/dist/http/url/signing-secret.d.ts +0 -20
- package/dist/http/url/signing-secret.js +0 -24
- package/dist/http/url/url-generator.service.d.ts +0 -52
- package/dist/http/url/url-generator.service.js +0 -104
- package/dist/i18n/deep-merge.d.ts +0 -2
- package/dist/i18n/deep-merge.js +0 -15
- package/dist/i18n/i18n.middleware.d.ts +0 -15
- package/dist/i18n/i18n.middleware.js +0 -94
- package/dist/i18n/i18n.module.d.ts +0 -13
- package/dist/i18n/i18n.module.js +0 -69
- package/dist/i18n/i18n.options.d.ts +0 -30
- package/dist/i18n/i18n.options.js +0 -16
- package/dist/i18n/i18n.service.d.ts +0 -20
- package/dist/i18n/i18n.service.js +0 -49
- package/dist/i18n/i18n.tokens.d.ts +0 -6
- package/dist/i18n/i18n.tokens.js +0 -3
- package/dist/i18n/i18n.types.d.ts +0 -6
- package/dist/i18n/i18n.types.js +0 -1
- package/dist/i18n/message-loader.service.d.ts +0 -21
- package/dist/i18n/message-loader.service.js +0 -90
- package/dist/i18n/message-registry.d.ts +0 -16
- package/dist/i18n/message-registry.js +0 -49
- package/dist/lifecycle/index.d.ts +0 -20
- package/dist/lifecycle/index.js +0 -15
- package/dist/live/live.cursor.d.ts +0 -22
- package/dist/live/live.cursor.js +0 -56
- package/dist/live/live.decorators.d.ts +0 -32
- package/dist/live/live.decorators.js +0 -46
- package/dist/live/live.delta.d.ts +0 -15
- package/dist/live/live.delta.js +0 -51
- package/dist/live/live.engine.d.ts +0 -81
- package/dist/live/live.engine.js +0 -448
- package/dist/live/live.invalidation.d.ts +0 -45
- package/dist/live/live.invalidation.js +0 -99
- package/dist/live/live.module.d.ts +0 -28
- package/dist/live/live.module.js +0 -87
- package/dist/live/live.tokens.d.ts +0 -9
- package/dist/live/live.tokens.js +0 -8
- package/dist/live/live.types.d.ts +0 -138
- package/dist/live/live.types.js +0 -1
- package/dist/live/presence.d.ts +0 -44
- package/dist/live/presence.js +0 -130
- package/dist/metadata.d.ts +0 -10
- package/dist/metadata.js +0 -20
- package/dist/module/configurable-module.builder.d.ts +0 -56
- package/dist/module/configurable-module.builder.js +0 -84
- package/dist/module/configurable-module.types.d.ts +0 -93
- package/dist/module/configurable-module.types.js +0 -5
- package/dist/module/decorators.d.ts +0 -10
- package/dist/module/decorators.js +0 -47
- package/dist/module/define-module.d.ts +0 -112
- package/dist/module/define-module.js +0 -232
- package/dist/module/graph.d.ts +0 -10
- package/dist/module/graph.js +0 -35
- package/dist/module/index.d.ts +0 -10
- package/dist/module/index.js +0 -7
- package/dist/module/lazy-modules.d.ts +0 -82
- package/dist/module/lazy-modules.js +0 -231
- package/dist/module/lazy-provider.d.ts +0 -65
- package/dist/module/lazy-provider.js +0 -111
- package/dist/module/middleware.d.ts +0 -30
- package/dist/module/middleware.js +0 -67
- package/dist/module/module-loader.d.ts +0 -58
- package/dist/module/module-loader.js +0 -484
- package/dist/module/stable-hash.d.ts +0 -15
- package/dist/module/stable-hash.js +0 -52
- package/dist/module/types.d.ts +0 -1
- package/dist/module/types.js +0 -1
- package/dist/openapi/decorators.d.ts +0 -34
- package/dist/openapi/decorators.js +0 -66
- package/dist/openapi/document.d.ts +0 -3
- package/dist/openapi/document.js +0 -316
- package/dist/openapi/index.d.ts +0 -7
- package/dist/openapi/index.js +0 -6
- package/dist/openapi/redoc-ui.d.ts +0 -1
- package/dist/openapi/redoc-ui.js +0 -19
- package/dist/openapi/scalar-ui.d.ts +0 -1
- package/dist/openapi/scalar-ui.js +0 -19
- package/dist/openapi/swagger-ui.d.ts +0 -1
- package/dist/openapi/swagger-ui.js +0 -23
- package/dist/openapi/types.d.ts +0 -182
- package/dist/openapi/types.js +0 -4
- package/dist/openapi/zod-to-json-schema.d.ts +0 -4
- package/dist/openapi/zod-to-json-schema.js +0 -57
- package/dist/pipeline/app-providers.d.ts +0 -10
- package/dist/pipeline/app-providers.js +0 -43
- package/dist/pipeline/component.manager.d.ts +0 -25
- package/dist/pipeline/component.manager.js +0 -66
- package/dist/pipeline/decorators.d.ts +0 -10
- package/dist/pipeline/decorators.js +0 -42
- package/dist/pipeline/index.d.ts +0 -12
- package/dist/pipeline/index.js +0 -7
- package/dist/pipeline/pipeline-runner.d.ts +0 -31
- package/dist/pipeline/pipeline-runner.js +0 -40
- package/dist/pipeline/pipes.d.ts +0 -48
- package/dist/pipeline/pipes.js +0 -104
- package/dist/pipeline/reflector.d.ts +0 -86
- package/dist/pipeline/reflector.js +0 -121
- package/dist/pipeline/scoped-components.d.ts +0 -26
- package/dist/pipeline/scoped-components.js +0 -27
- package/dist/pipeline/tokens.d.ts +0 -33
- package/dist/pipeline/tokens.js +0 -27
- package/dist/pipeline/types.d.ts +0 -64
- package/dist/pipeline/types.js +0 -1
- package/dist/plugin/plugin.d.ts +0 -31
- package/dist/plugin/plugin.js +0 -111
- package/dist/queue/inline.driver.d.ts +0 -30
- package/dist/queue/inline.driver.js +0 -58
- package/dist/queue/queue.binding.d.ts +0 -23
- package/dist/queue/queue.binding.js +0 -53
- package/dist/queue/queue.client.d.ts +0 -20
- package/dist/queue/queue.client.js +0 -33
- package/dist/queue/queue.decorators.d.ts +0 -23
- package/dist/queue/queue.decorators.js +0 -46
- package/dist/queue/queue.dispatch.d.ts +0 -36
- package/dist/queue/queue.dispatch.js +0 -102
- package/dist/queue/queue.module.d.ts +0 -32
- package/dist/queue/queue.module.js +0 -80
- package/dist/queue/queue.tokens.d.ts +0 -21
- package/dist/queue/queue.tokens.js +0 -34
- package/dist/queue/queue.types.d.ts +0 -61
- package/dist/queue/queue.types.js +0 -4
- package/dist/registry/index.d.ts +0 -2
- package/dist/registry/index.js +0 -1
- package/dist/registry/metadata.registry.d.ts +0 -73
- package/dist/registry/metadata.registry.js +0 -357
- package/dist/registry/paths.d.ts +0 -3
- package/dist/registry/paths.js +0 -15
- package/dist/registry/types.d.ts +0 -116
- package/dist/registry/types.js +0 -1
- package/dist/registry/util.d.ts +0 -3
- package/dist/registry/util.js +0 -8
- package/dist/schedule/cron-matcher.d.ts +0 -2
- package/dist/schedule/cron-matcher.js +0 -62
- package/dist/schedule/index.d.ts +0 -8
- package/dist/schedule/index.js +0 -5
- package/dist/schedule/schedule.decorators.d.ts +0 -2
- package/dist/schedule/schedule.decorators.js +0 -18
- package/dist/schedule/schedule.module.d.ts +0 -9
- package/dist/schedule/schedule.module.js +0 -28
- package/dist/schedule/schedule.registry.d.ts +0 -23
- package/dist/schedule/schedule.registry.js +0 -63
- package/dist/schedule/schedule.tokens.d.ts +0 -2
- package/dist/schedule/schedule.tokens.js +0 -2
- package/dist/schedule/schedule.types.d.ts +0 -8
- package/dist/schedule/schedule.types.js +0 -1
- package/dist/schedule-node/schedule-node.module.d.ts +0 -9
- package/dist/schedule-node/schedule-node.module.js +0 -28
- package/dist/schedule-node/schedule.executor.d.ts +0 -19
- package/dist/schedule-node/schedule.executor.js +0 -107
- package/dist/seeder/seeder.decorator.d.ts +0 -7
- package/dist/seeder/seeder.decorator.js +0 -15
- package/dist/seeder/seeder.module.d.ts +0 -16
- package/dist/seeder/seeder.module.js +0 -44
- package/dist/seeder/seeder.registry.d.ts +0 -23
- package/dist/seeder/seeder.registry.js +0 -83
- package/dist/seeder/seeder.tokens.d.ts +0 -2
- package/dist/seeder/seeder.tokens.js +0 -1
- package/dist/seeder/seeder.types.d.ts +0 -20
- package/dist/seeder/seeder.types.js +0 -1
- package/dist/serialization/index.d.ts +0 -2
- package/dist/serialization/index.js +0 -2
- package/dist/serialization/serialize.decorator.d.ts +0 -6
- package/dist/serialization/serialize.decorator.js +0 -7
- package/dist/serialization/serializer.interceptor.d.ts +0 -4
- package/dist/serialization/serializer.interceptor.js +0 -16
- package/dist/services/index.d.ts +0 -2
- package/dist/services/index.js +0 -1
- package/dist/services/logger.d.ts +0 -59
- package/dist/services/logger.js +0 -159
- package/dist/storage/path-template.d.ts +0 -9
- package/dist/storage/path-template.js +0 -20
- package/dist/storage/storage.types.d.ts +0 -41
- package/dist/storage/storage.types.js +0 -5
- package/dist/throttler/index.d.ts +0 -6
- package/dist/throttler/index.js +0 -5
- package/dist/throttler/throttler.decorators.d.ts +0 -3
- package/dist/throttler/throttler.decorators.js +0 -4
- package/dist/throttler/throttler.guard.d.ts +0 -9
- package/dist/throttler/throttler.guard.js +0 -72
- package/dist/throttler/throttler.module.d.ts +0 -7
- package/dist/throttler/throttler.module.js +0 -41
- package/dist/throttler/throttler.storage.d.ts +0 -10
- package/dist/throttler/throttler.storage.js +0 -44
- package/dist/throttler/throttler.tokens.d.ts +0 -6
- package/dist/throttler/throttler.tokens.js +0 -5
- package/dist/throttler/throttler.types.d.ts +0 -25
- package/dist/throttler/throttler.types.js +0 -1
- package/dist/validation/create-zod-dto.d.ts +0 -13
- package/dist/validation/create-zod-dto.js +0 -18
- package/dist/validation/index.d.ts +0 -3
- package/dist/validation/index.js +0 -2
- package/dist/validation/validation.pipe.d.ts +0 -4
- package/dist/validation/validation.pipe.js +0 -19
- package/dist/websocket/websocket.decorators.d.ts +0 -47
- package/dist/websocket/websocket.decorators.js +0 -80
- package/dist/websocket/websocket.module.d.ts +0 -35
- package/dist/websocket/websocket.module.js +0 -63
- package/dist/websocket/websocket.tokens.d.ts +0 -30
- package/dist/websocket/websocket.tokens.js +0 -27
- package/dist/websocket/websocket.types.d.ts +0 -102
- package/dist/websocket/websocket.types.js +0 -4
- package/dist/websocket/ws-argument-resolver.d.ts +0 -13
- package/dist/websocket/ws-argument-resolver.js +0 -40
- package/dist/websocket/ws-dispatcher.d.ts +0 -54
- package/dist/websocket/ws-dispatcher.js +0 -322
- package/dist/websocket/ws-exception.d.ts +0 -16
- package/dist/websocket/ws-exception.js +0 -32
- package/dist/websocket/ws-execution-context.d.ts +0 -9
- package/dist/websocket/ws-execution-context.js +0 -24
- package/dist/websocket/ws-server.d.ts +0 -31
- package/dist/websocket/ws-server.js +0 -74
- package/dist/websocket/ws-sync.d.ts +0 -47
- package/dist/websocket/ws-sync.js +0 -74
- package/dist/websocket-node/node-ws-client.d.ts +0 -24
- package/dist/websocket-node/node-ws-client.js +0 -49
- package/dist/websocket-node/redis-live.d.ts +0 -24
- package/dist/websocket-node/redis-live.js +0 -57
- package/dist/websocket-node/redis-sync.d.ts +0 -33
- package/dist/websocket-node/redis-sync.js +0 -56
- package/dist/websocket-node/register-gateways.d.ts +0 -20
- package/dist/websocket-node/register-gateways.js +0 -61
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { buildEntrypointExecutionContext, PipelineRunner, resolveScopedComponents, runInEntrypointScope, shouldFilterCatch } from "../index.js";
|
|
2
|
-
import { getProcessHandlers } from "./queue.decorators.js";
|
|
3
|
-
const warnedDuplicates = new WeakSet();
|
|
4
|
-
function selectHandler(container, processorClass, handlers, jobName) {
|
|
5
|
-
const named = handlers.filter((h)=>h.jobName === jobName);
|
|
6
|
-
const pool = named.length > 0 ? named : handlers.filter((h)=>h.jobName === undefined);
|
|
7
|
-
if (pool.length > 1 && !warnedDuplicates.has(processorClass)) {
|
|
8
|
-
warnedDuplicates.add(processorClass);
|
|
9
|
-
const label = named.length > 0 ? `@Process('${jobName}')` : '@Process() (wildcard)';
|
|
10
|
-
const message = `[vela] duplicate ${label} handlers on ${processorClass.name}; ` + `keeping the first ('${String(pool[0].methodName)}').`;
|
|
11
|
-
if (container.getDiagnostics() === 'throw') throw new Error(message);
|
|
12
|
-
if (container.getDiagnostics() === 'log') console.warn(message);
|
|
13
|
-
}
|
|
14
|
-
return pool[0];
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Deliver one job to every `@Processor` of its queue — the primitive both the
|
|
18
|
-
* in-core `inline()` driver and platform adapters call.
|
|
19
|
-
*
|
|
20
|
-
* Each matching processor runs inside `runInEntrypointScope` (request-scoped
|
|
21
|
-
* dependencies rebuild per job) and is re-resolved BY TOKEN through the async
|
|
22
|
-
* seam, so processors living in `lazy: true` modules materialize cleanly on
|
|
23
|
-
* first dispatch — async providers and lifecycle hooks included. Scoped
|
|
24
|
-
* guards/interceptors/filters run through `PipelineRunner`
|
|
25
|
-
* (`getType() === 'queue'`, `getPayload()` is the job); app-wide `APP_*`
|
|
26
|
-
* components deliberately do NOT apply (cloudflare queue/scheduled parity —
|
|
27
|
-
* documented divergence from the WebSocket dispatcher).
|
|
28
|
-
*
|
|
29
|
-
* Errors no scoped filter claims RETHROW so awaiting platforms keep their
|
|
30
|
-
* retry semantics; fire-and-forget callers (inline `immediate` mode) must
|
|
31
|
-
* catch — `QueueDispatchBinding` routes those to diagnostics.
|
|
32
|
-
*/ export async function dispatchQueueJob(container, entrypoints, job) {
|
|
33
|
-
const entries = entrypoints.ofKind('queue').map((ep)=>({
|
|
34
|
-
token: ep.token,
|
|
35
|
-
meta: ep.meta
|
|
36
|
-
}));
|
|
37
|
-
return dispatchJobToEntries(container, entries, job);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Entry-list core shared by `dispatchQueueJob` (registry) and the in-process
|
|
41
|
-
* driver binding (discovery fallback before the registry exists). Entries are
|
|
42
|
-
* tokens + meta ONLY — every processor is re-resolved by token in its own
|
|
43
|
-
* scope, so request-scoped and lazy-module processors work on both paths.
|
|
44
|
-
*/ export async function dispatchJobToEntries(container, entries, job) {
|
|
45
|
-
const processors = entries.filter((entry)=>entry.meta.queueName === job.queue);
|
|
46
|
-
if (processors.length === 0) {
|
|
47
|
-
if (container.getDiagnostics() === 'log') {
|
|
48
|
-
console.warn(`[vela] queue job '${job.name}' on '${job.queue}' has no @Processor('${job.queue}') — dropped.`);
|
|
49
|
-
}
|
|
50
|
-
return {
|
|
51
|
-
handled: 0
|
|
52
|
-
};
|
|
53
|
-
}
|
|
54
|
-
// All matching processors receive the job; the first unclaimed error
|
|
55
|
-
// rejects the whole dispatch (platform retries the delivery — CF parity).
|
|
56
|
-
const outcomes = await Promise.all(processors.map((entry)=>dispatchToProcessor(container, entry.token, job)));
|
|
57
|
-
return {
|
|
58
|
-
handled: outcomes.filter(Boolean).length
|
|
59
|
-
};
|
|
60
|
-
}
|
|
61
|
-
async function dispatchToProcessor(container, processorClass, job) {
|
|
62
|
-
const handler = selectHandler(container, processorClass, getProcessHandlers(processorClass), job.name);
|
|
63
|
-
if (!handler) {
|
|
64
|
-
if (container.getDiagnostics() === 'log') {
|
|
65
|
-
console.warn(`[vela] no @Process('${job.name}') (or wildcard) handler on ` + `${processorClass.name} for queue '${job.queue}' — skipped.`);
|
|
66
|
-
}
|
|
67
|
-
return false;
|
|
68
|
-
}
|
|
69
|
-
return runInEntrypointScope(container, async (scope)=>{
|
|
70
|
-
// Async seam: materializes lazy processor modules (drainAsync awaits
|
|
71
|
-
// their async providers/hooks) and rebuilds request-scoped processors.
|
|
72
|
-
const instance = await scope.resolveAsync(processorClass);
|
|
73
|
-
const context = buildEntrypointExecutionContext('queue', processorClass, handler.methodName, job);
|
|
74
|
-
const guards = resolveScopedComponents('guard', processorClass, handler.methodName, scope);
|
|
75
|
-
const interceptors = resolveScopedComponents('interceptor', processorClass, handler.methodName, scope);
|
|
76
|
-
// Closest-first: handler/class filters reversed by the caller (WS/CF convention).
|
|
77
|
-
const filters = resolveScopedComponents('filter', processorClass, handler.methodName, scope).reverse();
|
|
78
|
-
try {
|
|
79
|
-
await PipelineRunner.run({
|
|
80
|
-
context,
|
|
81
|
-
guards,
|
|
82
|
-
interceptors,
|
|
83
|
-
resolveArgs: async ()=>[
|
|
84
|
-
job
|
|
85
|
-
],
|
|
86
|
-
invoke: async (args)=>{
|
|
87
|
-
const method = instance[handler.methodName];
|
|
88
|
-
return method.apply(instance, args);
|
|
89
|
-
}
|
|
90
|
-
});
|
|
91
|
-
return true;
|
|
92
|
-
} catch (error) {
|
|
93
|
-
for (const filter of filters){
|
|
94
|
-
if (shouldFilterCatch(filter, error)) {
|
|
95
|
-
await filter.catch(error, context);
|
|
96
|
-
return true;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
throw error;
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import type { QueueModuleOptions } from './queue.types';
|
|
2
|
-
/**
|
|
3
|
-
* First-party queue module — authored 100% on vela's public API (the
|
|
4
|
-
* roadmap's "openness proof"). Producers inject a per-queue `QueueClient`
|
|
5
|
-
* via `queueToken(name)`; consumers are `@Processor`/`@Process` classes in
|
|
6
|
-
* ordinary user modules; platforms deliver through `dispatchQueueJob` or the
|
|
7
|
-
* in-core `inline()` driver.
|
|
8
|
-
*
|
|
9
|
-
* ```ts
|
|
10
|
-
* imports: [QueueModule.forRoot({ queues: ['email'] })]
|
|
11
|
-
* ```
|
|
12
|
-
*
|
|
13
|
-
* `lazy: true` (dogfoods 1.13): the module materializes when an eager
|
|
14
|
-
* producer injects a client (bootstrap — same structural reality that keeps
|
|
15
|
-
* WebSocketModule eager) or, in consumer-only workers, at the first
|
|
16
|
-
* delivered job.
|
|
17
|
-
*
|
|
18
|
-
* `queues` is STRUCTURAL: clients are options-derived providers, so
|
|
19
|
-
* `forRootAsync` callers pass it alongside the factory —
|
|
20
|
-
* `forRootAsync({ queues: ['email'], useFactory: () => ({ driver }) })`.
|
|
21
|
-
* Note that async options inherit the 1.13 lazy-module contract: the module
|
|
22
|
-
* must first materialize through an async seam (an eager producer's injection
|
|
23
|
-
* during the bootstrap sweep — the common case — or
|
|
24
|
-
* `app.materializeLazyModules()`); a synchronous first touch throws the
|
|
25
|
-
* descriptive sync-seam error.
|
|
26
|
-
*/
|
|
27
|
-
declare const ConfigurableModuleClass: import("../module").ConfigurableModuleClassType<QueueModuleOptions, "forRoot", "create", {
|
|
28
|
-
isGlobal?: boolean;
|
|
29
|
-
}>, MODULE_OPTIONS_TOKEN: import("../container").InjectionToken<QueueModuleOptions>;
|
|
30
|
-
export declare class QueueModule extends ConfigurableModuleClass {
|
|
31
|
-
}
|
|
32
|
-
export { MODULE_OPTIONS_TOKEN as QUEUE_MODULE_OPTIONS };
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Container, defineModule, DiscoveryService, stableHash } from "../index.js";
|
|
2
|
-
import { inline } from "./inline.driver.js";
|
|
3
|
-
import { QueueClient } from "./queue.client.js";
|
|
4
|
-
import { QueueDispatchBinding } from "./queue.binding.js";
|
|
5
|
-
import { QUEUE_DRIVER, queueToken } from "./queue.tokens.js";
|
|
6
|
-
/**
|
|
7
|
-
* First-party queue module — authored 100% on vela's public API (the
|
|
8
|
-
* roadmap's "openness proof"). Producers inject a per-queue `QueueClient`
|
|
9
|
-
* via `queueToken(name)`; consumers are `@Processor`/`@Process` classes in
|
|
10
|
-
* ordinary user modules; platforms deliver through `dispatchQueueJob` or the
|
|
11
|
-
* in-core `inline()` driver.
|
|
12
|
-
*
|
|
13
|
-
* ```ts
|
|
14
|
-
* imports: [QueueModule.forRoot({ queues: ['email'] })]
|
|
15
|
-
* ```
|
|
16
|
-
*
|
|
17
|
-
* `lazy: true` (dogfoods 1.13): the module materializes when an eager
|
|
18
|
-
* producer injects a client (bootstrap — same structural reality that keeps
|
|
19
|
-
* WebSocketModule eager) or, in consumer-only workers, at the first
|
|
20
|
-
* delivered job.
|
|
21
|
-
*
|
|
22
|
-
* `queues` is STRUCTURAL: clients are options-derived providers, so
|
|
23
|
-
* `forRootAsync` callers pass it alongside the factory —
|
|
24
|
-
* `forRootAsync({ queues: ['email'], useFactory: () => ({ driver }) })`.
|
|
25
|
-
* Note that async options inherit the 1.13 lazy-module contract: the module
|
|
26
|
-
* must first materialize through an async seam (an eager producer's injection
|
|
27
|
-
* during the bootstrap sweep — the common case — or
|
|
28
|
-
* `app.materializeLazyModules()`); a synchronous first touch throws the
|
|
29
|
-
* descriptive sync-seam error.
|
|
30
|
-
*/ const { ConfigurableModuleClass, MODULE_OPTIONS_TOKEN } = defineModule({
|
|
31
|
-
name: 'Queue',
|
|
32
|
-
lazy: true,
|
|
33
|
-
key: (o)=>stableHash({
|
|
34
|
-
queues: o.queues ?? [],
|
|
35
|
-
driver: o.driver?.kind ?? 'inline'
|
|
36
|
-
}),
|
|
37
|
-
setup: ({ OPTIONS, options })=>{
|
|
38
|
-
const queues = options.queues;
|
|
39
|
-
if (!queues || queues.length === 0) {
|
|
40
|
-
throw new Error("QueueModule requires 'queues' as a structural option: " + "QueueModule.forRoot({ queues: ['email'] }) — for forRootAsync, pass it alongside " + 'the factory: forRootAsync({ queues: [...], useFactory }).');
|
|
41
|
-
}
|
|
42
|
-
const clientProviders = queues.map((name)=>({
|
|
43
|
-
provide: queueToken(name),
|
|
44
|
-
useFactory: (driver, _binding)=>new QueueClient(name, driver),
|
|
45
|
-
inject: [
|
|
46
|
-
QUEUE_DRIVER,
|
|
47
|
-
QueueDispatchBinding
|
|
48
|
-
]
|
|
49
|
-
}));
|
|
50
|
-
return {
|
|
51
|
-
providers: [
|
|
52
|
-
{
|
|
53
|
-
provide: QUEUE_DRIVER,
|
|
54
|
-
useFactory: (o)=>o.driver ?? inline(),
|
|
55
|
-
inject: [
|
|
56
|
-
OPTIONS
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
provide: QueueDispatchBinding,
|
|
61
|
-
useFactory: (container, discovery, driver)=>new QueueDispatchBinding(container, discovery, driver, queues),
|
|
62
|
-
inject: [
|
|
63
|
-
Container,
|
|
64
|
-
DiscoveryService,
|
|
65
|
-
QUEUE_DRIVER
|
|
66
|
-
]
|
|
67
|
-
},
|
|
68
|
-
...clientProviders
|
|
69
|
-
],
|
|
70
|
-
exports: [
|
|
71
|
-
QUEUE_DRIVER,
|
|
72
|
-
QueueDispatchBinding,
|
|
73
|
-
...queues.map((name)=>queueToken(name))
|
|
74
|
-
]
|
|
75
|
-
};
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
export class QueueModule extends ConfigurableModuleClass {
|
|
79
|
-
}
|
|
80
|
-
export { MODULE_OPTIONS_TOKEN as QUEUE_MODULE_OPTIONS };
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '../index';
|
|
2
|
-
import type { QueueClient } from './queue.client';
|
|
3
|
-
import type { QueueDriver } from './queue.types';
|
|
4
|
-
export declare const PROCESSOR_METADATA = "vela:queue:processor";
|
|
5
|
-
export declare const PROCESS_METADATA = "vela:queue:process";
|
|
6
|
-
/** The driver in effect for a `QueueModule` instance. */
|
|
7
|
-
export declare const QUEUE_DRIVER: InjectionToken<QueueDriver>;
|
|
8
|
-
/**
|
|
9
|
-
* The injection token for a named queue's `QueueClient`:
|
|
10
|
-
*
|
|
11
|
-
* ```ts
|
|
12
|
-
* constructor(@Inject(queueToken('email')) private readonly email: QueueClient) {}
|
|
13
|
-
* ```
|
|
14
|
-
*
|
|
15
|
-
* Memoized per name (HMR-stable). Deliberately NO `InjectionToken` default
|
|
16
|
-
* factory: the container resolves default-factory tokens from the root bucket
|
|
17
|
-
* BEFORE walking module imports, which would break the exported-provider
|
|
18
|
-
* path — the token description (`vela:queue:client:<name>`) keeps the
|
|
19
|
-
* no-provider error readable instead.
|
|
20
|
-
*/
|
|
21
|
-
export declare function queueToken(name: string): InjectionToken<QueueClient>;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from "../index.js";
|
|
2
|
-
export const PROCESSOR_METADATA = 'vela:queue:processor';
|
|
3
|
-
export const PROCESS_METADATA = 'vela:queue:process';
|
|
4
|
-
/** The driver in effect for a `QueueModule` instance. */ export const QUEUE_DRIVER = new InjectionToken('vela:queue:driver');
|
|
5
|
-
// Token identity must survive Vite HMR re-evals (a consumer module that was
|
|
6
|
-
// NOT re-evaluated still holds the token minted by the previous generation),
|
|
7
|
-
// so the name → token map is anchored on globalThis exactly like the
|
|
8
|
-
// entrypoint kind store and MetadataRegistry state.
|
|
9
|
-
const TOKEN_STORE_KEY = Symbol.for('vela:queue:client-tokens:v1');
|
|
10
|
-
function tokenStore() {
|
|
11
|
-
const g = globalThis;
|
|
12
|
-
return g[TOKEN_STORE_KEY] ??= new Map();
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* The injection token for a named queue's `QueueClient`:
|
|
16
|
-
*
|
|
17
|
-
* ```ts
|
|
18
|
-
* constructor(@Inject(queueToken('email')) private readonly email: QueueClient) {}
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* Memoized per name (HMR-stable). Deliberately NO `InjectionToken` default
|
|
22
|
-
* factory: the container resolves default-factory tokens from the root bucket
|
|
23
|
-
* BEFORE walking module imports, which would break the exported-provider
|
|
24
|
-
* path — the token description (`vela:queue:client:<name>`) keeps the
|
|
25
|
-
* no-provider error readable instead.
|
|
26
|
-
*/ export function queueToken(name) {
|
|
27
|
-
const store = tokenStore();
|
|
28
|
-
let token = store.get(name);
|
|
29
|
-
if (!token) {
|
|
30
|
-
token = new InjectionToken(`vela:queue:client:${name}`);
|
|
31
|
-
store.set(name, token);
|
|
32
|
-
}
|
|
33
|
-
return token;
|
|
34
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* One job as handed to `@Process` handlers and drivers. Ids are minted by the
|
|
3
|
-
* client via `crypto.randomUUID()` (Web Crypto — edge-safe).
|
|
4
|
-
*/
|
|
5
|
-
export interface QueueJob<T = unknown> {
|
|
6
|
-
id: string;
|
|
7
|
-
/** Queue the job was added to (`QueueModule.forRoot({ queues })` name). */
|
|
8
|
-
queue: string;
|
|
9
|
-
/** Job name — matched against `@Process(name)`; unnamed handlers catch the rest. */
|
|
10
|
-
name: string;
|
|
11
|
-
data: T;
|
|
12
|
-
/** Delivery attempt, 1-based. Platform drivers increment on retry. */
|
|
13
|
-
attempt: number;
|
|
14
|
-
}
|
|
15
|
-
export interface AddJobOptions {
|
|
16
|
-
/**
|
|
17
|
-
* Requested delivery delay. Honored only by drivers that support it — the
|
|
18
|
-
* in-core `inline()` driver does not and warns once (log diagnostics).
|
|
19
|
-
*/
|
|
20
|
-
delayMs?: number;
|
|
21
|
-
}
|
|
22
|
-
/** The function a driver calls to deliver one job into the app's processors. */
|
|
23
|
-
export type QueueDispatchFn = (job: QueueJob) => Promise<void>;
|
|
24
|
-
export interface QueueDriverBindHooks {
|
|
25
|
-
/**
|
|
26
|
-
* Where fire-and-forget delivery errors go (the inline driver's
|
|
27
|
-
* `immediate` mode has no awaiter to rethrow into). Wired to the
|
|
28
|
-
* container's diagnostics by `QueueDispatchBinding`.
|
|
29
|
-
*/
|
|
30
|
-
onError?: (error: unknown, job: QueueJob) => void;
|
|
31
|
-
}
|
|
32
|
-
/**
|
|
33
|
-
* Producer/transport seam. `enqueue` accepts a job for later (or immediate)
|
|
34
|
-
* delivery; drivers that deliver in-process implement `bind` to receive the
|
|
35
|
-
* app's dispatch function. Platform packages (Cloudflare Queues, Redis, …)
|
|
36
|
-
* implement this interface out-of-core.
|
|
37
|
-
*/
|
|
38
|
-
export interface QueueDriver {
|
|
39
|
-
readonly kind: string;
|
|
40
|
-
enqueue(job: QueueJob, options?: AddJobOptions): Promise<void>;
|
|
41
|
-
bind?(dispatch: QueueDispatchFn, hooks?: QueueDriverBindHooks): void;
|
|
42
|
-
}
|
|
43
|
-
export interface QueueModuleOptions {
|
|
44
|
-
/**
|
|
45
|
-
* Queue names this instance provides clients for. STRUCTURAL — must be
|
|
46
|
-
* known at `forRoot`/`forRootAsync` call time (clients are options-derived
|
|
47
|
-
* providers); `forRootAsync` callers pass it alongside the factory.
|
|
48
|
-
*/
|
|
49
|
-
queues?: string[];
|
|
50
|
-
/** Defaults to the in-core `inline()` driver. */
|
|
51
|
-
driver?: QueueDriver;
|
|
52
|
-
}
|
|
53
|
-
/** Class-level meta written by `@Processor(queueName)` (the 'queue' entrypoint kind). */
|
|
54
|
-
export interface ProcessorMetadata {
|
|
55
|
-
queueName: string;
|
|
56
|
-
}
|
|
57
|
-
/** Per-handler meta written by `@Process(jobName?)`. */
|
|
58
|
-
export interface ProcessMetadata {
|
|
59
|
-
jobName?: string;
|
|
60
|
-
methodName: string | symbol;
|
|
61
|
-
}
|
package/dist/registry/index.d.ts
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export { MetadataRegistry } from './metadata.registry';
|
|
2
|
-
export type { Type, Constructor, ComponentType, ComponentTypeMap, ComponentInstance, MiddlewareType, GuardType, PipeType, InterceptorType, FilterType, RouteDefinition, ParameterMetadata, ModuleOptions, ProviderOptions, InjectionToken, } from './types';
|
package/dist/registry/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { MetadataRegistry } from "./metadata.registry.js";
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import type { Scope } from '../constants';
|
|
2
|
-
import type { InjectMetadata } from '../container/types';
|
|
3
|
-
import type { ComponentType, ComponentTypeMap, Constructor, HttpHandlerMeta, ModuleOptions, ParameterMetadata, RouteDefinition, Type } from './types';
|
|
4
|
-
export interface ControllerOptions {
|
|
5
|
-
version?: number | number[];
|
|
6
|
-
}
|
|
7
|
-
export declare class MetadataRegistry {
|
|
8
|
-
private static get routes();
|
|
9
|
-
private static get controllers();
|
|
10
|
-
private static get controllerOptions();
|
|
11
|
-
private static get modules();
|
|
12
|
-
private static get parameters();
|
|
13
|
-
private static get injectables();
|
|
14
|
-
private static get scopes();
|
|
15
|
-
private static get injectTokens();
|
|
16
|
-
private static get handlerHttpMeta();
|
|
17
|
-
private static get catchTypes();
|
|
18
|
-
private static get routeVersions();
|
|
19
|
-
private static get classMeta();
|
|
20
|
-
private static get handlerMeta();
|
|
21
|
-
private static get classMetaIndex();
|
|
22
|
-
private static get handlerMetaIndex();
|
|
23
|
-
private static get controllerComponents();
|
|
24
|
-
private static get handlerComponents();
|
|
25
|
-
static getRoutes(controller: Constructor): RouteDefinition[];
|
|
26
|
-
static addRoute(controller: Constructor, route: RouteDefinition): void;
|
|
27
|
-
static getControllerPath(controller: Constructor): string;
|
|
28
|
-
static setControllerPath(controller: Constructor, path: string): void;
|
|
29
|
-
static getControllerOptions(controller: Constructor): ControllerOptions;
|
|
30
|
-
static setControllerOptions(controller: Constructor, options: ControllerOptions): void;
|
|
31
|
-
static getModuleOptions(module: Constructor): ModuleOptions | undefined;
|
|
32
|
-
static setModuleOptions(module: Constructor, options: ModuleOptions): void;
|
|
33
|
-
static getParameters(controller: Constructor): Map<string | symbol, ParameterMetadata[]>;
|
|
34
|
-
static addParameter(controller: Constructor, methodName: string | symbol, param: ParameterMetadata): void;
|
|
35
|
-
static registerController<T extends ComponentType>(type: T, controller: Constructor, component: ComponentTypeMap[T]): void;
|
|
36
|
-
static getController<T extends ComponentType>(type: T, controller: Constructor): ComponentTypeMap[T][];
|
|
37
|
-
static registerHandler<T extends ComponentType>(type: T, controller: Constructor, methodName: string | symbol, component: ComponentTypeMap[T]): void;
|
|
38
|
-
static getHandler<T extends ComponentType>(type: T, controller: Constructor, methodName: string | symbol): ComponentTypeMap[T][];
|
|
39
|
-
static markInjectable(target: object): void;
|
|
40
|
-
static hasInjectable(target: object): boolean;
|
|
41
|
-
static setScope(target: object, scope: Scope): void;
|
|
42
|
-
static getScope(target: object): Scope | undefined;
|
|
43
|
-
static setInjectTokens(target: object, tokens: InjectMetadata[]): void;
|
|
44
|
-
static getInjectTokens(target: object): InjectMetadata[] | undefined;
|
|
45
|
-
static setHandlerHttpMeta(controller: Constructor, method: string | symbol, meta: HttpHandlerMeta): void;
|
|
46
|
-
static getHandlerHttpMeta(controller: Constructor, method: string | symbol): HttpHandlerMeta | undefined;
|
|
47
|
-
static setCatchTypes(filter: Constructor, types: Type<Error>[]): void;
|
|
48
|
-
static getCatchTypes(filter: Constructor): Type<Error>[] | undefined;
|
|
49
|
-
static hasCatchTypes(filter: Constructor): boolean;
|
|
50
|
-
static setRouteVersion(controller: Constructor, method: string | symbol, version: number | number[]): void;
|
|
51
|
-
static getRouteVersion(controller: Constructor, method: string | symbol): number | number[] | undefined;
|
|
52
|
-
static setCustomClassMeta(target: object, key: string, value: unknown): void;
|
|
53
|
-
static getCustomClassMeta(target: object, key: string): unknown;
|
|
54
|
-
static getCustomClassMetaAll(target: object): Map<string, unknown> | undefined;
|
|
55
|
-
static setCustomHandlerMeta(target: object, handler: string | symbol, key: string, value: unknown): void;
|
|
56
|
-
static getCustomHandlerMeta(target: object, handler: string | symbol, key: string): unknown;
|
|
57
|
-
static getCustomHandlerMetaAll(target: object, handler: string | symbol): Map<string, unknown> | undefined;
|
|
58
|
-
static appendCustomClassMeta<T>(target: object, key: string, item: T): void;
|
|
59
|
-
static appendCustomHandlerMeta<T>(target: object, handler: string | symbol, key: string, item: T): void;
|
|
60
|
-
static getClassesWithClassMeta(key: string): ReadonlySet<object>;
|
|
61
|
-
static getClassesWithHandlerMeta(key: string): ReadonlySet<object>;
|
|
62
|
-
/** Every (handler, value) pair on `target` carrying metadata under `key`. */
|
|
63
|
-
static getHandlersWithMeta(target: object, key: string): Array<{
|
|
64
|
-
handler: string | symbol;
|
|
65
|
-
value: unknown;
|
|
66
|
-
}>;
|
|
67
|
-
static setReflectMetadata(target: object, key: string, value: unknown, propertyKey?: string | symbol): void;
|
|
68
|
-
static getReflectMetadata<T = unknown>(target: object, key: string, propertyKey?: string | symbol): T | undefined;
|
|
69
|
-
static getParamTypes(target: object, propertyKey?: string | symbol): unknown[] | undefined;
|
|
70
|
-
static propagateControllerComponents(from: Constructor, to: Constructor): void;
|
|
71
|
-
static clear(): void;
|
|
72
|
-
static reset(): void;
|
|
73
|
-
}
|