@typetron/framework 0.5.21 → 0.5.22

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.
Files changed (886) hide show
  1. package/.automaker/app_spec.txt +440 -0
  2. package/.automaker/categories.json +1 -0
  3. package/.automaker/features/a-b-testing-framework/feature.json +14 -0
  4. package/.automaker/features/account-lockout-protection/feature.json +14 -0
  5. package/.automaker/features/api-versioning/feature.json +14 -0
  6. package/.automaker/features/background-job-processing/feature.json +12 -0
  7. package/.automaker/features/cloud-storage-integration/feature.json +14 -0
  8. package/.automaker/features/compression-middleware/feature.json +14 -0
  9. package/.automaker/features/cors-and-security-headers/feature.json +14 -0
  10. package/.automaker/features/currency-and-timezone/feature.json +14 -0
  11. package/.automaker/features/database-backup-restore/feature.json +14 -0
  12. package/.automaker/features/database-query-logging/feature.json +15 -0
  13. package/.automaker/features/database-transaction-support/feature.json +14 -0
  14. package/.automaker/features/discord-notifications-channel/feature.json +14 -0
  15. package/.automaker/features/eager-loading-optimization/feature.json +14 -0
  16. package/.automaker/features/email-notifications-channel/feature.json +14 -0
  17. package/.automaker/features/error-tracking-integration/feature.json +14 -0
  18. package/.automaker/features/feature-flags/feature.json +12 -0
  19. package/.automaker/features/file-upload-handling/feature.json +14 -0
  20. package/.automaker/features/form-builder/feature.json +14 -0
  21. package/.automaker/features/full-text-search/feature.json +14 -0
  22. package/.automaker/features/graphql-api-support/feature.json +14 -0
  23. package/.automaker/features/graphql-documentation/feature.json +14 -0
  24. package/.automaker/features/graphql-subscriptions/feature.json +15 -0
  25. package/.automaker/features/html-view-rendering/feature.json +14 -0
  26. package/.automaker/features/http2-support/feature.json +14 -0
  27. package/.automaker/features/http3-quic-support/feature.json +14 -0
  28. package/.automaker/features/image-processing/feature.json +14 -0
  29. package/.automaker/features/internationalization-i18n/feature.json +12 -0
  30. package/.automaker/features/job-retries-and-failures/feature.json +14 -0
  31. package/.automaker/features/job-scheduling/feature.json +14 -0
  32. package/.automaker/features/locale-detection/feature.json +14 -0
  33. package/.automaker/features/log-rotation/feature.json +14 -0
  34. package/.automaker/features/logging-system/feature.json +12 -0
  35. package/.automaker/features/oauth-authentication/feature.json +14 -0
  36. package/.automaker/features/pagination-component/feature.json +14 -0
  37. package/.automaker/features/password-reset-flow/feature.json +14 -0
  38. package/.automaker/features/performance-monitoring/feature.json +14 -0
  39. package/.automaker/features/permission-management/feature.json +14 -0
  40. package/.automaker/features/policy-based-authorization/feature.json +14 -0
  41. package/.automaker/features/polymorphic-relationships/feature.json +14 -0
  42. package/.automaker/features/query-scopes/feature.json +14 -0
  43. package/.automaker/features/rate-limiting/feature.json +14 -0
  44. package/.automaker/features/request-validation-middleware/feature.json +14 -0
  45. package/.automaker/features/response-caching-headers/feature.json +14 -0
  46. package/.automaker/features/rest-api-documentation/feature.json +14 -0
  47. package/.automaker/features/role-based-access-control/feature.json +14 -0
  48. package/.automaker/features/session-management/feature.json +14 -0
  49. package/.automaker/features/session-middleware/feature.json +14 -0
  50. package/.automaker/features/slack-notifications-channel/feature.json +14 -0
  51. package/.automaker/features/sms-notifications-channel/feature.json +14 -0
  52. package/.automaker/features/soft-deletes/feature.json +14 -0
  53. package/.automaker/features/structured-logging/feature.json +14 -0
  54. package/.automaker/features/timestamps-and-auditing/feature.json +14 -0
  55. package/.automaker/features/two-factor-authentication/feature.json +14 -0
  56. package/.automaker/features/view-helpers-utilities/feature.json +14 -0
  57. package/.automaker/features/webhook-notifications/feature.json +14 -0
  58. package/.claude/settings.local.json +10 -0
  59. package/.editorconfig +11 -0
  60. package/.mocharc.json +13 -0
  61. package/CONTRIBUTING.md +9 -0
  62. package/Cache/Cache.ts +13 -0
  63. package/Cache/Stores/DatabaseStore.ts +120 -0
  64. package/Cache/Stores/FileStore.ts +69 -0
  65. package/Cache/Stores/MemoryStore.ts +71 -0
  66. package/Cache/index.ts +5 -0
  67. package/Cache/types.ts +4 -0
  68. package/Container/ClassResolver.ts +106 -0
  69. package/Container/Container.ts +144 -0
  70. package/Container/Contracts.ts +3 -0
  71. package/Container/Decorators.ts +20 -0
  72. package/Container/Metadata.ts +16 -0
  73. package/Container/Resolver.ts +27 -0
  74. package/Container/index.ts +5 -0
  75. package/Database/Clauses/Where.ts +0 -0
  76. package/Database/Connection.ts +52 -0
  77. package/Database/Decorators.ts +142 -0
  78. package/Database/Drivers/DatabaseDriver.ts +37 -0
  79. package/Database/Drivers/MySQL/Alter/index.ts +55 -0
  80. package/Database/Drivers/MySQL/ColumnDefinition.ts +16 -0
  81. package/Database/Drivers/MySQL/Create.ts +47 -0
  82. package/Database/Drivers/MySQL/MysqlDriver.ts +123 -0
  83. package/Database/Drivers/MySQL/Schema.ts +82 -0
  84. package/Database/Drivers/MySQL/index.ts +13 -0
  85. package/Database/Drivers/SQL/Schema.ts +73 -0
  86. package/Database/Drivers/SQL/Statements/Alter.ts +22 -0
  87. package/Database/Drivers/SQL/Statements/BaseStatement.ts +55 -0
  88. package/Database/Drivers/SQL/Statements/Delete.ts +20 -0
  89. package/Database/Drivers/SQL/Statements/Insert.ts +24 -0
  90. package/Database/Drivers/SQL/Statements/Select.ts +55 -0
  91. package/Database/Drivers/SQL/Statements/Update.ts +33 -0
  92. package/Database/Drivers/SQL/index.ts +8 -0
  93. package/Database/Drivers/SQLite/Create.ts +45 -0
  94. package/Database/Drivers/SQLite/Schema.ts +54 -0
  95. package/Database/Drivers/SQLite/SqliteDriver.ts +144 -0
  96. package/Database/Drivers/SQLite/index.ts +15 -0
  97. package/Database/Drivers/SchemaContract.ts +11 -0
  98. package/Database/Drivers/Statement.ts +16 -0
  99. package/Database/Drivers/index.ts +4 -0
  100. package/Database/Entity.ts +377 -0
  101. package/Database/EntityNotFoundError.ts +5 -0
  102. package/Database/EntityProxyHandler.ts +43 -0
  103. package/Database/EntityQuery.ts +197 -0
  104. package/Database/Expression.ts +3 -0
  105. package/Database/Fields.ts +816 -0
  106. package/Database/Helpers.ts +12 -0
  107. package/Database/List.ts +71 -0
  108. package/Database/Migrations/Migration.ts +10 -0
  109. package/Database/Migrations/MigrationHistory.ts +20 -0
  110. package/Database/Migrations/Migrator.ts +122 -0
  111. package/Database/Migrations/index.ts +3 -0
  112. package/Database/ORM/BaseRelationship.ts +10 -0
  113. package/Database/Query.ts +374 -0
  114. package/Database/Seeders/Seeder.ts +3 -0
  115. package/Database/Seeders/SeederManager.ts +27 -0
  116. package/Database/Seeders/index.ts +2 -0
  117. package/Database/StringExpression.ts +9 -0
  118. package/Database/Types.ts +165 -0
  119. package/Database/index.ts +23 -0
  120. package/Encryption/index.ts +51 -0
  121. package/Forms/Decorators.ts +29 -0
  122. package/Forms/Form.ts +70 -0
  123. package/Forms/FormFields.ts +36 -0
  124. package/Forms/index.ts +3 -0
  125. package/Framework/App.ts +10 -0
  126. package/Framework/Application.ts +118 -0
  127. package/Framework/Auth/Auth.ts +122 -0
  128. package/Framework/Auth/Authenticatable.ts +9 -0
  129. package/Framework/Auth/User.ts +27 -0
  130. package/Framework/Auth/index.ts +29 -0
  131. package/Framework/Config/AppConfig.ts +25 -0
  132. package/Framework/Config/AuthConfig.ts +11 -0
  133. package/Framework/Config/BaseConfig.ts +9 -0
  134. package/Framework/Config/CacheConfig.ts +38 -0
  135. package/Framework/Config/DatabaseConfig.ts +21 -0
  136. package/Framework/Config/MailConfig.ts +30 -0
  137. package/Framework/Config/index.ts +6 -0
  138. package/Framework/Middleware/AuthMiddleware.ts +31 -0
  139. package/Framework/Middleware/CorsMiddleware.ts +32 -0
  140. package/Framework/Middleware/StaticAssetsMiddleware.ts +76 -0
  141. package/Framework/Middleware/index.ts +2 -0
  142. package/Framework/Provider.ts +9 -0
  143. package/Framework/Providers/CacheProvider.ts +28 -0
  144. package/Framework/Providers/DatabaseProvider.ts +36 -0
  145. package/Framework/Providers/MailProvider.ts +31 -0
  146. package/Framework/Providers/WebsocketsProvider.ts +141 -0
  147. package/Framework/Resolvers/AuthResolver.ts +23 -0
  148. package/Framework/Resolvers/EntityResolver.ts +41 -0
  149. package/Framework/Resolvers/FormResolver.ts +37 -0
  150. package/Framework/RootDir.ts +1 -0
  151. package/Framework/index.ts +8 -0
  152. package/Frontend/Angular/Readme.md +7 -0
  153. package/Frontend/Angular/index.ts +24 -0
  154. package/Frontend/Angular/package-lock.json +2767 -0
  155. package/Frontend/Angular/package.json +38 -0
  156. package/Frontend/Angular/tsconfig.json +20 -0
  157. package/Frontend/Websockets/Readme.md +86 -0
  158. package/Frontend/Websockets/index.ts +99 -0
  159. package/Frontend/Websockets/package-lock.json +4371 -0
  160. package/Frontend/Websockets/package.json +45 -0
  161. package/Frontend/Websockets/tsc-alias.config.json +7 -0
  162. package/Frontend/Websockets/tsconfig.json +20 -0
  163. package/Mail/MailAddress.ts +4 -0
  164. package/Mail/MailTransport.ts +6 -0
  165. package/Mail/Mailable.ts +16 -0
  166. package/Mail/Mailer.ts +27 -0
  167. package/Mail/PendingMail.ts +68 -0
  168. package/Mail/SentMessage.ts +20 -0
  169. package/Mail/Transports/MemoryTransport.ts +13 -0
  170. package/Mail/Transports/SendGridTransport.ts +95 -0
  171. package/Mail/index.ts +3 -0
  172. package/Models/Model.ts +41 -0
  173. package/Models/index.ts +54 -0
  174. package/Router/BaseController.ts +7 -0
  175. package/Router/Decorators.ts +224 -0
  176. package/Router/Guard.ts +10 -0
  177. package/Router/Http/Contracts.ts +4 -0
  178. package/Router/Http/ErrorHandler.ts +45 -0
  179. package/Router/Http/ErrorHandlerInterface.ts +6 -0
  180. package/Router/Http/Errors/HttpError.ts +15 -0
  181. package/Router/Http/Handler.ts +183 -0
  182. package/Router/Http/HttpRoute.ts +110 -0
  183. package/Router/Http/Middleware.ts +7 -0
  184. package/Router/Http/Request.ts +225 -0
  185. package/Router/Http/Response.ts +35 -0
  186. package/Router/Http/index.ts +85 -0
  187. package/Router/Metadata.ts +34 -0
  188. package/Router/Middleware.ts +16 -0
  189. package/Router/Request.ts +65 -0
  190. package/Router/Route.ts +16 -0
  191. package/Router/RouteNotFoundError.ts +5 -0
  192. package/Router/Router.ts +35 -0
  193. package/Router/Servers/index.ts +6 -0
  194. package/Router/Servers/node.ts +49 -0
  195. package/Router/Servers/uNetworking.ts +151 -0
  196. package/Router/Websockets/Handler.ts +82 -0
  197. package/Router/Websockets/Middleware.ts +7 -0
  198. package/Router/Websockets/Request.ts +3 -0
  199. package/Router/Websockets/WebsocketRoute.ts +61 -0
  200. package/Router/Websockets/index.ts +59 -0
  201. package/Router/Websockets/types.ts +24 -0
  202. package/Router/index.ts +6 -0
  203. package/Storage/File.ts +30 -0
  204. package/Storage/Image.ts +19 -0
  205. package/Storage/InvalidImage.ts +3 -0
  206. package/Storage/Storage.ts +98 -0
  207. package/Storage/index.ts +4 -0
  208. package/Storage/utils.ts +18 -0
  209. package/Support/Array.ts +184 -0
  210. package/Support/Math.ts +12 -0
  211. package/Support/Metadata.ts +31 -0
  212. package/Support/String.ts +38 -0
  213. package/Support/index.ts +19 -0
  214. package/Support/utils.ts +7 -0
  215. package/Testing/TestCase.ts +193 -0
  216. package/Validation/Rule.ts +9 -0
  217. package/Validation/RuleInterface.ts +10 -0
  218. package/Validation/Rules/Email.ts +20 -0
  219. package/Validation/Rules/FileExtension.ts +21 -0
  220. package/Validation/Rules/MaxLength.ts +17 -0
  221. package/Validation/Rules/MinLength.ts +18 -0
  222. package/Validation/Rules/Optional.ts +18 -0
  223. package/Validation/Rules/Required.ts +29 -0
  224. package/Validation/Validator.ts +7 -0
  225. package/Validation/index.ts +12 -0
  226. package/benchmark.ts +47 -0
  227. package/eslint.config.mjs +78 -0
  228. package/package.json +2 -6
  229. package/tests/.nycrc.json +19 -0
  230. package/tests/Cache/DatabaseStoreTest.ts +110 -0
  231. package/tests/Cache/FileStoreTest.ts +93 -0
  232. package/tests/Cache/MemoryStoreTest.ts +92 -0
  233. package/tests/Container/ContainerTest.ts +336 -0
  234. package/tests/Database/Drivers/MySQL/AlterTest.ts +100 -0
  235. package/tests/Database/Drivers/MySQL/CreateTest.ts +39 -0
  236. package/tests/Database/Drivers/MysqlDriverTest.ts +140 -0
  237. package/tests/Database/Drivers/SqliteDriverTest.ts +126 -0
  238. package/tests/Database/Entities/Article.ts +21 -0
  239. package/tests/Database/Entities/Profile.ts +21 -0
  240. package/tests/Database/Entities/Role.ts +15 -0
  241. package/tests/Database/Entities/User.ts +35 -0
  242. package/tests/Database/EntityRelationshipsTest.ts +475 -0
  243. package/tests/Database/EntityTest.ts +202 -0
  244. package/tests/Database/Migrations/RunnerTest.ts +96 -0
  245. package/tests/Database/Migrations/migrations/1.createUserTable.ts +12 -0
  246. package/tests/Database/Migrations/migrations/2.createArticlesTable.ts +12 -0
  247. package/tests/Database/QueryTest.ts +573 -0
  248. package/tests/Database/SchemaTest.ts +32 -0
  249. package/tests/Database/Seeders/RunnerTest.ts +30 -0
  250. package/tests/Database/Seeders/seeders/RandomSeeder.ts +10 -0
  251. package/tests/Database/utils.ts +16 -0
  252. package/tests/Forms/FormsTest.ts +59 -0
  253. package/tests/Framework/Middleware/StaticAssetsMiddlewareTest.ts +129 -0
  254. package/tests/Framework/Middleware/articles/my-article.html +1 -0
  255. package/tests/Framework/Middleware/articles/some-directory/index.html +1 -0
  256. package/tests/Framework/Middleware/assets/styles.css +3 -0
  257. package/tests/Framework/Resolvers/EntityResolverTest.ts +48 -0
  258. package/tests/Framework/Router/RouterTest.ts +33 -0
  259. package/tests/Mail/MailerTest.ts +76 -0
  260. package/tests/Model/ModelTest.ts +183 -0
  261. package/tests/Router/HttpHandlerTest.ts +72 -0
  262. package/tests/Router/RequestTest.ts +77 -0
  263. package/tests/Router/WebSocketsHandlerTest.ts +51 -0
  264. package/tests/Storage/StorageTest.ts +97 -0
  265. package/tests/Support/ArrayTest.ts +167 -0
  266. package/tests/Support/StringTest.ts +18 -0
  267. package/tests/Validation/RulesTest.ts +54 -0
  268. package/tests/tsconfig.json +5 -0
  269. package/tsconfig.json +53 -0
  270. package/types.d.ts +8 -0
  271. package/build/Cache/Cache.d.ts +0 -9
  272. package/build/Cache/Cache.d.ts.map +0 -1
  273. package/build/Cache/Cache.js +0 -7
  274. package/build/Cache/Cache.js.map +0 -1
  275. package/build/Cache/Stores/DatabaseStore.d.ts +0 -16
  276. package/build/Cache/Stores/DatabaseStore.d.ts.map +0 -1
  277. package/build/Cache/Stores/DatabaseStore.js +0 -105
  278. package/build/Cache/Stores/DatabaseStore.js.map +0 -1
  279. package/build/Cache/Stores/FileStore.d.ts +0 -16
  280. package/build/Cache/Stores/FileStore.d.ts.map +0 -1
  281. package/build/Cache/Stores/FileStore.js +0 -65
  282. package/build/Cache/Stores/FileStore.js.map +0 -1
  283. package/build/Cache/Stores/MemoryStore.d.ts +0 -13
  284. package/build/Cache/Stores/MemoryStore.d.ts.map +0 -1
  285. package/build/Cache/Stores/MemoryStore.js +0 -57
  286. package/build/Cache/Stores/MemoryStore.js.map +0 -1
  287. package/build/Cache/index.d.ts +0 -6
  288. package/build/Cache/index.d.ts.map +0 -1
  289. package/build/Cache/index.js +0 -22
  290. package/build/Cache/index.js.map +0 -1
  291. package/build/Cache/types.d.ts +0 -5
  292. package/build/Cache/types.d.ts.map +0 -1
  293. package/build/Cache/types.js +0 -3
  294. package/build/Cache/types.js.map +0 -1
  295. package/build/Container/ClassResolver.d.ts +0 -9
  296. package/build/Container/ClassResolver.d.ts.map +0 -1
  297. package/build/Container/ClassResolver.js +0 -93
  298. package/build/Container/ClassResolver.js.map +0 -1
  299. package/build/Container/Container.d.ts +0 -25
  300. package/build/Container/Container.d.ts.map +0 -1
  301. package/build/Container/Container.js +0 -123
  302. package/build/Container/Container.js.map +0 -1
  303. package/build/Container/Contracts.d.ts +0 -3
  304. package/build/Container/Contracts.d.ts.map +0 -1
  305. package/build/Container/Contracts.js +0 -3
  306. package/build/Container/Contracts.js.map +0 -1
  307. package/build/Container/Decorators.d.ts +0 -5
  308. package/build/Container/Decorators.d.ts.map +0 -1
  309. package/build/Container/Decorators.js +0 -21
  310. package/build/Container/Decorators.js.map +0 -1
  311. package/build/Container/Metadata.d.ts +0 -21
  312. package/build/Container/Metadata.d.ts.map +0 -1
  313. package/build/Container/Metadata.js +0 -17
  314. package/build/Container/Metadata.js.map +0 -1
  315. package/build/Container/Resolver.d.ts +0 -19
  316. package/build/Container/Resolver.d.ts.map +0 -1
  317. package/build/Container/Resolver.js +0 -17
  318. package/build/Container/Resolver.js.map +0 -1
  319. package/build/Container/index.d.ts +0 -6
  320. package/build/Container/index.d.ts.map +0 -1
  321. package/build/Container/index.js +0 -22
  322. package/build/Container/index.js.map +0 -1
  323. package/build/Database/Clauses/Where.d.ts +0 -1
  324. package/build/Database/Clauses/Where.d.ts.map +0 -1
  325. package/build/Database/Clauses/Where.js +0 -2
  326. package/build/Database/Clauses/Where.js.map +0 -1
  327. package/build/Database/Connection.d.ts +0 -21
  328. package/build/Database/Connection.d.ts.map +0 -1
  329. package/build/Database/Connection.js +0 -44
  330. package/build/Database/Connection.js.map +0 -1
  331. package/build/Database/Decorators.d.ts +0 -36
  332. package/build/Database/Decorators.d.ts.map +0 -1
  333. package/build/Database/Decorators.js +0 -116
  334. package/build/Database/Decorators.js.map +0 -1
  335. package/build/Database/Drivers/DatabaseDriver.d.ts +0 -29
  336. package/build/Database/Drivers/DatabaseDriver.d.ts.map +0 -1
  337. package/build/Database/Drivers/DatabaseDriver.js +0 -7
  338. package/build/Database/Drivers/DatabaseDriver.js.map +0 -1
  339. package/build/Database/Drivers/MySQL/Alter/index.d.ts +0 -34
  340. package/build/Database/Drivers/MySQL/Alter/index.d.ts.map +0 -1
  341. package/build/Database/Drivers/MySQL/Alter/index.js +0 -70
  342. package/build/Database/Drivers/MySQL/Alter/index.js.map +0 -1
  343. package/build/Database/Drivers/MySQL/ColumnDefinition.d.ts +0 -7
  344. package/build/Database/Drivers/MySQL/ColumnDefinition.d.ts.map +0 -1
  345. package/build/Database/Drivers/MySQL/ColumnDefinition.js +0 -19
  346. package/build/Database/Drivers/MySQL/ColumnDefinition.js.map +0 -1
  347. package/build/Database/Drivers/MySQL/Create.d.ts +0 -10
  348. package/build/Database/Drivers/MySQL/Create.d.ts.map +0 -1
  349. package/build/Database/Drivers/MySQL/Create.js +0 -44
  350. package/build/Database/Drivers/MySQL/Create.js.map +0 -1
  351. package/build/Database/Drivers/MySQL/MysqlDriver.d.ts +0 -42
  352. package/build/Database/Drivers/MySQL/MysqlDriver.d.ts.map +0 -1
  353. package/build/Database/Drivers/MySQL/MysqlDriver.js +0 -93
  354. package/build/Database/Drivers/MySQL/MysqlDriver.js.map +0 -1
  355. package/build/Database/Drivers/MySQL/Schema.d.ts +0 -16
  356. package/build/Database/Drivers/MySQL/Schema.d.ts.map +0 -1
  357. package/build/Database/Drivers/MySQL/Schema.js +0 -67
  358. package/build/Database/Drivers/MySQL/Schema.js.map +0 -1
  359. package/build/Database/Drivers/MySQL/index.d.ts +0 -2
  360. package/build/Database/Drivers/MySQL/index.d.ts.map +0 -1
  361. package/build/Database/Drivers/MySQL/index.js +0 -16
  362. package/build/Database/Drivers/MySQL/index.js.map +0 -1
  363. package/build/Database/Drivers/SQL/Schema.d.ts +0 -7
  364. package/build/Database/Drivers/SQL/Schema.d.ts.map +0 -1
  365. package/build/Database/Drivers/SQL/Schema.js +0 -58
  366. package/build/Database/Drivers/SQL/Schema.js.map +0 -1
  367. package/build/Database/Drivers/SQL/Statements/Alter.d.ts +0 -8
  368. package/build/Database/Drivers/SQL/Statements/Alter.d.ts.map +0 -1
  369. package/build/Database/Drivers/SQL/Statements/Alter.js +0 -22
  370. package/build/Database/Drivers/SQL/Statements/Alter.js.map +0 -1
  371. package/build/Database/Drivers/SQL/Statements/BaseStatement.d.ts +0 -13
  372. package/build/Database/Drivers/SQL/Statements/BaseStatement.d.ts.map +0 -1
  373. package/build/Database/Drivers/SQL/Statements/BaseStatement.js +0 -46
  374. package/build/Database/Drivers/SQL/Statements/BaseStatement.js.map +0 -1
  375. package/build/Database/Drivers/SQL/Statements/Delete.d.ts +0 -6
  376. package/build/Database/Drivers/SQL/Statements/Delete.d.ts.map +0 -1
  377. package/build/Database/Drivers/SQL/Statements/Delete.js +0 -20
  378. package/build/Database/Drivers/SQL/Statements/Delete.js.map +0 -1
  379. package/build/Database/Drivers/SQL/Statements/Insert.d.ts +0 -7
  380. package/build/Database/Drivers/SQL/Statements/Insert.d.ts.map +0 -1
  381. package/build/Database/Drivers/SQL/Statements/Insert.js +0 -24
  382. package/build/Database/Drivers/SQL/Statements/Insert.js.map +0 -1
  383. package/build/Database/Drivers/SQL/Statements/Select.d.ts +0 -8
  384. package/build/Database/Drivers/SQL/Statements/Select.d.ts.map +0 -1
  385. package/build/Database/Drivers/SQL/Statements/Select.js +0 -51
  386. package/build/Database/Drivers/SQL/Statements/Select.js.map +0 -1
  387. package/build/Database/Drivers/SQL/Statements/Update.d.ts +0 -7
  388. package/build/Database/Drivers/SQL/Statements/Update.d.ts.map +0 -1
  389. package/build/Database/Drivers/SQL/Statements/Update.js +0 -33
  390. package/build/Database/Drivers/SQL/Statements/Update.js.map +0 -1
  391. package/build/Database/Drivers/SQL/index.d.ts +0 -9
  392. package/build/Database/Drivers/SQL/index.d.ts.map +0 -1
  393. package/build/Database/Drivers/SQL/index.js +0 -3
  394. package/build/Database/Drivers/SQL/index.js.map +0 -1
  395. package/build/Database/Drivers/SQLite/Create.d.ts +0 -10
  396. package/build/Database/Drivers/SQLite/Create.d.ts.map +0 -1
  397. package/build/Database/Drivers/SQLite/Create.js +0 -43
  398. package/build/Database/Drivers/SQLite/Create.js.map +0 -1
  399. package/build/Database/Drivers/SQLite/Schema.d.ts +0 -16
  400. package/build/Database/Drivers/SQLite/Schema.d.ts.map +0 -1
  401. package/build/Database/Drivers/SQLite/Schema.js +0 -49
  402. package/build/Database/Drivers/SQLite/Schema.js.map +0 -1
  403. package/build/Database/Drivers/SQLite/SqliteDriver.d.ts +0 -43
  404. package/build/Database/Drivers/SQLite/SqliteDriver.d.ts.map +0 -1
  405. package/build/Database/Drivers/SQLite/SqliteDriver.js +0 -115
  406. package/build/Database/Drivers/SQLite/SqliteDriver.js.map +0 -1
  407. package/build/Database/Drivers/SQLite/index.d.ts +0 -3
  408. package/build/Database/Drivers/SQLite/index.d.ts.map +0 -1
  409. package/build/Database/Drivers/SQLite/index.js +0 -31
  410. package/build/Database/Drivers/SQLite/index.js.map +0 -1
  411. package/build/Database/Drivers/SchemaContract.d.ts +0 -9
  412. package/build/Database/Drivers/SchemaContract.d.ts.map +0 -1
  413. package/build/Database/Drivers/SchemaContract.js +0 -11
  414. package/build/Database/Drivers/SchemaContract.js.map +0 -1
  415. package/build/Database/Drivers/Statement.d.ts +0 -10
  416. package/build/Database/Drivers/Statement.d.ts.map +0 -1
  417. package/build/Database/Drivers/Statement.js +0 -17
  418. package/build/Database/Drivers/Statement.js.map +0 -1
  419. package/build/Database/Drivers/index.d.ts +0 -5
  420. package/build/Database/Drivers/index.d.ts.map +0 -1
  421. package/build/Database/Drivers/index.js +0 -21
  422. package/build/Database/Drivers/index.js.map +0 -1
  423. package/build/Database/Entity.d.ts +0 -64
  424. package/build/Database/Entity.d.ts.map +0 -1
  425. package/build/Database/Entity.js +0 -243
  426. package/build/Database/Entity.js.map +0 -1
  427. package/build/Database/EntityNotFoundError.d.ts +0 -6
  428. package/build/Database/EntityNotFoundError.d.ts.map +0 -1
  429. package/build/Database/EntityNotFoundError.js +0 -12
  430. package/build/Database/EntityNotFoundError.js.map +0 -1
  431. package/build/Database/EntityProxyHandler.d.ts +0 -6
  432. package/build/Database/EntityProxyHandler.d.ts.map +0 -1
  433. package/build/Database/EntityProxyHandler.js +0 -40
  434. package/build/Database/EntityProxyHandler.js.map +0 -1
  435. package/build/Database/EntityQuery.d.ts +0 -29
  436. package/build/Database/EntityQuery.d.ts.map +0 -1
  437. package/build/Database/EntityQuery.js +0 -158
  438. package/build/Database/EntityQuery.js.map +0 -1
  439. package/build/Database/Expression.d.ts +0 -4
  440. package/build/Database/Expression.d.ts.map +0 -1
  441. package/build/Database/Expression.js +0 -7
  442. package/build/Database/Expression.js.map +0 -1
  443. package/build/Database/Fields.d.ts +0 -156
  444. package/build/Database/Fields.d.ts.map +0 -1
  445. package/build/Database/Fields.js +0 -564
  446. package/build/Database/Fields.js.map +0 -1
  447. package/build/Database/Helpers.d.ts +0 -2
  448. package/build/Database/Helpers.d.ts.map +0 -1
  449. package/build/Database/Helpers.js +0 -16
  450. package/build/Database/Helpers.js.map +0 -1
  451. package/build/Database/List.d.ts +0 -24
  452. package/build/Database/List.d.ts.map +0 -1
  453. package/build/Database/List.js +0 -48
  454. package/build/Database/List.js.map +0 -1
  455. package/build/Database/Migrations/Migration.d.ts +0 -8
  456. package/build/Database/Migrations/Migration.d.ts.map +0 -1
  457. package/build/Database/Migrations/Migration.js +0 -11
  458. package/build/Database/Migrations/Migration.js.map +0 -1
  459. package/build/Database/Migrations/MigrationHistory.d.ts +0 -9
  460. package/build/Database/Migrations/MigrationHistory.d.ts.map +0 -1
  461. package/build/Database/Migrations/MigrationHistory.js +0 -43
  462. package/build/Database/Migrations/MigrationHistory.js.map +0 -1
  463. package/build/Database/Migrations/Migrator.d.ts +0 -21
  464. package/build/Database/Migrations/Migrator.d.ts.map +0 -1
  465. package/build/Database/Migrations/Migrator.js +0 -135
  466. package/build/Database/Migrations/Migrator.js.map +0 -1
  467. package/build/Database/Migrations/index.d.ts +0 -4
  468. package/build/Database/Migrations/index.d.ts.map +0 -1
  469. package/build/Database/Migrations/index.js +0 -20
  470. package/build/Database/Migrations/index.js.map +0 -1
  471. package/build/Database/ORM/BaseRelationship.d.ts +0 -8
  472. package/build/Database/ORM/BaseRelationship.d.ts.map +0 -1
  473. package/build/Database/ORM/BaseRelationship.js +0 -13
  474. package/build/Database/ORM/BaseRelationship.js.map +0 -1
  475. package/build/Database/Query.d.ts +0 -63
  476. package/build/Database/Query.d.ts.map +0 -1
  477. package/build/Database/Query.js +0 -264
  478. package/build/Database/Query.js.map +0 -1
  479. package/build/Database/Seeders/Seeder.d.ts +0 -4
  480. package/build/Database/Seeders/Seeder.d.ts.map +0 -1
  481. package/build/Database/Seeders/Seeder.js +0 -7
  482. package/build/Database/Seeders/Seeder.js.map +0 -1
  483. package/build/Database/Seeders/SeederManager.d.ts +0 -9
  484. package/build/Database/Seeders/SeederManager.d.ts.map +0 -1
  485. package/build/Database/Seeders/SeederManager.js +0 -27
  486. package/build/Database/Seeders/SeederManager.js.map +0 -1
  487. package/build/Database/Seeders/index.d.ts +0 -3
  488. package/build/Database/Seeders/index.d.ts.map +0 -1
  489. package/build/Database/Seeders/index.js +0 -19
  490. package/build/Database/Seeders/index.js.map +0 -1
  491. package/build/Database/StringExpression.d.ts +0 -7
  492. package/build/Database/StringExpression.d.ts.map +0 -1
  493. package/build/Database/StringExpression.js +0 -16
  494. package/build/Database/StringExpression.js.map +0 -1
  495. package/build/Database/Types.d.ts +0 -118
  496. package/build/Database/Types.d.ts.map +0 -1
  497. package/build/Database/Types.js +0 -106
  498. package/build/Database/Types.js.map +0 -1
  499. package/build/Database/index.d.ts +0 -21
  500. package/build/Database/index.d.ts.map +0 -1
  501. package/build/Database/index.js +0 -25
  502. package/build/Database/index.js.map +0 -1
  503. package/build/Encryption/index.d.ts +0 -15
  504. package/build/Encryption/index.d.ts.map +0 -1
  505. package/build/Encryption/index.js +0 -68
  506. package/build/Encryption/index.js.map +0 -1
  507. package/build/Forms/Decorators.d.ts +0 -7
  508. package/build/Forms/Decorators.d.ts.map +0 -1
  509. package/build/Forms/Decorators.js +0 -29
  510. package/build/Forms/Decorators.js.map +0 -1
  511. package/build/Forms/Form.d.ts +0 -18
  512. package/build/Forms/Form.d.ts.map +0 -1
  513. package/build/Forms/Form.js +0 -68
  514. package/build/Forms/Form.js.map +0 -1
  515. package/build/Forms/FormFields.d.ts +0 -10
  516. package/build/Forms/FormFields.d.ts.map +0 -1
  517. package/build/Forms/FormFields.js +0 -39
  518. package/build/Forms/FormFields.js.map +0 -1
  519. package/build/Forms/index.d.ts +0 -4
  520. package/build/Forms/index.d.ts.map +0 -1
  521. package/build/Forms/index.js +0 -20
  522. package/build/Forms/index.js.map +0 -1
  523. package/build/Framework/App.d.ts +0 -7
  524. package/build/Framework/App.d.ts.map +0 -1
  525. package/build/Framework/App.js +0 -11
  526. package/build/Framework/App.js.map +0 -1
  527. package/build/Framework/Application.d.ts +0 -17
  528. package/build/Framework/Application.d.ts.map +0 -1
  529. package/build/Framework/Application.js +0 -94
  530. package/build/Framework/Application.js.map +0 -1
  531. package/build/Framework/Auth/Auth.d.ts +0 -24
  532. package/build/Framework/Auth/Auth.d.ts.map +0 -1
  533. package/build/Framework/Auth/Auth.js +0 -116
  534. package/build/Framework/Auth/Auth.js.map +0 -1
  535. package/build/Framework/Auth/Authenticatable.d.ts +0 -7
  536. package/build/Framework/Auth/Authenticatable.d.ts.map +0 -1
  537. package/build/Framework/Auth/Authenticatable.js +0 -3
  538. package/build/Framework/Auth/Authenticatable.js.map +0 -1
  539. package/build/Framework/Auth/User.d.ts +0 -11
  540. package/build/Framework/Auth/User.d.ts.map +0 -1
  541. package/build/Framework/Auth/User.js +0 -41
  542. package/build/Framework/Auth/User.js.map +0 -1
  543. package/build/Framework/Auth/index.d.ts +0 -6
  544. package/build/Framework/Auth/index.d.ts.map +0 -1
  545. package/build/Framework/Auth/index.js +0 -44
  546. package/build/Framework/Auth/index.js.map +0 -1
  547. package/build/Framework/Config/AppConfig.d.ts +0 -26
  548. package/build/Framework/Config/AppConfig.d.ts.map +0 -1
  549. package/build/Framework/Config/AppConfig.js +0 -20
  550. package/build/Framework/Config/AppConfig.js.map +0 -1
  551. package/build/Framework/Config/AuthConfig.d.ts +0 -11
  552. package/build/Framework/Config/AuthConfig.d.ts.map +0 -1
  553. package/build/Framework/Config/AuthConfig.js +0 -13
  554. package/build/Framework/Config/AuthConfig.js.map +0 -1
  555. package/build/Framework/Config/BaseConfig.d.ts +0 -7
  556. package/build/Framework/Config/BaseConfig.d.ts.map +0 -1
  557. package/build/Framework/Config/BaseConfig.js +0 -14
  558. package/build/Framework/Config/BaseConfig.js.map +0 -1
  559. package/build/Framework/Config/CacheConfig.d.ts +0 -16
  560. package/build/Framework/Config/CacheConfig.d.ts.map +0 -1
  561. package/build/Framework/Config/CacheConfig.js +0 -37
  562. package/build/Framework/Config/CacheConfig.js.map +0 -1
  563. package/build/Framework/Config/DatabaseConfig.d.ts +0 -11
  564. package/build/Framework/Config/DatabaseConfig.d.ts.map +0 -1
  565. package/build/Framework/Config/DatabaseConfig.js +0 -23
  566. package/build/Framework/Config/DatabaseConfig.js.map +0 -1
  567. package/build/Framework/Config/MailConfig.d.ts +0 -19
  568. package/build/Framework/Config/MailConfig.d.ts.map +0 -1
  569. package/build/Framework/Config/MailConfig.js +0 -11
  570. package/build/Framework/Config/MailConfig.js.map +0 -1
  571. package/build/Framework/Config/index.d.ts +0 -7
  572. package/build/Framework/Config/index.d.ts.map +0 -1
  573. package/build/Framework/Config/index.js +0 -23
  574. package/build/Framework/Config/index.js.map +0 -1
  575. package/build/Framework/Middleware/AuthMiddleware.d.ts +0 -9
  576. package/build/Framework/Middleware/AuthMiddleware.d.ts.map +0 -1
  577. package/build/Framework/Middleware/AuthMiddleware.js +0 -78
  578. package/build/Framework/Middleware/AuthMiddleware.js.map +0 -1
  579. package/build/Framework/Middleware/CorsMiddleware.d.ts +0 -8
  580. package/build/Framework/Middleware/CorsMiddleware.d.ts.map +0 -1
  581. package/build/Framework/Middleware/CorsMiddleware.js +0 -47
  582. package/build/Framework/Middleware/CorsMiddleware.js.map +0 -1
  583. package/build/Framework/Middleware/StaticAssetsMiddleware.d.ts +0 -16
  584. package/build/Framework/Middleware/StaticAssetsMiddleware.d.ts.map +0 -1
  585. package/build/Framework/Middleware/StaticAssetsMiddleware.js +0 -120
  586. package/build/Framework/Middleware/StaticAssetsMiddleware.js.map +0 -1
  587. package/build/Framework/Middleware/index.d.ts +0 -3
  588. package/build/Framework/Middleware/index.d.ts.map +0 -1
  589. package/build/Framework/Middleware/index.js +0 -19
  590. package/build/Framework/Middleware/index.js.map +0 -1
  591. package/build/Framework/Provider.d.ts +0 -6
  592. package/build/Framework/Provider.d.ts.map +0 -1
  593. package/build/Framework/Provider.js +0 -22
  594. package/build/Framework/Provider.js.map +0 -1
  595. package/build/Framework/Providers/CacheProvider.d.ts +0 -7
  596. package/build/Framework/Providers/CacheProvider.d.ts.map +0 -1
  597. package/build/Framework/Providers/CacheProvider.js +0 -40
  598. package/build/Framework/Providers/CacheProvider.js.map +0 -1
  599. package/build/Framework/Providers/DatabaseProvider.d.ts +0 -10
  600. package/build/Framework/Providers/DatabaseProvider.d.ts.map +0 -1
  601. package/build/Framework/Providers/DatabaseProvider.js +0 -80
  602. package/build/Framework/Providers/DatabaseProvider.js.map +0 -1
  603. package/build/Framework/Providers/MailProvider.d.ts +0 -7
  604. package/build/Framework/Providers/MailProvider.d.ts.map +0 -1
  605. package/build/Framework/Providers/MailProvider.js +0 -41
  606. package/build/Framework/Providers/MailProvider.js.map +0 -1
  607. package/build/Framework/Providers/WebsocketsProvider.d.ts +0 -13
  608. package/build/Framework/Providers/WebsocketsProvider.d.ts.map +0 -1
  609. package/build/Framework/Providers/WebsocketsProvider.js +0 -145
  610. package/build/Framework/Providers/WebsocketsProvider.js.map +0 -1
  611. package/build/Framework/Resolvers/AuthResolver.d.ts +0 -6
  612. package/build/Framework/Resolvers/AuthResolver.d.ts.map +0 -1
  613. package/build/Framework/Resolvers/AuthResolver.js +0 -19
  614. package/build/Framework/Resolvers/AuthResolver.js.map +0 -1
  615. package/build/Framework/Resolvers/EntityResolver.d.ts +0 -10
  616. package/build/Framework/Resolvers/EntityResolver.d.ts.map +0 -1
  617. package/build/Framework/Resolvers/EntityResolver.js +0 -40
  618. package/build/Framework/Resolvers/EntityResolver.js.map +0 -1
  619. package/build/Framework/Resolvers/FormResolver.d.ts +0 -10
  620. package/build/Framework/Resolvers/FormResolver.d.ts.map +0 -1
  621. package/build/Framework/Resolvers/FormResolver.js +0 -34
  622. package/build/Framework/Resolvers/FormResolver.js.map +0 -1
  623. package/build/Framework/RootDir.d.ts +0 -3
  624. package/build/Framework/RootDir.d.ts.map +0 -1
  625. package/build/Framework/RootDir.js +0 -7
  626. package/build/Framework/RootDir.js.map +0 -1
  627. package/build/Framework/index.d.ts +0 -9
  628. package/build/Framework/index.d.ts.map +0 -1
  629. package/build/Framework/index.js +0 -25
  630. package/build/Framework/index.js.map +0 -1
  631. package/build/LICENSE.md +0 -21
  632. package/build/Mail/MailAddress.d.ts +0 -5
  633. package/build/Mail/MailAddress.d.ts.map +0 -1
  634. package/build/Mail/MailAddress.js +0 -3
  635. package/build/Mail/MailAddress.js.map +0 -1
  636. package/build/Mail/MailTransport.d.ts +0 -6
  637. package/build/Mail/MailTransport.d.ts.map +0 -1
  638. package/build/Mail/MailTransport.js +0 -7
  639. package/build/Mail/MailTransport.js.map +0 -1
  640. package/build/Mail/Mailable.d.ts +0 -18
  641. package/build/Mail/Mailable.d.ts.map +0 -1
  642. package/build/Mail/Mailable.js +0 -17
  643. package/build/Mail/Mailable.js.map +0 -1
  644. package/build/Mail/Mailer.d.ts +0 -12
  645. package/build/Mail/Mailer.d.ts.map +0 -1
  646. package/build/Mail/Mailer.js +0 -27
  647. package/build/Mail/Mailer.js.map +0 -1
  648. package/build/Mail/PendingMail.d.ts +0 -30
  649. package/build/Mail/PendingMail.d.ts.map +0 -1
  650. package/build/Mail/PendingMail.js +0 -54
  651. package/build/Mail/PendingMail.js.map +0 -1
  652. package/build/Mail/SentMessage.d.ts +0 -16
  653. package/build/Mail/SentMessage.d.ts.map +0 -1
  654. package/build/Mail/SentMessage.js +0 -20
  655. package/build/Mail/SentMessage.js.map +0 -1
  656. package/build/Mail/Transports/MemoryTransport.d.ts +0 -8
  657. package/build/Mail/Transports/MemoryTransport.d.ts.map +0 -1
  658. package/build/Mail/Transports/MemoryTransport.js +0 -15
  659. package/build/Mail/Transports/MemoryTransport.js.map +0 -1
  660. package/build/Mail/Transports/SendGridTransport.d.ts +0 -11
  661. package/build/Mail/Transports/SendGridTransport.d.ts.map +0 -1
  662. package/build/Mail/Transports/SendGridTransport.js +0 -106
  663. package/build/Mail/Transports/SendGridTransport.js.map +0 -1
  664. package/build/Mail/index.d.ts +0 -4
  665. package/build/Mail/index.d.ts.map +0 -1
  666. package/build/Mail/index.js +0 -20
  667. package/build/Mail/index.js.map +0 -1
  668. package/build/Models/Model.d.ts +0 -10
  669. package/build/Models/Model.d.ts.map +0 -1
  670. package/build/Models/Model.js +0 -36
  671. package/build/Models/Model.js.map +0 -1
  672. package/build/Models/index.d.ts +0 -22
  673. package/build/Models/index.d.ts.map +0 -1
  674. package/build/Models/index.js +0 -64
  675. package/build/Models/index.js.map +0 -1
  676. package/build/Readme.md +0 -123
  677. package/build/Router/BaseController.d.ts +0 -5
  678. package/build/Router/BaseController.d.ts.map +0 -1
  679. package/build/Router/BaseController.js +0 -22
  680. package/build/Router/BaseController.js.map +0 -1
  681. package/build/Router/Decorators.d.ts +0 -19
  682. package/build/Router/Decorators.d.ts.map +0 -1
  683. package/build/Router/Decorators.js +0 -175
  684. package/build/Router/Decorators.js.map +0 -1
  685. package/build/Router/Guard.d.ts +0 -5
  686. package/build/Router/Guard.d.ts.map +0 -1
  687. package/build/Router/Guard.js +0 -11
  688. package/build/Router/Guard.js.map +0 -1
  689. package/build/Router/Http/Contracts.d.ts +0 -4
  690. package/build/Router/Http/Contracts.d.ts.map +0 -1
  691. package/build/Router/Http/Contracts.js +0 -3
  692. package/build/Router/Http/Contracts.js.map +0 -1
  693. package/build/Router/Http/ErrorHandler.d.ts +0 -10
  694. package/build/Router/Http/ErrorHandler.d.ts.map +0 -1
  695. package/build/Router/Http/ErrorHandler.js +0 -53
  696. package/build/Router/Http/ErrorHandler.js.map +0 -1
  697. package/build/Router/Http/ErrorHandlerInterface.d.ts +0 -6
  698. package/build/Router/Http/ErrorHandlerInterface.d.ts.map +0 -1
  699. package/build/Router/Http/ErrorHandlerInterface.js +0 -8
  700. package/build/Router/Http/ErrorHandlerInterface.js.map +0 -1
  701. package/build/Router/Http/Errors/HttpError.d.ts +0 -8
  702. package/build/Router/Http/Errors/HttpError.d.ts.map +0 -1
  703. package/build/Router/Http/Errors/HttpError.js +0 -18
  704. package/build/Router/Http/Errors/HttpError.js.map +0 -1
  705. package/build/Router/Http/Handler.d.ts +0 -19
  706. package/build/Router/Http/Handler.d.ts.map +0 -1
  707. package/build/Router/Http/Handler.js +0 -163
  708. package/build/Router/Http/Handler.js.map +0 -1
  709. package/build/Router/Http/HttpRoute.d.ts +0 -25
  710. package/build/Router/Http/HttpRoute.d.ts.map +0 -1
  711. package/build/Router/Http/HttpRoute.js +0 -97
  712. package/build/Router/Http/HttpRoute.js.map +0 -1
  713. package/build/Router/Http/Middleware.d.ts +0 -7
  714. package/build/Router/Http/Middleware.d.ts.map +0 -1
  715. package/build/Router/Http/Middleware.js +0 -8
  716. package/build/Router/Http/Middleware.js.map +0 -1
  717. package/build/Router/Http/Request.d.ts +0 -38
  718. package/build/Router/Http/Request.d.ts.map +0 -1
  719. package/build/Router/Http/Request.js +0 -211
  720. package/build/Router/Http/Request.js.map +0 -1
  721. package/build/Router/Http/Response.d.ts +0 -14
  722. package/build/Router/Http/Response.d.ts.map +0 -1
  723. package/build/Router/Http/Response.js +0 -31
  724. package/build/Router/Http/Response.js.map +0 -1
  725. package/build/Router/Http/index.d.ts +0 -84
  726. package/build/Router/Http/index.d.ts.map +0 -1
  727. package/build/Router/Http/index.js +0 -104
  728. package/build/Router/Http/index.js.map +0 -1
  729. package/build/Router/Metadata.d.ts +0 -41
  730. package/build/Router/Metadata.d.ts.map +0 -1
  731. package/build/Router/Metadata.js +0 -33
  732. package/build/Router/Metadata.js.map +0 -1
  733. package/build/Router/Middleware.d.ts +0 -13
  734. package/build/Router/Middleware.d.ts.map +0 -1
  735. package/build/Router/Middleware.js +0 -7
  736. package/build/Router/Middleware.js.map +0 -1
  737. package/build/Router/Request.d.ts +0 -24
  738. package/build/Router/Request.d.ts.map +0 -1
  739. package/build/Router/Request.js +0 -44
  740. package/build/Router/Request.js.map +0 -1
  741. package/build/Router/Route.d.ts +0 -13
  742. package/build/Router/Route.d.ts.map +0 -1
  743. package/build/Router/Route.js +0 -20
  744. package/build/Router/Route.js.map +0 -1
  745. package/build/Router/RouteNotFoundError.d.ts +0 -4
  746. package/build/Router/RouteNotFoundError.d.ts.map +0 -1
  747. package/build/Router/RouteNotFoundError.js +0 -10
  748. package/build/Router/RouteNotFoundError.js.map +0 -1
  749. package/build/Router/Router.d.ts +0 -19
  750. package/build/Router/Router.d.ts.map +0 -1
  751. package/build/Router/Router.js +0 -36
  752. package/build/Router/Router.js.map +0 -1
  753. package/build/Router/Servers/index.d.ts +0 -5
  754. package/build/Router/Servers/index.d.ts.map +0 -1
  755. package/build/Router/Servers/index.js +0 -19
  756. package/build/Router/Servers/index.js.map +0 -1
  757. package/build/Router/Servers/node.d.ts +0 -3
  758. package/build/Router/Servers/node.d.ts.map +0 -1
  759. package/build/Router/Servers/node.js +0 -41
  760. package/build/Router/Servers/node.js.map +0 -1
  761. package/build/Router/Servers/uNetworking.d.ts +0 -3
  762. package/build/Router/Servers/uNetworking.d.ts.map +0 -1
  763. package/build/Router/Servers/uNetworking.js +0 -172
  764. package/build/Router/Servers/uNetworking.js.map +0 -1
  765. package/build/Router/Websockets/Handler.d.ts +0 -15
  766. package/build/Router/Websockets/Handler.d.ts.map +0 -1
  767. package/build/Router/Websockets/Handler.js +0 -69
  768. package/build/Router/Websockets/Handler.js.map +0 -1
  769. package/build/Router/Websockets/Middleware.d.ts +0 -7
  770. package/build/Router/Websockets/Middleware.d.ts.map +0 -1
  771. package/build/Router/Websockets/Middleware.js +0 -8
  772. package/build/Router/Websockets/Middleware.js.map +0 -1
  773. package/build/Router/Websockets/Request.d.ts +0 -4
  774. package/build/Router/Websockets/Request.d.ts.map +0 -1
  775. package/build/Router/Websockets/Request.js +0 -8
  776. package/build/Router/Websockets/Request.js.map +0 -1
  777. package/build/Router/Websockets/WebsocketRoute.d.ts +0 -7
  778. package/build/Router/Websockets/WebsocketRoute.d.ts.map +0 -1
  779. package/build/Router/Websockets/WebsocketRoute.js +0 -47
  780. package/build/Router/Websockets/WebsocketRoute.js.map +0 -1
  781. package/build/Router/Websockets/index.d.ts +0 -19
  782. package/build/Router/Websockets/index.d.ts.map +0 -1
  783. package/build/Router/Websockets/index.js +0 -68
  784. package/build/Router/Websockets/index.js.map +0 -1
  785. package/build/Router/Websockets/types.d.ts +0 -22
  786. package/build/Router/Websockets/types.d.ts.map +0 -1
  787. package/build/Router/Websockets/types.js +0 -9
  788. package/build/Router/Websockets/types.js.map +0 -1
  789. package/build/Router/index.d.ts +0 -7
  790. package/build/Router/index.d.ts.map +0 -1
  791. package/build/Router/index.js +0 -23
  792. package/build/Router/index.js.map +0 -1
  793. package/build/Storage/File.d.ts +0 -12
  794. package/build/Storage/File.d.ts.map +0 -1
  795. package/build/Storage/File.js +0 -65
  796. package/build/Storage/File.js.map +0 -1
  797. package/build/Storage/Image.d.ts +0 -4
  798. package/build/Storage/Image.d.ts.map +0 -1
  799. package/build/Storage/Image.js +0 -8
  800. package/build/Storage/Image.js.map +0 -1
  801. package/build/Storage/InvalidImage.d.ts +0 -4
  802. package/build/Storage/InvalidImage.d.ts.map +0 -1
  803. package/build/Storage/InvalidImage.js +0 -8
  804. package/build/Storage/InvalidImage.js.map +0 -1
  805. package/build/Storage/Storage.d.ts +0 -13
  806. package/build/Storage/Storage.d.ts.map +0 -1
  807. package/build/Storage/Storage.js +0 -120
  808. package/build/Storage/Storage.js.map +0 -1
  809. package/build/Storage/index.d.ts +0 -5
  810. package/build/Storage/index.d.ts.map +0 -1
  811. package/build/Storage/index.js +0 -21
  812. package/build/Storage/index.js.map +0 -1
  813. package/build/Storage/utils.d.ts +0 -5
  814. package/build/Storage/utils.d.ts.map +0 -1
  815. package/build/Storage/utils.js +0 -20
  816. package/build/Storage/utils.js.map +0 -1
  817. package/build/Support/Array.d.ts +0 -29
  818. package/build/Support/Array.d.ts.map +0 -1
  819. package/build/Support/Array.js +0 -112
  820. package/build/Support/Array.js.map +0 -1
  821. package/build/Support/Math.d.ts +0 -7
  822. package/build/Support/Math.d.ts.map +0 -1
  823. package/build/Support/Math.js +0 -8
  824. package/build/Support/Math.js.map +0 -1
  825. package/build/Support/Metadata.d.ts +0 -16
  826. package/build/Support/Metadata.d.ts.map +0 -1
  827. package/build/Support/Metadata.js +0 -33
  828. package/build/Support/Metadata.js.map +0 -1
  829. package/build/Support/String.d.ts +0 -12
  830. package/build/Support/String.d.ts.map +0 -1
  831. package/build/Support/String.js +0 -24
  832. package/build/Support/String.js.map +0 -1
  833. package/build/Support/index.d.ts +0 -16
  834. package/build/Support/index.d.ts.map +0 -1
  835. package/build/Support/index.js +0 -7
  836. package/build/Support/index.js.map +0 -1
  837. package/build/Support/utils.d.ts +0 -2
  838. package/build/Support/utils.d.ts.map +0 -1
  839. package/build/Support/utils.js +0 -12
  840. package/build/Support/utils.js.map +0 -1
  841. package/build/Testing/TestCase.d.ts +0 -33
  842. package/build/Testing/TestCase.d.ts.map +0 -1
  843. package/build/Testing/TestCase.js +0 -138
  844. package/build/Testing/TestCase.js.map +0 -1
  845. package/build/Validation/Rule.d.ts +0 -7
  846. package/build/Validation/Rule.d.ts.map +0 -1
  847. package/build/Validation/Rule.js +0 -7
  848. package/build/Validation/Rule.js.map +0 -1
  849. package/build/Validation/RuleInterface.d.ts +0 -7
  850. package/build/Validation/RuleInterface.d.ts.map +0 -1
  851. package/build/Validation/RuleInterface.js +0 -3
  852. package/build/Validation/RuleInterface.js.map +0 -1
  853. package/build/Validation/Rules/Email.d.ts +0 -4
  854. package/build/Validation/Rules/Email.d.ts.map +0 -1
  855. package/build/Validation/Rules/Email.js +0 -17
  856. package/build/Validation/Rules/Email.js.map +0 -1
  857. package/build/Validation/Rules/FileExtension.d.ts +0 -4
  858. package/build/Validation/Rules/FileExtension.d.ts.map +0 -1
  859. package/build/Validation/Rules/FileExtension.js +0 -19
  860. package/build/Validation/Rules/FileExtension.js.map +0 -1
  861. package/build/Validation/Rules/MaxLength.d.ts +0 -4
  862. package/build/Validation/Rules/MaxLength.d.ts.map +0 -1
  863. package/build/Validation/Rules/MaxLength.js +0 -16
  864. package/build/Validation/Rules/MaxLength.js.map +0 -1
  865. package/build/Validation/Rules/MinLength.d.ts +0 -4
  866. package/build/Validation/Rules/MinLength.d.ts.map +0 -1
  867. package/build/Validation/Rules/MinLength.js +0 -16
  868. package/build/Validation/Rules/MinLength.js.map +0 -1
  869. package/build/Validation/Rules/Optional.d.ts +0 -4
  870. package/build/Validation/Rules/Optional.d.ts.map +0 -1
  871. package/build/Validation/Rules/Optional.js +0 -16
  872. package/build/Validation/Rules/Optional.js.map +0 -1
  873. package/build/Validation/Rules/Required.d.ts +0 -4
  874. package/build/Validation/Rules/Required.d.ts.map +0 -1
  875. package/build/Validation/Rules/Required.js +0 -24
  876. package/build/Validation/Rules/Required.js.map +0 -1
  877. package/build/Validation/Validator.d.ts +0 -12
  878. package/build/Validation/Validator.d.ts.map +0 -1
  879. package/build/Validation/Validator.js +0 -13
  880. package/build/Validation/Validator.js.map +0 -1
  881. package/build/Validation/index.d.ts +0 -11
  882. package/build/Validation/index.d.ts.map +0 -1
  883. package/build/Validation/index.js +0 -27
  884. package/build/Validation/index.js.map +0 -1
  885. package/build/package-lock.json +0 -5764
  886. package/build/package.json +0 -88
@@ -1,16 +0,0 @@
1
- import { MailAddress } from './MailAddress';
2
- import { Mailable } from '@Typetron/Mail/Mailable';
3
- export declare class SentMessage {
4
- readonly from: string | MailAddress;
5
- readonly subject?: string;
6
- readonly body?: string | {
7
- html: string;
8
- text: string;
9
- };
10
- readonly to?: string | MailAddress | (string | MailAddress)[];
11
- readonly replyTo?: string | MailAddress | (string | MailAddress)[];
12
- readonly cc?: string | MailAddress | (string | MailAddress)[];
13
- readonly bcc?: string | MailAddress | (string | MailAddress)[];
14
- constructor(mail: Mailable);
15
- }
16
- //# sourceMappingURL=SentMessage.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SentMessage.d.ts","sourceRoot":"","sources":["../../Mail/SentMessage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAElD,qBAAa,WAAW;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;IACnC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAC,CAAA;IACrD,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAA;IAC7D,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAA;IAClE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAA;IAC7D,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,WAAW,CAAC,EAAE,CAAA;gBAElD,IAAI,EAAE,QAAQ;CAO7B"}
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,8 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,15 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,11 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,106 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,4 +0,0 @@
1
- export * from './Transports/MemoryTransport';
2
- export * from './Mailer';
3
- export * from './Mailable';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,20 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../Mail/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+DAA4C;AAC5C,2CAAwB;AACxB,6CAA0B"}
@@ -1,10 +0,0 @@
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
@@ -1 +0,0 @@
1
- {"version":3,"file":"Model.d.ts","sourceRoot":"","sources":["../../Models/Model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACxC,OAAO,EAAE,UAAU,EAAwC,MAAM,SAAS,CAAA;AAE1E,qBAAa,KAAK;WACD,IAAI,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,EAAE,CAAC;WACxH,IAAI,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,CAAC,CAAC;IACzH,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK,EAAE,MAAM,EAAE,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE;IAC7G,MAAM,CAAC,IAAI,CAAC,CAAC,SAAS,KAAK,EAAE,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,KAAK,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC;IAgBjG,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,CAAC;CAiBpG"}
@@ -1,36 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { 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
@@ -1 +0,0 @@
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,MAAM,CAAC,QAAQ,IAAI,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC,IAAI,CAAC,MAAqB,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,CAAC,IAAI,CAAO,IAAI,CAAC,CAAC,CAAA;QAC/E,CAAC;QACD,MAAM,MAAM,GAA+B,OAAO,CAAC,WAAW,CAAC,wBAAgB,EAAE,IAAI,CAAC,IAAI,EAAE,CAAA;QAE5F,OAAO,IAAI,CAAC,SAAS,CAAO,MAAM,EAAE,MAAW,CAAC,CAAA;IACpD,CAAC;IAES,MAAM,CAAC,SAAS,CAAsB,MAAkC,EAAE,MAAS;QACzF,MAAM,IAAI,GAAyC,IAAI,IAAI,CAAA;QAC3D,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YAClC,IAAI,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC;gBAChD,OAAM;YACV,CAAC;YACD,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,IAAe,CAAC,CAAA;YAC3C,IAAI,KAAK,CAAC,IAAI,YAAY,0BAAkB,IAAI,KAAK,EAAE,CAAC;gBACpD,aAAa;gBACb,MAAM,SAAS,GAAG,KAAK,CAAC,QAAwB,CAAC,CAAC,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,KAAK,CAAA;gBAC3E,IAAI,CAAC,KAAK,CAAC,IAAe,CAAC,GAAG,SAAS,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,SAAS,CAAe,CAAC,CAAC,CAAC,SAAS,CAAA;YACvG,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,KAAK,CAAC,IAAe,CAAC,GAAG,KAAK,CAAA;YACvC,CAAC;QACL,CAAC,CAAC,CAAA;QACF,OAAO,IAAS,CAAA;IACpB,CAAC;CACJ;AArCD,sBAqCC"}
@@ -1,22 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,64 +0,0 @@
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
@@ -1 +0,0 @@
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"}
package/build/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.
@@ -1,5 +0,0 @@
1
- import { Container } from '../Container';
2
- export declare class BaseController {
3
- protected app: Container;
4
- }
5
- //# sourceMappingURL=BaseController.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1,22 +0,0 @@
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
@@ -1 +0,0 @@
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"}
@@ -1,19 +0,0 @@
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
@@ -1 +0,0 @@
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,MAAM,QASrD;AAED,wBAAgB,GAAG,CAAC,IAAI,EAAE,MAAM,IACZ,QAAQ,MAAM,EAAE,QAAQ,MAAM,EAAE,gBAAgB,MAAM,UAGzE;AAED,wBAAgB,GAAG,CAAC,IAAI,SAAK,EAAE,IAAI,SAAK,IAC5B,QAAQ,MAAM,EAAE,QAAQ,MAAM,UAGzC;AAED,wBAAgB,IAAI,CAAC,IAAI,GAAE,MAAW,EAAE,IAAI,SAAK,IACrC,QAAQ,MAAM,EAAE,QAAQ,MAAM,UAGzC;AAED,wBAAgB,GAAG,CAAC,IAAI,GAAE,MAAW,EAAE,IAAI,SAAK,IACpC,QAAQ,MAAM,EAAE,QAAQ,MAAM,UAGzC;AAED,wBAAgB,KAAK,CAAC,IAAI,GAAE,MAAW,EAAE,IAAI,SAAK,IACtC,QAAQ,MAAM,EAAE,QAAQ,MAAM,UAGzC;AAED,wBAAgB,MAAM,CAAC,IAAI,GAAE,MAAW,EAAE,IAAI,SAAK,IACvC,QAAQ,MAAM,EAAE,QAAQ,MAAM,UAGzC;AAED,wBAAgB,UAAU,CAAC,GAAG,UAAU,EAAE,QAAQ,CAAC,gBAAgB,CAAC,EAAE,IAC1D,QAAQ,MAAM,EAAE,SAAS,MAAM,UAiB1C;AAED,wBAAgB,OAAO,CAAC,GAAG,MAAM,EAAE,IAAI,CAAC,KAAK,CAAC,EAAE,IAC5B,QAAQ,MAAM,EAAE,QAAQ,MAAM,UAiBjD;AAED,wBAAgB,KAAK,CAAC,IAAI,EAAE,MAAM,IACd,QAAQ,MAAM,EAAE,QAAQ,MAAM,EAAE,gBAAgB,MAAM,UAkBzE;AAED,wBAAgB,IAAI,KACA,QAAQ,MAAM,EAAE,QAAQ,MAAM,EAAE,gBAAgB,MAAM,UAiBzE"}