@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,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,35 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- export interface IGetUserApplicationParams extends core.ParamsDictionary {
4
- userApplicationId: string;
5
- }
6
- export interface IResetApiKeyUserApplicationParams extends core.ParamsDictionary {
7
- userApplicationId: string;
8
- }
9
- export declare type IPaginateUserApplicationQuery = QueryPaginate;
10
- export interface IGetLogAnalyticsUserApplicationParams extends core.ParamsDictionary {
11
- userApplicationId: string;
12
- }
13
- export interface IGetAnalyticsUserApplicationParams extends core.ParamsDictionary {
14
- userApplicationId: string;
15
- }
16
- export interface IGetStatsAnalyticsUserApplicationParams extends core.ParamsDictionary {
17
- userApplicationId: string;
18
- }
19
- export interface IGetStatsAnalyticsUserApplicationQuery {
20
- dateValueBefore?: Date;
21
- dateValueAfter?: Date;
22
- }
23
- export interface IGetEndpointAnalyticsUserApplicationParams extends core.ParamsDictionary {
24
- userApplicationId: string;
25
- }
26
- export interface IGetEndpointOnPeriodAnalyticsUserApplicationParams extends core.ParamsDictionary {
27
- userApplicationId: string;
28
- }
29
- export interface IGetEndpointOnPeriodAnalyticsUserApplicationQuery {
30
- dateValueBefore?: Date;
31
- dateValueAfter?: Date;
32
- }
33
- export interface IGetSlowerEndpointAnalyticsUserApplicationParams extends core.ParamsDictionary {
34
- userApplicationId: string;
35
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,18 +0,0 @@
1
- import { QueryPaginate } from 'abyss_core';
2
- import * as core from 'express-serve-static-core';
3
- export interface IGetUserAdminParams extends core.ParamsDictionary {
4
- userId: string;
5
- }
6
- export interface IResetApiKeyUserAdminParams extends core.ParamsDictionary {
7
- userId: string;
8
- }
9
- export declare type IPaginateUserAdminQuery = {
10
- alias?: string;
11
- } & QueryPaginate;
12
- export interface IUpdateUserAdminParams extends core.ParamsDictionary {
13
- userId: string;
14
- }
15
- export interface IUpdateUserAdminBody {
16
- alias?: string;
17
- isAdmin?: boolean;
18
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +0,0 @@
1
- export interface IUpdateUserBody {
2
- alias: string;
3
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,6 +0,0 @@
1
- import { IUser } from '../../models/user.model';
2
- import { IResponse } from '../type-message/response';
3
- export interface IActivateUserServiceAbyssAdminData {
4
- user: IUser;
5
- }
6
- export declare type IActivateUserServiceAbyssAdminResponse = IResponse<IActivateUserServiceAbyssAdminData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse } from '../..';
3
- export declare type IPaginateLoggerAdminResponse = IResponse<BasePaginate<null>>;
4
- export interface IGetLogConsoleAdminData {
5
- logConsole: null;
6
- }
7
- export declare type IGetLogConsoleAdminResponse = IResponse<IGetLogConsoleAdminData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplicationAlert } from '../..';
3
- export interface IGetUserApplicationAlertAdminData {
4
- userApplicationAlert: IUserApplicationAlert;
5
- }
6
- export declare type IGetUserApplicationAlertAdminResponse = IResponse<IGetUserApplicationAlertAdminData>;
7
- export declare type IPaginateUserApplicationAlertAdminResponse = IResponse<BasePaginate<IUserApplicationAlert>>;
8
- export interface ICreateUserApplicationAlertAdminData {
9
- userApplicationAlert: IUserApplicationAlert;
10
- }
11
- export declare type ICreateUserApplicationAlertAdminResponse = IResponse<ICreateUserApplicationAlertAdminData>;
12
- export interface IUpdateUserApplicationAlertAdminData {
13
- userApplicationAlert: IUserApplicationAlert;
14
- }
15
- export declare type IUpdateUserApplicationAlertAdminResponse = IResponse<IUpdateUserApplicationAlertAdminData>;
16
- export interface IDeleteUserApplicationAlertAdminData {
17
- }
18
- export declare type IDeleteUserApplicationAlertAdminResponse = IResponse<IDeleteUserApplicationAlertAdminData>;
19
- export interface IClearWarnUserApplicationAlertAdminData {
20
- userApplicationAlert: IUserApplicationAlert;
21
- }
22
- export declare type IClearWarnUserApplicationAlertAdminResponse = IResponse<IClearWarnUserApplicationAlertAdminData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplicationAlert } from '../..';
3
- export interface IGetUserApplicationAlertData {
4
- userApplicationAlert: IUserApplicationAlert;
5
- }
6
- export declare type IGetUserApplicationAlertResponse = IResponse<IGetUserApplicationAlertData>;
7
- export declare type IPaginateUserApplicationAlertResponse = IResponse<BasePaginate<IUserApplicationAlert>>;
8
- export interface ICreateUserApplicationAlertData {
9
- userApplicationAlert: IUserApplicationAlert;
10
- }
11
- export declare type ICreateUserApplicationAlertResponse = IResponse<ICreateUserApplicationAlertData>;
12
- export interface IUpdateUserApplicationAlertData {
13
- userApplicationAlert: IUserApplicationAlert;
14
- }
15
- export declare type IUpdateUserApplicationAlertResponse = IResponse<IUpdateUserApplicationAlertData>;
16
- export interface IDeleteUserApplicationAlertData {
17
- }
18
- export declare type IDeleteUserApplicationAlertResponse = IResponse<IDeleteUserApplicationAlertData>;
19
- export interface IClearWarnUserApplicationAlertData {
20
- userApplicationAlert: IUserApplicationAlert;
21
- }
22
- export declare type IClearWarnUserApplicationAlertResponse = IResponse<IClearWarnUserApplicationAlertData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,27 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplicationCronTask, IUserApplicationCronTaskHistory } from '../..';
3
- export interface IGetUserApplicationCronTaskAdminData {
4
- userApplicationCronTask: IUserApplicationCronTask;
5
- }
6
- export declare type IGetUserApplicationCronTaskAdminResponse = IResponse<IGetUserApplicationCronTaskAdminData>;
7
- export interface IUpdateUserApplicationCronTaskAdminData {
8
- userApplicationCronTask: IUserApplicationCronTask;
9
- }
10
- export declare type IUpdateUserApplicationCronTaskAdminResponse = IResponse<IUpdateUserApplicationCronTaskAdminData>;
11
- export declare type IPaginateUserApplicationCronTaskAdminResponse = IResponse<BasePaginate<IUserApplicationCronTask>>;
12
- export declare type IPaginateHistoryUserApplicationCronTaskAdminResponse = IResponse<BasePaginate<IUserApplicationCronTaskHistory>>;
13
- export interface ICreateUserApplicationCronTaskAdminData {
14
- userApplicationCronTask: IUserApplicationCronTask;
15
- }
16
- export declare type ICreateUserApplicationCronTaskAdminResponse = IResponse<ICreateUserApplicationCronTaskAdminData>;
17
- export interface IGetHistoryUserApplicationCronTaskAdminData {
18
- userApplicationCronTaskHistory: IUserApplicationCronTaskHistory;
19
- }
20
- export declare type IGetHistoryUserApplicationCronTaskAdminResponse = IResponse<IGetHistoryUserApplicationCronTaskAdminData>;
21
- export interface IDeleteUserApplicationCronTaskAdminData {
22
- }
23
- export declare type IDeleteUserApplicationCronTaskAdminResponse = IResponse<IDeleteUserApplicationCronTaskAdminData>;
24
- export interface IRegenerateSecretUserApplicationCronTaskAdminData {
25
- userApplicationCronTask: IUserApplicationCronTask;
26
- }
27
- export declare type IRegenerateSecretUserApplicationCronTaskAdminResponse = IResponse<IRegenerateSecretUserApplicationCronTaskAdminData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,27 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplicationCronTask, IUserApplicationCronTaskHistory } from '../..';
3
- export interface IGetUserApplicationCronTaskData {
4
- userApplicationCronTask: IUserApplicationCronTask;
5
- }
6
- export declare type IGetUserApplicationCronTaskResponse = IResponse<IGetUserApplicationCronTaskData>;
7
- export interface IGetHistoryUserApplicationCronTaskData {
8
- userApplicationCronTaskHistory: IUserApplicationCronTaskHistory;
9
- }
10
- export declare type IGetHistoryUserApplicationCronTaskResponse = IResponse<IGetHistoryUserApplicationCronTaskData>;
11
- export declare type IPaginateHistoryUserApplicationCronTaskResponse = IResponse<BasePaginate<IUserApplicationCronTaskHistory>>;
12
- export declare type IPaginateUserApplicationCronTaskResponse = IResponse<BasePaginate<IUserApplicationCronTask>>;
13
- export interface ICreateUserApplicationCronTaskData {
14
- userApplicationCronTask: IUserApplicationCronTask;
15
- }
16
- export declare type ICreateUserApplicationCronTaskResponse = IResponse<ICreateUserApplicationCronTaskData>;
17
- export interface IUpdateUserApplicationCronTaskData {
18
- userApplicationCronTask: IUserApplicationCronTask;
19
- }
20
- export declare type IUpdateUserApplicationCronTaskResponse = IResponse<IUpdateUserApplicationCronTaskData>;
21
- export interface IDeleteUserApplicationCronTaskData {
22
- }
23
- export declare type IDeleteUserApplicationCronTaskResponse = IResponse<IDeleteUserApplicationCronTaskData>;
24
- export interface IRegenerateSecretUserApplicationCronTaskData {
25
- userApplicationCronTask: IUserApplicationCronTask;
26
- }
27
- export declare type IRegenerateSecretUserApplicationCronTaskResponse = IResponse<IRegenerateSecretUserApplicationCronTaskData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplicationLog } from '../..';
3
- export declare type IPaginateUserApplicationLogAdminResponse = IResponse<BasePaginate<IUserApplicationLog>>;
4
- export interface IGetUserApplicationLogAdminData {
5
- userApplicationLog: IUserApplicationLog;
6
- }
7
- export declare type IGetUserApplicationLogAdminResponse = IResponse<IGetUserApplicationLogAdminData>;
8
- export interface ICreateUserApplicationLogAdminData {
9
- userApplicationLog: IUserApplicationLog;
10
- }
11
- export declare type ICreateUserApplicationLogAdminResponse = IResponse<ICreateUserApplicationLogAdminData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplicationLog } from '../..';
3
- export declare type IPaginateUserApplicationLogResponse = IResponse<BasePaginate<IUserApplicationLog>>;
4
- export interface IGetUserApplicationLogData {
5
- userApplicationLog: IUserApplicationLog;
6
- }
7
- export declare type IGetUserApplicationLogResponse = IResponse<IGetUserApplicationLogData>;
8
- export interface ICreateUserApplicationLogData {
9
- userApplicationLog: IUserApplicationLog;
10
- }
11
- export declare type ICreateUserApplicationLogResponse = IResponse<ICreateUserApplicationLogData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplicationStats } from '../..';
3
- export interface IGetUserApplicationStatsAdminData {
4
- userApplicationStats: IUserApplicationStats;
5
- }
6
- export declare type IGetUserApplicationStatsAdminResponse = IResponse<IGetUserApplicationStatsAdminData>;
7
- export declare type IPaginateUserApplicationStatsAdminResponse = IResponse<BasePaginate<IUserApplicationStats>>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplicationStats } from '../..';
3
- export interface IGetUserApplicationStatsData {
4
- userApplicationStats: IUserApplicationStats;
5
- }
6
- export declare type IGetUserApplicationStatsResponse = IResponse<IGetUserApplicationStatsData>;
7
- export declare type IPaginateUserApplicationStatsResponse = IResponse<BasePaginate<IUserApplicationStats>>;
8
- export interface ICreateUserApplicationStatsData {
9
- userApplicationStats: IUserApplicationStats[];
10
- }
11
- export declare type ICreateUserApplicationStatsResponse = IResponse<ICreateUserApplicationStatsData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplication } from '../..';
3
- export interface IGetUserApplicationAdminData {
4
- userApplication: IUserApplication;
5
- }
6
- export declare type IGetUserApplicationAdminResponse = IResponse<IGetUserApplicationAdminData>;
7
- export declare type IPaginateUserApplicationAdminResponse = IResponse<BasePaginate<IUserApplication>>;
8
- export interface IResetApiKeyUserApplicationAdminData {
9
- userApplication: IUserApplication;
10
- }
11
- export declare type IResetApiKeyUserApplicationAdminResponse = IResponse<IResetApiKeyUserApplicationAdminData>;
12
- export interface ICreateUserApplicationAdminData {
13
- userApplication: IUserApplication;
14
- }
15
- export declare type ICreateUserApplicationAdminResponse = IResponse<ICreateUserApplicationAdminData>;
16
- export declare type IDeleteUserApplicationAdminData = Record<string, never>;
17
- export declare type IDeleteUserApplicationAdminResponse = IResponse<IDeleteUserApplicationAdminData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,120 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUserApplication } from '../..';
3
- import { APIMethod } from '../../../enum';
4
- export interface IGetUserApplicationData {
5
- userApplication: IUserApplication;
6
- }
7
- export declare type IGetUserApplicationResponse = IResponse<IGetUserApplicationData>;
8
- export declare type IPaginateUserApplicationResponse = IResponse<BasePaginate<IUserApplication>>;
9
- export interface IResetApiKeyUserApplicationData {
10
- userApplication: IUserApplication;
11
- }
12
- export declare type IResetApiKeyUserApplicationResponse = IResponse<IResetApiKeyUserApplicationData>;
13
- export interface IGetLogAnalyticsUserApplicationData {
14
- firstLogDate: Date | null;
15
- logs: {
16
- log: number;
17
- warn: number;
18
- info: number;
19
- error: number;
20
- };
21
- totalLast24Hour: {
22
- log: number;
23
- warn: number;
24
- info: number;
25
- error: number;
26
- };
27
- logsPerDate: {
28
- log: number;
29
- warn: number;
30
- info: number;
31
- error: number;
32
- date: Date;
33
- }[];
34
- }
35
- export declare type IGetLogAnalyticsUserApplicationResponse = IResponse<IGetLogAnalyticsUserApplicationData>;
36
- export interface IGetAnalyticsUserApplicationData {
37
- statsLast24Hour: {
38
- cpu: number;
39
- ram: number;
40
- disk: number;
41
- };
42
- stats: {
43
- cpu: number;
44
- ram: number;
45
- disk: number;
46
- };
47
- cronTaskHistoryLast24Hour: number;
48
- cronTask: number;
49
- }
50
- export declare type IGetAnalyticsUserApplicationResponse = IResponse<IGetAnalyticsUserApplicationData>;
51
- export interface IGetStatsAnalyticsUserApplicationData {
52
- statsPerPeriod: {
53
- cpu: number | null;
54
- cpuPercent: number | null;
55
- ram: number | null;
56
- ramPercent: number | null;
57
- disk: number | null;
58
- diskPercent: number | null;
59
- date: Date;
60
- }[];
61
- firstDate: Date | null;
62
- }
63
- export declare type IGetStatsAnalyticsUserApplicationResponse = IResponse<IGetStatsAnalyticsUserApplicationData>;
64
- export interface IGetEndpointOnPeriodAnalyticsUserApplicationData {
65
- endpointPerPeriod: {
66
- informational: number;
67
- successful: number;
68
- redirection: number;
69
- clientError: number;
70
- serverError: number;
71
- averageResponseTime: number;
72
- upload: number;
73
- download: number;
74
- date: Date;
75
- }[];
76
- }
77
- export declare type IGetEndpointOnPeriodAnalyticsUserApplicationResponse = IResponse<IGetEndpointOnPeriodAnalyticsUserApplicationData>;
78
- export interface IGetEndpointAnalyticsUserApplicationData {
79
- ever: {
80
- total: number;
81
- informational: number;
82
- successful: number;
83
- redirection: number;
84
- clientError: number;
85
- serverError: number;
86
- averageResponseTime: number;
87
- upload: number;
88
- download: number;
89
- };
90
- endpointLast24Hour: {
91
- total: number;
92
- informational: number;
93
- successful: number;
94
- redirection: number;
95
- clientError: number;
96
- serverError: number;
97
- averageResponseTime: number;
98
- upload: number;
99
- download: number;
100
- };
101
- }
102
- export declare type IGetEndpointAnalyticsUserApplicationResponse = IResponse<IGetEndpointAnalyticsUserApplicationData>;
103
- export interface IGetSlowerEndpointAnalyticsUserApplicationData {
104
- slowerEndpoint: {
105
- minResponseTime: number;
106
- maxResponseTime: number;
107
- averageResponseTime: number;
108
- endpoint: string;
109
- controller: string;
110
- method: APIMethod;
111
- count: number;
112
- }[];
113
- slowerEndpointLast24Hour: {
114
- minResponseTime: number;
115
- maxResponseTime: number;
116
- averageResponseTime: number;
117
- count: number;
118
- }[];
119
- }
120
- export declare type IGetSlowerEndpointAnalyticsUserApplicationResponse = IResponse<IGetSlowerEndpointAnalyticsUserApplicationData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- import { BasePaginate } from 'abyss_core';
2
- import { IResponse, IUser } from '../..';
3
- export interface IGetUserAdminData {
4
- user: IUser;
5
- }
6
- export declare type IGetUserAdminResponse = IResponse<IGetUserAdminData>;
7
- export declare type IPaginateUserAdminResponse = IResponse<BasePaginate<IUser>>;
8
- export interface IUpdateUserAdminData {
9
- user: IUser;
10
- }
11
- export declare type IUpdateUserAdminResponse = IResponse<IUpdateUserAdminData>;
12
- export interface IResetApiKeyUserAdminData {
13
- user: IUser;
14
- }
15
- export declare type IResetApiKeyUserAdminResponse = IResponse<IResetApiKeyUserAdminData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { IResponse, IUser } from '../..';
2
- export interface IMeUserData {
3
- user: IUser;
4
- }
5
- export declare type IMeUserResponse = IResponse<IMeUserData>;
6
- export interface IResetApiKeyUserData {
7
- user: IUser;
8
- }
9
- export declare type IResetApiKeyUserResponse = IResponse<IResetApiKeyUserData>;
10
- export interface IUpdateUserData {
11
- user: IUser;
12
- }
13
- export declare type IUpdateUserResponse = IResponse<IUpdateUserData>;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,12 +0,0 @@
1
- import { ICronTask } from './cron-task.model';
2
- export interface ICronTaskHistory {
3
- id?: string;
4
- cronTaskId: string;
5
- startDate: Date;
6
- responseDate: Date;
7
- requestId: string | null;
8
- isAcknowledged: boolean;
9
- updatedAt?: Date;
10
- createdAt?: Date;
11
- cronTask?: ICronTask;
12
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,13 +0,0 @@
1
- import { IUserApplication } from './user-application.model';
2
- export interface ICronTask {
3
- id?: string;
4
- userApplicationId: string;
5
- name: string;
6
- description: string | null;
7
- scheduleConfiguration: string;
8
- webhookUrl: string;
9
- isActivated: boolean;
10
- updatedAt?: Date;
11
- createdAt?: Date;
12
- userApplication?: IUserApplication;
13
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,17 +0,0 @@
1
- import { LogType } from '../..';
2
- import { ILogEndpoint } from './log-endpoint.model';
3
- import { LogLevel } from 'abyss_core';
4
- export interface ILogConsole {
5
- id?: string;
6
- processId: number;
7
- context: string | null;
8
- requestId: string | null;
9
- level: LogLevel;
10
- message: string;
11
- stack: string | null;
12
- type: LogType;
13
- dateValue: Date;
14
- updatedAt?: Date;
15
- createdAt?: Date;
16
- logEndpoint?: ILogEndpoint;
17
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,22 +0,0 @@
1
- import { ILogConsole } from '..';
2
- import { APIMethod } from 'abyss_core';
3
- export interface ILogEndpoint {
4
- id?: string;
5
- requestId: string;
6
- processId: number;
7
- controller: string | null;
8
- endpoint: string;
9
- requestParams: Record<string, unknown>;
10
- requestQuery: Record<string, unknown>;
11
- requestBody: Record<string, unknown>;
12
- responseBody: Record<string, unknown>;
13
- httpResultCode: number;
14
- ips: string[];
15
- durationInMs: number;
16
- method: APIMethod;
17
- dateValue: Date;
18
- logConsoleId?: string;
19
- updatedAt?: Date;
20
- createdAt?: Date;
21
- logConsole?: ILogConsole;
22
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,44 +0,0 @@
1
- import { LogLevel, UserApplicationAlertType, UserApplicationStatsType, WebhookType } from '../../enum';
2
- import { IUserApplication } from './user-application.model';
3
- export declare type UserApplicationAlertConfiguration = {
4
- stats: {
5
- cpuUsageMax?: number;
6
- cpuPercentUsageMax?: number;
7
- ramUsageMax?: number;
8
- ramPercentUsageMax?: number;
9
- diskUsageMax?: number;
10
- diskPercentUsageMax?: number;
11
- }[];
12
- } | {
13
- log: {
14
- messageContains?: string;
15
- messageNotContains?: string;
16
- responseHttpCodeMin?: number;
17
- responseHttpCodeMax?: number;
18
- contextContains?: string;
19
- contextNotContains?: string;
20
- scenarioContains?: string;
21
- scenarioNotContains?: string;
22
- level?: LogLevel[];
23
- }[];
24
- } | {
25
- cronTask: {
26
- onSuccess?: boolean;
27
- onFailure?: boolean;
28
- };
29
- };
30
- export interface IUserApplicationAlert {
31
- id?: string;
32
- name: string;
33
- description: string | null;
34
- userApplicationId: string;
35
- type: UserApplicationAlertType;
36
- configuration: UserApplicationAlertConfiguration;
37
- isEnabled: boolean;
38
- webhookType: WebhookType;
39
- webhookUrl: string;
40
- activeWarn: UserApplicationStatsType[];
41
- updatedAt?: Date;
42
- createdAt?: Date;
43
- userApplication?: IUserApplication;
44
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { IUserApplicationCronTask } from './user-application-cron-task.model';
2
- export interface IUserApplicationCronTaskHistory {
3
- id?: string;
4
- userApplicationCronTaskId: string;
5
- startDate: Date;
6
- requestId: string | null;
7
- hasFailed: boolean | null;
8
- updatedAt?: Date;
9
- createdAt?: Date;
10
- userApplicationCronTask?: IUserApplicationCronTask;
11
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,14 +0,0 @@
1
- import { IUserApplication } from './user-application.model';
2
- export interface IUserApplicationCronTask {
3
- id?: string;
4
- userApplicationId: string;
5
- name: string;
6
- description: string | null;
7
- scheduleConfiguration: string;
8
- webhookUrl: string;
9
- webhookSecret: string;
10
- isActivated: boolean;
11
- updatedAt?: Date;
12
- createdAt?: Date;
13
- userApplication?: IUserApplication;
14
- }