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