@tstdl/base 0.81.5 → 0.81.7
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/api/client/client.d.ts +6 -6
- package/api/client/client.js +4 -4
- package/api/client/client.js.map +1 -1
- package/api/default-error-handlers.d.ts +2 -2
- package/api/default-error-handlers.js +1 -1
- package/api/default-error-handlers.js.map +1 -1
- package/api/response.d.ts +8 -8
- package/api/response.js +1 -1
- package/api/response.js.map +1 -1
- package/api/server/api-controller.d.ts +3 -3
- package/api/server/api-controller.js +3 -3
- package/api/server/api-controller.js.map +1 -1
- package/api/server/error-handler.d.ts +3 -3
- package/api/server/error-handler.js +2 -2
- package/api/server/error-handler.js.map +1 -1
- package/api/server/gateway.d.ts +17 -17
- package/api/server/gateway.js +12 -12
- package/api/server/gateway.js.map +1 -1
- package/api/server/middlewares/allowed-methods.middleware.d.ts +3 -3
- package/api/server/middlewares/allowed-methods.middleware.js +3 -3
- package/api/server/middlewares/allowed-methods.middleware.js.map +1 -1
- package/api/server/middlewares/catch-error.middleware.d.ts +2 -2
- package/api/server/middlewares/cors.middleware.d.ts +2 -2
- package/api/server/middlewares/cors.middleware.js +2 -2
- package/api/server/middlewares/cors.middleware.js.map +1 -1
- package/api/server/middlewares/response-time.middleware.d.ts +1 -1
- package/api/server/middlewares/response-time.middleware.js +2 -2
- package/api/server/middlewares/response-time.middleware.js.map +1 -1
- package/api/server/module.d.ts +2 -2
- package/api/server/module.js +2 -2
- package/api/server/module.js.map +1 -1
- package/api/server/tokens.d.ts +1 -1
- package/api/server/tokens.js +1 -1
- package/api/server/tokens.js.map +1 -1
- package/api/types.d.ts +34 -34
- package/api/types.js +2 -2
- package/api/types.js.map +1 -1
- package/api/utils.d.ts +1 -1
- package/api/utils.js +3 -3
- package/api/utils.js.map +1 -1
- package/application/application.d.ts +5 -5
- package/application/application.js +19 -19
- package/application/application.js.map +1 -1
- package/collections/awaitable/awaitable-list.js +6 -6
- package/collections/awaitable/awaitable-list.js.map +1 -1
- package/collections/awaitable/awaitable-map.js +7 -7
- package/collections/awaitable/awaitable-map.js.map +1 -1
- package/collections/awaitable/awaitable-set.js +7 -7
- package/collections/awaitable/awaitable-set.js.map +1 -1
- package/collections/keyed-set.d.ts +1 -1
- package/collections/observable/observable-array.js +4 -4
- package/collections/observable/observable-array.js.map +1 -1
- package/collections/observable/observable-collection-base.js +9 -9
- package/collections/observable/observable-collection-base.js.map +1 -1
- package/collections/observable/observable-collection.d.ts +1 -1
- package/collections/observable/observable-list-base.js +6 -6
- package/collections/observable/observable-list-base.js.map +1 -1
- package/collections/observable/observable-list.d.ts +2 -2
- package/collections/observable/observable-map.js +5 -5
- package/collections/observable/observable-map.js.map +1 -1
- package/collections/observable/observable-set.js +5 -5
- package/collections/observable/observable-set.js.map +1 -1
- package/collections/observable/observable-sorted-array-list.d.ts +1 -1
- package/collections/observable/observable-sorted-array-list.js +8 -8
- package/collections/observable/observable-sorted-array-list.js.map +1 -1
- package/collections/sorted-array-list.d.ts +1 -1
- package/collections/sorted-array-list.js +5 -5
- package/collections/sorted-array-list.js.map +1 -1
- package/collections/sorted-map.js +4 -4
- package/collections/sorted-map.js.map +1 -1
- package/container/container.d.ts +4 -4
- package/container/container.js +12 -12
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +5 -5
- package/container/decorators.js +3 -3
- package/container/decorators.js.map +1 -1
- package/container/interfaces.d.ts +1 -1
- package/container/provider.d.ts +7 -7
- package/container/provider.js +1 -1
- package/container/provider.js.map +1 -1
- package/container/resolve-chain.d.ts +3 -3
- package/container/resolve-chain.js +5 -5
- package/container/resolve-chain.js.map +1 -1
- package/container/resolve.error.d.ts +1 -1
- package/container/resolve.error.js +2 -2
- package/container/resolve.error.js.map +1 -1
- package/container/token.d.ts +4 -4
- package/container/token.js +1 -1
- package/container/token.js.map +1 -1
- package/container/type-info.d.ts +1 -1
- package/container/types.d.ts +4 -4
- package/container/utils.d.ts +1 -1
- package/container/utils.js +1 -1
- package/container/utils.js.map +1 -1
- package/core.d.ts +1 -1
- package/css/theme/theme.model.d.ts +2 -2
- package/css/theme/theme.service.js +4 -4
- package/css/theme/theme.service.js.map +1 -1
- package/data-structures/array-list.d.ts +1 -1
- package/data-structures/circular-buffer.d.ts +1 -1
- package/data-structures/circular-buffer.js +14 -14
- package/data-structures/circular-buffer.js.map +1 -1
- package/data-structures/collection.d.ts +1 -1
- package/data-structures/collection.js +13 -13
- package/data-structures/collection.js.map +1 -1
- package/data-structures/index-out-of-bounds.error.d.ts +1 -1
- package/data-structures/index-out-of-bounds.error.js +2 -2
- package/data-structures/index-out-of-bounds.error.js.map +1 -1
- package/data-structures/iterable-weak-map.js +11 -11
- package/data-structures/iterable-weak-map.js.map +1 -1
- package/data-structures/linked-list.d.ts +4 -4
- package/data-structures/linked-list.js +8 -8
- package/data-structures/linked-list.js.map +1 -1
- package/data-structures/list.d.ts +1 -1
- package/data-structures/list.js +1 -1
- package/data-structures/list.js.map +1 -1
- package/data-structures/multi-key-map.d.ts +2 -2
- package/data-structures/multi-key-map.js +2 -2
- package/data-structures/multi-key-map.js.map +1 -1
- package/data-structures/sorted-array-list.d.ts +5 -5
- package/data-structures/sorted-array-list.js +5 -5
- package/data-structures/sorted-array-list.js.map +1 -1
- package/data-structures/weak-ref-map.js +8 -8
- package/data-structures/weak-ref-map.js.map +1 -1
- package/database/entity-repository.d.ts +2 -2
- package/database/entity.d.ts +3 -3
- package/database/id.js +1 -1
- package/database/id.js.map +1 -1
- package/database/module.d.ts +1 -1
- package/database/module.js +1 -1
- package/database/module.js.map +1 -1
- package/database/mongo/classes.d.ts +6 -6
- package/database/mongo/classes.js +1 -1
- package/database/mongo/classes.js.map +1 -1
- package/database/mongo/model/document.d.ts +4 -4
- package/database/mongo/model/document.js +2 -2
- package/database/mongo/model/document.js.map +1 -1
- package/database/mongo/module.d.ts +1 -1
- package/database/mongo/module.js +4 -4
- package/database/mongo/module.js.map +1 -1
- package/database/mongo/mongo-base.repository.d.ts +13 -13
- package/database/mongo/mongo-base.repository.js +4 -4
- package/database/mongo/mongo-base.repository.js.map +1 -1
- package/database/mongo/mongo-bulk.d.ts +2 -2
- package/database/mongo/mongo-entity-repository.d.ts +12 -12
- package/database/mongo/mongo-entity-repository.js +6 -6
- package/database/mongo/mongo-entity-repository.js.map +1 -1
- package/database/mongo/operations.d.ts +1 -1
- package/database/mongo/query-converter.d.ts +2 -2
- package/database/mongo/query-converter.js +3 -3
- package/database/mongo/query-converter.js.map +1 -1
- package/database/mongo/simple-entity-repository.d.ts +2 -2
- package/database/mongo/types.d.ts +18 -18
- package/database/query.d.ts +40 -40
- package/disposable/async-disposer.d.ts +3 -3
- package/disposable/async-disposer.js +10 -10
- package/disposable/async-disposer.js.map +1 -1
- package/disposable/disposable.js +1 -1
- package/disposable/disposable.js.map +1 -1
- package/distributed-loop/distributed-loop.d.ts +6 -6
- package/distributed-loop/distributed-loop.js +6 -6
- package/distributed-loop/distributed-loop.js.map +1 -1
- package/distributed-loop/provider.d.ts +1 -1
- package/distributed-loop/provider.js +2 -2
- package/distributed-loop/provider.js.map +1 -1
- package/enumerable/async-enumerable.d.ts +3 -3
- package/enumerable/async-enumerable.js +2 -2
- package/enumerable/async-enumerable.js.map +1 -1
- package/enumerable/enumerable.d.ts +2 -2
- package/error/custom.error.d.ts +1 -1
- package/error/not-supported.error.d.ts +1 -1
- package/error/not-supported.error.js +1 -1
- package/error/not-supported.error.js.map +1 -1
- package/examples/api/basic-overview.js +11 -11
- package/examples/api/basic-overview.js.map +1 -1
- package/examples/api/streaming.js +14 -14
- package/examples/api/streaming.js.map +1 -1
- package/examples/http/client.js +3 -3
- package/examples/http/client.js.map +1 -1
- package/examples/mail/basic.js +9 -9
- package/examples/mail/basic.js.map +1 -1
- package/examples/mail/templates/hello-name.d.ts +1 -1
- package/examples/mail/templates/hello-name.js +2 -2
- package/examples/mail/templates/hello-name.js.map +1 -1
- package/examples/pdf/basic.js +9 -9
- package/examples/pdf/basic.js.map +1 -1
- package/examples/pdf/templates/hello-name.d.ts +1 -1
- package/examples/pdf/templates/hello-name.js +3 -3
- package/examples/pdf/templates/hello-name.js.map +1 -1
- package/examples/reflection/basic.d.ts +1 -1
- package/examples/reflection/basic.js +4 -4
- package/examples/reflection/basic.js.map +1 -1
- package/examples/template/basic.js +7 -7
- package/examples/template/basic.js.map +1 -1
- package/examples/template/templates/hello-name.d.ts +1 -1
- package/examples/template/templates/hello-name.js +3 -3
- package/examples/template/templates/hello-name.js.map +1 -1
- package/http/client/adapters/undici-http-client.adapter.d.ts +1 -1
- package/http/client/adapters/undici-http-client.adapter.js +4 -4
- package/http/client/adapters/undici-http-client.adapter.js.map +1 -1
- package/http/client/http-client-request.d.ts +9 -9
- package/http/client/http-client-request.js +10 -10
- package/http/client/http-client-request.js.map +1 -1
- package/http/client/http-client-response.d.ts +3 -3
- package/http/client/http-client-response.js +3 -3
- package/http/client/http-client-response.js.map +1 -1
- package/http/client/http-client.d.ts +10 -10
- package/http/client/http-client.js +10 -10
- package/http/client/http-client.js.map +1 -1
- package/http/cookie-parser.js +2 -2
- package/http/cookie-parser.js.map +1 -1
- package/http/http-body.d.ts +3 -3
- package/http/http-body.js +5 -5
- package/http/http-body.js.map +1 -1
- package/http/http-form.d.ts +2 -2
- package/http/http-headers.d.ts +3 -3
- package/http/http-headers.js +3 -3
- package/http/http-headers.js.map +1 -1
- package/http/http-query.d.ts +2 -2
- package/http/http-url-parameters.d.ts +2 -2
- package/http/http-value-map.d.ts +2 -2
- package/http/http-value-map.js +5 -5
- package/http/http-value-map.js.map +1 -1
- package/http/http.error.d.ts +2 -2
- package/http/http.error.js +2 -2
- package/http/http.error.js.map +1 -1
- package/http/server/http-server-request.d.ts +2 -2
- package/http/server/http-server-request.js +3 -3
- package/http/server/http-server-request.js.map +1 -1
- package/http/server/http-server-response.d.ts +3 -3
- package/http/server/http-server.d.ts +4 -4
- package/http/server/http-server.js +1 -1
- package/http/server/http-server.js.map +1 -1
- package/http/server/node/module.js +1 -1
- package/http/server/node/module.js.map +1 -1
- package/http/server/node/node-http-server.d.ts +6 -6
- package/http/server/node/node-http-server.js +16 -16
- package/http/server/node/node-http-server.js.map +1 -1
- package/http/types.d.ts +6 -6
- package/http/types.js +1 -1
- package/http/types.js.map +1 -1
- package/http/utils.d.ts +5 -5
- package/http/utils.js +10 -10
- package/http/utils.js.map +1 -1
- package/image-service/image-service.js +1 -1
- package/image-service/image-service.js.map +1 -1
- package/image-service/imgproxy/imgproxy-image-service.d.ts +4 -4
- package/image-service/imgproxy/imgproxy-image-service.js +6 -6
- package/image-service/imgproxy/imgproxy-image-service.js.map +1 -1
- package/json-path/json-path.d.ts +4 -4
- package/json-path/json-path.js +17 -17
- package/json-path/json-path.js.map +1 -1
- package/key-value-store/key-value.store.d.ts +3 -3
- package/key-value-store/key-value.store.js +1 -1
- package/key-value-store/key-value.store.js.map +1 -1
- package/key-value-store/mongo/module.d.ts +2 -2
- package/key-value-store/mongo/module.js +1 -1
- package/key-value-store/mongo/module.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value-store.provider.js +1 -1
- package/key-value-store/mongo/mongo-key-value-store.provider.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.model.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value.repository.d.ts +5 -5
- package/key-value-store/mongo/mongo-key-value.repository.js +3 -3
- package/key-value-store/mongo/mongo-key-value.repository.js.map +1 -1
- package/key-value-store/mongo/mongo-key-value.store.d.ts +2 -2
- package/key-value-store/mongo/mongo-key-value.store.js +6 -6
- package/key-value-store/mongo/mongo-key-value.store.js.map +1 -1
- package/lock/lock.d.ts +6 -6
- package/lock/lock.js +1 -1
- package/lock/lock.js.map +1 -1
- package/lock/mongo/lock.d.ts +3 -3
- package/lock/mongo/lock.js +10 -10
- package/lock/mongo/lock.js.map +1 -1
- package/lock/mongo/model.d.ts +2 -2
- package/lock/mongo/module.d.ts +2 -2
- package/lock/mongo/module.js +1 -1
- package/lock/mongo/module.js.map +1 -1
- package/lock/mongo/mongo-lock-repository.d.ts +5 -5
- package/lock/mongo/mongo-lock-repository.js +5 -5
- package/lock/mongo/mongo-lock-repository.js.map +1 -1
- package/lock/mongo/provider.d.ts +3 -3
- package/lock/mongo/provider.js +4 -4
- package/lock/mongo/provider.js.map +1 -1
- package/lock/provider.d.ts +3 -3
- package/lock/provider.js +1 -1
- package/lock/provider.js.map +1 -1
- package/logger/console/logger.js +4 -4
- package/logger/console/logger.js.map +1 -1
- package/logger/logger.d.ts +8 -8
- package/logger/logger.js +3 -3
- package/logger/logger.js.map +1 -1
- package/mail/clients/nodemailer.mail-client.js +2 -2
- package/mail/clients/nodemailer.mail-client.js.map +1 -1
- package/mail/mail-log.repository.d.ts +1 -1
- package/mail/mail-log.repository.js +1 -1
- package/mail/mail-log.repository.js.map +1 -1
- package/mail/mail.client.d.ts +3 -3
- package/mail/mail.client.js +1 -1
- package/mail/mail.client.js.map +1 -1
- package/mail/mail.service.d.ts +3 -3
- package/mail/mail.service.js +6 -6
- package/mail/mail.service.js.map +1 -1
- package/mail/models/mail-address.model.d.ts +1 -1
- package/mail/models/mail-content.model.d.ts +1 -1
- package/mail/models/mail-data.model.d.ts +2 -2
- package/mail/models/mail-log.model.d.ts +3 -3
- package/mail/models/mail-send-result.model.d.ts +1 -1
- package/mail/models/mail-template.model.d.ts +2 -2
- package/mail/module.d.ts +2 -2
- package/mail/module.js +2 -2
- package/mail/module.js.map +1 -1
- package/mail/repositories/mongo-mail-log.repository.d.ts +7 -7
- package/mail/repositories/mongo-mail-log.repository.js +3 -3
- package/mail/repositories/mongo-mail-log.repository.js.map +1 -1
- package/mail/tokens.d.ts +1 -1
- package/mail/tokens.js +1 -1
- package/mail/tokens.js.map +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus-provider.d.ts +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.d.ts +1 -1
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js +5 -5
- package/message-bus/broadcast-channel/broadcast-channel-message-bus.js.map +1 -1
- package/message-bus/local/local-message-bus-provider.d.ts +1 -1
- package/message-bus/local/local-message-bus-provider.js +5 -5
- package/message-bus/local/local-message-bus-provider.js.map +1 -1
- package/message-bus/local/local-message-bus.d.ts +1 -1
- package/message-bus/local/local-message-bus.js +3 -3
- package/message-bus/local/local-message-bus.js.map +1 -1
- package/message-bus/local/types.d.ts +1 -1
- package/message-bus/message-bus-base.d.ts +1 -1
- package/message-bus/message-bus.d.ts +3 -3
- package/message-bus/message-bus.js +1 -1
- package/message-bus/message-bus.js.map +1 -1
- package/migration/migration-state-repository.d.ts +1 -1
- package/migration/migration-state-repository.js +1 -1
- package/migration/migration-state-repository.js.map +1 -1
- package/migration/migration-state.d.ts +3 -3
- package/migration/migrator.d.ts +6 -6
- package/migration/migrator.js +9 -9
- package/migration/migrator.js.map +1 -1
- package/migration/mongo/migration-state-repository.d.ts +4 -4
- package/migration/mongo/migration-state-repository.js +2 -2
- package/migration/mongo/migration-state-repository.js.map +1 -1
- package/migration/mongo/module.d.ts +3 -3
- package/migration/mongo/module.js +2 -2
- package/migration/mongo/module.js.map +1 -1
- package/module/module-base.d.ts +3 -3
- package/module/module-base.js +7 -7
- package/module/module-base.js.map +1 -1
- package/module/module-metric-reporter.d.ts +5 -5
- package/module/module-metric-reporter.js +3 -3
- package/module/module-metric-reporter.js.map +1 -1
- package/module/module.d.ts +2 -2
- package/module/modules/function.module.d.ts +2 -2
- package/module/modules/web-server.module.d.ts +7 -7
- package/module/modules/web-server.module.js +4 -4
- package/module/modules/web-server.module.js.map +1 -1
- package/module/utils.d.ts +1 -1
- package/notification/api.d.ts +4 -4
- package/notification/api.js +3 -3
- package/notification/api.js.map +1 -1
- package/notification/model.js +1 -1
- package/notification/model.js.map +1 -1
- package/notification/module.d.ts +1 -1
- package/object-storage/object-storage.d.ts +3 -3
- package/object-storage/object-storage.js +1 -1
- package/object-storage/object-storage.js.map +1 -1
- package/object-storage/object.d.ts +2 -2
- package/object-storage/s3/s3.object-storage-provider.d.ts +3 -3
- package/object-storage/s3/s3.object-storage-provider.js +3 -3
- package/object-storage/s3/s3.object-storage-provider.js.map +1 -1
- package/object-storage/s3/s3.object-storage.d.ts +2 -2
- package/object-storage/s3/s3.object-storage.js +6 -6
- package/object-storage/s3/s3.object-storage.js.map +1 -1
- package/object-storage/s3/s3.object.d.ts +3 -3
- package/openid-connect/cached-oidc-configuration.service.d.ts +1 -1
- package/openid-connect/cached-oidc-configuration.service.js +5 -5
- package/openid-connect/cached-oidc-configuration.service.js.map +1 -1
- package/openid-connect/index.js +1 -1
- package/openid-connect/index.js.map +1 -1
- package/openid-connect/mongo-oidc-state.repository.d.ts +7 -7
- package/openid-connect/mongo-oidc-state.repository.js +3 -3
- package/openid-connect/mongo-oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc-configuration.service.d.ts +2 -2
- package/openid-connect/oidc-configuration.service.js +3 -3
- package/openid-connect/oidc-configuration.service.js.map +1 -1
- package/openid-connect/oidc-state.model.d.ts +3 -3
- package/openid-connect/oidc-state.repository.d.ts +1 -1
- package/openid-connect/oidc-state.repository.js +1 -1
- package/openid-connect/oidc-state.repository.js.map +1 -1
- package/openid-connect/oidc.service-model.d.ts +8 -8
- package/openid-connect/oidc.service.d.ts +1 -1
- package/openid-connect/oidc.service.js +14 -14
- package/openid-connect/oidc.service.js.map +1 -1
- package/orm/sql/sql-repository.js +1 -1
- package/orm/sql/sql-repository.js.map +1 -1
- package/orm/test.js +1 -1
- package/orm/test.js.map +1 -1
- package/orm/types.d.ts +5 -5
- package/orm/types.js +6 -6
- package/orm/types.js.map +1 -1
- package/package.json +3 -3
- package/pdf/pdf.service.d.ts +8 -8
- package/pdf/pdf.service.js +13 -13
- package/pdf/pdf.service.js.map +1 -1
- package/pool/pool.d.ts +7 -7
- package/pool/pool.js +7 -7
- package/pool/pool.js.map +1 -1
- package/process-shutdown.d.ts +2 -2
- package/process-shutdown.js +2 -2
- package/promise/cancelable-promise.d.ts +1 -1
- package/promise/deferred-promise.js +7 -7
- package/promise/deferred-promise.js.map +1 -1
- package/promise/lazy-promise.d.ts +1 -1
- package/promise/lazy-promise.js +2 -2
- package/promise/lazy-promise.js.map +1 -1
- package/queue/mongo/job.d.ts +5 -5
- package/queue/mongo/mongo-job.repository.d.ts +6 -6
- package/queue/mongo/mongo-job.repository.js +5 -5
- package/queue/mongo/mongo-job.repository.js.map +1 -1
- package/queue/mongo/queue.d.ts +5 -5
- package/queue/mongo/queue.js +12 -12
- package/queue/mongo/queue.js.map +1 -1
- package/queue/mongo/queue.provider.d.ts +7 -7
- package/queue/mongo/queue.provider.js +4 -4
- package/queue/mongo/queue.provider.js.map +1 -1
- package/queue/queue.d.ts +8 -8
- package/queue/queue.js +2 -2
- package/queue/queue.js.map +1 -1
- package/reflection/decorator-data.js +1 -1
- package/reflection/decorator-data.js.map +1 -1
- package/reflection/decorators.js +1 -1
- package/reflection/decorators.js.map +1 -1
- package/reflection/reflection-data-map.d.ts +1 -1
- package/reflection/reflection-data-map.js +3 -3
- package/reflection/reflection-data-map.js.map +1 -1
- package/reflection/registry.d.ts +10 -10
- package/reflection/registry.js +4 -4
- package/reflection/registry.js.map +1 -1
- package/reflection/types.d.ts +33 -33
- package/reflection/utils.d.ts +6 -6
- package/reflection/utils.js +3 -3
- package/reflection/utils.js.map +1 -1
- package/rpc/endpoints/message-port.rpc-endpoint.d.ts +3 -3
- package/rpc/endpoints/message-port.rpc-endpoint.js +1 -1
- package/rpc/endpoints/message-port.rpc-endpoint.js.map +1 -1
- package/rpc/model.d.ts +24 -24
- package/rpc/model.js +1 -1
- package/rpc/model.js.map +1 -1
- package/rpc/rpc-error.d.ts +1 -1
- package/rpc/rpc-error.js +3 -3
- package/rpc/rpc-error.js.map +1 -1
- package/rpc/rpc.d.ts +2 -2
- package/rpc/rpc.js +7 -7
- package/rpc/rpc.js.map +1 -1
- package/rxjs/intersection-observer.d.ts +1 -1
- package/rxjs/intersection-observer.js +2 -2
- package/rxjs/intersection-observer.js.map +1 -1
- package/rxjs/mutation-observer.d.ts +1 -1
- package/rxjs/mutation-observer.js +2 -2
- package/rxjs/mutation-observer.js.map +1 -1
- package/rxjs/performance-observer.d.ts +1 -1
- package/rxjs/performance-observer.js +2 -2
- package/rxjs/performance-observer.js.map +1 -1
- package/rxjs/resize-observer.d.ts +1 -1
- package/rxjs/resize-observer.js +2 -2
- package/rxjs/resize-observer.js.map +1 -1
- package/rxjs/retry-backoff.d.ts +1 -1
- package/rxjs/retry-backoff.js +1 -1
- package/rxjs/retry-backoff.js.map +1 -1
- package/rxjs/slow-array.d.ts +1 -1
- package/rxjs/touch.d.ts +1 -1
- package/schema/array-constraints/maximum-length.d.ts +2 -2
- package/schema/array-constraints/minimum-length.d.ts +2 -2
- package/schema/coercers/boolean.coercer.d.ts +1 -1
- package/schema/coercers/boolean.coercer.js +1 -1
- package/schema/coercers/boolean.coercer.js.map +1 -1
- package/schema/coercers/date.coercer.d.ts +1 -1
- package/schema/coercers/date.coercer.js +1 -1
- package/schema/coercers/date.coercer.js.map +1 -1
- package/schema/coercers/number.coercer.d.ts +1 -1
- package/schema/coercers/regexp.coercer.d.ts +1 -1
- package/schema/coercers/string.coercer.d.ts +1 -1
- package/schema/coercers/string.coercer.js +1 -1
- package/schema/coercers/string.coercer.js.map +1 -1
- package/schema/coercers/uint8-array.coercer.d.ts +1 -1
- package/schema/constraints/enumeration.d.ts +2 -2
- package/schema/constraints/enumeration.js +3 -3
- package/schema/constraints/enumeration.js.map +1 -1
- package/schema/constraints/generic.d.ts +4 -4
- package/schema/constraints/generic.js +1 -1
- package/schema/constraints/generic.js.map +1 -1
- package/schema/constraints/integer.d.ts +2 -2
- package/schema/constraints/length.d.ts +2 -2
- package/schema/constraints/length.js +1 -1
- package/schema/constraints/length.js.map +1 -1
- package/schema/constraints/literal.d.ts +1 -1
- package/schema/constraints/literal.js +1 -1
- package/schema/constraints/literal.js.map +1 -1
- package/schema/constraints/maximum-date.d.ts +2 -2
- package/schema/constraints/maximum-date.js +1 -1
- package/schema/constraints/maximum-date.js.map +1 -1
- package/schema/constraints/maximum-length.d.ts +2 -2
- package/schema/constraints/maximum-length.js +1 -1
- package/schema/constraints/maximum-length.js.map +1 -1
- package/schema/constraints/maximum.d.ts +2 -2
- package/schema/constraints/minimum-date.d.ts +2 -2
- package/schema/constraints/minimum-date.js +1 -1
- package/schema/constraints/minimum-date.js.map +1 -1
- package/schema/constraints/minimum-length.d.ts +2 -2
- package/schema/constraints/minimum-length.js +1 -1
- package/schema/constraints/minimum-length.js.map +1 -1
- package/schema/constraints/minimum.d.ts +2 -2
- package/schema/constraints/pattern.d.ts +2 -2
- package/schema/decorators/class.d.ts +1 -1
- package/schema/decorators/class.js +1 -1
- package/schema/decorators/class.js.map +1 -1
- package/schema/decorators/coerce.d.ts +1 -1
- package/schema/decorators/constraint.d.ts +2 -2
- package/schema/decorators/property.d.ts +2 -2
- package/schema/decorators/property.js +2 -2
- package/schema/decorators/property.js.map +1 -1
- package/schema/decorators/types.d.ts +4 -4
- package/schema/decorators/utils.d.ts +2 -2
- package/schema/decorators/utils.js +5 -5
- package/schema/decorators/utils.js.map +1 -1
- package/schema/schema.d.ts +4 -4
- package/schema/schema.error.d.ts +6 -6
- package/schema/schema.error.js +3 -3
- package/schema/schema.error.js.map +1 -1
- package/schema/schema.js +6 -6
- package/schema/schema.js.map +1 -1
- package/schema/schemas/any.d.ts +2 -2
- package/schema/schemas/array.d.ts +3 -3
- package/schema/schemas/array.js +2 -2
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/assign.d.ts +1 -1
- package/schema/schemas/assign.js +2 -2
- package/schema/schemas/assign.js.map +1 -1
- package/schema/schemas/boolean.d.ts +2 -2
- package/schema/schemas/constraint.d.ts +1 -1
- package/schema/schemas/date.d.ts +2 -2
- package/schema/schemas/date.js +2 -2
- package/schema/schemas/date.js.map +1 -1
- package/schema/schemas/defaulted.d.ts +2 -2
- package/schema/schemas/enumeration.d.ts +3 -3
- package/schema/schemas/enumeration.js +1 -1
- package/schema/schemas/enumeration.js.map +1 -1
- package/schema/schemas/instance.d.ts +1 -1
- package/schema/schemas/literal.d.ts +2 -2
- package/schema/schemas/literal.js +1 -1
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/nullable.d.ts +2 -2
- package/schema/schemas/number.d.ts +2 -2
- package/schema/schemas/number.js +2 -2
- package/schema/schemas/number.js.map +1 -1
- package/schema/schemas/object.d.ts +2 -2
- package/schema/schemas/omit.d.ts +1 -1
- package/schema/schemas/omit.js +2 -2
- package/schema/schemas/omit.js.map +1 -1
- package/schema/schemas/one-or-many.d.ts +4 -4
- package/schema/schemas/one-or-many.js +1 -1
- package/schema/schemas/one-or-many.js.map +1 -1
- package/schema/schemas/optional.d.ts +3 -3
- package/schema/schemas/partial.d.ts +1 -1
- package/schema/schemas/partial.js +3 -3
- package/schema/schemas/partial.js.map +1 -1
- package/schema/schemas/pick.d.ts +1 -1
- package/schema/schemas/pick.js +2 -2
- package/schema/schemas/pick.js.map +1 -1
- package/schema/schemas/readable-stream.d.ts +2 -2
- package/schema/schemas/record.d.ts +2 -2
- package/schema/schemas/regexp.d.ts +2 -2
- package/schema/schemas/string.d.ts +2 -2
- package/schema/schemas/string.js +2 -2
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/transform.d.ts +1 -1
- package/schema/schemas/uint8-array.d.ts +2 -2
- package/schema/schemas/uint8-array.js +2 -2
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +2 -2
- package/schema/schemas/union.js +1 -1
- package/schema/schemas/union.js.map +1 -1
- package/schema/schemas/unknown.d.ts +2 -2
- package/schema/transformers/generic.d.ts +3 -3
- package/schema/transformers/lowercase.d.ts +1 -1
- package/schema/transformers/trim.d.ts +1 -1
- package/schema/transformers/uppercase.d.ts +1 -1
- package/schema/types.d.ts +33 -33
- package/schema/types.js +2 -2
- package/schema/types.js.map +1 -1
- package/schema/utils/schema.d.ts +1 -1
- package/schema/utils/schema.js +5 -5
- package/schema/utils/schema.js.map +1 -1
- package/schema/utils/value-type.d.ts +1 -1
- package/schema/utils/value-type.js +2 -2
- package/schema/utils/value-type.js.map +1 -1
- package/search-index/elastic/config.d.ts +4 -4
- package/search-index/elastic/config.js +2 -2
- package/search-index/elastic/config.js.map +1 -1
- package/search-index/elastic/model/elastic-query.d.ts +15 -15
- package/search-index/elastic/model/index-mapping.d.ts +16 -16
- package/search-index/elastic/model/index-mapping.js +1 -1
- package/search-index/elastic/model/index-mapping.js.map +1 -1
- package/search-index/elastic/model/sort.d.ts +4 -4
- package/search-index/elastic/module.d.ts +3 -3
- package/search-index/elastic/module.js +4 -4
- package/search-index/elastic/module.js.map +1 -1
- package/search-index/elastic/query-builder/boolean-query-builder.js +3 -3
- package/search-index/elastic/query-builder/boolean-query-builder.js.map +1 -1
- package/search-index/elastic/query-converter.d.ts +2 -2
- package/search-index/elastic/query-converter.js +2 -2
- package/search-index/elastic/query-converter.js.map +1 -1
- package/search-index/elastic/search-index.d.ts +6 -6
- package/search-index/elastic/search-index.js +8 -8
- package/search-index/elastic/search-index.js.map +1 -1
- package/search-index/elastic/sort-converter.d.ts +1 -1
- package/search-index/error.d.ts +1 -1
- package/search-index/error.js +2 -2
- package/search-index/error.js.map +1 -1
- package/search-index/memory/memory-search-index.d.ts +1 -1
- package/search-index/memory/memory-search-index.js +7 -7
- package/search-index/memory/memory-search-index.js.map +1 -1
- package/search-index/search-index.d.ts +3 -3
- package/search-index/search-index.js +1 -1
- package/search-index/search-index.js.map +1 -1
- package/search-index/search-result.d.ts +3 -3
- package/serializer/handlers/binary.d.ts +2 -2
- package/serializer/handlers/binary.js +1 -1
- package/serializer/handlers/binary.js.map +1 -1
- package/serializer/handlers/error.d.ts +1 -1
- package/serializer/handlers/map.d.ts +1 -1
- package/serializer/handlers/regex.d.ts +1 -1
- package/serializer/handlers/register.js +2 -2
- package/serializer/handlers/register.js.map +1 -1
- package/serializer/handlers/set.d.ts +1 -1
- package/serializer/serializable.d.ts +7 -7
- package/serializer/serializable.js +1 -1
- package/serializer/serializable.js.map +1 -1
- package/serializer/serializer.d.ts +2 -2
- package/serializer/serializer.js +6 -6
- package/serializer/serializer.js.map +1 -1
- package/serializer/types.d.ts +16 -16
- package/sse/server-sent-events.d.ts +3 -3
- package/sse/server-sent-events.js +7 -7
- package/sse/server-sent-events.js.map +1 -1
- package/tailwind/colors.d.ts +2 -2
- package/tailwind/colors.js +2 -2
- package/tailwind/colors.js.map +1 -1
- package/templates/module.d.ts +2 -2
- package/templates/module.js +1 -1
- package/templates/module.js.map +1 -1
- package/templates/providers/file.provider-template.d.ts +4 -4
- package/templates/providers/file.provider-template.js +4 -5
- package/templates/providers/file.provider-template.js.map +1 -1
- package/templates/providers/memory.template-provider.js +2 -2
- package/templates/providers/memory.template-provider.js.map +1 -1
- package/templates/renderers/handlebars.template-renderer.d.ts +10 -10
- package/templates/renderers/handlebars.template-renderer.js +4 -4
- package/templates/renderers/handlebars.template-renderer.js.map +1 -1
- package/templates/renderers/mjml.template-renderer.d.ts +3 -3
- package/templates/renderers/mjml.template-renderer.js +1 -1
- package/templates/renderers/mjml.template-renderer.js.map +1 -1
- package/templates/renderers/string.template-renderer.d.ts +1 -1
- package/templates/renderers/string.template-renderer.js +1 -1
- package/templates/renderers/string.template-renderer.js.map +1 -1
- package/templates/resolvers/file.template-resolver.d.ts +5 -5
- package/templates/resolvers/file.template-resolver.js +3 -3
- package/templates/resolvers/file.template-resolver.js.map +1 -1
- package/templates/resolvers/string.template-resolver.d.ts +1 -1
- package/templates/resolvers/string.template-resolver.js +2 -2
- package/templates/resolvers/string.template-resolver.js.map +1 -1
- package/templates/template-renderer.provider.js +1 -1
- package/templates/template-renderer.provider.js.map +1 -1
- package/templates/template-resolver.provider.js +1 -1
- package/templates/template-resolver.provider.js.map +1 -1
- package/templates/template.model.d.ts +2 -2
- package/templates/template.model.js +1 -1
- package/templates/template.model.js.map +1 -1
- package/templates/template.renderer.d.ts +4 -4
- package/templates/template.service.d.ts +2 -2
- package/templates/template.service.js +4 -4
- package/templates/template.service.js.map +1 -1
- package/templates/tokens.d.ts +2 -2
- package/templates/tokens.js +1 -1
- package/templates/tokens.js.map +1 -1
- package/text/dynamic-text.model.d.ts +1 -1
- package/text/dynamic-text.model.js +2 -2
- package/text/dynamic-text.model.js.map +1 -1
- package/text/localizable-text.model.d.ts +1 -1
- package/text/localization.service.d.ts +13 -13
- package/text/localization.service.js +12 -12
- package/text/localization.service.js.map +1 -1
- package/threading/thread-pool.d.ts +4 -4
- package/threading/thread-pool.js +5 -5
- package/threading/thread-pool.js.map +1 -1
- package/threading/thread-worker.d.ts +2 -2
- package/threading/thread-worker.js +1 -1
- package/threading/thread-worker.js.map +1 -1
- package/types/geo-json.d.ts +13 -13
- package/types.d.ts +89 -89
- package/utils/any-iterable-iterator.d.ts +3 -3
- package/utils/array/array-backtracker.js +3 -3
- package/utils/array/array-backtracker.js.map +1 -1
- package/utils/async-iterable-helpers/buffer.js +1 -1
- package/utils/async-iterable-helpers/buffer.js.map +1 -1
- package/utils/async-iterable-helpers/parallel/types.d.ts +2 -2
- package/utils/async-iterable-helpers/types.d.ts +7 -7
- package/utils/backoff.d.ts +5 -5
- package/utils/base64.js +1 -1
- package/utils/base64.js.map +1 -1
- package/utils/benchmark.d.ts +1 -1
- package/utils/binary-search.d.ts +1 -1
- package/utils/binary.d.ts +1 -1
- package/utils/binary.js +1 -1
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.d.ts +1 -1
- package/utils/cancellation-token.js +13 -13
- package/utils/cancellation-token.js.map +1 -1
- package/utils/clone.js +1 -1
- package/utils/clone.js.map +1 -1
- package/utils/compression.d.ts +1 -1
- package/utils/compression.js +3 -3
- package/utils/compression.js.map +1 -1
- package/utils/cryptography.d.ts +12 -12
- package/utils/date-time.d.ts +7 -7
- package/utils/encoding.d.ts +1 -1
- package/utils/encoding.js +1 -1
- package/utils/encoding.js.map +1 -1
- package/utils/enum.d.ts +1 -1
- package/utils/equals.d.ts +4 -4
- package/utils/factory-map.d.ts +1 -1
- package/utils/factory-map.js +3 -3
- package/utils/factory-map.js.map +1 -1
- package/utils/feedable-async-iterable.js +6 -6
- package/utils/feedable-async-iterable.js.map +1 -1
- package/utils/format-error.d.ts +2 -2
- package/utils/function/memoize.d.ts +1 -1
- package/utils/function/memoize.js +2 -2
- package/utils/function/memoize.js.map +1 -1
- package/utils/helpers.d.ts +1 -1
- package/utils/helpers.js +1 -1
- package/utils/helpers.js.map +1 -1
- package/utils/image.js +1 -1
- package/utils/image.js.map +1 -1
- package/utils/iterable-helpers/types.d.ts +6 -6
- package/utils/jwt.d.ts +4 -4
- package/utils/math.d.ts +1 -1
- package/utils/math.js +1 -1
- package/utils/math.js.map +1 -1
- package/utils/merge.d.ts +2 -2
- package/utils/middleware.d.ts +9 -9
- package/utils/moving-metric.d.ts +1 -1
- package/utils/object/decycle.d.ts +2 -2
- package/utils/object/decycle.js +1 -1
- package/utils/object/decycle.js.map +1 -1
- package/utils/object/dereference.d.ts +2 -2
- package/utils/object/dereference.js +1 -1
- package/utils/object/dereference.js.map +1 -1
- package/utils/object/forward-ref.d.ts +2 -2
- package/utils/object/lazy-property.d.ts +6 -6
- package/utils/object/merge.d.ts +1 -1
- package/utils/object/object.d.ts +1 -1
- package/utils/object/property-name.d.ts +6 -6
- package/utils/ordered-feedable-async-iterable.js +5 -5
- package/utils/ordered-feedable-async-iterable.js.map +1 -1
- package/utils/patch-worker.d.ts +2 -2
- package/utils/periodic-reporter.js +3 -3
- package/utils/periodic-reporter.js.map +1 -1
- package/utils/periodic-sampler.d.ts +1 -1
- package/utils/provider-function-iterable.d.ts +2 -2
- package/utils/proxy.d.ts +1 -1
- package/utils/reflection.d.ts +1 -1
- package/utils/singleton.d.ts +2 -2
- package/utils/sort.d.ts +2 -2
- package/utils/stream/size-limited-stream.d.ts +1 -1
- package/utils/stream/size-limited-stream.js +1 -1
- package/utils/stream/size-limited-stream.js.map +1 -1
- package/utils/stream/stream-helper-types.d.ts +5 -5
- package/utils/stream/stream-reader.js +1 -1
- package/utils/stream/stream-reader.js.map +1 -1
- package/utils/type-guards.d.ts +4 -4
- package/utils/type-guards.js +1 -1
- package/utils/type-guards.js.map +1 -1
- package/utils/url-builder.d.ts +4 -4
- package/utils/url-builder.js +1 -1
- package/utils/url-builder.js.map +1 -1
- package/utils/z-base32.d.ts +1 -1
- package/web-types.d.ts +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../../source/schema/schemas/date.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD
|
|
1
|
+
{"version":3,"file":"date.js","sourceRoot":"","sources":["../../../source/schema/schemas/date.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,mDAA8C;AAC9C,yDAAgD;AAChD,gDAA8E;AAC9E,8CAAwE;AAExE,oCAAuC;AAOvC,SAAgB,IAAI,CAAC,UAAuB,EAAE;IAC5C,MAAM,WAAW,GAA4B,IAAA,eAAO,EAAC,OAAO,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC;IAErF,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC9B,WAAW,CAAC,IAAI,CAAC,IAAI,mCAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;KAC9D;IAED,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC9B,WAAW,CAAC,IAAI,CAAC,IAAI,mCAAqB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;KAC9D;IAED,OAAO,IAAA,mBAAW,EAAC,IAAI,EAAE;QACvB,GAAG,OAAO;QACV,gBAAgB,EAAE,WAAW;KAC9B,CAAC,CAAC;AACL,CAAC;AAfD,oBAeC;AAED,SAAgB,YAAY,CAAC,OAAqB;IAChD,OAAO,IAAA,oDAAuC,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC;AAChE,CAAC;AAFD,oCAEC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
2
|
-
import type { OneOrMany } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
|
+
import type { OneOrMany } from "../../types";
|
|
3
3
|
import type { SchemaTestable } from '../schema';
|
|
4
4
|
import type { ValueSchema } from '../types';
|
|
5
5
|
export declare function defaulted<T, Default>(type: OneOrMany<SchemaTestable<T>>, defaultValue: Default): ValueSchema<NonNullable<T> | Default>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
2
|
-
import type { Enumeration as EnumerationType, EnumerationValue } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
|
+
import type { Enumeration as EnumerationType, EnumerationValue } from "../../types";
|
|
3
3
|
import type { ValueSchema, ValueSchemaOptions } from '../types';
|
|
4
|
-
export type EnumerationOptions = ValueSchemaOptions;
|
|
4
|
+
export declare type EnumerationOptions = ValueSchemaOptions;
|
|
5
5
|
export declare function enumeration<T extends EnumerationType>(enumerationValue: T, options?: EnumerationOptions): ValueSchema<EnumerationValue<T>>;
|
|
6
6
|
export declare function Enumeration(enumerationValue: EnumerationType, options?: EnumerationOptions): Decorator<'property' | 'accessor'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Enumeration = exports.enumeration = void 0;
|
|
5
|
-
const array_1 = require("
|
|
5
|
+
const array_1 = require("../../utils/array/array");
|
|
6
6
|
const constraints_1 = require("../constraints");
|
|
7
7
|
const decorators_1 = require("../decorators");
|
|
8
8
|
const types_1 = require("../types");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"enumeration.js","sourceRoot":"","sources":["../../../source/schema/schemas/enumeration.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAIzD
|
|
1
|
+
{"version":3,"file":"enumeration.js","sourceRoot":"","sources":["../../../source/schema/schemas/enumeration.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAIzD,mDAA8C;AAC9C,gDAAuD;AACvD,8CAAwE;AAExE,oCAAuC;AAIvC,SAAgB,WAAW,CAA4B,gBAAmB,EAAE,OAA4B;IACtG,MAAM,gBAAgB,GAA4B,IAAA,eAAO,EAAC,OAAO,EAAE,gBAAgB,IAAI,EAAE,CAAC,CAAC;IAE3F,MAAM,qBAAqB,GAAG,IAAI,mCAAqB,CAAC,gBAAgB,CAAC,CAAC;IAC1E,gBAAgB,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAE7C,OAAO,IAAA,mBAAW,EAAC,qBAAqB,CAAC,aAAa,EAAE;QACtD,GAAG,OAAO;QACV,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAVD,kCAUC;AAED,SAAgB,WAAW,CAAC,gBAAiC,EAAE,OAA4B;IACzF,OAAO,IAAA,oDAAuC,EAAC,WAAW,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC,CAAC;AACzF,CAAC;AAFD,kCAEC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import type { ValueSchema, ValueSchemaOptions, ValueType } from '../types';
|
|
2
|
-
export type InstanceOptions = ValueSchemaOptions;
|
|
2
|
+
export declare type InstanceOptions = ValueSchemaOptions;
|
|
3
3
|
export declare function instance<T>(type: ValueType<T>, options?: InstanceOptions): ValueSchema<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { ValueSchema, ValueSchemaOptions } from '../types';
|
|
3
|
-
export type LiteralOptions = ValueSchemaOptions;
|
|
3
|
+
export declare type LiteralOptions = ValueSchemaOptions;
|
|
4
4
|
export declare function literal<T>(value: T, options?: LiteralOptions): ValueSchema<T>;
|
|
5
5
|
export declare function Literal(value: any): Decorator<'property' | 'accessor'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Literal = exports.literal = void 0;
|
|
5
|
-
const array_1 = require("
|
|
5
|
+
const array_1 = require("../../utils/array/array");
|
|
6
6
|
const constraints_1 = require("../constraints");
|
|
7
7
|
const decorators_1 = require("../decorators");
|
|
8
8
|
const types_1 = require("../types");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"literal.js","sourceRoot":"","sources":["../../../source/schema/schemas/literal.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD
|
|
1
|
+
{"version":3,"file":"literal.js","sourceRoot":"","sources":["../../../source/schema/schemas/literal.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,mDAA8C;AAC9C,gDAAmD;AACnD,8CAAwE;AAExE,oCAAuC;AACvC,oCAAwC;AAIxC,SAAgB,OAAO,CAAI,KAAQ,EAAE,OAAwB;IAC3D,MAAM,gBAAgB,GAA4B,IAAA,eAAO,EAAC,OAAO,EAAE,gBAAgB,IAAI,EAAE,CAAC,CAAC;IAC3F,gBAAgB,CAAC,IAAI,CAAC,IAAI,+BAAiB,CAAC,KAAK,CAAC,CAAC,CAAC;IAEpD,OAAO,IAAA,mBAAW,EAAC,IAAA,oBAAY,EAAC,KAAK,CAAC,EAAE;QACtC,GAAG,OAAO;QACV,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AARD,0BAQC;AAED,SAAgB,OAAO,CAAC,KAAU;IAChC,OAAO,IAAA,oDAAuC,EAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;AACjE,CAAC;AAFD,0BAEC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { SchemaTestable } from '../schema';
|
|
3
3
|
import type { ValueSchema, ValueSchemaOptions } from '../types';
|
|
4
|
-
export type NullableOptions = ValueSchemaOptions;
|
|
4
|
+
export declare type NullableOptions = ValueSchemaOptions;
|
|
5
5
|
export declare function nullable<T>(schema: SchemaTestable<T>, options?: NullableOptions): ValueSchema<T | null>;
|
|
6
6
|
export declare function Nullable(options?: NullableOptions): Decorator<'property' | 'accessor'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { ValueSchema, ValueSchemaOptions } from '../types';
|
|
3
|
-
export type NumberOptions = ValueSchemaOptions & {
|
|
3
|
+
export declare type NumberOptions = ValueSchemaOptions & {
|
|
4
4
|
minimum?: number;
|
|
5
5
|
maximum?: number;
|
|
6
6
|
integer?: boolean;
|
package/schema/schemas/number.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.NumberProperty = exports.number = void 0;
|
|
5
|
-
const array_1 = require("
|
|
6
|
-
const type_guards_1 = require("
|
|
5
|
+
const array_1 = require("../../utils/array/array");
|
|
6
|
+
const type_guards_1 = require("../../utils/type-guards");
|
|
7
7
|
const integer_1 = require("../constraints/integer");
|
|
8
8
|
const maximum_1 = require("../constraints/maximum");
|
|
9
9
|
const minimum_1 = require("../constraints/minimum");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"number.js","sourceRoot":"","sources":["../../../source/schema/schemas/number.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD
|
|
1
|
+
{"version":3,"file":"number.js","sourceRoot":"","sources":["../../../source/schema/schemas/number.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,mDAA8C;AAC9C,yDAAgD;AAChD,oDAA2D;AAC3D,oDAA2D;AAC3D,oDAA2D;AAC3D,8CAAwE;AAExE,oCAAuC;AAQvC,SAAgB,MAAM,CAAC,UAAyB,EAAE;IAChD,MAAM,gBAAgB,GAA4B,IAAA,eAAO,EAAC,OAAO,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC;IAE1F,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC9B,gBAAgB,CAAC,IAAI,CAAC,IAAI,2BAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;KAC/D;IAED,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC9B,gBAAgB,CAAC,IAAI,CAAC,IAAI,2BAAiB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC;KAC/D;IAED,IAAI,OAAO,CAAC,OAAO,IAAI,IAAI,EAAE;QAC3B,gBAAgB,CAAC,IAAI,CAAC,2BAAiB,CAAC,CAAC;KAC1C;IAED,OAAO,IAAA,mBAAW,EAAS,MAAM,EAAE;QACjC,GAAG,OAAO;QACV,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AAnBD,wBAmBC;AAED,SAAgB,cAAc,CAAC,OAAuB;IACpD,OAAO,IAAA,oDAAuC,EAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AAClE,CAAC;AAFD,wCAEC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Record, SimplifiedOptionalize, TypedOmit } from
|
|
1
|
+
import type { Record, SimplifiedOptionalize, TypedOmit } from "../../types";
|
|
2
2
|
import type { ObjectSchema, ObjectSchemaProperties } from '../types';
|
|
3
|
-
export type ObjectOptions<T extends Record = Record> = TypedOmit<ObjectSchema<T>, 'properties'>;
|
|
3
|
+
export declare type ObjectOptions<T extends Record = Record> = TypedOmit<ObjectSchema<T>, 'properties'>;
|
|
4
4
|
export declare function explicitObject<T extends Record>(properties: ObjectSchemaProperties<T>, options?: ObjectOptions<T>): ObjectSchema<T>;
|
|
5
5
|
export declare function object<T extends Record>(properties: ObjectSchemaProperties<T>, options?: ObjectOptions<T>): ObjectSchema<SimplifiedOptionalize<T>>;
|
package/schema/schemas/omit.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OneOrMany, Record } from
|
|
1
|
+
import type { OneOrMany, Record } from "../../types";
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
import type { ObjectSchema, ObjectSchemaOrType } from '../types';
|
|
4
4
|
export declare function omit<T extends Record, K extends keyof T>(schemaOrType: ObjectSchemaOrType<T>, keys: OneOrMany<K>): ObjectSchema<Simplify<Omit<T, K>>>;
|
package/schema/schemas/omit.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.omit = void 0;
|
|
4
|
-
const array_1 = require("
|
|
5
|
-
const object_1 = require("
|
|
4
|
+
const array_1 = require("../../utils/array/array");
|
|
5
|
+
const object_1 = require("../../utils/object/object");
|
|
6
6
|
const types_1 = require("../types");
|
|
7
7
|
const schema_1 = require("../utils/schema");
|
|
8
8
|
function omit(schemaOrType, keys) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"omit.js","sourceRoot":"","sources":["../../../source/schema/schemas/omit.ts"],"names":[],"mappings":";;;AACA
|
|
1
|
+
{"version":3,"file":"omit.js","sourceRoot":"","sources":["../../../source/schema/schemas/omit.ts"],"names":[],"mappings":";;;AACA,mDAA8C;AAC9C,sDAAsD;AAGtD,oCAAwC;AACxC,4CAAkD;AAElD,SAAgB,IAAI,CAAsC,YAAmC,EAAE,IAAkB;IAC/G,MAAM,MAAM,GAAG,IAAA,wBAAe,EAAC,YAAY,CAAC,CAAC;IAC7C,MAAM,QAAQ,GAAG,IAAA,eAAO,EAAC,IAAI,CAAC,CAAC;IAE/B,MAAM,OAAO,GAAG,IAAA,sBAAa,EAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACjD,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAgB,CAAC,CAAC,CAAC;IAE9F,MAAM,YAAY,GAAG,IAAA,oBAAY,EAAC;QAChC,GAAG,MAAM;QACT,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,aAAa,CAA8B;KAC3E,CAAC,CAAC;IAEH,OAAO,YAAmD,CAAC;AAC7D,CAAC;AAbD,oBAaC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
2
|
-
import type { OneOrMany as OneOrManyType } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
|
+
import type { OneOrMany as OneOrManyType } from "../../types";
|
|
3
3
|
import type { SchemaTestable } from '../schema';
|
|
4
4
|
import type { ValueSchema, ValueSchemaOptions } from '../types';
|
|
5
5
|
import type { ArrayOptions } from './array';
|
|
6
|
-
export type OneOrMany<T> = OneOrManyType<T>;
|
|
7
|
-
export type OneOrManyOptions = ValueSchemaOptions & Pick<ArrayOptions, 'minimumLength' | 'maximumLength'>;
|
|
6
|
+
export declare type OneOrMany<T> = OneOrManyType<T>;
|
|
7
|
+
export declare type OneOrManyOptions = ValueSchemaOptions & Pick<ArrayOptions, 'minimumLength' | 'maximumLength'>;
|
|
8
8
|
export declare function oneOrMany<T>(innerValues: OneOrMany<SchemaTestable<T>>, options?: OneOrManyOptions): ValueSchema<T | T[]>;
|
|
9
9
|
export declare function OneOrMany(innerValues: OneOrMany<SchemaTestable>, options?: OneOrManyOptions): Decorator<'property' | 'accessor'>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.OneOrMany = exports.oneOrMany = void 0;
|
|
5
|
-
const array_1 = require("
|
|
5
|
+
const array_1 = require("../../utils/array");
|
|
6
6
|
const utils_1 = require("../decorators/utils");
|
|
7
7
|
const array_2 = require("./array");
|
|
8
8
|
const union_1 = require("./union");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"one-or-many.js","sourceRoot":"","sources":["../../../source/schema/schemas/one-or-many.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAIzD,
|
|
1
|
+
{"version":3,"file":"one-or-many.js","sourceRoot":"","sources":["../../../source/schema/schemas/one-or-many.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAIzD,6CAAwC;AACxC,+CAA8E;AAI9E,mCAAgC;AAChC,mCAAgC;AAKhC,SAAgB,SAAS,CAAI,WAAyC,EAAE,OAA0B;IAChG,OAAO,IAAA,aAAK,EACV;QACE,IAAA,aAAK,EAAC,WAAW,EAAE,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,aAAa,EAAE,CAAC;QACpG,GAAG,IAAA,eAAO,EAAC,WAAW,CAAC;KACxB,EACD,OAAO,CACgB,CAAC;AAC5B,CAAC;AARD,8BAQC;AAED,2DAA2D;AAC3D,SAAgB,SAAS,CAAC,WAAsC,EAAE,OAA0B;IAC1F,OAAO,IAAA,+CAAuC,EAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC,CAAC;AAClF,CAAC;AAFD,8BAEC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
2
|
-
import type { OneOrMany } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
|
+
import type { OneOrMany } from "../../types";
|
|
3
3
|
import type { SchemaTestable } from '../schema';
|
|
4
4
|
import type { ValueSchema, ValueSchemaOptions } from '../types';
|
|
5
|
-
export type OptionalOptions = ValueSchemaOptions;
|
|
5
|
+
export declare type OptionalOptions = ValueSchemaOptions;
|
|
6
6
|
export declare function optional<T>(schema: OneOrMany<SchemaTestable<T>>, options?: OptionalOptions): ValueSchema<T | undefined>;
|
|
7
7
|
export declare function Optional(schema?: OneOrMany<SchemaTestable>): Decorator<'property' | 'accessor'>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OneOrMany, PartialProperty, Record } from
|
|
1
|
+
import type { OneOrMany, PartialProperty, Record } from "../../types";
|
|
2
2
|
import type { ObjectSchema, ObjectSchemaOrType } from '../types';
|
|
3
3
|
export declare function partial<T extends Record>(schema: ObjectSchemaOrType<T>): ObjectSchema<Partial<T>>;
|
|
4
4
|
export declare function partial<T extends Record, K extends keyof T>(schema: ObjectSchemaOrType<T>, keys: OneOrMany<K>): ObjectSchema<PartialProperty<T, K>>;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.partial = void 0;
|
|
4
|
-
const array_1 = require("
|
|
5
|
-
const object_1 = require("
|
|
6
|
-
const type_guards_1 = require("
|
|
4
|
+
const array_1 = require("../../utils/array/array");
|
|
5
|
+
const object_1 = require("../../utils/object");
|
|
6
|
+
const type_guards_1 = require("../../utils/type-guards");
|
|
7
7
|
const types_1 = require("../types");
|
|
8
8
|
const utils_1 = require("../utils");
|
|
9
9
|
const optional_1 = require("./optional");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"partial.js","sourceRoot":"","sources":["../../../source/schema/schemas/partial.ts"],"names":[],"mappings":";;;AACA
|
|
1
|
+
{"version":3,"file":"partial.js","sourceRoot":"","sources":["../../../source/schema/schemas/partial.ts"],"names":[],"mappings":";;;AACA,mDAA8C;AAC9C,+CAAiD;AACjD,yDAA6D;AAE7D,oCAAwC;AACxC,oCAA2C;AAC3C,yCAAsC;AAItC,SAAgB,OAAO,CAAsC,YAAmC,EAAE,IAAmB;IACnH,MAAM,MAAM,GAAG,IAAA,uBAAe,EAAC,YAAY,CAAC,CAAC;IAE7C,MAAM,QAAQ,GAAG,IAAA,uBAAS,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,eAAO,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC;IAC7D,MAAM,eAAe,GAAG,IAAA,yBAAW,EAAC,QAAQ,CAAC,CAAC;IAE9C,MAAM,cAAc,GAAG,IAAA,wBAAe,EAAC,MAAM,CAAC,UAAU,EAAE,CAAC,cAAc,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC,eAAe,IAAI,QAAQ,CAAC,QAAQ,CAAC,GAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,IAAA,mBAAQ,EAAC,cAAc,CAAC,CAAC,CAAC,CAAC,cAAc,CAAC,CAA8B,CAAC;IAEhN,MAAM,YAAY,GAAG,IAAA,oBAAY,EAAC;QAChC,GAAG,MAAM;QACT,UAAU,EAAE,cAAc;KAC3B,CAAC,CAAC;IAEH,OAAO,YAAmD,CAAC;AAC7D,CAAC;AAdD,0BAcC"}
|
package/schema/schemas/pick.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OneOrMany, Record } from
|
|
1
|
+
import type { OneOrMany, Record } from "../../types";
|
|
2
2
|
import type { Simplify } from 'type-fest';
|
|
3
3
|
import type { ObjectSchema, ObjectSchemaOrType } from '../types';
|
|
4
4
|
export declare function pick<T extends Record, K extends keyof T>(schemaOrType: ObjectSchemaOrType<T>, key: OneOrMany<K>): ObjectSchema<Simplify<Pick<T, K>>>;
|
package/schema/schemas/pick.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.pick = void 0;
|
|
4
|
-
const array_1 = require("
|
|
5
|
-
const object_1 = require("
|
|
4
|
+
const array_1 = require("../../utils/array/array");
|
|
5
|
+
const object_1 = require("../../utils/object/object");
|
|
6
6
|
const types_1 = require("../types");
|
|
7
7
|
const schema_1 = require("../utils/schema");
|
|
8
8
|
function pick(schemaOrType, key) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pick.js","sourceRoot":"","sources":["../../../source/schema/schemas/pick.ts"],"names":[],"mappings":";;;AACA
|
|
1
|
+
{"version":3,"file":"pick.js","sourceRoot":"","sources":["../../../source/schema/schemas/pick.ts"],"names":[],"mappings":";;;AACA,mDAA8C;AAC9C,sDAAsD;AAGtD,oCAAwC;AACxC,4CAAkD;AAElD,SAAgB,IAAI,CAAsC,YAAmC,EAAE,GAAiB;IAC9G,MAAM,MAAM,GAAG,IAAA,wBAAe,EAAC,YAAY,CAAC,CAAC;IAC7C,MAAM,IAAI,GAAG,IAAA,eAAO,EAAC,GAAG,CAAC,CAAC;IAE1B,MAAM,OAAO,GAAG,IAAA,sBAAa,EAAC,MAAM,CAAC,UAAU,CAAC,CAAC;IACjD,MAAM,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,WAAW,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAgB,CAAC,CAAC,CAAC;IAEzF,MAAM,YAAY,GAAG,IAAA,oBAAY,EAAC;QAChC,GAAG,MAAM;QACT,UAAU,EAAE,MAAM,CAAC,WAAW,CAAC,aAAa,CAA8B;KAC3E,CAAC,CAAC;IAEH,OAAO,YAAmD,CAAC;AAC7D,CAAC;AAbD,oBAaC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { Schema } from '../schema';
|
|
3
3
|
import type { ValueSchemaOptions } from '../types';
|
|
4
|
-
export type ReadableStreamOptions = ValueSchemaOptions;
|
|
4
|
+
export declare type ReadableStreamOptions = ValueSchemaOptions;
|
|
5
5
|
export declare function readableStream(options?: ReadableStreamOptions): Schema<ReadableStream>;
|
|
6
6
|
export declare function ReadableStreamProperty(options?: ReadableStreamOptions): Decorator<'property' | 'accessor'>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { OneOrMany, Record, TypedOmit } from
|
|
1
|
+
import type { OneOrMany, Record, TypedOmit } from "../../types";
|
|
2
2
|
import type { SchemaTestable } from '../schema';
|
|
3
3
|
import type { ObjectSchema } from '../types';
|
|
4
|
-
export type RecordOptions<T extends Record = Record> = TypedOmit<ObjectSchema<T>, 'properties' | 'allowUnknownProperties' | 'mask'>;
|
|
4
|
+
export declare type RecordOptions<T extends Record = Record> = TypedOmit<ObjectSchema<T>, 'properties' | 'allowUnknownProperties' | 'mask'>;
|
|
5
5
|
export declare function record<T>(valueType: OneOrMany<SchemaTestable<T>>, options?: RecordOptions): ObjectSchema<Record<any, T>>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { Schema } from '../schema';
|
|
3
3
|
import type { ValueSchemaOptions } from '../types';
|
|
4
|
-
export type RegExpSchemaOptions = ValueSchemaOptions;
|
|
4
|
+
export declare type RegExpSchemaOptions = ValueSchemaOptions;
|
|
5
5
|
export declare function regexp(options?: RegExpSchemaOptions): Schema<RegExp>;
|
|
6
6
|
export declare function RegExpProperty(options?: RegExpSchemaOptions): Decorator<'property' | 'accessor'>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { ValueSchema, ValueSchemaOptions } from '../types';
|
|
3
|
-
export type StringOptions = ValueSchemaOptions & {
|
|
3
|
+
export declare type StringOptions = ValueSchemaOptions & {
|
|
4
4
|
/** trim */
|
|
5
5
|
trim?: boolean;
|
|
6
6
|
/** lowercase */
|
package/schema/schemas/string.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.StringProperty = exports.string = void 0;
|
|
5
|
-
const array_1 = require("
|
|
6
|
-
const type_guards_1 = require("
|
|
5
|
+
const array_1 = require("../../utils/array/array");
|
|
6
|
+
const type_guards_1 = require("../../utils/type-guards");
|
|
7
7
|
const constraints_1 = require("../constraints");
|
|
8
8
|
const decorators_1 = require("../decorators");
|
|
9
9
|
const transformers_1 = require("../transformers");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"string.js","sourceRoot":"","sources":["../../../source/schema/schemas/string.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD
|
|
1
|
+
{"version":3,"file":"string.js","sourceRoot":"","sources":["../../../source/schema/schemas/string.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,mDAA8C;AAC9C,yDAAgD;AAChD,gDAAqG;AACrG,8CAAwE;AACxE,kDAA8F;AAE9F,oCAAuC;AA4BvC,SAAgB,MAAM,CAAC,UAAyB,EAAE;IAChD,MAAM,gBAAgB,GAA4B,IAAA,eAAO,EAAC,OAAO,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC;IAC1F,MAAM,YAAY,GAA6B,IAAA,eAAO,EAAC,OAAO,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC;IAEnF,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,aAAa,CAAC,EAAE;QACpC,gBAAgB,CAAC,IAAI,CAAC,IAAI,qCAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;KAC3E;IAED,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,aAAa,CAAC,EAAE;QACpC,gBAAgB,CAAC,IAAI,CAAC,IAAI,qCAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;KAC3E;IAED,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,OAAO,CAAC,EAAE;QAC9B,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,YAAY,CAAC,CAAC;QAC9D,gBAAgB,CAAC,IAAI,CAAC,IAAI,+BAAiB,CAAC,OAAO,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC;KAC5E;IAED,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,IAAI,CAAC,EAAE;QAC3B,YAAY,CAAC,IAAI,CAAC,IAAI,8BAAe,EAAE,CAAC,CAAC;KAC1C;IAED,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,SAAS,CAAC,EAAE;QAChC,YAAY,CAAC,IAAI,CAAC,IAAI,mCAAoB,EAAE,CAAC,CAAC;KAC/C;IAED,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,SAAS,CAAC,EAAE;QAChC,YAAY,CAAC,IAAI,CAAC,IAAI,mCAAoB,EAAE,CAAC,CAAC;KAC/C;IAED,OAAO,IAAA,mBAAW,EAAS,MAAM,EAAE;QACjC,GAAG,OAAO;QACV,gBAAgB;QAChB,YAAY;KACb,CAAC,CAAC;AACL,CAAC;AAlCD,wBAkCC;AAED,SAAgB,cAAc,CAAC,OAAuB;IACpD,OAAO,IAAA,oDAAuC,EAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC;AAClE,CAAC;AAFD,wCAEC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { OneOrMany } from
|
|
1
|
+
import type { OneOrMany } from "../../types";
|
|
2
2
|
import type { SchemaTestable } from '../schema';
|
|
3
3
|
import type { GenericTransformFunction } from '../transformers/generic';
|
|
4
4
|
import type { ValueSchema, ValueType } from '../types';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { ValueSchema, ValueSchemaOptions } from '../types';
|
|
3
|
-
export type Uint8ArraySchemaOptions = ValueSchemaOptions & {
|
|
3
|
+
export declare type Uint8ArraySchemaOptions = ValueSchemaOptions & {
|
|
4
4
|
/** Minimum byte length */
|
|
5
5
|
minimumLength?: number;
|
|
6
6
|
/** Maximum byte length */
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Uint8ArrayProperty = exports.uint8Array = void 0;
|
|
5
|
-
const array_1 = require("
|
|
6
|
-
const type_guards_1 = require("
|
|
5
|
+
const array_1 = require("../../utils/array/array");
|
|
6
|
+
const type_guards_1 = require("../../utils/type-guards");
|
|
7
7
|
const uint8_array_coercer_1 = require("../coercers/uint8-array.coercer");
|
|
8
8
|
const maximum_length_1 = require("../constraints/maximum-length");
|
|
9
9
|
const minimum_length_1 = require("../constraints/minimum-length");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uint8-array.js","sourceRoot":"","sources":["../../../source/schema/schemas/uint8-array.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD
|
|
1
|
+
{"version":3,"file":"uint8-array.js","sourceRoot":"","sources":["../../../source/schema/schemas/uint8-array.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,mDAA8C;AAC9C,yDAAgD;AAChD,yEAAoE;AACpE,kEAAwE;AACxE,kEAAwE;AACxE,+CAA8E;AAE9E,oCAAuC;AAUvC,SAAgB,UAAU,CAAC,UAAmC,EAAE;IAC9D,MAAM,QAAQ,GAAyB,IAAA,eAAO,EAAC,OAAO,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC;IACvE,MAAM,gBAAgB,GAA4B,IAAA,eAAO,EAAC,OAAO,CAAC,gBAAgB,IAAI,EAAE,CAAC,CAAC;IAE1F,IAAI,OAAO,CAAC,MAAM,IAAI,IAAI,EAAE;QAC1B,QAAQ,CAAC,IAAI,CAAC,uCAAiB,CAAC,CAAC;KAClC;IAED,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,aAAa,CAAC,EAAE;QACpC,gBAAgB,CAAC,IAAI,CAAC,IAAI,wCAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;KAC3E;IAED,IAAI,IAAA,uBAAS,EAAC,OAAO,CAAC,aAAa,CAAC,EAAE;QACpC,gBAAgB,CAAC,IAAI,CAAC,IAAI,wCAAuB,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC,CAAC;KAC3E;IAED,OAAO,IAAA,mBAAW,EAAC,UAAU,EAAE;QAC7B,GAAG,OAAO;QACV,QAAQ;QACR,gBAAgB;KACjB,CAAC,CAAC;AACL,CAAC;AArBD,gCAqBC;AAED,SAAgB,kBAAkB,CAAC,OAAiC;IAClE,OAAO,IAAA,+CAAuC,EAAC,UAAU,CAAC,OAAO,CAAC,CAAC,CAAC;AACtE,CAAC;AAFD,gDAEC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { SchemaTestable } from '../schema';
|
|
3
3
|
import type { SchemaOutput, ValueSchema, ValueSchemaOptions } from '../types';
|
|
4
|
-
export type UnionOptions = ValueSchemaOptions;
|
|
4
|
+
export declare type UnionOptions = ValueSchemaOptions;
|
|
5
5
|
export declare function union<T extends SchemaTestable[]>(...schemas: [...T]): ValueSchema<SchemaOutput<T[number]>>;
|
|
6
6
|
export declare function union<T extends SchemaTestable[]>(schemas: [...T], options?: UnionOptions): ValueSchema<SchemaOutput<T[number]>>;
|
|
7
7
|
export declare function Union(...schemas: SchemaTestable[]): Decorator<'property' | 'accessor'>;
|
package/schema/schemas/union.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
/* eslint-disable @typescript-eslint/naming-convention */
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.Union = exports.union = void 0;
|
|
5
|
-
const type_guards_1 = require("
|
|
5
|
+
const type_guards_1 = require("../../utils/type-guards");
|
|
6
6
|
const decorators_1 = require("../decorators");
|
|
7
7
|
const types_1 = require("../types");
|
|
8
8
|
function union(...args) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"union.js","sourceRoot":"","sources":["../../../source/schema/schemas/union.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,
|
|
1
|
+
{"version":3,"file":"union.js","sourceRoot":"","sources":["../../../source/schema/schemas/union.ts"],"names":[],"mappings":";AAAA,yDAAyD;;;AAGzD,yDAAsD;AACtD,8CAAwE;AAGxE,oCAAuC;AAMvC,SAAgB,KAAK,CAA6B,GAAG,IAA8C;IACjG,MAAM,OAAO,GAAG,IAAA,qBAAO,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAS,CAAC;IACvD,MAAM,OAAO,GAAG,IAAA,qBAAO,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAiB,CAAC,CAAC,CAAC,SAAS,CAAC;IAEvE,IAAA,oBAAM,EAAC,OAAO,CAAC,MAAM,IAAI,CAAC,EAAE,oCAAoC,CAAC,CAAC;IAClE,OAAO,IAAA,mBAAW,EAAC,OAAO,EAAE,OAAO,CAAC,CAAC;AACvC,CAAC;AAND,sBAMC;AAED,SAAgB,KAAK,CAAC,GAAG,OAAyB;IAChD,OAAO,IAAA,oDAAuC,EAAC,KAAK,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;AACpE,CAAC;AAFD,sBAEC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { ValueSchema, ValueSchemaOptions } from '../types';
|
|
3
|
-
export type UnknownOptions = ValueSchemaOptions;
|
|
3
|
+
export declare type UnknownOptions = ValueSchemaOptions;
|
|
4
4
|
export declare function unknown(options?: UnknownOptions): ValueSchema<unknown>;
|
|
5
5
|
export declare function UnknownProperty(options?: UnknownOptions): Decorator<'property' | 'accessor'>;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
2
|
-
import type { AbstractConstructor, OneOrMany } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
|
+
import type { AbstractConstructor, OneOrMany } from "../../types";
|
|
3
3
|
import type { TransformResult, ValueType } from '../types';
|
|
4
4
|
import { SchemaValueTransformer } from '../types';
|
|
5
|
-
export type GenericTransformFunction<T, O> = (value: T) => TransformResult<O>;
|
|
5
|
+
export declare type GenericTransformFunction<T, O> = (value: T) => TransformResult<O>;
|
|
6
6
|
export declare class GenericTransformer<T, O> extends SchemaValueTransformer<T, O> {
|
|
7
7
|
readonly sourceType?: OneOrMany<ValueType<T>>;
|
|
8
8
|
readonly transformFunction: GenericTransformFunction<T, O>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { TransformResult } from '../types';
|
|
3
3
|
import { SchemaValueTransformer } from '../types';
|
|
4
4
|
export declare class LowercaseTransformer extends SchemaValueTransformer<string, string> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { TransformResult } from '../types';
|
|
3
3
|
import { SchemaValueTransformer } from '../types';
|
|
4
4
|
export declare class TrimTransformer extends SchemaValueTransformer<string, string> {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Decorator } from
|
|
1
|
+
import type { Decorator } from "../../reflection";
|
|
2
2
|
import type { TransformResult } from '../types';
|
|
3
3
|
import { SchemaValueTransformer } from '../types';
|
|
4
4
|
export declare class UppercaseTransformer extends SchemaValueTransformer<string, string> {
|
package/schema/types.d.ts
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import type { JsonPath } from
|
|
2
|
-
import type { AbstractConstructor, OneOrMany, Record, Type, TypedOmit } from
|
|
1
|
+
import type { JsonPath } from "../json-path/json-path";
|
|
2
|
+
import type { AbstractConstructor, OneOrMany, Record, Type, TypedOmit } from "../types";
|
|
3
3
|
import type { NormalizedSchema, Schema, SchemaTestable } from './schema';
|
|
4
4
|
import type { SchemaError } from './schema.error';
|
|
5
5
|
declare const schemaOutputTypeSymbol: unique symbol;
|
|
6
|
-
export type SchemaFactoryFunction<T> = (data: T) => T;
|
|
7
|
-
export type SchemaFactory<T> = {
|
|
6
|
+
export declare type SchemaFactoryFunction<T> = (data: T) => T;
|
|
7
|
+
export declare type SchemaFactory<T> = {
|
|
8
8
|
type: Type<T>;
|
|
9
9
|
builder?: undefined;
|
|
10
10
|
} | {
|
|
11
11
|
type?: undefined;
|
|
12
12
|
builder: SchemaFactoryFunction<T>;
|
|
13
13
|
};
|
|
14
|
-
export type ObjectSchemaProperties<T> = {
|
|
14
|
+
export declare type ObjectSchemaProperties<T> = {
|
|
15
15
|
[K in keyof T]-?: OneOrMany<SchemaTestable<T[K]>>;
|
|
16
16
|
};
|
|
17
|
-
export type NormalizedObjectSchemaProperties<T> = {
|
|
17
|
+
export declare type NormalizedObjectSchemaProperties<T> = {
|
|
18
18
|
[K in keyof T]-?: Schema<T[K]>;
|
|
19
19
|
};
|
|
20
|
-
export type SchemaOutput<T extends SchemaTestable> = T extends ObjectSchema<infer O> ? O : T extends ValueSchema<infer O> ? O : T extends TypeSchema<infer O> ? O : T extends ValueType<infer O> ? NormalizeValueType<O> : never;
|
|
21
|
-
export type TupleSchemaOutput<T extends readonly SchemaTestable[]> = {
|
|
20
|
+
export declare type SchemaOutput<T extends SchemaTestable> = T extends ObjectSchema<infer O> ? O : T extends ValueSchema<infer O> ? O : T extends TypeSchema<infer O> ? O : T extends ValueType<infer O> ? NormalizeValueType<O> : never;
|
|
21
|
+
export declare type TupleSchemaOutput<T extends readonly SchemaTestable[]> = {
|
|
22
22
|
[P in keyof T]: SchemaOutput<T[P]>;
|
|
23
23
|
};
|
|
24
|
-
export type ObjectSchemaOrType<T = any> = ObjectSchema<T> | AbstractConstructor<T>;
|
|
25
|
-
export type ObjectSchema<T = any> = {
|
|
24
|
+
export declare type ObjectSchemaOrType<T = any> = ObjectSchema<T> | AbstractConstructor<T>;
|
|
25
|
+
export declare type ObjectSchema<T = any> = {
|
|
26
26
|
[schemaOutputTypeSymbol]?: T;
|
|
27
27
|
sourceType?: ValueType;
|
|
28
28
|
factory?: SchemaFactory<T>;
|
|
@@ -30,13 +30,13 @@ export type ObjectSchema<T = any> = {
|
|
|
30
30
|
mask?: boolean;
|
|
31
31
|
allowUnknownProperties?: OneOrMany<SchemaTestable>;
|
|
32
32
|
};
|
|
33
|
-
export type TypeSchema<T = any> = {
|
|
33
|
+
export declare type TypeSchema<T = any> = {
|
|
34
34
|
type: ValueType<T>;
|
|
35
35
|
};
|
|
36
|
-
export type NormalizedTypeSchema<T = any> = {
|
|
36
|
+
export declare type NormalizedTypeSchema<T = any> = {
|
|
37
37
|
foo: ResolvedValueType<T>;
|
|
38
38
|
};
|
|
39
|
-
export type ValueSchema<T = unknown> = {
|
|
39
|
+
export declare type ValueSchema<T = unknown> = {
|
|
40
40
|
[schemaOutputTypeSymbol]?: T;
|
|
41
41
|
schema: OneOrMany<SchemaTestable<T>>;
|
|
42
42
|
array?: boolean;
|
|
@@ -50,15 +50,15 @@ export type ValueSchema<T = unknown> = {
|
|
|
50
50
|
arrayConstraints?: OneOrMany<SchemaArrayConstraint>;
|
|
51
51
|
valueConstraints?: OneOrMany<SchemaValueConstraint>;
|
|
52
52
|
};
|
|
53
|
-
export type ValueSchemaOptions = TypedOmit<ValueSchema, 'schema' | typeof schemaOutputTypeSymbol>;
|
|
54
|
-
export type NormalizedObjectSchema<T = any> = {
|
|
53
|
+
export declare type ValueSchemaOptions = TypedOmit<ValueSchema, 'schema' | typeof schemaOutputTypeSymbol>;
|
|
54
|
+
export declare type NormalizedObjectSchema<T = any> = {
|
|
55
55
|
[schemaOutputTypeSymbol]?: T;
|
|
56
56
|
factory?: SchemaFactory<T>;
|
|
57
57
|
properties: NormalizedObjectSchemaProperties<T>;
|
|
58
58
|
mask?: boolean;
|
|
59
59
|
allowUnknownProperties: Set<Schema>;
|
|
60
60
|
};
|
|
61
|
-
export type NormalizedValueSchema<T = any> = {
|
|
61
|
+
export declare type NormalizedValueSchema<T = any> = {
|
|
62
62
|
[schemaOutputTypeSymbol]?: T;
|
|
63
63
|
schema: Set<Schema<T>>;
|
|
64
64
|
array: boolean;
|
|
@@ -70,21 +70,21 @@ export type NormalizedValueSchema<T = any> = {
|
|
|
70
70
|
arrayConstraints: readonly SchemaArrayConstraint[];
|
|
71
71
|
valueConstraints: readonly SchemaValueConstraint[];
|
|
72
72
|
};
|
|
73
|
-
export type SchemaContext = {
|
|
73
|
+
export declare type SchemaContext = {
|
|
74
74
|
schema: NormalizedSchema;
|
|
75
75
|
options: SchemaTestOptions;
|
|
76
76
|
};
|
|
77
|
-
export type ConstraintContext = SchemaContext;
|
|
78
|
-
export type TransformerContext = SchemaContext;
|
|
79
|
-
export type CoercerContext = SchemaContext;
|
|
80
|
-
export type NormalizeValueType<T> = T extends String ? string : T extends Number ? number : T extends Boolean ? boolean : T extends BigInt ? bigint : T extends Symbol ? symbol : T extends 'undefined' ? undefined : T extends 'null' ? null : T extends 'any' ? any : T;
|
|
81
|
-
export type NormalizeToValueType<T> = T extends string | String ? typeof String : T extends number ? typeof Number : T extends boolean ? typeof Boolean : T extends bigint ? typeof BigInt : T extends symbol ? typeof Symbol : T extends undefined ? 'undefined' : T extends null ? 'null' : T extends any ? 'any' : never;
|
|
82
|
-
export type ValueType<T = any> = AbstractConstructor<T> | NormalizeToValueType<T> | DeferredValueType<T>;
|
|
83
|
-
export type DeferredValueType<T = any> = {
|
|
77
|
+
export declare type ConstraintContext = SchemaContext;
|
|
78
|
+
export declare type TransformerContext = SchemaContext;
|
|
79
|
+
export declare type CoercerContext = SchemaContext;
|
|
80
|
+
export declare type NormalizeValueType<T> = T extends String ? string : T extends Number ? number : T extends Boolean ? boolean : T extends BigInt ? bigint : T extends Symbol ? symbol : T extends 'undefined' ? undefined : T extends 'null' ? null : T extends 'any' ? any : T;
|
|
81
|
+
export declare type NormalizeToValueType<T> = T extends string | String ? typeof String : T extends number ? typeof Number : T extends boolean ? typeof Boolean : T extends bigint ? typeof BigInt : T extends symbol ? typeof Symbol : T extends undefined ? 'undefined' : T extends null ? 'null' : T extends any ? 'any' : never;
|
|
82
|
+
export declare type ValueType<T = any> = AbstractConstructor<T> | NormalizeToValueType<T> | DeferredValueType<T>;
|
|
83
|
+
export declare type DeferredValueType<T = any> = {
|
|
84
84
|
deferred: () => ValueType<T>;
|
|
85
85
|
};
|
|
86
|
-
export type ResolvedValueType<T = any> = Exclude<ValueType<T>, DeferredValueType>;
|
|
87
|
-
export type Coercible = {
|
|
86
|
+
export declare type ResolvedValueType<T = any> = Exclude<ValueType<T>, DeferredValueType>;
|
|
87
|
+
export declare type Coercible = {
|
|
88
88
|
coerce?: boolean;
|
|
89
89
|
};
|
|
90
90
|
export declare const primitiveConstructors: ValueType[];
|
|
@@ -92,7 +92,7 @@ export declare const primitiveConstructorSet: Set<ValueType<any>>;
|
|
|
92
92
|
export declare abstract class SchemaArrayConstraint {
|
|
93
93
|
abstract validate(value: readonly unknown[], path: JsonPath, context: ConstraintContext): ConstraintResult;
|
|
94
94
|
}
|
|
95
|
-
export type OptionKeys<T extends Record> = readonly (keyof T)[];
|
|
95
|
+
export declare type OptionKeys<T extends Record> = readonly (keyof T)[];
|
|
96
96
|
export declare abstract class SchemaValueConstraint {
|
|
97
97
|
abstract readonly suitableTypes: OneOrMany<ValueType>;
|
|
98
98
|
abstract readonly expects: OneOrMany<string>;
|
|
@@ -107,7 +107,7 @@ export declare abstract class SchemaValueCoercer {
|
|
|
107
107
|
abstract readonly targetType: ValueType;
|
|
108
108
|
abstract coerce(value: unknown, path: JsonPath, context: CoercerContext): CoerceResult;
|
|
109
109
|
}
|
|
110
|
-
export type SchemaTestOptions = {
|
|
110
|
+
export declare type SchemaTestOptions = {
|
|
111
111
|
/**
|
|
112
112
|
* Try to convert wrong input into desired output.
|
|
113
113
|
* Can be specified on definition and validation. If specified on both, definition has higher priority
|
|
@@ -123,7 +123,7 @@ export type SchemaTestOptions = {
|
|
|
123
123
|
*/
|
|
124
124
|
fastErrors?: boolean;
|
|
125
125
|
};
|
|
126
|
-
export type SchemaTestResult<T> = {
|
|
126
|
+
export declare type SchemaTestResult<T> = {
|
|
127
127
|
valid: true;
|
|
128
128
|
value: T;
|
|
129
129
|
error?: undefined;
|
|
@@ -132,14 +132,14 @@ export type SchemaTestResult<T> = {
|
|
|
132
132
|
value?: undefined;
|
|
133
133
|
error: SchemaError;
|
|
134
134
|
};
|
|
135
|
-
export type ConstraintResult = {
|
|
135
|
+
export declare type ConstraintResult = {
|
|
136
136
|
valid: true;
|
|
137
137
|
error?: undefined;
|
|
138
138
|
} | {
|
|
139
139
|
valid: false;
|
|
140
140
|
error: SchemaError;
|
|
141
141
|
};
|
|
142
|
-
export type CoerceResult = {
|
|
142
|
+
export declare type CoerceResult = {
|
|
143
143
|
success: true;
|
|
144
144
|
value: any;
|
|
145
145
|
error?: undefined;
|
|
@@ -149,10 +149,10 @@ export type CoerceResult = {
|
|
|
149
149
|
error: SchemaError;
|
|
150
150
|
};
|
|
151
151
|
export declare const transformErrorResultSymbol: unique symbol;
|
|
152
|
-
export type TransformErrorResult = {
|
|
152
|
+
export declare type TransformErrorResult = {
|
|
153
153
|
[transformErrorResultSymbol]: SchemaError;
|
|
154
154
|
};
|
|
155
|
-
export type TransformResult<T> = T | TransformErrorResult;
|
|
155
|
+
export declare type TransformResult<T> = T | TransformErrorResult;
|
|
156
156
|
export declare function transformErrorResult(error: SchemaError): TransformErrorResult;
|
|
157
157
|
export declare function isTransformErrorResult(value: any): value is TransformErrorResult;
|
|
158
158
|
export declare function objectSchemaProperties<T extends Record>(properties: ObjectSchemaProperties<T>): ObjectSchemaProperties<T>;
|