@typetron/framework 0.5.6 → 0.5.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/.eslintrc-old.js +0 -208
- 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 -9
- 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 -120
- 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/index.ts +0 -24
- package/Frontend/Websockets/index.ts +0 -86
- package/LICENSE.md +0 -21
- 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/Readme.md +0 -123
- 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 -57
- package/Router/Websockets/types.ts +0 -23
- 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-index.js +0 -20
- package/benchmark.ts +0 -47
- 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/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/types.d.ts +0 -8
- /package/{build/Cache → Cache}/Cache.d.ts +0 -0
- /package/{build/Cache → Cache}/Cache.d.ts.map +0 -0
- /package/{build/Cache → Cache}/Cache.js +0 -0
- /package/{build/Cache → Cache}/Cache.js.map +0 -0
- /package/{build/Cache → Cache}/Stores/DatabaseStore.d.ts +0 -0
- /package/{build/Cache → Cache}/Stores/DatabaseStore.d.ts.map +0 -0
- /package/{build/Cache → Cache}/Stores/DatabaseStore.js +0 -0
- /package/{build/Cache → Cache}/Stores/DatabaseStore.js.map +0 -0
- /package/{build/Cache → Cache}/Stores/FileStore.d.ts +0 -0
- /package/{build/Cache → Cache}/Stores/FileStore.d.ts.map +0 -0
- /package/{build/Cache → Cache}/Stores/FileStore.js +0 -0
- /package/{build/Cache → Cache}/Stores/FileStore.js.map +0 -0
- /package/{build/Cache → Cache}/Stores/MemoryStore.d.ts +0 -0
- /package/{build/Cache → Cache}/Stores/MemoryStore.d.ts.map +0 -0
- /package/{build/Cache → Cache}/Stores/MemoryStore.js +0 -0
- /package/{build/Cache → Cache}/Stores/MemoryStore.js.map +0 -0
- /package/{build/Cache → Cache}/index.d.ts +0 -0
- /package/{build/Cache → Cache}/index.d.ts.map +0 -0
- /package/{build/Cache → Cache}/index.js +0 -0
- /package/{build/Cache → Cache}/index.js.map +0 -0
- /package/{build/Cache → Cache}/types.d.ts +0 -0
- /package/{build/Cache → Cache}/types.d.ts.map +0 -0
- /package/{build/Cache → Cache}/types.js +0 -0
- /package/{build/Cache → Cache}/types.js.map +0 -0
- /package/{build/Container → Container}/ClassResolver.d.ts +0 -0
- /package/{build/Container → Container}/ClassResolver.d.ts.map +0 -0
- /package/{build/Container → Container}/ClassResolver.js +0 -0
- /package/{build/Container → Container}/ClassResolver.js.map +0 -0
- /package/{build/Container → Container}/Container.d.ts +0 -0
- /package/{build/Container → Container}/Container.d.ts.map +0 -0
- /package/{build/Container → Container}/Container.js +0 -0
- /package/{build/Container → Container}/Container.js.map +0 -0
- /package/{build/Container → Container}/Contracts.d.ts +0 -0
- /package/{build/Container → Container}/Contracts.d.ts.map +0 -0
- /package/{build/Container → Container}/Contracts.js +0 -0
- /package/{build/Container → Container}/Contracts.js.map +0 -0
- /package/{build/Container → Container}/Decorators.d.ts +0 -0
- /package/{build/Container → Container}/Decorators.d.ts.map +0 -0
- /package/{build/Container → Container}/Decorators.js +0 -0
- /package/{build/Container → Container}/Decorators.js.map +0 -0
- /package/{build/Container → Container}/Metadata.d.ts +0 -0
- /package/{build/Container → Container}/Metadata.d.ts.map +0 -0
- /package/{build/Container → Container}/Metadata.js +0 -0
- /package/{build/Container → Container}/Metadata.js.map +0 -0
- /package/{build/Container → Container}/Resolver.d.ts +0 -0
- /package/{build/Container → Container}/Resolver.d.ts.map +0 -0
- /package/{build/Container → Container}/Resolver.js +0 -0
- /package/{build/Container → Container}/Resolver.js.map +0 -0
- /package/{build/Container → Container}/index.d.ts +0 -0
- /package/{build/Container → Container}/index.d.ts.map +0 -0
- /package/{build/Container → Container}/index.js +0 -0
- /package/{build/Container → Container}/index.js.map +0 -0
- /package/{build/Database → Database}/Clauses/Where.d.ts +0 -0
- /package/{build/Database → Database}/Clauses/Where.d.ts.map +0 -0
- /package/{build/Database → Database}/Clauses/Where.js +0 -0
- /package/{build/Database → Database}/Clauses/Where.js.map +0 -0
- /package/{build/Database → Database}/Connection.d.ts +0 -0
- /package/{build/Database → Database}/Connection.d.ts.map +0 -0
- /package/{build/Database → Database}/Connection.js +0 -0
- /package/{build/Database → Database}/Connection.js.map +0 -0
- /package/{build/Database → Database}/Decorators.d.ts +0 -0
- /package/{build/Database → Database}/Decorators.d.ts.map +0 -0
- /package/{build/Database → Database}/Decorators.js +0 -0
- /package/{build/Database → Database}/Decorators.js.map +0 -0
- /package/{build/Database → Database}/Drivers/DatabaseDriver.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/DatabaseDriver.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/DatabaseDriver.js +0 -0
- /package/{build/Database → Database}/Drivers/DatabaseDriver.js.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Alter/index.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Alter/index.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Alter/index.js +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Alter/index.js.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/ColumnDefinition.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/ColumnDefinition.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/ColumnDefinition.js +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/ColumnDefinition.js.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Create.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Create.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Create.js +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Create.js.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/MysqlDriver.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/MysqlDriver.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/MysqlDriver.js +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/MysqlDriver.js.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Schema.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Schema.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Schema.js +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/Schema.js.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/index.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/index.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/index.js +0 -0
- /package/{build/Database → Database}/Drivers/MySQL/index.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Schema.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Schema.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Schema.js +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Schema.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Alter.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Alter.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Alter.js +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Alter.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/BaseStatement.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/BaseStatement.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/BaseStatement.js +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/BaseStatement.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Delete.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Delete.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Delete.js +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Delete.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Insert.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Insert.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Insert.js +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Insert.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Select.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Select.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Select.js +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Select.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Update.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Update.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Update.js +0 -0
- /package/{build/Database → Database}/Drivers/SQL/Statements/Update.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/index.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQL/index.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQL/index.js +0 -0
- /package/{build/Database → Database}/Drivers/SQL/index.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/Create.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/Create.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/Create.js +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/Create.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/Schema.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/Schema.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/Schema.js +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/Schema.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/SqliteDriver.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/SqliteDriver.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/SqliteDriver.js +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/SqliteDriver.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/index.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/index.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/index.js +0 -0
- /package/{build/Database → Database}/Drivers/SQLite/index.js.map +0 -0
- /package/{build/Database → Database}/Drivers/SchemaContract.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/SchemaContract.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/SchemaContract.js +0 -0
- /package/{build/Database → Database}/Drivers/SchemaContract.js.map +0 -0
- /package/{build/Database → Database}/Drivers/Statement.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/Statement.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/Statement.js +0 -0
- /package/{build/Database → Database}/Drivers/Statement.js.map +0 -0
- /package/{build/Database → Database}/Drivers/index.d.ts +0 -0
- /package/{build/Database → Database}/Drivers/index.d.ts.map +0 -0
- /package/{build/Database → Database}/Drivers/index.js +0 -0
- /package/{build/Database → Database}/Drivers/index.js.map +0 -0
- /package/{build/Database → Database}/Entity.d.ts +0 -0
- /package/{build/Database → Database}/Entity.d.ts.map +0 -0
- /package/{build/Database → Database}/Entity.js +0 -0
- /package/{build/Database → Database}/Entity.js.map +0 -0
- /package/{build/Database → Database}/EntityNotFoundError.d.ts +0 -0
- /package/{build/Database → Database}/EntityNotFoundError.d.ts.map +0 -0
- /package/{build/Database → Database}/EntityNotFoundError.js +0 -0
- /package/{build/Database → Database}/EntityNotFoundError.js.map +0 -0
- /package/{build/Database → Database}/EntityProxyHandler.d.ts +0 -0
- /package/{build/Database → Database}/EntityProxyHandler.d.ts.map +0 -0
- /package/{build/Database → Database}/EntityProxyHandler.js +0 -0
- /package/{build/Database → Database}/EntityProxyHandler.js.map +0 -0
- /package/{build/Database → Database}/EntityQuery.d.ts +0 -0
- /package/{build/Database → Database}/EntityQuery.d.ts.map +0 -0
- /package/{build/Database → Database}/EntityQuery.js +0 -0
- /package/{build/Database → Database}/EntityQuery.js.map +0 -0
- /package/{build/Database → Database}/Expression.d.ts +0 -0
- /package/{build/Database → Database}/Expression.d.ts.map +0 -0
- /package/{build/Database → Database}/Expression.js +0 -0
- /package/{build/Database → Database}/Expression.js.map +0 -0
- /package/{build/Database → Database}/Fields.d.ts +0 -0
- /package/{build/Database → Database}/Fields.d.ts.map +0 -0
- /package/{build/Database → Database}/Fields.js +0 -0
- /package/{build/Database → Database}/Fields.js.map +0 -0
- /package/{build/Database → Database}/Helpers.d.ts +0 -0
- /package/{build/Database → Database}/Helpers.d.ts.map +0 -0
- /package/{build/Database → Database}/Helpers.js +0 -0
- /package/{build/Database → Database}/Helpers.js.map +0 -0
- /package/{build/Database → Database}/List.d.ts +0 -0
- /package/{build/Database → Database}/List.d.ts.map +0 -0
- /package/{build/Database → Database}/List.js +0 -0
- /package/{build/Database → Database}/List.js.map +0 -0
- /package/{build/Database → Database}/Migrations/Migration.d.ts +0 -0
- /package/{build/Database → Database}/Migrations/Migration.d.ts.map +0 -0
- /package/{build/Database → Database}/Migrations/Migration.js +0 -0
- /package/{build/Database → Database}/Migrations/Migration.js.map +0 -0
- /package/{build/Database → Database}/Migrations/MigrationHistory.d.ts +0 -0
- /package/{build/Database → Database}/Migrations/MigrationHistory.d.ts.map +0 -0
- /package/{build/Database → Database}/Migrations/MigrationHistory.js +0 -0
- /package/{build/Database → Database}/Migrations/MigrationHistory.js.map +0 -0
- /package/{build/Database → Database}/Migrations/Migrator.d.ts +0 -0
- /package/{build/Database → Database}/Migrations/Migrator.d.ts.map +0 -0
- /package/{build/Database → Database}/Migrations/Migrator.js +0 -0
- /package/{build/Database → Database}/Migrations/Migrator.js.map +0 -0
- /package/{build/Database → Database}/Migrations/index.d.ts +0 -0
- /package/{build/Database → Database}/Migrations/index.d.ts.map +0 -0
- /package/{build/Database → Database}/Migrations/index.js +0 -0
- /package/{build/Database → Database}/Migrations/index.js.map +0 -0
- /package/{build/Database → Database}/ORM/BaseRelationship.d.ts +0 -0
- /package/{build/Database → Database}/ORM/BaseRelationship.d.ts.map +0 -0
- /package/{build/Database → Database}/ORM/BaseRelationship.js +0 -0
- /package/{build/Database → Database}/ORM/BaseRelationship.js.map +0 -0
- /package/{build/Database → Database}/Query.d.ts +0 -0
- /package/{build/Database → Database}/Query.d.ts.map +0 -0
- /package/{build/Database → Database}/Query.js +0 -0
- /package/{build/Database → Database}/Query.js.map +0 -0
- /package/{build/Database → Database}/Seeders/Seeder.d.ts +0 -0
- /package/{build/Database → Database}/Seeders/Seeder.d.ts.map +0 -0
- /package/{build/Database → Database}/Seeders/Seeder.js +0 -0
- /package/{build/Database → Database}/Seeders/Seeder.js.map +0 -0
- /package/{build/Database → Database}/Seeders/SeederManager.d.ts +0 -0
- /package/{build/Database → Database}/Seeders/SeederManager.d.ts.map +0 -0
- /package/{build/Database → Database}/Seeders/SeederManager.js +0 -0
- /package/{build/Database → Database}/Seeders/SeederManager.js.map +0 -0
- /package/{build/Database → Database}/Seeders/index.d.ts +0 -0
- /package/{build/Database → Database}/Seeders/index.d.ts.map +0 -0
- /package/{build/Database → Database}/Seeders/index.js +0 -0
- /package/{build/Database → Database}/Seeders/index.js.map +0 -0
- /package/{build/Database → Database}/StringExpression.d.ts +0 -0
- /package/{build/Database → Database}/StringExpression.d.ts.map +0 -0
- /package/{build/Database → Database}/StringExpression.js +0 -0
- /package/{build/Database → Database}/StringExpression.js.map +0 -0
- /package/{build/Database → Database}/Types.d.ts +0 -0
- /package/{build/Database → Database}/Types.d.ts.map +0 -0
- /package/{build/Database → Database}/Types.js +0 -0
- /package/{build/Database → Database}/Types.js.map +0 -0
- /package/{build/Database → Database}/index.d.ts +0 -0
- /package/{build/Database → Database}/index.d.ts.map +0 -0
- /package/{build/Database → Database}/index.js +0 -0
- /package/{build/Database → Database}/index.js.map +0 -0
- /package/{build/Encryption → Encryption}/index.d.ts +0 -0
- /package/{build/Encryption → Encryption}/index.d.ts.map +0 -0
- /package/{build/Encryption → Encryption}/index.js +0 -0
- /package/{build/Encryption → Encryption}/index.js.map +0 -0
- /package/{build/Forms → Forms}/Decorators.d.ts +0 -0
- /package/{build/Forms → Forms}/Decorators.d.ts.map +0 -0
- /package/{build/Forms → Forms}/Decorators.js +0 -0
- /package/{build/Forms → Forms}/Decorators.js.map +0 -0
- /package/{build/Forms → Forms}/Form.d.ts +0 -0
- /package/{build/Forms → Forms}/Form.d.ts.map +0 -0
- /package/{build/Forms → Forms}/Form.js +0 -0
- /package/{build/Forms → Forms}/Form.js.map +0 -0
- /package/{build/Forms → Forms}/FormFields.d.ts +0 -0
- /package/{build/Forms → Forms}/FormFields.d.ts.map +0 -0
- /package/{build/Forms → Forms}/FormFields.js +0 -0
- /package/{build/Forms → Forms}/FormFields.js.map +0 -0
- /package/{build/Forms → Forms}/index.d.ts +0 -0
- /package/{build/Forms → Forms}/index.d.ts.map +0 -0
- /package/{build/Forms → Forms}/index.js +0 -0
- /package/{build/Forms → Forms}/index.js.map +0 -0
- /package/{build/Framework → Framework}/App.d.ts +0 -0
- /package/{build/Framework → Framework}/App.d.ts.map +0 -0
- /package/{build/Framework → Framework}/App.js +0 -0
- /package/{build/Framework → Framework}/App.js.map +0 -0
- /package/{build/Framework → Framework}/Application.d.ts +0 -0
- /package/{build/Framework → Framework}/Application.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Application.js +0 -0
- /package/{build/Framework → Framework}/Application.js.map +0 -0
- /package/{build/Framework → Framework}/Auth/Auth.d.ts +0 -0
- /package/{build/Framework → Framework}/Auth/Auth.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Auth/Auth.js +0 -0
- /package/{build/Framework → Framework}/Auth/Auth.js.map +0 -0
- /package/{build/Framework → Framework}/Auth/Authenticatable.d.ts +0 -0
- /package/{build/Framework → Framework}/Auth/Authenticatable.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Auth/Authenticatable.js +0 -0
- /package/{build/Framework → Framework}/Auth/Authenticatable.js.map +0 -0
- /package/{build/Framework → Framework}/Auth/User.d.ts +0 -0
- /package/{build/Framework → Framework}/Auth/User.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Auth/User.js +0 -0
- /package/{build/Framework → Framework}/Auth/User.js.map +0 -0
- /package/{build/Framework → Framework}/Auth/index.d.ts +0 -0
- /package/{build/Framework → Framework}/Auth/index.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Auth/index.js +0 -0
- /package/{build/Framework → Framework}/Auth/index.js.map +0 -0
- /package/{build/Framework → Framework}/Config/AppConfig.d.ts +0 -0
- /package/{build/Framework → Framework}/Config/AppConfig.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Config/AppConfig.js +0 -0
- /package/{build/Framework → Framework}/Config/AppConfig.js.map +0 -0
- /package/{build/Framework → Framework}/Config/AuthConfig.d.ts +0 -0
- /package/{build/Framework → Framework}/Config/AuthConfig.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Config/AuthConfig.js +0 -0
- /package/{build/Framework → Framework}/Config/AuthConfig.js.map +0 -0
- /package/{build/Framework → Framework}/Config/BaseConfig.d.ts +0 -0
- /package/{build/Framework → Framework}/Config/BaseConfig.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Config/BaseConfig.js +0 -0
- /package/{build/Framework → Framework}/Config/BaseConfig.js.map +0 -0
- /package/{build/Framework → Framework}/Config/CacheConfig.d.ts +0 -0
- /package/{build/Framework → Framework}/Config/CacheConfig.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Config/CacheConfig.js +0 -0
- /package/{build/Framework → Framework}/Config/CacheConfig.js.map +0 -0
- /package/{build/Framework → Framework}/Config/DatabaseConfig.d.ts +0 -0
- /package/{build/Framework → Framework}/Config/DatabaseConfig.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Config/DatabaseConfig.js +0 -0
- /package/{build/Framework → Framework}/Config/DatabaseConfig.js.map +0 -0
- /package/{build/Framework → Framework}/Config/MailConfig.d.ts +0 -0
- /package/{build/Framework → Framework}/Config/MailConfig.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Config/MailConfig.js +0 -0
- /package/{build/Framework → Framework}/Config/MailConfig.js.map +0 -0
- /package/{build/Framework → Framework}/Config/index.d.ts +0 -0
- /package/{build/Framework → Framework}/Config/index.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Config/index.js +0 -0
- /package/{build/Framework → Framework}/Config/index.js.map +0 -0
- /package/{build/Framework → Framework}/Middleware/AuthMiddleware.d.ts +0 -0
- /package/{build/Framework → Framework}/Middleware/AuthMiddleware.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Middleware/AuthMiddleware.js +0 -0
- /package/{build/Framework → Framework}/Middleware/AuthMiddleware.js.map +0 -0
- /package/{build/Framework → Framework}/Middleware/CorsMiddleware.d.ts +0 -0
- /package/{build/Framework → Framework}/Middleware/CorsMiddleware.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Middleware/CorsMiddleware.js +0 -0
- /package/{build/Framework → Framework}/Middleware/CorsMiddleware.js.map +0 -0
- /package/{build/Framework → Framework}/Middleware/StaticAssetsMiddleware.d.ts +0 -0
- /package/{build/Framework → Framework}/Middleware/StaticAssetsMiddleware.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Middleware/StaticAssetsMiddleware.js +0 -0
- /package/{build/Framework → Framework}/Middleware/StaticAssetsMiddleware.js.map +0 -0
- /package/{build/Framework → Framework}/Middleware/index.d.ts +0 -0
- /package/{build/Framework → Framework}/Middleware/index.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Middleware/index.js +0 -0
- /package/{build/Framework → Framework}/Middleware/index.js.map +0 -0
- /package/{build/Framework → Framework}/Provider.d.ts +0 -0
- /package/{build/Framework → Framework}/Provider.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Provider.js +0 -0
- /package/{build/Framework → Framework}/Provider.js.map +0 -0
- /package/{build/Framework → Framework}/Providers/CacheProvider.d.ts +0 -0
- /package/{build/Framework → Framework}/Providers/CacheProvider.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Providers/CacheProvider.js +0 -0
- /package/{build/Framework → Framework}/Providers/CacheProvider.js.map +0 -0
- /package/{build/Framework → Framework}/Providers/DatabaseProvider.d.ts +0 -0
- /package/{build/Framework → Framework}/Providers/DatabaseProvider.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Providers/DatabaseProvider.js +0 -0
- /package/{build/Framework → Framework}/Providers/DatabaseProvider.js.map +0 -0
- /package/{build/Framework → Framework}/Providers/MailProvider.d.ts +0 -0
- /package/{build/Framework → Framework}/Providers/MailProvider.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Providers/MailProvider.js +0 -0
- /package/{build/Framework → Framework}/Providers/MailProvider.js.map +0 -0
- /package/{build/Framework → Framework}/Providers/WebsocketsProvider.d.ts +0 -0
- /package/{build/Framework → Framework}/Providers/WebsocketsProvider.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Providers/WebsocketsProvider.js +0 -0
- /package/{build/Framework → Framework}/Providers/WebsocketsProvider.js.map +0 -0
- /package/{build/Framework → Framework}/Resolvers/AuthResolver.d.ts +0 -0
- /package/{build/Framework → Framework}/Resolvers/AuthResolver.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Resolvers/AuthResolver.js +0 -0
- /package/{build/Framework → Framework}/Resolvers/AuthResolver.js.map +0 -0
- /package/{build/Framework → Framework}/Resolvers/EntityResolver.d.ts +0 -0
- /package/{build/Framework → Framework}/Resolvers/EntityResolver.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Resolvers/EntityResolver.js +0 -0
- /package/{build/Framework → Framework}/Resolvers/EntityResolver.js.map +0 -0
- /package/{build/Framework → Framework}/Resolvers/FormResolver.d.ts +0 -0
- /package/{build/Framework → Framework}/Resolvers/FormResolver.d.ts.map +0 -0
- /package/{build/Framework → Framework}/Resolvers/FormResolver.js +0 -0
- /package/{build/Framework → Framework}/Resolvers/FormResolver.js.map +0 -0
- /package/{build/Framework → Framework}/RootDir.d.ts +0 -0
- /package/{build/Framework → Framework}/RootDir.d.ts.map +0 -0
- /package/{build/Framework → Framework}/RootDir.js +0 -0
- /package/{build/Framework → Framework}/RootDir.js.map +0 -0
- /package/{build/Framework → Framework}/index.d.ts +0 -0
- /package/{build/Framework → Framework}/index.d.ts.map +0 -0
- /package/{build/Framework → Framework}/index.js +0 -0
- /package/{build/Framework → Framework}/index.js.map +0 -0
- /package/{build/Mail → Mail}/MailAddress.d.ts +0 -0
- /package/{build/Mail → Mail}/MailAddress.d.ts.map +0 -0
- /package/{build/Mail → Mail}/MailAddress.js +0 -0
- /package/{build/Mail → Mail}/MailAddress.js.map +0 -0
- /package/{build/Mail → Mail}/MailTransport.d.ts +0 -0
- /package/{build/Mail → Mail}/MailTransport.d.ts.map +0 -0
- /package/{build/Mail → Mail}/MailTransport.js +0 -0
- /package/{build/Mail → Mail}/MailTransport.js.map +0 -0
- /package/{build/Mail → Mail}/Mailable.d.ts +0 -0
- /package/{build/Mail → Mail}/Mailable.d.ts.map +0 -0
- /package/{build/Mail → Mail}/Mailable.js +0 -0
- /package/{build/Mail → Mail}/Mailable.js.map +0 -0
- /package/{build/Mail → Mail}/Mailer.d.ts +0 -0
- /package/{build/Mail → Mail}/Mailer.d.ts.map +0 -0
- /package/{build/Mail → Mail}/Mailer.js +0 -0
- /package/{build/Mail → Mail}/Mailer.js.map +0 -0
- /package/{build/Mail → Mail}/PendingMail.d.ts +0 -0
- /package/{build/Mail → Mail}/PendingMail.d.ts.map +0 -0
- /package/{build/Mail → Mail}/PendingMail.js +0 -0
- /package/{build/Mail → Mail}/PendingMail.js.map +0 -0
- /package/{build/Mail → Mail}/SentMessage.d.ts +0 -0
- /package/{build/Mail → Mail}/SentMessage.d.ts.map +0 -0
- /package/{build/Mail → Mail}/SentMessage.js +0 -0
- /package/{build/Mail → Mail}/SentMessage.js.map +0 -0
- /package/{build/Mail → Mail}/Transports/MemoryTransport.d.ts +0 -0
- /package/{build/Mail → Mail}/Transports/MemoryTransport.d.ts.map +0 -0
- /package/{build/Mail → Mail}/Transports/MemoryTransport.js +0 -0
- /package/{build/Mail → Mail}/Transports/MemoryTransport.js.map +0 -0
- /package/{build/Mail → Mail}/Transports/SendGridTransport.d.ts +0 -0
- /package/{build/Mail → Mail}/Transports/SendGridTransport.d.ts.map +0 -0
- /package/{build/Mail → Mail}/Transports/SendGridTransport.js +0 -0
- /package/{build/Mail → Mail}/Transports/SendGridTransport.js.map +0 -0
- /package/{build/Mail → Mail}/index.d.ts +0 -0
- /package/{build/Mail → Mail}/index.d.ts.map +0 -0
- /package/{build/Mail → Mail}/index.js +0 -0
- /package/{build/Mail → Mail}/index.js.map +0 -0
- /package/{build/Models → Models}/Model.d.ts +0 -0
- /package/{build/Models → Models}/Model.d.ts.map +0 -0
- /package/{build/Models → Models}/Model.js +0 -0
- /package/{build/Models → Models}/Model.js.map +0 -0
- /package/{build/Models → Models}/index.d.ts +0 -0
- /package/{build/Models → Models}/index.d.ts.map +0 -0
- /package/{build/Models → Models}/index.js +0 -0
- /package/{build/Models → Models}/index.js.map +0 -0
- /package/{build/Router → Router}/BaseController.d.ts +0 -0
- /package/{build/Router → Router}/BaseController.d.ts.map +0 -0
- /package/{build/Router → Router}/BaseController.js +0 -0
- /package/{build/Router → Router}/BaseController.js.map +0 -0
- /package/{build/Router → Router}/Decorators.d.ts +0 -0
- /package/{build/Router → Router}/Decorators.d.ts.map +0 -0
- /package/{build/Router → Router}/Decorators.js +0 -0
- /package/{build/Router → Router}/Decorators.js.map +0 -0
- /package/{build/Router → Router}/Guard.d.ts +0 -0
- /package/{build/Router → Router}/Guard.d.ts.map +0 -0
- /package/{build/Router → Router}/Guard.js +0 -0
- /package/{build/Router → Router}/Guard.js.map +0 -0
- /package/{build/Router → Router}/Http/Contracts.d.ts +0 -0
- /package/{build/Router → Router}/Http/Contracts.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/Contracts.js +0 -0
- /package/{build/Router → Router}/Http/Contracts.js.map +0 -0
- /package/{build/Router → Router}/Http/ErrorHandler.d.ts +0 -0
- /package/{build/Router → Router}/Http/ErrorHandler.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/ErrorHandler.js +0 -0
- /package/{build/Router → Router}/Http/ErrorHandler.js.map +0 -0
- /package/{build/Router → Router}/Http/ErrorHandlerInterface.d.ts +0 -0
- /package/{build/Router → Router}/Http/ErrorHandlerInterface.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/ErrorHandlerInterface.js +0 -0
- /package/{build/Router → Router}/Http/ErrorHandlerInterface.js.map +0 -0
- /package/{build/Router → Router}/Http/Errors/HttpError.d.ts +0 -0
- /package/{build/Router → Router}/Http/Errors/HttpError.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/Errors/HttpError.js +0 -0
- /package/{build/Router → Router}/Http/Errors/HttpError.js.map +0 -0
- /package/{build/Router → Router}/Http/Handler.d.ts +0 -0
- /package/{build/Router → Router}/Http/Handler.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/Handler.js +0 -0
- /package/{build/Router → Router}/Http/Handler.js.map +0 -0
- /package/{build/Router → Router}/Http/HttpRoute.d.ts +0 -0
- /package/{build/Router → Router}/Http/HttpRoute.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/HttpRoute.js +0 -0
- /package/{build/Router → Router}/Http/HttpRoute.js.map +0 -0
- /package/{build/Router → Router}/Http/Middleware.d.ts +0 -0
- /package/{build/Router → Router}/Http/Middleware.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/Middleware.js +0 -0
- /package/{build/Router → Router}/Http/Middleware.js.map +0 -0
- /package/{build/Router → Router}/Http/Request.d.ts +0 -0
- /package/{build/Router → Router}/Http/Request.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/Request.js +0 -0
- /package/{build/Router → Router}/Http/Request.js.map +0 -0
- /package/{build/Router → Router}/Http/Response.d.ts +0 -0
- /package/{build/Router → Router}/Http/Response.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/Response.js +0 -0
- /package/{build/Router → Router}/Http/Response.js.map +0 -0
- /package/{build/Router → Router}/Http/index.d.ts +0 -0
- /package/{build/Router → Router}/Http/index.d.ts.map +0 -0
- /package/{build/Router → Router}/Http/index.js +0 -0
- /package/{build/Router → Router}/Http/index.js.map +0 -0
- /package/{build/Router → Router}/Metadata.d.ts +0 -0
- /package/{build/Router → Router}/Metadata.d.ts.map +0 -0
- /package/{build/Router → Router}/Metadata.js +0 -0
- /package/{build/Router → Router}/Metadata.js.map +0 -0
- /package/{build/Router → Router}/Middleware.d.ts +0 -0
- /package/{build/Router → Router}/Middleware.d.ts.map +0 -0
- /package/{build/Router → Router}/Middleware.js +0 -0
- /package/{build/Router → Router}/Middleware.js.map +0 -0
- /package/{build/Router → Router}/Request.d.ts +0 -0
- /package/{build/Router → Router}/Request.d.ts.map +0 -0
- /package/{build/Router → Router}/Request.js +0 -0
- /package/{build/Router → Router}/Request.js.map +0 -0
- /package/{build/Router → Router}/Route.d.ts +0 -0
- /package/{build/Router → Router}/Route.d.ts.map +0 -0
- /package/{build/Router → Router}/Route.js +0 -0
- /package/{build/Router → Router}/Route.js.map +0 -0
- /package/{build/Router → Router}/RouteNotFoundError.d.ts +0 -0
- /package/{build/Router → Router}/RouteNotFoundError.d.ts.map +0 -0
- /package/{build/Router → Router}/RouteNotFoundError.js +0 -0
- /package/{build/Router → Router}/RouteNotFoundError.js.map +0 -0
- /package/{build/Router → Router}/Router.d.ts +0 -0
- /package/{build/Router → Router}/Router.d.ts.map +0 -0
- /package/{build/Router → Router}/Router.js +0 -0
- /package/{build/Router → Router}/Router.js.map +0 -0
- /package/{build/Router → Router}/Servers/index.d.ts +0 -0
- /package/{build/Router → Router}/Servers/index.d.ts.map +0 -0
- /package/{build/Router → Router}/Servers/index.js +0 -0
- /package/{build/Router → Router}/Servers/index.js.map +0 -0
- /package/{build/Router → Router}/Servers/node.d.ts +0 -0
- /package/{build/Router → Router}/Servers/node.d.ts.map +0 -0
- /package/{build/Router → Router}/Servers/node.js +0 -0
- /package/{build/Router → Router}/Servers/node.js.map +0 -0
- /package/{build/Router → Router}/Servers/uNetworking.d.ts +0 -0
- /package/{build/Router → Router}/Servers/uNetworking.d.ts.map +0 -0
- /package/{build/Router → Router}/Servers/uNetworking.js +0 -0
- /package/{build/Router → Router}/Servers/uNetworking.js.map +0 -0
- /package/{build/Router → Router}/Websockets/Handler.d.ts +0 -0
- /package/{build/Router → Router}/Websockets/Handler.d.ts.map +0 -0
- /package/{build/Router → Router}/Websockets/Handler.js +0 -0
- /package/{build/Router → Router}/Websockets/Handler.js.map +0 -0
- /package/{build/Router → Router}/Websockets/Middleware.d.ts +0 -0
- /package/{build/Router → Router}/Websockets/Middleware.d.ts.map +0 -0
- /package/{build/Router → Router}/Websockets/Middleware.js +0 -0
- /package/{build/Router → Router}/Websockets/Middleware.js.map +0 -0
- /package/{build/Router → Router}/Websockets/Request.d.ts +0 -0
- /package/{build/Router → Router}/Websockets/Request.d.ts.map +0 -0
- /package/{build/Router → Router}/Websockets/Request.js +0 -0
- /package/{build/Router → Router}/Websockets/Request.js.map +0 -0
- /package/{build/Router → Router}/Websockets/WebsocketRoute.d.ts +0 -0
- /package/{build/Router → Router}/Websockets/WebsocketRoute.d.ts.map +0 -0
- /package/{build/Router → Router}/Websockets/WebsocketRoute.js +0 -0
- /package/{build/Router → Router}/Websockets/WebsocketRoute.js.map +0 -0
- /package/{build/Router → Router}/Websockets/index.d.ts +0 -0
- /package/{build/Router → Router}/Websockets/index.d.ts.map +0 -0
- /package/{build/Router → Router}/Websockets/index.js +0 -0
- /package/{build/Router → Router}/Websockets/index.js.map +0 -0
- /package/{build/Router → Router}/Websockets/types.d.ts +0 -0
- /package/{build/Router → Router}/Websockets/types.d.ts.map +0 -0
- /package/{build/Router → Router}/Websockets/types.js +0 -0
- /package/{build/Router → Router}/Websockets/types.js.map +0 -0
- /package/{build/Router → Router}/index.d.ts +0 -0
- /package/{build/Router → Router}/index.d.ts.map +0 -0
- /package/{build/Router → Router}/index.js +0 -0
- /package/{build/Router → Router}/index.js.map +0 -0
- /package/{build/Storage → Storage}/File.d.ts +0 -0
- /package/{build/Storage → Storage}/File.d.ts.map +0 -0
- /package/{build/Storage → Storage}/File.js +0 -0
- /package/{build/Storage → Storage}/File.js.map +0 -0
- /package/{build/Storage → Storage}/Image.d.ts +0 -0
- /package/{build/Storage → Storage}/Image.d.ts.map +0 -0
- /package/{build/Storage → Storage}/Image.js +0 -0
- /package/{build/Storage → Storage}/Image.js.map +0 -0
- /package/{build/Storage → Storage}/InvalidImage.d.ts +0 -0
- /package/{build/Storage → Storage}/InvalidImage.d.ts.map +0 -0
- /package/{build/Storage → Storage}/InvalidImage.js +0 -0
- /package/{build/Storage → Storage}/InvalidImage.js.map +0 -0
- /package/{build/Storage → Storage}/Storage.d.ts +0 -0
- /package/{build/Storage → Storage}/Storage.d.ts.map +0 -0
- /package/{build/Storage → Storage}/Storage.js +0 -0
- /package/{build/Storage → Storage}/Storage.js.map +0 -0
- /package/{build/Storage → Storage}/index.d.ts +0 -0
- /package/{build/Storage → Storage}/index.d.ts.map +0 -0
- /package/{build/Storage → Storage}/index.js +0 -0
- /package/{build/Storage → Storage}/index.js.map +0 -0
- /package/{build/Storage → Storage}/utils.d.ts +0 -0
- /package/{build/Storage → Storage}/utils.d.ts.map +0 -0
- /package/{build/Storage → Storage}/utils.js +0 -0
- /package/{build/Storage → Storage}/utils.js.map +0 -0
- /package/{build/Support → Support}/Array.d.ts +0 -0
- /package/{build/Support → Support}/Array.d.ts.map +0 -0
- /package/{build/Support → Support}/Array.js +0 -0
- /package/{build/Support → Support}/Array.js.map +0 -0
- /package/{build/Support → Support}/Math.d.ts +0 -0
- /package/{build/Support → Support}/Math.d.ts.map +0 -0
- /package/{build/Support → Support}/Math.js +0 -0
- /package/{build/Support → Support}/Math.js.map +0 -0
- /package/{build/Support → Support}/Metadata.d.ts +0 -0
- /package/{build/Support → Support}/Metadata.d.ts.map +0 -0
- /package/{build/Support → Support}/Metadata.js +0 -0
- /package/{build/Support → Support}/Metadata.js.map +0 -0
- /package/{build/Support → Support}/String.d.ts +0 -0
- /package/{build/Support → Support}/String.d.ts.map +0 -0
- /package/{build/Support → Support}/String.js +0 -0
- /package/{build/Support → Support}/String.js.map +0 -0
- /package/{build/Support → Support}/index.d.ts +0 -0
- /package/{build/Support → Support}/index.d.ts.map +0 -0
- /package/{build/Support → Support}/index.js +0 -0
- /package/{build/Support → Support}/index.js.map +0 -0
- /package/{build/Support → Support}/utils.d.ts +0 -0
- /package/{build/Support → Support}/utils.d.ts.map +0 -0
- /package/{build/Support → Support}/utils.js +0 -0
- /package/{build/Support → Support}/utils.js.map +0 -0
- /package/{build/Testing → Testing}/TestCase.d.ts +0 -0
- /package/{build/Testing → Testing}/TestCase.d.ts.map +0 -0
- /package/{build/Testing → Testing}/TestCase.js +0 -0
- /package/{build/Testing → Testing}/TestCase.js.map +0 -0
- /package/{build/Validation → Validation}/Rule.d.ts +0 -0
- /package/{build/Validation → Validation}/Rule.d.ts.map +0 -0
- /package/{build/Validation → Validation}/Rule.js +0 -0
- /package/{build/Validation → Validation}/Rule.js.map +0 -0
- /package/{build/Validation → Validation}/RuleInterface.d.ts +0 -0
- /package/{build/Validation → Validation}/RuleInterface.d.ts.map +0 -0
- /package/{build/Validation → Validation}/RuleInterface.js +0 -0
- /package/{build/Validation → Validation}/RuleInterface.js.map +0 -0
- /package/{build/Validation → Validation}/Rules/Email.d.ts +0 -0
- /package/{build/Validation → Validation}/Rules/Email.d.ts.map +0 -0
- /package/{build/Validation → Validation}/Rules/Email.js +0 -0
- /package/{build/Validation → Validation}/Rules/Email.js.map +0 -0
- /package/{build/Validation → Validation}/Rules/FileExtension.d.ts +0 -0
- /package/{build/Validation → Validation}/Rules/FileExtension.d.ts.map +0 -0
- /package/{build/Validation → Validation}/Rules/FileExtension.js +0 -0
- /package/{build/Validation → Validation}/Rules/FileExtension.js.map +0 -0
- /package/{build/Validation → Validation}/Rules/MaxLength.d.ts +0 -0
- /package/{build/Validation → Validation}/Rules/MaxLength.d.ts.map +0 -0
- /package/{build/Validation → Validation}/Rules/MaxLength.js +0 -0
- /package/{build/Validation → Validation}/Rules/MaxLength.js.map +0 -0
- /package/{build/Validation → Validation}/Rules/MinLength.d.ts +0 -0
- /package/{build/Validation → Validation}/Rules/MinLength.d.ts.map +0 -0
- /package/{build/Validation → Validation}/Rules/MinLength.js +0 -0
- /package/{build/Validation → Validation}/Rules/MinLength.js.map +0 -0
- /package/{build/Validation → Validation}/Rules/Optional.d.ts +0 -0
- /package/{build/Validation → Validation}/Rules/Optional.d.ts.map +0 -0
- /package/{build/Validation → Validation}/Rules/Optional.js +0 -0
- /package/{build/Validation → Validation}/Rules/Optional.js.map +0 -0
- /package/{build/Validation → Validation}/Rules/Required.d.ts +0 -0
- /package/{build/Validation → Validation}/Rules/Required.d.ts.map +0 -0
- /package/{build/Validation → Validation}/Rules/Required.js +0 -0
- /package/{build/Validation → Validation}/Rules/Required.js.map +0 -0
- /package/{build/Validation → Validation}/Validator.d.ts +0 -0
- /package/{build/Validation → Validation}/Validator.d.ts.map +0 -0
- /package/{build/Validation → Validation}/Validator.js +0 -0
- /package/{build/Validation → Validation}/Validator.js.map +0 -0
- /package/{build/Validation → Validation}/index.d.ts +0 -0
- /package/{build/Validation → Validation}/index.d.ts.map +0 -0
- /package/{build/Validation → Validation}/index.js +0 -0
- /package/{build/Validation → Validation}/index.js.map +0 -0
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { AbstractControl, ValidatorFn } from '@angular/forms'
|
|
2
|
-
import { FormControl, FormGroup } from '@angular/forms'
|
|
3
|
-
import type { Form, FormField } from '@Typetron/Forms'
|
|
4
|
-
import { Constructor } from '@Typetron/Support'
|
|
5
|
-
|
|
6
|
-
export class FormBuilder {
|
|
7
|
-
static build<T extends Form>(form: typeof Form & Constructor<T>): FormGroup {
|
|
8
|
-
const controls: Record<string, AbstractControl> = {}
|
|
9
|
-
const formFields = Object.values(form.fields()) as FormField[]
|
|
10
|
-
const instance = new (form as unknown as Constructor<T>)()
|
|
11
|
-
Object.values(formFields).forEach(field => {
|
|
12
|
-
controls[field.name] = new FormControl(
|
|
13
|
-
instance[field.name as keyof Form],
|
|
14
|
-
{validators: this.getValidators(field)}
|
|
15
|
-
)
|
|
16
|
-
})
|
|
17
|
-
return new FormGroup(controls)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
private static getValidators(field: FormField): ValidatorFn {
|
|
21
|
-
return control => field.validate(control.value) as unknown as ValidatorFn
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { Observable, of, ReplaySubject, Subject, throwError } from 'rxjs'
|
|
2
|
-
import { filter, map, switchMap, take } from 'rxjs/operators'
|
|
3
|
-
import { ActionErrorResponse, ActionRequest, ActionResponse, WebsocketMessageStatus } from '@typetron/framework/Router/Websockets/types'
|
|
4
|
-
|
|
5
|
-
export class Websocket {
|
|
6
|
-
socket?: WebSocket
|
|
7
|
-
|
|
8
|
-
actionMessages$ = new Subject<ActionResponse<unknown>>()
|
|
9
|
-
queuedActions$ = new ReplaySubject<ActionRequest>()
|
|
10
|
-
errors$ = new Subject<ActionErrorResponse>()
|
|
11
|
-
onConnectCallback: () => void
|
|
12
|
-
|
|
13
|
-
constructor(public url: string, public protocols?: string | string[]) {
|
|
14
|
-
this.connect(url, protocols)
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
get isConnected() {
|
|
18
|
-
return this.socket?.readyState === WebSocket.OPEN
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
connect(url?: string, protocols?: string | string[]): void {
|
|
22
|
-
const socket = new WebSocket(url ?? this.url, protocols ?? this.protocols)
|
|
23
|
-
this.socket = socket
|
|
24
|
-
|
|
25
|
-
socket.onmessage = (action) => {
|
|
26
|
-
const message = JSON.parse(action.data)
|
|
27
|
-
this.actionMessages$.next(message)
|
|
28
|
-
}
|
|
29
|
-
socket.onopen = () => {
|
|
30
|
-
this.onConnectCallback?.()
|
|
31
|
-
this.queuedActions$.subscribe(message => {
|
|
32
|
-
socket.send(JSON.stringify(message))
|
|
33
|
-
})
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
socket.onclose = (action) => {
|
|
37
|
-
this.queuedActions$ = new ReplaySubject<ActionRequest>()
|
|
38
|
-
this.reconnect()
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
onConnect(callback: () => void) {
|
|
43
|
-
this.onConnectCallback = callback
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
reconnect(): void {
|
|
47
|
-
if (this.socket?.readyState === WebSocket.CLOSED) {
|
|
48
|
-
window.setTimeout(() => {
|
|
49
|
-
this.connect(this.url, this.protocols)
|
|
50
|
-
}, 1000)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
emit<T>(action: string, request?: ActionRequest['message']): void {
|
|
55
|
-
const actionMessage: ActionRequest = {action, message: request}
|
|
56
|
-
this.queuedActions$.next(actionMessage)
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
on<T>(action: string): Observable<T> {
|
|
60
|
-
return this.actionMessages$.pipe(
|
|
61
|
-
filter(actionMessage => actionMessage.action === action),
|
|
62
|
-
switchMap(actionMessage => {
|
|
63
|
-
if (actionMessage.status === WebsocketMessageStatus.Error) {
|
|
64
|
-
this.errors$.next(actionMessage as ActionErrorResponse)
|
|
65
|
-
return throwError(actionMessage)
|
|
66
|
-
}
|
|
67
|
-
return of(actionMessage)
|
|
68
|
-
}),
|
|
69
|
-
map(actionMessage => actionMessage.message)
|
|
70
|
-
) as Observable<T>
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
onError({except}: {except?: string[]}): Observable<ActionResponse<unknown>> {
|
|
74
|
-
return this.errors$.pipe(filter(actionMessage => !(except || []).includes(actionMessage.action)))
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
async request<T>(action: string, message?: ActionRequest['message']): Promise<T> {
|
|
78
|
-
this.emit(action, message)
|
|
79
|
-
return new Promise((resolve, reject) => {
|
|
80
|
-
this.on<T>(action).pipe(take(1)).subscribe({
|
|
81
|
-
next: resolve,
|
|
82
|
-
error: reject
|
|
83
|
-
})
|
|
84
|
-
})
|
|
85
|
-
}
|
|
86
|
-
}
|
package/LICENSE.md
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) [2019] [Ionel-Cristian Lupu]
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/Mail/MailAddress.ts
DELETED
package/Mail/MailTransport.ts
DELETED
package/Mail/Mailable.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { MailAddress } from '@Typetron/Mail/MailAddress'
|
|
2
|
-
|
|
3
|
-
export class Mailable {
|
|
4
|
-
|
|
5
|
-
from: string | MailAddress
|
|
6
|
-
subject?: string
|
|
7
|
-
body?: string | {html: string, text: string}
|
|
8
|
-
to?: string | MailAddress | (string | MailAddress)[]
|
|
9
|
-
replyTo?: string | MailAddress | (string | MailAddress)[]
|
|
10
|
-
cc?: string | MailAddress | (string | MailAddress)[]
|
|
11
|
-
bcc?: string | MailAddress | (string | MailAddress)[]
|
|
12
|
-
|
|
13
|
-
content(): string | {html: string, text: string} | undefined {
|
|
14
|
-
return
|
|
15
|
-
}
|
|
16
|
-
}
|
package/Mail/Mailer.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { MailTransport } from './MailTransport'
|
|
2
|
-
import { PendingMail } from './PendingMail'
|
|
3
|
-
import { Mailable } from './Mailable'
|
|
4
|
-
import { MailAddress } from '@Typetron/Mail/MailAddress'
|
|
5
|
-
|
|
6
|
-
export class Mailer {
|
|
7
|
-
transport: MailTransport
|
|
8
|
-
|
|
9
|
-
constructor(public from: MailAddress, transport?: MailTransport) {
|
|
10
|
-
if (!transport) {
|
|
11
|
-
throw new Error('Please add the MailProvider in your app in order to use the Mailing feature, ' +
|
|
12
|
-
'or manually add a Mailer instance in the app container ')
|
|
13
|
-
}
|
|
14
|
-
this.transport = transport
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
to(email: string) {
|
|
18
|
-
const mail = new PendingMail(this)
|
|
19
|
-
mail.from(this.from)
|
|
20
|
-
mail.to(email)
|
|
21
|
-
return mail
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
async send(message: Mailable) {
|
|
25
|
-
return await this.transport.send(message)
|
|
26
|
-
}
|
|
27
|
-
}
|
package/Mail/PendingMail.ts
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Mailer } from './index'
|
|
2
|
-
import { Mailable } from './Mailable'
|
|
3
|
-
import { MailAddress } from '@Typetron/Mail/MailAddress'
|
|
4
|
-
|
|
5
|
-
export class PendingMail {
|
|
6
|
-
|
|
7
|
-
details: {
|
|
8
|
-
subject?: string
|
|
9
|
-
from: string | MailAddress
|
|
10
|
-
to?: string | MailAddress
|
|
11
|
-
replyTo?: string | MailAddress
|
|
12
|
-
cc?: string | MailAddress
|
|
13
|
-
bcc?: string | MailAddress
|
|
14
|
-
body?: string | {html: string, text: string}
|
|
15
|
-
} = {from: ''}
|
|
16
|
-
|
|
17
|
-
constructor(private mailer: Mailer) {
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
subject(subject: string) {
|
|
21
|
-
this.details.subject = subject
|
|
22
|
-
return this
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
from(email: string | MailAddress) {
|
|
26
|
-
this.details.from = email
|
|
27
|
-
return this
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
to(email: string | MailAddress) {
|
|
31
|
-
this.details.to = email
|
|
32
|
-
return this
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
replyTo(email: string | MailAddress) {
|
|
36
|
-
this.details.replyTo = email
|
|
37
|
-
return this
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
cc(email: string | MailAddress) {
|
|
41
|
-
this.details.cc = email
|
|
42
|
-
return this
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
bcc(email: string | MailAddress) {
|
|
46
|
-
this.details.bcc = email
|
|
47
|
-
return this
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
async send(body: string | {html: string, text: string} | Mailable) {
|
|
51
|
-
let mail
|
|
52
|
-
if (body instanceof Mailable) {
|
|
53
|
-
mail = body
|
|
54
|
-
} else {
|
|
55
|
-
mail = new Mailable()
|
|
56
|
-
mail.body = body
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
mail.subject = this.details.subject
|
|
60
|
-
mail.from = this.details.from
|
|
61
|
-
mail.to = this.details.to
|
|
62
|
-
mail.replyTo = this.details.replyTo
|
|
63
|
-
mail.cc = this.details.cc
|
|
64
|
-
mail.bcc = this.details.bcc
|
|
65
|
-
|
|
66
|
-
return this.mailer.send(mail)
|
|
67
|
-
}
|
|
68
|
-
}
|
package/Mail/SentMessage.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { MailAddress } from './MailAddress'
|
|
2
|
-
import { Mailable } from '@Typetron/Mail/Mailable'
|
|
3
|
-
|
|
4
|
-
export class SentMessage {
|
|
5
|
-
readonly from: string | MailAddress
|
|
6
|
-
readonly subject?: string
|
|
7
|
-
readonly body?: string | {html: string, text: string}
|
|
8
|
-
readonly to?: string | MailAddress | (string | MailAddress)[]
|
|
9
|
-
readonly replyTo?: string | MailAddress | (string | MailAddress)[]
|
|
10
|
-
readonly cc?: string | MailAddress | (string | MailAddress)[]
|
|
11
|
-
readonly bcc?: string | MailAddress | (string | MailAddress)[]
|
|
12
|
-
|
|
13
|
-
constructor(mail: Mailable) {
|
|
14
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15
|
-
const {content, ...mailDetails} = mail
|
|
16
|
-
Object.assign(this, mailDetails)
|
|
17
|
-
this.body = mail.content() ?? mail.body
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { MailTransport } from '../MailTransport'
|
|
2
|
-
import { SentMessage } from '../SentMessage'
|
|
3
|
-
import { Mailable } from '../Mailable'
|
|
4
|
-
|
|
5
|
-
export class MemoryTransport extends MailTransport {
|
|
6
|
-
messages: SentMessage[] = []
|
|
7
|
-
|
|
8
|
-
async send(message: Mailable) {
|
|
9
|
-
const sentMessage = new SentMessage(message)
|
|
10
|
-
this.messages.push(sentMessage)
|
|
11
|
-
return sentMessage
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { MailTransport } from '../MailTransport'
|
|
2
|
-
import { SentMessage } from '../SentMessage'
|
|
3
|
-
import { Mailable } from '../Mailable'
|
|
4
|
-
import { Inject } from '../../Container'
|
|
5
|
-
import { MailConfig } from '../../Framework'
|
|
6
|
-
import client from '@sendgrid/mail'
|
|
7
|
-
import { HttpError } from '@Typetron/Router/Http'
|
|
8
|
-
|
|
9
|
-
export class SendGridTransport extends MailTransport {
|
|
10
|
-
messages: SentMessage[] = []
|
|
11
|
-
|
|
12
|
-
@Inject()
|
|
13
|
-
config: MailConfig
|
|
14
|
-
|
|
15
|
-
constructor(key: string) {
|
|
16
|
-
super()
|
|
17
|
-
|
|
18
|
-
client.setApiKey(key)
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
async send(message: Mailable) {
|
|
22
|
-
const sentMessage = new SentMessage(message)
|
|
23
|
-
|
|
24
|
-
const sendGridMessage = {
|
|
25
|
-
personalizations: [
|
|
26
|
-
{
|
|
27
|
-
to: sentMessage.to,
|
|
28
|
-
cc: sentMessage.cc,
|
|
29
|
-
bcc: sentMessage.bcc
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
from: sentMessage.from,
|
|
33
|
-
replyTo: sentMessage.replyTo,
|
|
34
|
-
subject: sentMessage.subject,
|
|
35
|
-
content: [
|
|
36
|
-
{
|
|
37
|
-
type: 'text/html',
|
|
38
|
-
value: sentMessage.body
|
|
39
|
-
}
|
|
40
|
-
],
|
|
41
|
-
// attachments: [
|
|
42
|
-
// {
|
|
43
|
-
// content: 'PCFET0NUdGxlPkRvY3VtZW50PC90aXRsZT4KICAgIDwvaGVhZD4KCiAgICA8Ym9keT4KCiAgICA8L2JvZHk+Cgo8L2h0bWw+Cg==',
|
|
44
|
-
// filename: 'index.html',
|
|
45
|
-
// type: 'text/html',
|
|
46
|
-
// disposition: 'attachment'
|
|
47
|
-
// }
|
|
48
|
-
// ],
|
|
49
|
-
// categories: [
|
|
50
|
-
// 'cake',
|
|
51
|
-
// 'pie',
|
|
52
|
-
// 'baking'
|
|
53
|
-
// ],
|
|
54
|
-
// sendAt: 1617260400,
|
|
55
|
-
// batchId: 'AsdFgHjklQweRTYuIopzXcVBNm0aSDfGHjklmZcVbNMqWert1znmOP2asDFjkl',
|
|
56
|
-
// asm: {
|
|
57
|
-
// groupId: 12345,
|
|
58
|
-
// groupsToDisplay: [
|
|
59
|
-
// 12345
|
|
60
|
-
// ]
|
|
61
|
-
// },
|
|
62
|
-
// ipPoolName: 'transactional email',
|
|
63
|
-
// mailSettings: {
|
|
64
|
-
// bypassListManagement: {
|
|
65
|
-
// enable: false
|
|
66
|
-
// },
|
|
67
|
-
// footer: {
|
|
68
|
-
// enable: false
|
|
69
|
-
// },
|
|
70
|
-
// sandboxMode: {
|
|
71
|
-
// enable: false
|
|
72
|
-
// }
|
|
73
|
-
// },
|
|
74
|
-
// trackingSettings: {
|
|
75
|
-
// clickTracking: {
|
|
76
|
-
// enable: true,
|
|
77
|
-
// enableText: false
|
|
78
|
-
// },
|
|
79
|
-
// openTracking: {
|
|
80
|
-
// enable: true,
|
|
81
|
-
// substitutionTag: '%open-track%'
|
|
82
|
-
// },
|
|
83
|
-
// subscriptionTracking: {
|
|
84
|
-
// enable: false
|
|
85
|
-
// }
|
|
86
|
-
// }
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
90
|
-
/* @ts-ignore */ // SendGrid has TS issues
|
|
91
|
-
await client.send(sendGridMessage).catch(error => {throw new HttpError(error.response.body.errors, error.code)})
|
|
92
|
-
|
|
93
|
-
return sentMessage
|
|
94
|
-
}
|
|
95
|
-
}
|
package/Mail/index.ts
DELETED
package/Models/Model.ts
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { Constructor } from '../Support'
|
|
2
|
-
import { ModelField, ModelMetadataKey, ModelTypeInterface } from './index'
|
|
3
|
-
|
|
4
|
-
export class Model {
|
|
5
|
-
static async from<T extends Model, Q extends object>(this: Constructor<T> & typeof Model, entity: Promise<Iterable<Q>>): Promise<T[]>;
|
|
6
|
-
static async from<T extends Model, Q extends object>(this: Constructor<T> & typeof Model, entity: Promise<Q>): Promise<T>;
|
|
7
|
-
static from<T extends Model, Q extends object>(this: Constructor<T> & typeof Model, entity: Iterable<Q>): T[];
|
|
8
|
-
static from<T extends Model, Q extends object>(this: Constructor<T> & typeof Model, entity: Q): T;
|
|
9
|
-
static from<T extends Model, Q extends object>(
|
|
10
|
-
this: Constructor<T> & typeof Model,
|
|
11
|
-
entity: Q | Iterable<Q> | Promise<Q | Iterable<Q>>
|
|
12
|
-
): T | T[] | Promise<T | T[]> {
|
|
13
|
-
if (entity instanceof Promise) {
|
|
14
|
-
return entity.then(value => this.from(value))
|
|
15
|
-
}
|
|
16
|
-
if (Symbol.iterator in Object(entity)) {
|
|
17
|
-
return Array.from(entity as Iterable<Q>).map(item => this.from<T, Q>(item))
|
|
18
|
-
}
|
|
19
|
-
const fields: Record<string, ModelField> = Reflect.getMetadata(ModelMetadataKey, this) || {}
|
|
20
|
-
|
|
21
|
-
return this.transform<T, Q>(fields, entity as Q)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
protected static transform<T, Q extends object>(fields: Record<string, ModelField>, entity: Q): T {
|
|
25
|
-
const data: Partial<Record<keyof T, Q[keyof Q]>> = new this
|
|
26
|
-
Object.values(fields).forEach(field => {
|
|
27
|
-
if (!entity || !entity.hasOwnProperty(field.name)) {
|
|
28
|
-
return
|
|
29
|
-
}
|
|
30
|
-
const value = entity[field.name as keyof Q]
|
|
31
|
-
if (field.type instanceof ModelTypeInterface && value) {
|
|
32
|
-
// @ts-ignore
|
|
33
|
-
const jsonValue = value['toJSON' as keyof object] ? value?.toJSON() : value
|
|
34
|
-
data[field.name as keyof T] = jsonValue ? field.type.transform(jsonValue) as Q[keyof Q] : undefined
|
|
35
|
-
} else {
|
|
36
|
-
data[field.name as keyof T] = value
|
|
37
|
-
}
|
|
38
|
-
})
|
|
39
|
-
return data as T
|
|
40
|
-
}
|
|
41
|
-
}
|
package/Models/index.ts
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Model } from './Model'
|
|
2
|
-
import { Constructor } from '../Support'
|
|
3
|
-
|
|
4
|
-
export const ModelMetadataKey = 'model:fields'
|
|
5
|
-
|
|
6
|
-
export interface ModelField {
|
|
7
|
-
name: string;
|
|
8
|
-
type: Function | ModelTypeInterface<{}>;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function Field(name?: string) {
|
|
12
|
-
return function(target: Object, property: string) {
|
|
13
|
-
const fields: Record<string, ModelField> = Reflect.getMetadata(ModelMetadataKey, target.constructor) || {}
|
|
14
|
-
let type = Reflect.getMetadata('design:type', target, property)
|
|
15
|
-
if (type.prototype instanceof Model) {
|
|
16
|
-
type = new ModelType(type)
|
|
17
|
-
}
|
|
18
|
-
fields[property] = fields[property] || {name: name || property, type} as ModelField
|
|
19
|
-
Reflect.defineMetadata(ModelMetadataKey, fields, target.constructor)
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export abstract class ModelTypeInterface<T extends Model, Q = T> {
|
|
24
|
-
constructor(public model: Constructor<T> & typeof Model) {}
|
|
25
|
-
|
|
26
|
-
abstract transform(value: Q): Q;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export class ModelType<T extends Model> extends ModelTypeInterface<T> {
|
|
30
|
-
|
|
31
|
-
transform(value: T) {
|
|
32
|
-
return this.model.from(value)
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export class ArrayType<T extends Model> extends ModelTypeInterface<T, T[]> {
|
|
37
|
-
transform(value: T[]) {
|
|
38
|
-
return Array.from(value).map(item => {
|
|
39
|
-
return this.model.from(item)
|
|
40
|
-
})
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
export function FieldMany(type: typeof Model) {
|
|
45
|
-
return function(target: Object, property: string) {
|
|
46
|
-
const fields: Record<string, ModelField> = Reflect.getMetadata(ModelMetadataKey, target.constructor) || {}
|
|
47
|
-
const field = fields[property] || {name: property, type: new ArrayType(type)} as ModelField
|
|
48
|
-
field.type = new ArrayType(type)
|
|
49
|
-
fields[property] = field
|
|
50
|
-
Reflect.defineMetadata(ModelMetadataKey, fields, target.constructor)
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export * from './Model'
|
package/Readme.md
DELETED
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
# Typetron
|
|
2
|
-
> **Note:** This project is a prototype in heavy development and not ready for production.
|
|
3
|
-
|
|
4
|
-
**[Typetron](https://typetron.org)** is a **modern web framework** built for Node.js, written in **Typescript**, that
|
|
5
|
-
allows you to build fully featured web applications.
|
|
6
|
-
Typetron is best suited for small sized to enterprise level apps.
|
|
7
|
-
Most of the core packages it uses were built from scratch in order to preserve the performance of the framework.
|
|
8
|
-
|
|
9
|
-
_(check [this tutorial](https://typetron.org/tutorials/blog) on how to get started with Typetron)_
|
|
10
|
-
|
|
11
|
-
### Prerequisites
|
|
12
|
-
- [NodeJs >=12 LTS](https://nodejs.org)
|
|
13
|
-
|
|
14
|
-
#### Features
|
|
15
|
-
Typetron aims to have all the features necessary for building any web app without the need for you
|
|
16
|
-
to search the internet for a package to use. Almost all the packages it has were built from scratch and are
|
|
17
|
-
available in the framework.
|
|
18
|
-
This was done to ensure that all the features you are using benefit from the latest language features.
|
|
19
|
-
Also, every package can be tuned for performance or updated in no time if needed.
|
|
20
|
-
|
|
21
|
-
##### Features List
|
|
22
|
-
|
|
23
|
-
[typetron.org](https://typetron.org/docs/)
|
|
24
|
-
|
|
25
|
-
##### Performance
|
|
26
|
-
Being built with packages created from scratch using the latest features of the language, Typetron comes with
|
|
27
|
-
excellent performance out of the box compared to other available frameworks.
|
|
28
|
-
|
|
29
|
-
##### Developer experience
|
|
30
|
-
Typetron's source code is built around developer's expectations: it is modern, clean and beautiful.
|
|
31
|
-
Also, the tools Typetron is providing are everything a developer needs to build his next awesome project.
|
|
32
|
-
|
|
33
|
-
##### Code sharing
|
|
34
|
-
A few years ago we wrote websites. Nowadays we write web applications. The web evolved alongside the tools we are
|
|
35
|
-
using. A typical web application is composed of at least two parts: a backend app and a frontend app.
|
|
36
|
-
This separation led to two different camps that have a very distinct line between them. Typetron provides tools to make
|
|
37
|
-
these two camps work together.
|
|
38
|
-
|
|
39
|
-
#### Source code examples
|
|
40
|
-
|
|
41
|
-
##### Entities
|
|
42
|
-
```ts
|
|
43
|
-
export class User extends Entity {
|
|
44
|
-
|
|
45
|
-
@PrimaryColumn()
|
|
46
|
-
id: number;
|
|
47
|
-
|
|
48
|
-
@Column()
|
|
49
|
-
email: string;
|
|
50
|
-
|
|
51
|
-
@Column()
|
|
52
|
-
name: string;
|
|
53
|
-
|
|
54
|
-
@Relation(() => Post, 'author')
|
|
55
|
-
posts: HasMany<Post> = [];
|
|
56
|
-
|
|
57
|
-
@Relation(() => Group, 'users')
|
|
58
|
-
group: BelongsTo<Group>;
|
|
59
|
-
}
|
|
60
|
-
```
|
|
61
|
-
##### Forms
|
|
62
|
-
```ts
|
|
63
|
-
export class UserForm extends Form {
|
|
64
|
-
@Field()
|
|
65
|
-
@Rules(
|
|
66
|
-
Required,
|
|
67
|
-
)
|
|
68
|
-
email: string;
|
|
69
|
-
|
|
70
|
-
@Field()
|
|
71
|
-
@Rules(
|
|
72
|
-
Required,
|
|
73
|
-
MinLength(5),
|
|
74
|
-
)
|
|
75
|
-
name: string;
|
|
76
|
-
|
|
77
|
-
@Field()
|
|
78
|
-
dateOfBirth: Date;
|
|
79
|
-
}
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
##### Controllers
|
|
83
|
-
|
|
84
|
-
```ts
|
|
85
|
-
@Controller('users')
|
|
86
|
-
export class UserController {
|
|
87
|
-
|
|
88
|
-
@Inject()
|
|
89
|
-
storage: Storage;
|
|
90
|
-
|
|
91
|
-
@AuthUser()
|
|
92
|
-
user: User;
|
|
93
|
-
|
|
94
|
-
@Get('me')
|
|
95
|
-
async me() {
|
|
96
|
-
return this.auth.user;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
@Get()
|
|
100
|
-
async browse() {
|
|
101
|
-
return UserModel.from(User.get());
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
@Get(':User')
|
|
105
|
-
read(user: User) {
|
|
106
|
-
return user;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
@Put(':User')
|
|
110
|
-
update(user: User, userForm: UserForm) {
|
|
111
|
-
return user.fill(userForm).save();
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
@Post()
|
|
115
|
-
create(userForm: UserForm) {
|
|
116
|
-
return User.create(userForm);
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
```
|
|
121
|
-
|
|
122
|
-
## License
|
|
123
|
-
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
|