@abyss-project/console 1.0.1

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 (284) hide show
  1. package/.eslintrc.js +34 -0
  2. package/README.md +2 -0
  3. package/USAGE_EXAMPLES.md +257 -0
  4. package/dist/api/application-cron-task.admin.api.d.ts +10 -0
  5. package/dist/api/application-cron-task.admin.api.js +40 -0
  6. package/dist/api/application-cron-task.api.d.ts +10 -0
  7. package/dist/api/application-cron-task.api.js +40 -0
  8. package/dist/api/application-event.admin.api.d.ts +4 -0
  9. package/dist/api/application-event.admin.api.js +16 -0
  10. package/dist/api/application-event.api.d.ts +8 -0
  11. package/dist/api/application-event.api.js +32 -0
  12. package/dist/api/application-log.admin.api.d.ts +3 -0
  13. package/dist/api/application-log.admin.api.js +12 -0
  14. package/dist/api/application-log.api.d.ts +4 -0
  15. package/dist/api/application-log.api.js +16 -0
  16. package/dist/api/application-sentinel.admin.api.d.ts +9 -0
  17. package/dist/api/application-sentinel.admin.api.js +36 -0
  18. package/dist/api/application-sentinel.api.d.ts +10 -0
  19. package/dist/api/application-sentinel.api.js +40 -0
  20. package/dist/api/application-stats.admin.api.d.ts +3 -0
  21. package/dist/api/application-stats.admin.api.js +12 -0
  22. package/dist/api/application-stats.api.d.ts +4 -0
  23. package/dist/api/application-stats.api.js +16 -0
  24. package/dist/api/application-webhook-history.admin.api.d.ts +3 -0
  25. package/dist/api/application-webhook-history.admin.api.js +12 -0
  26. package/dist/api/application-webhook-history.api.d.ts +3 -0
  27. package/dist/api/application-webhook-history.api.js +12 -0
  28. package/dist/api/application-webhook.admin.api.d.ts +7 -0
  29. package/dist/api/application-webhook.admin.api.js +28 -0
  30. package/dist/api/application-webhook.api.d.ts +7 -0
  31. package/dist/api/application-webhook.api.js +28 -0
  32. package/dist/api/application.admin.api.d.ts +7 -0
  33. package/dist/api/application.admin.api.js +28 -0
  34. package/dist/api/application.api.d.ts +10 -0
  35. package/dist/api/application.api.js +40 -0
  36. package/dist/api/domain-verification.admin.api.d.ts +2 -0
  37. package/dist/api/domain-verification.admin.api.js +9 -0
  38. package/dist/api/domain-verification.api.d.ts +7 -0
  39. package/dist/api/domain-verification.api.js +28 -0
  40. package/dist/api/hourly-metrics.api.d.ts +2 -0
  41. package/dist/api/hourly-metrics.api.js +8 -0
  42. package/dist/api/index.d.ts +5 -0
  43. package/dist/api/index.js +21 -0
  44. package/dist/api/infrastructure.admin.api.d.ts +3 -0
  45. package/dist/api/infrastructure.admin.api.js +12 -0
  46. package/dist/api/metrics.api.d.ts +4 -0
  47. package/dist/api/metrics.api.js +16 -0
  48. package/dist/api/monitor.api.d.ts +2 -0
  49. package/dist/api/monitor.api.js +8 -0
  50. package/dist/api/report.admin.api.d.ts +2 -0
  51. package/dist/api/report.admin.api.js +9 -0
  52. package/dist/api/workflow.admin.api.d.ts +8 -0
  53. package/dist/api/workflow.admin.api.js +34 -0
  54. package/dist/api/workflow.api.d.ts +15 -0
  55. package/dist/api/workflow.api.js +62 -0
  56. package/dist/frameworks/express/decorators.d.ts +52 -0
  57. package/dist/frameworks/express/decorators.js +163 -0
  58. package/dist/frameworks/express/index.d.ts +17 -0
  59. package/dist/frameworks/express/index.js +173 -0
  60. package/dist/frameworks/express/metadata.d.ts +9 -0
  61. package/dist/frameworks/express/metadata.js +12 -0
  62. package/dist/frameworks/index.d.ts +1 -0
  63. package/dist/frameworks/index.js +17 -0
  64. package/dist/index.d.ts +83 -0
  65. package/dist/index.js +163 -0
  66. package/dist/middlewares/context.middleware.d.ts +12 -0
  67. package/dist/middlewares/context.middleware.js +39 -0
  68. package/dist/middlewares/index.d.ts +3 -0
  69. package/dist/middlewares/index.js +19 -0
  70. package/dist/middlewares/logger-endpoint.middleware.d.ts +5 -0
  71. package/dist/middlewares/logger-endpoint.middleware.js +86 -0
  72. package/dist/middlewares/logger-setup.middleware.d.ts +5 -0
  73. package/dist/middlewares/logger-setup.middleware.js +16 -0
  74. package/dist/models/index.d.ts +1 -0
  75. package/dist/models/index.js +17 -0
  76. package/dist/models/logger.model.d.ts +61 -0
  77. package/dist/models/logger.model.js +201 -0
  78. package/dist/models/stats-publisher.model.d.ts +20 -0
  79. package/dist/models/stats-publisher.model.js +113 -0
  80. package/dist/types/dto/domain-verification.dto.d.ts +19 -0
  81. package/dist/types/dto/domain-verification.dto.js +2 -0
  82. package/dist/types/dto/index.d.ts +1 -0
  83. package/dist/types/dto/index.js +17 -0
  84. package/dist/types/enum/api-error.enum.d.ts +20 -0
  85. package/dist/types/enum/api-error.enum.js +25 -0
  86. package/dist/types/enum/api-method.enum.d.ts +7 -0
  87. package/dist/types/enum/api-method.enum.js +11 -0
  88. package/dist/types/enum/application-alert-type.enum.d.ts +5 -0
  89. package/dist/types/enum/application-alert-type.enum.js +9 -0
  90. package/dist/types/enum/application-sentinel-type.enum.d.ts +5 -0
  91. package/dist/types/enum/application-sentinel-type.enum.js +9 -0
  92. package/dist/types/enum/application-stats-type.enum.d.ts +5 -0
  93. package/dist/types/enum/application-stats-type.enum.js +9 -0
  94. package/dist/types/enum/application-webhook-scope.enum.d.ts +4 -0
  95. package/dist/types/enum/application-webhook-scope.enum.js +8 -0
  96. package/dist/types/enum/index.d.ts +1 -0
  97. package/dist/types/enum/index.js +17 -0
  98. package/dist/types/enum/log-level.enum.d.ts +6 -0
  99. package/dist/types/enum/log-level.enum.js +10 -0
  100. package/dist/types/enum/log-scenario.enum.d.ts +5 -0
  101. package/dist/types/enum/log-scenario.enum.js +9 -0
  102. package/dist/types/enum/time-period.enum.d.ts +0 -0
  103. package/dist/types/enum/time-period.enum.js +1 -0
  104. package/dist/types/index.d.ts +3 -0
  105. package/dist/types/index.js +19 -0
  106. package/dist/types/interface/api/index.d.ts +13 -0
  107. package/dist/types/interface/api/index.js +29 -0
  108. package/dist/types/interface/api/requests/application-cron-task.admin.request.d.ts +50 -0
  109. package/dist/types/interface/api/requests/application-cron-task.admin.request.js +2 -0
  110. package/dist/types/interface/api/requests/application-cron-task.request.d.ts +61 -0
  111. package/dist/types/interface/api/requests/application-cron-task.request.js +2 -0
  112. package/dist/types/interface/api/requests/application-event.admin.request.d.ts +16 -0
  113. package/dist/types/interface/api/requests/application-event.admin.request.js +2 -0
  114. package/dist/types/interface/api/requests/application-event.request.d.ts +50 -0
  115. package/dist/types/interface/api/requests/application-event.request.js +2 -0
  116. package/dist/types/interface/api/requests/application-log.admin.request.d.ts +19 -0
  117. package/dist/types/interface/api/requests/application-log.admin.request.js +2 -0
  118. package/dist/types/interface/api/requests/application-log.request.d.ts +59 -0
  119. package/dist/types/interface/api/requests/application-log.request.js +2 -0
  120. package/dist/types/interface/api/requests/application-sentinel.admin.request.d.ts +52 -0
  121. package/dist/types/interface/api/requests/application-sentinel.admin.request.js +2 -0
  122. package/dist/types/interface/api/requests/application-sentinel.request.d.ts +71 -0
  123. package/dist/types/interface/api/requests/application-sentinel.request.js +2 -0
  124. package/dist/types/interface/api/requests/application-stats.admin.request.d.ts +13 -0
  125. package/dist/types/interface/api/requests/application-stats.admin.request.js +2 -0
  126. package/dist/types/interface/api/requests/application-stats.request.d.ts +31 -0
  127. package/dist/types/interface/api/requests/application-stats.request.js +2 -0
  128. package/dist/types/interface/api/requests/application-webhook-history.admin.request.d.ts +16 -0
  129. package/dist/types/interface/api/requests/application-webhook-history.admin.request.js +2 -0
  130. package/dist/types/interface/api/requests/application-webhook-history.request.d.ts +21 -0
  131. package/dist/types/interface/api/requests/application-webhook-history.request.js +2 -0
  132. package/dist/types/interface/api/requests/application-webhook.admin.request.d.ts +39 -0
  133. package/dist/types/interface/api/requests/application-webhook.admin.request.js +2 -0
  134. package/dist/types/interface/api/requests/application-webhook.request.d.ts +45 -0
  135. package/dist/types/interface/api/requests/application-webhook.request.js +2 -0
  136. package/dist/types/interface/api/requests/application.admin.request.d.ts +23 -0
  137. package/dist/types/interface/api/requests/application.admin.request.js +2 -0
  138. package/dist/types/interface/api/requests/application.request.d.ts +64 -0
  139. package/dist/types/interface/api/requests/application.request.js +2 -0
  140. package/dist/types/interface/api/requests/domain-verification.admin.request.d.ts +5 -0
  141. package/dist/types/interface/api/requests/domain-verification.admin.request.js +2 -0
  142. package/dist/types/interface/api/requests/domain-verification.request.d.ts +29 -0
  143. package/dist/types/interface/api/requests/domain-verification.request.js +2 -0
  144. package/dist/types/interface/api/requests/hourly-metrics.request.d.ts +10 -0
  145. package/dist/types/interface/api/requests/hourly-metrics.request.js +2 -0
  146. package/dist/types/interface/api/requests/infrastructure.admin.request.d.ts +4 -0
  147. package/dist/types/interface/api/requests/infrastructure.admin.request.js +2 -0
  148. package/dist/types/interface/api/requests/metrics.admin.request.d.ts +14 -0
  149. package/dist/types/interface/api/requests/metrics.admin.request.js +2 -0
  150. package/dist/types/interface/api/requests/metrics.request.d.ts +23 -0
  151. package/dist/types/interface/api/requests/metrics.request.js +2 -0
  152. package/dist/types/interface/api/requests/report.admin.request.d.ts +6 -0
  153. package/dist/types/interface/api/requests/report.admin.request.js +2 -0
  154. package/dist/types/interface/api/requests/workflow.admin.request.d.ts +35 -0
  155. package/dist/types/interface/api/requests/workflow.admin.request.js +2 -0
  156. package/dist/types/interface/api/requests/workflow.request.d.ts +114 -0
  157. package/dist/types/interface/api/requests/workflow.request.js +2 -0
  158. package/dist/types/interface/api/responses/application-cron-task.admin.response.d.ts +30 -0
  159. package/dist/types/interface/api/responses/application-cron-task.admin.response.js +2 -0
  160. package/dist/types/interface/api/responses/application-cron-task.response.d.ts +30 -0
  161. package/dist/types/interface/api/responses/application-cron-task.response.js +2 -0
  162. package/dist/types/interface/api/responses/application-event.admin.response.d.ts +9 -0
  163. package/dist/types/interface/api/responses/application-event.admin.response.js +2 -0
  164. package/dist/types/interface/api/responses/application-event.response.d.ts +33 -0
  165. package/dist/types/interface/api/responses/application-event.response.js +2 -0
  166. package/dist/types/interface/api/responses/application-log.admin.response.d.ts +10 -0
  167. package/dist/types/interface/api/responses/application-log.admin.response.js +2 -0
  168. package/dist/types/interface/api/responses/application-log.response.d.ts +10 -0
  169. package/dist/types/interface/api/responses/application-log.response.js +2 -0
  170. package/dist/types/interface/api/responses/application-sentinel.admin.response.d.ts +26 -0
  171. package/dist/types/interface/api/responses/application-sentinel.admin.response.js +2 -0
  172. package/dist/types/interface/api/responses/application-sentinel.response.d.ts +33 -0
  173. package/dist/types/interface/api/responses/application-sentinel.response.js +2 -0
  174. package/dist/types/interface/api/responses/application-stats.admin.response.d.ts +6 -0
  175. package/dist/types/interface/api/responses/application-stats.admin.response.js +2 -0
  176. package/dist/types/interface/api/responses/application-stats.response.d.ts +10 -0
  177. package/dist/types/interface/api/responses/application-stats.response.js +2 -0
  178. package/dist/types/interface/api/responses/application-webhook-history.admin.response.d.ts +7 -0
  179. package/dist/types/interface/api/responses/application-webhook-history.admin.response.js +2 -0
  180. package/dist/types/interface/api/responses/application-webhook-history.response.d.ts +7 -0
  181. package/dist/types/interface/api/responses/application-webhook-history.response.js +2 -0
  182. package/dist/types/interface/api/responses/application-webhook.admin.response.d.ts +21 -0
  183. package/dist/types/interface/api/responses/application-webhook.admin.response.js +2 -0
  184. package/dist/types/interface/api/responses/application-webhook.response.d.ts +21 -0
  185. package/dist/types/interface/api/responses/application-webhook.response.js +2 -0
  186. package/dist/types/interface/api/responses/application.admin.response.d.ts +34 -0
  187. package/dist/types/interface/api/responses/application.admin.response.js +2 -0
  188. package/dist/types/interface/api/responses/application.response.d.ts +130 -0
  189. package/dist/types/interface/api/responses/application.response.js +2 -0
  190. package/dist/types/interface/api/responses/domain-verification.admin.response.d.ts +6 -0
  191. package/dist/types/interface/api/responses/domain-verification.admin.response.js +2 -0
  192. package/dist/types/interface/api/responses/domain-verification.response.d.ts +29 -0
  193. package/dist/types/interface/api/responses/domain-verification.response.js +2 -0
  194. package/dist/types/interface/api/responses/hourly-metrics.response.d.ts +70 -0
  195. package/dist/types/interface/api/responses/hourly-metrics.response.js +2 -0
  196. package/dist/types/interface/api/responses/infrastructure.admin.response.d.ts +18 -0
  197. package/dist/types/interface/api/responses/infrastructure.admin.response.js +2 -0
  198. package/dist/types/interface/api/responses/metrics.admin.response.d.ts +19 -0
  199. package/dist/types/interface/api/responses/metrics.admin.response.js +2 -0
  200. package/dist/types/interface/api/responses/metrics.response.d.ts +29 -0
  201. package/dist/types/interface/api/responses/metrics.response.js +2 -0
  202. package/dist/types/interface/api/responses/monitor.response.d.ts +7 -0
  203. package/dist/types/interface/api/responses/monitor.response.js +2 -0
  204. package/dist/types/interface/api/responses/report.admin.response.d.ts +87 -0
  205. package/dist/types/interface/api/responses/report.admin.response.js +2 -0
  206. package/dist/types/interface/api/responses/workflow.admin.response.d.ts +24 -0
  207. package/dist/types/interface/api/responses/workflow.admin.response.js +2 -0
  208. package/dist/types/interface/api/responses/workflow.response.d.ts +54 -0
  209. package/dist/types/interface/api/responses/workflow.response.js +2 -0
  210. package/dist/types/interface/api/type-message/api-error.d.ts +8 -0
  211. package/dist/types/interface/api/type-message/api-error.js +2 -0
  212. package/dist/types/interface/api/type-message/base-order.d.ts +4 -0
  213. package/dist/types/interface/api/type-message/base-order.js +2 -0
  214. package/dist/types/interface/api/type-message/base-paginate.d.ts +10 -0
  215. package/dist/types/interface/api/type-message/base-paginate.js +2 -0
  216. package/dist/types/interface/api/type-message/response.d.ts +5 -0
  217. package/dist/types/interface/api/type-message/response.js +2 -0
  218. package/dist/types/interface/dto/application-sentinel-configuration.dto.d.ts +68 -0
  219. package/dist/types/interface/dto/application-sentinel-configuration.dto.js +4 -0
  220. package/dist/types/interface/dto/index.d.ts +2 -0
  221. package/dist/types/interface/dto/index.js +18 -0
  222. package/dist/types/interface/dto/webhook.dto.d.ts +27 -0
  223. package/dist/types/interface/dto/webhook.dto.js +2 -0
  224. package/dist/types/interface/index.d.ts +6 -0
  225. package/dist/types/interface/index.js +22 -0
  226. package/dist/types/interface/models/application-cron-task-history.model.d.ts +17 -0
  227. package/dist/types/interface/models/application-cron-task-history.model.js +2 -0
  228. package/dist/types/interface/models/application-cron-task.model.d.ts +14 -0
  229. package/dist/types/interface/models/application-cron-task.model.js +2 -0
  230. package/dist/types/interface/models/application-event.model.d.ts +19 -0
  231. package/dist/types/interface/models/application-event.model.js +2 -0
  232. package/dist/types/interface/models/application-hourly-metrics.model.d.ts +14 -0
  233. package/dist/types/interface/models/application-hourly-metrics.model.js +2 -0
  234. package/dist/types/interface/models/application-lifetime-metrics.model.d.ts +8 -0
  235. package/dist/types/interface/models/application-lifetime-metrics.model.js +2 -0
  236. package/dist/types/interface/models/application-log-endpoint.model.d.ts +20 -0
  237. package/dist/types/interface/models/application-log-endpoint.model.js +2 -0
  238. package/dist/types/interface/models/application-log.model.d.ts +23 -0
  239. package/dist/types/interface/models/application-log.model.js +2 -0
  240. package/dist/types/interface/models/application-sentinel-history.model.d.ts +16 -0
  241. package/dist/types/interface/models/application-sentinel-history.model.js +2 -0
  242. package/dist/types/interface/models/application-sentinel.model.d.ts +20 -0
  243. package/dist/types/interface/models/application-sentinel.model.js +2 -0
  244. package/dist/types/interface/models/application-stats.model.d.ts +14 -0
  245. package/dist/types/interface/models/application-stats.model.js +2 -0
  246. package/dist/types/interface/models/application-webhook-history.model.d.ts +22 -0
  247. package/dist/types/interface/models/application-webhook-history.model.js +2 -0
  248. package/dist/types/interface/models/application-webhook.model.d.ts +32 -0
  249. package/dist/types/interface/models/application-webhook.model.js +3 -0
  250. package/dist/types/interface/models/application.model.d.ts +19 -0
  251. package/dist/types/interface/models/application.model.js +2 -0
  252. package/dist/types/interface/models/domain-verification.model.d.ts +42 -0
  253. package/dist/types/interface/models/domain-verification.model.js +14 -0
  254. package/dist/types/interface/models/partition-optimization-history.model.d.ts +11 -0
  255. package/dist/types/interface/models/partition-optimization-history.model.js +2 -0
  256. package/dist/types/interface/models/project.model.d.ts +11 -0
  257. package/dist/types/interface/models/project.model.js +2 -0
  258. package/dist/types/interface/models/workflow-execution-step.model.d.ts +59 -0
  259. package/dist/types/interface/models/workflow-execution-step.model.js +12 -0
  260. package/dist/types/interface/models/workflow-execution.model.d.ts +76 -0
  261. package/dist/types/interface/models/workflow-execution.model.js +13 -0
  262. package/dist/types/interface/models/workflow-step.model.d.ts +106 -0
  263. package/dist/types/interface/models/workflow-step.model.js +44 -0
  264. package/dist/types/interface/models/workflow.model.d.ts +90 -0
  265. package/dist/types/interface/models/workflow.model.js +24 -0
  266. package/dist/typing-examples.d.ts +1 -0
  267. package/dist/typing-examples.js +48 -0
  268. package/dist/utils/alert.utils.d.ts +35 -0
  269. package/dist/utils/alert.utils.js +138 -0
  270. package/dist/utils/discord-webhook-log-formatter.utils.d.ts +48 -0
  271. package/dist/utils/discord-webhook-log-formatter.utils.js +332 -0
  272. package/dist/utils/error.utils.d.ts +15 -0
  273. package/dist/utils/error.utils.js +24 -0
  274. package/dist/utils/import.utils.d.ts +1 -0
  275. package/dist/utils/import.utils.js +7 -0
  276. package/dist/utils/index.d.ts +1 -0
  277. package/dist/utils/index.js +17 -0
  278. package/dist/utils/json.utils.d.ts +1 -0
  279. package/dist/utils/json.utils.js +13 -0
  280. package/dist/utils/non-blocking-promise.utils.d.ts +2 -0
  281. package/dist/utils/non-blocking-promise.utils.js +11 -0
  282. package/package.json +49 -0
  283. package/tsconfig.json +105 -0
  284. package/tsconfig.tsbuildinfo +1 -0
@@ -0,0 +1,30 @@
1
+ import { IResponse, IApplicationCronTask, IApplicationCronTaskHistory, BasePaginate } from '../..';
2
+ export interface IGetApplicationCronTaskAdminData {
3
+ applicationCronTask: IApplicationCronTask;
4
+ }
5
+ export type IGetApplicationCronTaskAdminResponse = IResponse<IGetApplicationCronTaskAdminData>;
6
+ export interface IUpdateApplicationCronTaskAdminData {
7
+ applicationCronTask: IApplicationCronTask;
8
+ }
9
+ export type IUpdateApplicationCronTaskAdminResponse = IResponse<IUpdateApplicationCronTaskAdminData>;
10
+ export type IPaginateApplicationCronTaskAdminResponse = IResponse<BasePaginate<IApplicationCronTask>>;
11
+ export type IPaginateHistoryApplicationCronTaskAdminResponse = IResponse<BasePaginate<IApplicationCronTaskHistory>>;
12
+ export interface ICreateApplicationCronTaskAdminData {
13
+ applicationCronTask: IApplicationCronTask;
14
+ }
15
+ export type ICreateApplicationCronTaskAdminResponse = IResponse<ICreateApplicationCronTaskAdminData>;
16
+ export interface IGetHistoryApplicationCronTaskAdminData {
17
+ applicationCronTaskHistory: IApplicationCronTaskHistory;
18
+ }
19
+ export type IGetHistoryApplicationCronTaskAdminResponse = IResponse<IGetHistoryApplicationCronTaskAdminData>;
20
+ export interface IDeleteApplicationCronTaskAdminData {
21
+ }
22
+ export type IDeleteApplicationCronTaskAdminResponse = IResponse<IDeleteApplicationCronTaskAdminData>;
23
+ export interface IRegenerateSecretApplicationCronTaskAdminData {
24
+ applicationCronTask: IApplicationCronTask;
25
+ }
26
+ export type IRegenerateSecretApplicationCronTaskAdminResponse = IResponse<IRegenerateSecretApplicationCronTaskAdminData>;
27
+ export interface ITriggerApplicationCronTaskAdminData {
28
+ applicationCronTaskHistory: IApplicationCronTaskHistory;
29
+ }
30
+ export type ITriggerApplicationCronTaskAdminResponse = IResponse<ITriggerApplicationCronTaskAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,30 @@
1
+ import { IResponse, IApplicationCronTask, IApplicationCronTaskHistory, BasePaginate } from '../..';
2
+ export interface IGetApplicationCronTaskData {
3
+ applicationCronTask: IApplicationCronTask;
4
+ }
5
+ export type IGetApplicationCronTaskResponse = IResponse<IGetApplicationCronTaskData>;
6
+ export interface IGetHistoryApplicationCronTaskData {
7
+ applicationCronTaskHistory: IApplicationCronTaskHistory;
8
+ }
9
+ export type IGetHistoryApplicationCronTaskResponse = IResponse<IGetHistoryApplicationCronTaskData>;
10
+ export type IPaginateHistoryApplicationCronTaskResponse = IResponse<BasePaginate<IApplicationCronTaskHistory>>;
11
+ export type IPaginateApplicationCronTaskResponse = IResponse<BasePaginate<IApplicationCronTask>>;
12
+ export interface ICreateApplicationCronTaskData {
13
+ applicationCronTask: IApplicationCronTask;
14
+ }
15
+ export type ICreateApplicationCronTaskResponse = IResponse<ICreateApplicationCronTaskData>;
16
+ export interface IUpdateApplicationCronTaskData {
17
+ applicationCronTask: IApplicationCronTask;
18
+ }
19
+ export type IUpdateApplicationCronTaskResponse = IResponse<IUpdateApplicationCronTaskData>;
20
+ export interface IDeleteApplicationCronTaskData {
21
+ }
22
+ export type IDeleteApplicationCronTaskResponse = IResponse<IDeleteApplicationCronTaskData>;
23
+ export interface IRegenerateSecretApplicationCronTaskData {
24
+ applicationCronTask: IApplicationCronTask;
25
+ }
26
+ export type IRegenerateSecretApplicationCronTaskResponse = IResponse<IRegenerateSecretApplicationCronTaskData>;
27
+ export interface ITriggerApplicationCronTaskData {
28
+ applicationCronTaskHistory: IApplicationCronTaskHistory;
29
+ }
30
+ export type ITriggerApplicationCronTaskResponse = IResponse<ITriggerApplicationCronTaskData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { IResponse, IApplicationEvent, BasePaginate } from '../..';
2
+ export interface IGetApplicationEventAdminData {
3
+ applicationEvent: IApplicationEvent;
4
+ }
5
+ export type IGetApplicationEventAdminResponse = IResponse<IGetApplicationEventAdminData>;
6
+ export type IPaginateApplicationEventAdminResponse = IResponse<BasePaginate<IApplicationEvent>>;
7
+ export interface IDeleteApplicationEventAdminData {
8
+ }
9
+ export type IDeleteApplicationEventAdminResponse = IResponse<IDeleteApplicationEventAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { IResponse, IApplicationEvent, BasePaginate } from '../..';
2
+ export interface IGetApplicationEventData {
3
+ applicationEvent: IApplicationEvent;
4
+ }
5
+ export type IGetApplicationEventResponse = IResponse<IGetApplicationEventData>;
6
+ export type IPaginateApplicationEventResponse = IResponse<BasePaginate<IApplicationEvent>>;
7
+ export interface ICreateApplicationEventData {
8
+ applicationEvent: IApplicationEvent;
9
+ }
10
+ export type ICreateApplicationEventResponse = IResponse<ICreateApplicationEventData>;
11
+ export interface IDeleteApplicationEventData {
12
+ }
13
+ export type IDeleteApplicationEventResponse = IResponse<IDeleteApplicationEventData>;
14
+ export interface IGetCountPerDayApplicationEventData {
15
+ countPerDay: Record<string, Record<string, number>>;
16
+ }
17
+ export type IGetCountPerDayApplicationEventResponse = IResponse<IGetCountPerDayApplicationEventData>;
18
+ export interface IGetTotalCountApplicationEventData {
19
+ count: Record<string, number>;
20
+ }
21
+ export type IGetTotalCountApplicationEventResponse = IResponse<IGetTotalCountApplicationEventData>;
22
+ export interface IGetMetricsApplicationEventData {
23
+ metrics: {
24
+ totalEvent: number;
25
+ firstEventDate: Date | null;
26
+ lastEventDate: Date | null;
27
+ totalErrorEvent: number;
28
+ lastErrorDate: Date | null;
29
+ eventLast24Hours: number;
30
+ errorLast24Hours: number;
31
+ };
32
+ }
33
+ export type IGetMetricsApplicationEventResponse = IResponse<IGetMetricsApplicationEventData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { IResponse, IApplicationLog, BasePaginate } from '../..';
2
+ export type IPaginateApplicationLogAdminResponse = IResponse<BasePaginate<IApplicationLog>>;
3
+ export interface IGetApplicationLogAdminData {
4
+ applicationLog: IApplicationLog;
5
+ }
6
+ export type IGetApplicationLogAdminResponse = IResponse<IGetApplicationLogAdminData>;
7
+ export interface ICreateApplicationLogAdminData {
8
+ applicationLog: IApplicationLog;
9
+ }
10
+ export type ICreateApplicationLogAdminResponse = IResponse<ICreateApplicationLogAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { IResponse, IApplicationLog, BasePaginate } from '../..';
2
+ export type IPaginateApplicationLogResponse = IResponse<BasePaginate<IApplicationLog>>;
3
+ export interface IGetApplicationLogData {
4
+ applicationLog: IApplicationLog;
5
+ }
6
+ export type IGetApplicationLogResponse = IResponse<IGetApplicationLogData>;
7
+ export interface ICreateApplicationLogData {
8
+ applicationLog: IApplicationLog;
9
+ }
10
+ export type ICreateApplicationLogResponse = IResponse<ICreateApplicationLogData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,26 @@
1
+ import { IResponse, IApplicationSentinel, IApplicationSentinelHistory, BasePaginate } from '../..';
2
+ export interface IGetApplicationSentinelAdminData {
3
+ applicationSentinel: IApplicationSentinel;
4
+ }
5
+ export type IGetApplicationSentinelAdminResponse = IResponse<IGetApplicationSentinelAdminData>;
6
+ export interface IUpdateApplicationSentinelAdminData {
7
+ applicationSentinel: IApplicationSentinel;
8
+ }
9
+ export type IUpdateApplicationSentinelAdminResponse = IResponse<IUpdateApplicationSentinelAdminData>;
10
+ export type IPaginateApplicationSentinelAdminResponse = IResponse<BasePaginate<IApplicationSentinel>>;
11
+ export type IPaginateHistoryApplicationSentinelAdminResponse = IResponse<BasePaginate<IApplicationSentinelHistory>>;
12
+ export interface ICreateApplicationSentinelAdminData {
13
+ applicationSentinel: IApplicationSentinel;
14
+ }
15
+ export type ICreateApplicationSentinelAdminResponse = IResponse<ICreateApplicationSentinelAdminData>;
16
+ export interface IGetHistoryApplicationSentinelAdminData {
17
+ applicationSentinelHistory: IApplicationSentinelHistory;
18
+ }
19
+ export type IGetHistoryApplicationSentinelAdminResponse = IResponse<IGetHistoryApplicationSentinelAdminData>;
20
+ export interface IDeleteApplicationSentinelAdminData {
21
+ }
22
+ export type IDeleteApplicationSentinelAdminResponse = IResponse<IDeleteApplicationSentinelAdminData>;
23
+ export interface ITriggerApplicationSentinelAdminData {
24
+ applicationSentinelHistory: IApplicationSentinelHistory;
25
+ }
26
+ export type ITriggerApplicationSentinelAdminResponse = IResponse<ITriggerApplicationSentinelAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,33 @@
1
+ import { IResponse, IApplicationSentinel, IApplicationSentinelHistory, BasePaginate } from '../..';
2
+ export interface IGetApplicationSentinelData {
3
+ applicationSentinel: IApplicationSentinel;
4
+ }
5
+ export type IGetApplicationSentinelResponse = IResponse<IGetApplicationSentinelData>;
6
+ export interface IGetHistoryApplicationSentinelData {
7
+ applicationSentinelHistory: IApplicationSentinelHistory;
8
+ }
9
+ export type IGetHistoryApplicationSentinelResponse = IResponse<IGetHistoryApplicationSentinelData>;
10
+ export type IPaginateHistoryApplicationSentinelResponse = IResponse<BasePaginate<IApplicationSentinelHistory>>;
11
+ export type IPaginateApplicationSentinelResponse = IResponse<BasePaginate<IApplicationSentinel>>;
12
+ export interface ICreateApplicationSentinelData {
13
+ applicationSentinel: IApplicationSentinel;
14
+ }
15
+ export type ICreateApplicationSentinelResponse = IResponse<ICreateApplicationSentinelData>;
16
+ export interface IUpdateApplicationSentinelData {
17
+ applicationSentinel: IApplicationSentinel;
18
+ }
19
+ export type IUpdateApplicationSentinelResponse = IResponse<IUpdateApplicationSentinelData>;
20
+ export interface IDeleteApplicationSentinelData {
21
+ }
22
+ export type IDeleteApplicationSentinelResponse = IResponse<IDeleteApplicationSentinelData>;
23
+ export interface ITriggerApplicationSentinelData {
24
+ applicationSentinelHistory: IApplicationSentinelHistory;
25
+ }
26
+ export type ITriggerApplicationSentinelResponse = IResponse<ITriggerApplicationSentinelData>;
27
+ export interface IMetricsLatencyApplicationSentinelData {
28
+ metrics: {
29
+ date: string;
30
+ avgLatency: number | null;
31
+ }[];
32
+ }
33
+ export type IMetricsLatencyApplicationSentinelResponse = IResponse<IMetricsLatencyApplicationSentinelData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IResponse, IApplicationStats, BasePaginate } from '../..';
2
+ export interface IGetApplicationStatsAdminData {
3
+ applicationStats: IApplicationStats;
4
+ }
5
+ export type IGetApplicationStatsAdminResponse = IResponse<IGetApplicationStatsAdminData>;
6
+ export type IPaginateApplicationStatsAdminResponse = IResponse<BasePaginate<IApplicationStats>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ import { IResponse, IApplicationStats, BasePaginate } from '../..';
2
+ export interface IGetApplicationStatsData {
3
+ applicationStats: IApplicationStats;
4
+ }
5
+ export type IGetApplicationStatsResponse = IResponse<IGetApplicationStatsData>;
6
+ export type IPaginateApplicationStatsResponse = IResponse<BasePaginate<IApplicationStats>>;
7
+ export interface ICreateApplicationStatsData {
8
+ applicationStats: IApplicationStats[];
9
+ }
10
+ export type ICreateApplicationStatsResponse = IResponse<ICreateApplicationStatsData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { BasePaginate, IResponse } from '..';
2
+ import { IApplicationWebhookHistory } from '../../models/application-webhook-history.model';
3
+ export type IPaginateApplicationWebhookHistoryAdminResponse = IResponse<BasePaginate<IApplicationWebhookHistory>>;
4
+ export interface IGetApplicationWebhookHistoryAdminData {
5
+ applicationWebhookHistory: IApplicationWebhookHistory;
6
+ }
7
+ export type IGetApplicationWebhookHistoryAdminResponse = IResponse<IGetApplicationWebhookHistoryAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { BasePaginate, IResponse } from '..';
2
+ import { IApplicationWebhookHistory } from '../../models/application-webhook-history.model';
3
+ export type IPaginateApplicationWebhookHistoryResponse = IResponse<BasePaginate<IApplicationWebhookHistory>>;
4
+ export interface IGetApplicationWebhookHistoryData {
5
+ applicationWebhookHistory: IApplicationWebhookHistory;
6
+ }
7
+ export type IGetApplicationWebhookHistoryResponse = IResponse<IGetApplicationWebhookHistoryData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { BasePaginate, IResponse } from '..';
2
+ import { IApplicationWebhook } from '../../models/application-webhook.model';
3
+ export type IPaginateApplicationWebhookAdminResponse = IResponse<BasePaginate<IApplicationWebhook>>;
4
+ export interface IGetApplicationWebhookAdminData {
5
+ applicationWebhook: IApplicationWebhook;
6
+ }
7
+ export type IGetApplicationWebhookAdminResponse = IResponse<IGetApplicationWebhookAdminData>;
8
+ export interface IResetSecretApplicationWebhookAdminData {
9
+ applicationWebhook: IApplicationWebhook;
10
+ }
11
+ export type IResetSecretApplicationWebhookAdminResponse = IResponse<IResetSecretApplicationWebhookAdminData>;
12
+ export interface IUpdateApplicationWebhookAdminData {
13
+ applicationWebhook: IApplicationWebhook;
14
+ }
15
+ export type IUpdateApplicationWebhookAdminResponse = IResponse<IUpdateApplicationWebhookAdminData>;
16
+ export interface ICreateApplicationWebhookAdminData {
17
+ applicationWebhook: IApplicationWebhook;
18
+ }
19
+ export type ICreateApplicationWebhookAdminResponse = IResponse<ICreateApplicationWebhookAdminData>;
20
+ export type IDeleteApplicationWebhookAdminData = Record<string, never>;
21
+ export type IDeleteApplicationWebhookAdminResponse = IResponse<IDeleteApplicationWebhookAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { BasePaginate, IResponse } from '..';
2
+ import { IApplicationWebhook } from '../../models/application-webhook.model';
3
+ export type IPaginateApplicationWebhookResponse = IResponse<BasePaginate<IApplicationWebhook>>;
4
+ export interface IGetApplicationWebhookData {
5
+ applicationWebhook: IApplicationWebhook;
6
+ }
7
+ export type IGetApplicationWebhookResponse = IResponse<IGetApplicationWebhookData>;
8
+ export interface IResetSecretApplicationWebhookData {
9
+ applicationWebhook: IApplicationWebhook;
10
+ }
11
+ export type IResetSecretApplicationWebhookResponse = IResponse<IResetSecretApplicationWebhookData>;
12
+ export interface IUpdateApplicationWebhookData {
13
+ applicationWebhook: IApplicationWebhook;
14
+ }
15
+ export type IUpdateApplicationWebhookResponse = IResponse<IUpdateApplicationWebhookData>;
16
+ export interface ICreateApplicationWebhookData {
17
+ applicationWebhook: IApplicationWebhook;
18
+ }
19
+ export type ICreateApplicationWebhookResponse = IResponse<ICreateApplicationWebhookData>;
20
+ export type IDeleteApplicationWebhookData = Record<string, never>;
21
+ export type IDeleteApplicationWebhookResponse = IResponse<IDeleteApplicationWebhookData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,34 @@
1
+ import { IResponse, IApplication, BasePaginate, IApplicationHourlyMetrics } from '../..';
2
+ export interface IGetApplicationAdminData {
3
+ application: IApplication;
4
+ }
5
+ export type IGetApplicationAdminResponse = IResponse<IGetApplicationAdminData>;
6
+ export type IPaginateApplicationAdminResponse = IResponse<BasePaginate<IApplication>>;
7
+ export type IPaginateHourlyMetricsApplicationAdminResponse = IResponse<BasePaginate<IApplicationHourlyMetrics>>;
8
+ export interface IResetSecretPublishTokenApplicationAdminData {
9
+ application: IApplication;
10
+ }
11
+ export type IResetSecretPublishTokenApplicationAdminResponse = IResponse<IResetSecretPublishTokenApplicationAdminData>;
12
+ export interface ICreateApplicationAdminData {
13
+ application: IApplication;
14
+ }
15
+ export type ICreateApplicationAdminResponse = IResponse<ICreateApplicationAdminData>;
16
+ export type IDeleteApplicationAdminData = Record<string, never>;
17
+ export type IDeleteApplicationAdminResponse = IResponse<IDeleteApplicationAdminData>;
18
+ export interface IGetMetricsApplicationAdminData {
19
+ logs: {
20
+ total: number;
21
+ applications: {
22
+ id: string;
23
+ total: number;
24
+ }[];
25
+ };
26
+ endpoints: {
27
+ total: number;
28
+ applications: {
29
+ id: string;
30
+ total: number;
31
+ }[];
32
+ };
33
+ }
34
+ export type IGetMetricsApplicationAdminResponse = IResponse<IGetMetricsApplicationAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,130 @@
1
+ import { IResponse, IApplication, BasePaginate, IApplicationHourlyMetrics } from '../..';
2
+ import { APIMethod } from '../../../enum';
3
+ export interface IGetApplicationData {
4
+ application: IApplication;
5
+ }
6
+ export type IGetApplicationResponse = IResponse<IGetApplicationData>;
7
+ export interface IResetSecretPublishTokenApplicationData {
8
+ application: IApplication;
9
+ }
10
+ export type IResetSecretPublishTokenApplicationResponse = IResponse<IResetSecretPublishTokenApplicationData>;
11
+ export interface IGetLogAnalyticsApplicationData {
12
+ firstLogDate: Date | null;
13
+ logs: {
14
+ log: number;
15
+ warn: number;
16
+ info: number;
17
+ error: number;
18
+ };
19
+ totalLast24Hour: {
20
+ log: number;
21
+ warn: number;
22
+ info: number;
23
+ error: number;
24
+ };
25
+ logsPerDate: {
26
+ log: number;
27
+ warn: number;
28
+ info: number;
29
+ error: number;
30
+ date: Date;
31
+ }[];
32
+ }
33
+ export type IGetLogAnalyticsApplicationResponse = IResponse<IGetLogAnalyticsApplicationData>;
34
+ export interface IGetAnalyticsApplicationData {
35
+ statsLast24Hour: {
36
+ cpu: number;
37
+ ram: number;
38
+ disk: number;
39
+ };
40
+ stats: {
41
+ cpu: number;
42
+ ram: number;
43
+ disk: number;
44
+ };
45
+ cronTaskHistoryLast24Hour: number;
46
+ cronTask: number;
47
+ }
48
+ export type IGetAnalyticsApplicationResponse = IResponse<IGetAnalyticsApplicationData>;
49
+ export interface IGetStatsAnalyticsApplicationData {
50
+ statsPerPeriod: {
51
+ cpu: number | null;
52
+ cpuPercent: number | null;
53
+ ram: number | null;
54
+ ramPercent: number | null;
55
+ disk: number | null;
56
+ diskPercent: number | null;
57
+ date: Date;
58
+ }[];
59
+ firstDate: Date | null;
60
+ }
61
+ export type IGetStatsAnalyticsApplicationResponse = IResponse<IGetStatsAnalyticsApplicationData>;
62
+ export interface IGetEndpointOnPeriodAnalyticsApplicationData {
63
+ endpointPerPeriod: {
64
+ informational: number;
65
+ successful: number;
66
+ redirection: number;
67
+ clientError: number;
68
+ serverError: number;
69
+ averageResponseTime: number;
70
+ upload: number;
71
+ download: number;
72
+ date: Date;
73
+ }[];
74
+ }
75
+ export type IGetEndpointOnPeriodAnalyticsApplicationResponse = IResponse<IGetEndpointOnPeriodAnalyticsApplicationData>;
76
+ export interface IGetEndpointAnalyticsApplicationData {
77
+ ever: {
78
+ total: number;
79
+ informational: number;
80
+ successful: number;
81
+ redirection: number;
82
+ clientError: number;
83
+ serverError: number;
84
+ averageResponseTime: number;
85
+ upload: number;
86
+ download: number;
87
+ };
88
+ endpointLast24Hour: {
89
+ total: number;
90
+ informational: number;
91
+ successful: number;
92
+ redirection: number;
93
+ clientError: number;
94
+ serverError: number;
95
+ averageResponseTime: number;
96
+ upload: number;
97
+ download: number;
98
+ };
99
+ }
100
+ export type IGetEndpointAnalyticsApplicationResponse = IResponse<IGetEndpointAnalyticsApplicationData>;
101
+ export interface IGetSlowerEndpointAnalyticsApplicationData {
102
+ slowerEndpoint: {
103
+ minResponseTime: number;
104
+ maxResponseTime: number;
105
+ averageResponseTime: number;
106
+ endpoint: string;
107
+ controller: string;
108
+ method: APIMethod;
109
+ count: number;
110
+ }[];
111
+ slowerEndpointLast24Hour: {
112
+ minResponseTime: number;
113
+ maxResponseTime: number;
114
+ averageResponseTime: number;
115
+ endpoint: string;
116
+ controller: string;
117
+ method: APIMethod;
118
+ count: number;
119
+ }[];
120
+ }
121
+ export type IGetSlowerEndpointAnalyticsApplicationResponse = IResponse<IGetSlowerEndpointAnalyticsApplicationData>;
122
+ export interface ICallPerControllerAnalyticsApplicationData {
123
+ callPerController: {
124
+ controller: string;
125
+ method: APIMethod;
126
+ callCount: number;
127
+ }[];
128
+ }
129
+ export type ICallPerControllerAnalyticsApplicationResponse = IResponse<ICallPerControllerAnalyticsApplicationData>;
130
+ export type IPaginateHourlyMetricsApplicationResponse = IResponse<BasePaginate<IApplicationHourlyMetrics>>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { IResponse } from '../type-message/response';
2
+ export interface IRunDomainVerificationCronAdminData {
3
+ started: boolean;
4
+ requestId: string;
5
+ }
6
+ export type IRunDomainVerificationCronAdminResponse = IResponse<IRunDomainVerificationCronAdminData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { IDomainVerification, IDomainVerificationInstructions, IDomainVerificationResult } from '../../models/domain-verification.model';
2
+ import { IResponse } from '../type-message/response';
3
+ export interface ICreateDomainVerificationData {
4
+ domainVerification: IDomainVerification;
5
+ instructions: IDomainVerificationInstructions;
6
+ }
7
+ export type ICreateDomainVerificationResponse = IResponse<ICreateDomainVerificationData>;
8
+ export interface IListDomainVerificationData {
9
+ domainVerifications: IDomainVerification[];
10
+ }
11
+ export type IListDomainVerificationResponse = IResponse<IListDomainVerificationData>;
12
+ export interface IGetDomainVerificationData {
13
+ domainVerification: IDomainVerification;
14
+ instructions: IDomainVerificationInstructions;
15
+ }
16
+ export type IGetDomainVerificationResponse = IResponse<IGetDomainVerificationData>;
17
+ export interface IVerifyDomainVerificationData {
18
+ domainVerification: IDomainVerification;
19
+ result: IDomainVerificationResult;
20
+ }
21
+ export type IVerifyDomainVerificationResponse = IResponse<IVerifyDomainVerificationData>;
22
+ export interface IRegenerateDomainVerificationData {
23
+ domainVerification: IDomainVerification;
24
+ instructions: IDomainVerificationInstructions;
25
+ }
26
+ export type IRegenerateDomainVerificationResponse = IResponse<IRegenerateDomainVerificationData>;
27
+ export interface IDeleteDomainVerificationData {
28
+ }
29
+ export type IDeleteDomainVerificationResponse = IResponse<IDeleteDomainVerificationData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,70 @@
1
+ import { IResponse, IApplicationHourlyMetrics } from '../..';
2
+ export interface IHourlyMetricsRecord extends Omit<IApplicationHourlyMetrics, 'application'> {
3
+ }
4
+ export interface IAggregatedMetricsSummary {
5
+ totalRequests: number;
6
+ totalHttpErrors: number;
7
+ totalHttpWarnings: number;
8
+ avgResponseTime: number;
9
+ errorRate: number;
10
+ availabilityRate: number;
11
+ totalLogs: number;
12
+ totalCronTasks: number;
13
+ successfulCronTasks: number;
14
+ failedCronTasks: number;
15
+ totalEvents: number;
16
+ totalWebhooks: number;
17
+ successfulWebhooks: number;
18
+ failedWebhooks: number;
19
+ totalSentinelChecks: number;
20
+ successfulSentinelChecks: number;
21
+ failedSentinelChecks: number;
22
+ avgCpuPercent: number | null;
23
+ maxCpuPercent: number | null;
24
+ avgMemoryPercent: number | null;
25
+ maxMemoryPercent: number | null;
26
+ maxMemoryBytes: number | null;
27
+ logsByLevel: Record<number, number>;
28
+ topErrorEndpoints: Array<{
29
+ endpoint: string;
30
+ count: number;
31
+ }>;
32
+ topEvents: Array<{
33
+ name: string;
34
+ count: number;
35
+ }>;
36
+ allStatusCodes: Array<{
37
+ statusCode: number;
38
+ count: number;
39
+ }>;
40
+ errorsByStatusCode: Array<{
41
+ statusCode: number;
42
+ count: number;
43
+ }>;
44
+ }
45
+ export interface IMetricsTimeSeriesPoint {
46
+ timestamp: string;
47
+ value: number;
48
+ }
49
+ export interface IMetricsTimeSeries {
50
+ metricName: string;
51
+ applicationId: string;
52
+ data: IMetricsTimeSeriesPoint[];
53
+ }
54
+ export interface IGetHourlyMetricsData {
55
+ metricsByApplication: Record<string, IHourlyMetricsRecord[]>;
56
+ countByApplication: Record<string, number>;
57
+ totalByApplication: Record<string, number>;
58
+ hasMore: boolean;
59
+ offset: number;
60
+ limit: number;
61
+ periodStart: string;
62
+ periodEnd: string;
63
+ }
64
+ export type IGetHourlyMetricsResponse = IResponse<IGetHourlyMetricsData>;
65
+ export interface IGetMetricsTimeSeriesData {
66
+ series: IMetricsTimeSeries[];
67
+ periodStart: string;
68
+ periodEnd: string;
69
+ }
70
+ export type IGetMetricsTimeSeriesResponse = IResponse<IGetMetricsTimeSeriesData>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,18 @@
1
+ export interface CreateFuturePartitionsInfrastructureResponse {
2
+ data: {
3
+ message: string;
4
+ partitionsCreated: number;
5
+ requestId: string;
6
+ };
7
+ }
8
+ export interface PartitionInfo {
9
+ tableName: string;
10
+ partitionName: string;
11
+ startDate: string;
12
+ endDate: string;
13
+ }
14
+ export interface GetPartitionsInfoInfrastructureResponse {
15
+ data: {
16
+ [tableName: string]: PartitionInfo[];
17
+ };
18
+ }