axe-api 0.21.0 → 0.30.0-rc1

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 (151) hide show
  1. package/build/dev-kit/app/Config/Application.d.ts +3 -0
  2. package/build/dev-kit/app/Config/Application.js +14 -0
  3. package/build/dev-kit/app/Config/Database.d.ts +3 -0
  4. package/build/dev-kit/app/Config/Database.js +24 -0
  5. package/build/dev-kit/app/Events/UserEvent.d.ts +3 -0
  6. package/build/dev-kit/app/Events/UserEvent.js +16 -0
  7. package/build/dev-kit/app/Hooks/CustomerHook.d.ts +3 -0
  8. package/build/dev-kit/app/Hooks/CustomerHook.js +16 -0
  9. package/build/dev-kit/app/Hooks/EmployeeHook.d.ts +2 -0
  10. package/build/dev-kit/app/Hooks/EmployeeHook.js +16 -0
  11. package/build/dev-kit/app/Hooks/UserHook.d.ts +3 -0
  12. package/build/dev-kit/app/Hooks/UserHook.js +17 -0
  13. package/build/dev-kit/app/Models/Customer.d.ts +7 -0
  14. package/build/dev-kit/app/Models/Customer.js +15 -0
  15. package/build/dev-kit/app/Models/Employee.d.ts +9 -0
  16. package/build/dev-kit/app/Models/Employee.js +21 -0
  17. package/build/dev-kit/app/Models/EmployeeAddress.d.ts +8 -0
  18. package/build/dev-kit/app/Models/EmployeeAddress.js +18 -0
  19. package/build/dev-kit/app/Models/Post.d.ts +6 -0
  20. package/build/dev-kit/app/Models/Post.js +14 -0
  21. package/build/dev-kit/app/Models/User.d.ts +7 -0
  22. package/build/dev-kit/app/Models/User.js +23 -0
  23. package/build/dev-kit/app/Serialization/UserSerialization.d.ts +3 -0
  24. package/build/dev-kit/app/Serialization/UserSerialization.js +6 -0
  25. package/build/dev-kit/app/config.d.ts +3 -0
  26. package/build/dev-kit/app/config.js +31 -0
  27. package/build/dev-kit/app/init.d.ts +4 -0
  28. package/build/dev-kit/app/init.js +16 -0
  29. package/build/dev-kit/app/v1/Events/UserEvent.d.ts +3 -0
  30. package/build/dev-kit/app/v1/Events/UserEvent.js +16 -0
  31. package/build/dev-kit/app/v1/Hooks/CustomerHook.d.ts +3 -0
  32. package/build/dev-kit/app/v1/Hooks/CustomerHook.js +16 -0
  33. package/build/dev-kit/app/v1/Hooks/EmployeeHook.d.ts +2 -0
  34. package/build/dev-kit/app/v1/Hooks/EmployeeHook.js +16 -0
  35. package/build/dev-kit/app/v1/Hooks/UserHook.d.ts +3 -0
  36. package/build/dev-kit/app/v1/Hooks/UserHook.js +17 -0
  37. package/build/dev-kit/app/v1/Models/Customer.d.ts +7 -0
  38. package/build/dev-kit/app/v1/Models/Customer.js +15 -0
  39. package/build/dev-kit/app/v1/Models/Employee.d.ts +9 -0
  40. package/build/dev-kit/app/v1/Models/Employee.js +21 -0
  41. package/build/dev-kit/app/v1/Models/EmployeeAddress.d.ts +8 -0
  42. package/build/dev-kit/app/v1/Models/EmployeeAddress.js +18 -0
  43. package/build/dev-kit/app/v1/Models/Post.d.ts +6 -0
  44. package/build/dev-kit/app/v1/Models/Post.js +14 -0
  45. package/build/dev-kit/app/v1/Models/User.d.ts +7 -0
  46. package/build/dev-kit/app/v1/Models/User.js +23 -0
  47. package/build/dev-kit/app/v1/Serialization/PostSerialization.d.ts +3 -0
  48. package/build/dev-kit/app/v1/Serialization/PostSerialization.js +6 -0
  49. package/build/dev-kit/app/v1/Serialization/UserSerialization.d.ts +3 -0
  50. package/build/dev-kit/app/v1/Serialization/UserSerialization.js +5 -0
  51. package/build/dev-kit/app/v1/config.d.ts +3 -0
  52. package/build/dev-kit/app/v1/config.js +19 -0
  53. package/build/dev-kit/app/v1/init.d.ts +4 -0
  54. package/build/dev-kit/app/v1/init.js +16 -0
  55. package/build/dev-kit/app/v2/Events/UserEvent.d.ts +3 -0
  56. package/build/dev-kit/app/v2/Events/UserEvent.js +16 -0
  57. package/build/dev-kit/app/v2/Hooks/CustomerHook.d.ts +3 -0
  58. package/build/dev-kit/app/v2/Hooks/CustomerHook.js +16 -0
  59. package/build/dev-kit/app/v2/Hooks/EmployeeHook.d.ts +2 -0
  60. package/build/dev-kit/app/v2/Hooks/EmployeeHook.js +16 -0
  61. package/build/dev-kit/app/v2/Hooks/UserHook.d.ts +3 -0
  62. package/build/dev-kit/app/v2/Hooks/UserHook.js +17 -0
  63. package/build/dev-kit/app/v2/Models/Customer.d.ts +10 -0
  64. package/build/dev-kit/app/v2/Models/Customer.js +20 -0
  65. package/build/dev-kit/app/v2/Models/Employee.d.ts +9 -0
  66. package/build/dev-kit/app/v2/Models/Employee.js +21 -0
  67. package/build/dev-kit/app/v2/Models/EmployeeAddress.d.ts +8 -0
  68. package/build/dev-kit/app/v2/Models/EmployeeAddress.js +18 -0
  69. package/build/dev-kit/app/v2/Models/Post.d.ts +6 -0
  70. package/build/dev-kit/app/v2/Models/Post.js +14 -0
  71. package/build/dev-kit/app/v2/Models/User.d.ts +7 -0
  72. package/build/dev-kit/app/v2/Models/User.js +23 -0
  73. package/build/dev-kit/app/v2/Serialization/UserSerialization.d.ts +3 -0
  74. package/build/dev-kit/app/v2/Serialization/UserSerialization.js +5 -0
  75. package/build/dev-kit/app/v2/config.d.ts +3 -0
  76. package/build/dev-kit/app/v2/config.js +9 -0
  77. package/build/dev-kit/app/v2/init.d.ts +4 -0
  78. package/build/dev-kit/app/v2/init.js +16 -0
  79. package/build/dev-kit/app/v3/config.d.ts +3 -0
  80. package/build/dev-kit/app/v3/config.js +9 -0
  81. package/build/dev-kit/config.d.ts +3 -0
  82. package/build/dev-kit/config.js +31 -0
  83. package/build/dev-kit.d.ts +1 -0
  84. package/build/dev-kit.js +16 -0
  85. package/build/package.json +67 -0
  86. package/build/src/Builders/ModelTreeBuilder.d.ts +3 -0
  87. package/build/src/Builders/ModelTreeBuilder.js +21 -17
  88. package/build/src/Builders/RouterBuilder.d.ts +3 -0
  89. package/build/src/Builders/RouterBuilder.js +31 -26
  90. package/build/src/Enums.d.ts +13 -0
  91. package/build/src/Enums.js +15 -1
  92. package/build/src/Exceptions/AxeError.d.ts +8 -0
  93. package/build/src/Exceptions/AxeError.js +11 -0
  94. package/build/src/Handlers/AllHandler.js +6 -5
  95. package/build/src/Handlers/DestroyHandler.js +11 -1
  96. package/build/src/Handlers/DocsHandler.d.ts +3 -0
  97. package/build/src/Handlers/DocsHandler.js +22 -0
  98. package/build/src/Handlers/ForceDestroyHandler.d.ts +3 -0
  99. package/build/src/Handlers/ForceDestroyHandler.js +41 -0
  100. package/build/src/Handlers/HandlerFactory.d.ts +1 -1
  101. package/build/src/Handlers/HandlerFactory.js +4 -1
  102. package/build/src/Handlers/Helpers.d.ts +5 -3
  103. package/build/src/Handlers/Helpers.js +24 -14
  104. package/build/src/Handlers/PaginateHandler.js +6 -5
  105. package/build/src/Handlers/PatchHandler.js +4 -2
  106. package/build/src/Handlers/RoutesHandler.d.ts +3 -0
  107. package/build/src/Handlers/RoutesHandler.js +16 -0
  108. package/build/src/Handlers/ShowHandler.js +6 -5
  109. package/build/src/Handlers/StoreHandler.js +2 -2
  110. package/build/src/Handlers/UpdateHandler.js +4 -2
  111. package/build/src/Helpers.d.ts +4 -0
  112. package/build/src/Helpers.js +78 -0
  113. package/build/src/Interfaces.d.ts +36 -11
  114. package/build/src/Middlewares/acceptLanguageMiddleware.js +3 -5
  115. package/build/src/Model.d.ts +1 -1
  116. package/build/src/Model.js +3 -4
  117. package/build/src/Resolvers/FolderResolver.js +1 -0
  118. package/build/src/Resolvers/GeneralHookResolver.d.ts +4 -2
  119. package/build/src/Resolvers/GeneralHookResolver.js +5 -8
  120. package/build/src/Resolvers/ModelResolver.d.ts +4 -0
  121. package/build/src/Resolvers/ModelResolver.js +26 -8
  122. package/build/src/Resolvers/TransactionResolver.d.ts +4 -2
  123. package/build/src/Resolvers/TransactionResolver.js +5 -4
  124. package/build/src/Resolvers/VersionConfigResolver.d.ts +7 -0
  125. package/build/src/Resolvers/VersionConfigResolver.js +58 -0
  126. package/build/src/Resolvers/VersionResolver.d.ts +7 -0
  127. package/build/src/Resolvers/VersionResolver.js +65 -0
  128. package/build/src/Resolvers/index.d.ts +3 -2
  129. package/build/src/Resolvers/index.js +5 -3
  130. package/build/src/Server.d.ts +3 -2
  131. package/build/src/Server.js +73 -46
  132. package/build/src/Services/APIService.d.ts +16 -0
  133. package/build/src/Services/APIService.js +79 -0
  134. package/build/src/Services/DocumentationService.d.ts +3 -1
  135. package/build/src/Services/DocumentationService.js +6 -0
  136. package/build/src/Services/LogService.d.ts +4 -1
  137. package/build/src/Services/LogService.js +6 -0
  138. package/build/src/Services/ModelService.d.ts +3 -0
  139. package/build/src/Services/ModelService.js +4 -0
  140. package/build/src/Services/QueryService.js +3 -0
  141. package/build/src/Services/SchemaValidatorService.d.ts +3 -0
  142. package/build/src/Services/SchemaValidatorService.js +15 -8
  143. package/build/src/Services/index.d.ts +2 -1
  144. package/build/src/Services/index.js +3 -1
  145. package/build/src/Types.d.ts +2 -0
  146. package/build/src/Types.js +2 -0
  147. package/build/src/constants.d.ts +1 -0
  148. package/build/src/constants.js +2 -1
  149. package/package.json +2 -1
  150. package/readme.md +0 -24
  151. package/CHANGELOG.md +0 -202
package/CHANGELOG.md DELETED
@@ -1,202 +0,0 @@
1
- # Release Notes
2
-
3
- ## [0.21.0 (2022-12-28)](https://github.com/axe-api/axe-api/compare/0.21.0...0.20.4)
4
-
5
- ### Features
6
-
7
- - Added `i18n` support. [#44](https://github.com/axe-api/axe-api/issues/44)
8
-
9
- ## [0.20.4 (2022-12-24)](https://github.com/axe-api/axe-api/compare/0.20.4...0.20.3)
10
-
11
- ### Fixed
12
-
13
- - Fixed [#124](https://github.com/axe-api/axe-api/issues/124)
14
- - Throwing errors in the `development` environment has been fixed.
15
- - Unbuilt integration test issue has been fixed.
16
-
17
- ## [0.20.3 (2022-12-24)](https://github.com/axe-api/axe-api/compare/0.20.3...0.20.0)
18
-
19
- ### Fixed
20
-
21
- - NPM publish bugs
22
-
23
- ## [0.20.0 (2022-12-24)](https://github.com/axe-api/axe-api/compare/0.20.0...0.19.2)
24
-
25
- In the whole application, TypeScript becomes the new language except for migration files and it's structure. You can read the documentation about how to migrate from `0.19.2` to `0.20.0`.
26
-
27
- ### Breaking Changes
28
-
29
- #### Naming Changes
30
-
31
- - File extensions: `User.js` to `User.ts`
32
- - `LOG_LEVELS` constant variable has been changed with `LogLevels` enum.
33
- - `HANDLERS` constant variable has been changed with `HandlerTypes` enum.
34
- - `IoC` service has been renamed as `IoCService`.
35
- - Hooks and Event files' names should be singular;
36
- - `UserHooks.js` => `UserHook.ts`
37
- - `UserEvents.js` => `UserEvent.ts`
38
-
39
- #### Interface Changes
40
-
41
- - `validations()` getter should return `IMethodBaseValidations` interface.
42
- - In hook functions, `IHookParameter` interface should be used as the parameter type.
43
- - Init functions (`onBeforeInit`, `onAfterInit`) should be use the `Express` type;
44
- - `const onBeforeInit = async ({ app }) => {` => `const onBeforeInit = async (app: Express) => {`
45
- - `const onAfterInit = async ({ app }) => {` => `const onAfterInit = async (app: Express) => {`
46
- - Application config should be implemented `IApplicationConfig` interface.
47
-
48
- #### Implementation Changes
49
-
50
- - Starting server part has been changed;
51
- - `const server = new Server(appFolder)` => `const server = new Server()`
52
- - `server.listen()` => `server.start(__dirname);`
53
- - `knexfile.js` should not use the `app/Application/Config.js` anymore.
54
-
55
- ## [0.19.2 (2022-01-22)](https://github.com/axe-api/axe-api/compare/0.19.2...0.19.1)
56
-
57
- ### Fixed
58
-
59
- - Fixed the calling `onBeforePaginate` and `onBeforeShow` hooks bug.
60
-
61
- ## [0.19.1 (2022-01-22)](https://github.com/axe-api/axe-api/compare/0.19.1...0.19.0)
62
-
63
- ### Fixed
64
-
65
- - knex.js version update.
66
-
67
- ## [0.19.0 (2021-12-05)](https://github.com/axe-api/axe-api/compare/0.19.0...0.18.1)
68
-
69
- ### Fixed
70
-
71
- - [#110](https://github.com/axe-api/axe-api/issues/110)
72
-
73
- ### Enhancements
74
-
75
- - [#106](https://github.com/axe-api/axe-api/issues/106)
76
-
77
- ## [0.18.1 (2021-12-02)](https://github.com/axe-api/axe-api/compare/0.18.1...0.18.0)
78
-
79
- ### Fixed
80
-
81
- - [#117](https://github.com/axe-api/axe-api/issues/117)
82
-
83
- ## [0.18.0 (2021-11-30)](https://github.com/axe-api/axe-api/compare/0.18.0...0.17.5)
84
-
85
- ### Fixed
86
-
87
- - [#115](https://github.com/axe-api/axe-api/issues/115)
88
- - [#114](https://github.com/axe-api/axe-api/issues/114)
89
-
90
- ### Enhancements
91
-
92
- - [#113](https://github.com/axe-api/axe-api/issues/113)
93
- - [#107](https://github.com/axe-api/axe-api/issues/107)
94
- - [#108](https://github.com/axe-api/axe-api/issues/108)
95
-
96
- ## [0.17.5 (2021-11-27)](https://github.com/axe-api/axe-api/compare/0.17.5...0.17.4)
97
-
98
- ### Fixed
99
-
100
- - [#111](https://github.com/axe-api/axe-api/issues/111)
101
-
102
- ## [0.17.4 (2021-10-28)](https://github.com/axe-api/axe-api/compare/0.17.4...0.17.3)
103
-
104
- ### Fixed
105
-
106
- - [#97](https://github.com/axe-api/axe-api/issues/97)
107
- - [#104](https://github.com/axe-api/axe-api/issues/104)
108
-
109
- ## [0.17.3 (2021-10-28)](https://github.com/axe-api/axe-api/compare/0.17.3...0.17.2)
110
-
111
- ### Fixed
112
-
113
- - [#98](https://github.com/axe-api/axe-api/issues/98)
114
-
115
- ## [0.17.2 (2021-10-17)](https://github.com/axe-api/axe-api/compare/0.17.2...0.17.1)
116
-
117
- ### Fixed
118
-
119
- - Fixed table join on the related table filter.
120
-
121
- ## [0.17.1 (2021-10-17)](https://github.com/axe-api/axe-api/compare/0.17.1...0.17.0)
122
-
123
- ### Fixed
124
-
125
- - Query bug on child models [#93](https://github.com/axe-api/axe-api/issues/93)
126
-
127
- ## [0.17.0 (2021-10-17)](https://github.com/axe-api/axe-api/compare/0.17.0...0.16.0)
128
-
129
- ### Fixed
130
-
131
- - Related query column name check bug has been fixed.
132
-
133
- ### Features
134
-
135
- - Global serializer for HTTP results [#37](https://github.com/axe-api/axe-api/issues/37)
136
-
137
- ## [0.16.0 (2021-10-06)](https://github.com/axe-api/axe-api/compare/0.16.0...0.15.0)
138
-
139
- ### Features
140
-
141
- - Fixes [#89](https://github.com/axe-api/axe-api/issues/89)
142
-
143
- ## [0.15.0 (2021-10-03)](https://github.com/axe-api/axe-api/compare/0.15.0...0.14.1)
144
-
145
- ### Features
146
-
147
- - Fixes [#87](https://github.com/axe-api/axe-api/issues/87)
148
-
149
- ## [0.14.1 (2021-09-20)](https://github.com/axe-api/axe-api/compare/0.14.1...0.14.0)
150
-
151
- ### Fixed
152
-
153
- - Fixes [#83](https://github.com/axe-api/axe-api/issues/83)
154
-
155
- ## [0.14.0 (2021-09-15)](https://github.com/axe-api/axe-api/compare/0.14.0...0.13.3)
156
-
157
- ### Features
158
-
159
- - General hooks definition feature has been added. ([#81](https://github.com/axe-api/axe-api/issues/81))
160
-
161
- ## [0.13.3 (2021-09-15)](https://github.com/axe-api/axe-api/compare/0.13.2...0.13.3)
162
-
163
- ### Fixed
164
-
165
- - Fixed CORS bugs.
166
-
167
- ## [0.13.2 (2021-08-20)](https://github.com/axe-api/axe-api/compare/0.13.1...0.13.2)
168
-
169
- ### Fixed
170
-
171
- - Fixes [#27](https://github.com/axe-api/axe-api/issues/27)
172
- - Fixes [#29](https://github.com/axe-api/axe-api/issues/29)
173
- - Fixes [#75](https://github.com/axe-api/axe-api/issues/75)
174
- - Fixes [#78](https://github.com/axe-api/axe-api/issues/78)
175
-
176
- ## [0.13.1 (2021-08-09)](https://github.com/axe-api/axe-api/compare/0.13.0...0.13.1)
177
-
178
- ### Fixed
179
-
180
- - Fixes [#69](https://github.com/axe-api/axe-api/issues/69)
181
- - Fixes [#70](https://github.com/axe-api/axe-api/issues/70)
182
- - Fixes [#71](https://github.com/axe-api/axe-api/issues/71)
183
- - Fixes [#72](https://github.com/axe-api/axe-api/issues/72)
184
-
185
- ## [0.13.0 (2021-07-25)](https://github.com/axe-api/axe-api/compare/0.12.2...0.13.0)
186
-
187
- ### Features
188
-
189
- - PostgreSQL database analyzer and integration tests have been added.
190
-
191
- ## [0.12.2 (2021-07-24)](https://github.com/axe-api/axe-api/compare/0.12.1...0.12.2)
192
-
193
- ### Fixed
194
-
195
- - Throwing an error if the primary key column isn't in the database table bug has been fixed. (#61)[https://github.com/axe-api/axe-api/issues/61]
196
- - Using numeric column name bug has been fixed. (#24)[https://github.com/axe-api/axe-api/issues/24]
197
-
198
- ## [0.12.1 (2021-07-24)](https://github.com/axe-api/axe-api/compare/0.12.0...0.12.1)
199
-
200
- ### Fixed
201
-
202
- - Fixed security issues.