@tstdl/base 0.81.35 → 0.82.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/client/client.d.ts +3 -3
- package/api/default-error-handlers.d.ts +1 -1
- package/api/response.d.ts +8 -8
- package/api/server/api-controller.d.ts +1 -1
- package/api/server/gateway.d.ts +9 -9
- package/api/server/middlewares/cors.middleware.d.ts +1 -1
- package/api/server/module.d.ts +1 -1
- package/api/types.d.ts +30 -30
- package/api/utils.d.ts +1 -1
- package/api/utils.js +3 -1
- package/api/utils.js.map +1 -1
- package/authentication/authentication-credentials.service.d.ts +6 -0
- package/authentication/authentication-credentials.service.js +17 -0
- package/authentication/authentication-credentials.service.js.map +1 -0
- package/authentication/authentication-session.repository.d.ts +6 -0
- package/authentication/authentication-session.repository.js +18 -0
- package/authentication/authentication-session.repository.js.map +1 -0
- package/authentication/authentication-token-payload.provider.d.ts +3 -0
- package/authentication/authentication-token-payload.provider.js +17 -0
- package/authentication/authentication-token-payload.provider.js.map +1 -0
- package/authentication/authentication.service.d.ts +42 -0
- package/authentication/authentication.service.js +133 -0
- package/authentication/authentication.service.js.map +1 -0
- package/authentication/models/authentication-credentials.model.d.ts +11 -0
- package/authentication/models/authentication-credentials.model.js +44 -0
- package/authentication/models/authentication-credentials.model.js.map +1 -0
- package/authentication/models/authentication-session.model.d.ts +14 -0
- package/authentication/models/authentication-session.model.js +59 -0
- package/authentication/models/authentication-session.model.js.map +1 -0
- package/authentication/models/index.d.ts +2 -0
- package/authentication/models/index.js +19 -0
- package/authentication/models/index.js.map +1 -0
- package/authentication/tokens.d.ts +2 -0
- package/authentication/tokens.js +6 -0
- package/authentication/tokens.js.map +1 -0
- package/collections/keyed-set.d.ts +1 -1
- package/collections/observable/observable-collection.d.ts +1 -1
- package/collections/observable/observable-list.d.ts +2 -2
- package/container/container.d.ts +3 -3
- package/container/container.js +3 -3
- package/container/container.js.map +1 -1
- package/container/decorators.d.ts +3 -3
- package/container/decorators.js +0 -1
- package/container/decorators.js.map +1 -1
- package/container/interfaces.d.ts +1 -1
- package/container/provider.d.ts +6 -6
- package/container/resolve-chain.d.ts +2 -2
- package/container/resolve-chain.js +1 -1
- package/container/resolve-chain.js.map +1 -1
- package/container/token.d.ts +3 -3
- package/container/type-info.d.ts +1 -1
- package/container/types.d.ts +4 -4
- package/core.d.ts +1 -1
- package/data-structures/linked-list.d.ts +1 -1
- package/data-structures/multi-key-map.d.ts +2 -2
- package/data-structures/sorted-array-list.d.ts +1 -1
- package/database/entity-repository.d.ts +2 -2
- package/database/entity.d.ts +3 -3
- package/database/module.d.ts +1 -1
- package/database/mongo/classes.d.ts +3 -3
- package/database/mongo/model/document.d.ts +3 -3
- package/database/mongo/module.d.ts +1 -1
- package/database/mongo/mongo-base.repository.d.ts +11 -11
- package/database/mongo/mongo-bulk.d.ts +1 -1
- package/database/mongo/mongo-entity-repository.d.ts +7 -7
- package/database/mongo/types.d.ts +16 -16
- package/database/query.d.ts +38 -38
- package/disposable/async-disposer.d.ts +3 -3
- package/distributed-loop/distributed-loop.d.ts +2 -2
- package/error/custom.error.d.ts +1 -1
- package/http/client/adapters/undici-http-client.adapter.d.ts +1 -1
- package/http/client/http-client-request.d.ts +5 -5
- package/http/client/http-client-response.d.ts +2 -2
- package/http/client/http-client.d.ts +5 -5
- package/http/http-body.d.ts +3 -1
- package/http/http-body.js +18 -12
- 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-query.d.ts +2 -2
- package/http/http-url-parameters.d.ts +2 -2
- package/http/http-value-map.d.ts +1 -1
- package/http/server/http-server-request.d.ts +1 -1
- package/http/server/http-server-response.d.ts +1 -1
- package/http/server/http-server.d.ts +1 -1
- package/http/server/node/node-http-server.d.ts +1 -1
- package/http/types.d.ts +5 -5
- package/http/utils.d.ts +3 -3
- package/image-service/imgproxy/imgproxy-image-service.d.ts +1 -1
- package/json-path/json-path.d.ts +4 -4
- package/key-value-store/key-value.store.d.ts +1 -1
- package/key-value-store/mongo/module.d.ts +1 -1
- package/key-value-store/mongo/mongo-key-value.model.d.ts +1 -1
- package/lock/lock.d.ts +4 -4
- package/lock/mongo/model.d.ts +1 -1
- package/lock/mongo/module.d.ts +1 -1
- package/lock/provider.d.ts +1 -1
- package/logger/logger.d.ts +6 -6
- package/mail/mail.client.d.ts +1 -1
- package/mail/mail.service.d.ts +3 -1
- package/mail/mail.service.js +11 -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 -1
- package/mail/models/mail-log.model.d.ts +2 -2
- package/mail/models/mail-send-result.model.d.ts +1 -1
- package/mail/models/mail-template.model.d.ts +1 -1
- package/mail/module.d.ts +4 -2
- package/mail/module.js +6 -2
- package/mail/module.js.map +1 -1
- package/mail/repositories/mongo-mail-log.repository.d.ts +2 -2
- package/mail/tokens.d.ts +1 -0
- package/mail/tokens.js +2 -1
- package/mail/tokens.js.map +1 -1
- package/message-bus/local/types.d.ts +1 -1
- package/message-bus/message-bus.d.ts +1 -1
- package/migration/migration-state.d.ts +2 -2
- package/migration/migrator.d.ts +4 -4
- package/migration/mongo/module.d.ts +1 -1
- package/module/module-metric-reporter.d.ts +2 -2
- package/module/module.d.ts +1 -1
- package/module/modules/function.module.d.ts +1 -1
- package/module/modules/web-server.module.d.ts +1 -1
- package/notification/api.d.ts +3 -6
- package/notification/api.js +2 -5
- package/notification/api.js.map +1 -1
- package/notification/models/index.d.ts +2 -0
- package/notification/models/index.js +19 -0
- package/notification/models/index.js.map +1 -0
- package/notification/models/notification-channel-job.model.d.ts +3 -0
- package/notification/models/notification-channel-job.model.js +3 -0
- package/notification/models/notification-channel-job.model.js.map +1 -0
- package/notification/models/notification.model.d.ts +27 -0
- package/notification/{model.js → models/notification.model.js} +28 -16
- package/notification/models/notification.model.js.map +1 -0
- package/notification/module.d.ts +1 -1
- package/notification/notification-channel.service.d.ts +5 -0
- package/notification/notification-channel.service.js +7 -0
- package/notification/notification-channel.service.js.map +1 -0
- package/notification/notification.service.d.ts +8 -0
- package/notification/notification.service.js +40 -0
- package/notification/notification.service.js.map +1 -0
- package/object-storage/object-storage.d.ts +2 -2
- package/object-storage/object.d.ts +1 -1
- package/object-storage/s3/s3.object-storage-provider.d.ts +1 -1
- package/openid-connect/mongo-oidc-state.repository.d.ts +1 -1
- package/openid-connect/oidc-configuration.service.d.ts +1 -1
- package/openid-connect/oidc-state.model.d.ts +2 -2
- package/openid-connect/oidc.service-model.d.ts +8 -8
- package/orm/decorators.d.ts +26 -0
- package/orm/decorators.js +170 -0
- package/orm/decorators.js.map +1 -1
- package/orm/entity-definition.model.d.ts +51 -0
- package/orm/entity-definition.model.js +27 -0
- package/orm/entity-definition.model.js.map +1 -0
- package/orm/index.d.ts +1 -0
- package/orm/index.js +18 -0
- package/orm/index.js.map +1 -0
- package/orm/models/entity.d.ts +22 -0
- package/orm/models/entity.js +87 -0
- package/orm/models/entity.js.map +1 -0
- package/orm/models/index.d.ts +1 -0
- package/orm/models/index.js +18 -0
- package/orm/models/index.js.map +1 -0
- package/orm/repository/mongo/classes.d.ts +25 -0
- package/orm/repository/mongo/classes.js +33 -0
- package/orm/repository/mongo/classes.js.map +1 -0
- package/orm/repository/mongo/module.d.ts +8 -0
- package/orm/repository/mongo/module.js +88 -0
- package/orm/repository/mongo/module.js.map +1 -0
- package/orm/repository/mongo/mongo-repository.d.ts +11 -0
- package/orm/repository/mongo/mongo-repository.js +55 -0
- package/orm/repository/mongo/mongo-repository.js.map +1 -0
- package/orm/repository/mongo/mongo-transaction.d.ts +10 -0
- package/orm/repository/mongo/mongo-transaction.js +28 -0
- package/orm/repository/mongo/mongo-transaction.js.map +1 -0
- package/orm/repository/repository.d.ts +75 -0
- package/orm/repository/repository.js +182 -0
- package/orm/repository/repository.js.map +1 -0
- package/orm/repository/transaction.d.ts +26 -0
- package/orm/repository/transaction.js +65 -0
- package/orm/repository/transaction.js.map +1 -0
- package/orm/{types.d.ts → types/definition.d.ts} +5 -5
- package/orm/{types.js → types/definition.js} +8 -8
- package/orm/types/definition.js.map +1 -0
- package/orm/types/index.d.ts +3 -0
- package/orm/types/index.js +20 -0
- package/orm/types/index.js.map +1 -0
- package/orm/types/options.d.ts +36 -0
- package/orm/types/options.js +5 -0
- package/orm/types/options.js.map +1 -0
- package/orm/types/query.d.ts +110 -0
- package/orm/types/query.js +10 -0
- package/orm/types/query.js.map +1 -0
- package/package.json +5 -5
- package/pdf/pdf.service.d.ts +3 -3
- package/pool/pool.d.ts +4 -4
- package/promise/cancelable-promise.d.ts +1 -1
- package/promise/lazy-promise.d.ts +1 -1
- package/queue/mongo/job.d.ts +2 -2
- package/queue/mongo/queue.js +2 -2
- package/queue/mongo/queue.js.map +1 -1
- package/queue/queue.d.ts +11 -6
- package/queue/queue.js +2 -1
- package/queue/queue.js.map +1 -1
- package/reflection/decorator-data.js +2 -1
- package/reflection/decorator-data.js.map +1 -1
- package/reflection/registry.d.ts +18 -17
- package/reflection/registry.js +25 -10
- package/reflection/registry.js.map +1 -1
- package/reflection/types.d.ts +34 -34
- package/reflection/utils.d.ts +8 -8
- package/reflection/utils.js +6 -6
- package/reflection/utils.js.map +1 -1
- package/rpc/endpoints/message-port.rpc-endpoint.d.ts +3 -3
- package/rpc/model.d.ts +22 -22
- package/rpc/rpc.d.ts +1 -1
- package/rxjs/intersection-observer.d.ts +1 -1
- package/rxjs/mutation-observer.d.ts +1 -1
- package/rxjs/performance-observer.d.ts +1 -1
- package/rxjs/resize-observer.d.ts +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/maximum-length.js +2 -2
- package/schema/array-constraints/maximum-length.js.map +1 -1
- package/schema/array-constraints/minimum-length.d.ts +2 -2
- package/schema/array-constraints/minimum-length.js +2 -2
- package/schema/array-constraints/minimum-length.js.map +1 -1
- package/schema/constraints/enumeration.d.ts +4 -4
- package/schema/constraints/enumeration.js +5 -5
- package/schema/constraints/enumeration.js.map +1 -1
- package/schema/constraints/generic.d.ts +4 -4
- package/schema/constraints/generic.js +2 -2
- package/schema/constraints/generic.js.map +1 -1
- package/schema/constraints/integer.d.ts +2 -2
- package/schema/constraints/integer.js +3 -2
- package/schema/constraints/integer.js.map +1 -1
- package/schema/constraints/length.d.ts +1 -1
- package/schema/constraints/literal.d.ts +2 -2
- package/schema/constraints/literal.js +2 -2
- package/schema/constraints/literal.js.map +1 -1
- package/schema/constraints/maximum-date.d.ts +2 -2
- package/schema/constraints/maximum-date.js +3 -2
- package/schema/constraints/maximum-date.js.map +1 -1
- package/schema/constraints/maximum-length.d.ts +2 -2
- package/schema/constraints/maximum-length.js +2 -2
- package/schema/constraints/maximum-length.js.map +1 -1
- package/schema/constraints/maximum.d.ts +2 -2
- package/schema/constraints/maximum.js +3 -2
- package/schema/constraints/maximum.js.map +1 -1
- package/schema/constraints/minimum-date.d.ts +2 -2
- package/schema/constraints/minimum-date.js +3 -2
- package/schema/constraints/minimum-date.js.map +1 -1
- package/schema/constraints/minimum-length.d.ts +2 -2
- package/schema/constraints/minimum-length.js +2 -2
- package/schema/constraints/minimum-length.js.map +1 -1
- package/schema/constraints/minimum.d.ts +2 -2
- package/schema/constraints/minimum.js +3 -2
- package/schema/constraints/minimum.js.map +1 -1
- package/schema/constraints/pattern.d.ts +2 -2
- package/schema/constraints/pattern.js +3 -2
- package/schema/constraints/pattern.js.map +1 -1
- package/schema/decorators/types.d.ts +3 -3
- package/schema/decorators/utils.d.ts +4 -1
- package/schema/decorators/utils.js +1 -1
- package/schema/decorators/utils.js.map +1 -1
- package/schema/schema.d.ts +4 -4
- package/schema/schema.error.d.ts +1 -1
- package/schema/schema.js +10 -13
- package/schema/schema.js.map +1 -1
- package/schema/schemas/any.d.ts +1 -1
- package/schema/schemas/array.d.ts +2 -2
- package/schema/schemas/array.js +2 -2
- package/schema/schemas/array.js.map +1 -1
- package/schema/schemas/boolean.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/enumeration.d.ts +2 -2
- package/schema/schemas/enumeration.js +2 -2
- 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 +2 -2
- package/schema/schemas/literal.js.map +1 -1
- package/schema/schemas/nullable.d.ts +1 -1
- 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 +1 -1
- package/schema/schemas/omit.d.ts +2 -2
- package/schema/schemas/omit.js.map +1 -1
- package/schema/schemas/one-or-many.d.ts +2 -2
- package/schema/schemas/optional.d.ts +1 -1
- package/schema/schemas/readable-stream.d.ts +1 -1
- package/schema/schemas/record.d.ts +1 -1
- package/schema/schemas/regexp.d.ts +1 -1
- package/schema/schemas/string.d.ts +2 -2
- package/schema/schemas/string.js +3 -3
- package/schema/schemas/string.js.map +1 -1
- package/schema/schemas/uint8-array.d.ts +2 -2
- package/schema/schemas/uint8-array.js +3 -3
- package/schema/schemas/uint8-array.js.map +1 -1
- package/schema/schemas/union.d.ts +1 -1
- package/schema/schemas/unknown.d.ts +1 -1
- package/schema/transformers/generic.d.ts +1 -1
- package/schema/types/index.d.ts +5 -0
- package/schema/types/index.js +22 -0
- package/schema/types/index.js.map +1 -0
- package/schema/types/schema-array-constraint.d.ts +5 -0
- package/schema/types/schema-array-constraint.js +7 -0
- package/schema/types/schema-array-constraint.js.map +1 -0
- package/schema/types/schema-value-coercer.d.ts +8 -0
- package/schema/types/schema-value-coercer.js +7 -0
- package/schema/types/schema-value-coercer.js.map +1 -0
- package/schema/types/schema-value-constraint.d.ts +8 -0
- package/schema/types/schema-value-constraint.js +7 -0
- package/schema/types/schema-value-constraint.js.map +1 -0
- package/schema/types/schema-value-transformer.d.ts +7 -0
- package/schema/types/schema-value-transformer.js +7 -0
- package/schema/types/schema-value-transformer.js.map +1 -0
- package/schema/{types.d.ts → types/types.d.ts} +47 -57
- package/schema/types/types.js +174 -0
- package/schema/types/types.js.map +1 -0
- package/schema/utils/schema.js +1 -1
- package/schema/utils/schema.js.map +1 -1
- package/schema/utils/value-type.d.ts +1 -1
- package/schema/utils/value-type.js +1 -1
- package/schema/utils/value-type.js.map +1 -1
- package/search-index/elastic/config.d.ts +1 -1
- package/search-index/elastic/model/elastic-query.d.ts +15 -15
- package/search-index/elastic/model/index-mapping.d.ts +14 -14
- package/search-index/elastic/model/sort.d.ts +3 -3
- package/search-index/elastic/module.d.ts +1 -1
- package/search-index/search-index.d.ts +1 -1
- package/search-index/search-result.d.ts +2 -2
- 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/set.d.ts +1 -1
- package/serializer/serializable.d.ts +6 -6
- package/serializer/serializer.d.ts +1 -1
- package/serializer/types.d.ts +15 -15
- package/sse/server-sent-events.d.ts +3 -3
- package/tailwind/theme-adapter.d.ts +1 -1
- package/templates/module.d.ts +1 -1
- package/templates/providers/file.provider-template.d.ts +2 -2
- package/templates/providers/file.provider-template.js +2 -1
- package/templates/providers/file.provider-template.js.map +1 -1
- package/templates/renderers/handlebars.template-renderer.d.ts +9 -9
- package/templates/renderers/mjml.template-renderer.d.ts +3 -3
- package/templates/renderers/string.template-renderer.d.ts +1 -1
- package/templates/resolvers/file.template-resolver.d.ts +2 -2
- package/templates/template.model.d.ts +1 -1
- package/templates/template.renderer.d.ts +4 -4
- package/templates/template.service.d.ts +1 -1
- package/text/dynamic-text.model.d.ts +1 -1
- package/text/localizable-text.model.d.ts +1 -1
- package/text/localization.service.d.ts +11 -11
- package/theme/theme-service.d.ts +6 -6
- package/threading/thread-pool.d.ts +1 -1
- package/threading/thread-worker.d.ts +1 -1
- package/types/geo-json.d.ts +12 -12
- package/types.d.ts +91 -91
- package/utils/any-iterable-iterator.d.ts +3 -3
- package/utils/array/array.d.ts +14 -1
- package/utils/array/array.js +16 -2
- package/utils/array/array.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/benchmark.d.ts +1 -1
- package/utils/binary-search.d.ts +1 -1
- package/utils/binary.js.map +1 -1
- package/utils/cancellation-token.d.ts +1 -1
- package/utils/compression.d.ts +1 -1
- package/utils/cryptography.d.ts +11 -11
- package/utils/date-time.d.ts +8 -7
- package/utils/date-time.js +6 -2
- package/utils/date-time.js.map +1 -1
- package/utils/equals.d.ts +3 -3
- package/utils/factory-map.d.ts +1 -1
- package/utils/format-error.d.ts +1 -1
- package/utils/function/memoize.d.ts +1 -1
- package/utils/helpers.d.ts +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/merge.d.ts +1 -1
- package/utils/middleware.d.ts +9 -9
- package/utils/moving-metric.d.ts +1 -1
- package/utils/object/decycle.d.ts +1 -1
- package/utils/object/dereference.d.ts +1 -1
- package/utils/object/forward-ref.d.ts +2 -2
- package/utils/object/lazy-property.d.ts +5 -5
- package/utils/object/merge.d.ts +1 -1
- package/utils/object/object.js +1 -2
- package/utils/object/object.js.map +1 -1
- package/utils/object/property-name.d.ts +5 -5
- package/utils/patch-worker.d.ts +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/singleton.d.ts +2 -2
- package/utils/sort.d.ts +2 -2
- package/utils/stream/stream-helper-types.d.ts +5 -5
- package/utils/type-guards.d.ts +3 -3
- package/utils/url-builder.d.ts +4 -4
- package/web-types.d.ts +4 -4
- package/notification/model.d.ts +0 -18
- package/notification/model.js.map +0 -1
- package/orm/mongo/mongo-repository.d.ts +0 -2
- package/orm/mongo/mongo-repository.js +0 -7
- package/orm/mongo/mongo-repository.js.map +0 -1
- package/orm/types.js.map +0 -1
- package/schema/types.js +0 -102
- package/schema/types.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type Context<T> = {
|
|
2
2
|
item: T;
|
|
3
3
|
readonly index: number;
|
|
4
4
|
};
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
5
|
+
export type TypePredicate<T, TPredicate extends T> = (item: T, index: number) => item is TPredicate;
|
|
6
|
+
export type Predicate<T> = (item: T, index: number) => boolean;
|
|
7
|
+
export type IteratorFunction<TIn, TOut> = (item: TIn, index: number) => TOut;
|
|
8
|
+
export type Reducer<T, U> = (previous: U, current: T, index: number) => U;
|
|
9
|
+
export type IterableItemMetadata<T> = {
|
|
10
10
|
index: number;
|
|
11
11
|
isFirst: boolean;
|
|
12
12
|
isLast: boolean;
|
package/utils/jwt.d.ts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import type { OneOrMany, StringMap } from '../types';
|
|
2
2
|
import type { Key } from './cryptography';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type JwtTokenAlgorithm = 'HS256' | 'HS384' | 'HS512';
|
|
4
|
+
export type JwtTokenHeader<T extends StringMap = StringMap> = {
|
|
5
5
|
alg: JwtTokenAlgorithm;
|
|
6
6
|
typ: 'JWT';
|
|
7
7
|
} & T;
|
|
8
|
-
export
|
|
8
|
+
export type JwtToken<TPayload = StringMap, THeader extends JwtTokenHeader = JwtTokenHeader> = {
|
|
9
9
|
readonly header: THeader;
|
|
10
10
|
readonly payload: TPayload;
|
|
11
11
|
};
|
|
12
|
-
export
|
|
12
|
+
export type JwtTokenParseResult<T extends JwtToken = JwtToken> = {
|
|
13
13
|
raw: string;
|
|
14
14
|
token: T;
|
|
15
15
|
encoded: {
|
package/utils/math.d.ts
CHANGED
package/utils/merge.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Record } from "../types";
|
|
2
2
|
import type { Merge } from 'type-fest';
|
|
3
|
-
|
|
3
|
+
type BaseType = Record | any[] | Map<any, any> | Set<any>;
|
|
4
4
|
export declare function merge<A extends BaseType, B extends BaseType>(a: A | undefined, b: B | undefined): A extends (infer T)[] ? B extends (infer U)[] ? (T | U)[] : never : A extends Map<infer K, infer V> ? B extends Map<infer K2, infer V2> ? Map<K | K2, V | V2> : never : A extends Set<infer T> ? B extends Set<infer U> ? Set<T | U> : never : A extends Record ? B extends Record ? Merge<A, B> : never : never;
|
|
5
5
|
export {};
|
package/utils/middleware.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
1
|
+
export type ComposedMiddleware<TIn, TOut, Context = unknown> = (value: TIn, context: Context) => TOut;
|
|
2
|
+
export type MiddlewareHandler<TIn, TOut, Context = unknown> = (value: TIn, context: Context) => TOut;
|
|
3
|
+
export type MiddlewareNext<TIn, TOut> = (value: TIn) => TOut;
|
|
4
|
+
export type Middleware<TIn, TOut, Context = unknown> = (value: TIn, next: MiddlewareNext<TIn, TOut>, context: Context) => TOut | TOut;
|
|
5
|
+
export type ComposedAsyncMiddleware<TIn, TOut, Context = unknown> = (value: TIn, context: Context) => Promise<TOut>;
|
|
6
|
+
export type AsyncMiddlewareHandler<TIn, TOut, Context = unknown> = (value: TIn, context: Context) => TOut | Promise<TOut>;
|
|
7
|
+
export type AsyncMiddlewareNext<TIn, TOut> = (value: TIn) => TOut | Promise<TOut>;
|
|
8
|
+
export type AsyncMiddleware<TIn, TOut, Context = unknown> = (value: TIn, next: AsyncMiddlewareNext<TIn, TOut>, context: Context) => TOut | Promise<TOut>;
|
|
9
|
+
export type MiddlewareOptions = {
|
|
10
10
|
allowMultipleNextCalls?: boolean;
|
|
11
11
|
};
|
|
12
12
|
export declare function composeMiddleware<TIn, TOut, Context = unknown>(middlewares: Middleware<TIn, TOut, Context>[], handler: MiddlewareHandler<TIn, TOut, Context>, options?: MiddlewareOptions): ComposedMiddleware<TIn, TOut, Context>;
|
package/utils/moving-metric.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ export declare enum MetricAggregation {
|
|
|
9
9
|
Rate = 7,
|
|
10
10
|
RateBySum = 8
|
|
11
11
|
}
|
|
12
|
-
export
|
|
12
|
+
export type MetricAggregationOptions<T extends MetricAggregation> = T extends MetricAggregation.Quantile ? {
|
|
13
13
|
scalar: number;
|
|
14
14
|
} : never;
|
|
15
15
|
export declare class MovingMetric {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { JsonPathInput } from "../../json-path";
|
|
2
|
-
export
|
|
2
|
+
export type CompiledDereferencer = (object: object) => unknown;
|
|
3
3
|
/**
|
|
4
4
|
* compiles a dereferencer for a specific reference
|
|
5
5
|
* @param object object to dereference
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
declare const isForwardRef: unique symbol;
|
|
2
|
-
export
|
|
2
|
+
export type ForwardRefOptions<T extends object = object> = {
|
|
3
3
|
reference?: T;
|
|
4
4
|
initializer?: () => T;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type ForwardRef<T extends object = object> = T & {
|
|
7
7
|
[isForwardRef]: true;
|
|
8
8
|
};
|
|
9
9
|
export declare const ForwardRef: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { IfUnknown } from "../../types";
|
|
2
2
|
declare const lazyObjectValueSymbol: unique symbol;
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type LazyPropertyInitializer<T, K extends keyof T> = (this: T, key: K) => T[K];
|
|
4
|
+
export type LazyPropertyObjectDefinition<T extends object, P extends keyof T> = LazyPropertyDescriptor & {
|
|
5
5
|
/** define property with existing value */
|
|
6
6
|
value?: T[P];
|
|
7
7
|
/** define property with getter */
|
|
@@ -11,12 +11,12 @@ export declare type LazyPropertyObjectDefinition<T extends object, P extends key
|
|
|
11
11
|
/** lazily define property with initializer */
|
|
12
12
|
initializer?: LazyPropertyInitializer<T, P>;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type LazyObjectValue<T> = {
|
|
15
15
|
[lazyObjectValueSymbol]: typeof lazyObjectValueSymbol;
|
|
16
16
|
value: T;
|
|
17
17
|
};
|
|
18
|
-
export
|
|
19
|
-
export
|
|
18
|
+
export type LazyInitializerItem<T extends object, P extends keyof T> = Exclude<IfUnknown<T[P], never, T[P]>, Function | object> | LazyPropertyInitializer<T, P> | LazyPropertyObjectDefinition<T, P> | LazyObjectValue<T[P]>;
|
|
19
|
+
export type LazyPropertyDescriptor = {
|
|
20
20
|
/**
|
|
21
21
|
* true if the type of this property descriptor may be changed and if the property may be deleted from the corresponding object
|
|
22
22
|
* @default true
|
package/utils/object/merge.d.ts
CHANGED
package/utils/object/object.js
CHANGED
|
@@ -6,8 +6,7 @@ const map_1 = require("../async-iterable-helpers/map");
|
|
|
6
6
|
const to_array_1 = require("../async-iterable-helpers/to-array");
|
|
7
7
|
const type_guards_1 = require("../type-guards");
|
|
8
8
|
function hasOwnProperty(obj, key) {
|
|
9
|
-
|
|
10
|
-
return Object.prototype.hasOwnProperty.call(obj, key);
|
|
9
|
+
return Object.hasOwn(obj, key);
|
|
11
10
|
}
|
|
12
11
|
exports.hasOwnProperty = hasOwnProperty;
|
|
13
12
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"object.js","sourceRoot":"","sources":["../../../source/utils/object/object.ts"],"names":[],"mappings":";;;AACA,6DAA+D;AAC/D,uDAAyD;AACzD,iEAAkE;AAClE,gDAA0E;AAE1E,SAAgB,cAAc,CAAmB,GAAM,EAAE,GAAY;IACnE,
|
|
1
|
+
{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
|
export declare const propertyName: unique symbol;
|
|
3
3
|
export declare const cast: unique symbol;
|
|
4
|
-
export
|
|
4
|
+
export type PropertyName = {
|
|
5
5
|
[propertyName]: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type PropertyNameProxy<T extends Record> = {
|
|
8
8
|
[P in keyof DeepNonNullable<T>]: PropertyNameProxyChild<T[P]>;
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export type PropertyNameProxyChild<T> = (T extends Record ? (PropertyNameProxy<T> & PropertyName) : (PropertyName)) & {
|
|
11
11
|
[cast]: <U extends T>() => PropertyNameProxyChild<U>;
|
|
12
12
|
};
|
|
13
|
-
export
|
|
13
|
+
export type PropertyNameOfExpressionObject<T> = {
|
|
14
14
|
[P in keyof DeepNonNullable<T>]: PropertyNameOfExpressionObject<DeepNonNullable<T>[P]> & {
|
|
15
15
|
[cast]: <U extends DeepNonNullable<T>[P]>() => PropertyNameOfExpressionObject<U>;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
export
|
|
18
|
+
export type FlatPropertyNameOfExpressionObject<T> = {
|
|
19
19
|
[P in keyof DeepFlatten<DeepNonNullable<T>>]: FlatPropertyNameOfExpressionObject<DeepFlatten<DeepNonNullable<T>>[P]> & {
|
|
20
20
|
[cast]: <U extends DeepFlatten<DeepNonNullable<T>>[P]>() => FlatPropertyNameOfExpressionObject<U>;
|
|
21
21
|
};
|
package/utils/patch-worker.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Record, StringMap } from "../types";
|
|
2
2
|
import type { Observable } from 'rxjs';
|
|
3
|
-
export
|
|
3
|
+
export type PatchWorkerOptions<T extends StringMap> = {
|
|
4
4
|
debounceTime?: number;
|
|
5
5
|
retryDelay?: number;
|
|
6
6
|
handleOn?: Observable<any>;
|
|
@@ -7,7 +7,7 @@ export declare enum AggregationMode {
|
|
|
7
7
|
FirstQuartile = 4,
|
|
8
8
|
ThirdQuartile = 5
|
|
9
9
|
}
|
|
10
|
-
export
|
|
10
|
+
export type SampleFunction = () => number | Promise<number>;
|
|
11
11
|
export declare class PeriodicSampler {
|
|
12
12
|
private readonly sampleFunction;
|
|
13
13
|
private readonly subject;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type ProviderFunction<T> = () => ProviderFunctionResult<T> | Promise<ProviderFunctionResult<T>>;
|
|
2
|
+
export type ProviderFunctionResult<T> = {
|
|
3
3
|
hasItem: boolean;
|
|
4
4
|
item: T;
|
|
5
5
|
} | {
|
package/utils/proxy.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const reflectMethodsMap: Record<keyof ProxyHandler<object>, true>;
|
|
2
|
-
export
|
|
2
|
+
export type ReflectMethodsReturnTypeMap = {
|
|
3
3
|
[P in keyof ProxyHandler<object>]-?: ReturnType<Required<ProxyHandler<object>>[P]>;
|
|
4
4
|
};
|
|
5
5
|
export declare const reflectMethods: (keyof ProxyHandler<object>)[];
|
package/utils/singleton.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Builder<T> = () => T;
|
|
2
|
+
export type AsyncBuilder<T> = () => Promise<T>;
|
|
3
3
|
export declare function singleton<T>(type: any, builder: Builder<T>): T;
|
|
4
4
|
export declare function singleton<T>(type: any, builder: AsyncBuilder<T>): Promise<T>;
|
|
5
5
|
export declare function singleton<T>(scope: any, type: any, builder: Builder<T>): T;
|
package/utils/sort.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
1
|
+
export type Comparator<T> = (a: T, b: T) => number;
|
|
2
|
+
export type AsyncComparator<T> = (a: T, b: T) => number | Promise<number>;
|
|
3
3
|
export declare function quickSort<T>(array: T[], comparator?: Comparator<T>, left?: number, right?: number): T[];
|
|
4
4
|
export declare function quickSortAsync<T>(array: T[], comparator?: AsyncComparator<T>, left?: number, right?: number): Promise<T[]>;
|
|
5
5
|
export declare function quickSortInPlace<T>(array: T[], comparator?: Comparator<T>, left?: number, right?: number): void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
declare const nonObjectBufferModeSymbol: unique symbol;
|
|
3
3
|
declare const nonObjectStringModeSymbol: unique symbol;
|
|
4
|
-
export
|
|
5
|
-
export
|
|
4
|
+
export type NonObjectMode = NonObjectBufferMode | NonObjectStringMode;
|
|
5
|
+
export type NonObjectBufferMode = {
|
|
6
6
|
readonly [nonObjectBufferModeSymbol]: never;
|
|
7
7
|
};
|
|
8
|
-
export
|
|
8
|
+
export type NonObjectStringMode = {
|
|
9
9
|
readonly [nonObjectStringModeSymbol]: never;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export type NonObjectModeTypes = string | Buffer | Uint8Array;
|
|
12
|
+
export type Data<T> = T extends NonObjectStringMode ? string : T extends NonObjectBufferMode ? Buffer : (T extends null ? never : T);
|
|
13
13
|
export {};
|
package/utils/type-guards.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AbstractConstructor, TypedArray } from "../types";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type InferIsType<T> = T extends (value: any) => value is infer R ? R : never;
|
|
3
|
+
export type InferIsNotType<ValueType, T> = T extends (value: any) => value is infer R ? Exclude<ValueType, R> : never;
|
|
4
|
+
export type AssertionMessage = string | (() => string);
|
|
5
5
|
export declare function assert(condition: boolean, message?: AssertionMessage): asserts condition;
|
|
6
6
|
export declare function assertNot(condition: boolean, message?: AssertionMessage): asserts condition;
|
|
7
7
|
export declare function isType<T>(type: AbstractConstructor<T>, value: any): value is T;
|
package/utils/url-builder.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { UndefinableJsonObject, UndefinableJsonPrimitive } from '../types';
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export type UrlBuilderParameterValue = UndefinableJsonPrimitive;
|
|
3
|
+
export type UrlBuilderParameters = UndefinableJsonObject;
|
|
4
|
+
export type UrlBuilderOptions = {
|
|
5
5
|
arraySeparator?: string;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
7
|
+
export type UrlBuilderResult = {
|
|
8
8
|
parsedUrl: string;
|
|
9
9
|
parametersRest: UrlBuilderParameters;
|
|
10
10
|
};
|
package/web-types.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
1
|
+
export type InputType = 'checkbox' | 'color' | 'date' | 'datetime-local' | 'email' | 'file' | 'image' | 'month' | 'number' | 'password' | 'radio' | 'range' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week';
|
|
2
|
+
export type InputMode = 'none' | 'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url';
|
|
3
|
+
export type InputAutocomplete = 'off' | 'on' | 'name' | 'honorific-prefix' | 'given-name' | 'additional-name' | 'family-name' | 'honorific-suffix' | 'nickname' | 'email' | 'username' | 'new-password' | 'current-password' | 'one-time-code' | 'organization-title' | 'organization' | 'street-address' | 'address-line1' | 'address-line2' | 'address-line3' | 'address-level4' | 'address-level3' | 'address-level2' | 'address-level1' | 'country' | 'country-name' | 'postal-code' | 'cc-name' | 'cc-given-name' | 'cc-additional-name' | 'cc-family-name' | 'cc-number' | 'cc-exp' | 'cc-exp-month' | 'cc-exp-year' | 'cc-csc' | 'cc-type' | 'transaction-currency' | 'transaction-amount' | 'language' | 'bday' | 'bday-day' | 'bday-month' | 'bday-year' | 'sex' | 'tel' | 'tel-country-code' | 'tel-national' | 'tel-area-code' | 'tel-local' | 'tel-extension' | 'impp' | 'url' | 'photo';
|
|
4
|
+
export type InputAttributes = {
|
|
5
5
|
accept?: string;
|
|
6
6
|
autocomplete?: InputAutocomplete;
|
|
7
7
|
autofocus?: boolean;
|
package/notification/model.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export declare class Notification {
|
|
2
|
-
/**
|
|
3
|
-
*
|
|
4
|
-
*/
|
|
5
|
-
for: string;
|
|
6
|
-
/**
|
|
7
|
-
* Timestamp at which the notification was created.
|
|
8
|
-
*/
|
|
9
|
-
timestamp: number;
|
|
10
|
-
/**
|
|
11
|
-
* Timestamp at which the notification was marked as read.
|
|
12
|
-
*/
|
|
13
|
-
read: number | null;
|
|
14
|
-
/**
|
|
15
|
-
* Custom data.
|
|
16
|
-
*/
|
|
17
|
-
data: any;
|
|
18
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../source/notification/model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,sCAAgD;AAGzC,IAAM,YAAY,GAAlB,MAAM,YAAY;IACvB;;OAEG;IAEH,GAAG,CAAS;IAEZ;;OAEG;IAEH,SAAS,CAAS;IAElB;;OAEG;IAEH,IAAI,CAAgB;IAEpB;;OAEG;IAEH,IAAI,CAAM;CACX,CAAA;AApBC;IAAC,IAAA,iBAAQ,GAAE;;yCACC;AAKZ;IAAC,IAAA,iBAAQ,GAAE;;+CACO;AAKlB;IAAC,IAAA,iBAAQ,GAAE;;0CACS;AAKpB;IAAC,IAAA,YAAG,GAAE;;0CACI;AAvBC,YAAY;IADxB,IAAA,cAAK,GAAE;GACK,YAAY,CAwBxB;AAxBY,oCAAY"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mongo-repository.js","sourceRoot":"","sources":["../../../source/orm/mongo/mongo-repository.ts"],"names":[],"mappings":";;;AAAA,MAAa,eAAe;CAE3B;AAFD,0CAEC"}
|
package/orm/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../source/orm/types.ts"],"names":[],"mappings":";;;AAAA,sEA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AAa,EAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC;aACvK,CAAC;SACH;KACF;IAED,MAAM,UAAU,GAAqB;QACnC,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,UAAU;QACV,OAAO,EAAE,EAAE;KACZ,CAAC;IAEF,OAAO,UAAU,CAAC;AACpB,CAAC;AAjCD,sEAiCC;AAED,SAAS,mCAAmC,CAAC,SAA4B;IACvE,IAAI,CAAC,SAAS,IAAI,WAAW,CAAC,IAAI,CAAC,SAAS,IAAI,MAAM,CAAC,EAAE;QACvD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;KACzD;IAED,IAAI,SAAS,IAAI,MAAM,EAAE;QACvB,OAAO,QAAQ,CAAC;KACjB;IAED,IAAI,SAAS,IAAI,MAAM,EAAE;QACvB,OAAO,QAAQ,CAAC;KACjB;IAED,IAAI,SAAS,IAAI,OAAO,EAAE;QACxB,OAAO,SAAS,CAAC;KAClB;IAED,IAAI,SAAS,IAAI,KAAK,EAAE;QACtB,OAAO,KAAK,CAAC;KACd;IAED,MAAM,IAAI,uCAAiB,CAAC,aAAa,IAAA,yBAAgB,EAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;AACzF,CAAC"}
|
package/schema/types.js
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.schemaTestableToSchema = exports.valueTypesOrSchemasToSchemas = exports.resolveValueType = exports.resolveValueTypes = exports.isDeferredValueType = exports.isTypeSchema = exports.isValueSchema = exports.isObjectSchema = exports.isSchema = exports.typeSchema = exports.valueSchema = exports.objectSchema = exports.objectSchemaProperties = exports.isTransformErrorResult = exports.transformErrorResult = exports.transformErrorResultSymbol = exports.SchemaValueCoercer = exports.SchemaValueTransformer = exports.SchemaValueConstraint = exports.SchemaArrayConstraint = exports.primitiveConstructorSet = exports.primitiveConstructors = void 0;
|
|
5
|
-
const object_1 = require("../utils/object/object");
|
|
6
|
-
const type_guards_1 = require("../utils/type-guards");
|
|
7
|
-
exports.primitiveConstructors = [String, Number, Boolean, Symbol, BigInt, Function, 'undefined', 'null'];
|
|
8
|
-
exports.primitiveConstructorSet = new Set(exports.primitiveConstructors);
|
|
9
|
-
class SchemaArrayConstraint {
|
|
10
|
-
}
|
|
11
|
-
exports.SchemaArrayConstraint = SchemaArrayConstraint;
|
|
12
|
-
class SchemaValueConstraint {
|
|
13
|
-
}
|
|
14
|
-
exports.SchemaValueConstraint = SchemaValueConstraint;
|
|
15
|
-
class SchemaValueTransformer {
|
|
16
|
-
}
|
|
17
|
-
exports.SchemaValueTransformer = SchemaValueTransformer;
|
|
18
|
-
class SchemaValueCoercer {
|
|
19
|
-
}
|
|
20
|
-
exports.SchemaValueCoercer = SchemaValueCoercer;
|
|
21
|
-
exports.transformErrorResultSymbol = Symbol('Transform error');
|
|
22
|
-
function transformErrorResult(error) {
|
|
23
|
-
return { [exports.transformErrorResultSymbol]: error };
|
|
24
|
-
}
|
|
25
|
-
exports.transformErrorResult = transformErrorResult;
|
|
26
|
-
function isTransformErrorResult(value) {
|
|
27
|
-
return (0, type_guards_1.isObject)(value) && (0, object_1.hasOwnProperty)(value, exports.transformErrorResultSymbol);
|
|
28
|
-
}
|
|
29
|
-
exports.isTransformErrorResult = isTransformErrorResult;
|
|
30
|
-
function objectSchemaProperties(properties) {
|
|
31
|
-
return (0, object_1.filterObject)(properties, type_guards_1.isDefined);
|
|
32
|
-
}
|
|
33
|
-
exports.objectSchemaProperties = objectSchemaProperties;
|
|
34
|
-
function objectSchema(schema) {
|
|
35
|
-
return (0, object_1.filterObject)(schema, type_guards_1.isDefined);
|
|
36
|
-
}
|
|
37
|
-
exports.objectSchema = objectSchema;
|
|
38
|
-
function valueSchema(schema, options) {
|
|
39
|
-
return (0, object_1.filterObject)({ schema, ...options }, type_guards_1.isDefined);
|
|
40
|
-
}
|
|
41
|
-
exports.valueSchema = valueSchema;
|
|
42
|
-
function typeSchema(type) {
|
|
43
|
-
return { type };
|
|
44
|
-
}
|
|
45
|
-
exports.typeSchema = typeSchema;
|
|
46
|
-
function isSchema(value) {
|
|
47
|
-
return isObjectSchema(value) || isValueSchema(value) || isTypeSchema(value);
|
|
48
|
-
}
|
|
49
|
-
exports.isSchema = isSchema;
|
|
50
|
-
function isObjectSchema(schema) {
|
|
51
|
-
return (0, type_guards_1.isObject)(schema?.properties);
|
|
52
|
-
}
|
|
53
|
-
exports.isObjectSchema = isObjectSchema;
|
|
54
|
-
function isValueSchema(schema) {
|
|
55
|
-
return (0, type_guards_1.isObject)(schema) && (0, type_guards_1.isDefined)(schema?.schema);
|
|
56
|
-
}
|
|
57
|
-
exports.isValueSchema = isValueSchema;
|
|
58
|
-
function isTypeSchema(schema) {
|
|
59
|
-
if (!(0, type_guards_1.isObject)(schema)) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
const type = schema.type;
|
|
63
|
-
return (0, type_guards_1.isObject)(schema)
|
|
64
|
-
&& ((0, type_guards_1.isFunction)(type)
|
|
65
|
-
|| ((0, type_guards_1.isObject)(type) && (0, type_guards_1.isFunction)(type.deferred))
|
|
66
|
-
|| (type == 'undefined')
|
|
67
|
-
|| (type == 'null')
|
|
68
|
-
|| (type == 'any'));
|
|
69
|
-
}
|
|
70
|
-
exports.isTypeSchema = isTypeSchema;
|
|
71
|
-
function isDeferredValueType(value) {
|
|
72
|
-
return (0, type_guards_1.isObject)(value) && (0, type_guards_1.isFunction)(value.deferred);
|
|
73
|
-
}
|
|
74
|
-
exports.isDeferredValueType = isDeferredValueType;
|
|
75
|
-
function resolveValueTypes(valueTypes) {
|
|
76
|
-
if ((0, type_guards_1.isArray)(valueTypes)) {
|
|
77
|
-
return valueTypes.map(resolveValueType);
|
|
78
|
-
}
|
|
79
|
-
return resolveValueType(valueTypes);
|
|
80
|
-
}
|
|
81
|
-
exports.resolveValueTypes = resolveValueTypes;
|
|
82
|
-
function resolveValueType(valueType) {
|
|
83
|
-
return isDeferredValueType(valueType)
|
|
84
|
-
? resolveValueType(valueType.deferred())
|
|
85
|
-
: valueType;
|
|
86
|
-
}
|
|
87
|
-
exports.resolveValueType = resolveValueType;
|
|
88
|
-
function valueTypesOrSchemasToSchemas(valueTypesOrSchemas) {
|
|
89
|
-
if ((0, type_guards_1.isArray)(valueTypesOrSchemas)) {
|
|
90
|
-
return valueTypesOrSchemas.map(schemaTestableToSchema);
|
|
91
|
-
}
|
|
92
|
-
return schemaTestableToSchema(valueTypesOrSchemas);
|
|
93
|
-
}
|
|
94
|
-
exports.valueTypesOrSchemasToSchemas = valueTypesOrSchemasToSchemas;
|
|
95
|
-
function schemaTestableToSchema(valueTypeOrSchema) {
|
|
96
|
-
if (isSchema(valueTypeOrSchema)) {
|
|
97
|
-
return valueTypeOrSchema;
|
|
98
|
-
}
|
|
99
|
-
return typeSchema(valueTypeOrSchema);
|
|
100
|
-
}
|
|
101
|
-
exports.schemaTestableToSchema = schemaTestableToSchema;
|
|
102
|
-
//# sourceMappingURL=types.js.map
|
package/schema/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../source/schema/types.ts"],"names":[],"mappings":";AAAA,iDAAiD;;;AAIjD,mDAAqE;AACrE,sDAA+E;AAqHlE,QAAA,qBAAqB,GAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAwC,EAAE,MAAwC,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,CAAC,CAAC;AAClL,QAAA,uBAAuB,GAAG,IAAI,GAAG,CAAC,6BAAqB,CAAC,CAAC;AAEtE,MAAsB,qBAAqB;CAE1C;AAFD,sDAEC;AAID,MAAsB,qBAAqB;CAK1C;AALD,sD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