@abyss-project/monitor 1.0.2 → 1.0.4

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 (278) hide show
  1. package/dist/api/application-cron-task.admin.api.d.ts +10 -10
  2. package/dist/api/application-cron-task.admin.api.js +40 -40
  3. package/dist/api/application-cron-task.api.d.ts +10 -10
  4. package/dist/api/application-cron-task.api.js +40 -40
  5. package/dist/api/application-log.admin.api.d.ts +3 -3
  6. package/dist/api/application-log.admin.api.js +12 -12
  7. package/dist/api/application-log.api.d.ts +4 -4
  8. package/dist/api/application-log.api.js +16 -16
  9. package/dist/api/application-stats.admin.api.d.ts +3 -3
  10. package/dist/api/application-stats.admin.api.js +12 -12
  11. package/dist/api/application-stats.api.d.ts +4 -4
  12. package/dist/api/application-stats.api.js +16 -16
  13. package/dist/api/application-store.admin.api.d.ts +6 -6
  14. package/dist/api/application-store.admin.api.js +24 -24
  15. package/dist/api/application-store.api.d.ts +6 -6
  16. package/dist/api/application-store.api.js +24 -24
  17. package/dist/api/application-store.public.api.d.ts +3 -3
  18. package/dist/api/application-store.public.api.js +12 -12
  19. package/dist/api/application.admin.api.d.ts +7 -7
  20. package/dist/api/application.admin.api.js +28 -28
  21. package/dist/api/application.api.d.ts +10 -9
  22. package/dist/api/application.api.js +40 -36
  23. package/dist/api/index.d.ts +12 -12
  24. package/dist/api/index.js +28 -24
  25. package/dist/api/monitor.api.d.ts +2 -2
  26. package/dist/api/monitor.api.js +8 -8
  27. package/dist/frameworks/express/decorators.d.ts +52 -52
  28. package/dist/frameworks/express/decorators.js +163 -163
  29. package/dist/frameworks/express/index.d.ts +16 -16
  30. package/dist/frameworks/express/index.js +170 -166
  31. package/dist/frameworks/express/metadata.d.ts +9 -9
  32. package/dist/frameworks/express/metadata.js +12 -12
  33. package/dist/frameworks/index.d.ts +1 -1
  34. package/dist/frameworks/index.js +17 -13
  35. package/dist/index.d.ts +46 -46
  36. package/dist/index.js +105 -101
  37. package/dist/middlewares/context.middleware.d.ts +12 -12
  38. package/dist/middlewares/context.middleware.js +39 -39
  39. package/dist/middlewares/index.d.ts +3 -3
  40. package/dist/middlewares/index.js +19 -15
  41. package/dist/middlewares/logger-endpoint.middleware.d.ts +5 -5
  42. package/dist/middlewares/logger-endpoint.middleware.js +75 -75
  43. package/dist/middlewares/logger-setup.middleware.d.ts +5 -5
  44. package/dist/middlewares/logger-setup.middleware.js +16 -16
  45. package/dist/models/index.d.ts +1 -1
  46. package/dist/models/index.js +17 -13
  47. package/dist/models/logger.model.d.ts +55 -55
  48. package/dist/models/logger.model.js +201 -201
  49. package/dist/models/stats-publisher.model.d.ts +20 -20
  50. package/dist/models/stats-publisher.model.js +113 -113
  51. package/dist/types/enum/api-error.enum.d.ts +20 -20
  52. package/dist/types/enum/api-error.enum.js +25 -25
  53. package/dist/types/enum/api-method.enum.d.ts +7 -7
  54. package/dist/types/enum/api-method.enum.js +11 -11
  55. package/dist/types/enum/application-alert-type.enum.d.ts +5 -5
  56. package/dist/types/enum/application-alert-type.enum.js +9 -9
  57. package/dist/types/enum/application-stats-type.enum.d.ts +5 -5
  58. package/dist/types/enum/application-stats-type.enum.js +9 -9
  59. package/dist/types/enum/index.d.ts +7 -7
  60. package/dist/types/enum/index.js +23 -19
  61. package/dist/types/enum/log-level.enum.d.ts +6 -6
  62. package/dist/types/enum/log-level.enum.js +10 -10
  63. package/dist/types/enum/log-scenario.enum.d.ts +5 -5
  64. package/dist/types/enum/log-scenario.enum.js +9 -9
  65. package/dist/types/enum/webhook-type.enum.d.ts +3 -3
  66. package/dist/types/enum/webhook-type.enum.js +7 -7
  67. package/dist/types/index.d.ts +18 -18
  68. package/dist/types/index.js +18 -14
  69. package/dist/types/interface/api/index.d.ts +27 -27
  70. package/dist/types/interface/api/index.js +43 -39
  71. package/dist/types/interface/api/requests/application-cron-task.admin.request.d.ts +50 -51
  72. package/dist/types/interface/api/requests/application-cron-task.admin.request.js +2 -2
  73. package/dist/types/interface/api/requests/application-cron-task.request.d.ts +61 -62
  74. package/dist/types/interface/api/requests/application-cron-task.request.js +2 -2
  75. package/dist/types/interface/api/requests/application-log.admin.request.d.ts +19 -20
  76. package/dist/types/interface/api/requests/application-log.admin.request.js +2 -2
  77. package/dist/types/interface/api/requests/application-log.request.d.ts +53 -54
  78. package/dist/types/interface/api/requests/application-log.request.js +2 -2
  79. package/dist/types/interface/api/requests/application-stats.admin.request.d.ts +13 -14
  80. package/dist/types/interface/api/requests/application-stats.admin.request.js +2 -2
  81. package/dist/types/interface/api/requests/application-stats.request.d.ts +31 -32
  82. package/dist/types/interface/api/requests/application-stats.request.js +2 -2
  83. package/dist/types/interface/api/requests/application-store.admin.request.d.ts +34 -35
  84. package/dist/types/interface/api/requests/application-store.admin.request.js +2 -2
  85. package/dist/types/interface/api/requests/application-store.public.request.d.ts +8 -9
  86. package/dist/types/interface/api/requests/application-store.public.request.js +2 -2
  87. package/dist/types/interface/api/requests/application-store.request.d.ts +39 -40
  88. package/dist/types/interface/api/requests/application-store.request.js +2 -2
  89. package/dist/types/interface/api/requests/application.admin.request.d.ts +18 -19
  90. package/dist/types/interface/api/requests/application.admin.request.js +2 -2
  91. package/dist/types/interface/api/requests/application.request.d.ts +35 -33
  92. package/dist/types/interface/api/requests/application.request.js +2 -2
  93. package/dist/types/interface/api/responses/application-cron-task.admin.response.d.ts +30 -30
  94. package/dist/types/interface/api/responses/application-cron-task.admin.response.js +2 -2
  95. package/dist/types/interface/api/responses/application-cron-task.response.d.ts +30 -30
  96. package/dist/types/interface/api/responses/application-cron-task.response.js +2 -2
  97. package/dist/types/interface/api/responses/application-log.admin.response.d.ts +10 -10
  98. package/dist/types/interface/api/responses/application-log.admin.response.js +2 -2
  99. package/dist/types/interface/api/responses/application-log.response.d.ts +10 -10
  100. package/dist/types/interface/api/responses/application-log.response.js +2 -2
  101. package/dist/types/interface/api/responses/application-stats.admin.response.d.ts +6 -6
  102. package/dist/types/interface/api/responses/application-stats.admin.response.js +2 -2
  103. package/dist/types/interface/api/responses/application-stats.response.d.ts +10 -10
  104. package/dist/types/interface/api/responses/application-stats.response.js +2 -2
  105. package/dist/types/interface/api/responses/application-store.admin.response.d.ts +17 -17
  106. package/dist/types/interface/api/responses/application-store.admin.response.js +2 -2
  107. package/dist/types/interface/api/responses/application-store.public.response.d.ts +21 -21
  108. package/dist/types/interface/api/responses/application-store.public.response.js +2 -2
  109. package/dist/types/interface/api/responses/application-store.response.d.ts +17 -17
  110. package/dist/types/interface/api/responses/application-store.response.js +2 -2
  111. package/dist/types/interface/api/responses/application.admin.response.d.ts +33 -33
  112. package/dist/types/interface/api/responses/application.admin.response.js +2 -2
  113. package/dist/types/interface/api/responses/application.response.d.ts +129 -121
  114. package/dist/types/interface/api/responses/application.response.js +2 -2
  115. package/dist/types/interface/api/responses/monitor.response.d.ts +7 -7
  116. package/dist/types/interface/api/responses/monitor.response.js +2 -2
  117. package/dist/types/interface/api/type-message/api-error.d.ts +8 -8
  118. package/dist/types/interface/api/type-message/api-error.js +2 -2
  119. package/dist/types/interface/api/type-message/base-order.d.ts +4 -4
  120. package/dist/types/interface/api/type-message/base-order.js +2 -2
  121. package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -10
  122. package/dist/types/interface/api/type-message/base-paginate.js +2 -2
  123. package/dist/types/interface/api/type-message/response.d.ts +5 -5
  124. package/dist/types/interface/api/type-message/response.js +2 -2
  125. package/dist/types/interface/index.d.ts +9 -8
  126. package/dist/types/interface/index.js +25 -20
  127. package/dist/types/interface/models/application-cron-task-history.model.d.ts +11 -11
  128. package/dist/types/interface/models/application-cron-task-history.model.js +2 -2
  129. package/dist/types/interface/models/application-cron-task.model.d.ts +14 -14
  130. package/dist/types/interface/models/application-cron-task.model.js +2 -2
  131. package/dist/types/interface/models/application-event.model.d.ts +18 -0
  132. package/dist/types/interface/{api/requests/abyss.admin.request.js → models/application-event.model.js} +2 -2
  133. package/dist/types/interface/models/application-log-endpoint.model.d.ts +20 -20
  134. package/dist/types/interface/models/application-log-endpoint.model.js +2 -2
  135. package/dist/types/interface/models/application-log.model.d.ts +23 -21
  136. package/dist/types/interface/models/application-log.model.js +2 -2
  137. package/dist/types/interface/models/application-stats.model.d.ts +14 -14
  138. package/dist/types/interface/models/application-stats.model.js +2 -2
  139. package/dist/types/interface/models/application-store-entry.model.d.ts +14 -14
  140. package/dist/types/interface/models/application-store-entry.model.js +2 -2
  141. package/dist/types/interface/models/application.model.d.ts +17 -15
  142. package/dist/types/interface/models/application.model.js +2 -2
  143. package/dist/utils/alert.utils.d.ts +35 -35
  144. package/dist/utils/alert.utils.js +138 -134
  145. package/dist/utils/discord-webhook-log-formatter.utils.d.ts +42 -42
  146. package/dist/utils/discord-webhook-log-formatter.utils.js +319 -319
  147. package/dist/utils/error.utils.d.ts +15 -15
  148. package/dist/utils/error.utils.js +24 -24
  149. package/dist/utils/import.utils.d.ts +1 -1
  150. package/dist/utils/import.utils.js +7 -7
  151. package/dist/utils/index.d.ts +5 -5
  152. package/dist/utils/index.js +21 -17
  153. package/dist/utils/json.utils.d.ts +1 -1
  154. package/dist/utils/json.utils.js +13 -13
  155. package/dist/utils/non-blocking-promise.utils.d.ts +2 -2
  156. package/dist/utils/non-blocking-promise.utils.js +11 -11
  157. package/package.json +5 -5
  158. package/dist/api/abyss.admin.api.d.ts +0 -2
  159. package/dist/api/abyss.admin.api.js +0 -8
  160. package/dist/api/application-store-entry.admin.api.d.ts +0 -6
  161. package/dist/api/application-store-entry.admin.api.js +0 -24
  162. package/dist/api/application-store-entry.api.d.ts +0 -6
  163. package/dist/api/application-store-entry.api.js +0 -24
  164. package/dist/api/application-store-entry.public.api.d.ts +0 -3
  165. package/dist/api/application-store-entry.public.api.js +0 -12
  166. package/dist/api/logger.admin.api.d.ts +0 -3
  167. package/dist/api/logger.admin.api.js +0 -14
  168. package/dist/api/user-application-alert.admin.api.d.ts +0 -7
  169. package/dist/api/user-application-alert.admin.api.js +0 -28
  170. package/dist/api/user-application-alert.api.d.ts +0 -7
  171. package/dist/api/user-application-alert.api.js +0 -28
  172. package/dist/api/user-application-cron-task.admin.api.d.ts +0 -9
  173. package/dist/api/user-application-cron-task.admin.api.js +0 -36
  174. package/dist/api/user-application-cron-task.api.d.ts +0 -9
  175. package/dist/api/user-application-cron-task.api.js +0 -36
  176. package/dist/api/user-application-log.admin.api.d.ts +0 -3
  177. package/dist/api/user-application-log.admin.api.js +0 -12
  178. package/dist/api/user-application-log.api.d.ts +0 -4
  179. package/dist/api/user-application-log.api.js +0 -16
  180. package/dist/api/user-application-stats.admin.api.d.ts +0 -3
  181. package/dist/api/user-application-stats.admin.api.js +0 -12
  182. package/dist/api/user-application-stats.api.d.ts +0 -4
  183. package/dist/api/user-application-stats.api.js +0 -16
  184. package/dist/api/user-application.admin.api.d.ts +0 -6
  185. package/dist/api/user-application.admin.api.js +0 -24
  186. package/dist/api/user-application.api.d.ts +0 -10
  187. package/dist/api/user-application.api.js +0 -40
  188. package/dist/api/user.admin.api.d.ts +0 -5
  189. package/dist/api/user.admin.api.js +0 -23
  190. package/dist/api/user.api.d.ts +0 -4
  191. package/dist/api/user.api.js +0 -17
  192. package/dist/consts.d.ts +0 -2
  193. package/dist/consts.js +0 -5
  194. package/dist/types/enum/log-type.enum.d.ts +0 -6
  195. package/dist/types/enum/log-type.enum.js +0 -10
  196. package/dist/types/enum/user-application-alert-type.enum.d.ts +0 -5
  197. package/dist/types/enum/user-application-alert-type.enum.js +0 -9
  198. package/dist/types/enum/user-application-stats-type.enum.d.ts +0 -5
  199. package/dist/types/enum/user-application-stats-type.enum.js +0 -9
  200. package/dist/types/interface/api/requests/abyss.admin.request.d.ts +0 -4
  201. package/dist/types/interface/api/requests/logger.admin.request.d.ts +0 -8
  202. package/dist/types/interface/api/requests/logger.admin.request.js +0 -2
  203. package/dist/types/interface/api/requests/user-application-alert.admin.request.d.ts +0 -44
  204. package/dist/types/interface/api/requests/user-application-alert.admin.request.js +0 -2
  205. package/dist/types/interface/api/requests/user-application-alert.request.d.ts +0 -50
  206. package/dist/types/interface/api/requests/user-application-alert.request.js +0 -2
  207. package/dist/types/interface/api/requests/user-application-cron-task.admin.request.d.ts +0 -48
  208. package/dist/types/interface/api/requests/user-application-cron-task.admin.request.js +0 -2
  209. package/dist/types/interface/api/requests/user-application-cron-task.request.d.ts +0 -58
  210. package/dist/types/interface/api/requests/user-application-cron-task.request.js +0 -2
  211. package/dist/types/interface/api/requests/user-application-log.admin.request.d.ts +0 -20
  212. package/dist/types/interface/api/requests/user-application-log.admin.request.js +0 -2
  213. package/dist/types/interface/api/requests/user-application-log.request.d.ts +0 -51
  214. package/dist/types/interface/api/requests/user-application-log.request.js +0 -2
  215. package/dist/types/interface/api/requests/user-application-stats.admin.request.d.ts +0 -14
  216. package/dist/types/interface/api/requests/user-application-stats.admin.request.js +0 -2
  217. package/dist/types/interface/api/requests/user-application-stats.request.d.ts +0 -29
  218. package/dist/types/interface/api/requests/user-application-stats.request.js +0 -2
  219. package/dist/types/interface/api/requests/user-application.admin.request.d.ts +0 -15
  220. package/dist/types/interface/api/requests/user-application.admin.request.js +0 -2
  221. package/dist/types/interface/api/requests/user-application.request.d.ts +0 -35
  222. package/dist/types/interface/api/requests/user-application.request.js +0 -2
  223. package/dist/types/interface/api/requests/user.admin.request.d.ts +0 -18
  224. package/dist/types/interface/api/requests/user.admin.request.js +0 -2
  225. package/dist/types/interface/api/requests/user.request.d.ts +0 -3
  226. package/dist/types/interface/api/requests/user.request.js +0 -2
  227. package/dist/types/interface/api/responses/abyss.admin.response.d.ts +0 -6
  228. package/dist/types/interface/api/responses/abyss.admin.response.js +0 -2
  229. package/dist/types/interface/api/responses/logger.admin.response.d.ts +0 -7
  230. package/dist/types/interface/api/responses/logger.admin.response.js +0 -2
  231. package/dist/types/interface/api/responses/user-application-alert.admin.response.d.ts +0 -22
  232. package/dist/types/interface/api/responses/user-application-alert.admin.response.js +0 -2
  233. package/dist/types/interface/api/responses/user-application-alert.response.d.ts +0 -22
  234. package/dist/types/interface/api/responses/user-application-alert.response.js +0 -2
  235. package/dist/types/interface/api/responses/user-application-cron-task.admin.response.d.ts +0 -27
  236. package/dist/types/interface/api/responses/user-application-cron-task.admin.response.js +0 -2
  237. package/dist/types/interface/api/responses/user-application-cron-task.response.d.ts +0 -27
  238. package/dist/types/interface/api/responses/user-application-cron-task.response.js +0 -2
  239. package/dist/types/interface/api/responses/user-application-log.admin.response.d.ts +0 -11
  240. package/dist/types/interface/api/responses/user-application-log.admin.response.js +0 -2
  241. package/dist/types/interface/api/responses/user-application-log.response.d.ts +0 -11
  242. package/dist/types/interface/api/responses/user-application-log.response.js +0 -2
  243. package/dist/types/interface/api/responses/user-application-stats.admin.response.d.ts +0 -7
  244. package/dist/types/interface/api/responses/user-application-stats.admin.response.js +0 -2
  245. package/dist/types/interface/api/responses/user-application-stats.response.d.ts +0 -11
  246. package/dist/types/interface/api/responses/user-application-stats.response.js +0 -2
  247. package/dist/types/interface/api/responses/user-application.admin.response.d.ts +0 -17
  248. package/dist/types/interface/api/responses/user-application.admin.response.js +0 -2
  249. package/dist/types/interface/api/responses/user-application.response.d.ts +0 -120
  250. package/dist/types/interface/api/responses/user-application.response.js +0 -2
  251. package/dist/types/interface/api/responses/user.admin.response.d.ts +0 -15
  252. package/dist/types/interface/api/responses/user.admin.response.js +0 -2
  253. package/dist/types/interface/api/responses/user.response.d.ts +0 -13
  254. package/dist/types/interface/api/responses/user.response.js +0 -2
  255. package/dist/types/interface/models/cron-task-history.model.d.ts +0 -12
  256. package/dist/types/interface/models/cron-task-history.model.js +0 -2
  257. package/dist/types/interface/models/cron-task.model.d.ts +0 -13
  258. package/dist/types/interface/models/cron-task.model.js +0 -2
  259. package/dist/types/interface/models/log-console.model.d.ts +0 -17
  260. package/dist/types/interface/models/log-console.model.js +0 -2
  261. package/dist/types/interface/models/log-endpoint.model.d.ts +0 -22
  262. package/dist/types/interface/models/log-endpoint.model.js +0 -2
  263. package/dist/types/interface/models/user-application-alert.model.d.ts +0 -44
  264. package/dist/types/interface/models/user-application-alert.model.js +0 -2
  265. package/dist/types/interface/models/user-application-cron-task-history.model.d.ts +0 -11
  266. package/dist/types/interface/models/user-application-cron-task-history.model.js +0 -2
  267. package/dist/types/interface/models/user-application-cron-task.model.d.ts +0 -14
  268. package/dist/types/interface/models/user-application-cron-task.model.js +0 -2
  269. package/dist/types/interface/models/user-application-log-endpoint.model.d.ts +0 -20
  270. package/dist/types/interface/models/user-application-log-endpoint.model.js +0 -2
  271. package/dist/types/interface/models/user-application-log.model.d.ts +0 -21
  272. package/dist/types/interface/models/user-application-log.model.js +0 -2
  273. package/dist/types/interface/models/user-application-stats.model.d.ts +0 -14
  274. package/dist/types/interface/models/user-application-stats.model.js +0 -2
  275. package/dist/types/interface/models/user-application.model.d.ts +0 -15
  276. package/dist/types/interface/models/user-application.model.js +0 -2
  277. package/dist/types/interface/models/user.model.d.ts +0 -8
  278. package/dist/types/interface/models/user.model.js +0 -2
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.paginateUserApplicationStatsAdmin = exports.getUserApplicationStatsAdmin = void 0;
4
- const __1 = require("..");
5
- const getUserApplicationStatsAdmin = async (params) => {
6
- return (await __1.AbyssMonitorCore.axios.get(`user-application-stats/admin/${params.userApplicationStatsId}`)).data;
7
- };
8
- exports.getUserApplicationStatsAdmin = getUserApplicationStatsAdmin;
9
- const paginateUserApplicationStatsAdmin = async (query) => {
10
- return (await __1.AbyssMonitorCore.axios.get(`user-application-stats/admin/paginate`, { params: query })).data;
11
- };
12
- exports.paginateUserApplicationStatsAdmin = paginateUserApplicationStatsAdmin;
@@ -1,4 +0,0 @@
1
- import { ICreateUserApplicationStatsBody, ICreateUserApplicationStatsParams, ICreateUserApplicationStatsResponse, IGetUserApplicationStatsParams, IGetUserApplicationStatsResponse, IPaginateUserApplicationStatsParams, IPaginateUserApplicationStatsQuery, IPaginateUserApplicationStatsResponse } from '..';
2
- export declare const getUserApplicationStats: (params: IGetUserApplicationStatsParams) => Promise<IGetUserApplicationStatsResponse>;
3
- export declare const paginateUserApplicationStats: (params: IPaginateUserApplicationStatsParams, query: IPaginateUserApplicationStatsQuery) => Promise<IPaginateUserApplicationStatsResponse>;
4
- export declare const createUserApplicationStats: (params: ICreateUserApplicationStatsParams, body: ICreateUserApplicationStatsBody) => Promise<ICreateUserApplicationStatsResponse>;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.createUserApplicationStats = exports.paginateUserApplicationStats = exports.getUserApplicationStats = void 0;
4
- const __1 = require("..");
5
- const getUserApplicationStats = async (params) => {
6
- return (await __1.AbyssMonitorCore.axios.get(`user-application-stats/${params.userApplicationId}/${params.userApplicationStatsId}`)).data;
7
- };
8
- exports.getUserApplicationStats = getUserApplicationStats;
9
- const paginateUserApplicationStats = async (params, query) => {
10
- return (await __1.AbyssMonitorCore.axios.get(`user-application-stats/${params.userApplicationId}/paginate`, { params: query })).data;
11
- };
12
- exports.paginateUserApplicationStats = paginateUserApplicationStats;
13
- const createUserApplicationStats = async (params, body) => {
14
- return (await __1.AbyssMonitorCore.axios.post(`user-application-stats/${params.userApplicationId}`, body)).data;
15
- };
16
- exports.createUserApplicationStats = createUserApplicationStats;
@@ -1,6 +0,0 @@
1
- import { ICreateUserApplicationAdminBody, ICreateUserApplicationAdminResponse, IGetUserApplicationAdminParams, IGetUserApplicationAdminResponse, IPaginateUserApplicationAdminQuery, IPaginateUserApplicationAdminResponse, IResetApiKeyUserApplicationAdminParams, IResetApiKeyUserApplicationAdminResponse, IDeleteUserApplicationAdminParams } from '../types';
2
- export declare const paginateUserApplicationAdmin: (query: IPaginateUserApplicationAdminQuery) => Promise<IPaginateUserApplicationAdminResponse>;
3
- export declare const getUserApplicationAdmin: (params: IGetUserApplicationAdminParams) => Promise<IGetUserApplicationAdminResponse>;
4
- export declare const resetApiKeyUserApplicationAdmin: (params: IResetApiKeyUserApplicationAdminParams) => Promise<IResetApiKeyUserApplicationAdminResponse>;
5
- export declare const createUserApplicationAdmin: (body: ICreateUserApplicationAdminBody) => Promise<ICreateUserApplicationAdminResponse>;
6
- export declare const deleteUserApplicationAdmin: (params: IDeleteUserApplicationAdminParams) => Promise<IDeleteUserApplicationAdminParams>;
@@ -1,24 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.deleteUserApplicationAdmin = exports.createUserApplicationAdmin = exports.resetApiKeyUserApplicationAdmin = exports.getUserApplicationAdmin = exports.paginateUserApplicationAdmin = void 0;
4
- const __1 = require("..");
5
- const paginateUserApplicationAdmin = async (query) => {
6
- return (await __1.AbyssMonitorCore.axios.get(`user-application/admin/paginate`, { params: query })).data;
7
- };
8
- exports.paginateUserApplicationAdmin = paginateUserApplicationAdmin;
9
- const getUserApplicationAdmin = async (params) => {
10
- return (await __1.AbyssMonitorCore.axios.get(`user-application/admin/${params.userApplicationId}`)).data;
11
- };
12
- exports.getUserApplicationAdmin = getUserApplicationAdmin;
13
- const resetApiKeyUserApplicationAdmin = async (params) => {
14
- return (await __1.AbyssMonitorCore.axios.post(`user-application/admin/${params.userApplicationId}/reset-api-key`)).data;
15
- };
16
- exports.resetApiKeyUserApplicationAdmin = resetApiKeyUserApplicationAdmin;
17
- const createUserApplicationAdmin = async (body) => {
18
- return (await __1.AbyssMonitorCore.axios.post(`user-application/admin`, body)).data;
19
- };
20
- exports.createUserApplicationAdmin = createUserApplicationAdmin;
21
- const deleteUserApplicationAdmin = async (params) => {
22
- return (await __1.AbyssMonitorCore.axios.delete(`user-application/admin/${params.userApplicationId}`)).data;
23
- };
24
- exports.deleteUserApplicationAdmin = deleteUserApplicationAdmin;
@@ -1,10 +0,0 @@
1
- import { IGetAnalyticsUserApplicationParams, IGetAnalyticsUserApplicationResponse, IGetEndpointAnalyticsUserApplicationParams, IGetEndpointAnalyticsUserApplicationResponse, IGetEndpointOnPeriodAnalyticsUserApplicationParams, IGetEndpointOnPeriodAnalyticsUserApplicationQuery, IGetEndpointOnPeriodAnalyticsUserApplicationResponse, IGetLogAnalyticsUserApplicationParams, IGetLogAnalyticsUserApplicationResponse, IGetSlowerEndpointAnalyticsUserApplicationParams, IGetSlowerEndpointAnalyticsUserApplicationResponse, IGetStatsAnalyticsUserApplicationParams, IGetStatsAnalyticsUserApplicationQuery, IGetStatsAnalyticsUserApplicationResponse, IGetUserApplicationParams, IGetUserApplicationResponse, IPaginateUserApplicationQuery, IPaginateUserApplicationResponse, IResetApiKeyUserApplicationParams, IResetApiKeyUserApplicationResponse } from '../types';
2
- export declare const paginateUserApplication: (query: IPaginateUserApplicationQuery) => Promise<IPaginateUserApplicationResponse>;
3
- export declare const getUserApplication: (params: IGetUserApplicationParams) => Promise<IGetUserApplicationResponse>;
4
- export declare const resetApiKeyUserApplication: (params: IResetApiKeyUserApplicationParams) => Promise<IResetApiKeyUserApplicationResponse>;
5
- export declare const getLogAnalyticsUserApplication: (params: IGetLogAnalyticsUserApplicationParams) => Promise<IGetLogAnalyticsUserApplicationResponse>;
6
- export declare const getAnalyticsUserApplication: (params: IGetAnalyticsUserApplicationParams) => Promise<IGetAnalyticsUserApplicationResponse>;
7
- export declare const getStatsAnalyticsUserApplication: (params: IGetStatsAnalyticsUserApplicationParams, query: IGetStatsAnalyticsUserApplicationQuery) => Promise<IGetStatsAnalyticsUserApplicationResponse>;
8
- export declare const getEndpointAnalyticsUserApplication: (params: IGetEndpointAnalyticsUserApplicationParams) => Promise<IGetEndpointAnalyticsUserApplicationResponse>;
9
- export declare const getEndpointOnPeriodAnalyticsUserApplication: (params: IGetEndpointOnPeriodAnalyticsUserApplicationParams, query: IGetEndpointOnPeriodAnalyticsUserApplicationQuery) => Promise<IGetEndpointOnPeriodAnalyticsUserApplicationResponse>;
10
- export declare const getSlowerEndpointAnalyticsUserApplication: (params: IGetSlowerEndpointAnalyticsUserApplicationParams) => Promise<IGetSlowerEndpointAnalyticsUserApplicationResponse>;
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getSlowerEndpointAnalyticsUserApplication = exports.getEndpointOnPeriodAnalyticsUserApplication = exports.getEndpointAnalyticsUserApplication = exports.getStatsAnalyticsUserApplication = exports.getAnalyticsUserApplication = exports.getLogAnalyticsUserApplication = exports.resetApiKeyUserApplication = exports.getUserApplication = exports.paginateUserApplication = void 0;
4
- const __1 = require("..");
5
- const paginateUserApplication = async (query) => {
6
- return (await __1.AbyssMonitorCore.axios.get(`user-application/paginate`, { params: query })).data;
7
- };
8
- exports.paginateUserApplication = paginateUserApplication;
9
- const getUserApplication = async (params) => {
10
- return (await __1.AbyssMonitorCore.axios.get(`user-application/${params.userApplicationId}`)).data;
11
- };
12
- exports.getUserApplication = getUserApplication;
13
- const resetApiKeyUserApplication = async (params) => {
14
- return (await __1.AbyssMonitorCore.axios.post(`user-application/${params.userApplicationId}/reset-api-key`)).data;
15
- };
16
- exports.resetApiKeyUserApplication = resetApiKeyUserApplication;
17
- const getLogAnalyticsUserApplication = async (params) => {
18
- return (await __1.AbyssMonitorCore.axios.get(`user-application/${params.userApplicationId}/log-analytics`)).data;
19
- };
20
- exports.getLogAnalyticsUserApplication = getLogAnalyticsUserApplication;
21
- const getAnalyticsUserApplication = async (params) => {
22
- return (await __1.AbyssMonitorCore.axios.get(`user-application/${params.userApplicationId}/analytics`)).data;
23
- };
24
- exports.getAnalyticsUserApplication = getAnalyticsUserApplication;
25
- const getStatsAnalyticsUserApplication = async (params, query) => {
26
- return (await __1.AbyssMonitorCore.axios.get(`user-application/${params.userApplicationId}/stats-analytics`, { params: query })).data;
27
- };
28
- exports.getStatsAnalyticsUserApplication = getStatsAnalyticsUserApplication;
29
- const getEndpointAnalyticsUserApplication = async (params) => {
30
- return (await __1.AbyssMonitorCore.axios.get(`user-application/${params.userApplicationId}/endpoint-analytics`)).data;
31
- };
32
- exports.getEndpointAnalyticsUserApplication = getEndpointAnalyticsUserApplication;
33
- const getEndpointOnPeriodAnalyticsUserApplication = async (params, query) => {
34
- return (await __1.AbyssMonitorCore.axios.get(`user-application/${params.userApplicationId}/endpoint-analytics-on-period`, { params: query })).data;
35
- };
36
- exports.getEndpointOnPeriodAnalyticsUserApplication = getEndpointOnPeriodAnalyticsUserApplication;
37
- const getSlowerEndpointAnalyticsUserApplication = async (params) => {
38
- return (await __1.AbyssMonitorCore.axios.get(`user-application/${params.userApplicationId}/slower-endpoint-analytics`)).data;
39
- };
40
- exports.getSlowerEndpointAnalyticsUserApplication = getSlowerEndpointAnalyticsUserApplication;
@@ -1,5 +0,0 @@
1
- import { IGetUserAdminParams, IGetUserAdminResponse, IUpdateUserAdminParams, IUpdateUserAdminResponse, IUpdateUserAdminBody, IPaginateUserAdminResponse, IPaginateUserAdminQuery, IResetApiKeyUserAdminResponse, IResetApiKeyUserAdminParams } from '..';
2
- export declare const getUserAdmin: (params: IGetUserAdminParams) => Promise<IGetUserAdminResponse>;
3
- export declare const resetApiKeyUserAdmin: (params: IResetApiKeyUserAdminParams) => Promise<IResetApiKeyUserAdminResponse>;
4
- export declare const paginateUserAdmin: (query: IPaginateUserAdminQuery) => Promise<IPaginateUserAdminResponse>;
5
- export declare const updateUserAdmin: (params: IUpdateUserAdminParams, body: IUpdateUserAdminBody) => Promise<IUpdateUserAdminResponse>;
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.updateUserAdmin = exports.paginateUserAdmin = exports.resetApiKeyUserAdmin = exports.getUserAdmin = void 0;
4
- const __1 = require("..");
5
- const getUserAdmin = async (params) => {
6
- return (await __1.AbyssMonitorCore.axios.get(`user/admin/${params.userId}`))
7
- .data;
8
- };
9
- exports.getUserAdmin = getUserAdmin;
10
- const resetApiKeyUserAdmin = async (params) => {
11
- return (await __1.AbyssMonitorCore.axios.post(`user/admin/${params.userId}`)).data;
12
- };
13
- exports.resetApiKeyUserAdmin = resetApiKeyUserAdmin;
14
- const paginateUserAdmin = async (query) => {
15
- return (await __1.AbyssMonitorCore.axios.get(`user/admin/paginate`, {
16
- params: query,
17
- })).data;
18
- };
19
- exports.paginateUserAdmin = paginateUserAdmin;
20
- const updateUserAdmin = async (params, body) => {
21
- return (await __1.AbyssMonitorCore.axios.put(`user/admin/${params.userId}`, body)).data;
22
- };
23
- exports.updateUserAdmin = updateUserAdmin;
@@ -1,4 +0,0 @@
1
- import { IMeUserResponse, IUpdateUserBody, IUpdateUserResponse, IResetApiKeyUserResponse } from '..';
2
- export declare const meUser: () => Promise<IMeUserResponse>;
3
- export declare const updateUser: (body: IUpdateUserBody) => Promise<IUpdateUserResponse>;
4
- export declare const resetApiKeyUser: () => Promise<IResetApiKeyUserResponse>;
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.resetApiKeyUser = exports.updateUser = exports.meUser = void 0;
4
- const __1 = require("..");
5
- const meUser = async () => {
6
- return (await __1.AbyssMonitorCore.axios.get(`user/me`)).data;
7
- };
8
- exports.meUser = meUser;
9
- const updateUser = async (body) => {
10
- return (await __1.AbyssMonitorCore.axios.put(`user/me`, body)).data;
11
- };
12
- exports.updateUser = updateUser;
13
- const resetApiKeyUser = async () => {
14
- return (await __1.AbyssMonitorCore.axios.post(`user/me/reset-api-key`))
15
- .data;
16
- };
17
- exports.resetApiKeyUser = resetApiKeyUser;
package/dist/consts.d.ts DELETED
@@ -1,2 +0,0 @@
1
- export declare const MAX_NUMBER_OF_ALERT = 12;
2
- export declare const MAX_NUMBER_OF_CRON_TASK = 6;
package/dist/consts.js DELETED
@@ -1,5 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.MAX_NUMBER_OF_CRON_TASK = exports.MAX_NUMBER_OF_ALERT = void 0;
4
- exports.MAX_NUMBER_OF_ALERT = 12;
5
- exports.MAX_NUMBER_OF_CRON_TASK = 6;
@@ -1,6 +0,0 @@
1
- export declare enum LogType {
2
- API = 1,
3
- SYSTEM_STARTUP = 4,
4
- STORAGE_SERVICE = 10,
5
- OTHER = 100
6
- }
@@ -1,10 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LogType = void 0;
4
- var LogType;
5
- (function (LogType) {
6
- LogType[LogType["API"] = 1] = "API";
7
- LogType[LogType["SYSTEM_STARTUP"] = 4] = "SYSTEM_STARTUP";
8
- LogType[LogType["STORAGE_SERVICE"] = 10] = "STORAGE_SERVICE";
9
- LogType[LogType["OTHER"] = 100] = "OTHER";
10
- })(LogType = exports.LogType || (exports.LogType = {}));
@@ -1,5 +0,0 @@
1
- export declare enum UserApplicationAlertType {
2
- CRON_TASK = "CRON_TASK",
3
- LOG = "LOG",
4
- STATS = "STATS"
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserApplicationAlertType = void 0;
4
- var UserApplicationAlertType;
5
- (function (UserApplicationAlertType) {
6
- UserApplicationAlertType["CRON_TASK"] = "CRON_TASK";
7
- UserApplicationAlertType["LOG"] = "LOG";
8
- UserApplicationAlertType["STATS"] = "STATS";
9
- })(UserApplicationAlertType = exports.UserApplicationAlertType || (exports.UserApplicationAlertType = {}));
@@ -1,5 +0,0 @@
1
- export declare enum UserApplicationStatsType {
2
- CPU_USAGE = 10,
3
- RAM_USAGE = 20,
4
- DISK_USAGE = 30
5
- }
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserApplicationStatsType = void 0;
4
- var UserApplicationStatsType;
5
- (function (UserApplicationStatsType) {
6
- UserApplicationStatsType[UserApplicationStatsType["CPU_USAGE"] = 10] = "CPU_USAGE";
7
- UserApplicationStatsType[UserApplicationStatsType["RAM_USAGE"] = 20] = "RAM_USAGE";
8
- UserApplicationStatsType[UserApplicationStatsType["DISK_USAGE"] = 30] = "DISK_USAGE";
9
- })(UserApplicationStatsType = exports.UserApplicationStatsType || (exports.UserApplicationStatsType = {}));
@@ -1,4 +0,0 @@
1
- export interface IActivateUserServiceAbyssAdminBody {
2
- userId: string;
3
- alias: string;
4
- }
@@ -1,8 +0,0 @@
1
- import { LogLevel, QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- export interface IGetLogConsoleAdminParams extends core.ParamsDictionary {
4
- logConsoleId: string;
5
- }
6
- export declare type IPaginateLoggerAdminQuery = QueryPaginate & {
7
- level?: LogLevel;
8
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,44 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- import { UserApplicationAlertType, WebhookType } from '../../../enum';
4
- import { UserApplicationAlertConfiguration } from '../../models/user-application-alert.model';
5
- export interface IGetUserApplicationAlertAdminParams extends core.ParamsDictionary {
6
- userApplicationAlertId: string;
7
- }
8
- export interface ICreateUserApplicationAlertAdminParams extends core.ParamsDictionary {
9
- userApplicationId: string;
10
- }
11
- export interface ICreateUserApplicationAlertAdminBody {
12
- name: string;
13
- description?: string | null;
14
- isEnabled?: boolean;
15
- type: UserApplicationAlertType;
16
- configuration: UserApplicationAlertConfiguration;
17
- webhookUrl: string;
18
- webhookType: WebhookType;
19
- }
20
- export interface IUpdateUserApplicationAlertAdminParams extends core.ParamsDictionary {
21
- userApplicationAlertId: string;
22
- }
23
- export interface IUpdateUserApplicationAlertAdminBody {
24
- name?: string;
25
- description?: string | null;
26
- isEnabled?: boolean;
27
- type?: UserApplicationAlertType;
28
- configuration?: UserApplicationAlertConfiguration;
29
- webhookUrl?: string;
30
- webhookType?: WebhookType;
31
- }
32
- export interface IDeleteUserApplicationAlertAdminParams extends core.ParamsDictionary {
33
- userApplicationAlertId: string;
34
- }
35
- export declare type IPaginateUserApplicationAlertAdminQuery = {
36
- type?: UserApplicationAlertType[];
37
- webhookType?: WebhookType[];
38
- name?: string;
39
- isEnabled?: boolean;
40
- userApplicationId?: string[];
41
- } & QueryPaginate;
42
- export interface IClearWarnUserApplicationAlertAdminParams extends core.ParamsDictionary {
43
- userApplicationAlertId: string;
44
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,50 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- import { UserApplicationAlertType, WebhookType } from '../../../enum';
4
- import { UserApplicationAlertConfiguration } from '../../models/user-application-alert.model';
5
- export interface IGetUserApplicationAlertParams extends core.ParamsDictionary {
6
- userApplicationId: string;
7
- userApplicationAlertId: string;
8
- }
9
- export interface ICreateUserApplicationAlertParams extends core.ParamsDictionary {
10
- userApplicationId: string;
11
- }
12
- export interface ICreateUserApplicationAlertBody {
13
- name: string;
14
- description?: string | null;
15
- isEnabled?: boolean;
16
- type: UserApplicationAlertType;
17
- configuration: UserApplicationAlertConfiguration;
18
- webhookUrl: string;
19
- webhookType: WebhookType;
20
- }
21
- export interface IUpdateUserApplicationAlertParams extends core.ParamsDictionary {
22
- userApplicationId: string;
23
- userApplicationAlertId: string;
24
- }
25
- export interface IUpdateUserApplicationAlertBody {
26
- name?: string;
27
- description?: string | null;
28
- isEnabled?: boolean;
29
- type?: UserApplicationAlertType;
30
- configuration?: UserApplicationAlertConfiguration;
31
- webhookUrl?: string;
32
- webhookType?: WebhookType;
33
- }
34
- export interface IDeleteUserApplicationAlertParams extends core.ParamsDictionary {
35
- userApplicationId: string;
36
- userApplicationAlertId: string;
37
- }
38
- export interface IPaginateUserApplicationAlertParams extends core.ParamsDictionary {
39
- userApplicationId: string;
40
- }
41
- export declare type IPaginateUserApplicationAlertQuery = {
42
- type?: UserApplicationAlertType[];
43
- webhookType?: WebhookType[];
44
- name?: string;
45
- isEnabled?: boolean;
46
- } & QueryPaginate;
47
- export interface IClearWarnUserApplicationAlertParams extends core.ParamsDictionary {
48
- userApplicationId: string;
49
- userApplicationAlertId: string;
50
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,48 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- export interface IGetUserApplicationCronTaskAdminParams extends core.ParamsDictionary {
4
- userApplicationCronTaskId: string;
5
- }
6
- export interface IGetHistoryUserApplicationCronTaskAdminParams extends core.ParamsDictionary {
7
- userApplicationCronTaskHistoryId: string;
8
- }
9
- export interface ICreateUserApplicationCronTaskAdminParams extends core.ParamsDictionary {
10
- userApplicationId: string;
11
- }
12
- export interface ICreateUserApplicationCronTaskAdminBody {
13
- name: string;
14
- webhookUrl: string;
15
- scheduleConfiguration: string;
16
- description?: string | null;
17
- isActivated?: boolean;
18
- }
19
- export declare type IPaginateUserApplicationCronTaskAdminQuery = {
20
- name?: string[];
21
- description?: string[];
22
- webhookUrl?: string[];
23
- isActivated?: boolean;
24
- userApplicationId?: string[];
25
- } & QueryPaginate;
26
- export interface IUpdateUserApplicationCronTaskAdminParams extends core.ParamsDictionary {
27
- userApplicationCronTaskId: string;
28
- }
29
- export interface IUpdateUserApplicationCronTaskAdminBody {
30
- name?: string;
31
- webhookUrl?: string;
32
- scheduleConfiguration?: string;
33
- description?: string | null;
34
- isActivated?: boolean;
35
- }
36
- export declare type IPaginateHistoryUserApplicationCronTaskAdminQuery = {
37
- startDateMin?: Date;
38
- startDateMax?: Date;
39
- requestId?: string[];
40
- userApplicationId?: string[];
41
- userApplicationCronTaskId?: string[];
42
- } & QueryPaginate;
43
- export interface IDeleteUserApplicationCronTaskAdminParams extends core.ParamsDictionary {
44
- userApplicationCronTaskId: string;
45
- }
46
- export interface IRegenerateSecretUserApplicationCronTaskAdminParams extends core.ParamsDictionary {
47
- userApplicationCronTaskId: string;
48
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,58 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- export interface IGetUserApplicationCronTaskParams extends core.ParamsDictionary {
4
- userApplicationId: string;
5
- userApplicationCronTaskId: string;
6
- }
7
- export interface IGetHistoryUserApplicationCronTaskParams extends core.ParamsDictionary {
8
- userApplicationId: string;
9
- userApplicationCronTaskId: string;
10
- userApplicationCronTaskHistoryId: string;
11
- }
12
- export interface ICreateUserApplicationCronTaskParams extends core.ParamsDictionary {
13
- userApplicationId: string;
14
- }
15
- export interface ICreateUserApplicationCronTaskBody {
16
- name: string;
17
- webhookUrl: string;
18
- scheduleConfiguration: string;
19
- description?: string | null;
20
- isActivated?: boolean;
21
- }
22
- export interface IPaginateUserApplicationCronTaskParams extends core.ParamsDictionary {
23
- userApplicationId: string;
24
- }
25
- export declare type IPaginateUserApplicationCronTaskQuery = {
26
- name?: string[];
27
- description?: string[];
28
- webhookUrl?: string[];
29
- isActivated?: boolean;
30
- } & QueryPaginate;
31
- export interface IUpdateUserApplicationCronTaskParams extends core.ParamsDictionary {
32
- userApplicationId: string;
33
- userApplicationCronTaskId: string;
34
- }
35
- export interface IUpdateUserApplicationCronTaskBody {
36
- name?: string;
37
- webhookUrl?: string;
38
- scheduleConfiguration?: string;
39
- description?: string | null;
40
- isActivated?: boolean;
41
- }
42
- export interface IPaginateHistoryUserApplicationCronTaskParams extends core.ParamsDictionary {
43
- userApplicationId: string;
44
- userApplicationCronTaskId: string;
45
- }
46
- export declare type IPaginateHistoryUserApplicationCronTaskQuery = {
47
- startDateMin?: Date;
48
- startDateMax?: Date;
49
- requestId?: string[];
50
- } & QueryPaginate;
51
- export interface IDeleteUserApplicationCronTaskParams extends core.ParamsDictionary {
52
- userApplicationId: string;
53
- userApplicationCronTaskId: string;
54
- }
55
- export interface IRegenerateSecretUserApplicationCronTaskParams extends core.ParamsDictionary {
56
- userApplicationId: string;
57
- userApplicationCronTaskId: string;
58
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,20 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- import { LogLevel } from '../../../enum';
4
- export interface IGetUserApplicationLogAdminParams extends core.ParamsDictionary {
5
- userApplicationLogId: string;
6
- }
7
- export declare type IPaginateUserApplicationLogAdminQuery = QueryPaginate & {
8
- title?: string;
9
- message?: string;
10
- level?: LogLevel[];
11
- context?: string;
12
- scenario?: string;
13
- requestId?: string;
14
- processId?: string;
15
- dateValueBefore?: Date;
16
- dateValueAfter?: Date;
17
- userApplicationId?: string[];
18
- orderByDateAsc?: boolean;
19
- shouldGetOnlyLogEndpoint?: boolean;
20
- };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,51 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- import { APIMethod, LogLevel } from '../../../enum';
4
- export interface IGetUserApplicationLogParams extends core.ParamsDictionary {
5
- userApplicationId: string;
6
- userApplicationLogId: string;
7
- }
8
- export interface IPaginateUserApplicationLogParams extends core.ParamsDictionary {
9
- userApplicationId: string;
10
- }
11
- export declare type IPaginateUserApplicationLogQuery = QueryPaginate & {
12
- title?: string;
13
- message?: string;
14
- level?: LogLevel[];
15
- context?: string;
16
- scenario?: string;
17
- requestId?: string;
18
- processId?: string;
19
- dateValueBefore?: Date;
20
- dateValueAfter?: Date;
21
- orderByDateAsc?: boolean;
22
- shouldGetOnlyLogEndpoint?: boolean;
23
- };
24
- export interface ICreateUserApplicationLogParams extends core.ParamsDictionary {
25
- userApplicationId: string;
26
- }
27
- export interface ICreateUserApplicationLogBody {
28
- title?: string | null;
29
- message: string;
30
- level: LogLevel;
31
- context?: string | null;
32
- processId: string;
33
- requestId?: string | null;
34
- scenario?: string | null;
35
- dateValue: Date;
36
- data?: Record<string, unknown> | null;
37
- stack?: string | null;
38
- userApplicationLogEndpoint?: {
39
- authentication?: string | null;
40
- controller: string;
41
- endpoint: string;
42
- ip: string[];
43
- method: APIMethod;
44
- responseTime: number;
45
- responseHttpCode: number;
46
- requestParams?: Record<string, string> | null;
47
- requestQuery?: Record<string, string | string[]> | null;
48
- requestBody?: Record<string, unknown> | string | null;
49
- responseBody?: Record<string, unknown> | string | null;
50
- };
51
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- import { UserApplicationStatsType } from '../../../enum';
4
- export interface IGetUserApplicationStatsAdminParams extends core.ParamsDictionary {
5
- userApplicationStatsId: string;
6
- }
7
- export declare type IPaginateUserApplicationStatsAdminQuery = {
8
- type?: UserApplicationStatsType[];
9
- dateValueBefore?: Date;
10
- dateValueAfter?: Date;
11
- processId?: string[];
12
- orderByDateAsc?: boolean;
13
- userApplicationId?: string[];
14
- } & QueryPaginate;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,29 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- import { UserApplicationStatsType } from '../../../enum';
4
- export interface IGetUserApplicationStatsParams extends core.ParamsDictionary {
5
- userApplicationId: string;
6
- userApplicationStatsId: string;
7
- }
8
- export interface ICreateUserApplicationStatsParams extends core.ParamsDictionary {
9
- userApplicationId: string;
10
- }
11
- export interface ICreateUserApplicationStatsBody {
12
- stats: {
13
- type: UserApplicationStatsType;
14
- dateValue: Date;
15
- processId: string;
16
- value: number;
17
- percentValue: number;
18
- }[];
19
- }
20
- export interface IPaginateUserApplicationStatsParams extends core.ParamsDictionary {
21
- userApplicationId: string;
22
- }
23
- export declare type IPaginateUserApplicationStatsQuery = {
24
- type?: UserApplicationStatsType[];
25
- dateValueBefore?: Date;
26
- dateValueAfter?: Date;
27
- processId?: string[];
28
- orderByDateAsc?: boolean;
29
- } & QueryPaginate;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- export interface IGetUserApplicationAdminParams extends core.ParamsDictionary {
4
- userApplicationId: string;
5
- }
6
- export interface IResetApiKeyUserApplicationAdminParams extends core.ParamsDictionary {
7
- userApplicationId: string;
8
- }
9
- export declare type IPaginateUserApplicationAdminQuery = QueryPaginate;
10
- export declare type ICreateUserApplicationAdminBody = {
11
- externalUserApplicationId: string;
12
- };
13
- export interface IDeleteUserApplicationAdminParams extends core.ParamsDictionary {
14
- userApplicationId: string;
15
- }