@breautek/storm 3.3.0 → 4.0.0

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 (303) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/docs/README.md +153 -62
  3. package/docs/classes/{Application.Application-1.md → Application.md} +110 -112
  4. package/docs/classes/{BackendAuthenticationMiddleware.BackendAuthenticationMiddleware-1.md → BackendAuthenticationMiddleware.md} +6 -8
  5. package/docs/classes/CORSMiddleware.md +143 -0
  6. package/docs/classes/{ConfigLoader.ConfigLoader-1.md → ConfigLoader.md} +5 -7
  7. package/docs/classes/{Database.Database-1.md → Database.md} +30 -32
  8. package/docs/classes/{DatabaseConnection.DatabaseConnection-1.md → DatabaseConnection.md} +57 -59
  9. package/docs/classes/DatabaseQueryError.md +307 -0
  10. package/docs/classes/DiskSpaceError.md +301 -0
  11. package/docs/classes/DropTemporaryTableQuery.md +201 -0
  12. package/docs/classes/DumpStream.md +23 -0
  13. package/docs/classes/DuplicateEntryError.md +303 -0
  14. package/docs/classes/EntityNotFoundError.md +301 -0
  15. package/docs/classes/ExpiredTokenError.md +301 -0
  16. package/docs/classes/Handler.md +323 -0
  17. package/docs/classes/InternalError.md +301 -0
  18. package/docs/classes/InvalidCredentialsError.md +301 -0
  19. package/docs/classes/InvalidValueError.md +309 -0
  20. package/docs/classes/ManagedDatabaseConnection.md +397 -0
  21. package/docs/classes/Middleware.md +72 -0
  22. package/docs/classes/MissingConfigError.md +301 -0
  23. package/docs/classes/MissingParameterError.md +301 -0
  24. package/docs/classes/{MySQLConnection.MySQLConnection-1.md → MySQLConnection.md} +63 -65
  25. package/docs/classes/MySQLDatabase.md +314 -0
  26. package/docs/classes/{Query.Query-1.md → Query.md} +38 -32
  27. package/docs/classes/{RawQuery.RawQuery-1.md → RawQuery.md} +36 -32
  28. package/docs/classes/Request.md +321 -0
  29. package/docs/classes/Response.md +242 -0
  30. package/docs/classes/{ResponseData.ResponseData-1.md → ResponseData.md} +18 -20
  31. package/docs/classes/{ServiceProvider.ServiceProvider-1.md → ServiceProvider.md} +52 -54
  32. package/docs/classes/{ServiceResponse.ServiceResponse-1.md → ServiceResponse.md} +9 -11
  33. package/docs/classes/SetSessionVariableQuery.md +201 -0
  34. package/docs/classes/StormError.md +307 -0
  35. package/docs/classes/TemporaryTableQuery.md +207 -0
  36. package/docs/classes/{Token.Token-1.md → Token.md} +5 -7
  37. package/docs/classes/{TokenManager.TokenManager-1.md → TokenManager.md} +16 -18
  38. package/docs/classes/UnauthorizedAccessError.md +301 -0
  39. package/docs/enums/ErrorCode.md +107 -0
  40. package/docs/enums/ExitCode.md +30 -0
  41. package/docs/enums/HTTPMethod.md +52 -0
  42. package/docs/enums/JWTError.md +30 -0
  43. package/docs/enums/StatusCode.md +536 -0
  44. package/docs/interfaces/IAdditionalErrorDetails.md +7 -0
  45. package/docs/interfaces/{IAuthTokenData.IAuthTokenData-1.md → IAuthTokenData.md} +4 -6
  46. package/docs/interfaces/IConfig.md +112 -0
  47. package/docs/interfaces/{IDatabaseConfig.IDatabaseConfig-1.md → IDatabaseConfig.md} +13 -15
  48. package/docs/interfaces/{IDatabaseConnection.IDatabaseConnection-1.md → IDatabaseConnection.md} +33 -35
  49. package/docs/interfaces/IErrorResponse.md +52 -0
  50. package/docs/interfaces/IFormData.md +30 -0
  51. package/docs/interfaces/{IHandler.IHandler-1.md → IHandler.md} +4 -6
  52. package/docs/interfaces/IInsertQueryResult.md +41 -0
  53. package/docs/interfaces/IJWTVerifyOptions.md +19 -0
  54. package/docs/interfaces/IParameterMap.md +7 -0
  55. package/docs/interfaces/IRequestResponse.md +37 -0
  56. package/docs/interfaces/IServiceHeaders.md +7 -0
  57. package/docs/interfaces/ISetSessionVariableQueryInput.md +30 -0
  58. package/docs/interfaces/ITemporaryTableQueryInput.md +30 -0
  59. package/docs/interfaces/IUpdateQueryResult.md +30 -0
  60. package/docs/interfaces/{api.formidable.EmitData.md → formidable.EmitData.md} +7 -7
  61. package/docs/interfaces/{api.formidable.EventData.md → formidable.EventData.md} +10 -10
  62. package/docs/interfaces/formidable.Fields.md +9 -0
  63. package/docs/interfaces/{api.formidable.File.md → formidable.File.md} +12 -12
  64. package/docs/interfaces/{api.formidable.FileJSON.md → formidable.FileJSON.md} +12 -12
  65. package/docs/interfaces/formidable.Files.md +9 -0
  66. package/docs/interfaces/{api.formidable.Options.md → formidable.Options.md} +17 -15
  67. package/docs/interfaces/{api.formidable.Part.md → formidable.Part.md} +41 -41
  68. package/docs/modules/{api.formidable.md → formidable.md} +23 -25
  69. package/lib/Application.js +1 -1
  70. package/lib/Application.js.map +1 -1
  71. package/lib/BackendAuthenticationMiddleware.js +2 -2
  72. package/lib/BackendAuthenticationMiddleware.js.map +1 -1
  73. package/lib/CORSMiddleware.js +1 -1
  74. package/lib/CORSMiddleware.js.map +1 -1
  75. package/lib/ConfigLoader.js +1 -1
  76. package/lib/ConfigLoader.js.map +1 -1
  77. package/lib/Database.js +1 -1
  78. package/lib/Database.js.map +1 -1
  79. package/lib/DatabaseConnection.js +4 -4
  80. package/lib/DatabaseConnection.js.map +1 -1
  81. package/lib/Handler.js +2 -2
  82. package/lib/Handler.js.map +1 -1
  83. package/lib/ManagedDatabaseConnection.js +4 -4
  84. package/lib/ManagedDatabaseConnection.js.map +1 -1
  85. package/lib/MySQLConnection.js +7 -7
  86. package/lib/MySQLConnection.js.map +1 -1
  87. package/lib/MySQLDatabase.js +4 -4
  88. package/lib/MySQLDatabase.js.map +1 -1
  89. package/lib/Query.d.ts +2 -2
  90. package/lib/Query.js +2 -2
  91. package/lib/Query.js.map +1 -1
  92. package/lib/Request.js +2 -2
  93. package/lib/Request.js.map +1 -1
  94. package/lib/Response.js +1 -1
  95. package/lib/Response.js.map +1 -1
  96. package/lib/SetSessionVariableQuery.d.ts +10 -0
  97. package/lib/SetSessionVariableQuery.js +20 -0
  98. package/lib/SetSessionVariableQuery.js.map +1 -0
  99. package/lib/StormError.js +1 -1
  100. package/lib/StormError.js.map +1 -1
  101. package/lib/TemporaryTableQuery.d.ts +2 -1
  102. package/lib/TemporaryTableQuery.js +2 -2
  103. package/lib/TemporaryTableQuery.js.map +1 -1
  104. package/lib/TokenManager.js +1 -1
  105. package/lib/TokenManager.js.map +1 -1
  106. package/lib/api.d.ts +1 -0
  107. package/lib/api.js +3 -1
  108. package/lib/api.js.map +1 -1
  109. package/package.json +20 -20
  110. package/src/DatabaseConnection.ts +2 -2
  111. package/src/Query.ts +3 -3
  112. package/src/SetSessionVariableQuery.ts +29 -0
  113. package/src/TemporaryTableQuery.ts +3 -2
  114. package/src/api.ts +1 -0
  115. package/.nyc_output/01d7f3ed-ada5-4fbf-bf72-17458de5eda1.json +0 -1
  116. package/.nyc_output/07a372ea-5f20-411a-8f9b-5cfd38c9f7cf.json +0 -1
  117. package/.nyc_output/1a03fe29-15f4-4d36-a6f1-061f95c919d2.json +0 -1
  118. package/.nyc_output/1be973a3-2986-4e51-9bef-ffa834a81029.json +0 -1
  119. package/.nyc_output/1fa3f196-6284-4422-b186-8fb97ac299b1.json +0 -1
  120. package/.nyc_output/21b4136c-a3f4-465a-ab85-cdfa70dda252.json +0 -1
  121. package/.nyc_output/279ce3fa-118b-4b21-bbd4-a0dbabb3cf28.json +0 -1
  122. package/.nyc_output/370daf16-8792-4296-a491-4b0ff8c5c03d.json +0 -1
  123. package/.nyc_output/44cabfc1-f759-4ff5-9502-0967bba28c3b.json +0 -1
  124. package/.nyc_output/52cc8740-cb58-4b4e-b952-bedee8b2a4b9.json +0 -1
  125. package/.nyc_output/5359ad53-153e-4a68-9158-095880ce3682.json +0 -1
  126. package/.nyc_output/54476a59-73ed-43c2-b90f-46bad1fd2b24.json +0 -1
  127. package/.nyc_output/5e815b47-2082-47aa-8d02-548d8f0175a6.json +0 -1
  128. package/.nyc_output/6300a22c-16ee-4f46-a5bc-ac392153ef39.json +0 -1
  129. package/.nyc_output/6331ec83-1ccd-4980-8cdb-55f87f01b6a0.json +0 -1
  130. package/.nyc_output/6a819ad4-b691-45b3-b693-98f812bd3249.json +0 -1
  131. package/.nyc_output/77e0e45c-5d9f-4848-96a1-cc36e5373078.json +0 -1
  132. package/.nyc_output/790a50c9-e677-48ed-9d87-3ca0d173f7b0.json +0 -1
  133. package/.nyc_output/7dad65fb-92f5-4d0a-a576-e071c1ab73e5.json +0 -1
  134. package/.nyc_output/7ee3638f-2a2d-4d5a-9970-254a86884c40.json +0 -1
  135. package/.nyc_output/883b8a83-3a1e-4153-a987-3a2f5455a627.json +0 -1
  136. package/.nyc_output/8dc3a0b6-b04e-45f5-85ec-99efabb63499.json +0 -1
  137. package/.nyc_output/8e03b522-9fef-4fae-82c0-f51611fab55a.json +0 -1
  138. package/.nyc_output/946bad92-6c4b-4ac1-b508-83983322629c.json +0 -1
  139. package/.nyc_output/95d30443-c776-4f68-ab14-34ecdccdaee4.json +0 -1
  140. package/.nyc_output/abc21188-b3dc-4cce-bc20-f0680a4dde62.json +0 -1
  141. package/.nyc_output/ac7ebac2-d226-41f9-b271-25b0ad449de0.json +0 -1
  142. package/.nyc_output/ae1048af-74db-41a3-b4d7-e511f60259ef.json +0 -1
  143. package/.nyc_output/b121ce1e-5d6b-4b6d-93a7-21b315098afc.json +0 -1
  144. package/.nyc_output/bb6d14e4-2e75-45bd-a1f0-67c21781bcf6.json +0 -1
  145. package/.nyc_output/c5d84f76-682f-429c-9b0d-241c81a72907.json +0 -1
  146. package/.nyc_output/d14c616f-ca9b-402d-879d-c7e91ecc6b89.json +0 -1
  147. package/.nyc_output/d3096a06-29ef-4de7-b565-b7b1ca58471a.json +0 -1
  148. package/.nyc_output/d6313ced-0715-41aa-a0bb-22eeae3cccc1.json +0 -1
  149. package/.nyc_output/e7143b16-9cb3-4900-9498-05c40f90af46.json +0 -1
  150. package/.nyc_output/eb21b824-fc88-4f0c-9e72-bd691a141b75.json +0 -1
  151. package/.nyc_output/ee09e08d-c0f5-4fba-9fa1-849b0f32f347.json +0 -1
  152. package/.nyc_output/ee8b9792-e4fc-4950-8532-733858a2a7f2.json +0 -1
  153. package/.nyc_output/f4344c1d-e947-4c51-abe0-e3600b4e721d.json +0 -1
  154. package/.nyc_output/f7d0a4d2-62db-494d-bb67-78e3f93ae05b.json +0 -1
  155. package/.nyc_output/processinfo/01d7f3ed-ada5-4fbf-bf72-17458de5eda1.json +0 -1
  156. package/.nyc_output/processinfo/07a372ea-5f20-411a-8f9b-5cfd38c9f7cf.json +0 -1
  157. package/.nyc_output/processinfo/1a03fe29-15f4-4d36-a6f1-061f95c919d2.json +0 -1
  158. package/.nyc_output/processinfo/1be973a3-2986-4e51-9bef-ffa834a81029.json +0 -1
  159. package/.nyc_output/processinfo/1fa3f196-6284-4422-b186-8fb97ac299b1.json +0 -1
  160. package/.nyc_output/processinfo/21b4136c-a3f4-465a-ab85-cdfa70dda252.json +0 -1
  161. package/.nyc_output/processinfo/279ce3fa-118b-4b21-bbd4-a0dbabb3cf28.json +0 -1
  162. package/.nyc_output/processinfo/370daf16-8792-4296-a491-4b0ff8c5c03d.json +0 -1
  163. package/.nyc_output/processinfo/44cabfc1-f759-4ff5-9502-0967bba28c3b.json +0 -1
  164. package/.nyc_output/processinfo/52cc8740-cb58-4b4e-b952-bedee8b2a4b9.json +0 -1
  165. package/.nyc_output/processinfo/5359ad53-153e-4a68-9158-095880ce3682.json +0 -1
  166. package/.nyc_output/processinfo/54476a59-73ed-43c2-b90f-46bad1fd2b24.json +0 -1
  167. package/.nyc_output/processinfo/5e815b47-2082-47aa-8d02-548d8f0175a6.json +0 -1
  168. package/.nyc_output/processinfo/6300a22c-16ee-4f46-a5bc-ac392153ef39.json +0 -1
  169. package/.nyc_output/processinfo/6331ec83-1ccd-4980-8cdb-55f87f01b6a0.json +0 -1
  170. package/.nyc_output/processinfo/6a819ad4-b691-45b3-b693-98f812bd3249.json +0 -1
  171. package/.nyc_output/processinfo/77e0e45c-5d9f-4848-96a1-cc36e5373078.json +0 -1
  172. package/.nyc_output/processinfo/790a50c9-e677-48ed-9d87-3ca0d173f7b0.json +0 -1
  173. package/.nyc_output/processinfo/7dad65fb-92f5-4d0a-a576-e071c1ab73e5.json +0 -1
  174. package/.nyc_output/processinfo/7ee3638f-2a2d-4d5a-9970-254a86884c40.json +0 -1
  175. package/.nyc_output/processinfo/883b8a83-3a1e-4153-a987-3a2f5455a627.json +0 -1
  176. package/.nyc_output/processinfo/8dc3a0b6-b04e-45f5-85ec-99efabb63499.json +0 -1
  177. package/.nyc_output/processinfo/8e03b522-9fef-4fae-82c0-f51611fab55a.json +0 -1
  178. package/.nyc_output/processinfo/946bad92-6c4b-4ac1-b508-83983322629c.json +0 -1
  179. package/.nyc_output/processinfo/95d30443-c776-4f68-ab14-34ecdccdaee4.json +0 -1
  180. package/.nyc_output/processinfo/abc21188-b3dc-4cce-bc20-f0680a4dde62.json +0 -1
  181. package/.nyc_output/processinfo/ac7ebac2-d226-41f9-b271-25b0ad449de0.json +0 -1
  182. package/.nyc_output/processinfo/ae1048af-74db-41a3-b4d7-e511f60259ef.json +0 -1
  183. package/.nyc_output/processinfo/b121ce1e-5d6b-4b6d-93a7-21b315098afc.json +0 -1
  184. package/.nyc_output/processinfo/bb6d14e4-2e75-45bd-a1f0-67c21781bcf6.json +0 -1
  185. package/.nyc_output/processinfo/c5d84f76-682f-429c-9b0d-241c81a72907.json +0 -1
  186. package/.nyc_output/processinfo/d14c616f-ca9b-402d-879d-c7e91ecc6b89.json +0 -1
  187. package/.nyc_output/processinfo/d3096a06-29ef-4de7-b565-b7b1ca58471a.json +0 -1
  188. package/.nyc_output/processinfo/d6313ced-0715-41aa-a0bb-22eeae3cccc1.json +0 -1
  189. package/.nyc_output/processinfo/e7143b16-9cb3-4900-9498-05c40f90af46.json +0 -1
  190. package/.nyc_output/processinfo/eb21b824-fc88-4f0c-9e72-bd691a141b75.json +0 -1
  191. package/.nyc_output/processinfo/ee09e08d-c0f5-4fba-9fa1-849b0f32f347.json +0 -1
  192. package/.nyc_output/processinfo/ee8b9792-e4fc-4950-8532-733858a2a7f2.json +0 -1
  193. package/.nyc_output/processinfo/f4344c1d-e947-4c51-abe0-e3600b4e721d.json +0 -1
  194. package/.nyc_output/processinfo/f7d0a4d2-62db-494d-bb67-78e3f93ae05b.json +0 -1
  195. package/.nyc_output/processinfo/index.json +0 -1
  196. package/docs/classes/CORSMiddleware.CORSMiddleware-1.md +0 -145
  197. package/docs/classes/DatabaseQueryError.DatabaseQueryError-1.md +0 -309
  198. package/docs/classes/DiskSpaceError.DiskSpaceError-1.md +0 -303
  199. package/docs/classes/DropTemporaryTableQuery.DropTemporaryTableQuery-1.md +0 -197
  200. package/docs/classes/DumpStream.DumpStream-1.md +0 -25
  201. package/docs/classes/DuplicateEntryError.DuplicateEntryError-1.md +0 -305
  202. package/docs/classes/EntityNotFoundError.EntityNotFoundError-1.md +0 -303
  203. package/docs/classes/ExpiredTokenError.ExpiredTokenError-1.md +0 -303
  204. package/docs/classes/Handler.Handler-1.md +0 -325
  205. package/docs/classes/InternalError.InternalError-1.md +0 -303
  206. package/docs/classes/InvalidConfigError.InvalidConfigError-1.md +0 -316
  207. package/docs/classes/InvalidCredentialsError.InvalidCredentialsError-1.md +0 -303
  208. package/docs/classes/InvalidValueError.InvalidValueError-1.md +0 -311
  209. package/docs/classes/JWTVerifyOptionsParser.JWTVerifyOptionsParser-1.md +0 -45
  210. package/docs/classes/ManagedDatabaseConnection.ManagedDatabaseConnection-1.md +0 -399
  211. package/docs/classes/Middleware.Middleware-1.md +0 -74
  212. package/docs/classes/MissingConfigError.MissingConfigError-1.md +0 -303
  213. package/docs/classes/MissingParameterError.MissingParameterError-1.md +0 -303
  214. package/docs/classes/MySQLDatabase.MySQLDatabase-1.md +0 -316
  215. package/docs/classes/Request.Request-1.md +0 -323
  216. package/docs/classes/Response.Response-1.md +0 -244
  217. package/docs/classes/StormError.StormError-1.md +0 -309
  218. package/docs/classes/TemporaryTableQuery.TemporaryTableQuery-1.md +0 -197
  219. package/docs/classes/UnauthorizedAccessError.UnauthorizedAccessError-1.md +0 -301
  220. package/docs/classes/private_CommitQuery.CommitQuery.md +0 -197
  221. package/docs/classes/private_RollbackQuery.RollbackQuery.md +0 -197
  222. package/docs/classes/private_StartTransactionQuery.StartTransactionQuery.md +0 -197
  223. package/docs/enums/ApplicationEvent.ApplicationEvent-1.md +0 -21
  224. package/docs/enums/ErrorCode.ErrorCode-1.md +0 -109
  225. package/docs/enums/ExitCode.ExitCode-1.md +0 -32
  226. package/docs/enums/HTTPMethod.HTTPMethod-1.md +0 -54
  227. package/docs/enums/JWTError.JWTError-1.md +0 -32
  228. package/docs/enums/StatusCode.StatusCode-1.md +0 -538
  229. package/docs/interfaces/DropTemporaryTableQuery.IDropTemporaryTableQueryInput.md +0 -21
  230. package/docs/interfaces/IConfig.IConfig-1.md +0 -114
  231. package/docs/interfaces/IFormData.IFormData-1.md +0 -32
  232. package/docs/interfaces/IInsertQueryResult.IInsertQueryResult-1.md +0 -43
  233. package/docs/interfaces/IJWTVerifyOptions.IJWTVerifyOptions-1.md +0 -21
  234. package/docs/interfaces/IRequestResponse.IRequestResponse-1.md +0 -39
  235. package/docs/interfaces/IServiceHeaders.IServiceHeaders-1.md +0 -9
  236. package/docs/interfaces/IUpdateQueryResult.IUpdateQueryResult-1.md +0 -32
  237. package/docs/interfaces/Request.IParameterMap.md +0 -9
  238. package/docs/interfaces/Response.IHeaderKeyValuePair.md +0 -9
  239. package/docs/interfaces/StormError.IAdditionalErrorDetails.md +0 -9
  240. package/docs/interfaces/StormError.IErrorResponse.md +0 -54
  241. package/docs/interfaces/TemporaryTableQuery.ITemporaryTableQueryInput.md +0 -32
  242. package/docs/interfaces/api.formidable.Fields.md +0 -9
  243. package/docs/interfaces/api.formidable.Files.md +0 -9
  244. package/docs/modules/Application.md +0 -9
  245. package/docs/modules/ApplicationEvent.md +0 -9
  246. package/docs/modules/BackendAuthenticationMiddleware.md +0 -9
  247. package/docs/modules/CORSMiddleware.md +0 -9
  248. package/docs/modules/ConfigLoader.md +0 -9
  249. package/docs/modules/Database.md +0 -9
  250. package/docs/modules/DatabaseConnection.md +0 -34
  251. package/docs/modules/DatabaseQueryError.md +0 -9
  252. package/docs/modules/DiskSpaceError.md +0 -9
  253. package/docs/modules/DropTemporaryTableQuery.md +0 -13
  254. package/docs/modules/DumpStream.md +0 -9
  255. package/docs/modules/DuplicateEntryError.md +0 -9
  256. package/docs/modules/EntityNotFoundError.md +0 -9
  257. package/docs/modules/ErrorCode.md +0 -9
  258. package/docs/modules/ExitCode.md +0 -9
  259. package/docs/modules/ExpiredTokenError.md +0 -9
  260. package/docs/modules/HTTPMethod.md +0 -9
  261. package/docs/modules/Handler.md +0 -50
  262. package/docs/modules/IAuthTokenData.md +0 -9
  263. package/docs/modules/IConfig.md +0 -9
  264. package/docs/modules/IDatabaseConfig.md +0 -9
  265. package/docs/modules/IDatabaseConnection.md +0 -9
  266. package/docs/modules/IDeleteQueryResult.md +0 -19
  267. package/docs/modules/IFormData.md +0 -9
  268. package/docs/modules/IHandler.md +0 -9
  269. package/docs/modules/IInsertQueryResult.md +0 -9
  270. package/docs/modules/IJWTVerifyOptions.md +0 -9
  271. package/docs/modules/IRequestResponse.md +0 -9
  272. package/docs/modules/IServiceHeaders.md +0 -9
  273. package/docs/modules/IUpdateQueryResult.md +0 -9
  274. package/docs/modules/InternalError.md +0 -9
  275. package/docs/modules/InvalidConfigError.md +0 -9
  276. package/docs/modules/InvalidCredentialsError.md +0 -9
  277. package/docs/modules/InvalidValueError.md +0 -9
  278. package/docs/modules/JWTError.md +0 -9
  279. package/docs/modules/JWTVerifyOptionsParser.md +0 -9
  280. package/docs/modules/ManagedDatabaseConnection.md +0 -9
  281. package/docs/modules/Middleware.md +0 -9
  282. package/docs/modules/MissingConfigError.md +0 -9
  283. package/docs/modules/MissingParameterError.md +0 -9
  284. package/docs/modules/MySQLConnection.md +0 -9
  285. package/docs/modules/MySQLDatabase.md +0 -9
  286. package/docs/modules/Query.md +0 -9
  287. package/docs/modules/RawQuery.md +0 -9
  288. package/docs/modules/Request.md +0 -13
  289. package/docs/modules/Response.md +0 -27
  290. package/docs/modules/ResponseData.md +0 -9
  291. package/docs/modules/ServiceProvider.md +0 -9
  292. package/docs/modules/ServiceResponse.md +0 -9
  293. package/docs/modules/StatusCode.md +0 -9
  294. package/docs/modules/StormError.md +0 -14
  295. package/docs/modules/TemporaryTableQuery.md +0 -13
  296. package/docs/modules/Token.md +0 -9
  297. package/docs/modules/TokenManager.md +0 -9
  298. package/docs/modules/UnauthorizedAccessError.md +0 -9
  299. package/docs/modules/api.md +0 -439
  300. package/docs/modules/instance.md +0 -44
  301. package/docs/modules/private_CommitQuery.md +0 -9
  302. package/docs/modules/private_RollbackQuery.md +0 -9
  303. package/docs/modules/private_StartTransactionQuery.md +0 -9
@@ -0,0 +1,323 @@
1
+ [@breautek/storm](../README.md) / Handler
2
+
3
+ # Class: Handler<TApplication, TGetRequest, TGetResponse, TPostRequest, TPostResponse, TPutRequest, TPutResponse, TDeleteRequest, TDeleteResponse\>
4
+
5
+ ## Type parameters
6
+
7
+ | Name | Type |
8
+ | :------ | :------ |
9
+ | `TApplication` | extends [`Application`](Application.md) = [`Application`](Application.md) |
10
+ | `TGetRequest` | `any` |
11
+ | `TGetResponse` | [`IHandlerResponse`](../README.md#ihandlerresponse) |
12
+ | `TPostRequest` | `any` |
13
+ | `TPostResponse` | [`IHandlerResponse`](../README.md#ihandlerresponse) |
14
+ | `TPutRequest` | `any` |
15
+ | `TPutResponse` | [`IHandlerResponse`](../README.md#ihandlerresponse) |
16
+ | `TDeleteRequest` | `any` |
17
+ | `TDeleteResponse` | [`IHandlerResponse`](../README.md#ihandlerresponse) |
18
+
19
+ ## Table of contents
20
+
21
+ ### Constructors
22
+
23
+ - [constructor](Handler.md#constructor)
24
+
25
+ ### Methods
26
+
27
+ - [\_delete](Handler.md#_delete)
28
+ - [\_get](Handler.md#_get)
29
+ - [\_initMiddlewares](Handler.md#_initmiddlewares)
30
+ - [\_onMiddlewareReject](Handler.md#_onmiddlewarereject)
31
+ - [\_post](Handler.md#_post)
32
+ - [\_put](Handler.md#_put)
33
+ - [attach](Handler.md#attach)
34
+ - [delete](Handler.md#delete)
35
+ - [get](Handler.md#get)
36
+ - [getAccessToken](Handler.md#getaccesstoken)
37
+ - [getApplication](Handler.md#getapplication)
38
+ - [post](Handler.md#post)
39
+ - [put](Handler.md#put)
40
+
41
+ ## Constructors
42
+
43
+ ### constructor
44
+
45
+ • **new Handler**<`TApplication`, `TGetRequest`, `TGetResponse`, `TPostRequest`, `TPostResponse`, `TPutRequest`, `TPutResponse`, `TDeleteRequest`, `TDeleteResponse`\>(`app`)
46
+
47
+ #### Type parameters
48
+
49
+ | Name | Type |
50
+ | :------ | :------ |
51
+ | `TApplication` | extends [`Application`](Application.md)<[`IConfig`](../interfaces/IConfig.md), [`IAuthTokenData`](../interfaces/IAuthTokenData.md), `any`, `any`, `TApplication`\> = [`Application`](Application.md)<[`IConfig`](../interfaces/IConfig.md), [`IAuthTokenData`](../interfaces/IAuthTokenData.md), `any`, `any`\> |
52
+ | `TGetRequest` | `any` |
53
+ | `TGetResponse` | `any` |
54
+ | `TPostRequest` | `any` |
55
+ | `TPostResponse` | `any` |
56
+ | `TPutRequest` | `any` |
57
+ | `TPutResponse` | `any` |
58
+ | `TDeleteRequest` | `any` |
59
+ | `TDeleteResponse` | `any` |
60
+
61
+ #### Parameters
62
+
63
+ | Name | Type |
64
+ | :------ | :------ |
65
+ | `app` | `TApplication` |
66
+
67
+ #### Defined in
68
+
69
+ [src/Handler.ts:71](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L71)
70
+
71
+ ## Methods
72
+
73
+ ### \_delete
74
+
75
+ ▸ `Protected` **_delete**(`request`): `Promise`<`any`\>
76
+
77
+ #### Parameters
78
+
79
+ | Name | Type |
80
+ | :------ | :------ |
81
+ | `request` | [`Request`](Request.md)<`TDeleteRequest`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
82
+
83
+ #### Returns
84
+
85
+ `Promise`<`any`\>
86
+
87
+ #### Defined in
88
+
89
+ [src/Handler.ts:214](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L214)
90
+
91
+ ___
92
+
93
+ ### \_get
94
+
95
+ ▸ `Protected` **_get**(`request`): `Promise`<`any`\>
96
+
97
+ #### Parameters
98
+
99
+ | Name | Type |
100
+ | :------ | :------ |
101
+ | `request` | [`Request`](Request.md)<`TGetRequest`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
102
+
103
+ #### Returns
104
+
105
+ `Promise`<`any`\>
106
+
107
+ #### Defined in
108
+
109
+ [src/Handler.ts:202](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L202)
110
+
111
+ ___
112
+
113
+ ### \_initMiddlewares
114
+
115
+ ▸ `Protected` **_initMiddlewares**(): [`Middleware`](Middleware.md)[]
116
+
117
+ #### Returns
118
+
119
+ [`Middleware`](Middleware.md)[]
120
+
121
+ #### Defined in
122
+
123
+ [src/Handler.ts:80](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L80)
124
+
125
+ ___
126
+
127
+ ### \_onMiddlewareReject
128
+
129
+ ▸ `Protected` **_onMiddlewareReject**(`request`, `response`, `error`): `void`
130
+
131
+ #### Parameters
132
+
133
+ | Name | Type |
134
+ | :------ | :------ |
135
+ | `request` | [`Request`](Request.md)<`any`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
136
+ | `response` | [`Response`](Response.md)<`any`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/IErrorResponse.md)\> |
137
+ | `error` | [`StormError`](StormError.md)<`any`\> |
138
+
139
+ #### Returns
140
+
141
+ `void`
142
+
143
+ #### Defined in
144
+
145
+ [src/Handler.ts:136](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L136)
146
+
147
+ ___
148
+
149
+ ### \_post
150
+
151
+ ▸ `Protected` **_post**(`request`): `Promise`<`any`\>
152
+
153
+ #### Parameters
154
+
155
+ | Name | Type |
156
+ | :------ | :------ |
157
+ | `request` | [`Request`](Request.md)<`TPostRequest`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
158
+
159
+ #### Returns
160
+
161
+ `Promise`<`any`\>
162
+
163
+ #### Defined in
164
+
165
+ [src/Handler.ts:206](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L206)
166
+
167
+ ___
168
+
169
+ ### \_put
170
+
171
+ ▸ `Protected` **_put**(`request`): `Promise`<`any`\>
172
+
173
+ #### Parameters
174
+
175
+ | Name | Type |
176
+ | :------ | :------ |
177
+ | `request` | [`Request`](Request.md)<`TPutRequest`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
178
+
179
+ #### Returns
180
+
181
+ `Promise`<`any`\>
182
+
183
+ #### Defined in
184
+
185
+ [src/Handler.ts:210](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L210)
186
+
187
+ ___
188
+
189
+ ### attach
190
+
191
+ ▸ **attach**(`app`): `void`
192
+
193
+ #### Parameters
194
+
195
+ | Name | Type |
196
+ | :------ | :------ |
197
+ | `app` | [`Application`](Application.md)<[`IConfig`](../interfaces/IConfig.md), [`IAuthTokenData`](../interfaces/IAuthTokenData.md), `any`, `any`\> |
198
+
199
+ #### Returns
200
+
201
+ `void`
202
+
203
+ #### Defined in
204
+
205
+ [src/Handler.ts:146](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L146)
206
+
207
+ ___
208
+
209
+ ### delete
210
+
211
+ ▸ **delete**(`request`, `response`): `Promise`<`void`\>
212
+
213
+ #### Parameters
214
+
215
+ | Name | Type |
216
+ | :------ | :------ |
217
+ | `request` | [`Request`](Request.md)<`TDeleteRequest`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
218
+ | `response` | [`Response`](Response.md)<`TDeleteResponse`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/IErrorResponse.md)\> |
219
+
220
+ #### Returns
221
+
222
+ `Promise`<`void`\>
223
+
224
+ #### Defined in
225
+
226
+ [src/Handler.ts:189](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L189)
227
+
228
+ ___
229
+
230
+ ### get
231
+
232
+ ▸ **get**(`request`, `response`): `Promise`<`void`\>
233
+
234
+ #### Parameters
235
+
236
+ | Name | Type |
237
+ | :------ | :------ |
238
+ | `request` | [`Request`](Request.md)<`TGetRequest`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
239
+ | `response` | [`Response`](Response.md)<`TGetResponse`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/IErrorResponse.md)\> |
240
+
241
+ #### Returns
242
+
243
+ `Promise`<`void`\>
244
+
245
+ #### Defined in
246
+
247
+ [src/Handler.ts:150](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L150)
248
+
249
+ ___
250
+
251
+ ### getAccessToken
252
+
253
+ ▸ **getAccessToken**(`request`): `string`
254
+
255
+ #### Parameters
256
+
257
+ | Name | Type |
258
+ | :------ | :------ |
259
+ | `request` | [`Request`](Request.md)<`any`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
260
+
261
+ #### Returns
262
+
263
+ `string`
264
+
265
+ #### Defined in
266
+
267
+ [src/Handler.ts:84](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L84)
268
+
269
+ ___
270
+
271
+ ### getApplication
272
+
273
+ ▸ **getApplication**(): `TApplication`
274
+
275
+ #### Returns
276
+
277
+ `TApplication`
278
+
279
+ #### Defined in
280
+
281
+ [src/Handler.ts:76](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L76)
282
+
283
+ ___
284
+
285
+ ### post
286
+
287
+ ▸ **post**(`request`, `response`): `Promise`<`void`\>
288
+
289
+ #### Parameters
290
+
291
+ | Name | Type |
292
+ | :------ | :------ |
293
+ | `request` | [`Request`](Request.md)<`TPostRequest`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
294
+ | `response` | [`Response`](Response.md)<`TPostResponse`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/IErrorResponse.md)\> |
295
+
296
+ #### Returns
297
+
298
+ `Promise`<`void`\>
299
+
300
+ #### Defined in
301
+
302
+ [src/Handler.ts:176](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L176)
303
+
304
+ ___
305
+
306
+ ### put
307
+
308
+ ▸ **put**(`request`, `response`): `Promise`<`void`\>
309
+
310
+ #### Parameters
311
+
312
+ | Name | Type |
313
+ | :------ | :------ |
314
+ | `request` | [`Request`](Request.md)<`TPutRequest`, [`IAuthTokenData`](../interfaces/IAuthTokenData.md)\> |
315
+ | `response` | [`Response`](Response.md)<`TPutResponse`, `string` \| `Error` \| [`IErrorResponse`](../interfaces/IErrorResponse.md)\> |
316
+
317
+ #### Returns
318
+
319
+ `Promise`<`void`\>
320
+
321
+ #### Defined in
322
+
323
+ [src/Handler.ts:163](https://github.com/breautek/storm/blob/186ee78/src/Handler.ts#L163)
@@ -0,0 +1,301 @@
1
+ [@breautek/storm](../README.md) / InternalError
2
+
3
+ # Class: InternalError
4
+
5
+ ## Hierarchy
6
+
7
+ - [`StormError`](StormError.md)<`any`\>
8
+
9
+ ↳ **`InternalError`**
10
+
11
+ ## Table of contents
12
+
13
+ ### Constructors
14
+
15
+ - [constructor](InternalError.md#constructor)
16
+
17
+ ### Properties
18
+
19
+ - [message](InternalError.md#message)
20
+ - [name](InternalError.md#name)
21
+ - [stack](InternalError.md#stack)
22
+ - [prepareStackTrace](InternalError.md#preparestacktrace)
23
+ - [stackTraceLimit](InternalError.md#stacktracelimit)
24
+
25
+ ### Methods
26
+
27
+ - [getCode](InternalError.md#getcode)
28
+ - [getErrorResponse](InternalError.md#geterrorresponse)
29
+ - [getExitCode](InternalError.md#getexitcode)
30
+ - [getHTTPCode](InternalError.md#gethttpcode)
31
+ - [getMessage](InternalError.md#getmessage)
32
+ - [getPrivateDetails](InternalError.md#getprivatedetails)
33
+ - [getPublicDetails](InternalError.md#getpublicdetails)
34
+ - [captureStackTrace](InternalError.md#capturestacktrace)
35
+
36
+ ## Constructors
37
+
38
+ ### constructor
39
+
40
+ • **new InternalError**(`details?`)
41
+
42
+ #### Parameters
43
+
44
+ | Name | Type |
45
+ | :------ | :------ |
46
+ | `details?` | `any` |
47
+
48
+ #### Overrides
49
+
50
+ [StormError](StormError.md).[constructor](StormError.md#constructor)
51
+
52
+ #### Defined in
53
+
54
+ [src/InternalError.ts:23](https://github.com/breautek/storm/blob/186ee78/src/InternalError.ts#L23)
55
+
56
+ ## Properties
57
+
58
+ ### message
59
+
60
+ • **message**: `string`
61
+
62
+ #### Inherited from
63
+
64
+ [StormError](StormError.md).[message](StormError.md#message)
65
+
66
+ #### Defined in
67
+
68
+ node_modules/typescript/lib/lib.es5.d.ts:1023
69
+
70
+ ___
71
+
72
+ ### name
73
+
74
+ • **name**: `string`
75
+
76
+ #### Inherited from
77
+
78
+ [StormError](StormError.md).[name](StormError.md#name)
79
+
80
+ #### Defined in
81
+
82
+ node_modules/typescript/lib/lib.es5.d.ts:1022
83
+
84
+ ___
85
+
86
+ ### stack
87
+
88
+ • `Optional` **stack**: `string`
89
+
90
+ #### Inherited from
91
+
92
+ [StormError](StormError.md).[stack](StormError.md#stack)
93
+
94
+ #### Defined in
95
+
96
+ node_modules/typescript/lib/lib.es5.d.ts:1024
97
+
98
+ ___
99
+
100
+ ### prepareStackTrace
101
+
102
+ ▪ `Static` `Optional` **prepareStackTrace**: (`err`: `Error`, `stackTraces`: `CallSite`[]) => `any`
103
+
104
+ #### Type declaration
105
+
106
+ ▸ (`err`, `stackTraces`): `any`
107
+
108
+ Optional override for formatting stack traces
109
+
110
+ **`see`** https://v8.dev/docs/stack-trace-api#customizing-stack-traces
111
+
112
+ ##### Parameters
113
+
114
+ | Name | Type |
115
+ | :------ | :------ |
116
+ | `err` | `Error` |
117
+ | `stackTraces` | `CallSite`[] |
118
+
119
+ ##### Returns
120
+
121
+ `any`
122
+
123
+ #### Inherited from
124
+
125
+ [StormError](StormError.md).[prepareStackTrace](StormError.md#preparestacktrace)
126
+
127
+ #### Defined in
128
+
129
+ node_modules/@types/node/globals.d.ts:11
130
+
131
+ ___
132
+
133
+ ### stackTraceLimit
134
+
135
+ ▪ `Static` **stackTraceLimit**: `number`
136
+
137
+ #### Inherited from
138
+
139
+ [StormError](StormError.md).[stackTraceLimit](StormError.md#stacktracelimit)
140
+
141
+ #### Defined in
142
+
143
+ node_modules/@types/node/globals.d.ts:13
144
+
145
+ ## Methods
146
+
147
+ ### getCode
148
+
149
+ ▸ **getCode**(): [`ErrorCode`](../enums/ErrorCode.md)
150
+
151
+ #### Returns
152
+
153
+ [`ErrorCode`](../enums/ErrorCode.md)
154
+
155
+ #### Overrides
156
+
157
+ [StormError](StormError.md).[getCode](StormError.md#getcode)
158
+
159
+ #### Defined in
160
+
161
+ [src/InternalError.ts:31](https://github.com/breautek/storm/blob/186ee78/src/InternalError.ts#L31)
162
+
163
+ ___
164
+
165
+ ### getErrorResponse
166
+
167
+ ▸ **getErrorResponse**(): [`IErrorResponse`](../interfaces/IErrorResponse.md)
168
+
169
+ #### Returns
170
+
171
+ [`IErrorResponse`](../interfaces/IErrorResponse.md)
172
+
173
+ #### Inherited from
174
+
175
+ [StormError](StormError.md).[getErrorResponse](StormError.md#geterrorresponse)
176
+
177
+ #### Defined in
178
+
179
+ [src/StormError.ts:70](https://github.com/breautek/storm/blob/186ee78/src/StormError.ts#L70)
180
+
181
+ ___
182
+
183
+ ### getExitCode
184
+
185
+ ▸ **getExitCode**(): [`ExitCode`](../enums/ExitCode.md)
186
+
187
+ #### Returns
188
+
189
+ [`ExitCode`](../enums/ExitCode.md)
190
+
191
+ #### Inherited from
192
+
193
+ [StormError](StormError.md).[getExitCode](StormError.md#getexitcode)
194
+
195
+ #### Defined in
196
+
197
+ [src/StormError.ts:79](https://github.com/breautek/storm/blob/186ee78/src/StormError.ts#L79)
198
+
199
+ ___
200
+
201
+ ### getHTTPCode
202
+
203
+ ▸ **getHTTPCode**(): [`StatusCode`](../enums/StatusCode.md)
204
+
205
+ #### Returns
206
+
207
+ [`StatusCode`](../enums/StatusCode.md)
208
+
209
+ #### Overrides
210
+
211
+ [StormError](StormError.md).[getHTTPCode](StormError.md#gethttpcode)
212
+
213
+ #### Defined in
214
+
215
+ [src/InternalError.ts:35](https://github.com/breautek/storm/blob/186ee78/src/InternalError.ts#L35)
216
+
217
+ ___
218
+
219
+ ### getMessage
220
+
221
+ ▸ **getMessage**(): `string`
222
+
223
+ #### Returns
224
+
225
+ `string`
226
+
227
+ #### Overrides
228
+
229
+ [StormError](StormError.md).[getMessage](StormError.md#getmessage)
230
+
231
+ #### Defined in
232
+
233
+ [src/InternalError.ts:27](https://github.com/breautek/storm/blob/186ee78/src/InternalError.ts#L27)
234
+
235
+ ___
236
+
237
+ ### getPrivateDetails
238
+
239
+ ▸ **getPrivateDetails**(): `any`
240
+
241
+ Private details are only logged to the server log.
242
+ They are kept secret from the client.
243
+
244
+ #### Returns
245
+
246
+ `any`
247
+
248
+ #### Inherited from
249
+
250
+ [StormError](StormError.md).[getPrivateDetails](StormError.md#getprivatedetails)
251
+
252
+ #### Defined in
253
+
254
+ [src/StormError.ts:62](https://github.com/breautek/storm/blob/186ee78/src/StormError.ts#L62)
255
+
256
+ ___
257
+
258
+ ### getPublicDetails
259
+
260
+ ▸ **getPublicDetails**(): [`IAdditionalErrorDetails`](../interfaces/IAdditionalErrorDetails.md)
261
+
262
+ Sends details to the client.
263
+
264
+ #### Returns
265
+
266
+ [`IAdditionalErrorDetails`](../interfaces/IAdditionalErrorDetails.md)
267
+
268
+ #### Inherited from
269
+
270
+ [StormError](StormError.md).[getPublicDetails](StormError.md#getpublicdetails)
271
+
272
+ #### Defined in
273
+
274
+ [src/StormError.ts:54](https://github.com/breautek/storm/blob/186ee78/src/StormError.ts#L54)
275
+
276
+ ___
277
+
278
+ ### captureStackTrace
279
+
280
+ ▸ `Static` **captureStackTrace**(`targetObject`, `constructorOpt?`): `void`
281
+
282
+ Create .stack property on a target object
283
+
284
+ #### Parameters
285
+
286
+ | Name | Type |
287
+ | :------ | :------ |
288
+ | `targetObject` | `object` |
289
+ | `constructorOpt?` | `Function` |
290
+
291
+ #### Returns
292
+
293
+ `void`
294
+
295
+ #### Inherited from
296
+
297
+ [StormError](StormError.md).[captureStackTrace](StormError.md#capturestacktrace)
298
+
299
+ #### Defined in
300
+
301
+ node_modules/@types/node/globals.d.ts:4