@zyno-io/ts-server-foundation 26.712.36
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/README.md +31 -0
- package/dist/devconsole/assets/index-BlWLbczn.css +1 -0
- package/dist/devconsole/assets/index-lSF6DUY3.js +3 -0
- package/dist/devconsole/index.html +13 -0
- package/dist/src/app/base.d.ts +66 -0
- package/dist/src/app/base.d.ts.map +1 -0
- package/dist/src/app/base.js +577 -0
- package/dist/src/app/base.js.map +1 -0
- package/dist/src/app/commands.d.ts +20 -0
- package/dist/src/app/commands.d.ts.map +1 -0
- package/dist/src/app/commands.js +17 -0
- package/dist/src/app/commands.js.map +1 -0
- package/dist/src/app/config-loader.d.ts +9 -0
- package/dist/src/app/config-loader.d.ts.map +1 -0
- package/dist/src/app/config-loader.js +91 -0
- package/dist/src/app/config-loader.js.map +1 -0
- package/dist/src/app/config.d.ts +96 -0
- package/dist/src/app/config.d.ts.map +1 -0
- package/dist/src/app/config.js +114 -0
- package/dist/src/app/config.js.map +1 -0
- package/dist/src/app/const.d.ts +5 -0
- package/dist/src/app/const.d.ts.map +1 -0
- package/dist/src/app/const.js +17 -0
- package/dist/src/app/const.js.map +1 -0
- package/dist/src/app/current.d.ts +5 -0
- package/dist/src/app/current.d.ts.map +1 -0
- package/dist/src/app/current.js +14 -0
- package/dist/src/app/current.js.map +1 -0
- package/dist/src/app/index.d.ts +8 -0
- package/dist/src/app/index.d.ts.map +1 -0
- package/dist/src/app/index.js +13 -0
- package/dist/src/app/index.js.map +1 -0
- package/dist/src/app/lifecycle.d.ts +9 -0
- package/dist/src/app/lifecycle.d.ts.map +1 -0
- package/dist/src/app/lifecycle.js +21 -0
- package/dist/src/app/lifecycle.js.map +1 -0
- package/dist/src/app/migrations-entrypoint.d.ts +3 -0
- package/dist/src/app/migrations-entrypoint.d.ts.map +1 -0
- package/dist/src/app/migrations-entrypoint.js +35 -0
- package/dist/src/app/migrations-entrypoint.js.map +1 -0
- package/dist/src/app/resolver.d.ts +6 -0
- package/dist/src/app/resolver.d.ts.map +1 -0
- package/dist/src/app/resolver.js +15 -0
- package/dist/src/app/resolver.js.map +1 -0
- package/dist/src/auth/index.d.ts +3 -0
- package/dist/src/auth/index.d.ts.map +1 -0
- package/dist/src/auth/index.js +15 -0
- package/dist/src/auth/index.js.map +1 -0
- package/dist/src/auth/jwt.d.ts +61 -0
- package/dist/src/auth/jwt.d.ts.map +1 -0
- package/dist/src/auth/jwt.js +379 -0
- package/dist/src/auth/jwt.js.map +1 -0
- package/dist/src/auth/provider.d.ts +21 -0
- package/dist/src/auth/provider.d.ts.map +1 -0
- package/dist/src/auth/provider.js +148 -0
- package/dist/src/auth/provider.js.map +1 -0
- package/dist/src/cli/common.d.ts +13 -0
- package/dist/src/cli/common.d.ts.map +1 -0
- package/dist/src/cli/common.js +99 -0
- package/dist/src/cli/common.js.map +1 -0
- package/dist/src/cli/tsf-create-app.d.ts +3 -0
- package/dist/src/cli/tsf-create-app.d.ts.map +1 -0
- package/dist/src/cli/tsf-create-app.js +89 -0
- package/dist/src/cli/tsf-create-app.js.map +1 -0
- package/dist/src/cli/tsf-dev.d.ts +3 -0
- package/dist/src/cli/tsf-dev.d.ts.map +1 -0
- package/dist/src/cli/tsf-dev.js +753 -0
- package/dist/src/cli/tsf-dev.js.map +1 -0
- package/dist/src/cli/tsf-gen-proto.d.ts +3 -0
- package/dist/src/cli/tsf-gen-proto.d.ts.map +1 -0
- package/dist/src/cli/tsf-gen-proto.js +134 -0
- package/dist/src/cli/tsf-gen-proto.js.map +1 -0
- package/dist/src/cli/tsf-install.d.ts +8 -0
- package/dist/src/cli/tsf-install.d.ts.map +1 -0
- package/dist/src/cli/tsf-install.js +424 -0
- package/dist/src/cli/tsf-install.js.map +1 -0
- package/dist/src/cli/tsf-migrate.d.ts +3 -0
- package/dist/src/cli/tsf-migrate.d.ts.map +1 -0
- package/dist/src/cli/tsf-migrate.js +271 -0
- package/dist/src/cli/tsf-migrate.js.map +1 -0
- package/dist/src/cli/tsf-test.d.ts +4 -0
- package/dist/src/cli/tsf-test.d.ts.map +1 -0
- package/dist/src/cli/tsf-test.js +350 -0
- package/dist/src/cli/tsf-test.js.map +1 -0
- package/dist/src/cli/tsf-update.d.ts +3 -0
- package/dist/src/cli/tsf-update.d.ts.map +1 -0
- package/dist/src/cli/tsf-update.js +12 -0
- package/dist/src/cli/tsf-update.js.map +1 -0
- package/dist/src/cli/tsf.d.ts +3 -0
- package/dist/src/cli/tsf.d.ts.map +1 -0
- package/dist/src/cli/tsf.js +29 -0
- package/dist/src/cli/tsf.js.map +1 -0
- package/dist/src/database/database.d.ts +54 -0
- package/dist/src/database/database.d.ts.map +1 -0
- package/dist/src/database/database.js +695 -0
- package/dist/src/database/database.js.map +1 -0
- package/dist/src/database/driver.d.ts +28 -0
- package/dist/src/database/driver.d.ts.map +1 -0
- package/dist/src/database/driver.js +5 -0
- package/dist/src/database/driver.js.map +1 -0
- package/dist/src/database/drivers/index.d.ts +4 -0
- package/dist/src/database/drivers/index.d.ts.map +1 -0
- package/dist/src/database/drivers/index.js +9 -0
- package/dist/src/database/drivers/index.js.map +1 -0
- package/dist/src/database/drivers/mysql-session-rpc.d.ts +40 -0
- package/dist/src/database/drivers/mysql-session-rpc.d.ts.map +1 -0
- package/dist/src/database/drivers/mysql-session-rpc.js +180 -0
- package/dist/src/database/drivers/mysql-session-rpc.js.map +1 -0
- package/dist/src/database/drivers/mysql-session.d.ts +25 -0
- package/dist/src/database/drivers/mysql-session.d.ts.map +1 -0
- package/dist/src/database/drivers/mysql-session.js +124 -0
- package/dist/src/database/drivers/mysql-session.js.map +1 -0
- package/dist/src/database/drivers/mysql.d.ts +20 -0
- package/dist/src/database/drivers/mysql.d.ts.map +1 -0
- package/dist/src/database/drivers/mysql.js +84 -0
- package/dist/src/database/drivers/mysql.js.map +1 -0
- package/dist/src/database/drivers/postgres.d.ts +22 -0
- package/dist/src/database/drivers/postgres.d.ts.map +1 -0
- package/dist/src/database/drivers/postgres.js +80 -0
- package/dist/src/database/drivers/postgres.js.map +1 -0
- package/dist/src/database/entity.d.ts +112 -0
- package/dist/src/database/entity.d.ts.map +1 -0
- package/dist/src/database/entity.js +333 -0
- package/dist/src/database/entity.js.map +1 -0
- package/dist/src/database/errors.d.ts +7 -0
- package/dist/src/database/errors.d.ts.map +1 -0
- package/dist/src/database/errors.js +34 -0
- package/dist/src/database/errors.js.map +1 -0
- package/dist/src/database/factory.d.ts +48 -0
- package/dist/src/database/factory.d.ts.map +1 -0
- package/dist/src/database/factory.js +139 -0
- package/dist/src/database/factory.js.map +1 -0
- package/dist/src/database/identifiers.d.ts +8 -0
- package/dist/src/database/identifiers.d.ts.map +1 -0
- package/dist/src/database/identifiers.js +46 -0
- package/dist/src/database/identifiers.js.map +1 -0
- package/dist/src/database/index.d.ts +14 -0
- package/dist/src/database/index.d.ts.map +1 -0
- package/dist/src/database/index.js +33 -0
- package/dist/src/database/index.js.map +1 -0
- package/dist/src/database/metadata.d.ts +27 -0
- package/dist/src/database/metadata.d.ts.map +1 -0
- package/dist/src/database/metadata.js +70 -0
- package/dist/src/database/metadata.js.map +1 -0
- package/dist/src/database/migration/create/comparator.d.ts +3 -0
- package/dist/src/database/migration/create/comparator.d.ts.map +1 -0
- package/dist/src/database/migration/create/comparator.js +302 -0
- package/dist/src/database/migration/create/comparator.js.map +1 -0
- package/dist/src/database/migration/create/db-reader.d.ts +9 -0
- package/dist/src/database/migration/create/db-reader.d.ts.map +1 -0
- package/dist/src/database/migration/create/db-reader.js +478 -0
- package/dist/src/database/migration/create/db-reader.js.map +1 -0
- package/dist/src/database/migration/create/ddl-generator.d.ts +4 -0
- package/dist/src/database/migration/create/ddl-generator.d.ts.map +1 -0
- package/dist/src/database/migration/create/ddl-generator.js +431 -0
- package/dist/src/database/migration/create/ddl-generator.js.map +1 -0
- package/dist/src/database/migration/create/entity-reader.d.ts +7 -0
- package/dist/src/database/migration/create/entity-reader.d.ts.map +1 -0
- package/dist/src/database/migration/create/entity-reader.js +169 -0
- package/dist/src/database/migration/create/entity-reader.js.map +1 -0
- package/dist/src/database/migration/create/file-generator.d.ts +7 -0
- package/dist/src/database/migration/create/file-generator.d.ts.map +1 -0
- package/dist/src/database/migration/create/file-generator.js +60 -0
- package/dist/src/database/migration/create/file-generator.js.map +1 -0
- package/dist/src/database/migration/create/index.d.ts +19 -0
- package/dist/src/database/migration/create/index.d.ts.map +1 -0
- package/dist/src/database/migration/create/index.js +102 -0
- package/dist/src/database/migration/create/index.js.map +1 -0
- package/dist/src/database/migration/create/schema-model.d.ts +99 -0
- package/dist/src/database/migration/create/schema-model.d.ts.map +1 -0
- package/dist/src/database/migration/create/schema-model.js +24 -0
- package/dist/src/database/migration/create/schema-model.js.map +1 -0
- package/dist/src/database/migration/create/type-mapper.d.ts +13 -0
- package/dist/src/database/migration/create/type-mapper.d.ts.map +1 -0
- package/dist/src/database/migration/create/type-mapper.js +293 -0
- package/dist/src/database/migration/create/type-mapper.js.map +1 -0
- package/dist/src/database/migration/index.d.ts +33 -0
- package/dist/src/database/migration/index.d.ts.map +1 -0
- package/dist/src/database/migration/index.js +165 -0
- package/dist/src/database/migration/index.js.map +1 -0
- package/dist/src/database/migration/maintenance.d.ts +26 -0
- package/dist/src/database/migration/maintenance.d.ts.map +1 -0
- package/dist/src/database/migration/maintenance.js +65 -0
- package/dist/src/database/migration/maintenance.js.map +1 -0
- package/dist/src/database/query.d.ts +79 -0
- package/dist/src/database/query.d.ts.map +1 -0
- package/dist/src/database/query.js +435 -0
- package/dist/src/database/query.js.map +1 -0
- package/dist/src/database/schema.d.ts +147 -0
- package/dist/src/database/schema.d.ts.map +1 -0
- package/dist/src/database/schema.js +709 -0
- package/dist/src/database/schema.js.map +1 -0
- package/dist/src/database/session.d.ts +63 -0
- package/dist/src/database/session.d.ts.map +1 -0
- package/dist/src/database/session.js +226 -0
- package/dist/src/database/session.js.map +1 -0
- package/dist/src/database/sql.d.ts +37 -0
- package/dist/src/database/sql.d.ts.map +1 -0
- package/dist/src/database/sql.js +143 -0
- package/dist/src/database/sql.js.map +1 -0
- package/dist/src/database/values.d.ts +6 -0
- package/dist/src/database/values.d.ts.map +1 -0
- package/dist/src/database/values.js +237 -0
- package/dist/src/database/values.js.map +1 -0
- package/dist/src/devconsole/controller.d.ts +11 -0
- package/dist/src/devconsole/controller.d.ts.map +1 -0
- package/dist/src/devconsole/controller.js +78 -0
- package/dist/src/devconsole/controller.js.map +1 -0
- package/dist/src/devconsole/generated/devconsole.d.ts +306 -0
- package/dist/src/devconsole/generated/devconsole.d.ts.map +1 -0
- package/dist/src/devconsole/generated/devconsole.js +4029 -0
- package/dist/src/devconsole/generated/devconsole.js.map +1 -0
- package/dist/src/devconsole/index.d.ts +10 -0
- package/dist/src/devconsole/index.d.ts.map +1 -0
- package/dist/src/devconsole/index.js +26 -0
- package/dist/src/devconsole/index.js.map +1 -0
- package/dist/src/devconsole/observers.d.ts +4 -0
- package/dist/src/devconsole/observers.d.ts.map +1 -0
- package/dist/src/devconsole/observers.js +170 -0
- package/dist/src/devconsole/observers.js.map +1 -0
- package/dist/src/devconsole/runtime.d.ts +16 -0
- package/dist/src/devconsole/runtime.d.ts.map +1 -0
- package/dist/src/devconsole/runtime.js +48 -0
- package/dist/src/devconsole/runtime.js.map +1 -0
- package/dist/src/devconsole/security.d.ts +8 -0
- package/dist/src/devconsole/security.d.ts.map +1 -0
- package/dist/src/devconsole/security.js +33 -0
- package/dist/src/devconsole/security.js.map +1 -0
- package/dist/src/devconsole/server.d.ts +25 -0
- package/dist/src/devconsole/server.d.ts.map +1 -0
- package/dist/src/devconsole/server.js +452 -0
- package/dist/src/devconsole/server.js.map +1 -0
- package/dist/src/devconsole/store.d.ts +111 -0
- package/dist/src/devconsole/store.d.ts.map +1 -0
- package/dist/src/devconsole/store.js +177 -0
- package/dist/src/devconsole/store.js.map +1 -0
- package/dist/src/di/container.d.ts +38 -0
- package/dist/src/di/container.d.ts.map +1 -0
- package/dist/src/di/container.js +252 -0
- package/dist/src/di/container.js.map +1 -0
- package/dist/src/di/errors.d.ts +18 -0
- package/dist/src/di/errors.d.ts.map +1 -0
- package/dist/src/di/errors.js +71 -0
- package/dist/src/di/errors.js.map +1 -0
- package/dist/src/di/index.d.ts +5 -0
- package/dist/src/di/index.d.ts.map +1 -0
- package/dist/src/di/index.js +10 -0
- package/dist/src/di/index.js.map +1 -0
- package/dist/src/di/module.d.ts +29 -0
- package/dist/src/di/module.d.ts.map +1 -0
- package/dist/src/di/module.js +42 -0
- package/dist/src/di/module.js.map +1 -0
- package/dist/src/di/provider.d.ts +34 -0
- package/dist/src/di/provider.d.ts.map +1 -0
- package/dist/src/di/provider.js +24 -0
- package/dist/src/di/provider.js.map +1 -0
- package/dist/src/env.d.ts +122 -0
- package/dist/src/env.d.ts.map +1 -0
- package/dist/src/env.js +61 -0
- package/dist/src/env.js.map +1 -0
- package/dist/src/events/event-bus.d.ts +26 -0
- package/dist/src/events/event-bus.d.ts.map +1 -0
- package/dist/src/events/event-bus.js +67 -0
- package/dist/src/events/event-bus.js.map +1 -0
- package/dist/src/events/index.d.ts +2 -0
- package/dist/src/events/index.d.ts.map +1 -0
- package/dist/src/events/index.js +7 -0
- package/dist/src/events/index.js.map +1 -0
- package/dist/src/health/healthcheck.controller.d.ts +9 -0
- package/dist/src/health/healthcheck.controller.d.ts.map +1 -0
- package/dist/src/health/healthcheck.controller.js +33 -0
- package/dist/src/health/healthcheck.controller.js.map +1 -0
- package/dist/src/health/healthcheck.service.d.ts +13 -0
- package/dist/src/health/healthcheck.service.d.ts.map +1 -0
- package/dist/src/health/healthcheck.service.js +37 -0
- package/dist/src/health/healthcheck.service.js.map +1 -0
- package/dist/src/health/index.d.ts +3 -0
- package/dist/src/health/index.d.ts.map +1 -0
- package/dist/src/health/index.js +8 -0
- package/dist/src/health/index.js.map +1 -0
- package/dist/src/helpers/async/context.d.ts +10 -0
- package/dist/src/helpers/async/context.d.ts.map +1 -0
- package/dist/src/helpers/async/context.js +52 -0
- package/dist/src/helpers/async/context.js.map +1 -0
- package/dist/src/helpers/async/process.d.ts +16 -0
- package/dist/src/helpers/async/process.d.ts.map +1 -0
- package/dist/src/helpers/async/process.js +62 -0
- package/dist/src/helpers/async/process.js.map +1 -0
- package/dist/src/helpers/async/promise.d.ts +11 -0
- package/dist/src/helpers/async/promise.d.ts.map +1 -0
- package/dist/src/helpers/async/promise.js +32 -0
- package/dist/src/helpers/async/promise.js.map +1 -0
- package/dist/src/helpers/data/array.d.ts +5 -0
- package/dist/src/helpers/data/array.d.ts.map +1 -0
- package/dist/src/helpers/data/array.js +27 -0
- package/dist/src/helpers/data/array.js.map +1 -0
- package/dist/src/helpers/data/objects.d.ts +13 -0
- package/dist/src/helpers/data/objects.d.ts.map +1 -0
- package/dist/src/helpers/data/objects.js +55 -0
- package/dist/src/helpers/data/objects.js.map +1 -0
- package/dist/src/helpers/data/serialization.d.ts +5 -0
- package/dist/src/helpers/data/serialization.d.ts.map +1 -0
- package/dist/src/helpers/data/serialization.js +25 -0
- package/dist/src/helpers/data/serialization.js.map +1 -0
- package/dist/src/helpers/data/transformer.d.ts +13 -0
- package/dist/src/helpers/data/transformer.d.ts.map +1 -0
- package/dist/src/helpers/data/transformer.js +50 -0
- package/dist/src/helpers/data/transformer.js.map +1 -0
- package/dist/src/helpers/index.d.ts +19 -0
- package/dist/src/helpers/index.d.ts.map +1 -0
- package/dist/src/helpers/index.js +30 -0
- package/dist/src/helpers/index.js.map +1 -0
- package/dist/src/helpers/io/package.d.ts +10 -0
- package/dist/src/helpers/io/package.d.ts.map +1 -0
- package/dist/src/helpers/io/package.js +35 -0
- package/dist/src/helpers/io/package.js.map +1 -0
- package/dist/src/helpers/io/stream.d.ts +18 -0
- package/dist/src/helpers/io/stream.d.ts.map +1 -0
- package/dist/src/helpers/io/stream.js +131 -0
- package/dist/src/helpers/io/stream.js.map +1 -0
- package/dist/src/helpers/redis/broadcast.d.ts +15 -0
- package/dist/src/helpers/redis/broadcast.d.ts.map +1 -0
- package/dist/src/helpers/redis/broadcast.js +93 -0
- package/dist/src/helpers/redis/broadcast.js.map +1 -0
- package/dist/src/helpers/redis/cache.d.ts +20 -0
- package/dist/src/helpers/redis/cache.d.ts.map +1 -0
- package/dist/src/helpers/redis/cache.js +57 -0
- package/dist/src/helpers/redis/cache.js.map +1 -0
- package/dist/src/helpers/redis/mutex.d.ts +45 -0
- package/dist/src/helpers/redis/mutex.d.ts.map +1 -0
- package/dist/src/helpers/redis/mutex.js +446 -0
- package/dist/src/helpers/redis/mutex.js.map +1 -0
- package/dist/src/helpers/redis/redis.d.ts +12 -0
- package/dist/src/helpers/redis/redis.d.ts.map +1 -0
- package/dist/src/helpers/redis/redis.js +62 -0
- package/dist/src/helpers/redis/redis.js.map +1 -0
- package/dist/src/helpers/security/crypto.d.ts +31 -0
- package/dist/src/helpers/security/crypto.d.ts.map +1 -0
- package/dist/src/helpers/security/crypto.js +108 -0
- package/dist/src/helpers/security/crypto.js.map +1 -0
- package/dist/src/helpers/security/validation.d.ts +3 -0
- package/dist/src/helpers/security/validation.d.ts.map +1 -0
- package/dist/src/helpers/security/validation.js +14 -0
- package/dist/src/helpers/security/validation.js.map +1 -0
- package/dist/src/helpers/utils/date.d.ts +4 -0
- package/dist/src/helpers/utils/date.d.ts.map +1 -0
- package/dist/src/helpers/utils/date.js +16 -0
- package/dist/src/helpers/utils/date.js.map +1 -0
- package/dist/src/helpers/utils/error.d.ts +20 -0
- package/dist/src/helpers/utils/error.d.ts.map +1 -0
- package/dist/src/helpers/utils/error.js +164 -0
- package/dist/src/helpers/utils/error.js.map +1 -0
- package/dist/src/helpers/utils/uuid.d.ts +5 -0
- package/dist/src/helpers/utils/uuid.d.ts.map +1 -0
- package/dist/src/helpers/utils/uuid.js +13 -0
- package/dist/src/helpers/utils/uuid.js.map +1 -0
- package/dist/src/http/auth.d.ts +20 -0
- package/dist/src/http/auth.d.ts.map +1 -0
- package/dist/src/http/auth.js +68 -0
- package/dist/src/http/auth.js.map +1 -0
- package/dist/src/http/base.d.ts +57 -0
- package/dist/src/http/base.d.ts.map +1 -0
- package/dist/src/http/base.js +331 -0
- package/dist/src/http/base.js.map +1 -0
- package/dist/src/http/context.d.ts +6 -0
- package/dist/src/http/context.d.ts.map +1 -0
- package/dist/src/http/context.js +26 -0
- package/dist/src/http/context.js.map +1 -0
- package/dist/src/http/cors.d.ts +25 -0
- package/dist/src/http/cors.d.ts.map +1 -0
- package/dist/src/http/cors.js +124 -0
- package/dist/src/http/cors.js.map +1 -0
- package/dist/src/http/decorators.d.ts +64 -0
- package/dist/src/http/decorators.d.ts.map +1 -0
- package/dist/src/http/decorators.js +102 -0
- package/dist/src/http/decorators.js.map +1 -0
- package/dist/src/http/errors.d.ts +50 -0
- package/dist/src/http/errors.d.ts.map +1 -0
- package/dist/src/http/errors.js +158 -0
- package/dist/src/http/errors.js.map +1 -0
- package/dist/src/http/index.d.ts +31 -0
- package/dist/src/http/index.d.ts.map +1 -0
- package/dist/src/http/index.js +33 -0
- package/dist/src/http/index.js.map +1 -0
- package/dist/src/http/middleware.d.ts +12 -0
- package/dist/src/http/middleware.d.ts.map +1 -0
- package/dist/src/http/middleware.js +31 -0
- package/dist/src/http/middleware.js.map +1 -0
- package/dist/src/http/parameter-resolvers.d.ts +3 -0
- package/dist/src/http/parameter-resolvers.d.ts.map +1 -0
- package/dist/src/http/parameter-resolvers.js +8 -0
- package/dist/src/http/parameter-resolvers.js.map +1 -0
- package/dist/src/http/request-logging.d.ts +34 -0
- package/dist/src/http/request-logging.d.ts.map +1 -0
- package/dist/src/http/request-logging.js +130 -0
- package/dist/src/http/request-logging.js.map +1 -0
- package/dist/src/http/request.d.ts +69 -0
- package/dist/src/http/request.d.ts.map +1 -0
- package/dist/src/http/request.js +366 -0
- package/dist/src/http/request.js.map +1 -0
- package/dist/src/http/response.d.ts +98 -0
- package/dist/src/http/response.d.ts.map +1 -0
- package/dist/src/http/response.js +292 -0
- package/dist/src/http/response.js.map +1 -0
- package/dist/src/http/router.d.ts +100 -0
- package/dist/src/http/router.d.ts.map +1 -0
- package/dist/src/http/router.js +1085 -0
- package/dist/src/http/router.js.map +1 -0
- package/dist/src/http/startup-logging.d.ts +8 -0
- package/dist/src/http/startup-logging.d.ts.map +1 -0
- package/dist/src/http/startup-logging.js +55 -0
- package/dist/src/http/startup-logging.js.map +1 -0
- package/dist/src/http/static-files.d.ts +15 -0
- package/dist/src/http/static-files.d.ts.map +1 -0
- package/dist/src/http/static-files.js +110 -0
- package/dist/src/http/static-files.js.map +1 -0
- package/dist/src/http/store.d.ts +8 -0
- package/dist/src/http/store.d.ts.map +1 -0
- package/dist/src/http/store.js +47 -0
- package/dist/src/http/store.js.map +1 -0
- package/dist/src/http/types.d.ts +23 -0
- package/dist/src/http/types.d.ts.map +1 -0
- package/dist/src/http/types.js +3 -0
- package/dist/src/http/types.js.map +1 -0
- package/dist/src/http/upgrade.d.ts +22 -0
- package/dist/src/http/upgrade.d.ts.map +1 -0
- package/dist/src/http/upgrade.js +164 -0
- package/dist/src/http/upgrade.js.map +1 -0
- package/dist/src/http/uploads.d.ts +36 -0
- package/dist/src/http/uploads.d.ts.map +1 -0
- package/dist/src/http/uploads.js +287 -0
- package/dist/src/http/uploads.js.map +1 -0
- package/dist/src/http/workflow.d.ts +34 -0
- package/dist/src/http/workflow.d.ts.map +1 -0
- package/dist/src/http/workflow.js +40 -0
- package/dist/src/http/workflow.js.map +1 -0
- package/dist/src/index.d.ts +21 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +88 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/openapi/controller.d.ts +9 -0
- package/dist/src/openapi/controller.d.ts.map +1 -0
- package/dist/src/openapi/controller.js +45 -0
- package/dist/src/openapi/controller.js.map +1 -0
- package/dist/src/openapi/index.d.ts +5 -0
- package/dist/src/openapi/index.d.ts.map +1 -0
- package/dist/src/openapi/index.js +21 -0
- package/dist/src/openapi/index.js.map +1 -0
- package/dist/src/openapi/schema.d.ts +26 -0
- package/dist/src/openapi/schema.d.ts.map +1 -0
- package/dist/src/openapi/schema.js +1128 -0
- package/dist/src/openapi/schema.js.map +1 -0
- package/dist/src/openapi/serializer.d.ts +16 -0
- package/dist/src/openapi/serializer.d.ts.map +1 -0
- package/dist/src/openapi/serializer.js +506 -0
- package/dist/src/openapi/serializer.js.map +1 -0
- package/dist/src/openapi/types.d.ts +84 -0
- package/dist/src/openapi/types.d.ts.map +1 -0
- package/dist/src/openapi/types.js +5 -0
- package/dist/src/openapi/types.js.map +1 -0
- package/dist/src/reflection/annotations.d.ts +15 -0
- package/dist/src/reflection/annotations.d.ts.map +1 -0
- package/dist/src/reflection/annotations.js +228 -0
- package/dist/src/reflection/annotations.js.map +1 -0
- package/dist/src/reflection/conversion.d.ts +15 -0
- package/dist/src/reflection/conversion.d.ts.map +1 -0
- package/dist/src/reflection/conversion.js +360 -0
- package/dist/src/reflection/conversion.js.map +1 -0
- package/dist/src/reflection/deserializer.d.ts +15 -0
- package/dist/src/reflection/deserializer.d.ts.map +1 -0
- package/dist/src/reflection/deserializer.js +42 -0
- package/dist/src/reflection/deserializer.js.map +1 -0
- package/dist/src/reflection/entity.d.ts +9 -0
- package/dist/src/reflection/entity.d.ts.map +1 -0
- package/dist/src/reflection/entity.js +74 -0
- package/dist/src/reflection/entity.js.map +1 -0
- package/dist/src/reflection/errors.d.ts +8 -0
- package/dist/src/reflection/errors.d.ts.map +1 -0
- package/dist/src/reflection/errors.js +21 -0
- package/dist/src/reflection/errors.js.map +1 -0
- package/dist/src/reflection/index.d.ts +8 -0
- package/dist/src/reflection/index.d.ts.map +1 -0
- package/dist/src/reflection/index.js +13 -0
- package/dist/src/reflection/index.js.map +1 -0
- package/dist/src/reflection/metadata-store.d.ts +14 -0
- package/dist/src/reflection/metadata-store.d.ts.map +1 -0
- package/dist/src/reflection/metadata-store.js +18 -0
- package/dist/src/reflection/metadata-store.js.map +1 -0
- package/dist/src/reflection/model.d.ts +271 -0
- package/dist/src/reflection/model.d.ts.map +1 -0
- package/dist/src/reflection/model.js +36 -0
- package/dist/src/reflection/model.js.map +1 -0
- package/dist/src/reflection/reflection-class.d.ts +60 -0
- package/dist/src/reflection/reflection-class.d.ts.map +1 -0
- package/dist/src/reflection/reflection-class.js +263 -0
- package/dist/src/reflection/reflection-class.js.map +1 -0
- package/dist/src/reflection/type-utils.d.ts +34 -0
- package/dist/src/reflection/type-utils.d.ts.map +1 -0
- package/dist/src/reflection/type-utils.js +485 -0
- package/dist/src/reflection/type-utils.js.map +1 -0
- package/dist/src/reflection.d.ts +2 -0
- package/dist/src/reflection.d.ts.map +1 -0
- package/dist/src/reflection.js +5 -0
- package/dist/src/reflection.js.map +1 -0
- package/dist/src/services/cli.d.ts +9 -0
- package/dist/src/services/cli.d.ts.map +1 -0
- package/dist/src/services/cli.js +47 -0
- package/dist/src/services/cli.js.map +1 -0
- package/dist/src/services/index.d.ts +8 -0
- package/dist/src/services/index.d.ts.map +1 -0
- package/dist/src/services/index.js +13 -0
- package/dist/src/services/index.js.map +1 -0
- package/dist/src/services/leader.d.ts +31 -0
- package/dist/src/services/leader.d.ts.map +1 -0
- package/dist/src/services/leader.js +176 -0
- package/dist/src/services/leader.js.map +1 -0
- package/dist/src/services/logger.d.ts +60 -0
- package/dist/src/services/logger.d.ts.map +1 -0
- package/dist/src/services/logger.js +349 -0
- package/dist/src/services/logger.js.map +1 -0
- package/dist/src/services/mail/index.d.ts +57 -0
- package/dist/src/services/mail/index.d.ts.map +1 -0
- package/dist/src/services/mail/index.js +89 -0
- package/dist/src/services/mail/index.js.map +1 -0
- package/dist/src/services/mail/postmark.d.ts +11 -0
- package/dist/src/services/mail/postmark.d.ts.map +1 -0
- package/dist/src/services/mail/postmark.js +41 -0
- package/dist/src/services/mail/postmark.js.map +1 -0
- package/dist/src/services/mail/smtp.d.ts +11 -0
- package/dist/src/services/mail/smtp.d.ts.map +1 -0
- package/dist/src/services/mail/smtp.js +50 -0
- package/dist/src/services/mail/smtp.js.map +1 -0
- package/dist/src/services/mesh-client/index.d.ts +9 -0
- package/dist/src/services/mesh-client/index.d.ts.map +1 -0
- package/dist/src/services/mesh-client/index.js +18 -0
- package/dist/src/services/mesh-client/index.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.d.ts +23 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.js +360 -0
- package/dist/src/services/mesh-client/mesh-client-redis-registry.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-registry.d.ts +16 -0
- package/dist/src/services/mesh-client/mesh-client-registry.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-registry.js +44 -0
- package/dist/src/services/mesh-client/mesh-client-registry.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-service.d.ts +88 -0
- package/dist/src/services/mesh-client/mesh-client-service.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-client-service.js +222 -0
- package/dist/src/services/mesh-client/mesh-client-service.js.map +1 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.d.ts +95 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.d.ts.map +1 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.js +475 -0
- package/dist/src/services/mesh-client/mesh-srpc-server.js.map +1 -0
- package/dist/src/services/mesh-client/types.d.ts +36 -0
- package/dist/src/services/mesh-client/types.d.ts.map +1 -0
- package/dist/src/services/mesh-client/types.js +38 -0
- package/dist/src/services/mesh-client/types.js.map +1 -0
- package/dist/src/services/mesh.d.ts +73 -0
- package/dist/src/services/mesh.d.ts.map +1 -0
- package/dist/src/services/mesh.js +511 -0
- package/dist/src/services/mesh.js.map +1 -0
- package/dist/src/services/worker/entity.d.ts +26 -0
- package/dist/src/services/worker/entity.d.ts.map +1 -0
- package/dist/src/services/worker/entity.js +30 -0
- package/dist/src/services/worker/entity.js.map +1 -0
- package/dist/src/services/worker/index.d.ts +25 -0
- package/dist/src/services/worker/index.d.ts.map +1 -0
- package/dist/src/services/worker/index.js +52 -0
- package/dist/src/services/worker/index.js.map +1 -0
- package/dist/src/services/worker/observer.d.ts +13 -0
- package/dist/src/services/worker/observer.d.ts.map +1 -0
- package/dist/src/services/worker/observer.js +22 -0
- package/dist/src/services/worker/observer.js.map +1 -0
- package/dist/src/services/worker/queue.d.ts +38 -0
- package/dist/src/services/worker/queue.d.ts.map +1 -0
- package/dist/src/services/worker/queue.js +227 -0
- package/dist/src/services/worker/queue.js.map +1 -0
- package/dist/src/services/worker/recorder.d.ts +17 -0
- package/dist/src/services/worker/recorder.d.ts.map +1 -0
- package/dist/src/services/worker/recorder.js +88 -0
- package/dist/src/services/worker/recorder.js.map +1 -0
- package/dist/src/services/worker/runner.d.ts +37 -0
- package/dist/src/services/worker/runner.d.ts.map +1 -0
- package/dist/src/services/worker/runner.js +319 -0
- package/dist/src/services/worker/runner.js.map +1 -0
- package/dist/src/services/worker/types.d.ts +63 -0
- package/dist/src/services/worker/types.d.ts.map +1 -0
- package/dist/src/services/worker/types.js +38 -0
- package/dist/src/services/worker/types.js.map +1 -0
- package/dist/src/srpc/SrpcByteStream.d.ts +60 -0
- package/dist/src/srpc/SrpcByteStream.d.ts.map +1 -0
- package/dist/src/srpc/SrpcByteStream.js +237 -0
- package/dist/src/srpc/SrpcByteStream.js.map +1 -0
- package/dist/src/srpc/SrpcClient.d.ts +67 -0
- package/dist/src/srpc/SrpcClient.d.ts.map +1 -0
- package/dist/src/srpc/SrpcClient.js +406 -0
- package/dist/src/srpc/SrpcClient.js.map +1 -0
- package/dist/src/srpc/SrpcServer.d.ts +56 -0
- package/dist/src/srpc/SrpcServer.d.ts.map +1 -0
- package/dist/src/srpc/SrpcServer.js +519 -0
- package/dist/src/srpc/SrpcServer.js.map +1 -0
- package/dist/src/srpc/index.d.ts +9 -0
- package/dist/src/srpc/index.d.ts.map +1 -0
- package/dist/src/srpc/index.js +17 -0
- package/dist/src/srpc/index.js.map +1 -0
- package/dist/src/srpc/observer.d.ts +21 -0
- package/dist/src/srpc/observer.d.ts.map +1 -0
- package/dist/src/srpc/observer.js +22 -0
- package/dist/src/srpc/observer.js.map +1 -0
- package/dist/src/srpc/types.d.ts +92 -0
- package/dist/src/srpc/types.d.ts.map +1 -0
- package/dist/src/srpc/types.js +28 -0
- package/dist/src/srpc/types.js.map +1 -0
- package/dist/src/telemetry/index.d.ts +3 -0
- package/dist/src/telemetry/index.d.ts.map +1 -0
- package/dist/src/telemetry/index.js +22 -0
- package/dist/src/telemetry/index.js.map +1 -0
- package/dist/src/telemetry/otel/helpers.d.ts +45 -0
- package/dist/src/telemetry/otel/helpers.d.ts.map +1 -0
- package/dist/src/telemetry/otel/helpers.js +142 -0
- package/dist/src/telemetry/otel/helpers.js.map +1 -0
- package/dist/src/telemetry/otel/index.d.ts +22 -0
- package/dist/src/telemetry/otel/index.d.ts.map +1 -0
- package/dist/src/telemetry/otel/index.js +268 -0
- package/dist/src/telemetry/otel/index.js.map +1 -0
- package/dist/src/telemetry/otel/metrics.controller.d.ts +5 -0
- package/dist/src/telemetry/otel/metrics.controller.d.ts.map +1 -0
- package/dist/src/telemetry/otel/metrics.controller.js +82 -0
- package/dist/src/telemetry/otel/metrics.controller.js.map +1 -0
- package/dist/src/telemetry/otel/metrics.d.ts +2 -0
- package/dist/src/telemetry/otel/metrics.d.ts.map +1 -0
- package/dist/src/telemetry/otel/metrics.js +16 -0
- package/dist/src/telemetry/otel/metrics.js.map +1 -0
- package/dist/src/telemetry/sentry.d.ts +9 -0
- package/dist/src/telemetry/sentry.d.ts.map +1 -0
- package/dist/src/telemetry/sentry.js +63 -0
- package/dist/src/telemetry/sentry.js.map +1 -0
- package/dist/src/testing/database-readiness.d.ts +11 -0
- package/dist/src/testing/database-readiness.d.ts.map +1 -0
- package/dist/src/testing/database-readiness.js +102 -0
- package/dist/src/testing/database-readiness.js.map +1 -0
- package/dist/src/testing/expect.d.ts +21 -0
- package/dist/src/testing/expect.d.ts.map +1 -0
- package/dist/src/testing/expect.js +110 -0
- package/dist/src/testing/expect.js.map +1 -0
- package/dist/src/testing/fixtures.d.ts +18 -0
- package/dist/src/testing/fixtures.d.ts.map +1 -0
- package/dist/src/testing/fixtures.js +46 -0
- package/dist/src/testing/fixtures.js.map +1 -0
- package/dist/src/testing/index.d.ts +143 -0
- package/dist/src/testing/index.d.ts.map +1 -0
- package/dist/src/testing/index.js +993 -0
- package/dist/src/testing/index.js.map +1 -0
- package/dist/src/testing/mysql-session-manager-process.d.ts +3 -0
- package/dist/src/testing/mysql-session-manager-process.d.ts.map +1 -0
- package/dist/src/testing/mysql-session-manager-process.js +77 -0
- package/dist/src/testing/mysql-session-manager-process.js.map +1 -0
- package/dist/src/testing/mysql-session-manager.d.ts +59 -0
- package/dist/src/testing/mysql-session-manager.d.ts.map +1 -0
- package/dist/src/testing/mysql-session-manager.js +910 -0
- package/dist/src/testing/mysql-session-manager.js.map +1 -0
- package/dist/src/testing/sql.d.ts +47 -0
- package/dist/src/testing/sql.d.ts.map +1 -0
- package/dist/src/testing/sql.js +313 -0
- package/dist/src/testing/sql.js.map +1 -0
- package/dist/src/type-compiler/go/ast_expression.go +161 -0
- package/dist/src/type-compiler/go/ast_metadata.go +355 -0
- package/dist/src/type-compiler/go/collect.go +806 -0
- package/dist/src/type-compiler/go/emission_plan.go +205 -0
- package/dist/src/type-compiler/go/emit_ast.go +406 -0
- package/dist/src/type-compiler/go/emit_ast_test.go +248 -0
- package/dist/src/type-compiler/go/go.mod +10 -0
- package/dist/src/type-compiler/go/plugin.go +308 -0
- package/dist/src/type-compiler/go/plugin_test.go +752 -0
- package/dist/src/type-compiler/go/precompute.go +86 -0
- package/dist/src/type-compiler/go/receive_type.go +837 -0
- package/dist/src/type-compiler/go/resolve.go +265 -0
- package/dist/src/type-compiler/go/source_scan.go +51 -0
- package/dist/src/type-compiler/go/text_parse.go +671 -0
- package/dist/src/type-compiler/go/type_expr.go +1227 -0
- package/dist/src/type-compiler/go/typia_expr.go +2119 -0
- package/dist/src/type-compiler/index.cjs +6 -0
- package/dist/src/types/index.d.ts +7 -0
- package/dist/src/types/index.d.ts.map +1 -0
- package/dist/src/types/index.js +14 -0
- package/dist/src/types/index.js.map +1 -0
- package/dist/src/types/phone.d.ts +6 -0
- package/dist/src/types/phone.d.ts.map +1 -0
- package/dist/src/types/phone.js +64 -0
- package/dist/src/types/phone.js.map +1 -0
- package/dist/src/types/primitives.d.ts +33 -0
- package/dist/src/types/primitives.d.ts.map +1 -0
- package/dist/src/types/primitives.js +5 -0
- package/dist/src/types/primitives.js.map +1 -0
- package/dist/src/types/runtime.d.ts +5 -0
- package/dist/src/types/runtime.d.ts.map +1 -0
- package/dist/src/types/runtime.js +20 -0
- package/dist/src/types/runtime.js.map +1 -0
- package/dist/src/types/type-annotations.d.ts +28 -0
- package/dist/src/types/type-annotations.d.ts.map +1 -0
- package/dist/src/types/type-annotations.js +33 -0
- package/dist/src/types/type-annotations.js.map +1 -0
- package/dist/src/types.d.ts +2 -0
- package/dist/src/types.d.ts.map +1 -0
- package/dist/src/types.js +7 -0
- package/dist/src/types.js.map +1 -0
- package/docs/.vitepress/config.mts +85 -0
- package/docs/content/CONTRIBUTING.md +53 -0
- package/docs/content/README-DEV.md +59 -0
- package/docs/content/README.md +52 -0
- package/docs/content/authentication.md +213 -0
- package/docs/content/cli.md +214 -0
- package/docs/content/configuration.md +191 -0
- package/docs/content/database.md +476 -0
- package/docs/content/devconsole.md +148 -0
- package/docs/content/di.md +212 -0
- package/docs/content/documentation-plan.md +182 -0
- package/docs/content/env.md +120 -0
- package/docs/content/getting-started.md +324 -0
- package/docs/content/health.md +64 -0
- package/docs/content/helpers.md +294 -0
- package/docs/content/http.md +402 -0
- package/docs/content/index.md +109 -0
- package/docs/content/leader-service.md +98 -0
- package/docs/content/logging.md +225 -0
- package/docs/content/mail.md +171 -0
- package/docs/content/mesh-client.md +333 -0
- package/docs/content/mesh-service.md +255 -0
- package/docs/content/migrations.md +190 -0
- package/docs/content/openapi.md +134 -0
- package/docs/content/overview.md +98 -0
- package/docs/content/public/images/devconsole/01-dashboard.png +0 -0
- package/docs/content/public/images/devconsole/02-routes.png +0 -0
- package/docs/content/public/images/devconsole/03-openapi.png +0 -0
- package/docs/content/public/images/devconsole/04-requests.png +0 -0
- package/docs/content/public/images/devconsole/05-srpc.png +0 -0
- package/docs/content/public/images/devconsole/06-database.png +0 -0
- package/docs/content/public/images/devconsole/06b-database-log.png +0 -0
- package/docs/content/public/images/devconsole/07-health.png +0 -0
- package/docs/content/public/images/devconsole/08-mutex.png +0 -0
- package/docs/content/public/images/devconsole/09-repl.png +0 -0
- package/docs/content/public/images/devconsole/10-workers.png +0 -0
- package/docs/content/public-api.md +84 -0
- package/docs/content/redis.md +174 -0
- package/docs/content/reflection.md +180 -0
- package/docs/content/release.md +100 -0
- package/docs/content/sql.md +121 -0
- package/docs/content/srpc.md +292 -0
- package/docs/content/telemetry.md +173 -0
- package/docs/content/testing.md +327 -0
- package/docs/content/type-reflection-architecture.md +149 -0
- package/docs/content/types.md +286 -0
- package/docs/content/uploads.md +145 -0
- package/docs/content/worker.md +182 -0
- package/docs/openapi.md +3 -0
- package/package.json +124 -0
- package/resources/proto/devconsole.proto +286 -0
- package/template-app/.env.development +10 -0
- package/template-app/gitignore.tmpl +11 -0
- package/template-app/package.json.tmpl +25 -0
- package/template-app/src/app.ts +13 -0
- package/template-app/src/config.ts +5 -0
- package/template-app/src/controllers/Example.controller.ts +19 -0
- package/template-app/src/database.ts +5 -0
- package/template-app/src/entities/Example.entity.ts +9 -0
- package/template-app/src/index.ts +7 -0
- package/template-app/src/migrations/.gitkeep +2 -0
- package/template-app/src/services/Example.service.ts +20 -0
- package/template-app/tests/app.spec.ts +8 -0
- package/template-app/tsconfig.json +26 -0
- package/template-app/tsconfig.test.json +5 -0
- package/types.d.ts +4 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/openapi/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ReflectionKind, type Type, type ValidationAnnotation } from './model';
|
|
2
|
+
export declare function isUUIDType(type: Type): boolean;
|
|
3
|
+
export declare function isDatabaseUUIDType(type: Type): boolean;
|
|
4
|
+
export declare const typeAnnotation: {
|
|
5
|
+
getType(type: Type, name: string): Type | undefined;
|
|
6
|
+
getOption(type: Type, name: string): unknown;
|
|
7
|
+
};
|
|
8
|
+
export declare const validationAnnotation: {
|
|
9
|
+
getAnnotations(type: Type): ValidationAnnotation[];
|
|
10
|
+
};
|
|
11
|
+
export declare const databaseAnnotation: {
|
|
12
|
+
getDatabase<T = any>(type: Type, dialect: string): T | undefined;
|
|
13
|
+
};
|
|
14
|
+
export declare function knownPrimitiveKind(type: Type): ReflectionKind.string | ReflectionKind.number | ReflectionKind.boolean | undefined;
|
|
15
|
+
//# sourceMappingURL=annotations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.d.ts","sourceRoot":"","sources":["../../../src/reflection/annotations.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,KAAK,IAAI,EAAE,KAAK,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAE/E,wBAAgB,UAAU,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAG9C;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,OAAO,CAGtD;AAED,eAAO,MAAM,cAAc;IACvB,OAAO,OAAO,IAAI,QAAQ,MAAM,GAAG,IAAI,GAAG,SAAS;IAMnD,SAAS,OAAO,IAAI,QAAQ,MAAM,GAAG,OAAO;CAG/C,CAAC;AAEF,eAAO,MAAM,oBAAoB;IAC7B,cAAc,OAAO,IAAI,GAAG,oBAAoB,EAAE;CAuBrD,CAAC;AAEF,eAAO,MAAM,kBAAkB;IAC3B,WAAW,CAAC,CAAC,GAAG,GAAG,QAAQ,IAAI,WAAW,MAAM,GAAG,CAAC,GAAG,SAAS;CAenE,CAAC;AA2JF,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,MAAM,GAAG,cAAc,CAAC,OAAO,GAAG,SAAS,CAMjI"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.__tsfTypeAliases = exports.databaseAnnotation = exports.validationAnnotation = exports.typeAnnotation = void 0;
|
|
4
|
+
exports.isUUIDType = isUUIDType;
|
|
5
|
+
exports.isDatabaseUUIDType = isDatabaseUUIDType;
|
|
6
|
+
exports.knownPrimitiveKind = knownPrimitiveKind;
|
|
7
|
+
const type_utils_1 = require("./type-utils");
|
|
8
|
+
const model_1 = require("./model");
|
|
9
|
+
function isUUIDType(type) {
|
|
10
|
+
const annotation = exports.typeAnnotation.getType(type, 'tsf:type');
|
|
11
|
+
return annotation?.kind === model_1.ReflectionKind.literal && (annotation.literal === 'uuid' || annotation.literal === 'uuidString');
|
|
12
|
+
}
|
|
13
|
+
function isDatabaseUUIDType(type) {
|
|
14
|
+
const annotation = exports.typeAnnotation.getType(type, 'tsf:type');
|
|
15
|
+
return annotation?.kind === model_1.ReflectionKind.literal && annotation.literal === 'uuid';
|
|
16
|
+
}
|
|
17
|
+
exports.typeAnnotation = {
|
|
18
|
+
getType(type, name) {
|
|
19
|
+
const direct = type.annotations?.[name];
|
|
20
|
+
if (direct)
|
|
21
|
+
return direct;
|
|
22
|
+
return (0, type_utils_1.findNestedSurface)(type, child => child.annotations?.[name]) ?? findTypiaTagTypeAnnotation(type, name);
|
|
23
|
+
},
|
|
24
|
+
getOption(type, name) {
|
|
25
|
+
return this.getType(type, name);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.validationAnnotation = {
|
|
29
|
+
getAnnotations(type) {
|
|
30
|
+
const result = [];
|
|
31
|
+
const seen = new Set();
|
|
32
|
+
(0, type_utils_1.visitTypeSurface)(type, child => {
|
|
33
|
+
if (child.validation) {
|
|
34
|
+
for (const annotation of child.validation) {
|
|
35
|
+
const key = validationAnnotationKey(annotation);
|
|
36
|
+
if (seen.has(key))
|
|
37
|
+
continue;
|
|
38
|
+
seen.add(key);
|
|
39
|
+
result.push(annotation);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
const typiaAnnotation = typiaTagValidationAnnotation(child);
|
|
43
|
+
if (typiaAnnotation) {
|
|
44
|
+
const key = validationAnnotationKey(typiaAnnotation);
|
|
45
|
+
if (!seen.has(key)) {
|
|
46
|
+
seen.add(key);
|
|
47
|
+
result.push(typiaAnnotation);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
});
|
|
51
|
+
return result;
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.databaseAnnotation = {
|
|
55
|
+
getDatabase(type, dialect) {
|
|
56
|
+
const direct = type.database?.[dialect] ?? (dialect !== '*' ? type.database?.['*'] : undefined);
|
|
57
|
+
if (direct)
|
|
58
|
+
return direct;
|
|
59
|
+
if (type.kind === model_1.ReflectionKind.union) {
|
|
60
|
+
const concrete = type.types.filter(item => item.kind !== model_1.ReflectionKind.null && item.kind !== model_1.ReflectionKind.undefined);
|
|
61
|
+
if (concrete.length === 1)
|
|
62
|
+
return this.getDatabase(concrete[0], dialect);
|
|
63
|
+
return undefined;
|
|
64
|
+
}
|
|
65
|
+
const nested = (0, type_utils_1.findNestedSurface)(type, child => child.database?.[dialect] ?? (dialect !== '*' ? child.database?.['*'] : undefined));
|
|
66
|
+
if (nested)
|
|
67
|
+
return nested;
|
|
68
|
+
const typia = findTypiaTagDatabase(type, dialect);
|
|
69
|
+
if (typia)
|
|
70
|
+
return typia;
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
const undefinedType = { kind: model_1.ReflectionKind.undefined };
|
|
74
|
+
function literalType(literal) {
|
|
75
|
+
return { kind: model_1.ReflectionKind.literal, literal };
|
|
76
|
+
}
|
|
77
|
+
function validation(name, ...args) {
|
|
78
|
+
return { name, args };
|
|
79
|
+
}
|
|
80
|
+
function findTypiaTagTypeAnnotation(type, name) {
|
|
81
|
+
return findSurface(type, child => typiaTagTypeAnnotation(child, name));
|
|
82
|
+
}
|
|
83
|
+
function typiaTagTypeAnnotation(type, name) {
|
|
84
|
+
const tag = readTypiaTag(type);
|
|
85
|
+
if (!tag || tag.kind !== name)
|
|
86
|
+
return undefined;
|
|
87
|
+
if (!tag.kind.startsWith('tsf:') && !tag.kind.startsWith('openapi:'))
|
|
88
|
+
return undefined;
|
|
89
|
+
return tag.value ?? undefinedType;
|
|
90
|
+
}
|
|
91
|
+
function typiaTagValidationAnnotation(type) {
|
|
92
|
+
const tag = readTypiaTag(type);
|
|
93
|
+
if (!tag)
|
|
94
|
+
return undefined;
|
|
95
|
+
switch (tag.kind) {
|
|
96
|
+
case 'minLength':
|
|
97
|
+
case 'maxLength':
|
|
98
|
+
case 'minimum':
|
|
99
|
+
case 'greaterThan':
|
|
100
|
+
case 'maximum':
|
|
101
|
+
case 'lessThan':
|
|
102
|
+
return tag.value ? validation(tag.kind, tag.value) : undefined;
|
|
103
|
+
case 'pattern':
|
|
104
|
+
return validation('pattern', tag.value ?? schemaProperty(tag.schema, 'pattern') ?? undefinedType);
|
|
105
|
+
case 'format': {
|
|
106
|
+
const format = literalString(tag.value) ?? literalString(schemaProperty(tag.schema, 'format'));
|
|
107
|
+
const pattern = format ? formatPattern(format) : undefined;
|
|
108
|
+
return pattern ? validation('pattern', literalType(pattern)) : undefined;
|
|
109
|
+
}
|
|
110
|
+
case 'tsf:validator':
|
|
111
|
+
return validation('validator', tag.value ?? undefinedType);
|
|
112
|
+
default:
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
function findTypiaTagDatabase(type, dialect) {
|
|
117
|
+
return findSurface(type, child => typiaTagDatabase(child, dialect));
|
|
118
|
+
}
|
|
119
|
+
function typiaTagDatabase(type, dialect) {
|
|
120
|
+
const tag = readTypiaTag(type);
|
|
121
|
+
if (!tag)
|
|
122
|
+
return undefined;
|
|
123
|
+
const payload = plainObjectFromType(tag.schema) ?? plainObjectFromType(tag.value);
|
|
124
|
+
if (!payload)
|
|
125
|
+
return undefined;
|
|
126
|
+
if (tag.kind === 'database:field')
|
|
127
|
+
return payload;
|
|
128
|
+
if (tag.kind === 'database:mysql' && dialect === 'mysql')
|
|
129
|
+
return payload;
|
|
130
|
+
}
|
|
131
|
+
function readTypiaTag(type) {
|
|
132
|
+
if (type.kind !== model_1.ReflectionKind.objectLiteral)
|
|
133
|
+
return undefined;
|
|
134
|
+
const tagProperty = type.types.find(property => String(property.name) === 'typia.tag');
|
|
135
|
+
if (!tagProperty)
|
|
136
|
+
return undefined;
|
|
137
|
+
const tagType = unwrapOptionalType(tagProperty.type);
|
|
138
|
+
if (tagType.kind !== model_1.ReflectionKind.objectLiteral)
|
|
139
|
+
return undefined;
|
|
140
|
+
const kind = literalString(schemaProperty(tagType, 'kind'));
|
|
141
|
+
if (!kind)
|
|
142
|
+
return undefined;
|
|
143
|
+
return {
|
|
144
|
+
kind,
|
|
145
|
+
value: schemaProperty(tagType, 'value'),
|
|
146
|
+
schema: schemaProperty(tagType, 'schema')
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
function schemaProperty(type, name) {
|
|
150
|
+
const concrete = type ? unwrapOptionalType(type) : undefined;
|
|
151
|
+
if (!concrete || concrete.kind !== model_1.ReflectionKind.objectLiteral)
|
|
152
|
+
return undefined;
|
|
153
|
+
return concrete.types.find(property => String(property.name) === name)?.type;
|
|
154
|
+
}
|
|
155
|
+
function unwrapOptionalType(type) {
|
|
156
|
+
if (type.kind !== model_1.ReflectionKind.union)
|
|
157
|
+
return type;
|
|
158
|
+
const concrete = type.types.filter(item => item.kind !== model_1.ReflectionKind.undefined && item.kind !== model_1.ReflectionKind.null);
|
|
159
|
+
return concrete.length === 1 ? concrete[0] : type;
|
|
160
|
+
}
|
|
161
|
+
function literalString(type) {
|
|
162
|
+
return type?.kind === model_1.ReflectionKind.literal && typeof type.literal === 'string' ? type.literal : undefined;
|
|
163
|
+
}
|
|
164
|
+
function plainObjectFromType(type) {
|
|
165
|
+
const concrete = type ? unwrapOptionalType(type) : undefined;
|
|
166
|
+
if (!concrete || concrete.kind !== model_1.ReflectionKind.objectLiteral)
|
|
167
|
+
return undefined;
|
|
168
|
+
const result = {};
|
|
169
|
+
for (const property of concrete.types) {
|
|
170
|
+
const value = plainValueFromType(property.type);
|
|
171
|
+
if (value !== undefined)
|
|
172
|
+
result[String(property.name)] = value;
|
|
173
|
+
}
|
|
174
|
+
return result;
|
|
175
|
+
}
|
|
176
|
+
function plainValueFromType(type) {
|
|
177
|
+
const concrete = unwrapOptionalType(type);
|
|
178
|
+
if (concrete.kind === model_1.ReflectionKind.literal)
|
|
179
|
+
return concrete.literal;
|
|
180
|
+
if (concrete.kind === model_1.ReflectionKind.undefined)
|
|
181
|
+
return undefined;
|
|
182
|
+
if (concrete.kind === model_1.ReflectionKind.objectLiteral)
|
|
183
|
+
return plainObjectFromType(concrete);
|
|
184
|
+
return undefined;
|
|
185
|
+
}
|
|
186
|
+
function findSurface(type, predicate) {
|
|
187
|
+
let result;
|
|
188
|
+
(0, type_utils_1.visitTypeSurface)(type, child => {
|
|
189
|
+
if (result !== undefined)
|
|
190
|
+
return;
|
|
191
|
+
result = predicate(child);
|
|
192
|
+
});
|
|
193
|
+
return result;
|
|
194
|
+
}
|
|
195
|
+
function formatPattern(format) {
|
|
196
|
+
switch (format) {
|
|
197
|
+
case 'date':
|
|
198
|
+
return '^\\d{4}-\\d{2}-\\d{2}$';
|
|
199
|
+
case 'email':
|
|
200
|
+
return '^[a-zA-Z0-9_+.-]+@[a-zA-Z0-9-.]+\\.[a-zA-Z]+$';
|
|
201
|
+
case 'uuid':
|
|
202
|
+
return '^(?:urn:uuid:)?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$';
|
|
203
|
+
default:
|
|
204
|
+
return undefined;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
function validationAnnotationKey(annotation) {
|
|
208
|
+
return `${annotation.name}:${annotation.args.map(validationAnnotationArgKey).join('|')}`;
|
|
209
|
+
}
|
|
210
|
+
function validationAnnotationArgKey(type) {
|
|
211
|
+
if (type.kind === model_1.ReflectionKind.literal && 'literal' in type)
|
|
212
|
+
return `literal:${String(type.literal)}`;
|
|
213
|
+
const runtime = type.runtime;
|
|
214
|
+
if (runtime)
|
|
215
|
+
return `runtime:${String(runtime)}`;
|
|
216
|
+
return `${type.kind}:${type.typeName ?? ''}`;
|
|
217
|
+
}
|
|
218
|
+
function knownPrimitiveKind(type) {
|
|
219
|
+
const foundationType = exports.typeAnnotation.getType(type, 'tsf:type');
|
|
220
|
+
if (foundationType?.kind === model_1.ReflectionKind.literal) {
|
|
221
|
+
if (foundationType.literal === 'integer')
|
|
222
|
+
return model_1.ReflectionKind.number;
|
|
223
|
+
if (typeof foundationType.literal === 'string')
|
|
224
|
+
return model_1.ReflectionKind.string;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
exports.__tsfTypeAliases = ({ "TypiaTag": { kind: 18, typeName: "TypiaTag", types: [{ kind: 20, name: "kind", type: { kind: 6 }, optional: false }, { kind: 20, name: "value", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 12, types: [{ kind: 16, typeName: "ReflectionKind.never", classType: () => ReflectionKind.never }, { kind: 16, typeName: "ReflectionKind.any", classType: () => ReflectionKind.any }, { kind: 16, typeName: "ReflectionKind.unknown", classType: () => ReflectionKind.unknown }, { kind: 16, typeName: "ReflectionKind.void", classType: () => ReflectionKind.void }, { kind: 16, typeName: "ReflectionKind.undefined", classType: () => ReflectionKind.undefined }, { kind: 16, typeName: "ReflectionKind.null", classType: () => ReflectionKind.null }, { kind: 16, typeName: "ReflectionKind.string", classType: () => ReflectionKind.string }, { kind: 16, typeName: "ReflectionKind.number", classType: () => ReflectionKind.number }, { kind: 16, typeName: "ReflectionKind.boolean", classType: () => ReflectionKind.boolean }, { kind: 16, typeName: "ReflectionKind.bigint", classType: () => ReflectionKind.bigint }, { kind: 16, typeName: "ReflectionKind.object", classType: () => ReflectionKind.object }, { kind: 16, typeName: "ReflectionKind.method", classType: () => ReflectionKind.method }, { kind: 16, typeName: "ReflectionKind.templateLiteral", classType: () => ReflectionKind.templateLiteral }], typeName: "PrimitiveReflectionKind" }], typeName: "TypePrimitive" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.literal", classType: () => ReflectionKind.literal }] }, { kind: 18, types: [{ kind: 20, name: "literal", type: { kind: 2 }, optional: false }] }], typeName: "TypeLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.enum", classType: () => ReflectionKind.enum }] }, { kind: 18, types: [{ kind: 20, name: "values", type: { kind: 14, type: { kind: 2 } }, optional: false }] }], typeName: "TypeEnum" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.union", classType: () => ReflectionKind.union }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeUnion" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.intersection", classType: () => ReflectionKind.intersection }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeIntersection" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.array", classType: () => ReflectionKind.array }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeArray" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.promise", classType: () => ReflectionKind.promise }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypePromise" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.tuple", classType: () => ReflectionKind.tuple }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 13, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeTupleEntry" } }, optional: false }] }], typeName: "TypeTuple" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.class", classType: () => ReflectionKind.class }] }, { kind: 18, types: [{ kind: 20, name: "classType", type: { kind: 2, typeName: "ClassType" }, optional: false }] }], typeName: "TypeClass" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.objectLiteral", classType: () => ReflectionKind.objectLiteral }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "index", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "implements", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, { kind: 4 }] }, optional: true }] }], typeName: "TypeObjectLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.property", classType: () => ReflectionKind.property }] }, { kind: 18, types: [{ kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 12, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 12, types: [{ kind: 16, typeName: "ReflectionKind.never", classType: () => ReflectionKind.never }, { kind: 16, typeName: "ReflectionKind.any", classType: () => ReflectionKind.any }, { kind: 16, typeName: "ReflectionKind.unknown", classType: () => ReflectionKind.unknown }, { kind: 16, typeName: "ReflectionKind.void", classType: () => ReflectionKind.void }, { kind: 16, typeName: "ReflectionKind.undefined", classType: () => ReflectionKind.undefined }, { kind: 16, typeName: "ReflectionKind.null", classType: () => ReflectionKind.null }, { kind: 16, typeName: "ReflectionKind.string", classType: () => ReflectionKind.string }, { kind: 16, typeName: "ReflectionKind.number", classType: () => ReflectionKind.number }, { kind: 16, typeName: "ReflectionKind.boolean", classType: () => ReflectionKind.boolean }, { kind: 16, typeName: "ReflectionKind.bigint", classType: () => ReflectionKind.bigint }, { kind: 16, typeName: "ReflectionKind.object", classType: () => ReflectionKind.object }, { kind: 16, typeName: "ReflectionKind.method", classType: () => ReflectionKind.method }, { kind: 16, typeName: "ReflectionKind.templateLiteral", classType: () => ReflectionKind.templateLiteral }], typeName: "PrimitiveReflectionKind" }], typeName: "TypePrimitive" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.literal", classType: () => ReflectionKind.literal }] }, { kind: 18, types: [{ kind: 20, name: "literal", type: { kind: 2 }, optional: false }] }], typeName: "TypeLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.enum", classType: () => ReflectionKind.enum }] }, { kind: 18, types: [{ kind: 20, name: "values", type: { kind: 14, type: { kind: 2 } }, optional: false }] }], typeName: "TypeEnum" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.union", classType: () => ReflectionKind.union }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] }], typeName: "TypeUnion" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.intersection", classType: () => ReflectionKind.intersection }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] }], typeName: "TypeIntersection" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.array", classType: () => ReflectionKind.array }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypeArray" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.promise", classType: () => ReflectionKind.promise }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypePromise" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.tuple", classType: () => ReflectionKind.tuple }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 13, types: [{ kind: 2, typeName: "Type" }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypeTupleEntry" } }, optional: false }] }], typeName: "TypeTuple" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.class", classType: () => ReflectionKind.class }] }, { kind: 18, types: [{ kind: 20, name: "classType", type: { kind: 2, typeName: "ClassType" }, optional: false }] }], typeName: "TypeClass" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.objectLiteral", classType: () => ReflectionKind.objectLiteral }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "Type" }], index: { kind: 2, typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "index", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "implements", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "Type" } }, { kind: 4 }] }, optional: true }] }], typeName: "TypeObjectLiteral" }, { kind: 2, typeName: "TypeBase<ReflectionKind.property> & {\n name: string | number | symbol;\n type: Type;\n optional?: boolean;\n}", typeName: "TypeProperty" }, { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "Type" }], index: { kind: 2, typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "TypeProperty" }, { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "schema", type: { kind: 12, types: [{ kind: 12, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 12, types: [{ kind: 16, typeName: "ReflectionKind.never", classType: () => ReflectionKind.never }, { kind: 16, typeName: "ReflectionKind.any", classType: () => ReflectionKind.any }, { kind: 16, typeName: "ReflectionKind.unknown", classType: () => ReflectionKind.unknown }, { kind: 16, typeName: "ReflectionKind.void", classType: () => ReflectionKind.void }, { kind: 16, typeName: "ReflectionKind.undefined", classType: () => ReflectionKind.undefined }, { kind: 16, typeName: "ReflectionKind.null", classType: () => ReflectionKind.null }, { kind: 16, typeName: "ReflectionKind.string", classType: () => ReflectionKind.string }, { kind: 16, typeName: "ReflectionKind.number", classType: () => ReflectionKind.number }, { kind: 16, typeName: "ReflectionKind.boolean", classType: () => ReflectionKind.boolean }, { kind: 16, typeName: "ReflectionKind.bigint", classType: () => ReflectionKind.bigint }, { kind: 16, typeName: "ReflectionKind.object", classType: () => ReflectionKind.object }, { kind: 16, typeName: "ReflectionKind.method", classType: () => ReflectionKind.method }, { kind: 16, typeName: "ReflectionKind.templateLiteral", classType: () => ReflectionKind.templateLiteral }], typeName: "PrimitiveReflectionKind" }], typeName: "TypePrimitive" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.literal", classType: () => ReflectionKind.literal }] }, { kind: 18, types: [{ kind: 20, name: "literal", type: { kind: 2 }, optional: false }] }], typeName: "TypeLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.enum", classType: () => ReflectionKind.enum }] }, { kind: 18, types: [{ kind: 20, name: "values", type: { kind: 14, type: { kind: 2 } }, optional: false }] }], typeName: "TypeEnum" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.union", classType: () => ReflectionKind.union }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeUnion" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.intersection", classType: () => ReflectionKind.intersection }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] }], typeName: "TypeIntersection" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.array", classType: () => ReflectionKind.array }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeArray" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.promise", classType: () => ReflectionKind.promise }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypePromise" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.tuple", classType: () => ReflectionKind.tuple }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 13, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }] }], typeName: "TypeTupleEntry" } }, optional: false }] }], typeName: "TypeTuple" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.class", classType: () => ReflectionKind.class }] }, { kind: 18, types: [{ kind: 20, name: "classType", type: { kind: 2, typeName: "ClassType" }, optional: false }] }], typeName: "TypeClass" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.objectLiteral", classType: () => ReflectionKind.objectLiteral }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "index", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "implements", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, { kind: 4 }] }, optional: true }] }], typeName: "TypeObjectLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.property", classType: () => ReflectionKind.property }] }, { kind: 18, types: [{ kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 12, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 12, types: [{ kind: 16, typeName: "ReflectionKind.never", classType: () => ReflectionKind.never }, { kind: 16, typeName: "ReflectionKind.any", classType: () => ReflectionKind.any }, { kind: 16, typeName: "ReflectionKind.unknown", classType: () => ReflectionKind.unknown }, { kind: 16, typeName: "ReflectionKind.void", classType: () => ReflectionKind.void }, { kind: 16, typeName: "ReflectionKind.undefined", classType: () => ReflectionKind.undefined }, { kind: 16, typeName: "ReflectionKind.null", classType: () => ReflectionKind.null }, { kind: 16, typeName: "ReflectionKind.string", classType: () => ReflectionKind.string }, { kind: 16, typeName: "ReflectionKind.number", classType: () => ReflectionKind.number }, { kind: 16, typeName: "ReflectionKind.boolean", classType: () => ReflectionKind.boolean }, { kind: 16, typeName: "ReflectionKind.bigint", classType: () => ReflectionKind.bigint }, { kind: 16, typeName: "ReflectionKind.object", classType: () => ReflectionKind.object }, { kind: 16, typeName: "ReflectionKind.method", classType: () => ReflectionKind.method }, { kind: 16, typeName: "ReflectionKind.templateLiteral", classType: () => ReflectionKind.templateLiteral }], typeName: "PrimitiveReflectionKind" }], typeName: "TypePrimitive" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.literal", classType: () => ReflectionKind.literal }] }, { kind: 18, types: [{ kind: 20, name: "literal", type: { kind: 2 }, optional: false }] }], typeName: "TypeLiteral" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.enum", classType: () => ReflectionKind.enum }] }, { kind: 18, types: [{ kind: 20, name: "values", type: { kind: 14, type: { kind: 2 } }, optional: false }] }], typeName: "TypeEnum" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.union", classType: () => ReflectionKind.union }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] }], typeName: "TypeUnion" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.intersection", classType: () => ReflectionKind.intersection }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] }], typeName: "TypeIntersection" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.array", classType: () => ReflectionKind.array }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypeArray" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.promise", classType: () => ReflectionKind.promise }] }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypePromise" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.tuple", classType: () => ReflectionKind.tuple }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 13, types: [{ kind: 2, typeName: "Type" }, { kind: 18, types: [{ kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }] }], typeName: "TypeTupleEntry" } }, optional: false }] }], typeName: "TypeTuple" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.class", classType: () => ReflectionKind.class }] }, { kind: 18, types: [{ kind: 20, name: "classType", type: { kind: 2, typeName: "ClassType" }, optional: false }] }], typeName: "TypeClass" }, { kind: 13, types: [{ kind: 16, typeName: "TypeBase", classType: () => (typeof TypeBase !== "undefined" ? TypeBase : (typeof exports !== "undefined" ? exports.TypeBase : undefined)), typeArguments: [{ kind: 16, typeName: "ReflectionKind.objectLiteral", classType: () => ReflectionKind.objectLiteral }] }, { kind: 18, types: [{ kind: 20, name: "types", type: { kind: 14, type: { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "Type" }], index: { kind: 2, typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] } }, optional: false }, { kind: 20, name: "index", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "implements", type: { kind: 12, types: [{ kind: 14, type: { kind: 2, typeName: "Type" } }, { kind: 4 }] }, optional: true }] }], typeName: "TypeObjectLiteral" }, { kind: 2, typeName: "TypeBase<ReflectionKind.property> & {\n name: string | number | symbol;\n type: Type;\n optional?: boolean;\n}", typeName: "TypeProperty" }, { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "Type" }], index: { kind: 2, typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "TypeProperty" }, { kind: 18, typeName: "TypePropertySignature", types: [{ kind: 20, name: "kind", type: { kind: 2, typeName: "K" }, optional: false }, { kind: 20, name: "typeName", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "description", type: { kind: 12, types: [{ kind: 6 }, { kind: 4 }] }, optional: true }, { kind: 20, name: "parent", type: { kind: 12, types: [{ kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, { kind: 4 }] }, optional: true }, { kind: 20, name: "annotations", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }], index: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "validation", type: { kind: 12, types: [{ kind: 14, type: { kind: 18, typeName: "ValidationAnnotation", types: [{ kind: 20, name: "name", type: { kind: 6 }, optional: false }, { kind: 20, name: "args", type: { kind: 14, type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" } }, optional: false }] } }, { kind: 4 }] }, optional: true }, { kind: 20, name: "database", type: { kind: 12, types: [{ kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }], index: { kind: 18, typeName: "Record", utilityType: "Record", typeArguments: [{ kind: 6 }, { kind: 1 }], index: { kind: 1 }, types: [] }, types: [] }, { kind: 4 }] }, optional: true }, { kind: 20, name: "kind", type: { kind: 16, typeName: "ReflectionKind.propertySignature", classType: () => ReflectionKind.propertySignature }, optional: false }, { kind: 20, name: "name", type: { kind: 12, types: [{ kind: 6 }, { kind: 7 }, { kind: 2, typeName: "symbol" }] }, optional: false }, { kind: 20, name: "type", type: { kind: 2, typeName: "| TypePrimitive\n | TypeLiteral\n | TypeEnum\n | TypeUnion\n | TypeIntersection\n | TypeArray\n | TypePromise\n | TypeTuple\n | TypeClass\n | TypeObjectLiteral\n | TypeProperty\n | TypePropertySignature", typeName: "Type" }, optional: false }, { kind: 20, name: "optional", type: { kind: 12, types: [{ kind: 8 }, { kind: 4 }] }, optional: true }] }], typeName: "Type" }, { kind: 4 }] }, optional: true }] } });
|
|
228
|
+
//# sourceMappingURL=annotations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"annotations.js","sourceRoot":"","sources":["../../../src/reflection/annotations.ts"],"names":[],"mappings":";;;;;;AAAA,6CAAmE;AACnE,mCAA+E;AAE/E,oBAA2B,IAAU;IACjC,MAAM,UAAU,GAAG,QAAA,cAAc,CAAC,OAAO,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC5D,OAAO,UAAU,EAAE,IAAI,K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|
1
|
+
import { ValidatorError } from './errors';
|
|
2
|
+
import { type ClassType, type Type } from './model';
|
|
3
|
+
export type RuntimeValidator = (value: unknown) => ValidatorError | undefined | void;
|
|
4
|
+
export declare const validationRegistry: {
|
|
5
|
+
register(name: string, validator: RuntimeValidator): void;
|
|
6
|
+
get(name: string): RuntimeValidator | undefined;
|
|
7
|
+
};
|
|
8
|
+
export declare function validate<T>(value: unknown, target?: ClassType<T> | Type): ValidatorError[];
|
|
9
|
+
export declare function deserialize<T>(value: unknown, type?: Type): T;
|
|
10
|
+
export declare function validatedDeserialize<T>(value: unknown, _a?: unknown, _b?: unknown, _c?: unknown, type?: Type): T;
|
|
11
|
+
export declare function assert<T>(value: unknown, _deserializer?: unknown, type?: Type): asserts value is T;
|
|
12
|
+
export declare function is<T>(value: unknown, _deserializer?: unknown, type?: Type): value is T;
|
|
13
|
+
export declare function cast<T>(value: unknown, _deserializer?: unknown, _a?: unknown, _b?: unknown, type?: Type): T;
|
|
14
|
+
export declare function resolveReceiveType(value?: Type): Type;
|
|
15
|
+
//# sourceMappingURL=conversion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"conversion.d.ts","sourceRoot":"","sources":["../../../src/reflection/conversion.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAgB1C,OAAO,EAAmC,KAAK,SAAS,EAAE,KAAK,IAAI,EAAE,MAAM,SAAS,CAAC;AAErF,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,OAAO,KAAK,cAAc,GAAG,SAAS,GAAG,IAAI,CAAC;AAIrF,eAAO,MAAM,kBAAkB;IAC3B,QAAQ,OAAO,MAAM,aAAa,gBAAgB,GAAG,IAAI;IAIzD,GAAG,OAAO,MAAM,GAAG,gBAAgB,GAAG,SAAS;CAGlD,CAAC;AAEF,wBAAgB,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,CAAC,E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