@typetron/framework 0.5.22 → 0.5.25
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/build/Cache/Cache.d.ts +9 -0
- package/build/Cache/Cache.d.ts.map +1 -0
- package/build/Cache/Cache.js +7 -0
- package/build/Cache/Cache.js.map +1 -0
- package/build/Cache/Stores/DatabaseStore.d.ts +16 -0
- package/build/Cache/Stores/DatabaseStore.d.ts.map +1 -0
- package/build/Cache/Stores/DatabaseStore.js +105 -0
- package/build/Cache/Stores/DatabaseStore.js.map +1 -0
- package/build/Cache/Stores/FileStore.d.ts +16 -0
- package/build/Cache/Stores/FileStore.d.ts.map +1 -0
- package/build/Cache/Stores/FileStore.js +65 -0
- package/build/Cache/Stores/FileStore.js.map +1 -0
- package/build/Cache/Stores/MemoryStore.d.ts +13 -0
- package/build/Cache/Stores/MemoryStore.d.ts.map +1 -0
- package/build/Cache/Stores/MemoryStore.js +57 -0
- package/build/Cache/Stores/MemoryStore.js.map +1 -0
- package/build/Cache/index.d.ts +6 -0
- package/build/Cache/index.d.ts.map +1 -0
- package/build/Cache/index.js +22 -0
- package/build/Cache/index.js.map +1 -0
- package/build/Cache/types.d.ts +5 -0
- package/build/Cache/types.d.ts.map +1 -0
- package/build/Cache/types.js +3 -0
- package/build/Cache/types.js.map +1 -0
- package/build/Container/ClassResolver.d.ts +9 -0
- package/build/Container/ClassResolver.d.ts.map +1 -0
- package/build/Container/ClassResolver.js +93 -0
- package/build/Container/ClassResolver.js.map +1 -0
- package/build/Container/Container.d.ts +26 -0
- package/build/Container/Container.d.ts.map +1 -0
- package/build/Container/Container.js +132 -0
- package/build/Container/Container.js.map +1 -0
- package/build/Container/Contracts.d.ts +3 -0
- package/build/Container/Contracts.d.ts.map +1 -0
- package/build/Container/Contracts.js +3 -0
- package/build/Container/Contracts.js.map +1 -0
- package/build/Container/Decorators.d.ts +5 -0
- package/build/Container/Decorators.d.ts.map +1 -0
- package/build/Container/Decorators.js +21 -0
- package/build/Container/Decorators.js.map +1 -0
- package/build/Container/Metadata.d.ts +22 -0
- package/build/Container/Metadata.d.ts.map +1 -0
- package/build/Container/Metadata.js +18 -0
- package/build/Container/Metadata.js.map +1 -0
- package/build/Container/Resolver.d.ts +19 -0
- package/build/Container/Resolver.d.ts.map +1 -0
- package/build/Container/Resolver.js +17 -0
- package/build/Container/Resolver.js.map +1 -0
- package/build/Container/index.d.ts +6 -0
- package/build/Container/index.d.ts.map +1 -0
- package/build/Container/index.js +22 -0
- package/build/Container/index.js.map +1 -0
- package/build/Database/Clauses/Where.d.ts +1 -0
- package/build/Database/Clauses/Where.d.ts.map +1 -0
- package/build/Database/Clauses/Where.js +2 -0
- package/build/Database/Clauses/Where.js.map +1 -0
- package/build/Database/Connection.d.ts +21 -0
- package/build/Database/Connection.d.ts.map +1 -0
- package/build/Database/Connection.js +44 -0
- package/build/Database/Connection.js.map +1 -0
- package/build/Database/Decorators.d.ts +36 -0
- package/build/Database/Decorators.d.ts.map +1 -0
- package/build/Database/Decorators.js +116 -0
- package/build/Database/Decorators.js.map +1 -0
- package/build/Database/Drivers/DatabaseDriver.d.ts +29 -0
- package/build/Database/Drivers/DatabaseDriver.d.ts.map +1 -0
- package/build/Database/Drivers/DatabaseDriver.js +7 -0
- package/build/Database/Drivers/DatabaseDriver.js.map +1 -0
- package/build/Database/Drivers/MySQL/Alter/index.d.ts +34 -0
- package/build/Database/Drivers/MySQL/Alter/index.d.ts.map +1 -0
- package/build/Database/Drivers/MySQL/Alter/index.js +70 -0
- package/build/Database/Drivers/MySQL/Alter/index.js.map +1 -0
- package/build/Database/Drivers/MySQL/ColumnDefinition.d.ts +7 -0
- package/build/Database/Drivers/MySQL/ColumnDefinition.d.ts.map +1 -0
- package/build/Database/Drivers/MySQL/ColumnDefinition.js +19 -0
- package/build/Database/Drivers/MySQL/ColumnDefinition.js.map +1 -0
- package/build/Database/Drivers/MySQL/Create.d.ts +10 -0
- package/build/Database/Drivers/MySQL/Create.d.ts.map +1 -0
- package/build/Database/Drivers/MySQL/Create.js +44 -0
- package/build/Database/Drivers/MySQL/Create.js.map +1 -0
- package/build/Database/Drivers/MySQL/MysqlDriver.d.ts +42 -0
- package/build/Database/Drivers/MySQL/MysqlDriver.d.ts.map +1 -0
- package/build/Database/Drivers/MySQL/MysqlDriver.js +93 -0
- package/build/Database/Drivers/MySQL/MysqlDriver.js.map +1 -0
- package/build/Database/Drivers/MySQL/Schema.d.ts +16 -0
- package/build/Database/Drivers/MySQL/Schema.d.ts.map +1 -0
- package/build/Database/Drivers/MySQL/Schema.js +67 -0
- package/build/Database/Drivers/MySQL/Schema.js.map +1 -0
- package/build/Database/Drivers/MySQL/index.d.ts +2 -0
- package/build/Database/Drivers/MySQL/index.d.ts.map +1 -0
- package/build/Database/Drivers/MySQL/index.js +16 -0
- package/build/Database/Drivers/MySQL/index.js.map +1 -0
- package/build/Database/Drivers/SQL/Schema.d.ts +7 -0
- package/build/Database/Drivers/SQL/Schema.d.ts.map +1 -0
- package/build/Database/Drivers/SQL/Schema.js +58 -0
- package/build/Database/Drivers/SQL/Schema.js.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Alter.d.ts +8 -0
- package/build/Database/Drivers/SQL/Statements/Alter.d.ts.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Alter.js +22 -0
- package/build/Database/Drivers/SQL/Statements/Alter.js.map +1 -0
- package/build/Database/Drivers/SQL/Statements/BaseStatement.d.ts +13 -0
- package/build/Database/Drivers/SQL/Statements/BaseStatement.d.ts.map +1 -0
- package/build/Database/Drivers/SQL/Statements/BaseStatement.js +46 -0
- package/build/Database/Drivers/SQL/Statements/BaseStatement.js.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Delete.d.ts +6 -0
- package/build/Database/Drivers/SQL/Statements/Delete.d.ts.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Delete.js +20 -0
- package/build/Database/Drivers/SQL/Statements/Delete.js.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Insert.d.ts +7 -0
- package/build/Database/Drivers/SQL/Statements/Insert.d.ts.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Insert.js +24 -0
- package/build/Database/Drivers/SQL/Statements/Insert.js.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Select.d.ts +8 -0
- package/build/Database/Drivers/SQL/Statements/Select.d.ts.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Select.js +51 -0
- package/build/Database/Drivers/SQL/Statements/Select.js.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Update.d.ts +7 -0
- package/build/Database/Drivers/SQL/Statements/Update.d.ts.map +1 -0
- package/build/Database/Drivers/SQL/Statements/Update.js +33 -0
- package/build/Database/Drivers/SQL/Statements/Update.js.map +1 -0
- package/build/Database/Drivers/SQL/index.d.ts +9 -0
- package/build/Database/Drivers/SQL/index.d.ts.map +1 -0
- package/build/Database/Drivers/SQL/index.js +3 -0
- package/build/Database/Drivers/SQL/index.js.map +1 -0
- package/build/Database/Drivers/SQLite/Create.d.ts +10 -0
- package/build/Database/Drivers/SQLite/Create.d.ts.map +1 -0
- package/build/Database/Drivers/SQLite/Create.js +43 -0
- package/build/Database/Drivers/SQLite/Create.js.map +1 -0
- package/build/Database/Drivers/SQLite/Schema.d.ts +16 -0
- package/build/Database/Drivers/SQLite/Schema.d.ts.map +1 -0
- package/build/Database/Drivers/SQLite/Schema.js +49 -0
- package/build/Database/Drivers/SQLite/Schema.js.map +1 -0
- package/build/Database/Drivers/SQLite/SqliteDriver.d.ts +43 -0
- package/build/Database/Drivers/SQLite/SqliteDriver.d.ts.map +1 -0
- package/build/Database/Drivers/SQLite/SqliteDriver.js +115 -0
- package/build/Database/Drivers/SQLite/SqliteDriver.js.map +1 -0
- package/build/Database/Drivers/SQLite/index.d.ts +3 -0
- package/build/Database/Drivers/SQLite/index.d.ts.map +1 -0
- package/build/Database/Drivers/SQLite/index.js +31 -0
- package/build/Database/Drivers/SQLite/index.js.map +1 -0
- package/build/Database/Drivers/SchemaContract.d.ts +9 -0
- package/build/Database/Drivers/SchemaContract.d.ts.map +1 -0
- package/build/Database/Drivers/SchemaContract.js +11 -0
- package/build/Database/Drivers/SchemaContract.js.map +1 -0
- package/build/Database/Drivers/Statement.d.ts +10 -0
- package/build/Database/Drivers/Statement.d.ts.map +1 -0
- package/build/Database/Drivers/Statement.js +17 -0
- package/build/Database/Drivers/Statement.js.map +1 -0
- package/build/Database/Drivers/index.d.ts +5 -0
- package/build/Database/Drivers/index.d.ts.map +1 -0
- package/build/Database/Drivers/index.js +21 -0
- package/build/Database/Drivers/index.js.map +1 -0
- package/build/Database/Entity.d.ts +64 -0
- package/build/Database/Entity.d.ts.map +1 -0
- package/build/Database/Entity.js +243 -0
- package/build/Database/Entity.js.map +1 -0
- package/build/Database/EntityNotFoundError.d.ts +6 -0
- package/build/Database/EntityNotFoundError.d.ts.map +1 -0
- package/build/Database/EntityNotFoundError.js +12 -0
- package/build/Database/EntityNotFoundError.js.map +1 -0
- package/build/Database/EntityProxyHandler.d.ts +6 -0
- package/build/Database/EntityProxyHandler.d.ts.map +1 -0
- package/build/Database/EntityProxyHandler.js +40 -0
- package/build/Database/EntityProxyHandler.js.map +1 -0
- package/build/Database/EntityQuery.d.ts +29 -0
- package/build/Database/EntityQuery.d.ts.map +1 -0
- package/build/Database/EntityQuery.js +158 -0
- package/build/Database/EntityQuery.js.map +1 -0
- package/build/Database/Expression.d.ts +4 -0
- package/build/Database/Expression.d.ts.map +1 -0
- package/build/Database/Expression.js +7 -0
- package/build/Database/Expression.js.map +1 -0
- package/build/Database/Fields.d.ts +156 -0
- package/build/Database/Fields.d.ts.map +1 -0
- package/build/Database/Fields.js +564 -0
- package/build/Database/Fields.js.map +1 -0
- package/build/Database/Helpers.d.ts +2 -0
- package/build/Database/Helpers.d.ts.map +1 -0
- package/build/Database/Helpers.js +16 -0
- package/build/Database/Helpers.js.map +1 -0
- package/build/Database/List.d.ts +24 -0
- package/build/Database/List.d.ts.map +1 -0
- package/build/Database/List.js +48 -0
- package/build/Database/List.js.map +1 -0
- package/build/Database/Migrations/Migration.d.ts +8 -0
- package/build/Database/Migrations/Migration.d.ts.map +1 -0
- package/build/Database/Migrations/Migration.js +11 -0
- package/build/Database/Migrations/Migration.js.map +1 -0
- package/build/Database/Migrations/MigrationHistory.d.ts +9 -0
- package/build/Database/Migrations/MigrationHistory.d.ts.map +1 -0
- package/build/Database/Migrations/MigrationHistory.js +43 -0
- package/build/Database/Migrations/MigrationHistory.js.map +1 -0
- package/build/Database/Migrations/Migrator.d.ts +21 -0
- package/build/Database/Migrations/Migrator.d.ts.map +1 -0
- package/build/Database/Migrations/Migrator.js +135 -0
- package/build/Database/Migrations/Migrator.js.map +1 -0
- package/build/Database/Migrations/index.d.ts +4 -0
- package/build/Database/Migrations/index.d.ts.map +1 -0
- package/build/Database/Migrations/index.js +20 -0
- package/build/Database/Migrations/index.js.map +1 -0
- package/build/Database/ORM/BaseRelationship.d.ts +8 -0
- package/build/Database/ORM/BaseRelationship.d.ts.map +1 -0
- package/build/Database/ORM/BaseRelationship.js +13 -0
- package/build/Database/ORM/BaseRelationship.js.map +1 -0
- package/build/Database/Query.d.ts +63 -0
- package/build/Database/Query.d.ts.map +1 -0
- package/build/Database/Query.js +264 -0
- package/build/Database/Query.js.map +1 -0
- package/build/Database/Seeders/Seeder.d.ts +4 -0
- package/build/Database/Seeders/Seeder.d.ts.map +1 -0
- package/build/Database/Seeders/Seeder.js +7 -0
- package/build/Database/Seeders/Seeder.js.map +1 -0
- package/build/Database/Seeders/SeederManager.d.ts +9 -0
- package/build/Database/Seeders/SeederManager.d.ts.map +1 -0
- package/build/Database/Seeders/SeederManager.js +27 -0
- package/build/Database/Seeders/SeederManager.js.map +1 -0
- package/build/Database/Seeders/index.d.ts +3 -0
- package/build/Database/Seeders/index.d.ts.map +1 -0
- package/build/Database/Seeders/index.js +19 -0
- package/build/Database/Seeders/index.js.map +1 -0
- package/build/Database/StringExpression.d.ts +7 -0
- package/build/Database/StringExpression.d.ts.map +1 -0
- package/build/Database/StringExpression.js +16 -0
- package/build/Database/StringExpression.js.map +1 -0
- package/build/Database/Types.d.ts +118 -0
- package/build/Database/Types.d.ts.map +1 -0
- package/build/Database/Types.js +106 -0
- package/build/Database/Types.js.map +1 -0
- package/build/Database/index.d.ts +21 -0
- package/build/Database/index.d.ts.map +1 -0
- package/build/Database/index.js +25 -0
- package/build/Database/index.js.map +1 -0
- package/build/Encryption/index.d.ts +15 -0
- package/build/Encryption/index.d.ts.map +1 -0
- package/build/Encryption/index.js +68 -0
- package/build/Encryption/index.js.map +1 -0
- package/build/Forms/Decorators.d.ts +7 -0
- package/build/Forms/Decorators.d.ts.map +1 -0
- package/build/Forms/Decorators.js +29 -0
- package/build/Forms/Decorators.js.map +1 -0
- package/build/Forms/Form.d.ts +18 -0
- package/build/Forms/Form.d.ts.map +1 -0
- package/build/Forms/Form.js +68 -0
- package/build/Forms/Form.js.map +1 -0
- package/build/Forms/FormFields.d.ts +10 -0
- package/build/Forms/FormFields.d.ts.map +1 -0
- package/build/Forms/FormFields.js +39 -0
- package/build/Forms/FormFields.js.map +1 -0
- package/build/Forms/index.d.ts +4 -0
- package/build/Forms/index.d.ts.map +1 -0
- package/build/Forms/index.js +20 -0
- package/build/Forms/index.js.map +1 -0
- package/build/Framework/App.d.ts +7 -0
- package/build/Framework/App.d.ts.map +1 -0
- package/build/Framework/App.js +11 -0
- package/build/Framework/App.js.map +1 -0
- package/build/Framework/Application.d.ts +17 -0
- package/build/Framework/Application.d.ts.map +1 -0
- package/build/Framework/Application.js +94 -0
- package/build/Framework/Application.js.map +1 -0
- package/build/Framework/Auth/Auth.d.ts +24 -0
- package/build/Framework/Auth/Auth.d.ts.map +1 -0
- package/build/Framework/Auth/Auth.js +116 -0
- package/build/Framework/Auth/Auth.js.map +1 -0
- package/build/Framework/Auth/Authenticatable.d.ts +7 -0
- package/build/Framework/Auth/Authenticatable.d.ts.map +1 -0
- package/build/Framework/Auth/Authenticatable.js +3 -0
- package/build/Framework/Auth/Authenticatable.js.map +1 -0
- package/build/Framework/Auth/User.d.ts +11 -0
- package/build/Framework/Auth/User.d.ts.map +1 -0
- package/build/Framework/Auth/User.js +41 -0
- package/build/Framework/Auth/User.js.map +1 -0
- package/build/Framework/Auth/index.d.ts +6 -0
- package/build/Framework/Auth/index.d.ts.map +1 -0
- package/build/Framework/Auth/index.js +44 -0
- package/build/Framework/Auth/index.js.map +1 -0
- package/build/Framework/Config/AppConfig.d.ts +26 -0
- package/build/Framework/Config/AppConfig.d.ts.map +1 -0
- package/build/Framework/Config/AppConfig.js +20 -0
- package/build/Framework/Config/AppConfig.js.map +1 -0
- package/build/Framework/Config/AuthConfig.d.ts +11 -0
- package/build/Framework/Config/AuthConfig.d.ts.map +1 -0
- package/build/Framework/Config/AuthConfig.js +13 -0
- package/build/Framework/Config/AuthConfig.js.map +1 -0
- package/build/Framework/Config/BaseConfig.d.ts +7 -0
- package/build/Framework/Config/BaseConfig.d.ts.map +1 -0
- package/build/Framework/Config/BaseConfig.js +14 -0
- package/build/Framework/Config/BaseConfig.js.map +1 -0
- package/build/Framework/Config/CacheConfig.d.ts +16 -0
- package/build/Framework/Config/CacheConfig.d.ts.map +1 -0
- package/build/Framework/Config/CacheConfig.js +37 -0
- package/build/Framework/Config/CacheConfig.js.map +1 -0
- package/build/Framework/Config/DatabaseConfig.d.ts +11 -0
- package/build/Framework/Config/DatabaseConfig.d.ts.map +1 -0
- package/build/Framework/Config/DatabaseConfig.js +23 -0
- package/build/Framework/Config/DatabaseConfig.js.map +1 -0
- package/build/Framework/Config/MailConfig.d.ts +19 -0
- package/build/Framework/Config/MailConfig.d.ts.map +1 -0
- package/build/Framework/Config/MailConfig.js +11 -0
- package/build/Framework/Config/MailConfig.js.map +1 -0
- package/build/Framework/Config/index.d.ts +7 -0
- package/build/Framework/Config/index.d.ts.map +1 -0
- package/build/Framework/Config/index.js +23 -0
- package/build/Framework/Config/index.js.map +1 -0
- package/build/Framework/Middleware/AuthMiddleware.d.ts +9 -0
- package/build/Framework/Middleware/AuthMiddleware.d.ts.map +1 -0
- package/build/Framework/Middleware/AuthMiddleware.js +78 -0
- package/build/Framework/Middleware/AuthMiddleware.js.map +1 -0
- package/build/Framework/Middleware/CorsMiddleware.d.ts +8 -0
- package/build/Framework/Middleware/CorsMiddleware.d.ts.map +1 -0
- package/build/Framework/Middleware/CorsMiddleware.js +47 -0
- package/build/Framework/Middleware/CorsMiddleware.js.map +1 -0
- package/build/Framework/Middleware/StaticAssetsMiddleware.d.ts +16 -0
- package/build/Framework/Middleware/StaticAssetsMiddleware.d.ts.map +1 -0
- package/build/Framework/Middleware/StaticAssetsMiddleware.js +120 -0
- package/build/Framework/Middleware/StaticAssetsMiddleware.js.map +1 -0
- package/build/Framework/Middleware/index.d.ts +3 -0
- package/build/Framework/Middleware/index.d.ts.map +1 -0
- package/build/Framework/Middleware/index.js +19 -0
- package/build/Framework/Middleware/index.js.map +1 -0
- package/build/Framework/Provider.d.ts +6 -0
- package/build/Framework/Provider.d.ts.map +1 -0
- package/build/Framework/Provider.js +22 -0
- package/build/Framework/Provider.js.map +1 -0
- package/build/Framework/Providers/CacheProvider.d.ts +7 -0
- package/build/Framework/Providers/CacheProvider.d.ts.map +1 -0
- package/build/Framework/Providers/CacheProvider.js +40 -0
- package/build/Framework/Providers/CacheProvider.js.map +1 -0
- package/build/Framework/Providers/DatabaseProvider.d.ts +10 -0
- package/build/Framework/Providers/DatabaseProvider.d.ts.map +1 -0
- package/build/Framework/Providers/DatabaseProvider.js +80 -0
- package/build/Framework/Providers/DatabaseProvider.js.map +1 -0
- package/build/Framework/Providers/MailProvider.d.ts +7 -0
- package/build/Framework/Providers/MailProvider.d.ts.map +1 -0
- package/build/Framework/Providers/MailProvider.js +41 -0
- package/build/Framework/Providers/MailProvider.js.map +1 -0
- package/build/Framework/Providers/WebsocketsProvider.d.ts +12 -0
- package/build/Framework/Providers/WebsocketsProvider.d.ts.map +1 -0
- package/build/Framework/Providers/WebsocketsProvider.js +144 -0
- package/build/Framework/Providers/WebsocketsProvider.js.map +1 -0
- package/build/Framework/Resolvers/AuthResolver.d.ts +6 -0
- package/build/Framework/Resolvers/AuthResolver.d.ts.map +1 -0
- package/build/Framework/Resolvers/AuthResolver.js +19 -0
- package/build/Framework/Resolvers/AuthResolver.js.map +1 -0
- package/build/Framework/Resolvers/EntityResolver.d.ts +10 -0
- package/build/Framework/Resolvers/EntityResolver.d.ts.map +1 -0
- package/build/Framework/Resolvers/EntityResolver.js +40 -0
- package/build/Framework/Resolvers/EntityResolver.js.map +1 -0
- package/build/Framework/Resolvers/FormResolver.d.ts +10 -0
- package/build/Framework/Resolvers/FormResolver.d.ts.map +1 -0
- package/build/Framework/Resolvers/FormResolver.js +34 -0
- package/build/Framework/Resolvers/FormResolver.js.map +1 -0
- package/build/Framework/RootDir.d.ts +3 -0
- package/build/Framework/RootDir.d.ts.map +1 -0
- package/build/Framework/RootDir.js +7 -0
- package/build/Framework/RootDir.js.map +1 -0
- package/build/Framework/index.d.ts +9 -0
- package/build/Framework/index.d.ts.map +1 -0
- package/build/Framework/index.js +25 -0
- package/build/Framework/index.js.map +1 -0
- package/build/Mail/MailAddress.d.ts +5 -0
- package/build/Mail/MailAddress.d.ts.map +1 -0
- package/build/Mail/MailAddress.js +3 -0
- package/build/Mail/MailAddress.js.map +1 -0
- package/build/Mail/MailTransport.d.ts +6 -0
- package/build/Mail/MailTransport.d.ts.map +1 -0
- package/build/Mail/MailTransport.js +7 -0
- package/build/Mail/MailTransport.js.map +1 -0
- package/build/Mail/Mailable.d.ts +18 -0
- package/build/Mail/Mailable.d.ts.map +1 -0
- package/build/Mail/Mailable.js +17 -0
- package/build/Mail/Mailable.js.map +1 -0
- package/build/Mail/Mailer.d.ts +12 -0
- package/build/Mail/Mailer.d.ts.map +1 -0
- package/build/Mail/Mailer.js +27 -0
- package/build/Mail/Mailer.js.map +1 -0
- package/build/Mail/PendingMail.d.ts +30 -0
- package/build/Mail/PendingMail.d.ts.map +1 -0
- package/build/Mail/PendingMail.js +54 -0
- package/build/Mail/PendingMail.js.map +1 -0
- package/build/Mail/SentMessage.d.ts +16 -0
- package/build/Mail/SentMessage.d.ts.map +1 -0
- package/build/Mail/SentMessage.js +20 -0
- package/build/Mail/SentMessage.js.map +1 -0
- package/build/Mail/Transports/MemoryTransport.d.ts +8 -0
- package/build/Mail/Transports/MemoryTransport.d.ts.map +1 -0
- package/build/Mail/Transports/MemoryTransport.js +15 -0
- package/build/Mail/Transports/MemoryTransport.js.map +1 -0
- package/build/Mail/Transports/SendGridTransport.d.ts +11 -0
- package/build/Mail/Transports/SendGridTransport.d.ts.map +1 -0
- package/build/Mail/Transports/SendGridTransport.js +106 -0
- package/build/Mail/Transports/SendGridTransport.js.map +1 -0
- package/build/Mail/index.d.ts +4 -0
- package/build/Mail/index.d.ts.map +1 -0
- package/build/Mail/index.js +20 -0
- package/build/Mail/index.js.map +1 -0
- package/build/Models/Model.d.ts +10 -0
- package/build/Models/Model.d.ts.map +1 -0
- package/build/Models/Model.js +36 -0
- package/build/Models/Model.js.map +1 -0
- package/build/Models/index.d.ts +22 -0
- package/build/Models/index.d.ts.map +1 -0
- package/build/Models/index.js +64 -0
- package/build/Models/index.js.map +1 -0
- package/build/Router/BaseController.d.ts +5 -0
- package/build/Router/BaseController.d.ts.map +1 -0
- package/build/Router/BaseController.js +22 -0
- package/build/Router/BaseController.js.map +1 -0
- package/build/Router/Decorators.d.ts +19 -0
- package/build/Router/Decorators.d.ts.map +1 -0
- package/build/Router/Decorators.js +175 -0
- package/build/Router/Decorators.js.map +1 -0
- package/build/Router/Guard.d.ts +5 -0
- package/build/Router/Guard.d.ts.map +1 -0
- package/build/Router/Guard.js +11 -0
- package/build/Router/Guard.js.map +1 -0
- package/build/Router/Http/Contracts.d.ts +4 -0
- package/build/Router/Http/Contracts.d.ts.map +1 -0
- package/build/Router/Http/Contracts.js +3 -0
- package/build/Router/Http/Contracts.js.map +1 -0
- package/build/Router/Http/ErrorHandler.d.ts +10 -0
- package/build/Router/Http/ErrorHandler.d.ts.map +1 -0
- package/build/Router/Http/ErrorHandler.js +53 -0
- package/build/Router/Http/ErrorHandler.js.map +1 -0
- package/build/Router/Http/ErrorHandlerInterface.d.ts +6 -0
- package/build/Router/Http/ErrorHandlerInterface.d.ts.map +1 -0
- package/build/Router/Http/ErrorHandlerInterface.js +8 -0
- package/build/Router/Http/ErrorHandlerInterface.js.map +1 -0
- package/build/Router/Http/Errors/HttpError.d.ts +8 -0
- package/build/Router/Http/Errors/HttpError.d.ts.map +1 -0
- package/build/Router/Http/Errors/HttpError.js +18 -0
- package/build/Router/Http/Errors/HttpError.js.map +1 -0
- package/build/Router/Http/Handler.d.ts +19 -0
- package/build/Router/Http/Handler.d.ts.map +1 -0
- package/build/Router/Http/Handler.js +164 -0
- package/build/Router/Http/Handler.js.map +1 -0
- package/build/Router/Http/HttpRoute.d.ts +25 -0
- package/build/Router/Http/HttpRoute.d.ts.map +1 -0
- package/build/Router/Http/HttpRoute.js +97 -0
- package/build/Router/Http/HttpRoute.js.map +1 -0
- package/build/Router/Http/Middleware.d.ts +7 -0
- package/build/Router/Http/Middleware.d.ts.map +1 -0
- package/build/Router/Http/Middleware.js +8 -0
- package/build/Router/Http/Middleware.js.map +1 -0
- package/build/Router/Http/Request.d.ts +38 -0
- package/build/Router/Http/Request.d.ts.map +1 -0
- package/build/Router/Http/Request.js +211 -0
- package/build/Router/Http/Request.js.map +1 -0
- package/build/Router/Http/Response.d.ts +14 -0
- package/build/Router/Http/Response.d.ts.map +1 -0
- package/build/Router/Http/Response.js +31 -0
- package/build/Router/Http/Response.js.map +1 -0
- package/build/Router/Http/index.d.ts +84 -0
- package/build/Router/Http/index.d.ts.map +1 -0
- package/build/Router/Http/index.js +104 -0
- package/build/Router/Http/index.js.map +1 -0
- package/build/Router/Metadata.d.ts +41 -0
- package/build/Router/Metadata.d.ts.map +1 -0
- package/build/Router/Metadata.js +33 -0
- package/build/Router/Metadata.js.map +1 -0
- package/build/Router/Middleware.d.ts +13 -0
- package/build/Router/Middleware.d.ts.map +1 -0
- package/build/Router/Middleware.js +7 -0
- package/build/Router/Middleware.js.map +1 -0
- package/build/Router/Request.d.ts +24 -0
- package/build/Router/Request.d.ts.map +1 -0
- package/build/Router/Request.js +44 -0
- package/build/Router/Request.js.map +1 -0
- package/build/Router/Route.d.ts +13 -0
- package/build/Router/Route.d.ts.map +1 -0
- package/build/Router/Route.js +20 -0
- package/build/Router/Route.js.map +1 -0
- package/build/Router/RouteNotFoundError.d.ts +4 -0
- package/build/Router/RouteNotFoundError.d.ts.map +1 -0
- package/build/Router/RouteNotFoundError.js +10 -0
- package/build/Router/RouteNotFoundError.js.map +1 -0
- package/build/Router/Router.d.ts +19 -0
- package/build/Router/Router.d.ts.map +1 -0
- package/build/Router/Router.js +36 -0
- package/build/Router/Router.js.map +1 -0
- package/build/Router/Servers/index.d.ts +5 -0
- package/build/Router/Servers/index.d.ts.map +1 -0
- package/build/Router/Servers/index.js +19 -0
- package/build/Router/Servers/index.js.map +1 -0
- package/build/Router/Servers/node.d.ts +3 -0
- package/build/Router/Servers/node.d.ts.map +1 -0
- package/build/Router/Servers/node.js +41 -0
- package/build/Router/Servers/node.js.map +1 -0
- package/build/Router/Servers/uNetworking.d.ts +3 -0
- package/build/Router/Servers/uNetworking.d.ts.map +1 -0
- package/build/Router/Servers/uNetworking.js +172 -0
- package/build/Router/Servers/uNetworking.js.map +1 -0
- package/build/Router/Websockets/Handler.d.ts +15 -0
- package/build/Router/Websockets/Handler.d.ts.map +1 -0
- package/build/Router/Websockets/Handler.js +70 -0
- package/build/Router/Websockets/Handler.js.map +1 -0
- package/build/Router/Websockets/Middleware.d.ts +7 -0
- package/build/Router/Websockets/Middleware.d.ts.map +1 -0
- package/build/Router/Websockets/Middleware.js +8 -0
- package/build/Router/Websockets/Middleware.js.map +1 -0
- package/build/Router/Websockets/Request.d.ts +4 -0
- package/build/Router/Websockets/Request.d.ts.map +1 -0
- package/build/Router/Websockets/Request.js +8 -0
- package/build/Router/Websockets/Request.js.map +1 -0
- package/build/Router/Websockets/WebsocketRoute.d.ts +7 -0
- package/build/Router/Websockets/WebsocketRoute.d.ts.map +1 -0
- package/build/Router/Websockets/WebsocketRoute.js +47 -0
- package/build/Router/Websockets/WebsocketRoute.js.map +1 -0
- package/build/Router/Websockets/index.d.ts +19 -0
- package/build/Router/Websockets/index.d.ts.map +1 -0
- package/build/Router/Websockets/index.js +68 -0
- package/build/Router/Websockets/index.js.map +1 -0
- package/build/Router/Websockets/types.d.ts +22 -0
- package/build/Router/Websockets/types.d.ts.map +1 -0
- package/build/Router/Websockets/types.js +9 -0
- package/build/Router/Websockets/types.js.map +1 -0
- package/build/Router/index.d.ts +7 -0
- package/build/Router/index.d.ts.map +1 -0
- package/build/Router/index.js +23 -0
- package/build/Router/index.js.map +1 -0
- package/build/Storage/File.d.ts +12 -0
- package/build/Storage/File.d.ts.map +1 -0
- package/build/Storage/File.js +65 -0
- package/build/Storage/File.js.map +1 -0
- package/build/Storage/Image.d.ts +4 -0
- package/build/Storage/Image.d.ts.map +1 -0
- package/build/Storage/Image.js +8 -0
- package/build/Storage/Image.js.map +1 -0
- package/build/Storage/InvalidImage.d.ts +4 -0
- package/build/Storage/InvalidImage.d.ts.map +1 -0
- package/build/Storage/InvalidImage.js +8 -0
- package/build/Storage/InvalidImage.js.map +1 -0
- package/build/Storage/Storage.d.ts +13 -0
- package/build/Storage/Storage.d.ts.map +1 -0
- package/build/Storage/Storage.js +120 -0
- package/build/Storage/Storage.js.map +1 -0
- package/build/Storage/index.d.ts +5 -0
- package/build/Storage/index.d.ts.map +1 -0
- package/build/Storage/index.js +21 -0
- package/build/Storage/index.js.map +1 -0
- package/build/Storage/utils.d.ts +5 -0
- package/build/Storage/utils.d.ts.map +1 -0
- package/build/Storage/utils.js +20 -0
- package/build/Storage/utils.js.map +1 -0
- package/build/Support/Array.d.ts +29 -0
- package/build/Support/Array.d.ts.map +1 -0
- package/build/Support/Array.js +112 -0
- package/build/Support/Array.js.map +1 -0
- package/build/Support/Math.d.ts +7 -0
- package/build/Support/Math.d.ts.map +1 -0
- package/build/Support/Math.js +8 -0
- package/build/Support/Math.js.map +1 -0
- package/build/Support/Metadata.d.ts +16 -0
- package/build/Support/Metadata.d.ts.map +1 -0
- package/build/Support/Metadata.js +33 -0
- package/build/Support/Metadata.js.map +1 -0
- package/build/Support/String.d.ts +12 -0
- package/build/Support/String.d.ts.map +1 -0
- package/build/Support/String.js +24 -0
- package/build/Support/String.js.map +1 -0
- package/build/Support/index.d.ts +16 -0
- package/build/Support/index.d.ts.map +1 -0
- package/build/Support/index.js +7 -0
- package/build/Support/index.js.map +1 -0
- package/build/Support/utils.d.ts +2 -0
- package/build/Support/utils.d.ts.map +1 -0
- package/build/Support/utils.js +12 -0
- package/build/Support/utils.js.map +1 -0
- package/build/Testing/TestCase.d.ts +33 -0
- package/build/Testing/TestCase.d.ts.map +1 -0
- package/build/Testing/TestCase.js +138 -0
- package/build/Testing/TestCase.js.map +1 -0
- package/build/Validation/Rule.d.ts +7 -0
- package/build/Validation/Rule.d.ts.map +1 -0
- package/build/Validation/Rule.js +7 -0
- package/build/Validation/Rule.js.map +1 -0
- package/build/Validation/RuleInterface.d.ts +7 -0
- package/build/Validation/RuleInterface.d.ts.map +1 -0
- package/build/Validation/RuleInterface.js +3 -0
- package/build/Validation/RuleInterface.js.map +1 -0
- package/build/Validation/Rules/Email.d.ts +4 -0
- package/build/Validation/Rules/Email.d.ts.map +1 -0
- package/build/Validation/Rules/Email.js +17 -0
- package/build/Validation/Rules/Email.js.map +1 -0
- package/build/Validation/Rules/FileExtension.d.ts +4 -0
- package/build/Validation/Rules/FileExtension.d.ts.map +1 -0
- package/build/Validation/Rules/FileExtension.js +19 -0
- package/build/Validation/Rules/FileExtension.js.map +1 -0
- package/build/Validation/Rules/MaxLength.d.ts +4 -0
- package/build/Validation/Rules/MaxLength.d.ts.map +1 -0
- package/build/Validation/Rules/MaxLength.js +16 -0
- package/build/Validation/Rules/MaxLength.js.map +1 -0
- package/build/Validation/Rules/MinLength.d.ts +4 -0
- package/build/Validation/Rules/MinLength.d.ts.map +1 -0
- package/build/Validation/Rules/MinLength.js +16 -0
- package/build/Validation/Rules/MinLength.js.map +1 -0
- package/build/Validation/Rules/Optional.d.ts +4 -0
- package/build/Validation/Rules/Optional.d.ts.map +1 -0
- package/build/Validation/Rules/Optional.js +16 -0
- package/build/Validation/Rules/Optional.js.map +1 -0
- package/build/Validation/Rules/Required.d.ts +4 -0
- package/build/Validation/Rules/Required.d.ts.map +1 -0
- package/build/Validation/Rules/Required.js +24 -0
- package/build/Validation/Rules/Required.js.map +1 -0
- package/build/Validation/Validator.d.ts +12 -0
- package/build/Validation/Validator.d.ts.map +1 -0
- package/build/Validation/Validator.js +13 -0
- package/build/Validation/Validator.js.map +1 -0
- package/build/Validation/index.d.ts +11 -0
- package/build/Validation/index.d.ts.map +1 -0
- package/build/Validation/index.js +27 -0
- package/build/Validation/index.js.map +1 -0
- package/package.json +10 -15
- package/.automaker/app_spec.txt +0 -440
- package/.automaker/categories.json +0 -1
- package/.automaker/features/a-b-testing-framework/feature.json +0 -14
- package/.automaker/features/account-lockout-protection/feature.json +0 -14
- package/.automaker/features/api-versioning/feature.json +0 -14
- package/.automaker/features/background-job-processing/feature.json +0 -12
- package/.automaker/features/cloud-storage-integration/feature.json +0 -14
- package/.automaker/features/compression-middleware/feature.json +0 -14
- package/.automaker/features/cors-and-security-headers/feature.json +0 -14
- package/.automaker/features/currency-and-timezone/feature.json +0 -14
- package/.automaker/features/database-backup-restore/feature.json +0 -14
- package/.automaker/features/database-query-logging/feature.json +0 -15
- package/.automaker/features/database-transaction-support/feature.json +0 -14
- package/.automaker/features/discord-notifications-channel/feature.json +0 -14
- package/.automaker/features/eager-loading-optimization/feature.json +0 -14
- package/.automaker/features/email-notifications-channel/feature.json +0 -14
- package/.automaker/features/error-tracking-integration/feature.json +0 -14
- package/.automaker/features/feature-flags/feature.json +0 -12
- package/.automaker/features/file-upload-handling/feature.json +0 -14
- package/.automaker/features/form-builder/feature.json +0 -14
- package/.automaker/features/full-text-search/feature.json +0 -14
- package/.automaker/features/graphql-api-support/feature.json +0 -14
- package/.automaker/features/graphql-documentation/feature.json +0 -14
- package/.automaker/features/graphql-subscriptions/feature.json +0 -15
- package/.automaker/features/html-view-rendering/feature.json +0 -14
- package/.automaker/features/http2-support/feature.json +0 -14
- package/.automaker/features/http3-quic-support/feature.json +0 -14
- package/.automaker/features/image-processing/feature.json +0 -14
- package/.automaker/features/internationalization-i18n/feature.json +0 -12
- package/.automaker/features/job-retries-and-failures/feature.json +0 -14
- package/.automaker/features/job-scheduling/feature.json +0 -14
- package/.automaker/features/locale-detection/feature.json +0 -14
- package/.automaker/features/log-rotation/feature.json +0 -14
- package/.automaker/features/logging-system/feature.json +0 -12
- package/.automaker/features/oauth-authentication/feature.json +0 -14
- package/.automaker/features/pagination-component/feature.json +0 -14
- package/.automaker/features/password-reset-flow/feature.json +0 -14
- package/.automaker/features/performance-monitoring/feature.json +0 -14
- package/.automaker/features/permission-management/feature.json +0 -14
- package/.automaker/features/policy-based-authorization/feature.json +0 -14
- package/.automaker/features/polymorphic-relationships/feature.json +0 -14
- package/.automaker/features/query-scopes/feature.json +0 -14
- package/.automaker/features/rate-limiting/feature.json +0 -14
- package/.automaker/features/request-validation-middleware/feature.json +0 -14
- package/.automaker/features/response-caching-headers/feature.json +0 -14
- package/.automaker/features/rest-api-documentation/feature.json +0 -14
- package/.automaker/features/role-based-access-control/feature.json +0 -14
- package/.automaker/features/session-management/feature.json +0 -14
- package/.automaker/features/session-middleware/feature.json +0 -14
- package/.automaker/features/slack-notifications-channel/feature.json +0 -14
- package/.automaker/features/sms-notifications-channel/feature.json +0 -14
- package/.automaker/features/soft-deletes/feature.json +0 -14
- package/.automaker/features/structured-logging/feature.json +0 -14
- package/.automaker/features/timestamps-and-auditing/feature.json +0 -14
- package/.automaker/features/two-factor-authentication/feature.json +0 -14
- package/.automaker/features/view-helpers-utilities/feature.json +0 -14
- package/.automaker/features/webhook-notifications/feature.json +0 -14
- package/.claude/settings.local.json +0 -10
- package/.editorconfig +0 -11
- package/.mocharc.json +0 -13
- package/CONTRIBUTING.md +0 -9
- package/Cache/Cache.ts +0 -13
- package/Cache/Stores/DatabaseStore.ts +0 -120
- package/Cache/Stores/FileStore.ts +0 -69
- package/Cache/Stores/MemoryStore.ts +0 -71
- package/Cache/index.ts +0 -5
- package/Cache/types.ts +0 -4
- package/Container/ClassResolver.ts +0 -106
- package/Container/Container.ts +0 -144
- package/Container/Contracts.ts +0 -3
- package/Container/Decorators.ts +0 -20
- package/Container/Metadata.ts +0 -16
- package/Container/Resolver.ts +0 -27
- package/Container/index.ts +0 -5
- package/Database/Clauses/Where.ts +0 -0
- package/Database/Connection.ts +0 -52
- package/Database/Decorators.ts +0 -142
- package/Database/Drivers/DatabaseDriver.ts +0 -37
- package/Database/Drivers/MySQL/Alter/index.ts +0 -55
- package/Database/Drivers/MySQL/ColumnDefinition.ts +0 -16
- package/Database/Drivers/MySQL/Create.ts +0 -47
- package/Database/Drivers/MySQL/MysqlDriver.ts +0 -123
- package/Database/Drivers/MySQL/Schema.ts +0 -82
- package/Database/Drivers/MySQL/index.ts +0 -13
- package/Database/Drivers/SQL/Schema.ts +0 -73
- package/Database/Drivers/SQL/Statements/Alter.ts +0 -22
- package/Database/Drivers/SQL/Statements/BaseStatement.ts +0 -55
- package/Database/Drivers/SQL/Statements/Delete.ts +0 -20
- package/Database/Drivers/SQL/Statements/Insert.ts +0 -24
- package/Database/Drivers/SQL/Statements/Select.ts +0 -55
- package/Database/Drivers/SQL/Statements/Update.ts +0 -33
- package/Database/Drivers/SQL/index.ts +0 -8
- package/Database/Drivers/SQLite/Create.ts +0 -45
- package/Database/Drivers/SQLite/Schema.ts +0 -54
- package/Database/Drivers/SQLite/SqliteDriver.ts +0 -144
- package/Database/Drivers/SQLite/index.ts +0 -15
- package/Database/Drivers/SchemaContract.ts +0 -11
- package/Database/Drivers/Statement.ts +0 -16
- package/Database/Drivers/index.ts +0 -4
- package/Database/Entity.ts +0 -377
- package/Database/EntityNotFoundError.ts +0 -5
- package/Database/EntityProxyHandler.ts +0 -43
- package/Database/EntityQuery.ts +0 -197
- package/Database/Expression.ts +0 -3
- package/Database/Fields.ts +0 -816
- package/Database/Helpers.ts +0 -12
- package/Database/List.ts +0 -71
- package/Database/Migrations/Migration.ts +0 -10
- package/Database/Migrations/MigrationHistory.ts +0 -20
- package/Database/Migrations/Migrator.ts +0 -122
- package/Database/Migrations/index.ts +0 -3
- package/Database/ORM/BaseRelationship.ts +0 -10
- package/Database/Query.ts +0 -374
- package/Database/Seeders/Seeder.ts +0 -3
- package/Database/Seeders/SeederManager.ts +0 -27
- package/Database/Seeders/index.ts +0 -2
- package/Database/StringExpression.ts +0 -9
- package/Database/Types.ts +0 -165
- package/Database/index.ts +0 -23
- package/Encryption/index.ts +0 -51
- package/Forms/Decorators.ts +0 -29
- package/Forms/Form.ts +0 -70
- package/Forms/FormFields.ts +0 -36
- package/Forms/index.ts +0 -3
- package/Framework/App.ts +0 -10
- package/Framework/Application.ts +0 -118
- package/Framework/Auth/Auth.ts +0 -122
- package/Framework/Auth/Authenticatable.ts +0 -9
- package/Framework/Auth/User.ts +0 -27
- package/Framework/Auth/index.ts +0 -29
- package/Framework/Config/AppConfig.ts +0 -25
- package/Framework/Config/AuthConfig.ts +0 -11
- package/Framework/Config/BaseConfig.ts +0 -9
- package/Framework/Config/CacheConfig.ts +0 -38
- package/Framework/Config/DatabaseConfig.ts +0 -21
- package/Framework/Config/MailConfig.ts +0 -30
- package/Framework/Config/index.ts +0 -6
- package/Framework/Middleware/AuthMiddleware.ts +0 -31
- package/Framework/Middleware/CorsMiddleware.ts +0 -32
- package/Framework/Middleware/StaticAssetsMiddleware.ts +0 -76
- package/Framework/Middleware/index.ts +0 -2
- package/Framework/Provider.ts +0 -9
- package/Framework/Providers/CacheProvider.ts +0 -28
- package/Framework/Providers/DatabaseProvider.ts +0 -36
- package/Framework/Providers/MailProvider.ts +0 -31
- package/Framework/Providers/WebsocketsProvider.ts +0 -141
- package/Framework/Resolvers/AuthResolver.ts +0 -23
- package/Framework/Resolvers/EntityResolver.ts +0 -41
- package/Framework/Resolvers/FormResolver.ts +0 -37
- package/Framework/RootDir.ts +0 -1
- package/Framework/index.ts +0 -8
- package/Frontend/Angular/Readme.md +0 -7
- package/Frontend/Angular/index.ts +0 -24
- package/Frontend/Angular/package-lock.json +0 -2767
- package/Frontend/Angular/package.json +0 -38
- package/Frontend/Angular/tsconfig.json +0 -20
- package/Frontend/Websockets/Readme.md +0 -86
- package/Frontend/Websockets/index.ts +0 -99
- package/Frontend/Websockets/package-lock.json +0 -4371
- package/Frontend/Websockets/package.json +0 -45
- package/Frontend/Websockets/tsc-alias.config.json +0 -7
- package/Frontend/Websockets/tsconfig.json +0 -20
- package/Mail/MailAddress.ts +0 -4
- package/Mail/MailTransport.ts +0 -6
- package/Mail/Mailable.ts +0 -16
- package/Mail/Mailer.ts +0 -27
- package/Mail/PendingMail.ts +0 -68
- package/Mail/SentMessage.ts +0 -20
- package/Mail/Transports/MemoryTransport.ts +0 -13
- package/Mail/Transports/SendGridTransport.ts +0 -95
- package/Mail/index.ts +0 -3
- package/Models/Model.ts +0 -41
- package/Models/index.ts +0 -54
- package/Router/BaseController.ts +0 -7
- package/Router/Decorators.ts +0 -224
- package/Router/Guard.ts +0 -10
- package/Router/Http/Contracts.ts +0 -4
- package/Router/Http/ErrorHandler.ts +0 -45
- package/Router/Http/ErrorHandlerInterface.ts +0 -6
- package/Router/Http/Errors/HttpError.ts +0 -15
- package/Router/Http/Handler.ts +0 -183
- package/Router/Http/HttpRoute.ts +0 -110
- package/Router/Http/Middleware.ts +0 -7
- package/Router/Http/Request.ts +0 -225
- package/Router/Http/Response.ts +0 -35
- package/Router/Http/index.ts +0 -85
- package/Router/Metadata.ts +0 -34
- package/Router/Middleware.ts +0 -16
- package/Router/Request.ts +0 -65
- package/Router/Route.ts +0 -16
- package/Router/RouteNotFoundError.ts +0 -5
- package/Router/Router.ts +0 -35
- package/Router/Servers/index.ts +0 -6
- package/Router/Servers/node.ts +0 -49
- package/Router/Servers/uNetworking.ts +0 -151
- package/Router/Websockets/Handler.ts +0 -82
- package/Router/Websockets/Middleware.ts +0 -7
- package/Router/Websockets/Request.ts +0 -3
- package/Router/Websockets/WebsocketRoute.ts +0 -61
- package/Router/Websockets/index.ts +0 -59
- package/Router/Websockets/types.ts +0 -24
- package/Router/index.ts +0 -6
- package/Storage/File.ts +0 -30
- package/Storage/Image.ts +0 -19
- package/Storage/InvalidImage.ts +0 -3
- package/Storage/Storage.ts +0 -98
- package/Storage/index.ts +0 -4
- package/Storage/utils.ts +0 -18
- package/Support/Array.ts +0 -184
- package/Support/Math.ts +0 -12
- package/Support/Metadata.ts +0 -31
- package/Support/String.ts +0 -38
- package/Support/index.ts +0 -19
- package/Support/utils.ts +0 -7
- package/Testing/TestCase.ts +0 -193
- package/Validation/Rule.ts +0 -9
- package/Validation/RuleInterface.ts +0 -10
- package/Validation/Rules/Email.ts +0 -20
- package/Validation/Rules/FileExtension.ts +0 -21
- package/Validation/Rules/MaxLength.ts +0 -17
- package/Validation/Rules/MinLength.ts +0 -18
- package/Validation/Rules/Optional.ts +0 -18
- package/Validation/Rules/Required.ts +0 -29
- package/Validation/Validator.ts +0 -7
- package/Validation/index.ts +0 -12
- package/benchmark.ts +0 -47
- package/eslint.config.mjs +0 -78
- package/tests/.nycrc.json +0 -19
- package/tests/Cache/DatabaseStoreTest.ts +0 -110
- package/tests/Cache/FileStoreTest.ts +0 -93
- package/tests/Cache/MemoryStoreTest.ts +0 -92
- package/tests/Container/ContainerTest.ts +0 -336
- package/tests/Database/Drivers/MySQL/AlterTest.ts +0 -100
- package/tests/Database/Drivers/MySQL/CreateTest.ts +0 -39
- package/tests/Database/Drivers/MysqlDriverTest.ts +0 -140
- package/tests/Database/Drivers/SqliteDriverTest.ts +0 -126
- package/tests/Database/Entities/Article.ts +0 -21
- package/tests/Database/Entities/Profile.ts +0 -21
- package/tests/Database/Entities/Role.ts +0 -15
- package/tests/Database/Entities/User.ts +0 -35
- package/tests/Database/EntityRelationshipsTest.ts +0 -475
- package/tests/Database/EntityTest.ts +0 -202
- package/tests/Database/Migrations/RunnerTest.ts +0 -96
- package/tests/Database/Migrations/migrations/1.createUserTable.ts +0 -12
- package/tests/Database/Migrations/migrations/2.createArticlesTable.ts +0 -12
- package/tests/Database/QueryTest.ts +0 -573
- package/tests/Database/SchemaTest.ts +0 -32
- package/tests/Database/Seeders/RunnerTest.ts +0 -30
- package/tests/Database/Seeders/seeders/RandomSeeder.ts +0 -10
- package/tests/Database/utils.ts +0 -16
- package/tests/Forms/FormsTest.ts +0 -59
- package/tests/Framework/Middleware/StaticAssetsMiddlewareTest.ts +0 -129
- package/tests/Framework/Middleware/articles/my-article.html +0 -1
- package/tests/Framework/Middleware/articles/some-directory/index.html +0 -1
- package/tests/Framework/Middleware/assets/styles.css +0 -3
- package/tests/Framework/Resolvers/EntityResolverTest.ts +0 -48
- package/tests/Framework/Router/RouterTest.ts +0 -33
- package/tests/Mail/MailerTest.ts +0 -76
- package/tests/Model/ModelTest.ts +0 -183
- package/tests/Router/HttpHandlerTest.ts +0 -72
- package/tests/Router/RequestTest.ts +0 -77
- package/tests/Router/WebSocketsHandlerTest.ts +0 -51
- package/tests/Storage/StorageTest.ts +0 -97
- package/tests/Support/ArrayTest.ts +0 -167
- package/tests/Support/StringTest.ts +0 -18
- package/tests/Validation/RulesTest.ts +0 -54
- package/tests/tsconfig.json +0 -5
- package/tsconfig.json +0 -53
- package/types.d.ts +0 -8
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SentMessage = void 0;
|
|
4
|
+
class SentMessage {
|
|
5
|
+
from;
|
|
6
|
+
subject;
|
|
7
|
+
body;
|
|
8
|
+
to;
|
|
9
|
+
replyTo;
|
|
10
|
+
cc;
|
|
11
|
+
bcc;
|
|
12
|
+
constructor(mail) {
|
|
13
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
14
|
+
const { content, ...mailDetails } = mail;
|
|
15
|
+
Object.assign(this, mailDetails);
|
|
16
|
+
this.body = mail.content() ?? mail.body;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.SentMessage = SentMessage;
|
|
20
|
+
//# sourceMappingURL=SentMessage.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SentMessage.js","sourceRoot":"","sources":["../../Mail/SentMessage.ts"],"names":[],"mappings":";;;AAGA,MAAa,WAAW;IACX,IAAI,CAAsB;IAC1B,OAAO,CAAS;IAChB,IAAI,CAAwC;IAC5C,EAAE,CAAkD;IACpD,OAAO,CAAkD;IACzD,EAAE,CAAkD;IACpD,GAAG,CAAkD;IAE9D,YAAY,IAAc;QACtB,6DAA6D;QAC7D,MAAM,EAAC,OAAO,EAAE,GAAG,WAAW,EAAC,GAAG,IAAI,CAAA;QACtC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,EAAE,IAAI,IAAI,CAAC,IAAI,CAAA;IAC3C,CAAC;CAEJ;AAhBD,kCAgBC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { MailTransport } from '../MailTransport';
|
|
2
|
+
import { SentMessage } from '../SentMessage';
|
|
3
|
+
import { Mailable } from '../Mailable';
|
|
4
|
+
export declare class MemoryTransport extends MailTransport {
|
|
5
|
+
messages: SentMessage[];
|
|
6
|
+
send(message: Mailable): Promise<SentMessage>;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=MemoryTransport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemoryTransport.d.ts","sourceRoot":"","sources":["../../../Mail/Transports/MemoryTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,qBAAa,eAAgB,SAAQ,aAAa;IAC9C,QAAQ,EAAE,WAAW,EAAE,CAAK;IAEtB,IAAI,CAAC,OAAO,EAAE,QAAQ;CAK/B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MemoryTransport = void 0;
|
|
4
|
+
const MailTransport_1 = require("../MailTransport");
|
|
5
|
+
const SentMessage_1 = require("../SentMessage");
|
|
6
|
+
class MemoryTransport extends MailTransport_1.MailTransport {
|
|
7
|
+
messages = [];
|
|
8
|
+
async send(message) {
|
|
9
|
+
const sentMessage = new SentMessage_1.SentMessage(message);
|
|
10
|
+
this.messages.push(sentMessage);
|
|
11
|
+
return sentMessage;
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
exports.MemoryTransport = MemoryTransport;
|
|
15
|
+
//# sourceMappingURL=MemoryTransport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MemoryTransport.js","sourceRoot":"","sources":["../../../Mail/Transports/MemoryTransport.ts"],"names":[],"mappings":";;;AAAA,oDAAgD;AAChD,gDAA4C;AAG5C,MAAa,eAAgB,SAAQ,6BAAa;IAC9C,QAAQ,GAAkB,EAAE,CAAA;IAE5B,KAAK,CAAC,IAAI,CAAC,OAAiB;QACxB,MAAM,WAAW,GAAG,IAAI,yBAAW,CAAC,OAAO,CAAC,CAAA;QAC5C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,CAAA;QAC/B,OAAO,WAAW,CAAA;IACtB,CAAC;CACJ;AARD,0CAQC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { MailTransport } from '../MailTransport';
|
|
2
|
+
import { SentMessage } from '../SentMessage';
|
|
3
|
+
import { Mailable } from '../Mailable';
|
|
4
|
+
import { MailConfig } from '../../Framework';
|
|
5
|
+
export declare class SendGridTransport extends MailTransport {
|
|
6
|
+
messages: SentMessage[];
|
|
7
|
+
config: MailConfig;
|
|
8
|
+
constructor(key: string);
|
|
9
|
+
send(message: Mailable): Promise<SentMessage>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=SendGridTransport.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendGridTransport.d.ts","sourceRoot":"","sources":["../../../Mail/Transports/SendGridTransport.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAEtC,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAI5C,qBAAa,iBAAkB,SAAQ,aAAa;IAChD,QAAQ,EAAE,WAAW,EAAE,CAAK;IAG5B,MAAM,EAAE,UAAU,CAAA;gBAEN,GAAG,EAAE,MAAM;IAMjB,IAAI,CAAC,OAAO,EAAE,QAAQ;CA0E/B"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.SendGridTransport = void 0;
|
|
16
|
+
const MailTransport_1 = require("../MailTransport");
|
|
17
|
+
const SentMessage_1 = require("../SentMessage");
|
|
18
|
+
const Container_1 = require("../../Container");
|
|
19
|
+
const Framework_1 = require("../../Framework");
|
|
20
|
+
const mail_1 = __importDefault(require("@sendgrid/mail"));
|
|
21
|
+
const Http_1 = require("@Typetron/Router/Http");
|
|
22
|
+
class SendGridTransport extends MailTransport_1.MailTransport {
|
|
23
|
+
messages = [];
|
|
24
|
+
config;
|
|
25
|
+
constructor(key) {
|
|
26
|
+
super();
|
|
27
|
+
mail_1.default.setApiKey(key);
|
|
28
|
+
}
|
|
29
|
+
async send(message) {
|
|
30
|
+
const sentMessage = new SentMessage_1.SentMessage(message);
|
|
31
|
+
const sendGridMessage = {
|
|
32
|
+
personalizations: [
|
|
33
|
+
{
|
|
34
|
+
to: sentMessage.to,
|
|
35
|
+
cc: sentMessage.cc,
|
|
36
|
+
bcc: sentMessage.bcc
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
from: sentMessage.from,
|
|
40
|
+
replyTo: sentMessage.replyTo,
|
|
41
|
+
subject: sentMessage.subject,
|
|
42
|
+
content: [
|
|
43
|
+
{
|
|
44
|
+
type: 'text/html',
|
|
45
|
+
value: sentMessage.body
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
// attachments: [
|
|
49
|
+
// {
|
|
50
|
+
// content: 'PCFET0NUdGxlPkRvY3VtZW50PC90aXRsZT4KICAgIDwvaGVhZD4KCiAgICA8Ym9keT4KCiAgICA8L2JvZHk+Cgo8L2h0bWw+Cg==',
|
|
51
|
+
// filename: 'index.html',
|
|
52
|
+
// type: 'text/html',
|
|
53
|
+
// disposition: 'attachment'
|
|
54
|
+
// }
|
|
55
|
+
// ],
|
|
56
|
+
// categories: [
|
|
57
|
+
// 'cake',
|
|
58
|
+
// 'pie',
|
|
59
|
+
// 'baking'
|
|
60
|
+
// ],
|
|
61
|
+
// sendAt: 1617260400,
|
|
62
|
+
// batchId: 'AsdFgHjklQweRTYuIopzXcVBNm0aSDfGHjklmZcVbNMqWert1znmOP2asDFjkl',
|
|
63
|
+
// asm: {
|
|
64
|
+
// groupId: 12345,
|
|
65
|
+
// groupsToDisplay: [
|
|
66
|
+
// 12345
|
|
67
|
+
// ]
|
|
68
|
+
// },
|
|
69
|
+
// ipPoolName: 'transactional email',
|
|
70
|
+
// mailSettings: {
|
|
71
|
+
// bypassListManagement: {
|
|
72
|
+
// enable: false
|
|
73
|
+
// },
|
|
74
|
+
// footer: {
|
|
75
|
+
// enable: false
|
|
76
|
+
// },
|
|
77
|
+
// sandboxMode: {
|
|
78
|
+
// enable: false
|
|
79
|
+
// }
|
|
80
|
+
// },
|
|
81
|
+
// trackingSettings: {
|
|
82
|
+
// clickTracking: {
|
|
83
|
+
// enable: true,
|
|
84
|
+
// enableText: false
|
|
85
|
+
// },
|
|
86
|
+
// openTracking: {
|
|
87
|
+
// enable: true,
|
|
88
|
+
// substitutionTag: '%open-track%'
|
|
89
|
+
// },
|
|
90
|
+
// subscriptionTracking: {
|
|
91
|
+
// enable: false
|
|
92
|
+
// }
|
|
93
|
+
// }
|
|
94
|
+
};
|
|
95
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
96
|
+
/* @ts-ignore */ // SendGrid has TS issues
|
|
97
|
+
await mail_1.default.send(sendGridMessage).catch(error => { throw new Http_1.HttpError(error.response.body.errors, error.code); });
|
|
98
|
+
return sentMessage;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
exports.SendGridTransport = SendGridTransport;
|
|
102
|
+
__decorate([
|
|
103
|
+
(0, Container_1.Inject)(),
|
|
104
|
+
__metadata("design:type", Framework_1.MailConfig)
|
|
105
|
+
], SendGridTransport.prototype, "config", void 0);
|
|
106
|
+
//# sourceMappingURL=SendGridTransport.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SendGridTransport.js","sourceRoot":"","sources":["../../../Mail/Transports/SendGridTransport.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,oDAAgD;AAChD,gDAA4C;AAE5C,+CAAwC;AACxC,+CAA4C;AAC5C,0DAAmC;AACnC,gDAAiD;AAEjD,MAAa,iBAAkB,SAAQ,6BAAa;IAChD,QAAQ,GAAkB,EAAE,CAAA;IAG5B,MAAM,CAAY;IAElB,YAAY,GAAW;QACnB,KAAK,EAAE,CAAA;QAEP,cAAM,CAAC,SAAS,CAAC,GAAG,CAAC,CAAA;IACzB,CAAC;IAED,KAAK,CAAC,IAAI,CAAC,OAAiB;QACxB,MAAM,WAAW,GAAG,IAAI,yBAAW,CAAC,OAAO,CAAC,CAAA;QAE5C,MAAM,eAAe,GAAG;YACpB,gBAAgB,EAAE;gBACd;oBACI,EAAE,EAAE,WAAW,CAAC,EAAE;oBAClB,EAAE,EAAE,WAAW,CAAC,EAAE;oBAClB,GAAG,EAAE,WAAW,CAAC,GAAG;iBACvB;aACJ;YACD,IAAI,EAAE,WAAW,CAAC,IAAI;YACtB,OAAO,EAAE,WAAW,CAAC,OAAO;YAC5B,OAAO,EAAE,WAAW,CAAC,OAAO;YAC5B,OAAO,EAAE;gBACL;oBACI,IAAI,EAAE,WAAW;oBACjB,KAAK,EAAE,WAAW,CAAC,IAAI;iBAC1B;aACJ;YACD,iBAAiB;YACjB,QAAQ;YACR,2HAA2H;YAC3H,kCAAkC;YAClC,6BAA6B;YAC7B,oCAAoC;YACpC,QAAQ;YACR,KAAK;YACL,gBAAgB;YAChB,cAAc;YACd,aAAa;YACb,eAAe;YACf,KAAK;YACL,sBAAsB;YACtB,6EAA6E;YAC7E,SAAS;YACT,sBAAsB;YACtB,yBAAyB;YACzB,gBAAgB;YAChB,QAAQ;YACR,KAAK;YACL,qCAAqC;YACrC,kBAAkB;YAClB,8BAA8B;YAC9B,wBAAwB;YACxB,SAAS;YACT,gBAAgB;YAChB,wBAAwB;YACxB,SAAS;YACT,qBAAqB;YACrB,wBAAwB;YACxB,QAAQ;YACR,KAAK;YACL,sBAAsB;YACtB,uBAAuB;YACvB,wBAAwB;YACxB,4BAA4B;YAC5B,SAAS;YACT,sBAAsB;YACtB,wBAAwB;YACxB,0CAA0C;YAC1C,SAAS;YACT,8BAA8B;YAC9B,wBAAwB;YACxB,QAAQ;YACR,IAAI;SACP,CAAA;QAED,6DAA6D;QAC7D,gBAAgB,CAAC,yBAAyB;QAC1C,MAAM,cAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,GAAE,MAAM,IAAI,gBAAS,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA,CAAA,CAAC,CAAC,CAAA;QAEhH,OAAO,WAAW,CAAA;IACtB,CAAC;CACJ;AAtFD,8CAsFC;AAlFG;IADC,IAAA,kBAAM,GAAE;8BACD,sBAAU;iDAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Mail/index.ts"],"names":[],"mappings":"AAAA,cAAc,8BAA8B,CAAA;AAC5C,cAAc,UAAU,CAAA;AACxB,cAAc,YAAY,CAAA"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./Transports/MemoryTransport"), exports);
|
|
18
|
+
__exportStar(require("./Mailer"), exports);
|
|
19
|
+
__exportStar(require("./Mailable"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Mail/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C;AAC5C,2CAAwB;AACxB,6CAA0B"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Constructor } from '../Support';
|
|
2
|
+
import { ModelField } from './index';
|
|
3
|
+
export declare class Model {
|
|
4
|
+
static from<T extends Model, Q extends object>(this: Constructor<T> & typeof Model, entity: Promise<Iterable<Q>>): Promise<T[]>;
|
|
5
|
+
static from<T extends Model, Q extends object>(this: Constructor<T> & typeof Model, entity: Promise<Q>): Promise<T>;
|
|
6
|
+
static from<T extends Model, Q extends object>(this: Constructor<T> & typeof Model, entity: Iterable<Q>): T[];
|
|
7
|
+
static from<T extends Model, Q extends object>(this: Constructor<T> & typeof Model, entity: Q): T;
|
|
8
|
+
protected static transform<T, Q extends object>(fields: Record<string, ModelField>, entity: Q): T;
|
|
9
|
+
}
|
|
10
|
+
//# sourceMappingURL=Model.d.ts.map
|
|
@@ -0,0 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{ value: true });
|
|
3
|
+
exports.Model = void 0;
|
|
4
|
+
const index_1 = require("./index");
|
|
5
|
+
class Model {
|
|
6
|
+
static from(entity) {
|
|
7
|
+
if (entity instanceof Promise) {
|
|
8
|
+
return entity.then(value => this.from(value));
|
|
9
|
+
}
|
|
10
|
+
if (Symbol.iterator in Object(entity)) {
|
|
11
|
+
return Array.from(entity).map(item => this.from(item));
|
|
12
|
+
}
|
|
13
|
+
const fields = Reflect.getMetadata(index_1.ModelMetadataKey, this) || {};
|
|
14
|
+
return this.transform(fields, entity);
|
|
15
|
+
}
|
|
16
|
+
static transform(fields, entity) {
|
|
17
|
+
const data = new this;
|
|
18
|
+
Object.values(fields).forEach(field => {
|
|
19
|
+
if (!entity || !entity.hasOwnProperty(field.name)) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
const value = entity[field.name];
|
|
23
|
+
if (field.type instanceof index_1.ModelTypeInterface && value) {
|
|
24
|
+
// @ts-ignore
|
|
25
|
+
const jsonValue = value['toJSON'] ? value?.toJSON() : value;
|
|
26
|
+
data[field.name] = jsonValue ? field.type.transform(jsonValue) : undefined;
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
data[field.name] = value;
|
|
30
|
+
}
|
|
31
|
+
});
|
|
32
|
+
return data;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
exports.Model = Model;
|
|
36
|
+
//# sourceMappingURL=Model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Model.js","sourceRoot":"","sources":["../../Models/Model.ts"],"names":[],"mappings":";;;AACA,mCAA0E;AAE1E,MAAa,KAAK;IAKd,MAAM,CAAC,IAAI,CAEP,MAAkD;QAElD,IAAI,MAAM,YAAY,OAAO,EAAE,CAAC;YAC5B,OAAO,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAA;QACjD,CAAC;QACD,IAAI,MAA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AS,CAAA;IACpB,CAAC;CACJ;AArCD,sBAqCC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { Model } from './Model';
|
|
2
|
+
import { Constructor } from '../Support';
|
|
3
|
+
export declare const ModelMetadataKey = "model:fields";
|
|
4
|
+
export interface ModelField {
|
|
5
|
+
name: string;
|
|
6
|
+
type: Function | ModelTypeInterface<{}>;
|
|
7
|
+
}
|
|
8
|
+
export declare function Field(name?: string): (target: Object, property: string) => void;
|
|
9
|
+
export declare abstract class ModelTypeInterface<T extends Model, Q = T> {
|
|
10
|
+
model: Constructor<T> & typeof Model;
|
|
11
|
+
constructor(model: Constructor<T> & typeof Model);
|
|
12
|
+
abstract transform(value: Q): Q;
|
|
13
|
+
}
|
|
14
|
+
export declare class ModelType<T extends Model> extends ModelTypeInterface<T> {
|
|
15
|
+
transform(value: T): T & Model;
|
|
16
|
+
}
|
|
17
|
+
export declare class ArrayType<T extends Model> extends ModelTypeInterface<T, T[]> {
|
|
18
|
+
transform(value: T[]): (T & Model)[];
|
|
19
|
+
}
|
|
20
|
+
export declare function FieldMany(type: typeof Model): (target: Object, property: string) => void;
|
|
21
|
+
export * from './Model';
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../Models/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAExC,eAAO,MAAM,gBAAgB,iBAAiB,CAAA;AAE9C,MAAM,WAAW,UAAU;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,QAAQ,GAAG,kBAAkB,CAAC,EAAE,CAAC,CAAC;CAC3C;AAED,wBAAgB,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,IACf,QAAQ,MAAM,EAAE,UAAU,MAAM,UASnD;AAED,8BAAsB,kBAAkB,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,GAAG,CAAC;IACxC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK;gBAApC,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK;IAEvD,QAAQ,CAAC,SAAS,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC;CAClC;AAED,qBAAa,SAAS,CAAC,CAAC,SAAS,KAAK,CAAE,SAAQ,kBAAkB,CAAC,CAAC,CAAC;IAEjE,SAAS,CAAC,KAAK,EAAE,CAAC;CAGrB;AAED,qBAAa,SAAS,CAAC,CAAC,SAAS,KAAK,CAAE,SAAQ,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;IACtE,SAAS,CAAC,KAAK,EAAE,CAAC,EAAE;CAKvB;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,OAAO,KAAK,IACxB,QAAQ,MAAM,EAAE,UAAU,MAAM,UAOnD;AAED,cAAc,SAAS,CAAA"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.ArrayType = exports.ModelType = exports.ModelTypeInterface = exports.ModelMetadataKey = void 0;
|
|
18
|
+
exports.Field = Field;
|
|
19
|
+
exports.FieldMany = FieldMany;
|
|
20
|
+
const Model_1 = require("./Model");
|
|
21
|
+
exports.ModelMetadataKey = 'model:fields';
|
|
22
|
+
function Field(name) {
|
|
23
|
+
return function (target, property) {
|
|
24
|
+
const fields = Reflect.getMetadata(exports.ModelMetadataKey, target.constructor) || {};
|
|
25
|
+
let type = Reflect.getMetadata('design:type', target, property);
|
|
26
|
+
if (type.prototype instanceof Model_1.Model) {
|
|
27
|
+
type = new ModelType(type);
|
|
28
|
+
}
|
|
29
|
+
fields[property] = fields[property] || { name: name || property, type };
|
|
30
|
+
Reflect.defineMetadata(exports.ModelMetadataKey, fields, target.constructor);
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
class ModelTypeInterface {
|
|
34
|
+
model;
|
|
35
|
+
constructor(model) {
|
|
36
|
+
this.model = model;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
exports.ModelTypeInterface = ModelTypeInterface;
|
|
40
|
+
class ModelType extends ModelTypeInterface {
|
|
41
|
+
transform(value) {
|
|
42
|
+
return this.model.from(value);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
exports.ModelType = ModelType;
|
|
46
|
+
class ArrayType extends ModelTypeInterface {
|
|
47
|
+
transform(value) {
|
|
48
|
+
return Array.from(value).map(item => {
|
|
49
|
+
return this.model.from(item);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
exports.ArrayType = ArrayType;
|
|
54
|
+
function FieldMany(type) {
|
|
55
|
+
return function (target, property) {
|
|
56
|
+
const fields = Reflect.getMetadata(exports.ModelMetadataKey, target.constructor) || {};
|
|
57
|
+
const field = fields[property] || { name: property, type: new ArrayType(type) };
|
|
58
|
+
field.type = new ArrayType(type);
|
|
59
|
+
fields[property] = field;
|
|
60
|
+
Reflect.defineMetadata(exports.ModelMetadataKey, fields, target.constructor);
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
__exportStar(require("./Model"), exports);
|
|
64
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../Models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAUA,sBAUC;AAuBD,8BAQC;AAnDD,mCAA+B;AAGlB,QAAA,gBAAgB,GAAG,cAAc,CAAA;AAO9C,SAAgB,KAAK,CAAC,IAAa;IAC/B,OAAO,UAAS,MAAc,EAAE,QAAgB;QAC5C,MAAM,MAAM,GAA+B,OAAO,CAAC,WAAW,CAAC,wBAAgB,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAA;QAC1G,IAAI,IAAI,GAAG,OAAO,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAA;QAC/D,IAAI,IAAI,CAAC,SAAS,YAAY,aAAK,EAAE,CAAC;YAClC,IAAI,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAA;QAC9B,CAAC;QACD,MAAM,CAAC,QAAQ,CAAC,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAC,IAAI,EAAE,IAAI,IAAI,QAAQ,EAAE,IAAI,EAAe,CAAA;QACnF,OAAO,CAAC,cAAc,CAAC,wBAAgB,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAA;IACxE,CAAC,CAAA;AACL,CAAC;AAED,MAAsB,kBAAkB;IACjB;IAAnB,YAAmB,KAAoC;QAApC,UAAK,GAAL,KAAK,CAA+B;IAAG,CAAC;CAG9D;AAJD,gDAIC;AAED,MAAa,SAA2B,SAAQ,kBAAqB;IAEjE,SAAS,CAAC,KAAQ;QACd,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA;IACjC,CAAC;CACJ;AALD,8BAKC;AAED,MAAa,SAA2B,SAAQ,kBAA0B;IACtE,SAAS,CAAC,KAAU;QAChB,OAAO,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;YAChC,OAAO,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAChC,CAAC,CAAC,CAAA;IACN,CAAC;CACJ;AAND,8BAMC;AAED,SAAgB,SAAS,CAAC,IAAkB;IACxC,OAAO,UAAS,MAAc,EAAE,QAAgB;QAC5C,MAAM,MAAM,GAA+B,OAAO,CAAC,WAAW,CAAC,wBAAgB,EAAE,MAAM,CAAC,WAAW,CAAC,IAAI,EAAE,CAAA;QAC1G,MAAM,KAAK,GAAG,MAAM,CAAC,QAAQ,CAAC,IAAI,EAAC,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,SAAS,CAAC,IAAI,CAAC,EAAe,CAAA;QAC3F,KAAK,CAAC,IAAI,GAAG,IAAI,SAAS,CAAC,IAAI,CAAC,CAAA;QAChC,MAAM,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAA;QACxB,OAAO,CAAC,cAAc,CAAC,wBAAgB,EAAE,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAA;IACxE,CAAC,CAAA;AACL,CAAC;AAED,0CAAuB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseController.d.ts","sourceRoot":"","sources":["../../Router/BaseController.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAU,MAAM,cAAc,CAAA;AAEhD,qBAAa,cAAc;IAGvB,SAAS,CAAC,GAAG,EAAE,SAAS,CAAA;CAC3B"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.BaseController = void 0;
|
|
13
|
+
const Container_1 = require("../Container");
|
|
14
|
+
class BaseController {
|
|
15
|
+
app;
|
|
16
|
+
}
|
|
17
|
+
exports.BaseController = BaseController;
|
|
18
|
+
__decorate([
|
|
19
|
+
(0, Container_1.Inject)(),
|
|
20
|
+
__metadata("design:type", Container_1.Container)
|
|
21
|
+
], BaseController.prototype, "app", void 0);
|
|
22
|
+
//# sourceMappingURL=BaseController.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseController.js","sourceRoot":"","sources":["../../Router/BaseController.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,4CAAgD;AAEhD,MAAa,cAAc;IAGb,GAAG,CAAW;CAC3B;AAJD,wCAIC;AADa;IADT,IAAA,kBAAM,GAAE;8BACM,qBAAS;2CAAA"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Abstract, Type } from '../Support';
|
|
2
|
+
import { GlobalMiddleware } from './Middleware';
|
|
3
|
+
import { ControllerOptions } from './Metadata';
|
|
4
|
+
import { Guard } from './Guard';
|
|
5
|
+
export declare function Controller(path?: string, options?: ControllerOptions): (target: object) => void;
|
|
6
|
+
export declare function Action(name?: string): (target: object, action: string) => void;
|
|
7
|
+
export declare function OnOpen(target: object, action: string): void;
|
|
8
|
+
export declare function OnClose(target: object, action: string): void;
|
|
9
|
+
export declare function Arg(name: string): (target: object, action: string, parameterIndex: number) => void;
|
|
10
|
+
export declare function Get(path?: string, name?: string): (target: object, action: string) => void;
|
|
11
|
+
export declare function Post(path?: string, name?: string): (target: object, action: string) => void;
|
|
12
|
+
export declare function Put(path?: string, name?: string): (target: object, action: string) => void;
|
|
13
|
+
export declare function Patch(path?: string, name?: string): (target: object, action: string) => void;
|
|
14
|
+
export declare function Delete(path?: string, name?: string): (target: object, action: string) => void;
|
|
15
|
+
export declare function Middleware(...middleware: Abstract<GlobalMiddleware>[]): (target: object, action?: string) => void;
|
|
16
|
+
export declare function AllowIf(...guards: Type<Guard>[]): (target: object, action: string) => void;
|
|
17
|
+
export declare function Query(name: string): (target: object, action: string, parameterIndex: number) => void;
|
|
18
|
+
export declare function Body(): (target: object, action: string, parameterIndex: number) => void;
|
|
19
|
+
//# sourceMappingURL=Decorators.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Decorators.d.ts","sourceRoot":"","sources":["../../Router/Decorators.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAe,IAAI,EAAE,MAAM,YAAY,CAAA;AACxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AAC/C,OAAO,EAAsC,iBAAiB,EAAiC,MAAM,YAAY,CAAA;AACjH,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAO/B,wBAAgB,UAAU,CAAC,IAAI,SAAK,EAAE,OAAO,CAAC,EAAE,iBAAiB,IACrD,QAAQ,MAAM,UAkCzB;AAkCD,wBAAgB,MAAM,CAAC,IAAI,SAAK,IACpB,QAAQ,MAAM,EAAE,QAAQ,MAAM,UAGzC;AAED,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QASpD;AAED,wBAAgB,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE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
|
|
5
|
+
exports.OnOpen = OnOpen;
|
|
6
|
+
exports.OnClose = OnClose;
|
|
7
|
+
exports.Arg = Arg;
|
|
8
|
+
exports.Get = Get;
|
|
9
|
+
exports.Post = Post;
|
|
10
|
+
exports.Put = Put;
|
|
11
|
+
exports.Patch = Patch;
|
|
12
|
+
exports.Delete = Delete;
|
|
13
|
+
exports.Middleware = Middleware;
|
|
14
|
+
exports.AllowIf = AllowIf;
|
|
15
|
+
exports.Query = Query;
|
|
16
|
+
exports.Body = Body;
|
|
17
|
+
const Framework_1 = require("../Framework");
|
|
18
|
+
const Metadata_1 = require("./Metadata");
|
|
19
|
+
const Http_1 = require("./Http");
|
|
20
|
+
const Request_1 = require("./Request");
|
|
21
|
+
const Websockets_1 = require("./Websockets");
|
|
22
|
+
const WebsocketRoute_1 = require("./Websockets/WebsocketRoute");
|
|
23
|
+
const Container_1 = require("@Typetron/Container");
|
|
24
|
+
function Controller(path = '', options) {
|
|
25
|
+
return (target) => {
|
|
26
|
+
const metadata = Metadata_1.ControllerMetadata.get(target);
|
|
27
|
+
const prefix = options?.prefix || path ? path + '.' : '';
|
|
28
|
+
const httpHandler = Container_1.Container.getInstance().get(Http_1.Handler);
|
|
29
|
+
const websocketHandler = Container_1.Container.getInstance().get(Websockets_1.Handler);
|
|
30
|
+
Object.keys(metadata.routes).forEach(action => {
|
|
31
|
+
const routeMetadata = metadata.routes[action];
|
|
32
|
+
const route = httpHandler.addRoute(path + (path && routeMetadata.path ? '/' : '') + routeMetadata.path, routeMetadata.method, target, action, prefix + (routeMetadata.name || action), routeMetadata.parametersTypes, metadata.middleware.concat(routeMetadata.middleware));
|
|
33
|
+
route.guards = routeMetadata.guards;
|
|
34
|
+
});
|
|
35
|
+
Object.keys(metadata.actions).forEach(actionName => {
|
|
36
|
+
const actionMetadata = metadata.actions[actionName];
|
|
37
|
+
const name = prefix + (actionMetadata.name || actionName);
|
|
38
|
+
const action = websocketHandler.addAction(name, target, actionName, actionMetadata.parametersTypes, metadata.middleware.concat(actionMetadata.middleware));
|
|
39
|
+
action.guards = actionMetadata.guards;
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function addAction(controller, methodName, name) {
|
|
44
|
+
const metadata = Metadata_1.ControllerMetadata.get(controller);
|
|
45
|
+
const methodMetadata = metadata.methods[methodName];
|
|
46
|
+
const action = new Metadata_1.ActionMetadata();
|
|
47
|
+
Object.assign(action, methodMetadata);
|
|
48
|
+
action.parametersTypes = Reflect.getMetadata('design:paramtypes', controller.prototype, methodName);
|
|
49
|
+
action.name = name;
|
|
50
|
+
metadata.actions[methodName] = action;
|
|
51
|
+
Metadata_1.ControllerMetadata.set(metadata, controller);
|
|
52
|
+
}
|
|
53
|
+
function addRoute(controller, methodName, method, path, name) {
|
|
54
|
+
const metadata = Metadata_1.ControllerMetadata.get(controller);
|
|
55
|
+
const methodMetadata = metadata.methods[methodName];
|
|
56
|
+
const route = new Metadata_1.RouteMetadata();
|
|
57
|
+
Object.assign(route, methodMetadata);
|
|
58
|
+
route.parametersTypes = Reflect.getMetadata('design:paramtypes', controller.prototype, methodName);
|
|
59
|
+
route.path = path;
|
|
60
|
+
route.name = name;
|
|
61
|
+
route.method = method;
|
|
62
|
+
metadata.routes[methodName] = route;
|
|
63
|
+
Metadata_1.ControllerMetadata.set(metadata, controller);
|
|
64
|
+
}
|
|
65
|
+
function Action(name = '') {
|
|
66
|
+
return (target, action) => {
|
|
67
|
+
addAction(target.constructor, action, name);
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function OnOpen(target, action) {
|
|
71
|
+
const websocketHandler = Framework_1.App.get(Websockets_1.Handler);
|
|
72
|
+
websocketHandler.onOpen = new WebsocketRoute_1.WebsocketRoute('', target.constructor, action, Reflect.getMetadata('design:paramtypes', target, action));
|
|
73
|
+
}
|
|
74
|
+
function OnClose(target, action) {
|
|
75
|
+
const websocketHandler = Framework_1.App.get(Websockets_1.Handler);
|
|
76
|
+
websocketHandler.onClose = new WebsocketRoute_1.WebsocketRoute('', target.constructor, action, Reflect.getMetadata('design:paramtypes', target, action));
|
|
77
|
+
}
|
|
78
|
+
function Arg(name) {
|
|
79
|
+
return function (target, action, parameterIndex) {
|
|
80
|
+
// addAction(target.constructor as Constructor, action, name)
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
function Get(path = '', name = '') {
|
|
84
|
+
return (target, action) => {
|
|
85
|
+
addRoute(target.constructor, action, Http_1.Http.Method.GET, path, name);
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
function Post(path = '', name = '') {
|
|
89
|
+
return (target, action) => {
|
|
90
|
+
addRoute(target.constructor, action, Http_1.Http.Method.POST, path, name);
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function Put(path = '', name = '') {
|
|
94
|
+
return (target, action) => {
|
|
95
|
+
addRoute(target.constructor, action, Http_1.Http.Method.PUT, path, name);
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function Patch(path = '', name = '') {
|
|
99
|
+
return (target, action) => {
|
|
100
|
+
addRoute(target.constructor, action, Http_1.Http.Method.PATCH, path, name);
|
|
101
|
+
};
|
|
102
|
+
}
|
|
103
|
+
function Delete(path = '', name = '') {
|
|
104
|
+
return (target, action) => {
|
|
105
|
+
addRoute(target.constructor, action, Http_1.Http.Method.DELETE, path, name);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
function Middleware(...middleware) {
|
|
109
|
+
return (target, action) => {
|
|
110
|
+
if (action) {
|
|
111
|
+
target = target.constructor;
|
|
112
|
+
}
|
|
113
|
+
const metadata = Metadata_1.ControllerMetadata.get(target);
|
|
114
|
+
if (action) {
|
|
115
|
+
const route = metadata.methods[action] || new Metadata_1.MethodMetadata();
|
|
116
|
+
route.middleware = route.middleware.concat(middleware);
|
|
117
|
+
metadata.methods[action] = route;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
metadata.middleware = metadata.middleware.concat(middleware);
|
|
121
|
+
}
|
|
122
|
+
Metadata_1.ControllerMetadata.set(metadata, target);
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
function AllowIf(...guards) {
|
|
126
|
+
return function (target, action) {
|
|
127
|
+
if (action) {
|
|
128
|
+
target = target.constructor;
|
|
129
|
+
}
|
|
130
|
+
const metadata = Metadata_1.ControllerMetadata.get(target);
|
|
131
|
+
if (action) {
|
|
132
|
+
const route = metadata.methods[action] || new Metadata_1.MethodMetadata();
|
|
133
|
+
route.guards = route.guards.concat(guards);
|
|
134
|
+
metadata.methods[action] = route;
|
|
135
|
+
}
|
|
136
|
+
else {
|
|
137
|
+
metadata.guards = metadata.guards.concat(guards);
|
|
138
|
+
}
|
|
139
|
+
Metadata_1.ControllerMetadata.set(metadata, target);
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
function Query(name) {
|
|
143
|
+
return function (target, action, parameterIndex) {
|
|
144
|
+
const metadata = Metadata_1.ControllerMetadata.get(target.constructor);
|
|
145
|
+
const parametersTypes = Reflect.getMetadata('design:paramtypes', target, action);
|
|
146
|
+
const route = metadata.methods[action] || new Metadata_1.MethodMetadata();
|
|
147
|
+
route.parametersOverrides[parameterIndex] = function (container) {
|
|
148
|
+
const request = container.get(Http_1.Request);
|
|
149
|
+
const value = request.query[name];
|
|
150
|
+
if (parametersTypes[parameterIndex].name === 'Number') {
|
|
151
|
+
return value === undefined || value === 'undefined' ? undefined : Number(value);
|
|
152
|
+
}
|
|
153
|
+
return value;
|
|
154
|
+
};
|
|
155
|
+
metadata.methods[action] = route;
|
|
156
|
+
Metadata_1.ControllerMetadata.set(metadata, target.constructor);
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
function Body() {
|
|
160
|
+
return function (target, action, parameterIndex) {
|
|
161
|
+
const metadata = Metadata_1.ControllerMetadata.get(target.constructor);
|
|
162
|
+
const route = metadata.methods[action] || new Metadata_1.MethodMetadata();
|
|
163
|
+
route.parametersOverrides[parameterIndex] = function (container) {
|
|
164
|
+
const request = container.get(Request_1.Request);
|
|
165
|
+
// TODO: should the framework throw error or return undefined?
|
|
166
|
+
// if (!request.body) {
|
|
167
|
+
// throw new Error(`There is no data in the 'body' of the request`)
|
|
168
|
+
// }
|
|
169
|
+
return request.body;
|
|
170
|
+
};
|
|
171
|
+
metadata.methods[action] = route;
|
|
172
|
+
Metadata_1.ControllerMetadata.set(metadata, target.constructor);
|
|
173
|
+
};
|
|
174
|
+
}
|
|
175
|
+
//# sourceMappingURL=Decorators.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Decorators.js","sourceRoot":"","sources":["../../Router/Decorators.ts"],"names":[],"mappings":";;AAWA,gCAmCC;AAkCD,wBAIC;AAED,wBASC;AAED,0BASC;AAED,kBAIC;AAED,kBAIC;AAED,oBAIC;AAED,kBAIC;AAED,sBAIC;AAED,wBAIC;AAED,gCAkBC;AAED,0BAkBC;AAED,sBAmBC;AAED,oBAkBC;AA/ND,4CAAkC;AAGlC,yCAAiH;AAEjH,iCAA6E;AAC7E,uCAAmC;AACnC,6CAA2D;AAC3D,gEAA4D;AAC5D,mDAA+C;AAE/C,SAAgB,UAAU,CAAC,IAAI,GAAG,EAAE,EAAE,OAA2B;IAC7D,OAAO,CAAC,MAAc,EAAE,EAAE;QACtB,MAAM,QAAQ,GAAG,6BAAkB,CAAC,GAAG,CAAC,MAAM,CAAC,CAAA;QAC/C,MAAM,MAAM,GAAG,OAAO,EAAE,MAAM,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,CAAA;QAExD,MAAM,WAAW,GAAG,qBAAS,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,cAAW,CAAC,CAAA;QAC5D,MAAM,gBAAgB,GAAG,qBAAS,CAAC,WAAW,EAAE,CAAC,GAAG,CAAC,oBAAiB,CAAC,CAAA;QAEvE,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,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