@tstdl/base 0.92.124 → 0.92.126
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/ai/ai-file.service.d.ts +27 -0
- package/ai/ai-session.d.ts +11 -0
- package/ai/ai.service.d.ts +60 -0
- package/ai/functions.d.ts +3 -0
- package/ai/types.d.ts +91 -0
- package/api/client/client.d.ts +23 -0
- package/api/default-error-handlers.d.ts +14 -0
- package/api/server/api-controller.d.ts +11 -0
- package/api/server/error-handler.d.ts +4 -0
- package/api/server/gateway.d.ts +77 -0
- package/api/server/middlewares/catch-error.middleware.d.ts +4 -0
- package/api/server/middlewares/cors.middleware.d.ts +6 -0
- package/api/server/module.d.ts +10 -0
- package/api/server/tokens.d.ts +5 -0
- package/api/types.d.ts +123 -0
- package/application/application.d.ts +34 -0
- package/authentication/authentication.api.d.ts +293 -0
- package/authentication/client/api.client.d.ts +9 -0
- package/authentication/client/authentication.service.d.ts +61 -0
- package/authentication/client/http-client.middleware.d.ts +4 -0
- package/authentication/client/module.d.ts +10 -0
- package/authentication/client/tokens.d.ts +4 -0
- package/authentication/errors/secret-requirements.error.d.ts +5 -0
- package/authentication/models/authentication-credentials.model.d.ts +7 -0
- package/authentication/models/authentication-session.model.d.ts +10 -0
- package/authentication/models/schemas.d.ts +5 -0
- package/authentication/models/secret-check-result.model.d.ts +3 -0
- package/authentication/models/token.model.d.ts +20 -0
- package/authentication/server/authentication-ancillary.service.d.ts +27 -0
- package/authentication/server/authentication-api-request-token.provider.d.ts +8 -0
- package/authentication/server/authentication.api-controller.d.ts +23 -0
- package/authentication/server/authentication.service.d.ts +110 -0
- package/authentication/server/helper.d.ts +15 -0
- package/authentication/server/module.d.ts +14 -0
- package/browser/browser-context-controller.d.ts +45 -0
- package/browser/browser-controller.d.ts +49 -0
- package/browser/browser.service.d.ts +42 -0
- package/browser/element-controller.d.ts +104 -0
- package/browser/locator-controller.d.ts +16 -0
- package/browser/page-controller.d.ts +40 -0
- package/browser/types.d.ts +15 -0
- package/browser/utils.d.ts +17 -0
- package/collections/observable/observable-sorted-array-list.d.ts +36 -0
- package/collections/sorted-array-list.d.ts +37 -0
- package/context/context.d.ts +10 -0
- package/data-structures/array-list.d.ts +30 -0
- package/data-structures/circular-buffer.d.ts +56 -0
- package/data-structures/collection.d.ts +65 -0
- package/data-structures/context-data-map.d.ts +11 -0
- package/data-structures/index-out-of-bounds.error.d.ts +8 -0
- package/data-structures/linked-list.d.ts +57 -0
- package/data-structures/list.d.ts +78 -0
- package/data-structures/sorted-array-list.d.ts +49 -0
- package/database/module.d.ts +8 -0
- package/database/mongo/classes.d.ts +21 -0
- package/database/mongo/model/document.d.ts +29 -0
- package/database/mongo/mongo-base.repository.d.ts +103 -0
- package/database/mongo/mongo-bulk.d.ts +35 -0
- package/database/mongo/mongo-entity-repository.d.ts +98 -0
- package/database/mongo/operations.d.ts +10 -0
- package/database/mongo/query-converter.d.ts +6 -0
- package/database/mongo/simple-entity-repository.d.ts +7 -0
- package/database/mongo/types.d.ts +50 -0
- package/database/query.d.ts +121 -0
- package/decorators/log.d.ts +3 -0
- package/disposable/async-disposer.d.ts +35 -0
- package/distributed-loop/distributed-loop.d.ts +32 -0
- package/distributed-loop/provider.d.ts +7 -0
- package/document-management/api/document-management.api.d.ts +634 -0
- package/document-management/api/document-management.api.js +1 -1
- package/document-management/index.d.ts +4 -0
- package/document-management/index.js +1 -0
- package/document-management/localizations/localization.d.ts +9 -0
- package/document-management/models/document-assignment-scope.model.d.ts +11 -0
- package/document-management/models/document-assignment-task.model.d.ts +13 -0
- package/document-management/models/document-category.model.d.ts +7 -0
- package/document-management/models/document-collection-assignment.model.d.ts +7 -0
- package/document-management/models/document-collection.model.d.ts +5 -0
- package/document-management/models/document-file.model.d.ts +7 -0
- package/document-management/models/document-property-value.model.d.ts +12 -0
- package/document-management/models/document-property.model.d.ts +16 -0
- package/document-management/models/document-request-collection.model.d.ts +7 -0
- package/document-management/models/document-request-submission.model.d.ts +7 -0
- package/document-management/models/document-request-template.d.ts +8 -0
- package/document-management/models/document-request.model.d.ts +18 -0
- package/document-management/models/document-requests-template.d.ts +5 -0
- package/document-management/models/document-type-property.model.d.ts +6 -0
- package/document-management/models/document-type-validation.model.d.ts +6 -0
- package/document-management/models/document-type.model.d.ts +7 -0
- package/document-management/models/document-validation-definition.model.d.ts +10 -0
- package/document-management/models/document-validation-execution-related-document.model.d.ts +7 -0
- package/document-management/models/document-validation-execution.model.d.ts +26 -0
- package/document-management/models/document-workflow.model.d.ts +35 -0
- package/document-management/models/document.model.d.ts +24 -0
- package/document-management/server/module.d.ts +12 -0
- package/document-management/server/schemas.d.ts +31 -0
- package/document-management/server/services/document-category-type.service.d.ts +25 -0
- package/document-management/server/services/document-category-type.service.js +1 -1
- package/document-management/server/services/document-collection.service.d.ts +13 -0
- package/document-management/server/services/document-file.service.d.ts +17 -0
- package/document-management/server/services/document-management-ai.service.d.ts +22 -0
- package/document-management/server/services/document-management.service.d.ts +13 -0
- package/document-management/server/services/document-property.service.d.ts +83 -0
- package/document-management/server/services/document-property.service.js +1 -2
- package/document-management/server/services/document-request.service.d.ts +30 -0
- package/document-management/server/services/document-validation.service.d.ts +20 -0
- package/document-management/server/services/document-workflow.service.d.ts +20 -0
- package/document-management/server/services/document.service.d.ts +16 -0
- package/document-management/server/validators/ai-validation-executor.d.ts +19 -0
- package/document-management/server/validators/single-document-validation-executor.d.ts +16 -0
- package/document-management/server/validators/validator.d.ts +21 -0
- package/document-management/service-models/categories-and-types.view-model.d.ts +5 -0
- package/document-management/service-models/categories-and-types.view-model.js +5 -0
- package/document-management/service-models/document-folders.view-model.js +32 -0
- package/document-management/service-models/document-management.view-model.d.ts +32 -0
- package/document-management/service-models/document-management.view-model.js +118 -0
- package/document-management/service-models/document-requests-template.view-model.d.ts +7 -0
- package/document-management/service-models/document-requests-template.view-model.js +25 -0
- package/document-management/service-models/document.service-model.d.ts +253 -0
- package/document-management/service-models/document.service-model.js +45 -0
- package/document-management/service-models/enriched/enriched-document-assignment.view.d.ts +11 -0
- package/document-management/service-models/enriched/enriched-document-category.view.d.ts +13 -0
- package/document-management/service-models/enriched/enriched-document-category.view.js +47 -0
- package/document-management/service-models/enriched/enriched-document-collection.view.d.ts +22 -0
- package/document-management/service-models/enriched/enriched-document-collection.view.js +89 -0
- package/document-management/service-models/enriched/enriched-document-file.view.d.ts +12 -0
- package/document-management/service-models/enriched/enriched-document-management-data.view.d.ts +41 -0
- package/document-management/service-models/enriched/enriched-document-management-data.view.js +130 -0
- package/document-management/service-models/enriched/enriched-document-request.view.d.ts +17 -0
- package/document-management/service-models/enriched/enriched-document-request.view.js +52 -0
- package/document-management/service-models/enriched/enriched-document-type.view.d.ts +9 -0
- package/document-management/service-models/enriched/enriched-document.view.d.ts +26 -0
- package/document-management/service-models/enriched/enriched-document.view.js +77 -0
- package/document-management/service-models/enriched/enriched.js +39 -0
- package/document-management/service-models/normalized-requests-template-data.model.d.ts +18 -0
- package/document-management/service-models/normalized-requests-template-data.model.js +14 -0
- package/document-management/service-models/stats.view-model.js +42 -0
- package/dom/file-select-dialog.d.ts +7 -0
- package/dom/observation/intersection-observer.d.ts +4 -0
- package/dom/observation/media-query-observer.d.ts +12 -0
- package/dom/observation/resize-observer.d.ts +4 -0
- package/enumerable/async-enumerable.d.ts +78 -0
- package/enumerable/enumerable.d.ts +63 -0
- package/enumeration/enumeration.d.ts +5 -0
- package/errors/errors.localization.d.ts +53 -0
- package/errors/not-supported.error.d.ts +7 -0
- package/examples/api/authentication.d.ts +1 -0
- package/examples/api/basic-overview.d.ts +1 -0
- package/examples/api/custom-authentication.d.ts +1 -0
- package/examples/api/streaming.d.ts +1 -0
- package/examples/browser/basic.d.ts +1 -0
- package/examples/document-management/main.d.ts +21 -0
- package/examples/http/client.d.ts +1 -0
- package/examples/mail/templates/hello-name.d.ts +5 -0
- package/examples/orm/schemas.d.ts +3 -0
- package/examples/orm/user.model.d.ts +13 -0
- package/examples/pdf/templates/hello-name.d.ts +2 -0
- package/examples/reflection/basic.d.ts +11 -0
- package/examples/template/templates/hello-jsx.d.ts +4 -0
- package/examples/template/templates/hello-name.d.ts +4 -0
- package/function/log.d.ts +8 -0
- package/http/client/adapters/undici.adapter.d.ts +20 -0
- package/http/client/http-client-request.d.ts +122 -0
- package/http/client/http-client-response.d.ts +28 -0
- package/http/client/http-client.d.ts +56 -0
- package/http/client/middleware.d.ts +10 -0
- package/http/client/module.d.ts +12 -0
- package/http/client/tokens.d.ts +2 -0
- package/http/http-body.d.ts +21 -0
- package/http/http-value-map.d.ts +36 -0
- package/http/http.error.d.ts +28 -0
- package/http/server/http-server-request.d.ts +23 -0
- package/http/server/http-server-response.d.ts +38 -0
- package/http/server/http-server.d.ts +16 -0
- package/http/server/node/node-http-server.d.ts +22 -0
- package/http/types.d.ts +10 -0
- package/http/utils.d.ts +18 -0
- package/image-service/imgproxy/imgproxy-image-service.d.ts +24 -0
- package/index.d.ts +8 -0
- package/injector/decorators.d.ts +82 -0
- package/injector/injector.d.ts +113 -0
- package/injector/interfaces.d.ts +17 -0
- package/injector/provider.d.ts +57 -0
- package/injector/resolution.d.ts +15 -0
- package/injector/resolve-chain.d.ts +34 -0
- package/injector/resolve.error.d.ts +5 -0
- package/injector/token.d.ts +25 -0
- package/injector/type-info.d.ts +22 -0
- package/injector/types.d.ts +64 -0
- package/key-value-store/key-value.store.d.ts +23 -0
- package/key-value-store/mongo/module.d.ts +8 -0
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +8 -0
- package/key-value-store/mongo/mongo-key-value.model.d.ts +7 -0
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +10 -0
- package/key-value-store/mongo/mongo-key-value.store.d.ts +14 -0
- package/key-value-store/mongo/tokens.d.ts +3 -0
- package/lock/lock.d.ts +48 -0
- package/lock/mongo/lock.d.ts +14 -0
- package/lock/mongo/model.d.ts +6 -0
- package/lock/mongo/module.d.ts +12 -0
- package/lock/mongo/mongo-lock-repository.d.ts +14 -0
- package/lock/mongo/provider.d.ts +8 -0
- package/lock/provider.d.ts +10 -0
- package/lock/web/web-lock.provider.d.ts +8 -0
- package/logger/logger.d.ts +41 -0
- package/logger/tokens.d.ts +2 -0
- package/mail/clients/nodemailer.mail-client.d.ts +13 -0
- package/mail/mail.client.d.ts +17 -0
- package/mail/mail.service.d.ts +10 -0
- package/mail/models/mail-data.model.d.ts +21 -0
- package/mail/models/mail-log.model.d.ts +10 -0
- package/mail/models/mail-template.model.d.ts +14 -0
- package/mail/models/schemas.d.ts +3 -0
- package/mail/module.d.ts +15 -0
- package/mail/tokens.d.ts +1 -0
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +8 -0
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +19 -0
- package/message-bus/local/local-message-bus-provider.d.ts +9 -0
- package/message-bus/local/local-message-bus.d.ts +14 -0
- package/message-bus/message-bus-base.d.ts +26 -0
- package/message-bus/message-bus.d.ts +15 -0
- package/migration/migration-state-repository.d.ts +4 -0
- package/migration/migration-state.d.ts +6 -0
- package/migration/mongo/migration-state-repository.d.ts +11 -0
- package/migration/mongo/module.d.ts +12 -0
- package/module/module-base.d.ts +18 -0
- package/module/module-metric-reporter.d.ts +29 -0
- package/module/module.d.ts +23 -0
- package/module/modules/function.module.d.ts +10 -0
- package/module/modules/web-server.module.d.ts +27 -0
- package/module/utils.d.ts +4 -0
- package/object-storage/object-storage.d.ts +75 -0
- package/object-storage/object.d.ts +12 -0
- package/object-storage/s3/s3.object-storage-provider.d.ts +41 -0
- package/object-storage/s3/s3.object-storage.d.ts +28 -0
- package/object-storage/s3/s3.object.d.ts +16 -0
- package/openid-connect/cached-oidc-configuration.service.d.ts +9 -0
- package/openid-connect/mongo-oidc-state.repository.d.ts +21 -0
- package/openid-connect/oidc-configuration.service.d.ts +13 -0
- package/openid-connect/oidc-state.model.d.ts +11 -0
- package/openid-connect/oidc-state.repository.d.ts +4 -0
- package/openid-connect/oidc.service.d.ts +20 -0
- package/orm/decorators.d.ts +212 -0
- package/orm/entity.d.ts +41 -0
- package/orm/query.d.ts +164 -0
- package/orm/repository.types.d.ts +84 -0
- package/orm/schemas/json.d.ts +9 -0
- package/orm/schemas/numeric-date.d.ts +8 -0
- package/orm/schemas/timestamp.d.ts +10 -0
- package/orm/schemas/uuid.d.ts +11 -0
- package/orm/server/database-schema.d.ts +45 -0
- package/orm/server/database.d.ts +27 -0
- package/orm/server/drizzle/schema-converter.d.ts +15 -0
- package/orm/server/repository.d.ts +487 -0
- package/orm/server/tokens.d.ts +1 -0
- package/orm/server/transaction.d.ts +29 -0
- package/orm/server/transactional.d.ts +75 -0
- package/orm/server/types.d.ts +47 -0
- package/orm/types.d.ts +93 -0
- package/package.json +1 -2
- package/password/password-check-result.model.d.ts +19 -0
- package/password/password-check.localization.d.ts +20 -0
- package/pdf/pdf.service.d.ts +101 -0
- package/pool/pool.d.ts +49 -0
- package/process-shutdown.d.ts +9 -0
- package/promise/cancelable-promise.d.ts +15 -0
- package/queue/mongo/job.d.ts +12 -0
- package/queue/mongo/mongo-job.repository.d.ts +13 -0
- package/queue/mongo/queue.d.ts +38 -0
- package/queue/mongo/queue.provider.d.ts +22 -0
- package/queue/postgres/job.model.d.ts +13 -0
- package/queue/postgres/module.d.ts +9 -0
- package/queue/postgres/queue.d.ts +31 -0
- package/queue/postgres/queue.provider.d.ts +7 -0
- package/queue/postgres/schemas.d.ts +3 -0
- package/queue/provider.d.ts +5 -0
- package/queue/queue.d.ts +91 -0
- package/reflection/decorators.d.ts +15 -0
- package/reflection/registry.d.ts +61 -0
- package/reflection/types.d.ts +90 -0
- package/reflection/utils.d.ts +33 -0
- package/rpc/model.d.ts +64 -0
- package/rpc/rpc.adapter.d.ts +19 -0
- package/rpc/rpc.d.ts +21 -0
- package/rpc/rpc.error.d.ts +8 -0
- package/rxjs-utils/retry-backoff.d.ts +4 -0
- package/schema/converters/openapi-converter.d.ts +3 -0
- package/schema/decorators/class.d.ts +3 -0
- package/schema/decorators/description.d.ts +3 -0
- package/schema/decorators/schema.d.ts +21 -0
- package/schema/decorators/types.d.ts +24 -0
- package/schema/decorators/utils.d.ts +7 -0
- package/schema/schema.d.ts +99 -0
- package/schema/schema.error.d.ts +25 -0
- package/schema/schemas/array.d.ts +20 -0
- package/schema/schemas/defaulted.d.ts +13 -0
- package/schema/schemas/deferred.d.ts +12 -0
- package/schema/schemas/enumeration.d.ts +13 -0
- package/schema/schemas/function.d.ts +23 -0
- package/schema/schemas/instance.d.ts +13 -0
- package/schema/schemas/literal.d.ts +12 -0
- package/schema/schemas/never.d.ts +8 -0
- package/schema/schemas/nullable.d.ts +12 -0
- package/schema/schemas/number.d.ts +19 -0
- package/schema/schemas/object.d.ts +91 -0
- package/schema/schemas/one-or-many.d.ts +15 -0
- package/schema/schemas/optional.d.ts +13 -0
- package/schema/schemas/simple.d.ts +27 -0
- package/schema/schemas/transform.d.ts +10 -0
- package/schema/schemas/union.d.ts +15 -0
- package/search-index/elastic/config.d.ts +8 -0
- package/search-index/elastic/model/index-mapping.d.ts +26 -0
- package/search-index/elastic/model/sort.d.ts +8 -0
- package/search-index/elastic/module.d.ts +10 -0
- package/search-index/elastic/query-converter.d.ts +9 -0
- package/search-index/elastic/search-index.d.ts +30 -0
- package/search-index/elastic/sort-converter.d.ts +4 -0
- package/search-index/error.d.ts +10 -0
- package/search-index/memory/memory-search-index.d.ts +19 -0
- package/search-index/search-index.d.ts +46 -0
- package/search-index/search-result.d.ts +12 -0
- package/serializer/handlers/binary.d.ts +12 -0
- package/serializer/serializable.d.ts +33 -0
- package/serializer/serializer.d.ts +20 -0
- package/serializer/types.d.ts +65 -0
- package/sse/server-sent-events-source.d.ts +12 -0
- package/templates/module.d.ts +14 -0
- package/templates/providers/file.template-provider.d.ts +15 -0
- package/templates/renderers/handlebars.template-renderer.d.ts +43 -0
- package/templates/renderers/jsx.template-renderer.d.ts +10 -0
- package/templates/renderers/mjml.template-renderer.d.ts +16 -0
- package/templates/renderers/string.template-renderer.d.ts +10 -0
- package/templates/resolvers/file.template-resolver.d.ts +22 -0
- package/templates/resolvers/jsx.template-resolver.d.ts +17 -0
- package/templates/resolvers/string.template-resolver.d.ts +13 -0
- package/templates/template.model.d.ts +25 -0
- package/templates/template.renderer.d.ts +20 -0
- package/templates/template.service.d.ts +18 -0
- package/templates/tokens.d.ts +4 -0
- package/text/dynamic-text.model.d.ts +15 -0
- package/text/localization.service.d.ts +92 -0
- package/theme/adapters/tailwind-adapter.d.ts +18 -0
- package/theme/theme-service.d.ts +43 -0
- package/threading/thread-pool.d.ts +20 -0
- package/types/geo-json.d.ts +36 -0
- package/types/index.d.ts +2 -8
- package/types/tagged.d.ts +16 -0
- package/utils/async-iterable-helpers/take-until.d.ts +3 -0
- package/utils/backoff.d.ts +77 -0
- package/utils/binary.d.ts +16 -0
- package/utils/cryptography.d.ts +122 -0
- package/utils/encoding.d.ts +36 -0
- package/utils/enum.d.ts +9 -0
- package/utils/equals.d.ts +30 -0
- package/utils/event-loop.d.ts +4 -0
- package/utils/format-error.d.ts +24 -0
- package/utils/function/class.d.ts +6 -0
- package/utils/function/memoize.d.ts +36 -0
- package/utils/iterable-helpers/take-until.d.ts +2 -0
- package/utils/math.d.ts +93 -0
- package/utils/merge.d.ts +19 -0
- package/utils/object/decycle.d.ts +16 -0
- package/utils/object/dereference.d.ts +34 -0
- package/utils/object/forward-ref.d.ts +21 -0
- package/utils/object/lazy-property.d.ts +49 -0
- package/utils/object/object.d.ts +30 -0
- package/utils/object/property-name.d.ts +61 -0
- package/utils/patch-worker.d.ts +25 -0
- package/utils/reactive-value-to-signal.d.ts +20 -0
- package/utils/reflection.d.ts +8 -0
- package/utils/repl.d.ts +9 -0
- package/utils/singleton.d.ts +7 -0
- package/utils/stream/size-limited-stream.d.ts +2 -0
- package/utils/timing.d.ts +20 -0
- package/utils/try-ignore.d.ts +9 -0
- package/utils/type/extends.d.ts +3 -0
- package/utils/type-guards.d.ts +259 -0
- package/utils/z-base32.d.ts +3 -0
- package/document-management/models/service-models/categories-and-types.view-model.js +0 -5
- package/document-management/models/service-models/document-folders.view-model.js +0 -32
- package/document-management/models/service-models/document-management.view-model.js +0 -127
- package/document-management/models/service-models/document-requests-template.view-model.js +0 -26
- package/document-management/models/service-models/document.service-model.js +0 -57
- package/document-management/models/service-models/enriched/enriched-document-category.view.js +0 -47
- package/document-management/models/service-models/enriched/enriched-document-collection.view.js +0 -89
- package/document-management/models/service-models/enriched/enriched-document-management-data.view.js +0 -130
- package/document-management/models/service-models/enriched/enriched-document-request.view.js +0 -52
- package/document-management/models/service-models/enriched/enriched-document.view.js +0 -77
- package/document-management/models/service-models/enriched/enriched.js +0 -39
- package/document-management/models/service-models/normalized-requests-template-data.model.js +0 -14
- package/document-management/models/service-models/stats.view-model.js +0 -42
- package/types/ai/ai-file.service.d.ts +0 -27
- package/types/ai/ai-session.d.ts +0 -11
- package/types/ai/ai.service.d.ts +0 -60
- package/types/ai/functions.d.ts +0 -3
- package/types/ai/types.d.ts +0 -91
- package/types/api/client/client.d.ts +0 -23
- package/types/api/default-error-handlers.d.ts +0 -14
- package/types/api/server/api-controller.d.ts +0 -11
- package/types/api/server/error-handler.d.ts +0 -4
- package/types/api/server/gateway.d.ts +0 -77
- package/types/api/server/middlewares/catch-error.middleware.d.ts +0 -4
- package/types/api/server/middlewares/cors.middleware.d.ts +0 -6
- package/types/api/server/module.d.ts +0 -10
- package/types/api/server/tokens.d.ts +0 -5
- package/types/api/types.d.ts +0 -123
- package/types/application/application.d.ts +0 -34
- package/types/authentication/authentication.api.d.ts +0 -293
- package/types/authentication/client/api.client.d.ts +0 -9
- package/types/authentication/client/authentication.service.d.ts +0 -61
- package/types/authentication/client/http-client.middleware.d.ts +0 -4
- package/types/authentication/client/module.d.ts +0 -10
- package/types/authentication/client/tokens.d.ts +0 -4
- package/types/authentication/errors/secret-requirements.error.d.ts +0 -5
- package/types/authentication/models/authentication-credentials.model.d.ts +0 -7
- package/types/authentication/models/authentication-session.model.d.ts +0 -10
- package/types/authentication/models/schemas.d.ts +0 -5
- package/types/authentication/models/secret-check-result.model.d.ts +0 -3
- package/types/authentication/models/token.model.d.ts +0 -20
- package/types/authentication/server/authentication-ancillary.service.d.ts +0 -27
- package/types/authentication/server/authentication-api-request-token.provider.d.ts +0 -8
- package/types/authentication/server/authentication.api-controller.d.ts +0 -23
- package/types/authentication/server/authentication.service.d.ts +0 -110
- package/types/authentication/server/helper.d.ts +0 -15
- package/types/authentication/server/module.d.ts +0 -14
- package/types/browser/browser-context-controller.d.ts +0 -45
- package/types/browser/browser-controller.d.ts +0 -49
- package/types/browser/browser.service.d.ts +0 -42
- package/types/browser/element-controller.d.ts +0 -104
- package/types/browser/locator-controller.d.ts +0 -16
- package/types/browser/page-controller.d.ts +0 -40
- package/types/browser/types.d.ts +0 -15
- package/types/browser/utils.d.ts +0 -17
- package/types/collections/observable/observable-sorted-array-list.d.ts +0 -36
- package/types/collections/sorted-array-list.d.ts +0 -37
- package/types/context/context.d.ts +0 -10
- package/types/data-structures/array-list.d.ts +0 -30
- package/types/data-structures/circular-buffer.d.ts +0 -56
- package/types/data-structures/collection.d.ts +0 -65
- package/types/data-structures/context-data-map.d.ts +0 -11
- package/types/data-structures/index-out-of-bounds.error.d.ts +0 -8
- package/types/data-structures/linked-list.d.ts +0 -57
- package/types/data-structures/list.d.ts +0 -78
- package/types/data-structures/sorted-array-list.d.ts +0 -49
- package/types/database/module.d.ts +0 -8
- package/types/database/mongo/classes.d.ts +0 -21
- package/types/database/mongo/model/document.d.ts +0 -29
- package/types/database/mongo/mongo-base.repository.d.ts +0 -103
- package/types/database/mongo/mongo-bulk.d.ts +0 -35
- package/types/database/mongo/mongo-entity-repository.d.ts +0 -98
- package/types/database/mongo/operations.d.ts +0 -10
- package/types/database/mongo/query-converter.d.ts +0 -6
- package/types/database/mongo/simple-entity-repository.d.ts +0 -7
- package/types/database/mongo/types.d.ts +0 -50
- package/types/database/query.d.ts +0 -121
- package/types/decorators/log.d.ts +0 -3
- package/types/disposable/async-disposer.d.ts +0 -35
- package/types/distributed-loop/distributed-loop.d.ts +0 -32
- package/types/distributed-loop/provider.d.ts +0 -7
- package/types/document-management/api/document-management.api.d.ts +0 -634
- package/types/document-management/index.d.ts +0 -3
- package/types/document-management/localizations/localization.d.ts +0 -9
- package/types/document-management/models/document-assignment-scope.model.d.ts +0 -11
- package/types/document-management/models/document-assignment-task.model.d.ts +0 -13
- package/types/document-management/models/document-category.model.d.ts +0 -7
- package/types/document-management/models/document-collection-assignment.model.d.ts +0 -7
- package/types/document-management/models/document-collection.model.d.ts +0 -5
- package/types/document-management/models/document-file.model.d.ts +0 -7
- package/types/document-management/models/document-property-value.model.d.ts +0 -12
- package/types/document-management/models/document-property.model.d.ts +0 -16
- package/types/document-management/models/document-request-collection.model.d.ts +0 -7
- package/types/document-management/models/document-request-submission.model.d.ts +0 -7
- package/types/document-management/models/document-request-template.d.ts +0 -8
- package/types/document-management/models/document-request.model.d.ts +0 -18
- package/types/document-management/models/document-requests-template.d.ts +0 -5
- package/types/document-management/models/document-type-property.model.d.ts +0 -6
- package/types/document-management/models/document-type-validation.model.d.ts +0 -6
- package/types/document-management/models/document-type.model.d.ts +0 -7
- package/types/document-management/models/document-validation-definition.model.d.ts +0 -10
- package/types/document-management/models/document-validation-execution-related-document.model.d.ts +0 -7
- package/types/document-management/models/document-validation-execution.model.d.ts +0 -26
- package/types/document-management/models/document-workflow.model.d.ts +0 -35
- package/types/document-management/models/document.model.d.ts +0 -24
- package/types/document-management/models/service-models/categories-and-types.view-model.d.ts +0 -6
- package/types/document-management/models/service-models/document-management.view-model.d.ts +0 -41
- package/types/document-management/models/service-models/document-requests-template.view-model.d.ts +0 -8
- package/types/document-management/models/service-models/document.service-model.d.ts +0 -253
- package/types/document-management/models/service-models/enriched/enriched-document-assignment.view.d.ts +0 -11
- package/types/document-management/models/service-models/enriched/enriched-document-category.view.d.ts +0 -13
- package/types/document-management/models/service-models/enriched/enriched-document-collection.view.d.ts +0 -22
- package/types/document-management/models/service-models/enriched/enriched-document-file.view.d.ts +0 -12
- package/types/document-management/models/service-models/enriched/enriched-document-management-data.view.d.ts +0 -41
- package/types/document-management/models/service-models/enriched/enriched-document-request.view.d.ts +0 -17
- package/types/document-management/models/service-models/enriched/enriched-document-type.view.d.ts +0 -9
- package/types/document-management/models/service-models/enriched/enriched-document.view.d.ts +0 -28
- package/types/document-management/models/service-models/normalized-requests-template-data.model.d.ts +0 -18
- package/types/document-management/server/module.d.ts +0 -12
- package/types/document-management/server/schemas.d.ts +0 -31
- package/types/document-management/server/services/document-category-type.service.d.ts +0 -25
- package/types/document-management/server/services/document-collection.service.d.ts +0 -13
- package/types/document-management/server/services/document-file.service.d.ts +0 -17
- package/types/document-management/server/services/document-management-ai.service.d.ts +0 -22
- package/types/document-management/server/services/document-management.service.d.ts +0 -13
- package/types/document-management/server/services/document-property.service.d.ts +0 -84
- package/types/document-management/server/services/document-request.service.d.ts +0 -30
- package/types/document-management/server/services/document-validation.service.d.ts +0 -20
- package/types/document-management/server/services/document-workflow.service.d.ts +0 -20
- package/types/document-management/server/services/document.service.d.ts +0 -16
- package/types/document-management/server/validators/ai-validation-executor.d.ts +0 -19
- package/types/document-management/server/validators/single-document-validation-executor.d.ts +0 -16
- package/types/document-management/server/validators/validator.d.ts +0 -21
- package/types/dom/file-select-dialog.d.ts +0 -7
- package/types/dom/observation/intersection-observer.d.ts +0 -4
- package/types/dom/observation/media-query-observer.d.ts +0 -12
- package/types/dom/observation/resize-observer.d.ts +0 -4
- package/types/enumerable/async-enumerable.d.ts +0 -78
- package/types/enumerable/enumerable.d.ts +0 -63
- package/types/enumeration/enumeration.d.ts +0 -5
- package/types/errors/errors.localization.d.ts +0 -53
- package/types/errors/not-supported.error.d.ts +0 -7
- package/types/examples/api/authentication.d.ts +0 -1
- package/types/examples/api/basic-overview.d.ts +0 -1
- package/types/examples/api/custom-authentication.d.ts +0 -1
- package/types/examples/api/streaming.d.ts +0 -1
- package/types/examples/browser/basic.d.ts +0 -1
- package/types/examples/document-management/main.d.ts +0 -21
- package/types/examples/http/client.d.ts +0 -1
- package/types/examples/mail/templates/hello-name.d.ts +0 -5
- package/types/examples/orm/schemas.d.ts +0 -3
- package/types/examples/orm/user.model.d.ts +0 -13
- package/types/examples/pdf/templates/hello-name.d.ts +0 -2
- package/types/examples/reflection/basic.d.ts +0 -11
- package/types/examples/template/templates/hello-jsx.d.ts +0 -4
- package/types/examples/template/templates/hello-name.d.ts +0 -4
- package/types/function/log.d.ts +0 -8
- package/types/http/client/adapters/undici.adapter.d.ts +0 -20
- package/types/http/client/http-client-request.d.ts +0 -122
- package/types/http/client/http-client-response.d.ts +0 -28
- package/types/http/client/http-client.d.ts +0 -56
- package/types/http/client/middleware.d.ts +0 -10
- package/types/http/client/module.d.ts +0 -12
- package/types/http/client/tokens.d.ts +0 -2
- package/types/http/http-body.d.ts +0 -21
- package/types/http/http-value-map.d.ts +0 -36
- package/types/http/http.error.d.ts +0 -28
- package/types/http/server/http-server-request.d.ts +0 -23
- package/types/http/server/http-server-response.d.ts +0 -38
- package/types/http/server/http-server.d.ts +0 -16
- package/types/http/server/node/node-http-server.d.ts +0 -22
- package/types/http/types.d.ts +0 -10
- package/types/http/utils.d.ts +0 -18
- package/types/image-service/imgproxy/imgproxy-image-service.d.ts +0 -24
- package/types/injector/decorators.d.ts +0 -82
- package/types/injector/injector.d.ts +0 -113
- package/types/injector/interfaces.d.ts +0 -17
- package/types/injector/provider.d.ts +0 -57
- package/types/injector/resolution.d.ts +0 -15
- package/types/injector/resolve-chain.d.ts +0 -34
- package/types/injector/resolve.error.d.ts +0 -5
- package/types/injector/token.d.ts +0 -25
- package/types/injector/type-info.d.ts +0 -22
- package/types/injector/types.d.ts +0 -64
- package/types/key-value-store/key-value.store.d.ts +0 -23
- package/types/key-value-store/mongo/module.d.ts +0 -8
- package/types/key-value-store/mongo/mongo-key-value-store.provider.d.ts +0 -8
- package/types/key-value-store/mongo/mongo-key-value.model.d.ts +0 -7
- package/types/key-value-store/mongo/mongo-key-value.repository.d.ts +0 -10
- package/types/key-value-store/mongo/mongo-key-value.store.d.ts +0 -14
- package/types/key-value-store/mongo/tokens.d.ts +0 -3
- package/types/lock/lock.d.ts +0 -48
- package/types/lock/mongo/lock.d.ts +0 -14
- package/types/lock/mongo/model.d.ts +0 -6
- package/types/lock/mongo/module.d.ts +0 -12
- package/types/lock/mongo/mongo-lock-repository.d.ts +0 -14
- package/types/lock/mongo/provider.d.ts +0 -8
- package/types/lock/provider.d.ts +0 -10
- package/types/lock/web/web-lock.provider.d.ts +0 -8
- package/types/logger/logger.d.ts +0 -41
- package/types/logger/tokens.d.ts +0 -2
- package/types/mail/clients/nodemailer.mail-client.d.ts +0 -13
- package/types/mail/mail.client.d.ts +0 -17
- package/types/mail/mail.service.d.ts +0 -10
- package/types/mail/models/mail-data.model.d.ts +0 -21
- package/types/mail/models/mail-log.model.d.ts +0 -10
- package/types/mail/models/mail-template.model.d.ts +0 -14
- package/types/mail/models/schemas.d.ts +0 -3
- package/types/mail/module.d.ts +0 -15
- package/types/mail/tokens.d.ts +0 -1
- package/types/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +0 -8
- package/types/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +0 -19
- package/types/message-bus/local/local-message-bus-provider.d.ts +0 -9
- package/types/message-bus/local/local-message-bus.d.ts +0 -14
- package/types/message-bus/message-bus-base.d.ts +0 -26
- package/types/message-bus/message-bus.d.ts +0 -15
- package/types/migration/migration-state-repository.d.ts +0 -4
- package/types/migration/migration-state.d.ts +0 -6
- package/types/migration/mongo/migration-state-repository.d.ts +0 -11
- package/types/migration/mongo/module.d.ts +0 -12
- package/types/module/module-base.d.ts +0 -18
- package/types/module/module-metric-reporter.d.ts +0 -29
- package/types/module/module.d.ts +0 -23
- package/types/module/modules/function.module.d.ts +0 -10
- package/types/module/modules/web-server.module.d.ts +0 -27
- package/types/module/utils.d.ts +0 -4
- package/types/object-storage/object-storage.d.ts +0 -75
- package/types/object-storage/object.d.ts +0 -12
- package/types/object-storage/s3/s3.object-storage-provider.d.ts +0 -41
- package/types/object-storage/s3/s3.object-storage.d.ts +0 -28
- package/types/object-storage/s3/s3.object.d.ts +0 -16
- package/types/openid-connect/cached-oidc-configuration.service.d.ts +0 -9
- package/types/openid-connect/mongo-oidc-state.repository.d.ts +0 -21
- package/types/openid-connect/oidc-configuration.service.d.ts +0 -13
- package/types/openid-connect/oidc-state.model.d.ts +0 -11
- package/types/openid-connect/oidc-state.repository.d.ts +0 -4
- package/types/openid-connect/oidc.service.d.ts +0 -20
- package/types/orm/decorators.d.ts +0 -212
- package/types/orm/entity.d.ts +0 -41
- package/types/orm/query.d.ts +0 -164
- package/types/orm/repository.types.d.ts +0 -84
- package/types/orm/schemas/json.d.ts +0 -9
- package/types/orm/schemas/numeric-date.d.ts +0 -8
- package/types/orm/schemas/timestamp.d.ts +0 -10
- package/types/orm/schemas/uuid.d.ts +0 -11
- package/types/orm/server/database-schema.d.ts +0 -45
- package/types/orm/server/database.d.ts +0 -27
- package/types/orm/server/drizzle/schema-converter.d.ts +0 -15
- package/types/orm/server/repository.d.ts +0 -487
- package/types/orm/server/tokens.d.ts +0 -1
- package/types/orm/server/transaction.d.ts +0 -29
- package/types/orm/server/transactional.d.ts +0 -75
- package/types/orm/server/types.d.ts +0 -47
- package/types/orm/types.d.ts +0 -93
- package/types/password/password-check-result.model.d.ts +0 -19
- package/types/password/password-check.localization.d.ts +0 -20
- package/types/pdf/pdf.service.d.ts +0 -101
- package/types/pool/pool.d.ts +0 -49
- package/types/process-shutdown.d.ts +0 -9
- package/types/promise/cancelable-promise.d.ts +0 -15
- package/types/queue/mongo/job.d.ts +0 -12
- package/types/queue/mongo/mongo-job.repository.d.ts +0 -13
- package/types/queue/mongo/queue.d.ts +0 -38
- package/types/queue/mongo/queue.provider.d.ts +0 -22
- package/types/queue/postgres/job.model.d.ts +0 -13
- package/types/queue/postgres/module.d.ts +0 -9
- package/types/queue/postgres/queue.d.ts +0 -31
- package/types/queue/postgres/queue.provider.d.ts +0 -7
- package/types/queue/postgres/schemas.d.ts +0 -3
- package/types/queue/provider.d.ts +0 -5
- package/types/queue/queue.d.ts +0 -91
- package/types/reflection/decorators.d.ts +0 -15
- package/types/reflection/registry.d.ts +0 -61
- package/types/reflection/types.d.ts +0 -90
- package/types/reflection/utils.d.ts +0 -33
- package/types/rpc/model.d.ts +0 -64
- package/types/rpc/rpc.adapter.d.ts +0 -19
- package/types/rpc/rpc.d.ts +0 -21
- package/types/rpc/rpc.error.d.ts +0 -8
- package/types/rxjs-utils/retry-backoff.d.ts +0 -4
- package/types/schema/converters/openapi-converter.d.ts +0 -3
- package/types/schema/decorators/class.d.ts +0 -3
- package/types/schema/decorators/description.d.ts +0 -3
- package/types/schema/decorators/schema.d.ts +0 -21
- package/types/schema/decorators/types.d.ts +0 -24
- package/types/schema/decorators/utils.d.ts +0 -7
- package/types/schema/schema.d.ts +0 -99
- package/types/schema/schema.error.d.ts +0 -25
- package/types/schema/schemas/array.d.ts +0 -20
- package/types/schema/schemas/defaulted.d.ts +0 -13
- package/types/schema/schemas/deferred.d.ts +0 -12
- package/types/schema/schemas/enumeration.d.ts +0 -13
- package/types/schema/schemas/function.d.ts +0 -23
- package/types/schema/schemas/instance.d.ts +0 -13
- package/types/schema/schemas/literal.d.ts +0 -12
- package/types/schema/schemas/never.d.ts +0 -8
- package/types/schema/schemas/nullable.d.ts +0 -12
- package/types/schema/schemas/number.d.ts +0 -19
- package/types/schema/schemas/object.d.ts +0 -91
- package/types/schema/schemas/one-or-many.d.ts +0 -15
- package/types/schema/schemas/optional.d.ts +0 -13
- package/types/schema/schemas/simple.d.ts +0 -27
- package/types/schema/schemas/transform.d.ts +0 -10
- package/types/schema/schemas/union.d.ts +0 -15
- package/types/search-index/elastic/config.d.ts +0 -8
- package/types/search-index/elastic/model/index-mapping.d.ts +0 -26
- package/types/search-index/elastic/model/sort.d.ts +0 -8
- package/types/search-index/elastic/module.d.ts +0 -10
- package/types/search-index/elastic/query-converter.d.ts +0 -9
- package/types/search-index/elastic/search-index.d.ts +0 -30
- package/types/search-index/elastic/sort-converter.d.ts +0 -4
- package/types/search-index/error.d.ts +0 -10
- package/types/search-index/memory/memory-search-index.d.ts +0 -19
- package/types/search-index/search-index.d.ts +0 -46
- package/types/search-index/search-result.d.ts +0 -12
- package/types/serializer/handlers/binary.d.ts +0 -12
- package/types/serializer/serializable.d.ts +0 -33
- package/types/serializer/serializer.d.ts +0 -20
- package/types/serializer/types.d.ts +0 -65
- package/types/sse/server-sent-events-source.d.ts +0 -12
- package/types/templates/module.d.ts +0 -14
- package/types/templates/providers/file.template-provider.d.ts +0 -15
- package/types/templates/renderers/handlebars.template-renderer.d.ts +0 -43
- package/types/templates/renderers/jsx.template-renderer.d.ts +0 -10
- package/types/templates/renderers/mjml.template-renderer.d.ts +0 -16
- package/types/templates/renderers/string.template-renderer.d.ts +0 -10
- package/types/templates/resolvers/file.template-resolver.d.ts +0 -22
- package/types/templates/resolvers/jsx.template-resolver.d.ts +0 -17
- package/types/templates/resolvers/string.template-resolver.d.ts +0 -13
- package/types/templates/template.model.d.ts +0 -25
- package/types/templates/template.renderer.d.ts +0 -20
- package/types/templates/template.service.d.ts +0 -18
- package/types/templates/tokens.d.ts +0 -4
- package/types/test.d.ts +0 -1
- package/types/test2.d.ts +0 -1
- package/types/test3.d.ts +0 -1
- package/types/test4.d.ts +0 -21
- package/types/test5.d.ts +0 -1
- package/types/test6.d.ts +0 -1
- package/types/text/dynamic-text.model.d.ts +0 -15
- package/types/text/localization.service.d.ts +0 -92
- package/types/theme/adapters/tailwind-adapter.d.ts +0 -18
- package/types/theme/theme-service.d.ts +0 -43
- package/types/threading/thread-pool.d.ts +0 -20
- package/types/tools/fetch-mime-types.d.ts +0 -1
- package/types/types/geo-json.d.ts +0 -36
- package/types/types/index.d.ts +0 -2
- package/types/types/tagged.d.ts +0 -16
- package/types/utils/async-iterable-helpers/take-until.d.ts +0 -3
- package/types/utils/backoff.d.ts +0 -77
- package/types/utils/binary.d.ts +0 -16
- package/types/utils/cryptography.d.ts +0 -122
- package/types/utils/encoding.d.ts +0 -36
- package/types/utils/enum.d.ts +0 -9
- package/types/utils/equals.d.ts +0 -30
- package/types/utils/event-loop.d.ts +0 -4
- package/types/utils/format-error.d.ts +0 -24
- package/types/utils/function/class.d.ts +0 -6
- package/types/utils/function/memoize.d.ts +0 -36
- package/types/utils/iterable-helpers/take-until.d.ts +0 -2
- package/types/utils/math.d.ts +0 -93
- package/types/utils/merge.d.ts +0 -19
- package/types/utils/object/decycle.d.ts +0 -16
- package/types/utils/object/dereference.d.ts +0 -34
- package/types/utils/object/forward-ref.d.ts +0 -21
- package/types/utils/object/lazy-property.d.ts +0 -49
- package/types/utils/object/object.d.ts +0 -30
- package/types/utils/object/property-name.d.ts +0 -61
- package/types/utils/patch-worker.d.ts +0 -25
- package/types/utils/reactive-value-to-signal.d.ts +0 -20
- package/types/utils/reflection.d.ts +0 -8
- package/types/utils/repl.d.ts +0 -9
- package/types/utils/singleton.d.ts +0 -7
- package/types/utils/stream/size-limited-stream.d.ts +0 -2
- package/types/utils/timing.d.ts +0 -20
- package/types/utils/try-ignore.d.ts +0 -9
- package/types/utils/type/extends.d.ts +0 -3
- package/types/utils/type-guards.d.ts +0 -259
- package/types/utils/z-base32.d.ts +0 -3
- /package/{types/ai → ai}/index.d.ts +0 -0
- /package/{types/ai → ai}/module.d.ts +0 -0
- /package/{types/api → api}/client/index.d.ts +0 -0
- /package/{types/api → api}/index.d.ts +0 -0
- /package/{types/api → api}/response.d.ts +0 -0
- /package/{types/api → api}/server/api-request-token.provider.d.ts +0 -0
- /package/{types/api → api}/server/index.d.ts +0 -0
- /package/{types/api → api}/server/middlewares/allowed-methods.middleware.d.ts +0 -0
- /package/{types/api → api}/server/middlewares/content-type.middleware.d.ts +0 -0
- /package/{types/api → api}/server/middlewares/index.d.ts +0 -0
- /package/{types/api → api}/server/middlewares/response-time.middleware.d.ts +0 -0
- /package/{types/api → api}/utils.d.ts +0 -0
- /package/{types/application → application}/index.d.ts +0 -0
- /package/{types/authentication → authentication}/client/index.d.ts +0 -0
- /package/{types/authentication → authentication}/errors/index.d.ts +0 -0
- /package/{types/authentication → authentication}/index.d.ts +0 -0
- /package/{types/authentication → authentication}/models/index.d.ts +0 -0
- /package/{types/authentication → authentication}/models/init-secret-reset-data.model.d.ts +0 -0
- /package/{types/authentication → authentication}/models/token-payload-base.model.d.ts +0 -0
- /package/{types/authentication → authentication}/server/authentication-secret-requirements.validator.d.ts +0 -0
- /package/{types/authentication → authentication}/server/drizzle.config.d.ts +0 -0
- /package/{types/authentication → authentication}/server/index.d.ts +0 -0
- /package/{types/browser → browser}/document-controller.d.ts +0 -0
- /package/{types/browser → browser}/frame-controller.d.ts +0 -0
- /package/{types/browser → browser}/index.d.ts +0 -0
- /package/{types/browser → browser}/module.d.ts +0 -0
- /package/{types/browser → browser}/pdf-options.d.ts +0 -0
- /package/{types/cancellation → cancellation}/index.d.ts +0 -0
- /package/{types/cancellation → cancellation}/token.d.ts +0 -0
- /package/{types/collections → collections}/awaitable/awaitable-list.d.ts +0 -0
- /package/{types/collections → collections}/awaitable/awaitable-map.d.ts +0 -0
- /package/{types/collections → collections}/awaitable/awaitable-set.d.ts +0 -0
- /package/{types/collections → collections}/awaitable/index.d.ts +0 -0
- /package/{types/collections → collections}/collection.d.ts +0 -0
- /package/{types/collections → collections}/index.d.ts +0 -0
- /package/{types/collections → collections}/keyed-set.d.ts +0 -0
- /package/{types/collections → collections}/list.d.ts +0 -0
- /package/{types/collections → collections}/observable/index.d.ts +0 -0
- /package/{types/collections → collections}/observable/observable-array.d.ts +0 -0
- /package/{types/collections → collections}/observable/observable-collection-base.d.ts +0 -0
- /package/{types/collections → collections}/observable/observable-collection.d.ts +0 -0
- /package/{types/collections → collections}/observable/observable-list-base.d.ts +0 -0
- /package/{types/collections → collections}/observable/observable-list.d.ts +0 -0
- /package/{types/collections → collections}/observable/observable-map.d.ts +0 -0
- /package/{types/collections → collections}/observable/observable-set.d.ts +0 -0
- /package/{types/collections → collections}/sorted-list.d.ts +0 -0
- /package/{types/collections → collections}/sorted-map.d.ts +0 -0
- /package/{types/context → context}/index.d.ts +0 -0
- /package/{types/cookie → cookie}/cookie.d.ts +0 -0
- /package/{types/cookie → cookie}/index.d.ts +0 -0
- /package/{types/core.d.ts → core.d.ts} +0 -0
- /package/{types/data-structures → data-structures}/array-dictionary.d.ts +0 -0
- /package/{types/data-structures → data-structures}/cache.d.ts +0 -0
- /package/{types/data-structures → data-structures}/dictionary.d.ts +0 -0
- /package/{types/data-structures → data-structures}/distinct-collection.d.ts +0 -0
- /package/{types/data-structures → data-structures}/index.d.ts +0 -0
- /package/{types/data-structures → data-structures}/iterable-weak-map.d.ts +0 -0
- /package/{types/data-structures → data-structures}/map-dictionary.d.ts +0 -0
- /package/{types/data-structures → data-structures}/multi-key-map.d.ts +0 -0
- /package/{types/data-structures → data-structures}/multi-key-set.d.ts +0 -0
- /package/{types/data-structures → data-structures}/set-collection.d.ts +0 -0
- /package/{types/data-structures → data-structures}/weak-ref-map.d.ts +0 -0
- /package/{types/database → database}/entity-repository.d.ts +0 -0
- /package/{types/database → database}/entity.d.ts +0 -0
- /package/{types/database → database}/id.d.ts +0 -0
- /package/{types/database → database}/index.d.ts +0 -0
- /package/{types/database → database}/mongo/index.d.ts +0 -0
- /package/{types/database → database}/mongo/model/index.d.ts +0 -0
- /package/{types/database → database}/mongo/module.d.ts +0 -0
- /package/{types/database → database}/utils.d.ts +0 -0
- /package/{types/decorators → decorators}/index.d.ts +0 -0
- /package/{types/disposable → disposable}/disposable.d.ts +0 -0
- /package/{types/disposable → disposable}/index.d.ts +0 -0
- /package/{types/disposable → disposable}/using.d.ts +0 -0
- /package/{types/distributed-loop → distributed-loop}/controller.d.ts +0 -0
- /package/{types/distributed-loop → distributed-loop}/index.d.ts +0 -0
- /package/{types/document-management → document-management}/api/index.d.ts +0 -0
- /package/{types/document-management → document-management}/localizations/english.d.ts +0 -0
- /package/{types/document-management → document-management}/localizations/german.d.ts +0 -0
- /package/{types/document-management → document-management}/localizations/index.d.ts +0 -0
- /package/{types/document-management → document-management}/models/document-management-table.d.ts +0 -0
- /package/{types/document-management → document-management}/models/index.d.ts +0 -0
- /package/{types/document-management → document-management}/server/drizzle.config.d.ts +0 -0
- /package/{types/document-management → document-management}/server/index.d.ts +0 -0
- /package/{types/document-management → document-management}/server/services/document-management-ancillary.service.d.ts +0 -0
- /package/{types/document-management → document-management}/server/services/index.d.ts +0 -0
- /package/{types/document-management → document-management}/server/validators/index.d.ts +0 -0
- /package/{types/document-management/models → document-management}/service-models/document-folders.view-model.d.ts +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/enriched-document-assignment.view.js +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/enriched-document-file.view.js +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/enriched-document-type.view.js +0 -0
- /package/{types/document-management/models → document-management}/service-models/enriched/enriched.d.ts +0 -0
- /package/{types/document-management/models → document-management}/service-models/enriched/index.d.ts +0 -0
- /package/document-management/{models/service-models → service-models}/enriched/index.js +0 -0
- /package/{types/document-management/models → document-management}/service-models/index.d.ts +0 -0
- /package/document-management/{models/service-models → service-models}/index.js +0 -0
- /package/{types/document-management/models → document-management}/service-models/stats.view-model.d.ts +0 -0
- /package/{types/dom → dom}/file-download.d.ts +0 -0
- /package/{types/dom → dom}/index.d.ts +0 -0
- /package/{types/dom → dom}/observation/index.d.ts +0 -0
- /package/{types/dom → dom}/observation/mutation-observer.d.ts +0 -0
- /package/{types/dom → dom}/observation/performance-observer.d.ts +0 -0
- /package/{types/dom → dom}/observation/touch-observer.d.ts +0 -0
- /package/{types/enumerable → enumerable}/enumerable-methods.d.ts +0 -0
- /package/{types/enumerable → enumerable}/index.d.ts +0 -0
- /package/{types/enumeration → enumeration}/index.d.ts +0 -0
- /package/{types/environment.d.ts → environment.d.ts} +0 -0
- /package/{types/errors → errors}/api.error.d.ts +0 -0
- /package/{types/errors → errors}/assertion.error.d.ts +0 -0
- /package/{types/errors → errors}/bad-request.error.d.ts +0 -0
- /package/{types/errors → errors}/custom.error.d.ts +0 -0
- /package/{types/errors → errors}/details.error.d.ts +0 -0
- /package/{types/errors → errors}/forbidden.error.d.ts +0 -0
- /package/{types/errors → errors}/index.d.ts +0 -0
- /package/{types/errors → errors}/invalid-credentials.error.d.ts +0 -0
- /package/{types/errors → errors}/invalid-token.error.d.ts +0 -0
- /package/{types/errors → errors}/max-bytes-exceeded.error.d.ts +0 -0
- /package/{types/errors → errors}/method-not-allowed.error.d.ts +0 -0
- /package/{types/errors → errors}/multi.error.d.ts +0 -0
- /package/{types/errors → errors}/not-found.error.d.ts +0 -0
- /package/{types/errors → errors}/not-implemented.error.d.ts +0 -0
- /package/{types/errors → errors}/timeout.error.d.ts +0 -0
- /package/{types/errors → errors}/unauthorized.error.d.ts +0 -0
- /package/{types/errors → errors}/unsupported-media-type.error.d.ts +0 -0
- /package/{types/errors → errors}/utils.d.ts +0 -0
- /package/{types/examples → examples}/mail/basic.d.ts +0 -0
- /package/{types/examples → examples}/orm/drizzle.config.d.ts +0 -0
- /package/{types/examples → examples}/orm/test.d.ts +0 -0
- /package/{types/examples → examples}/pdf/basic.d.ts +0 -0
- /package/{types/examples → examples}/template/basic.d.ts +0 -0
- /package/{types/file → file}/index.d.ts +0 -0
- /package/{types/file → file}/mime-type.d.ts +0 -0
- /package/{types/file → file}/mime-types.d.ts +0 -0
- /package/{types/file → file}/server/index.d.ts +0 -0
- /package/{types/file → file}/server/temporary-file.d.ts +0 -0
- /package/{types/formats.d.ts → formats.d.ts} +0 -0
- /package/{types/function → function}/index.d.ts +0 -0
- /package/{types/http → http}/client/http-client-options.d.ts +0 -0
- /package/{types/http → http}/client/http-client.adapter.d.ts +0 -0
- /package/{types/http → http}/client/index.d.ts +0 -0
- /package/{types/http → http}/cookie-parser.d.ts +0 -0
- /package/{types/http → http}/http-form.d.ts +0 -0
- /package/{types/http → http}/http-headers.d.ts +0 -0
- /package/{types/http → http}/http-query.d.ts +0 -0
- /package/{types/http → http}/http-url-parameters.d.ts +0 -0
- /package/{types/http → http}/index.d.ts +0 -0
- /package/{types/http → http}/server/index.d.ts +0 -0
- /package/{types/http → http}/server/node/index.d.ts +0 -0
- /package/{types/http → http}/server/node/module.d.ts +0 -0
- /package/{types/image-service → image-service}/image-service.d.ts +0 -0
- /package/{types/image-service → image-service}/imgproxy/index.d.ts +0 -0
- /package/{types/image-service → image-service}/index.d.ts +0 -0
- /package/{types/import.d.ts → import.d.ts} +0 -0
- /package/{types/injector → injector}/index.d.ts +0 -0
- /package/{types/injector → injector}/inject.d.ts +0 -0
- /package/{types/injector → injector}/symbols.d.ts +0 -0
- /package/{types/interfaces.d.ts → interfaces.d.ts} +0 -0
- /package/{types/intl → intl}/index.d.ts +0 -0
- /package/{types/intl → intl}/number-parser.d.ts +0 -0
- /package/{types/json-path → json-path}/index.d.ts +0 -0
- /package/{types/json-path → json-path}/json-path.d.ts +0 -0
- /package/{types/jsx → jsx}/index.d.ts +0 -0
- /package/{types/jsx → jsx}/is-component-class.d.ts +0 -0
- /package/{types/jsx → jsx}/render-to-string.d.ts +0 -0
- /package/{types/key-value-store → key-value-store}/index.d.ts +0 -0
- /package/{types/key-value-store → key-value-store}/key-value-store.provider.d.ts +0 -0
- /package/{types/key-value-store → key-value-store}/mongo/index.d.ts +0 -0
- /package/{types/lock → lock}/index.d.ts +0 -0
- /package/{types/lock → lock}/mongo/index.d.ts +0 -0
- /package/{types/lock → lock}/web/index.d.ts +0 -0
- /package/{types/lock → lock}/web/module.d.ts +0 -0
- /package/{types/lock → lock}/web/web-lock.d.ts +0 -0
- /package/{types/logger → logger}/console/index.d.ts +0 -0
- /package/{types/logger → logger}/console/logger.d.ts +0 -0
- /package/{types/logger → logger}/index.d.ts +0 -0
- /package/{types/logger → logger}/level.d.ts +0 -0
- /package/{types/logger → logger}/noop/index.d.ts +0 -0
- /package/{types/logger → logger}/noop/logger.d.ts +0 -0
- /package/{types/mail → mail}/clients/index.d.ts +0 -0
- /package/{types/mail → mail}/drizzle.config.d.ts +0 -0
- /package/{types/mail → mail}/index.d.ts +0 -0
- /package/{types/mail → mail}/models/index.d.ts +0 -0
- /package/{types/mail → mail}/models/mail-address.model.d.ts +0 -0
- /package/{types/mail → mail}/models/mail-content.model.d.ts +0 -0
- /package/{types/mail → mail}/models/mail-send-result.model.d.ts +0 -0
- /package/{types/memory → memory}/finalization.d.ts +0 -0
- /package/{types/memory → memory}/index.d.ts +0 -0
- /package/{types/memory → memory}/observable-finalization-registry.d.ts +0 -0
- /package/{types/message-bus → message-bus}/broadcast-channel/index.d.ts +0 -0
- /package/{types/message-bus → message-bus}/broadcast-channel/module.d.ts +0 -0
- /package/{types/message-bus → message-bus}/index.d.ts +0 -0
- /package/{types/message-bus → message-bus}/local/index.d.ts +0 -0
- /package/{types/message-bus → message-bus}/local/module.d.ts +0 -0
- /package/{types/message-bus → message-bus}/local/types.d.ts +0 -0
- /package/{types/message-bus → message-bus}/message-bus-provider.d.ts +0 -0
- /package/{types/migration → migration}/index.d.ts +0 -0
- /package/{types/migration → migration}/migrator.d.ts +0 -0
- /package/{types/migration → migration}/mongo/index.d.ts +0 -0
- /package/{types/module → module}/index.d.ts +0 -0
- /package/{types/module → module}/modules/index.d.ts +0 -0
- /package/{types/object-storage → object-storage}/index.d.ts +0 -0
- /package/{types/object-storage → object-storage}/object-storage-provider.d.ts +0 -0
- /package/{types/object-storage → object-storage}/s3/index.d.ts +0 -0
- /package/{types/openid-connect → openid-connect}/index.d.ts +0 -0
- /package/{types/openid-connect → openid-connect}/oidc.service-model.d.ts +0 -0
- /package/{types/orm → orm}/data-types/bytea.d.ts +0 -0
- /package/{types/orm → orm}/data-types/index.d.ts +0 -0
- /package/{types/orm → orm}/data-types/numeric-date.d.ts +0 -0
- /package/{types/orm → orm}/data-types/timestamp.d.ts +0 -0
- /package/{types/orm → orm}/index.d.ts +0 -0
- /package/{types/orm → orm}/schemas/index.d.ts +0 -0
- /package/{types/orm → orm}/server/drizzle/index.d.ts +0 -0
- /package/{types/orm → orm}/server/encryption.d.ts +0 -0
- /package/{types/orm → orm}/server/index.d.ts +0 -0
- /package/{types/orm → orm}/server/module.d.ts +0 -0
- /package/{types/orm → orm}/server/query-converter.d.ts +0 -0
- /package/{types/orm → orm}/sqls.d.ts +0 -0
- /package/{types/orm → orm}/utils.d.ts +0 -0
- /package/{types/password → password}/have-i-been-pwned.d.ts +0 -0
- /package/{types/password → password}/index.d.ts +0 -0
- /package/{types/password → password}/password-check.d.ts +0 -0
- /package/{types/pdf → pdf}/index.d.ts +0 -0
- /package/{types/pdf → pdf}/utils.d.ts +0 -0
- /package/{types/polyfills.d.ts → polyfills.d.ts} +0 -0
- /package/{types/pool → pool}/index.d.ts +0 -0
- /package/{types/process → process}/index.d.ts +0 -0
- /package/{types/process → process}/spawn.d.ts +0 -0
- /package/{types/promise → promise}/custom-promise.d.ts +0 -0
- /package/{types/promise → promise}/deferred-promise.d.ts +0 -0
- /package/{types/promise → promise}/index.d.ts +0 -0
- /package/{types/promise → promise}/lazy-promise.d.ts +0 -0
- /package/{types/promise → promise}/types.d.ts +0 -0
- /package/{types/queue → queue}/enqueue-batch.d.ts +0 -0
- /package/{types/queue → queue}/index.d.ts +0 -0
- /package/{types/queue → queue}/mongo/index.d.ts +0 -0
- /package/{types/queue → queue}/postgres/drizzle.config.d.ts +0 -0
- /package/{types/queue → queue}/postgres/index.d.ts +0 -0
- /package/{types/random → random}/index.d.ts +0 -0
- /package/{types/random → random}/number-generator/index.d.ts +0 -0
- /package/{types/random → random}/number-generator/mulberry32.d.ts +0 -0
- /package/{types/random → random}/number-generator/random-number-generator-function.d.ts +0 -0
- /package/{types/random → random}/number-generator/random-number-generator.d.ts +0 -0
- /package/{types/random → random}/number-generator/seeded-random-number-generator.d.ts +0 -0
- /package/{types/random → random}/number-generator/sfc32.d.ts +0 -0
- /package/{types/random → random}/number-generator/utils.d.ts +0 -0
- /package/{types/random → random}/series.d.ts +0 -0
- /package/{types/reflection → reflection}/decorator-data.d.ts +0 -0
- /package/{types/reflection → reflection}/index.d.ts +0 -0
- /package/{types/require.d.ts → require.d.ts} +0 -0
- /package/{types/rpc → rpc}/adapters/index.d.ts +0 -0
- /package/{types/rpc → rpc}/adapters/readable-stream.adapter.d.ts +0 -0
- /package/{types/rpc → rpc}/endpoints/index.d.ts +0 -0
- /package/{types/rpc → rpc}/endpoints/message-port.rpc-endpoint.d.ts +0 -0
- /package/{types/rpc → rpc}/index.d.ts +0 -0
- /package/{types/rpc → rpc}/rpc.endpoint.d.ts +0 -0
- /package/{types/rxjs-utils → rxjs-utils}/cast.d.ts +0 -0
- /package/{types/rxjs-utils → rxjs-utils}/index.d.ts +0 -0
- /package/{types/rxjs-utils → rxjs-utils}/noop.d.ts +0 -0
- /package/{types/rxjs-utils → rxjs-utils}/reject-error.d.ts +0 -0
- /package/{types/rxjs-utils → rxjs-utils}/slow-array.d.ts +0 -0
- /package/{types/rxjs-utils → rxjs-utils}/start-with-provider.d.ts +0 -0
- /package/{types/rxjs-utils → rxjs-utils}/teardown.d.ts +0 -0
- /package/{types/rxjs-utils → rxjs-utils}/timing.d.ts +0 -0
- /package/{types/rxjs-utils → rxjs-utils}/untrack.d.ts +0 -0
- /package/{types/schema → schema}/converters/index.d.ts +0 -0
- /package/{types/schema → schema}/decorators/index.d.ts +0 -0
- /package/{types/schema → schema}/index.d.ts +0 -0
- /package/{types/schema → schema}/schemas/any.d.ts +0 -0
- /package/{types/schema → schema}/schemas/bigint.d.ts +0 -0
- /package/{types/schema → schema}/schemas/boolean.d.ts +0 -0
- /package/{types/schema → schema}/schemas/date.d.ts +0 -0
- /package/{types/schema → schema}/schemas/index.d.ts +0 -0
- /package/{types/schema → schema}/schemas/readable-stream.d.ts +0 -0
- /package/{types/schema → schema}/schemas/regexp.d.ts +0 -0
- /package/{types/schema → schema}/schemas/string.d.ts +0 -0
- /package/{types/schema → schema}/schemas/symbol.d.ts +0 -0
- /package/{types/schema → schema}/schemas/uint8-array.d.ts +0 -0
- /package/{types/schema → schema}/schemas/unknown.d.ts +0 -0
- /package/{types/schema → schema}/testable.d.ts +0 -0
- /package/{types/schema → schema}/types.d.ts +0 -0
- /package/{types/search-index → search-index}/elastic/index.d.ts +0 -0
- /package/{types/search-index → search-index}/elastic/keyword-rewriter.d.ts +0 -0
- /package/{types/search-index → search-index}/elastic/model/elastic-query.d.ts +0 -0
- /package/{types/search-index → search-index}/elastic/model/index.d.ts +0 -0
- /package/{types/search-index → search-index}/elastic/query-builder/boolean-query-builder.d.ts +0 -0
- /package/{types/search-index → search-index}/elastic/query-builder/index.d.ts +0 -0
- /package/{types/search-index → search-index}/elastic/types.d.ts +0 -0
- /package/{types/search-index → search-index}/index.d.ts +0 -0
- /package/{types/search-index → search-index}/memory/index.d.ts +0 -0
- /package/{types/serializer → serializer}/handlers/date.d.ts +0 -0
- /package/{types/serializer → serializer}/handlers/error.d.ts +0 -0
- /package/{types/serializer → serializer}/handlers/index.d.ts +0 -0
- /package/{types/serializer → serializer}/handlers/map.d.ts +0 -0
- /package/{types/serializer → serializer}/handlers/regex.d.ts +0 -0
- /package/{types/serializer → serializer}/handlers/register.d.ts +0 -0
- /package/{types/serializer → serializer}/handlers/set.d.ts +0 -0
- /package/{types/serializer → serializer}/index.d.ts +0 -0
- /package/{types/signals → signals}/api.d.ts +0 -0
- /package/{types/signals → signals}/computed-with-dependencies.d.ts +0 -0
- /package/{types/signals → signals}/effect-with-dependencies.d.ts +0 -0
- /package/{types/signals → signals}/implementation/api.d.ts +0 -0
- /package/{types/signals → signals}/implementation/asserts.d.ts +0 -0
- /package/{types/signals → signals}/implementation/computed.d.ts +0 -0
- /package/{types/signals → signals}/implementation/configure.d.ts +0 -0
- /package/{types/signals → signals}/implementation/effect.d.ts +0 -0
- /package/{types/signals → signals}/implementation/equality.d.ts +0 -0
- /package/{types/signals → signals}/implementation/errors.d.ts +0 -0
- /package/{types/signals → signals}/implementation/graph.d.ts +0 -0
- /package/{types/signals → signals}/implementation/index.d.ts +0 -0
- /package/{types/signals → signals}/implementation/signal.d.ts +0 -0
- /package/{types/signals → signals}/implementation/to-observable.d.ts +0 -0
- /package/{types/signals → signals}/implementation/to-signal.d.ts +0 -0
- /package/{types/signals → signals}/implementation/untracked.d.ts +0 -0
- /package/{types/signals → signals}/implementation/watch.d.ts +0 -0
- /package/{types/signals → signals}/implementation/writable-signal.d.ts +0 -0
- /package/{types/signals → signals}/index.d.ts +0 -0
- /package/{types/signals → signals}/notifier.d.ts +0 -0
- /package/{types/signals → signals}/operators/combine.d.ts +0 -0
- /package/{types/signals → signals}/operators/defer.d.ts +0 -0
- /package/{types/signals → signals}/operators/derive-async.d.ts +0 -0
- /package/{types/signals → signals}/operators/index.d.ts +0 -0
- /package/{types/signals → signals}/operators/map.d.ts +0 -0
- /package/{types/signals → signals}/operators/switchAll.d.ts +0 -0
- /package/{types/signals → signals}/pipe.d.ts +0 -0
- /package/{types/signals → signals}/symbol.d.ts +0 -0
- /package/{types/signals → signals}/to-lazy-signal.d.ts +0 -0
- /package/{types/signals → signals}/types.d.ts +0 -0
- /package/{types/signals → signals}/untracked-operator.d.ts +0 -0
- /package/{types/sse → sse}/index.d.ts +0 -0
- /package/{types/sse → sse}/model.d.ts +0 -0
- /package/{types/sse → sse}/server-sent-events.d.ts +0 -0
- /package/{types/supports.d.ts → supports.d.ts} +0 -0
- /package/{types/templates → templates}/index.d.ts +0 -0
- /package/{types/templates → templates}/providers/index.d.ts +0 -0
- /package/{types/templates → templates}/providers/memory.template-provider.d.ts +0 -0
- /package/{types/templates → templates}/renderers/index.d.ts +0 -0
- /package/{types/templates → templates}/resolvers/index.d.ts +0 -0
- /package/{types/templates → templates}/template-renderer.provider.d.ts +0 -0
- /package/{types/templates → templates}/template-resolver.provider.d.ts +0 -0
- /package/{types/templates → templates}/template.provider.d.ts +0 -0
- /package/{types/templates → templates}/template.resolver.d.ts +0 -0
- /package/{types/templates → templates}/types/index.d.ts +0 -0
- /package/{types/templates → templates}/types/jsx.intrinsic-elements.d.ts +0 -0
- /package/{types/text → text}/common-localization.d.ts +0 -0
- /package/{types/text → text}/index.d.ts +0 -0
- /package/{types/text → text}/localizable-text.model.d.ts +0 -0
- /package/{types/theme → theme}/adapters/css-adapter.d.ts +0 -0
- /package/{types/theme → theme}/adapters/index.d.ts +0 -0
- /package/{types/theme → theme}/index.d.ts +0 -0
- /package/{types/threading → threading}/index.d.ts +0 -0
- /package/{types/threading → threading}/thread-worker.d.ts +0 -0
- /package/{types/tokens.d.ts → tokens.d.ts} +0 -0
- /package/{types/types.d.ts → types.d.ts} +0 -0
- /package/{types/utils → utils}/alphabet.d.ts +0 -0
- /package/{types/utils → utils}/any-iterable-iterator.d.ts +0 -0
- /package/{types/utils → utils}/array/array-backtracker.d.ts +0 -0
- /package/{types/utils → utils}/array/array.d.ts +0 -0
- /package/{types/utils → utils}/array/index.d.ts +0 -0
- /package/{types/utils → utils}/async-hook/async-hook.d.ts +0 -0
- /package/{types/utils → utils}/async-hook/index.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/all.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/any.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/assert.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/batch.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/buffer.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/concat.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/default-if-empty.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/deferred.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/difference.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/distinct.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/drain.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/filter.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/first-or-default.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/first.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/for-each.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/group-single.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/group-to-map.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/group-to-single-map.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/group.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/includes.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/index.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/interrupt.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/is-async-iterable.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/last-or-default.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/last.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/map-many.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/map.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/materialize.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/metadata.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/multiplex.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/observable-iterable.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/pairwise.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/parallel/feed.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/parallel/filter.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/parallel/for-each.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/parallel/group.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/parallel/index.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/parallel/map.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/parallel/tap.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/parallel/types.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/reduce.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/retry.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/single-or-default.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/single.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/skip.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/sort.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/take-while.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/take.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/tap.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/throttle.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/to-array.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/to-async-iterable-iterator.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/to-async-iterator.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/to-set.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/to-sync-iterable.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/types.d.ts +0 -0
- /package/{types/utils → utils}/async-iterable-helpers/while.d.ts +0 -0
- /package/{types/utils → utils}/async-iterator-iterable-iterator.d.ts +0 -0
- /package/{types/utils → utils}/base64.d.ts +0 -0
- /package/{types/utils → utils}/benchmark.d.ts +0 -0
- /package/{types/utils → utils}/binary-search.d.ts +0 -0
- /package/{types/utils → utils}/clone.d.ts +0 -0
- /package/{types/utils → utils}/comparison.d.ts +0 -0
- /package/{types/utils → utils}/compression.d.ts +0 -0
- /package/{types/utils → utils}/config-parser.d.ts +0 -0
- /package/{types/utils → utils}/crc32.d.ts +0 -0
- /package/{types/utils → utils}/date-time.d.ts +0 -0
- /package/{types/utils → utils}/factory-map.d.ts +0 -0
- /package/{types/utils → utils}/feedable-async-iterable.d.ts +0 -0
- /package/{types/utils → utils}/file-reader.d.ts +0 -0
- /package/{types/utils → utils}/format.d.ts +0 -0
- /package/{types/utils → utils}/function/index.d.ts +0 -0
- /package/{types/utils → utils}/function/throttle.d.ts +0 -0
- /package/{types/utils → utils}/helpers.d.ts +0 -0
- /package/{types/utils → utils}/html-link-utils.d.ts +0 -0
- /package/{types/utils → utils}/image.d.ts +0 -0
- /package/{types/utils → utils}/index.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/all.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/any.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/assert.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/batch.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/concat.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/default-if-empty.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/deferred.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/difference.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/distinct.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/drain.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/filter.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/first-or-default.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/first.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/for-each.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/group-single.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/group-to-map.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/group-to-single-map.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/group.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/includes.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/index.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/is-iterable.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/last-or-default.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/last.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/map-many.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/map.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/materialize.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/metadata.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/pairwise.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/range.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/reduce.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/single-or-default.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/single.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/skip.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/sort.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/take-while.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/take.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/tap.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/types.d.ts +0 -0
- /package/{types/utils → utils}/iterable-helpers/while.d.ts +0 -0
- /package/{types/utils → utils}/jwt.d.ts +0 -0
- /package/{types/utils → utils}/map.d.ts +0 -0
- /package/{types/utils → utils}/middleware.d.ts +0 -0
- /package/{types/utils → utils}/moving-metric.d.ts +0 -0
- /package/{types/utils → utils}/noop.d.ts +0 -0
- /package/{types/utils → utils}/object/index.d.ts +0 -0
- /package/{types/utils → utils}/object/merge.d.ts +0 -0
- /package/{types/utils → utils}/ordered-feedable-async-iterable.d.ts +0 -0
- /package/{types/utils → utils}/patterns.d.ts +0 -0
- /package/{types/utils → utils}/periodic-reporter.d.ts +0 -0
- /package/{types/utils → utils}/periodic-sampler.d.ts +0 -0
- /package/{types/utils → utils}/provider-function-iterable.d.ts +0 -0
- /package/{types/utils → utils}/proxy.d.ts +0 -0
- /package/{types/utils → utils}/random.d.ts +0 -0
- /package/{types/utils → utils}/set.d.ts +0 -0
- /package/{types/utils → utils}/sort.d.ts +0 -0
- /package/{types/utils → utils}/stream/finalize-stream.d.ts +0 -0
- /package/{types/utils → utils}/stream/from-promise.d.ts +0 -0
- /package/{types/utils → utils}/stream/index.d.ts +0 -0
- /package/{types/utils → utils}/stream/readable-stream-adapter.d.ts +0 -0
- /package/{types/utils → utils}/stream/slice.d.ts +0 -0
- /package/{types/utils → utils}/stream/stream-helper-types.d.ts +0 -0
- /package/{types/utils → utils}/stream/stream-reader.d.ts +0 -0
- /package/{types/utils → utils}/stream/to-bytes-stream.d.ts +0 -0
- /package/{types/utils → utils}/stream/to-readable-stream.d.ts +0 -0
- /package/{types/utils → utils}/string/hypenate.d.ts +0 -0
- /package/{types/utils → utils}/string/index.d.ts +0 -0
- /package/{types/utils → utils}/string/normalize.d.ts +0 -0
- /package/{types/utils → utils}/string/snake-case.d.ts +0 -0
- /package/{types/utils → utils}/string/title-case.d.ts +0 -0
- /package/{types/utils → utils}/string/trim.d.ts +0 -0
- /package/{types/utils → utils}/throw.d.ts +0 -0
- /package/{types/utils → utils}/timer.d.ts +0 -0
- /package/{types/utils → utils}/type/index.d.ts +0 -0
- /package/{types/utils → utils}/type-of.d.ts +0 -0
- /package/{types/utils → utils}/units.d.ts +0 -0
- /package/{types/utils → utils}/url-builder.d.ts +0 -0
- /package/{types/utils → utils}/value-or-provider.d.ts +0 -0
- /package/{types/web-types.d.ts → web-types.d.ts} +0 -0
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import type { AbstractConstructor } from '../types.js';
|
|
2
|
+
import { ContextDataMap } from '../data-structures/context-data-map.js';
|
|
3
|
+
import type { DecoratorData } from './types.js';
|
|
4
|
+
export type ReflectionMetadata = TypeMetadata | PropertyMetadata | MethodMetadata | ConstructorParameterMetadata | MethodParameterMetadata;
|
|
5
|
+
export type MetadataType = 'type' | 'property' | 'method' | 'method-parameter' | 'constructor-parameter';
|
|
6
|
+
export type MetadataBase<T extends MetadataType> = {
|
|
7
|
+
metadataType: T;
|
|
8
|
+
};
|
|
9
|
+
export type TypeMetadata = MetadataBase<'type'> & {
|
|
10
|
+
readonly constructor: AbstractConstructor;
|
|
11
|
+
readonly parent: AbstractConstructor | null;
|
|
12
|
+
/** Undefined if class has no constructor */
|
|
13
|
+
readonly parameters: ConstructorParameterMetadata[] | undefined;
|
|
14
|
+
readonly properties: ReadonlyMap<string | symbol, PropertyMetadata>;
|
|
15
|
+
readonly staticProperties: ReadonlyMap<string | symbol, PropertyMetadata>;
|
|
16
|
+
readonly methods: ReadonlyMap<string | symbol, MethodMetadata>;
|
|
17
|
+
readonly staticMethods: ReadonlyMap<string | symbol, MethodMetadata>;
|
|
18
|
+
readonly data: ContextDataMap;
|
|
19
|
+
};
|
|
20
|
+
export type PropertyMetadata = MetadataBase<'property'> & {
|
|
21
|
+
key: string | symbol;
|
|
22
|
+
type: AbstractConstructor;
|
|
23
|
+
isAccessor: boolean;
|
|
24
|
+
data: ContextDataMap;
|
|
25
|
+
inherited: boolean;
|
|
26
|
+
};
|
|
27
|
+
export type MethodMetadata = MetadataBase<'method'> & {
|
|
28
|
+
parameters: MethodParameterMetadata[];
|
|
29
|
+
returnType: AbstractConstructor | undefined;
|
|
30
|
+
data: ContextDataMap;
|
|
31
|
+
inherited: boolean;
|
|
32
|
+
};
|
|
33
|
+
export type ConstructorParameterMetadata = MetadataBase<'constructor-parameter'> & {
|
|
34
|
+
type: AbstractConstructor | undefined;
|
|
35
|
+
index: number;
|
|
36
|
+
data: ContextDataMap;
|
|
37
|
+
};
|
|
38
|
+
export type MethodParameterMetadata = MetadataBase<'method-parameter'> & {
|
|
39
|
+
type: AbstractConstructor;
|
|
40
|
+
index: number;
|
|
41
|
+
data: ContextDataMap;
|
|
42
|
+
};
|
|
43
|
+
export type ParameterMetadata = ConstructorParameterMetadata | MethodParameterMetadata;
|
|
44
|
+
export declare class ReflectionRegistry {
|
|
45
|
+
#private;
|
|
46
|
+
private readonly metadataMap;
|
|
47
|
+
private readonly finalizedTypesSet;
|
|
48
|
+
constructor();
|
|
49
|
+
hasType(type: AbstractConstructor): boolean;
|
|
50
|
+
getMetadata(type: AbstractConstructor): TypeMetadata | undefined;
|
|
51
|
+
register(target: object, propertyKey?: string | symbol, descriptorOrParameterIndex?: PropertyDescriptor | number): DecoratorData;
|
|
52
|
+
registerDecoratorData(data: DecoratorData): ReflectionMetadata;
|
|
53
|
+
/**
|
|
54
|
+
* Unregister a type. Can be useful if you replace a class with an decorator.
|
|
55
|
+
* However, this should not be necessary since WeakRefs are used.
|
|
56
|
+
* @param type Type to unregister
|
|
57
|
+
*/
|
|
58
|
+
unregister(type: AbstractConstructor): void;
|
|
59
|
+
getOrInitializeMetadata(type: AbstractConstructor): TypeMetadata;
|
|
60
|
+
}
|
|
61
|
+
export declare const reflectionRegistry: ReflectionRegistry;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import type { AbstractConstructor, Constructor, ConstructorParameterDecorator, Record } from '../types.js';
|
|
2
|
+
import type { UnionToIntersection } from 'type-fest';
|
|
3
|
+
import type { ConstructorParameterMetadata, MethodMetadata, MethodParameterMetadata, ParameterMetadata, PropertyMetadata, TypeMetadata } from './registry.js';
|
|
4
|
+
export type DecoratorType = 'class' | 'property' | 'accessor' | 'method' | 'parameter' | 'methodParameter' | 'constructorParameter';
|
|
5
|
+
export type DecoratorHandler<T extends DecoratorType = DecoratorType> = (data: DecoratorData<T>, metadata: DecoratorMetadata<T>, originalArguments: Parameters<DecoratorUnion<T>>) => DecoratorHandlerReturnType<T>;
|
|
6
|
+
export type DecoratorHandlerReturnType<T extends DecoratorType = DecoratorType> = DecoratorOptionsTypeMap<DecoratorHandlerReturnTypeMap, T>;
|
|
7
|
+
export type Decorator<T extends DecoratorType = DecoratorType> = DecoratorOptionsTypeMapIntersection<DecoratorMap, T>;
|
|
8
|
+
export type DecoratorUnion<T extends DecoratorType = DecoratorType> = DecoratorOptionsTypeMap<DecoratorMap, T>;
|
|
9
|
+
export type DecoratorData<T extends DecoratorType = DecoratorType> = DecoratorOptionsTypeMap<DecoratorDataMap, T>;
|
|
10
|
+
export type DecoratorMetadata<T extends DecoratorType = DecoratorType> = DecoratorOptionsTypeMap<DecoratorMetadataMap, T>;
|
|
11
|
+
export type CombinedDecoratorParameters = [target: object, propertyKey?: string | symbol, descriptorOrParameterIndex?: PropertyDescriptor | number];
|
|
12
|
+
export type DecoratorTypeMap<T extends Record<DecoratorType> = Record<DecoratorType>> = T;
|
|
13
|
+
export type DecoratorOptionsTypeMap<T extends DecoratorTypeMap, U extends DecoratorType> = {
|
|
14
|
+
[D in U]: T[D];
|
|
15
|
+
}[U];
|
|
16
|
+
export type DecoratorOptionsTypeMapIntersection<T extends DecoratorTypeMap, U extends DecoratorType> = UnionToIntersection<DecoratorOptionsTypeMap<T, U>>;
|
|
17
|
+
export type DecoratorDataMap = DecoratorTypeMap<{
|
|
18
|
+
class: ClassDecoratorData;
|
|
19
|
+
property: PropertyDecoratorData;
|
|
20
|
+
accessor: AccessorDecoratorData;
|
|
21
|
+
method: MethodDecoratorData;
|
|
22
|
+
parameter: ParameterDecoratorData;
|
|
23
|
+
methodParameter: MethodParameterDecoratorData;
|
|
24
|
+
constructorParameter: ConstructorParameterDecoratorData;
|
|
25
|
+
}>;
|
|
26
|
+
export type DecoratorMetadataMap = DecoratorTypeMap<{
|
|
27
|
+
class: TypeMetadata;
|
|
28
|
+
property: PropertyMetadata;
|
|
29
|
+
accessor: PropertyMetadata;
|
|
30
|
+
method: MethodMetadata;
|
|
31
|
+
parameter: ParameterMetadata;
|
|
32
|
+
methodParameter: MethodParameterMetadata;
|
|
33
|
+
constructorParameter: ConstructorParameterMetadata;
|
|
34
|
+
}>;
|
|
35
|
+
export type DecoratorHandlerReturnTypeMap = DecoratorTypeMap<{
|
|
36
|
+
class: void | undefined | Constructor;
|
|
37
|
+
property: void;
|
|
38
|
+
accessor: void | undefined | TypedPropertyDescriptor<any>;
|
|
39
|
+
method: void | undefined | PropertyDescriptor;
|
|
40
|
+
parameter: void;
|
|
41
|
+
methodParameter: void;
|
|
42
|
+
constructorParameter: void;
|
|
43
|
+
}>;
|
|
44
|
+
export type DecoratorMap = DecoratorTypeMap<{
|
|
45
|
+
class: ClassDecorator;
|
|
46
|
+
property: PropertyDecorator;
|
|
47
|
+
accessor: MethodDecorator;
|
|
48
|
+
method: MethodDecorator;
|
|
49
|
+
parameter: ParameterDecorator & ConstructorParameterDecorator;
|
|
50
|
+
methodParameter: ParameterDecorator;
|
|
51
|
+
constructorParameter: ConstructorParameterDecorator;
|
|
52
|
+
}>;
|
|
53
|
+
export type DecoratorDataBase<Type extends string> = {
|
|
54
|
+
type: Type;
|
|
55
|
+
constructor: AbstractConstructor;
|
|
56
|
+
prototype: object;
|
|
57
|
+
};
|
|
58
|
+
export type ClassDecoratorData = DecoratorDataBase<'class'>;
|
|
59
|
+
export type PropertyDecoratorData = DecoratorDataBase<'property'> & {
|
|
60
|
+
static: boolean;
|
|
61
|
+
propertyKey: string | symbol;
|
|
62
|
+
};
|
|
63
|
+
export type AccessorDecoratorData = DecoratorDataBase<'accessor'> & {
|
|
64
|
+
static: boolean;
|
|
65
|
+
propertyKey: string | symbol;
|
|
66
|
+
descriptor: PropertyDescriptor;
|
|
67
|
+
};
|
|
68
|
+
export type PropertyOrAccessorDecoratorData = PropertyDecoratorData | AccessorDecoratorData;
|
|
69
|
+
export type MethodDecoratorData = DecoratorDataBase<'method'> & {
|
|
70
|
+
static: boolean;
|
|
71
|
+
methodKey: string | symbol;
|
|
72
|
+
descriptor: PropertyDescriptor;
|
|
73
|
+
};
|
|
74
|
+
export type MethodParameterDecoratorData = DecoratorDataBase<'method-parameter'> & {
|
|
75
|
+
static: boolean;
|
|
76
|
+
methodKey: string | symbol;
|
|
77
|
+
index: number;
|
|
78
|
+
};
|
|
79
|
+
export type ConstructorParameterDecoratorData = DecoratorDataBase<'constructor-parameter'> & {
|
|
80
|
+
index: number;
|
|
81
|
+
};
|
|
82
|
+
export type ParameterDecoratorData = MethodParameterDecoratorData | ConstructorParameterDecoratorData;
|
|
83
|
+
export type ClassDecoratorHandler = DecoratorHandler<'class'>;
|
|
84
|
+
export type PropertyDecoratorHandler = DecoratorHandler<'property'>;
|
|
85
|
+
export type AccessorDecoratorHandler = DecoratorHandler<'accessor'>;
|
|
86
|
+
export type PropertyOrAccessorDecoratorHandler = DecoratorHandler<'property' | 'accessor'>;
|
|
87
|
+
export type MethodDecoratorHandler = DecoratorHandler<'method'>;
|
|
88
|
+
export type ParameterDecoratorHandler = DecoratorHandler<'parameter'>;
|
|
89
|
+
export type ConstructorParameterDecoratorHandler = DecoratorHandler<'constructorParameter'>;
|
|
90
|
+
export type MethodParameterDecoratorHandler = DecoratorHandler<'methodParameter'>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { AbstractConstructor, Constructor, ConstructorParameterDecorator, OneOrMany, PropertiesOfType, Record, TypedOmit } from '../types.js';
|
|
2
|
+
import type { CombinedDecoratorParameters, Decorator, DecoratorData, DecoratorHandler, DecoratorMetadata, DecoratorType, DecoratorUnion } from './types.js';
|
|
3
|
+
export type CreateDecoratorTypeOptions = Partial<Record<DecoratorType, boolean>>;
|
|
4
|
+
export type CreateDecoratorOptions = {
|
|
5
|
+
data?: Record<string | symbol>;
|
|
6
|
+
/** Merge data values instead of replacing them (requires them to be objects, arrays, maps or sets) */
|
|
7
|
+
mergeData?: boolean;
|
|
8
|
+
/** Return values of these decorators are not used */
|
|
9
|
+
include?: OneOrMany<DecoratorUnion>;
|
|
10
|
+
};
|
|
11
|
+
export type SpecificCreateDecoratorOptions<T extends DecoratorType> = TypedOmit<CreateDecoratorOptions, 'include'> & {
|
|
12
|
+
handler?: DecoratorHandler<T>;
|
|
13
|
+
include?: OneOrMany<DecoratorUnion<T>>;
|
|
14
|
+
};
|
|
15
|
+
export type WrapDecoratorOptions = CreateDecoratorOptions & {
|
|
16
|
+
handler?: (data: DecoratorData, metadata: DecoratorMetadata, originalArguments: CombinedDecoratorParameters) => void;
|
|
17
|
+
};
|
|
18
|
+
type CreateDecoratorType<T extends CreateDecoratorOptions> = Extract<PropertiesOfType<T, true>, DecoratorType>;
|
|
19
|
+
export declare function createDecorator<T extends CreateDecoratorTypeOptions & CreateDecoratorOptions>(options: T, handler?: DecoratorHandler<CreateDecoratorType<T>>): Decorator<CreateDecoratorType<T>>;
|
|
20
|
+
export declare function createClassDecorator(options?: SpecificCreateDecoratorOptions<'class'>): ClassDecorator;
|
|
21
|
+
export declare function createPropertyDecorator(options?: SpecificCreateDecoratorOptions<'property'>): PropertyDecorator;
|
|
22
|
+
export declare function createAccessorDecorator(options?: SpecificCreateDecoratorOptions<'accessor'>): MethodDecorator;
|
|
23
|
+
export declare function createPropertyOrAccessorDecorator(options?: SpecificCreateDecoratorOptions<'property' | 'accessor'>): Decorator<'property' | 'accessor'>;
|
|
24
|
+
export declare function createMethodDecorator(options?: SpecificCreateDecoratorOptions<'method'>): MethodDecorator;
|
|
25
|
+
export declare function createMethodParameterDecorator(options?: SpecificCreateDecoratorOptions<'methodParameter'>): ParameterDecorator;
|
|
26
|
+
export declare function createConstructorParameterDecorator(options?: SpecificCreateDecoratorOptions<'constructorParameter'>): ConstructorParameterDecorator;
|
|
27
|
+
export declare function createParameterDecorator(options?: SpecificCreateDecoratorOptions<'parameter'>): ParameterDecorator & ConstructorParameterDecorator;
|
|
28
|
+
export declare function wrapDecoratorFactory<T extends (...args: any[]) => DecoratorUnion>(decoratorFactory: T, options?: WrapDecoratorOptions): T;
|
|
29
|
+
export declare function wrapDecorator<T extends DecoratorUnion>(decorator: T, options?: WrapDecoratorOptions): T;
|
|
30
|
+
export declare function getConstructor<T extends AbstractConstructor = AbstractConstructor>(constructorOrTarget: object): T;
|
|
31
|
+
export declare function getTypeInfoString(type: AbstractConstructor): string;
|
|
32
|
+
export declare function printType(type: Constructor): void;
|
|
33
|
+
export {};
|
package/rpc/model.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import type { SerializationOptions } from '../serializer/types.js';
|
|
2
|
+
import type { Constructor, Record } from '../types.js';
|
|
3
|
+
export type RpcConstructor<T extends Constructor> = T extends Constructor<any, infer R> ? Constructor<Promise<RpcRemote<InstanceType<T>>>, R> : never;
|
|
4
|
+
export type RpcFunction<T extends (...args: any) => any> = T extends (...args: infer Args) => infer R ? (...args: Args) => Promise<Awaited<R>> : never;
|
|
5
|
+
export type RpcObject<T extends Record> = {
|
|
6
|
+
[P in keyof T]: T[P] extends (...args: any) => any ? RpcFunction<T[P]> : Promise<Awaited<T[P]>>;
|
|
7
|
+
};
|
|
8
|
+
export type RpcRemoteInput = ((...args: any) => any) | Record;
|
|
9
|
+
export type RpcRemote<T extends RpcRemoteInput = RpcRemoteInput> = T extends Constructor ? RpcConstructor<T> : T extends (...args: any) => any ? RpcFunction<T> : RpcObject<T>;
|
|
10
|
+
export type RpcMessageBase<Type extends string = string> = {
|
|
11
|
+
type: Type;
|
|
12
|
+
};
|
|
13
|
+
export type RpcConnectMessage = RpcMessageBase<'connect'> & {
|
|
14
|
+
name: string;
|
|
15
|
+
};
|
|
16
|
+
export type RpcControlRequestMessage = RpcConnectMessage;
|
|
17
|
+
export type RpcProxyApplyMessage = RpcMessageBase<'apply'> & {
|
|
18
|
+
path: PropertyKey[];
|
|
19
|
+
args: RpcValue[];
|
|
20
|
+
};
|
|
21
|
+
export type RpcProxyConstructMessage = RpcMessageBase<'construct'> & {
|
|
22
|
+
path: PropertyKey[];
|
|
23
|
+
args: RpcValue[];
|
|
24
|
+
};
|
|
25
|
+
export type RpcProxyGetMessage = RpcMessageBase<'get'> & {
|
|
26
|
+
path: PropertyKey[];
|
|
27
|
+
};
|
|
28
|
+
export type RpcProxySetMessage = RpcMessageBase<'set'> & {
|
|
29
|
+
path: PropertyKey[];
|
|
30
|
+
value: RpcValue;
|
|
31
|
+
};
|
|
32
|
+
export type RpcProxyRequestMessage = RpcProxyApplyMessage | RpcProxyConstructMessage | RpcProxyGetMessage | RpcProxySetMessage;
|
|
33
|
+
export type RpcMessageRawValue = {
|
|
34
|
+
type: 'raw';
|
|
35
|
+
value: any;
|
|
36
|
+
};
|
|
37
|
+
export type RpcMessageSerializedValue = {
|
|
38
|
+
type: 'serialized';
|
|
39
|
+
value: any;
|
|
40
|
+
options?: SerializationOptions;
|
|
41
|
+
};
|
|
42
|
+
export type RpcMessageProxyValue = {
|
|
43
|
+
type: 'proxy';
|
|
44
|
+
channel: string;
|
|
45
|
+
};
|
|
46
|
+
export type RpcMessageAdapterValue = {
|
|
47
|
+
type: 'adapter';
|
|
48
|
+
adapter: string;
|
|
49
|
+
channel: string;
|
|
50
|
+
data: any;
|
|
51
|
+
};
|
|
52
|
+
export type RpcMessageThrowValue = {
|
|
53
|
+
type: 'throw';
|
|
54
|
+
error: unknown;
|
|
55
|
+
};
|
|
56
|
+
export type RpcValue = RpcMessageRawValue | RpcMessageSerializedValue | RpcMessageProxyValue | RpcMessageAdapterValue | RpcMessageThrowValue;
|
|
57
|
+
export type RpcPostMessageArrayData = {
|
|
58
|
+
value: RpcValue[];
|
|
59
|
+
transfer?: any[];
|
|
60
|
+
};
|
|
61
|
+
export type RpcPostMessageData = {
|
|
62
|
+
value: RpcValue;
|
|
63
|
+
transfer?: any[];
|
|
64
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { NonPrimitive } from '../serializer/types.js';
|
|
2
|
+
import type { RpcChannel } from './rpc.endpoint.js';
|
|
3
|
+
export type AdaptSourceResult<Data> = Data extends void ? (void | {
|
|
4
|
+
data?: undefined;
|
|
5
|
+
transfer?: any[];
|
|
6
|
+
}) : {
|
|
7
|
+
data: Data;
|
|
8
|
+
transfer?: any[];
|
|
9
|
+
};
|
|
10
|
+
export type RpcAdapterNonPrimitive = NonPrimitive<string, RpcAdapterNonPrimitiveData>;
|
|
11
|
+
export type RpcAdapterNonPrimitiveData = {
|
|
12
|
+
channel: string;
|
|
13
|
+
data: any;
|
|
14
|
+
};
|
|
15
|
+
export interface RpcAdapter<T extends object = any, Data = any, ChannelData = any, Req = any, Res = any> {
|
|
16
|
+
name: string;
|
|
17
|
+
adaptSource(value: T, channel: RpcChannel<ChannelData, Req, Res>): AdaptSourceResult<Data>;
|
|
18
|
+
adaptTarget(data: Data, channel: RpcChannel<ChannelData, Req, Res>): T;
|
|
19
|
+
}
|
package/rpc/rpc.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type SerializationOptions } from '../serializer/index.js';
|
|
2
|
+
import type { RpcRemote, RpcRemoteInput } from './model.js';
|
|
3
|
+
import type { RpcAdapter } from './rpc.adapter.js';
|
|
4
|
+
import type { RpcEndpoint } from './rpc.endpoint.js';
|
|
5
|
+
export declare const Rpc: {
|
|
6
|
+
listen(endpoint: RpcEndpoint): void;
|
|
7
|
+
connect<T extends RpcRemoteInput>(endpoint: RpcEndpoint, name?: string): Promise<RpcRemote<T>>;
|
|
8
|
+
expose(object: RpcRemoteInput, name?: string): void;
|
|
9
|
+
registerAdapter<T extends object, Data>(adapter: RpcAdapter<T, Data>): void;
|
|
10
|
+
/**
|
|
11
|
+
* mark object for proxy forward
|
|
12
|
+
* @param object object to forward as proxy
|
|
13
|
+
* @param root if object is a child of the actual passed value (to function calls, returns or whatever), this must be set to to mark the parent for serialization (required for children proxies)
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
proxy<T extends object>(object: T, root?: object): T;
|
|
17
|
+
transfer<T extends object>(object: T, transfer: any[]): T;
|
|
18
|
+
serialize<T extends object>(object: T, options?: SerializationOptions): T;
|
|
19
|
+
adapt<T extends object>(object: T, adapter: RpcAdapter<T>, root?: object): T;
|
|
20
|
+
isProxied(object: object): boolean;
|
|
21
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CustomError } from '../errors/custom.error.js';
|
|
2
|
+
export declare class RpcError extends CustomError {
|
|
3
|
+
static readonly errorName = "RpcError";
|
|
4
|
+
constructor(message: string, cause?: any);
|
|
5
|
+
}
|
|
6
|
+
export declare class RpcRemoteError extends CustomError {
|
|
7
|
+
constructor(error: unknown);
|
|
8
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { type BackoffOptions } from '../utils/backoff.js';
|
|
2
|
+
import { type MonoTypeOperatorFunction, type ObservableInput } from 'rxjs';
|
|
3
|
+
export declare function retryBackoff<T>(count: number, options: BackoffOptions): MonoTypeOperatorFunction<T>;
|
|
4
|
+
export declare function retryBackoffHandled<T>(count: number, options: BackoffOptions, handler: (error: Error, count: number) => void | undefined | ObservableInput<void>): MonoTypeOperatorFunction<T>;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { SetRequired } from 'type-fest';
|
|
2
|
+
import { type Decorator } from '../../reflection/index.js';
|
|
3
|
+
import type { TypedOmit } from '../../types.js';
|
|
4
|
+
import type { SchemaTestable } from '../schema.js';
|
|
5
|
+
import type { CombinedSchemaDecorator, SchemaReflectionData, SchemaTestableProvider } from './types.js';
|
|
6
|
+
export type SchemaDecoratorOptions = SchemaReflectionData;
|
|
7
|
+
export type SchemaDecoratorOptionsWithRequiredSchema = SetRequired<SchemaReflectionData, 'schema'>;
|
|
8
|
+
export type SchemaDecoratorOptionsWithoutSchema = TypedOmit<SchemaReflectionData, 'schema'>;
|
|
9
|
+
export declare function createSchemaDecorator(data?: SchemaReflectionData): CombinedSchemaDecorator;
|
|
10
|
+
export declare function SchemaDecorator(schema: SchemaTestable, options?: SchemaDecoratorOptionsWithoutSchema): CombinedSchemaDecorator;
|
|
11
|
+
export declare function SchemaDecorator(options: SchemaDecoratorOptionsWithRequiredSchema): CombinedSchemaDecorator;
|
|
12
|
+
export declare function Parameter(name: string, schema: SchemaTestable, options?: SchemaDecoratorOptionsWithoutSchema): Decorator<'parameter'>;
|
|
13
|
+
export declare function Parameter(name: string, options: SchemaDecoratorOptions): Decorator<'parameter'>;
|
|
14
|
+
export declare const Property: typeof SchemaDecorator;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated use @Property instead
|
|
17
|
+
* @param schemaTestableProvider
|
|
18
|
+
* @param options
|
|
19
|
+
* @returns
|
|
20
|
+
*/
|
|
21
|
+
export declare function PropertySchema(schemaTestableProvider: SchemaTestableProvider, options?: SchemaDecoratorOptionsWithoutSchema): CombinedSchemaDecorator;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { Decorator } from '../../reflection/types.js';
|
|
2
|
+
import type { SchemaOptions, SchemaTestable } from '../schema.js';
|
|
3
|
+
import type { ObjectSchemaFactory, ObjectSchemaOptions } from '../schemas/object.js';
|
|
4
|
+
export type SchemaClassDecorator = Decorator<'class'>;
|
|
5
|
+
export type SchemaPropertyDecorator = Decorator<'property' | 'accessor'>;
|
|
6
|
+
export type SchemaMethodDecorator = Decorator<'method'>;
|
|
7
|
+
export type CombinedSchemaDecorator = Decorator<'property' | 'accessor' | 'parameter'>;
|
|
8
|
+
export type SchemaTypeReflectionData = Partial<Pick<ObjectSchemaOptions, 'mask' | 'unknownProperties' | 'unknownPropertiesKey' | 'description' | 'example'>> & {
|
|
9
|
+
schema?: SchemaTestable;
|
|
10
|
+
factory?: ObjectSchemaFactory<any>;
|
|
11
|
+
};
|
|
12
|
+
export type SchemaTestableProvider = (data: SchemaReflectionData) => SchemaTestable;
|
|
13
|
+
export type SchemaReflectionData = Partial<Pick<SchemaOptions<any>, 'description' | 'example'>> & {
|
|
14
|
+
schema?: SchemaTestableProvider;
|
|
15
|
+
array?: boolean;
|
|
16
|
+
optional?: boolean;
|
|
17
|
+
nullable?: boolean;
|
|
18
|
+
method?: {
|
|
19
|
+
returnType?: SchemaTestableProvider;
|
|
20
|
+
};
|
|
21
|
+
parameter?: {
|
|
22
|
+
name?: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AbstractConstructor } from '../../types.js';
|
|
2
|
+
import type { SchemaTestable } from '../schema.js';
|
|
3
|
+
import type { SchemaReflectionData } from './types.js';
|
|
4
|
+
export declare function schemaReflectionDataToSchema(reflectionData: SchemaReflectionData | undefined, fallbackType: AbstractConstructor | null, source: {
|
|
5
|
+
type: AbstractConstructor;
|
|
6
|
+
key: string | symbol;
|
|
7
|
+
}): SchemaTestable;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import type { IsEqual, Or } from 'type-fest';
|
|
2
|
+
import { JsonPath } from '../json-path/json-path.js';
|
|
3
|
+
import type { AbstractConstructor } from '../types.js';
|
|
4
|
+
import type { SchemaError } from './schema.error.js';
|
|
5
|
+
import type { Coercible, Maskable } from './types.js';
|
|
6
|
+
export type SchemaTestOptions = Coercible & Maskable & {
|
|
7
|
+
/**
|
|
8
|
+
* Use fast errors which can improve performance a lot but misses detailed stack traces.
|
|
9
|
+
*/
|
|
10
|
+
fastErrors?: boolean;
|
|
11
|
+
};
|
|
12
|
+
export type SchemaTestResult<T> = {
|
|
13
|
+
valid: true;
|
|
14
|
+
value: T;
|
|
15
|
+
error?: undefined;
|
|
16
|
+
} | {
|
|
17
|
+
valid: false;
|
|
18
|
+
value?: undefined;
|
|
19
|
+
error: SchemaError;
|
|
20
|
+
};
|
|
21
|
+
type NormalizePrimitiveToConstructor<T> = Or<IsEqual<T, string>, IsEqual<T, String>> extends true ? typeof String : Or<IsEqual<T, number>, IsEqual<T, Number>> extends true ? typeof Number : Or<IsEqual<T, boolean>, IsEqual<T, Boolean>> extends true ? typeof Boolean : Or<IsEqual<T, bigint>, IsEqual<T, BigInt>> extends true ? typeof BigInt : Or<IsEqual<T, symbol>, IsEqual<T, Symbol>> extends true ? typeof Symbol : never;
|
|
22
|
+
export type SchemaTestable<T = any> = Schema<T> | AbstractConstructor<T> | NormalizePrimitiveToConstructor<T>;
|
|
23
|
+
export type SchemaOutput<T extends SchemaTestable> = T extends SchemaTestable<infer U> ? U : never;
|
|
24
|
+
export declare const OPTIONAL: unique symbol;
|
|
25
|
+
export type SchemaOptions<_T> = {
|
|
26
|
+
description?: string | null;
|
|
27
|
+
example?: any;
|
|
28
|
+
};
|
|
29
|
+
export declare abstract class Schema<T = unknown> {
|
|
30
|
+
readonly [OPTIONAL]: boolean;
|
|
31
|
+
readonly description: string | null;
|
|
32
|
+
readonly example: T | undefined;
|
|
33
|
+
abstract readonly name: string;
|
|
34
|
+
constructor(options?: SchemaOptions<T>);
|
|
35
|
+
/**
|
|
36
|
+
* Test an unknown value to see whether it corresponds to the schema.
|
|
37
|
+
* @param schema schema to test against
|
|
38
|
+
* @param value value to test
|
|
39
|
+
* @param options validation options
|
|
40
|
+
* @returns test result
|
|
41
|
+
*/
|
|
42
|
+
static readonly test: <T>(schema: SchemaTestable<T>, value: unknown, options?: SchemaTestOptions) => SchemaTestResult<T>;
|
|
43
|
+
/**
|
|
44
|
+
* Validate an unknown value to see whether it corresponds to the schema.
|
|
45
|
+
* @param schema schema to validate against
|
|
46
|
+
* @param value value to validate
|
|
47
|
+
* @param options validation options
|
|
48
|
+
* @returns validation result
|
|
49
|
+
*/
|
|
50
|
+
static readonly validate: <T>(schema: SchemaTestable<T>, value: unknown, options?: SchemaTestOptions) => boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Asserts an unknown value to be valid according to the schema.
|
|
53
|
+
* @param schema schema to validate against
|
|
54
|
+
* @param value value to validate
|
|
55
|
+
* @param options validation options
|
|
56
|
+
*/
|
|
57
|
+
static readonly assert: <T>(schema: SchemaTestable<T>, value: unknown, options?: SchemaTestOptions) => asserts value is T;
|
|
58
|
+
/**
|
|
59
|
+
* Parse an unknown value to comply with the scheme.
|
|
60
|
+
* @param schema schema to validate against
|
|
61
|
+
* @param value value to validate
|
|
62
|
+
* @param options validation options
|
|
63
|
+
* @returns validation result
|
|
64
|
+
*/
|
|
65
|
+
static readonly parse: <T>(schema: SchemaTestable<T>, value: unknown, options?: SchemaTestOptions) => T;
|
|
66
|
+
/**
|
|
67
|
+
* Test an unknown value to see whether it corresponds to the schema.
|
|
68
|
+
* @param schema schema to test against
|
|
69
|
+
* @param value value to test
|
|
70
|
+
* @param options validation options
|
|
71
|
+
* @returns test result with either the value or validation error
|
|
72
|
+
*/
|
|
73
|
+
test(value: any, options?: SchemaTestOptions): SchemaTestResult<T>;
|
|
74
|
+
/**
|
|
75
|
+
* Validate an unknown value to see whether it corresponds to the schema.
|
|
76
|
+
* @param schema schema to validate against
|
|
77
|
+
* @param value value to validate
|
|
78
|
+
* @param options validation options
|
|
79
|
+
* @returns validation result. Throws if validation fails
|
|
80
|
+
*/
|
|
81
|
+
validate(value: any, options?: SchemaTestOptions): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Asserts an unknown value to be valid according to the schema.
|
|
84
|
+
* @param schema schema to validate against
|
|
85
|
+
* @param value value to validate
|
|
86
|
+
* @param options validation options
|
|
87
|
+
*/
|
|
88
|
+
assert(value: any, options?: SchemaTestOptions): asserts value is T;
|
|
89
|
+
/**
|
|
90
|
+
* Parse an unknown value to comply with the scheme.
|
|
91
|
+
* @param schema schema to parse against
|
|
92
|
+
* @param value value to parse
|
|
93
|
+
* @param options validation options
|
|
94
|
+
* @returns parsed value
|
|
95
|
+
*/
|
|
96
|
+
parse(value: any, options?: SchemaTestOptions): T;
|
|
97
|
+
abstract _test(value: any, path: JsonPath, options: SchemaTestOptions): SchemaTestResult<T>;
|
|
98
|
+
}
|
|
99
|
+
export {};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { CustomError, type CustomErrorOptions } from '../errors/custom.error.js';
|
|
2
|
+
import type { JsonPath } from '../json-path/index.js';
|
|
3
|
+
import type { AbstractConstructor, OneOrMany, TypedOmit, UndefinableJson } from '../types.js';
|
|
4
|
+
import type { ErrorExtraInfo } from '../utils/format-error.js';
|
|
5
|
+
export type SchemaErrorOptions = Pick<CustomErrorOptions, 'fast'> & {
|
|
6
|
+
path: string | JsonPath;
|
|
7
|
+
details?: UndefinableJson;
|
|
8
|
+
inner?: OneOrMany<SchemaError>;
|
|
9
|
+
cause?: any;
|
|
10
|
+
};
|
|
11
|
+
export declare class SchemaError extends CustomError implements ErrorExtraInfo {
|
|
12
|
+
static readonly errorName = "SchemaError";
|
|
13
|
+
readonly path: string;
|
|
14
|
+
readonly details?: UndefinableJson;
|
|
15
|
+
readonly inner?: OneOrMany<SchemaError>;
|
|
16
|
+
readonly innerMessages?: string[];
|
|
17
|
+
constructor(message: string, options: SchemaErrorOptions, cause?: any);
|
|
18
|
+
static expectedButGot(expected: OneOrMany<string | AbstractConstructor>, got: string, path: string | JsonPath, options?: TypedOmit<SchemaErrorOptions, 'path'> & {
|
|
19
|
+
customMessage?: string;
|
|
20
|
+
}): SchemaError;
|
|
21
|
+
static couldNotCoerce(expected: OneOrMany<string | AbstractConstructor>, got: string, path: string | JsonPath, options: TypedOmit<SchemaErrorOptions, 'path'> & {
|
|
22
|
+
customMessage?: string;
|
|
23
|
+
}): SchemaError;
|
|
24
|
+
getExtraInfo(includeMessage?: boolean): UndefinableJson | undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { JsonPath } from '../../json-path/json-path.js';
|
|
2
|
+
import type { TypedOmit } from '../../types.js';
|
|
3
|
+
import { type SchemaDecoratorOptions, type SchemaPropertyDecorator } from '../decorators/index.js';
|
|
4
|
+
import { Schema, type SchemaOptions, type SchemaTestable, type SchemaTestOptions, type SchemaTestResult } from '../schema.js';
|
|
5
|
+
import type { Coercible } from '../types.js';
|
|
6
|
+
export type ArraySchemaOptions<T> = SchemaOptions<T[]> & Coercible & {
|
|
7
|
+
minimum?: number;
|
|
8
|
+
maximum?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare class ArraySchema<T> extends Schema<T[]> {
|
|
11
|
+
#private;
|
|
12
|
+
readonly name: string;
|
|
13
|
+
readonly itemSchema: Schema<T>;
|
|
14
|
+
readonly minimum: number | null;
|
|
15
|
+
readonly maximum: number | null;
|
|
16
|
+
constructor(itemSchema: SchemaTestable<T>, options?: ArraySchemaOptions<T>);
|
|
17
|
+
_test(value: any, path: JsonPath, options: SchemaTestOptions): SchemaTestResult<T[]>;
|
|
18
|
+
}
|
|
19
|
+
export declare function array<T>(schema: SchemaTestable<T>, options?: ArraySchemaOptions<T>): ArraySchema<T>;
|
|
20
|
+
export declare function Array(schema: SchemaTestable, options?: ArraySchemaOptions<unknown> & TypedOmit<SchemaDecoratorOptions, 'array'>): SchemaPropertyDecorator;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { JsonPath } from '../../json-path/json-path.js';
|
|
2
|
+
import { type SchemaPropertyDecorator, type SchemaDecoratorOptions } from '../decorators/index.js';
|
|
3
|
+
import { Schema, type SchemaOptions, type SchemaTestable, type SchemaTestOptions, type SchemaTestResult } from '../schema.js';
|
|
4
|
+
export type DefaultSchemaOptions<T, D> = SchemaOptions<T | D>;
|
|
5
|
+
export declare class DefaultSchema<T, D> extends Schema<T | D> {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly schema: Schema<T>;
|
|
8
|
+
readonly defaultValue: D;
|
|
9
|
+
constructor(schema: SchemaTestable<T>, defaultValue: D, options?: DefaultSchemaOptions<T, D>);
|
|
10
|
+
_test(value: any, path: JsonPath, options: SchemaTestOptions): SchemaTestResult<T | D>;
|
|
11
|
+
}
|
|
12
|
+
export declare function defaulted<T, D>(schema: SchemaTestable<T>, defaultValue: D, options?: DefaultSchemaOptions<T, D>): DefaultSchema<T, D>;
|
|
13
|
+
export declare function Defaulted<T, D>(schema: SchemaTestable<T>, defaultValue: D, options?: DefaultSchemaOptions<T, D> & SchemaDecoratorOptions): SchemaPropertyDecorator;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JsonPath } from '../../json-path/json-path.js';
|
|
2
|
+
import { type SchemaPropertyDecorator, type SchemaDecoratorOptions } from '../decorators/index.js';
|
|
3
|
+
import { Schema, type SchemaOutput, type SchemaTestable, type SchemaTestOptions, type SchemaTestResult } from '../schema.js';
|
|
4
|
+
export declare class DeferredSchema<T extends SchemaTestable> extends Schema<SchemaOutput<T>> {
|
|
5
|
+
readonly name: string;
|
|
6
|
+
readonly testable: T;
|
|
7
|
+
readonly schema: Schema<SchemaOutput<T>>;
|
|
8
|
+
constructor(schema: () => T);
|
|
9
|
+
_test(value: any, path: JsonPath, options: SchemaTestOptions): SchemaTestResult<SchemaOutput<T>>;
|
|
10
|
+
}
|
|
11
|
+
export declare function deferred<T extends SchemaTestable>(schema: () => T): DeferredSchema<T>;
|
|
12
|
+
export declare function Deferred(schema: () => SchemaTestable, options?: SchemaDecoratorOptions): SchemaPropertyDecorator;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Enumeration as EnumerationType, EnumerationValue } from '../../types.js';
|
|
2
|
+
import { type SchemaPropertyDecorator, type SchemaDecoratorOptions } from '../decorators/index.js';
|
|
3
|
+
import { SimpleSchema, type SimpleSchemaOptions } from './simple.js';
|
|
4
|
+
export type EnumerationSchemaOptions<T extends EnumerationType> = SimpleSchemaOptions<EnumerationValue<T>>;
|
|
5
|
+
export declare class EnumerationSchema<const T extends EnumerationType> extends SimpleSchema<EnumerationValue<T>> {
|
|
6
|
+
#private;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly enumeration: EnumerationType;
|
|
9
|
+
readonly allowedValues: readonly EnumerationValue<T>[];
|
|
10
|
+
constructor(enumeration: T, options?: EnumerationSchemaOptions<T>);
|
|
11
|
+
}
|
|
12
|
+
export declare function enumeration<const T extends EnumerationType>(enumeration: T, options?: EnumerationSchemaOptions<T>): EnumerationSchema<T>;
|
|
13
|
+
export declare function Enumeration<const T extends EnumerationType>(enumeration: T, options?: EnumerationSchemaOptions<T> & SchemaDecoratorOptions): SchemaPropertyDecorator;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { AbstractConstructor, Function } from '../../types.js';
|
|
2
|
+
import { type CombinedSchemaDecorator, type SchemaDecoratorOptions } from '../decorators/index.js';
|
|
3
|
+
import type { Schema, SchemaTestable } from '../schema.js';
|
|
4
|
+
import { SimpleSchema, type SimpleSchemaOptions } from './simple.js';
|
|
5
|
+
export type FunctionSchemaOptions<T extends Function> = SimpleSchemaOptions<T> & {
|
|
6
|
+
parameterNames?: (string | null)[];
|
|
7
|
+
};
|
|
8
|
+
type MappedParameters<T> = {
|
|
9
|
+
[I in keyof T]: SchemaTestable<T[I]>;
|
|
10
|
+
};
|
|
11
|
+
export declare class FunctionSchema<T extends (...args: any[]) => any> extends SimpleSchema<T> {
|
|
12
|
+
readonly name = "function";
|
|
13
|
+
readonly parameterSchemas: MappedParameters<Parameters<T>> | null;
|
|
14
|
+
readonly parameterNames: (string | null)[];
|
|
15
|
+
readonly returnValueSchema: SchemaTestable<ReturnType<T>> | null;
|
|
16
|
+
constructor(parameterSchemas: MappedParameters<Parameters<T>> | null, returnValueSchema: SchemaTestable<ReturnType<T>> | null, options?: FunctionSchemaOptions<T>);
|
|
17
|
+
}
|
|
18
|
+
export declare function func<T extends (...args: any[]) => any>(parameterSchemas: MappedParameters<Parameters<T>> | null, returnValueSchema: SchemaTestable<ReturnType<T>> | null, options?: FunctionSchemaOptions<T>): FunctionSchema<T>;
|
|
19
|
+
export declare function Method<T extends (...args: any[]) => any>(options?: FunctionSchemaOptions<T> & SchemaDecoratorOptions): CombinedSchemaDecorator;
|
|
20
|
+
export declare function Method<T extends (...args: any[]) => any>(parameterSchemas: MappedParameters<Parameters<T>> | null, returnValueSchema: SchemaTestable<ReturnType<T>> | null, options?: FunctionSchemaOptions<T> & SchemaDecoratorOptions): CombinedSchemaDecorator;
|
|
21
|
+
export declare function getFunctionSchemaFromReflection(type: AbstractConstructor, method: string | symbol): Schema<Function> | FunctionSchema<(...args: any[]) => any>;
|
|
22
|
+
export declare function tryGetFunctionSchemaFromReflection(type: AbstractConstructor, method: string | symbol): Schema<Function> | FunctionSchema<(...args: any[]) => any> | null;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { JsonPath } from '../../json-path/json-path.js';
|
|
2
|
+
import type { AbstractConstructor } from '../../types.js';
|
|
3
|
+
import { type SchemaPropertyDecorator, type SchemaDecoratorOptions } from '../decorators/index.js';
|
|
4
|
+
import { Schema, type SchemaOptions, type SchemaTestOptions, type SchemaTestResult } from '../schema.js';
|
|
5
|
+
export type InstanceSchemaOptions<T extends AbstractConstructor> = SchemaOptions<InstanceType<T>>;
|
|
6
|
+
export declare class InstanceSchema<T extends AbstractConstructor> extends Schema<InstanceType<T>> {
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly type: T;
|
|
9
|
+
constructor(type: T, options?: InstanceSchemaOptions<T>);
|
|
10
|
+
_test(value: any, path: JsonPath, options: SchemaTestOptions): SchemaTestResult<InstanceType<T>>;
|
|
11
|
+
}
|
|
12
|
+
export declare function instance<T extends AbstractConstructor>(type: T, options?: InstanceSchemaOptions<T>): InstanceSchema<T>;
|
|
13
|
+
export declare function Instance<T extends AbstractConstructor>(type: T, options?: InstanceSchemaOptions<T> & SchemaDecoratorOptions): SchemaPropertyDecorator;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { JsonPath } from '../../json-path/json-path.js';
|
|
2
|
+
import { type SchemaDecoratorOptions, type SchemaPropertyDecorator } from '../decorators/index.js';
|
|
3
|
+
import { Schema, type SchemaOptions, type SchemaTestOptions, type SchemaTestResult } from '../schema.js';
|
|
4
|
+
export type LiteralSchemaOptions<T> = SchemaOptions<T>;
|
|
5
|
+
export declare class LiteralSchema<const T> extends Schema<T> {
|
|
6
|
+
readonly name: string;
|
|
7
|
+
readonly value: T;
|
|
8
|
+
constructor(value: T, options?: LiteralSchemaOptions<T>);
|
|
9
|
+
_test(value: any, path: JsonPath, options: SchemaTestOptions): SchemaTestResult<T>;
|
|
10
|
+
}
|
|
11
|
+
export declare function literal<const T>(value: T, options?: LiteralSchemaOptions<T>): LiteralSchema<T>;
|
|
12
|
+
export declare function Literal<const T>(value: T, options?: LiteralSchemaOptions<T> & SchemaDecoratorOptions): SchemaPropertyDecorator;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { JsonPath } from '../../json-path/json-path.js';
|
|
2
|
+
import { Schema, type SchemaOptions, type SchemaTestOptions, type SchemaTestResult } from '../schema.js';
|
|
3
|
+
export type NeverSchemaOptions = SchemaOptions<never>;
|
|
4
|
+
export declare class NeverSchema extends Schema<never> {
|
|
5
|
+
readonly name = "never";
|
|
6
|
+
_test(value: any, path: JsonPath, options: SchemaTestOptions): SchemaTestResult<never>;
|
|
7
|
+
}
|
|
8
|
+
export declare function never(options?: NeverSchemaOptions): NeverSchema;
|