@zintrust/core 3.1.1 → 3.1.3
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/package.json +24 -16
- package/src/auth/LoginFlow.d.ts +1 -1
- package/src/auth-index.d.ts +3 -3
- package/src/boot/Application.d.ts +1 -1
- package/src/boot/Server.d.ts +3 -3
- package/src/boot/registry/registerRoute.d.ts +1 -1
- package/src/boot/registry/runtime.d.ts +2 -2
- package/src/boot/registry/type.d.ts +3 -3
- package/src/boot/registry/worker.d.ts +1 -1
- package/src/bootstrap/service-manifest.d.ts +1 -1
- package/src/cache/Cache.d.ts +1 -1
- package/src/cache/CacheDriverRegistry.d.ts +2 -2
- package/src/cache/CacheRuntimeRegistration.d.ts +1 -1
- package/src/cache/drivers/KVDriver.d.ts +1 -1
- package/src/cache/drivers/KVRemoteDriver.d.ts +1 -1
- package/src/cache/drivers/MemoryDriver.d.ts +1 -1
- package/src/cache/drivers/MongoDriver.d.ts +1 -1
- package/src/cache/drivers/RedisDriver.d.ts +1 -1
- package/src/cli/cloudflare/CloudflareSecretSync.js +1 -1
- package/src/cli/cloudflare/CloudflareWranglerDevEnv.js +1 -1
- package/src/cli/commands/AddCommand.d.ts +2 -2
- package/src/cli/commands/BroadcastWorkCommand.d.ts +1 -1
- package/src/cli/commands/BroadcastWorkCommand.js +1 -1
- package/src/cli/commands/BulletproofKeyGenerateCommand.d.ts +1 -1
- package/src/cli/commands/ConfigCommand.d.ts +1 -1
- package/src/cli/commands/ContainerComposeLifecycle.js +1 -1
- package/src/cli/commands/ContainerProxiesCommand.d.ts +1 -1
- package/src/cli/commands/ContainerProxiesCommand.js +2 -2
- package/src/cli/commands/ContainerWorkersCommand.d.ts +1 -1
- package/src/cli/commands/ContainerWorkersCommand.js +2 -2
- package/src/cli/commands/CreateCommand.d.ts +1 -1
- package/src/cli/commands/D1LearnCommand.d.ts +1 -1
- package/src/cli/commands/D1MigrateCommand.d.ts +1 -1
- package/src/cli/commands/D1ProxyCommand.d.ts +1 -1
- package/src/cli/commands/D1ProxyCommand.js +2 -2
- package/src/cli/commands/DbSeedCommand.d.ts +1 -1
- package/src/cli/commands/DebugCommand.d.ts +1 -1
- package/src/cli/commands/DeployCommand.d.ts +1 -1
- package/src/cli/commands/DeployContainerProxiesCommand.d.ts +1 -1
- package/src/cli/commands/DeployContainerProxiesCommand.js +1 -1
- package/src/cli/commands/DeployContainerWorkersCommand.d.ts +1 -1
- package/src/cli/commands/DeployContainerWorkersCommand.js +1 -1
- package/src/cli/commands/DeployContainersProxyCommand.d.ts +1 -1
- package/src/cli/commands/DockerCommand.d.ts +1 -1
- package/src/cli/commands/DockerCommand.js +1 -1
- package/src/cli/commands/DockerPushCommand.d.ts +1 -1
- package/src/cli/commands/DoctorArchitectureCommand.d.ts +1 -1
- package/src/cli/commands/EmailProxyCommand.d.ts +1 -1
- package/src/cli/commands/EmailProxyCommand.js +2 -2
- package/src/cli/commands/EnvKeyGenerateCommand.d.ts +1 -1
- package/src/cli/commands/FixCommand.d.ts +1 -1
- package/src/cli/commands/InitContainerCommand.d.ts +1 -1
- package/src/cli/commands/InitContainersProxyCommand.d.ts +1 -1
- package/src/cli/commands/InitEcosystemCommand.d.ts +1 -1
- package/src/cli/commands/InitProducerCommand.d.ts +1 -1
- package/src/cli/commands/InitProxyCommand.d.ts +1 -1
- package/src/cli/commands/JwtDevCommand.d.ts +1 -1
- package/src/cli/commands/KeyGenerateCommand.d.ts +1 -1
- package/src/cli/commands/KvProxyCommand.d.ts +1 -1
- package/src/cli/commands/KvProxyCommand.js +2 -2
- package/src/cli/commands/LogsCleanupCommand.d.ts +1 -1
- package/src/cli/commands/LogsCommand.d.ts +1 -1
- package/src/cli/commands/MakeMailTemplateCommand.d.ts +1 -1
- package/src/cli/commands/MakeNotificationTemplateCommand.d.ts +1 -1
- package/src/cli/commands/MigrateCommand.d.ts +1 -1
- package/src/cli/commands/MigrateWorkerCommand.d.ts +1 -1
- package/src/cli/commands/MongoDBProxyCommand.js +1 -1
- package/src/cli/commands/MySqlProxyCommand.d.ts +1 -1
- package/src/cli/commands/MySqlProxyCommand.js +2 -2
- package/src/cli/commands/NewCommand.d.ts +1 -1
- package/src/cli/commands/NotificationWorkCommand.d.ts +1 -1
- package/src/cli/commands/NotificationWorkCommand.js +1 -1
- package/src/cli/commands/PluginCommand.d.ts +1 -1
- package/src/cli/commands/PostgresProxyCommand.d.ts +1 -1
- package/src/cli/commands/PostgresProxyCommand.js +2 -2
- package/src/cli/commands/PrepareCommand.d.ts +1 -1
- package/src/cli/commands/ProxyCommand.d.ts +8 -8
- package/src/cli/commands/PublishCommand.d.ts +1 -1
- package/src/cli/commands/PutCommand.d.ts +1 -1
- package/src/cli/commands/QACommand.d.ts +1 -1
- package/src/cli/commands/QueueCommand.d.ts +1 -1
- package/src/cli/commands/QueueCommand.js +2 -2
- package/src/cli/commands/QueueRecoveryCommand.d.ts +1 -1
- package/src/cli/commands/QueueWorkCommandUtils.d.ts +1 -1
- package/src/cli/commands/RedisProxyCommand.d.ts +1 -1
- package/src/cli/commands/RedisProxyCommand.js +1 -1
- package/src/cli/commands/RedisRpcCommand.d.ts +1 -1
- package/src/cli/commands/RedisRpcCommand.js +1 -1
- package/src/cli/commands/ResourceControlCommand.d.ts +1 -1
- package/src/cli/commands/RoutesCommand.d.ts +1 -1
- package/src/cli/commands/ScheduleListCommand.d.ts +1 -1
- package/src/cli/commands/ScheduleListCommand.js +1 -1
- package/src/cli/commands/ScheduleRunCommand.d.ts +1 -1
- package/src/cli/commands/ScheduleRunCommand.js +1 -1
- package/src/cli/commands/ScheduleStartCommand.d.ts +1 -1
- package/src/cli/commands/ScheduleStartCommand.js +1 -1
- package/src/cli/commands/SecretsCommand.d.ts +1 -1
- package/src/cli/commands/SimulateCommand.d.ts +1 -1
- package/src/cli/commands/SmtpProxyCommand.d.ts +1 -1
- package/src/cli/commands/SmtpProxyCommand.js +1 -1
- package/src/cli/commands/SqlProxyCommandUtils.d.ts +1 -1
- package/src/cli/commands/SqlProxyCommandUtils.js +1 -1
- package/src/cli/commands/SqlServerProxyCommand.js +1 -1
- package/src/cli/commands/StartCommand.d.ts +1 -1
- package/src/cli/commands/StartCommand.js +1 -1
- package/src/cli/commands/TemplatesCommand.d.ts +1 -1
- package/src/cli/commands/TraceCommand.d.ts +1 -1
- package/src/cli/commands/TraceCommand.js +2 -2
- package/src/cli/commands/TraceCommands.d.ts +1 -1
- package/src/cli/commands/UpgradeCommand.d.ts +1 -1
- package/src/cli/commands/WorkerCommands.d.ts +1 -1
- package/src/cli/commands/WranglerDevVarsCommand.d.ts +1 -1
- package/src/cli/commands/WranglerProxyCommandUtils.d.ts +1 -1
- package/src/cli/commands/WranglerProxyCommandUtils.js +2 -2
- package/src/cli/commands/createKindWorkCommand.d.ts +2 -2
- package/src/cli/commands/createKindWorkCommand.js +1 -1
- package/src/cli/commands/index.d.ts +27 -27
- package/src/cli/commands/index.js +27 -27
- package/src/cli/config/ConfigManager.d.ts +1 -1
- package/src/cli/config/ConfigManager.js +1 -1
- package/src/cli/config/ConfigValidator.d.ts +1 -1
- package/src/cli/config/ConfigValidator.js +1 -1
- package/src/cli/config/index.d.ts +3 -3
- package/src/cli/config/index.js +3 -3
- package/src/cli/d1/LocalD1Resolver.d.ts +1 -1
- package/src/cli/d1/LocalD1Resolver.js +2 -2
- package/src/cli/d1/WranglerD1.d.ts +1 -1
- package/src/cli/index.d.ts +18 -18
- package/src/cli/scaffolding/ControllerGenerator.js +2 -2
- package/src/cli/scaffolding/FactoryGenerator.js +1 -1
- package/src/cli/scaffolding/FeatureScaffolder.js +5 -5
- package/src/cli/scaffolding/GovernanceScaffolder.js +4 -4
- package/src/cli/scaffolding/MigrationGenerator.js +2 -2
- package/src/cli/scaffolding/ModelGenerator.js +1 -1
- package/src/cli/scaffolding/ProjectScaffolder.js +2 -2
- package/src/cli/scaffolding/RequestFactoryGenerator.js +1 -1
- package/src/cli/scaffolding/ResponseFactoryGenerator.js +1 -1
- package/src/cli/scaffolding/RouteGenerator.js +1 -1
- package/src/cli/scaffolding/SeederGenerator.js +7 -7
- package/src/cli/scaffolding/ServiceIntegrationTestGenerator.js +2 -2
- package/src/cli/scaffolding/ServiceRequestFactoryGenerator.js +1 -1
- package/src/cli/scaffolding/ServiceScaffolder.js +1 -1
- package/src/cli/scaffolding/TemplateGenerator.js +1 -1
- package/src/cli/scaffolding/WorkflowGenerator.js +1 -1
- package/src/cli/scaffolding/index.d.ts +33 -33
- package/src/cli/scaffolding/index.js +17 -17
- package/src/cli/services/VersionChecker.d.ts +1 -1
- package/src/cli/utils/DatabaseCliUtils.d.ts +2 -2
- package/src/cli-index.d.ts +11 -11
- package/src/cli.d.ts +8 -8
- package/src/cloudflare-index.d.ts +1 -1
- package/src/collections/index.d.ts +2 -2
- package/src/common/ExternalServiceUtils.d.ts +1 -1
- package/src/common/HealthRoutes.d.ts +1 -1
- package/src/common/index.d.ts +1 -1
- package/src/config/SecretsManager.d.ts +1 -1
- package/src/config/StartupConfigValidator.d.ts +1 -1
- package/src/config/app.d.ts +1 -1
- package/src/config/broadcast.d.ts +2 -2
- package/src/config/cache.d.ts +1 -1
- package/src/config/cloudflare.d.ts +2 -2
- package/src/config/database.d.ts +1 -1
- package/src/config/env.d.ts +1 -1
- package/src/config/features.d.ts +1 -1
- package/src/config/index.d.ts +31 -31
- package/src/config/logger.d.ts +1 -1
- package/src/config/mail.d.ts +1 -1
- package/src/config/middleware.d.ts +3 -3
- package/src/config/notification.d.ts +1 -1
- package/src/config/queue.d.ts +1 -1
- package/src/config/redis.d.ts +2 -2
- package/src/config/storage.d.ts +1 -1
- package/src/config/type.d.ts +2 -2
- package/src/config/workers.d.ts +2 -2
- package/src/config-index.d.ts +35 -35
- package/src/constants-index.d.ts +2 -2
- package/src/database-index.d.ts +13 -13
- package/src/errors-index.d.ts +2 -2
- package/src/events/index.d.ts +2 -2
- package/src/health/StartupHealthChecks.d.ts +1 -1
- package/src/helper/index.d.ts +1 -1
- package/src/http/Controller.d.ts +2 -2
- package/src/http/FileUpload.d.ts +2 -2
- package/src/http/Kernel.d.ts +7 -7
- package/src/http/Request.d.ts +3 -3
- package/src/http/RequestContext.d.ts +1 -1
- package/src/http/RequestContext.d.ts.map +1 -1
- package/src/http/RequestContext.js +14 -3
- package/src/http/Response.d.ts +1 -1
- package/src/http/ValidationHelper.d.ts +1 -1
- package/src/http/error-pages/ErrorPageRenderer.d.ts +1 -1
- package/src/http/middleware/BodyParsingMiddleware.d.ts +2 -2
- package/src/http/middleware/FileUploadMiddleware.d.ts +1 -1
- package/src/http/parsers/MultipartParser.d.ts +1 -1
- package/src/http/parsers/MultipartParserRegistry.d.ts +2 -2
- package/src/http/validated.d.ts +1 -1
- package/src/http-index.d.ts +8 -8
- package/src/index.d.ts +215 -215
- package/src/index.js +3 -3
- package/src/lang-index.d.ts +1 -1
- package/src/logger-index.d.ts +1 -1
- package/src/mail-index.d.ts +7 -7
- package/src/microservices/MicroserviceGenerator.js +1 -1
- package/src/microservices/RequestTracingMiddleware.d.ts +2 -2
- package/src/microservices/ServiceAuthMiddleware.d.ts +2 -2
- package/src/microservices/ServiceHealthMonitor.d.ts +2 -2
- package/src/microservices/ServiceManifest.d.ts +1 -1
- package/src/microservices-index.d.ts +2 -2
- package/src/middleware/AuthMiddleware.d.ts +2 -2
- package/src/middleware/BulletproofAuthMiddleware.d.ts +5 -5
- package/src/middleware/CsrfMiddleware.d.ts +2 -2
- package/src/middleware/ErrorHandlerMiddleware.d.ts +2 -2
- package/src/middleware/JwtAuthMiddleware.d.ts +3 -3
- package/src/middleware/LoggingMiddleware.d.ts +1 -1
- package/src/middleware/MiddlewareFailureResponder.d.ts +3 -3
- package/src/middleware/MiddlewareStack.d.ts +2 -2
- package/src/middleware/RateLimiter.d.ts +3 -3
- package/src/middleware/SanitizeBodyMiddleware.d.ts +1 -1
- package/src/middleware/SecurityMiddleware.d.ts +1 -1
- package/src/middleware/SessionMiddleware.d.ts +2 -2
- package/src/middleware/ValidationMiddleware.d.ts +3 -3
- package/src/middleware/index.d.ts +8 -8
- package/src/middleware-index.d.ts +1 -1
- package/src/migrations/MigrationLoader.d.ts +1 -1
- package/src/migrations/Migrator.d.ts +3 -3
- package/src/migrations/MigratorFactory.d.ts +1 -1
- package/src/migrations/schema/Blueprint.d.ts +1 -1
- package/src/migrations/schema/Schema.d.ts +2 -2
- package/src/migrations/schema/Schema.js +2 -2
- package/src/migrations/schema/SchemaCompiler.d.ts +1 -1
- package/src/migrations/schema/index.d.ts +4 -4
- package/src/migrations/schema/index.js +3 -3
- package/src/migrations/schema/types.d.ts +1 -1
- package/src/migrations/types.d.ts +1 -1
- package/src/node-singletons/index.d.ts +15 -15
- package/src/node.d.ts +13 -13
- package/src/openapi/OpenApiGenerator.d.ts +1 -1
- package/src/orm/ConnectionManager.d.ts +2 -2
- package/src/orm/Database.d.ts +3 -3
- package/src/orm/DatabaseAdapter.d.ts +1 -1
- package/src/orm/DatabaseAdapterRegistry.d.ts +1 -1
- package/src/orm/DatabaseConnectionRegistry.d.ts +1 -1
- package/src/orm/DatabaseRuntimeRegistration.d.ts +1 -1
- package/src/orm/Model.d.ts +5 -3
- package/src/orm/Model.d.ts.map +1 -1
- package/src/orm/Model.js +2 -0
- package/src/orm/QueryBuilder.d.ts +5 -3
- package/src/orm/QueryBuilder.d.ts.map +1 -1
- package/src/orm/QueryBuilder.js +29 -0
- package/src/orm/QueryBuilderTypeSurface.fixture.d.ts +2 -2
- package/src/orm/QueryBuilderTypeSurface.fixture.d.ts.map +1 -1
- package/src/orm/QueryBuilderTypeSurface.fixture.js +4 -0
- package/src/orm/Relationships.d.ts +1 -1
- package/src/orm/SchemaCompiler.d.ts +2 -2
- package/src/orm/adapters/D1Adapter.d.ts +1 -1
- package/src/orm/adapters/D1Adapter.js +1 -1
- package/src/orm/adapters/D1ReadSession.d.ts +1 -1
- package/src/orm/adapters/D1RemoteAdapter.d.ts +1 -1
- package/src/orm/adapters/D1RemoteAdapter.js +2 -2
- package/src/orm/adapters/MongoDBProxyAdapter.d.ts +1 -1
- package/src/orm/adapters/MongoDBProxyAdapter.js +2 -2
- package/src/orm/adapters/MySQLAdapter.d.ts +1 -1
- package/src/orm/adapters/MySQLProxyAdapter.d.ts +1 -1
- package/src/orm/adapters/MySQLProxyAdapter.js +3 -3
- package/src/orm/adapters/PostgreSQLAdapter.d.ts +1 -1
- package/src/orm/adapters/PostgreSQLProxyAdapter.d.ts +1 -1
- package/src/orm/adapters/PostgreSQLProxyAdapter.js +3 -3
- package/src/orm/adapters/ProxyCache.d.ts +1 -1
- package/src/orm/adapters/ProxySignedRequest.js +1 -1
- package/src/orm/adapters/SQLServerAdapter.d.ts +1 -1
- package/src/orm/adapters/SQLiteAdapter.d.ts +1 -1
- package/src/orm/adapters/SqlProxyAdapterUtils.d.ts +1 -1
- package/src/orm/adapters/SqlProxyAdapterUtils.js +1 -1
- package/src/orm/adapters/SqlProxyHttpAdapterShared.d.ts +1 -1
- package/src/orm/adapters/SqlProxyHttpAdapterShared.js +2 -2
- package/src/orm/adapters/SqlProxyRegistryMode.js +1 -1
- package/src/orm/adapters/SqlServerProxyAdapter.d.ts +1 -1
- package/src/orm/adapters/SqlServerProxyAdapter.js +3 -3
- package/src/orm/maintenance/SqliteMaintenance.d.ts +1 -1
- package/src/orm/migrations/MigrationStore.d.ts +2 -2
- package/src/orm-index.d.ts +18 -18
- package/src/profiling/MemoryProfiler.d.ts +1 -1
- package/src/profiling/N1Detector.d.ts +1 -1
- package/src/profiling/QueryLogger.d.ts +1 -1
- package/src/profiling/RequestProfiler.d.ts +4 -4
- package/src/proxy/CloudflareProxyShared.d.ts +2 -2
- package/src/proxy/ProxyRequestParsing.d.ts +1 -1
- package/src/proxy/ProxyServer.d.ts +2 -2
- package/src/proxy/ProxyServerUtils.d.ts +2 -2
- package/src/proxy/ProxySigningRequest.d.ts +2 -2
- package/src/proxy/SigningService.d.ts +1 -1
- package/src/proxy/SqlProxyServerDeps.d.ts +11 -11
- package/src/proxy/StatementRegistryResolver.d.ts +1 -1
- package/src/proxy/mysql/MySqlProxyServer.d.ts +2 -2
- package/src/proxy/postgres/PostgresProxyServer.d.ts +2 -2
- package/src/proxy/redis/RedisProxyServer.d.ts +1 -1
- package/src/proxy/sqlserver/SqlServerProxyServer.d.ts +2 -2
- package/src/proxy-index.d.ts +6 -6
- package/src/proxy.d.ts +6 -6
- package/src/queue-index.d.ts +9 -9
- package/src/redis-index.d.ts +5 -5
- package/src/routes/CoreRoutes.d.ts +1 -1
- package/src/routes/CoreRoutes.js +1 -1
- package/src/routes/RouteRegistry.d.ts +1 -1
- package/src/routes/Router.d.ts +3 -3
- package/src/routes/doc.d.ts +4 -4
- package/src/routes/error.d.ts +4 -4
- package/src/routes/errorPages.d.ts +2 -2
- package/src/routes/health.d.ts +1 -1
- package/src/routes/metrics.d.ts +1 -1
- package/src/routes/openapi.d.ts +1 -1
- package/src/runtime/PluginAutoImports.d.ts +1 -1
- package/src/runtime/PluginManager.d.ts +1 -1
- package/src/runtime/ProjectRuntime.d.ts +1 -1
- package/src/runtime/RuntimeAdapter.d.ts +1 -1
- package/src/runtime/WorkerProjectPlugins.d.ts +1 -1
- package/src/runtime/adapters/CloudflareAdapter.d.ts +1 -1
- package/src/runtime/adapters/DenoAdapter.d.ts +1 -1
- package/src/runtime/adapters/FargateAdapter.d.ts +2 -2
- package/src/runtime/adapters/LambdaAdapter.d.ts +1 -1
- package/src/runtime/adapters/NodeServerAdapter.d.ts +1 -1
- package/src/runtime/getKernel.d.ts +1 -1
- package/src/runtime-index.d.ts +95 -95
- package/src/scheduler/Schedule.d.ts +1 -1
- package/src/scheduler/ScheduleHttpGateway.d.ts +1 -1
- package/src/scheduler/ScheduleRunner.d.ts +2 -2
- package/src/scheduler/SchedulerRuntime.d.ts +3 -3
- package/src/scheduler/index.d.ts +2 -2
- package/src/scheduler-index.d.ts +9 -9
- package/src/schedules/index.d.ts +2 -2
- package/src/scripts/TemplateImportsCheck.js +1 -2
- package/src/scripts-index.d.ts +3 -3
- package/src/security/JwtManager.d.ts +1 -1
- package/src/security/JwtVerifier.d.ts +1 -1
- package/src/security/SecurePayload.d.ts +2 -2
- package/src/security-index.d.ts +22 -22
- package/src/seeders/SeederLoader.d.ts +1 -1
- package/src/seeders/types.d.ts +1 -1
- package/src/seeders-index.d.ts +3 -3
- package/src/session/index.d.ts +2 -2
- package/src/socket-index.d.ts +4 -4
- package/src/sockets/SocketRuntime.d.ts +4 -4
- package/src/sockets/SocketRuntimeRegistry.d.ts +1 -1
- package/src/start.d.ts +1 -1
- package/src/storage-index.d.ts +9 -9
- package/src/tasks.d.ts +1 -1
- package/src/templates-index.d.ts +1 -1
- package/src/testing/TestEnvironment.d.ts +3 -3
- package/src/testing/TestHttp.d.ts +2 -2
- package/src/testing/index.d.ts +4 -4
- package/src/testing/index.js +2 -2
- package/src/testing-index.d.ts +2 -2
- package/src/time/index.d.ts +2 -2
- package/src/toolkit/Secrets/index.d.ts +2 -2
- package/src/toolkit/Secrets/index.js +4 -4
- package/src/tools/broadcast/Broadcast.d.ts +2 -2
- package/src/tools/broadcast/Broadcast.js +1 -1
- package/src/tools/broadcast/BroadcastRegistry.d.ts +1 -1
- package/src/tools/broadcast/BroadcastRuntimeRegistration.d.ts +1 -1
- package/src/tools/broadcast/drivers/Pusher.d.ts +1 -1
- package/src/tools/broadcast/index.d.ts +9 -9
- package/src/tools/http/Http.d.ts +2 -2
- package/src/tools/http/index.d.ts +6 -6
- package/src/tools/mail/Mail.d.ts +1 -1
- package/src/tools/mail/drivers/Cloudflare.d.ts +1 -1
- package/src/tools/mail/drivers/Cloudflare.js +1 -1
- package/src/tools/mail/drivers/Smtp.d.ts +1 -1
- package/src/tools/mail/drivers/Smtp.js +1 -1
- package/src/tools/mail/index.d.ts +1 -1
- package/src/tools/mail/template-loader.d.ts +1 -1
- package/src/tools/notification/Notification.d.ts +2 -2
- package/src/tools/notification/NotificationChannelRegistry.d.ts +1 -1
- package/src/tools/notification/NotificationRuntimeRegistration.d.ts +1 -1
- package/src/tools/notification/drivers/SlackNotification.js +1 -1
- package/src/tools/notification/drivers/TwilioNotification.js +1 -1
- package/src/tools/notification/templates/markdown/index.d.ts +1 -1
- package/src/tools/notification/templates/markdown/index.js +1 -1
- package/src/tools/notification/templates/markdown/registry.d.ts +1 -1
- package/src/tools/notification/templates/markdown/registry.js +1 -1
- package/src/tools/queue/AdvancedQueue.d.ts +3 -3
- package/src/tools/queue/DeduplicationBuilder.d.ts +1 -1
- package/src/tools/queue/IdempotencyManager.d.ts +1 -1
- package/src/tools/queue/JobRecoveryDaemon.d.ts +1 -1
- package/src/tools/queue/JobStateTrackerDbPersistence.d.ts +1 -1
- package/src/tools/queue/LockProvider.d.ts +1 -1
- package/src/tools/queue/Queue.d.ts +1 -1
- package/src/tools/queue/QueueExtensions.d.ts +3 -3
- package/src/tools/queue/QueueExtensions.js +1 -1
- package/src/tools/queue/QueueRuntimeRegistration.d.ts +1 -1
- package/src/tools/queue/QueueRuntimeRegistration.js +5 -5
- package/src/tools/queue/drivers/Database.d.ts +1 -1
- package/src/tools/queue/drivers/InMemory.d.ts +1 -1
- package/src/tools/queue/drivers/Redis.d.ts +1 -1
- package/src/tools/queue/index.d.ts +15 -15
- package/src/tools/redis/RedisTransport.d.ts +1 -1
- package/src/tools/storage/StorageRuntimeRegistration.d.ts +1 -1
- package/src/tools/storage/drivers/R2.js +1 -1
- package/src/tools/storage/index.d.ts +1 -1
- package/src/tools/templates/index.d.ts +1 -1
- package/src/tools-broadcast-index.d.ts +4 -4
- package/src/tools-http-index.d.ts +2 -2
- package/src/tools-index.d.ts +22 -22
- package/src/tools-mail-index.d.ts +12 -12
- package/src/tools-notification-index.d.ts +7 -7
- package/src/tools-queue-index.d.ts +17 -17
- package/src/tools-storage-index.d.ts +9 -9
- package/src/trace-index.d.ts +1 -1
- package/src/utils-index.d.ts +4 -4
- package/src/validation/Validator.d.ts +2 -2
- package/src/worker-commands.d.ts +1 -1
- package/src/worker-runtime/drain.d.ts +1 -1
- package/src/worker-runtime/install-enqueue-hook.d.ts +2 -2
- package/src/worker-runtime/ping.d.ts +2 -2
- package/src/worker-runtime.d.ts +4 -4
- package/src/workers-index.d.ts +4 -4
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* CLI Commands Module Index
|
|
3
3
|
*/
|
|
4
|
-
export { AddCommand } from '
|
|
5
|
-
export { BroadcastWorkCommand } from '
|
|
6
|
-
export { ConfigCommand } from '
|
|
7
|
-
export { ContainerWorkersCommand } from '
|
|
8
|
-
export { AddMigrationCommand, CreateCommand, CreateMigrationCommand, } from '
|
|
9
|
-
export { D1ProxyCommand } from '
|
|
10
|
-
export { DebugCommand } from '
|
|
11
|
-
export { JwtDevCommand } from '
|
|
12
|
-
export { KvProxyCommand } from '
|
|
13
|
-
export { LogsCleanupCommand } from '
|
|
14
|
-
export { MakeMailTemplateCommand } from '
|
|
15
|
-
export { MakeNotificationTemplateCommand } from '
|
|
16
|
-
export { MigrateCommand } from '
|
|
17
|
-
export { MigrateWorkerCommand } from '
|
|
18
|
-
export { NewCommand } from '
|
|
19
|
-
export { NotificationWorkCommand } from '
|
|
20
|
-
export { PrepareCommand } from '
|
|
21
|
-
export { QueueCommand } from '
|
|
22
|
-
export { QueueRecoveryCommand } from '
|
|
23
|
-
export { RedisRpcCommand } from '
|
|
24
|
-
export { ResourceControlCommand } from '
|
|
25
|
-
export { RoutesCommand } from '
|
|
26
|
-
export { SecretsCommand } from '
|
|
27
|
-
export { StartCommand } from '
|
|
28
|
-
export { TemplatesCommand } from '
|
|
29
|
-
export { TraceCommands } from '
|
|
30
|
-
export { WranglerDevVarsCommand } from '
|
|
4
|
+
export { AddCommand } from './AddCommand.js';
|
|
5
|
+
export { BroadcastWorkCommand } from './BroadcastWorkCommand.js';
|
|
6
|
+
export { ConfigCommand } from './ConfigCommand.js';
|
|
7
|
+
export { ContainerWorkersCommand } from './ContainerWorkersCommand.js';
|
|
8
|
+
export { AddMigrationCommand, CreateCommand, CreateMigrationCommand, } from './CreateCommand.js';
|
|
9
|
+
export { D1ProxyCommand } from './D1ProxyCommand.js';
|
|
10
|
+
export { DebugCommand } from './DebugCommand.js';
|
|
11
|
+
export { JwtDevCommand } from './JwtDevCommand.js';
|
|
12
|
+
export { KvProxyCommand } from './KvProxyCommand.js';
|
|
13
|
+
export { LogsCleanupCommand } from './LogsCleanupCommand.js';
|
|
14
|
+
export { MakeMailTemplateCommand } from './MakeMailTemplateCommand.js';
|
|
15
|
+
export { MakeNotificationTemplateCommand } from './MakeNotificationTemplateCommand.js';
|
|
16
|
+
export { MigrateCommand } from './MigrateCommand.js';
|
|
17
|
+
export { MigrateWorkerCommand } from './MigrateWorkerCommand.js';
|
|
18
|
+
export { NewCommand } from './NewCommand.js';
|
|
19
|
+
export { NotificationWorkCommand } from './NotificationWorkCommand.js';
|
|
20
|
+
export { PrepareCommand } from './PrepareCommand.js';
|
|
21
|
+
export { QueueCommand } from './QueueCommand.js';
|
|
22
|
+
export { QueueRecoveryCommand } from './QueueRecoveryCommand.js';
|
|
23
|
+
export { RedisRpcCommand } from './RedisRpcCommand.js';
|
|
24
|
+
export { ResourceControlCommand } from './ResourceControlCommand.js';
|
|
25
|
+
export { RoutesCommand } from './RoutesCommand.js';
|
|
26
|
+
export { SecretsCommand } from './SecretsCommand.js';
|
|
27
|
+
export { StartCommand } from './StartCommand.js';
|
|
28
|
+
export { TemplatesCommand } from './TemplatesCommand.js';
|
|
29
|
+
export { TraceCommands } from './TraceCommands.js';
|
|
30
|
+
export { WranglerDevVarsCommand } from './WranglerDevVarsCommand.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Configuration Manager
|
|
3
3
|
* Handles reading, writing, and managing configuration files
|
|
4
4
|
*/
|
|
5
|
-
import type { ProjectConfig } from '
|
|
5
|
+
import type { ProjectConfig } from './ConfigSchema.js';
|
|
6
6
|
export interface IConfigManager {
|
|
7
7
|
load(): Promise<ProjectConfig>;
|
|
8
8
|
save(config?: ProjectConfig): Promise<void>;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Configuration Manager
|
|
3
3
|
* Handles reading, writing, and managing configuration files
|
|
4
4
|
*/
|
|
5
|
-
import { ConfigPaths, DEFAULT_CONFIG, getConfigValue, setConfigValue, } from '
|
|
5
|
+
import { ConfigPaths, DEFAULT_CONFIG, getConfigValue, setConfigValue, } from './ConfigSchema.js';
|
|
6
6
|
import { Logger } from '../../config/logger.js';
|
|
7
7
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
8
8
|
import { fsPromises as fs } from '../../node-singletons/fs.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Configuration Validator
|
|
3
3
|
* Validates configuration against schema and rules
|
|
4
4
|
*/
|
|
5
|
-
import type { ProjectConfig } from '
|
|
5
|
+
import type { ProjectConfig } from './ConfigSchema.js';
|
|
6
6
|
export interface ValidationError {
|
|
7
7
|
key: string;
|
|
8
8
|
value: unknown;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Configuration Validator
|
|
3
3
|
* Validates configuration against schema and rules
|
|
4
4
|
*/
|
|
5
|
-
import { CONFIG_RULES, getConfigValue } from '
|
|
5
|
+
import { CONFIG_RULES, getConfigValue } from './ConfigSchema.js';
|
|
6
6
|
/**
|
|
7
7
|
* Validate entire config against schema
|
|
8
8
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Configuration Module
|
|
3
3
|
* Exports config management classes
|
|
4
4
|
*/
|
|
5
|
-
export { ConfigManager } from '
|
|
6
|
-
export { AuthConfig, CONFIG_RULES, ConfigPaths, DEFAULT_CONFIG, DatabaseConfig, FeatureConfig, MicroservicesConfig, ProjectConfig, ServerConfig, getConfigValue, getDefaultValue, setConfigValue, } from '
|
|
7
|
-
export { ConfigValidator, ValidationError, ValidationResult } from '
|
|
5
|
+
export { ConfigManager } from './ConfigManager.js';
|
|
6
|
+
export { AuthConfig, CONFIG_RULES, ConfigPaths, DEFAULT_CONFIG, DatabaseConfig, FeatureConfig, MicroservicesConfig, ProjectConfig, ServerConfig, getConfigValue, getDefaultValue, setConfigValue, } from './ConfigSchema.js';
|
|
7
|
+
export { ConfigValidator, ValidationError, ValidationResult } from './ConfigValidator.js';
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/src/cli/config/index.js
CHANGED
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Configuration Module
|
|
3
3
|
* Exports config management classes
|
|
4
4
|
*/
|
|
5
|
-
export { ConfigManager } from '
|
|
6
|
-
export { CONFIG_RULES, ConfigPaths, DEFAULT_CONFIG, getConfigValue, getDefaultValue, setConfigValue, } from '
|
|
7
|
-
export { ConfigValidator } from '
|
|
5
|
+
export { ConfigManager } from './ConfigManager.js';
|
|
6
|
+
export { CONFIG_RULES, ConfigPaths, DEFAULT_CONFIG, getConfigValue, getDefaultValue, setConfigValue, } from './ConfigSchema.js';
|
|
7
|
+
export { ConfigValidator } from './ConfigValidator.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type WranglerD1DatabaseConfig, type WranglerD1ResolutionMatch } from '
|
|
1
|
+
import { type WranglerD1DatabaseConfig, type WranglerD1ResolutionMatch } from './WranglerConfig.js';
|
|
2
2
|
type ResolvedD1Target = {
|
|
3
3
|
config: WranglerD1DatabaseConfig;
|
|
4
4
|
databaseName: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { WranglerConfig, } from '
|
|
2
|
-
import { WranglerD1 } from '
|
|
1
|
+
import { WranglerConfig, } from './WranglerConfig.js';
|
|
2
|
+
import { WranglerD1 } from './WranglerD1.js';
|
|
3
3
|
import { Logger } from '../../config/logger.js';
|
|
4
4
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
5
5
|
import { isNonEmptyString } from '../../helper/index.js';
|
package/src/cli/index.d.ts
CHANGED
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
* CLI Module Index
|
|
3
3
|
* Exports all CLI components
|
|
4
4
|
*/
|
|
5
|
-
export { BaseCommand, type CommandOptions } from './BaseCommand';
|
|
6
|
-
export { CLI } from './CLI';
|
|
7
|
-
export { ErrorHandler, EXIT_CODES } from './ErrorHandler';
|
|
8
|
-
export { PromptHelper, type PromptOptions } from './PromptHelper';
|
|
9
|
-
export { AddCommand } from './commands/AddCommand';
|
|
10
|
-
export { ConfigCommand } from './commands/ConfigCommand';
|
|
11
|
-
export { D1ProxyCommand } from './commands/D1ProxyCommand';
|
|
12
|
-
export { DebugCommand } from './commands/DebugCommand';
|
|
13
|
-
export { KvProxyCommand } from './commands/KvProxyCommand';
|
|
14
|
-
export { MigrateCommand } from './commands/MigrateCommand';
|
|
15
|
-
export { MySqlProxyCommand } from './commands/MySqlProxyCommand';
|
|
16
|
-
export { NewCommand } from './commands/NewCommand';
|
|
17
|
-
export { PostgresProxyCommand } from './commands/PostgresProxyCommand';
|
|
18
|
-
export { ProxyCommand } from './commands/ProxyCommand';
|
|
19
|
-
export { RedisProxyCommand } from './commands/RedisProxyCommand';
|
|
20
|
-
export { SecretsCommand } from './commands/SecretsCommand';
|
|
21
|
-
export { TraceCommands } from './commands/TraceCommands';
|
|
22
|
-
export { WorkerCommands } from './commands/WorkerCommands';
|
|
5
|
+
export { BaseCommand, type CommandOptions } from './BaseCommand.js';
|
|
6
|
+
export { CLI } from './CLI.js';
|
|
7
|
+
export { ErrorHandler, EXIT_CODES } from './ErrorHandler.js';
|
|
8
|
+
export { PromptHelper, type PromptOptions } from './PromptHelper.js';
|
|
9
|
+
export { AddCommand } from './commands/AddCommand.js';
|
|
10
|
+
export { ConfigCommand } from './commands/ConfigCommand.js';
|
|
11
|
+
export { D1ProxyCommand } from './commands/D1ProxyCommand.js';
|
|
12
|
+
export { DebugCommand } from './commands/DebugCommand.js';
|
|
13
|
+
export { KvProxyCommand } from './commands/KvProxyCommand.js';
|
|
14
|
+
export { MigrateCommand } from './commands/MigrateCommand.js';
|
|
15
|
+
export { MySqlProxyCommand } from './commands/MySqlProxyCommand.js';
|
|
16
|
+
export { NewCommand } from './commands/NewCommand.js';
|
|
17
|
+
export { PostgresProxyCommand } from './commands/PostgresProxyCommand.js';
|
|
18
|
+
export { ProxyCommand } from './commands/ProxyCommand.js';
|
|
19
|
+
export { RedisProxyCommand } from './commands/RedisProxyCommand.js';
|
|
20
|
+
export { SecretsCommand } from './commands/SecretsCommand.js';
|
|
21
|
+
export { TraceCommands } from './commands/TraceCommands.js';
|
|
22
|
+
export { WorkerCommands } from './commands/WorkerCommands.js';
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ControllerGenerator - Generate controller files
|
|
3
3
|
* Creates CRUD controllers with validation and error handling
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { Logger } from '../../config/logger.js';
|
|
7
7
|
import * as path from '../../node-singletons/path.js';
|
|
8
8
|
/**
|
|
@@ -451,7 +451,7 @@ function generateWebSocketController(options) {
|
|
|
451
451
|
* Auto-generated WebSocket controller
|
|
452
452
|
*/
|
|
453
453
|
|
|
454
|
-
import { Logger } from '../../config/logger';
|
|
454
|
+
import { Logger } from '../../config/logger.js';
|
|
455
455
|
|
|
456
456
|
const controller = Object.freeze({
|
|
457
457
|
/**
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Factory Generator
|
|
3
3
|
* Generates test data factory modules for models
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { CommonUtils } from '../../common/index.js';
|
|
7
7
|
import { Logger } from '../../config/logger.js';
|
|
8
8
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* FeatureScaffolder - Generate features within a service
|
|
3
3
|
* Features like authentication, payments, logging, API docs, etc.
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { Logger } from '../../config/logger.js';
|
|
7
7
|
import * as path from '../../node-singletons/path.js';
|
|
8
8
|
/**
|
|
@@ -208,7 +208,7 @@ const PAYMENTS_TEMPLATE = `/**
|
|
|
208
208
|
* Handles payment processing and transactions
|
|
209
209
|
*/
|
|
210
210
|
|
|
211
|
-
import { randomBytes } from '../../node-singletons/crypto';
|
|
211
|
+
import { randomBytes } from '../../node-singletons/crypto.js';
|
|
212
212
|
|
|
213
213
|
export interface PaymentConfig {
|
|
214
214
|
provider: 'stripe' | 'paypal' | 'square';
|
|
@@ -266,7 +266,7 @@ const LOGGING_TEMPLATE = `/**
|
|
|
266
266
|
* Structured logging with multiple transports
|
|
267
267
|
*/
|
|
268
268
|
|
|
269
|
-
import { Logger } from '../../config/logger';
|
|
269
|
+
import { Logger } from '../../config/logger.js';
|
|
270
270
|
|
|
271
271
|
export type LogLevel = 'debug' | 'info' | 'warn' | 'error';
|
|
272
272
|
|
|
@@ -429,7 +429,7 @@ const EMAIL_TEMPLATE = `/**
|
|
|
429
429
|
* Handles email sending
|
|
430
430
|
*/
|
|
431
431
|
|
|
432
|
-
import { randomBytes } from '../../node-singletons/crypto';
|
|
432
|
+
import { randomBytes } from '../../node-singletons/crypto.js';
|
|
433
433
|
|
|
434
434
|
export interface EmailConfig {
|
|
435
435
|
provider: 'sendgrid' | 'mailgun' | 'nodemailer';
|
|
@@ -547,7 +547,7 @@ const QUEUE_TEMPLATE = `/**
|
|
|
547
547
|
* Job queue processing
|
|
548
548
|
*/
|
|
549
549
|
|
|
550
|
-
import { randomBytes } from '../../node-singletons/crypto';
|
|
550
|
+
import { randomBytes } from '../../node-singletons/crypto.js';
|
|
551
551
|
|
|
552
552
|
export interface Job {
|
|
553
553
|
id: string;
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* - ESLint config + scripts
|
|
6
6
|
* - Architecture tests (Vitest)
|
|
7
7
|
*/
|
|
8
|
-
import { FileGenerator } from '
|
|
9
|
-
import { PINNED_GOVERNANCE_SCAFFOLDER_VERSION } from '
|
|
8
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
9
|
+
import { PINNED_GOVERNANCE_SCAFFOLDER_VERSION } from './ScaffoldingVersionUtils.js';
|
|
10
10
|
import { SpawnUtil } from '../utils/spawn.js';
|
|
11
11
|
import { resolvePackageManager } from '../../common/index.js';
|
|
12
12
|
import { Logger } from '../../config/logger.js';
|
|
@@ -201,8 +201,8 @@ describe('Architecture: import boundaries', () => {
|
|
|
201
201
|
});
|
|
202
202
|
});
|
|
203
203
|
`;
|
|
204
|
-
const ROUTE_MIDDLEWARE_REGISTRY_ARCH_TEST_CONTENT = `import { middlewareConfigObj } from '../../config/middleware';
|
|
205
|
-
import { registerRoutes } from '../../../routes/api';
|
|
204
|
+
const ROUTE_MIDDLEWARE_REGISTRY_ARCH_TEST_CONTENT = `import { middlewareConfigObj } from '../../config/middleware.js';
|
|
205
|
+
import { registerRoutes } from '../../../routes/api.js';
|
|
206
206
|
import { RouteRegistry, Router } from '../../index.js';
|
|
207
207
|
import { beforeEach, describe, expect, it } from 'vitest';
|
|
208
208
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* MigrationGenerator - Generate database migrations
|
|
3
3
|
* Creates migration files for schema changes
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { CommonUtils } from '../../common/index.js';
|
|
7
7
|
import { Logger } from '../../config/logger.js';
|
|
8
8
|
import * as path from '../../node-singletons/path.js';
|
|
@@ -154,7 +154,7 @@ function resolveMigrationImportBlock(migrationsPath) {
|
|
|
154
154
|
const pkgRaw = FileGenerator.readFile(packageJsonPath);
|
|
155
155
|
const pkg = JSON.parse(pkgRaw);
|
|
156
156
|
if (pkg.name === '@zintrust/core') {
|
|
157
|
-
return `import type { IDatabase } from '../../orm/Database';\nimport { Schema as MigrationSchema, type Blueprint } from '../../migrations/schema';`;
|
|
157
|
+
return `import type { IDatabase } from '../../orm/Database.js';\nimport { Schema as MigrationSchema, type Blueprint } from '../../migrations/schema/index.js';`;
|
|
158
158
|
}
|
|
159
159
|
}
|
|
160
160
|
catch {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ModelGenerator - Generate ORM model files
|
|
3
3
|
* Creates type-safe model modules with relationships and validation
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { CommonUtils } from '../../common/index.js';
|
|
7
7
|
import { Logger } from '../../config/logger.js';
|
|
8
8
|
import * as path from '../../node-singletons/path.js';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Handles directory structure and boilerplate file creation
|
|
4
4
|
*/
|
|
5
5
|
import { EnvFileBackfill } from '../env/EnvFileBackfill.js';
|
|
6
|
-
import { EnvData } from '
|
|
7
|
-
import { PINNED_GOVERNANCE_SCAFFOLDER_VERSION } from '
|
|
6
|
+
import { EnvData } from './env.js';
|
|
7
|
+
import { PINNED_GOVERNANCE_SCAFFOLDER_VERSION } from './ScaffoldingVersionUtils.js';
|
|
8
8
|
import { Logger } from '../../config/logger.js';
|
|
9
9
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
10
10
|
import { isNonEmptyString } from '../../helper/index.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Request Factory Generator - Phase 6.3
|
|
3
3
|
* Generates request/input DTO factories with built-in validation
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { Logger } from '../../config/logger.js';
|
|
7
7
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
8
8
|
import { fsPromises as fs } from '../../node-singletons/fs.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Response Factory Generator - Phase 7
|
|
3
3
|
* Generates response/output DTO factories with built-in validation
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { Logger } from '../../config/logger.js';
|
|
7
7
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
8
8
|
import { fsPromises as fs } from '../../node-singletons/fs.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* RouteGenerator - Generate route files
|
|
3
3
|
* Creates route definitions with middleware and parameters
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { Logger } from '../../config/logger.js';
|
|
7
7
|
import * as path from '../../node-singletons/path.js';
|
|
8
8
|
// Escape characters that can cause issues when embedding JSON.stringify output
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Generates database seeders for populating development/staging databases
|
|
4
4
|
* Uses factory generators for consistent data generation
|
|
5
5
|
*/
|
|
6
|
-
import { FileGenerator } from '
|
|
6
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
7
7
|
import { CommonUtils } from '../../common/index.js';
|
|
8
8
|
import { Logger } from '../../config/logger.js';
|
|
9
9
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
@@ -99,11 +99,11 @@ export async function generateDatabaseSeeder(options) {
|
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
function buildDatabaseSeederCode() {
|
|
102
|
-
return `import { SeederDiscovery } from '../../seeders/SeederDiscovery';
|
|
103
|
-
import { SeederLoader } from '../../seeders/SeederLoader';
|
|
104
|
-
import { CommonUtils } from '../../common/index';
|
|
105
|
-
import type { IDatabase } from '../../orm/Database';
|
|
106
|
-
import * as path from '../../node-singletons/path';
|
|
102
|
+
return `import { SeederDiscovery } from '../../seeders/SeederDiscovery.js';
|
|
103
|
+
import { SeederLoader } from '../../seeders/SeederLoader.js';
|
|
104
|
+
import { CommonUtils } from '../../common/index.js';
|
|
105
|
+
import type { IDatabase } from '../../orm/Database.js';
|
|
106
|
+
import * as path from '../../node-singletons/path.js';
|
|
107
107
|
|
|
108
108
|
export const DatabaseSeeder = Object.freeze({
|
|
109
109
|
async run(db: IDatabase): Promise<void> {
|
|
@@ -264,7 +264,7 @@ function buildSeederResetMethod(options) {
|
|
|
264
264
|
*/
|
|
265
265
|
function buildImports(options) {
|
|
266
266
|
const factoryName = getFactoryName(options);
|
|
267
|
-
return `import { Logger } from '../../config/logger';
|
|
267
|
+
return `import { Logger } from '../../config/logger.js';
|
|
268
268
|
import { ${factoryName} } from '@database/factories/${factoryName}';
|
|
269
269
|
import { ${options.modelName} } from '@app/Models/${options.modelName}';`;
|
|
270
270
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Service Integration Test Generator
|
|
3
3
|
* Generates integration tests for service-to-service communication
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { CommonUtils } from '../../common/index.js';
|
|
7
7
|
import { Logger } from '../../config/logger.js';
|
|
8
8
|
import * as path from '../../node-singletons/path.js';
|
|
@@ -71,7 +71,7 @@ function buildTestCode(options) {
|
|
|
71
71
|
*/
|
|
72
72
|
|
|
73
73
|
import { describe, it, expect, beforeAll, afterAll, vi } from 'vitest';
|
|
74
|
-
import { ErrorFactory } from '../../exceptions/ZintrustError';
|
|
74
|
+
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
75
75
|
|
|
76
76
|
interface ServiceConfig {
|
|
77
77
|
baseUrl: string;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ServiceRequestFactoryGenerator - Generate inter-service request factories
|
|
3
3
|
* Creates type-safe factories for testing service-to-service API calls
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { CommonUtils } from '../../common/index.js';
|
|
7
7
|
import { Logger } from '../../config/logger.js';
|
|
8
8
|
import * as path from '../../node-singletons/path.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* ServiceScaffolder - Generate microservices within a project
|
|
3
3
|
* Creates service structure with controllers, models, routes, and config
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { Logger } from '../../config/logger.js';
|
|
7
7
|
import { isArray, isObject } from '../../helper/index.js';
|
|
8
8
|
import * as path from '../../node-singletons/path.js';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* - Generates into application folders (default: src/mail/markdown and src/notification/markdown)
|
|
7
7
|
* - Uses FileGenerator for consistent file I/O + logging
|
|
8
8
|
*/
|
|
9
|
-
import { FileGenerator } from '
|
|
9
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
10
10
|
import { Logger } from '../../config/logger.js';
|
|
11
11
|
import { ErrorFactory } from '../../exceptions/ZintrustError.js';
|
|
12
12
|
import * as path from '../../node-singletons/path.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Workflow Generator
|
|
3
3
|
* Generates GitHub Actions workflows for deployment and CI/CD
|
|
4
4
|
*/
|
|
5
|
-
import { FileGenerator } from '
|
|
5
|
+
import { FileGenerator } from './FileGenerator.js';
|
|
6
6
|
import { Logger } from '../../config/logger.js';
|
|
7
7
|
import { fsPromises as fs } from '../../node-singletons/fs.js';
|
|
8
8
|
import * as path from '../../node-singletons/path.js';
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Scaffolding Module Exports
|
|
3
3
|
*/
|
|
4
|
-
export { ControllerGenerator } from '
|
|
5
|
-
export type { ControllerGeneratorResult, ControllerOptions, ControllerType, } from '
|
|
6
|
-
export { FactoryGenerator } from '
|
|
7
|
-
export type { FactoryField, FactoryGeneratorResult, FactoryOptions, } from '
|
|
8
|
-
export { FeatureScaffolder } from '
|
|
9
|
-
export type { FeatureOptions, FeatureScaffoldResult, FeatureType, } from '
|
|
10
|
-
export { FileGenerator } from '
|
|
11
|
-
export type { FileCreationOptions } from '
|
|
12
|
-
export { GovernanceScaffolder } from '
|
|
13
|
-
export type { GovernanceScaffoldOptions, GovernanceScaffoldResult, } from '
|
|
14
|
-
export { MigrationGenerator } from '
|
|
15
|
-
export type { MigrationOptions, MigrationScaffoldResult, } from '
|
|
16
|
-
export { ModelGenerator } from '
|
|
17
|
-
export type { FieldType, ModelField, ModelGeneratorResult, ModelOptions, ModelRelationship, } from '
|
|
18
|
-
export { ProjectScaffolder } from '
|
|
19
|
-
export type { ProjectScaffoldOptions, ProjectScaffoldResult, } from '
|
|
20
|
-
export { RequestFactoryGenerator } from '
|
|
21
|
-
export type { RequestFactoryGeneratorResult, RequestFactoryOptions, RequestField, } from '
|
|
22
|
-
export { ResponseFactoryGenerator } from '
|
|
23
|
-
export type { ResponseFactoryGeneratorResult, ResponseFactoryOptions, ResponseField, } from '
|
|
24
|
-
export { RouteGenerator } from '
|
|
25
|
-
export type { RouteDefinition, RouteGeneratorResult, RouteMethod, RouteOptions, } from '
|
|
26
|
-
export { SeederGenerator } from '
|
|
27
|
-
export type { SeederField, SeederGeneratorResult, SeederOptions, } from '
|
|
28
|
-
export { ServiceIntegrationTestGenerator } from '
|
|
29
|
-
export type { ServiceEndpoint, ServiceIntegrationTestOptions, ServiceIntegrationTestResult, } from '
|
|
30
|
-
export { ServiceRequestFactoryGenerator } from '
|
|
31
|
-
export type { ServiceRequestFactoryResult, ServiceRequestField, ServiceRequestOptions, } from '
|
|
32
|
-
export { ServiceScaffolder } from '
|
|
33
|
-
export type { ServiceOptions, ServiceScaffoldResult } from '
|
|
34
|
-
export { BUILT_IN_TEMPLATES, TemplateEngine } from '
|
|
35
|
-
export type { Template, TemplateFile, TemplateVariables } from '
|
|
36
|
-
export { TemplateGenerator } from '
|
|
4
|
+
export { ControllerGenerator } from './ControllerGenerator.js';
|
|
5
|
+
export type { ControllerGeneratorResult, ControllerOptions, ControllerType, } from './ControllerGenerator.js';
|
|
6
|
+
export { FactoryGenerator } from './FactoryGenerator.js';
|
|
7
|
+
export type { FactoryField, FactoryGeneratorResult, FactoryOptions, } from './FactoryGenerator.js';
|
|
8
|
+
export { FeatureScaffolder } from './FeatureScaffolder.js';
|
|
9
|
+
export type { FeatureOptions, FeatureScaffoldResult, FeatureType, } from './FeatureScaffolder.js';
|
|
10
|
+
export { FileGenerator } from './FileGenerator.js';
|
|
11
|
+
export type { FileCreationOptions } from './FileGenerator.js';
|
|
12
|
+
export { GovernanceScaffolder } from './GovernanceScaffolder.js';
|
|
13
|
+
export type { GovernanceScaffoldOptions, GovernanceScaffoldResult, } from './GovernanceScaffolder.js';
|
|
14
|
+
export { MigrationGenerator } from './MigrationGenerator.js';
|
|
15
|
+
export type { MigrationOptions, MigrationScaffoldResult, } from './MigrationGenerator.js';
|
|
16
|
+
export { ModelGenerator } from './ModelGenerator.js';
|
|
17
|
+
export type { FieldType, ModelField, ModelGeneratorResult, ModelOptions, ModelRelationship, } from './ModelGenerator.js';
|
|
18
|
+
export { ProjectScaffolder } from './ProjectScaffolder.js';
|
|
19
|
+
export type { ProjectScaffoldOptions, ProjectScaffoldResult, } from './ProjectScaffolder.js';
|
|
20
|
+
export { RequestFactoryGenerator } from './RequestFactoryGenerator.js';
|
|
21
|
+
export type { RequestFactoryGeneratorResult, RequestFactoryOptions, RequestField, } from './RequestFactoryGenerator.js';
|
|
22
|
+
export { ResponseFactoryGenerator } from './ResponseFactoryGenerator.js';
|
|
23
|
+
export type { ResponseFactoryGeneratorResult, ResponseFactoryOptions, ResponseField, } from './ResponseFactoryGenerator.js';
|
|
24
|
+
export { RouteGenerator } from './RouteGenerator.js';
|
|
25
|
+
export type { RouteDefinition, RouteGeneratorResult, RouteMethod, RouteOptions, } from './RouteGenerator.js';
|
|
26
|
+
export { SeederGenerator } from './SeederGenerator.js';
|
|
27
|
+
export type { SeederField, SeederGeneratorResult, SeederOptions, } from './SeederGenerator.js';
|
|
28
|
+
export { ServiceIntegrationTestGenerator } from './ServiceIntegrationTestGenerator.js';
|
|
29
|
+
export type { ServiceEndpoint, ServiceIntegrationTestOptions, ServiceIntegrationTestResult, } from './ServiceIntegrationTestGenerator.js';
|
|
30
|
+
export { ServiceRequestFactoryGenerator } from './ServiceRequestFactoryGenerator.js';
|
|
31
|
+
export type { ServiceRequestFactoryResult, ServiceRequestField, ServiceRequestOptions, } from './ServiceRequestFactoryGenerator.js';
|
|
32
|
+
export { ServiceScaffolder } from './ServiceScaffolder.js';
|
|
33
|
+
export type { ServiceOptions, ServiceScaffoldResult } from './ServiceScaffolder.js';
|
|
34
|
+
export { BUILT_IN_TEMPLATES, TemplateEngine } from './TemplateEngine.js';
|
|
35
|
+
export type { Template, TemplateFile, TemplateVariables } from './TemplateEngine.js';
|
|
36
|
+
export { TemplateGenerator } from './TemplateGenerator.js';
|
|
37
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Scaffolding Module Exports
|
|
3
3
|
*/
|
|
4
|
-
export { ControllerGenerator } from '
|
|
5
|
-
export { FactoryGenerator } from '
|
|
6
|
-
export { FeatureScaffolder } from '
|
|
7
|
-
export { FileGenerator } from '
|
|
8
|
-
export { GovernanceScaffolder } from '
|
|
9
|
-
export { MigrationGenerator } from '
|
|
10
|
-
export { ModelGenerator } from '
|
|
11
|
-
export { ProjectScaffolder } from '
|
|
12
|
-
export { RequestFactoryGenerator } from '
|
|
13
|
-
export { ResponseFactoryGenerator } from '
|
|
14
|
-
export { RouteGenerator } from '
|
|
15
|
-
export { SeederGenerator } from '
|
|
16
|
-
export { ServiceIntegrationTestGenerator } from '
|
|
17
|
-
export { ServiceRequestFactoryGenerator } from '
|
|
18
|
-
export { ServiceScaffolder } from '
|
|
19
|
-
export { BUILT_IN_TEMPLATES, TemplateEngine } from '
|
|
20
|
-
export { TemplateGenerator } from '
|
|
4
|
+
export { ControllerGenerator } from './ControllerGenerator.js';
|
|
5
|
+
export { FactoryGenerator } from './FactoryGenerator.js';
|
|
6
|
+
export { FeatureScaffolder } from './FeatureScaffolder.js';
|
|
7
|
+
export { FileGenerator } from './FileGenerator.js';
|
|
8
|
+
export { GovernanceScaffolder } from './GovernanceScaffolder.js';
|
|
9
|
+
export { MigrationGenerator } from './MigrationGenerator.js';
|
|
10
|
+
export { ModelGenerator } from './ModelGenerator.js';
|
|
11
|
+
export { ProjectScaffolder } from './ProjectScaffolder.js';
|
|
12
|
+
export { RequestFactoryGenerator } from './RequestFactoryGenerator.js';
|
|
13
|
+
export { ResponseFactoryGenerator } from './ResponseFactoryGenerator.js';
|
|
14
|
+
export { RouteGenerator } from './RouteGenerator.js';
|
|
15
|
+
export { SeederGenerator } from './SeederGenerator.js';
|
|
16
|
+
export { ServiceIntegrationTestGenerator } from './ServiceIntegrationTestGenerator.js';
|
|
17
|
+
export { ServiceRequestFactoryGenerator } from './ServiceRequestFactoryGenerator.js';
|
|
18
|
+
export { ServiceScaffolder } from './ServiceScaffolder.js';
|
|
19
|
+
export { BUILT_IN_TEMPLATES, TemplateEngine } from './TemplateEngine.js';
|
|
20
|
+
export { TemplateGenerator } from './TemplateGenerator.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Checks if the current CLI version is outdated and warns users
|
|
5
5
|
* when a newer version is available from npm registry.
|
|
6
6
|
*/
|
|
7
|
-
import { type IHttpResponse } from '../../tools/http/Http';
|
|
7
|
+
import { type IHttpResponse } from '../../tools/http/Http.js';
|
|
8
8
|
interface VersionCheckResult {
|
|
9
9
|
currentVersion: string;
|
|
10
10
|
latestVersion: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { CommandOptions, IBaseCommand } from '../BaseCommand';
|
|
2
|
-
import type { DatabaseConfig as OrmDatabaseConfig } from '../../orm/DatabaseAdapter';
|
|
1
|
+
import type { CommandOptions, IBaseCommand } from '../BaseCommand.js';
|
|
2
|
+
import type { DatabaseConfig as OrmDatabaseConfig } from '../../orm/DatabaseAdapter.js';
|
|
3
3
|
export type ConnectionConfig = {
|
|
4
4
|
driver: string;
|
|
5
5
|
host?: string;
|