@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,20 @@
1
+ export declare enum ErrorType {
2
+ apiError = "api_error",
3
+ authError = "authentication_error",
4
+ resourceError = "resource_error"
5
+ }
6
+ export declare enum Code {
7
+ tokenFailure = "token_authentication_failure",
8
+ authenticationFailure = "authentication_credentials_failure",
9
+ accessNotAllowed = "access_not_allowed",
10
+ notFound = "not_found",
11
+ validationError = "resource_validation_error",
12
+ constraintError = "resource_constraint_error",
13
+ internalServerError = "internal_server_error",
14
+ serviceUnavailable = "service_unavailable",
15
+ invalidData = "invalid_data",
16
+ notImplemented = "not_implemented",
17
+ maxCronTaskNumber = "max_cron_task_number",
18
+ maxEventPublishPerDay = "max_event_publish_per_day",
19
+ maxSentinelNumber = "max_sentinel_number"
20
+ }
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Code = exports.ErrorType = void 0;
4
+ var ErrorType;
5
+ (function (ErrorType) {
6
+ ErrorType["apiError"] = "api_error";
7
+ ErrorType["authError"] = "authentication_error";
8
+ ErrorType["resourceError"] = "resource_error";
9
+ })(ErrorType || (exports.ErrorType = ErrorType = {}));
10
+ var Code;
11
+ (function (Code) {
12
+ Code["tokenFailure"] = "token_authentication_failure";
13
+ Code["authenticationFailure"] = "authentication_credentials_failure";
14
+ Code["accessNotAllowed"] = "access_not_allowed";
15
+ Code["notFound"] = "not_found";
16
+ Code["validationError"] = "resource_validation_error";
17
+ Code["constraintError"] = "resource_constraint_error";
18
+ Code["internalServerError"] = "internal_server_error";
19
+ Code["serviceUnavailable"] = "service_unavailable";
20
+ Code["invalidData"] = "invalid_data";
21
+ Code["notImplemented"] = "not_implemented";
22
+ Code["maxCronTaskNumber"] = "max_cron_task_number";
23
+ Code["maxEventPublishPerDay"] = "max_event_publish_per_day";
24
+ Code["maxSentinelNumber"] = "max_sentinel_number";
25
+ })(Code || (exports.Code = Code = {}));
@@ -0,0 +1,7 @@
1
+ export declare enum APIMethod {
2
+ GET = 1,
3
+ POST = 2,
4
+ DELETE = 3,
5
+ PUT = 4,
6
+ PATCH = 5
7
+ }
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.APIMethod = void 0;
4
+ var APIMethod;
5
+ (function (APIMethod) {
6
+ APIMethod[APIMethod["GET"] = 1] = "GET";
7
+ APIMethod[APIMethod["POST"] = 2] = "POST";
8
+ APIMethod[APIMethod["DELETE"] = 3] = "DELETE";
9
+ APIMethod[APIMethod["PUT"] = 4] = "PUT";
10
+ APIMethod[APIMethod["PATCH"] = 5] = "PATCH";
11
+ })(APIMethod || (exports.APIMethod = APIMethod = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum ApplicationAlertType {
2
+ CRON_TASK = "CRON_TASK",
3
+ LOG = "LOG",
4
+ STATS = "STATS"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationAlertType = void 0;
4
+ var ApplicationAlertType;
5
+ (function (ApplicationAlertType) {
6
+ ApplicationAlertType["CRON_TASK"] = "CRON_TASK";
7
+ ApplicationAlertType["LOG"] = "LOG";
8
+ ApplicationAlertType["STATS"] = "STATS";
9
+ })(ApplicationAlertType || (exports.ApplicationAlertType = ApplicationAlertType = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum ApplicationSentinelType {
2
+ PING = "PING",
3
+ HTTP = "HTTP",
4
+ TCP = "TCP"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationSentinelType = void 0;
4
+ var ApplicationSentinelType;
5
+ (function (ApplicationSentinelType) {
6
+ ApplicationSentinelType["PING"] = "PING";
7
+ ApplicationSentinelType["HTTP"] = "HTTP";
8
+ ApplicationSentinelType["TCP"] = "TCP";
9
+ })(ApplicationSentinelType || (exports.ApplicationSentinelType = ApplicationSentinelType = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum ApplicationStatsType {
2
+ CPU_USAGE = 10,
3
+ RAM_USAGE = 20,
4
+ DISK_USAGE = 30
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationStatsType = void 0;
4
+ var ApplicationStatsType;
5
+ (function (ApplicationStatsType) {
6
+ ApplicationStatsType[ApplicationStatsType["CPU_USAGE"] = 10] = "CPU_USAGE";
7
+ ApplicationStatsType[ApplicationStatsType["RAM_USAGE"] = 20] = "RAM_USAGE";
8
+ ApplicationStatsType[ApplicationStatsType["DISK_USAGE"] = 30] = "DISK_USAGE";
9
+ })(ApplicationStatsType || (exports.ApplicationStatsType = ApplicationStatsType = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum ApplicationWebhookScope {
2
+ EVENT = "EVENT",
3
+ SENTINEL = "SENTINEL"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ApplicationWebhookScope = void 0;
4
+ var ApplicationWebhookScope;
5
+ (function (ApplicationWebhookScope) {
6
+ ApplicationWebhookScope["EVENT"] = "EVENT";
7
+ ApplicationWebhookScope["SENTINEL"] = "SENTINEL";
8
+ })(ApplicationWebhookScope || (exports.ApplicationWebhookScope = ApplicationWebhookScope = {}));
@@ -0,0 +1 @@
1
+ export * from './api-error.enum';
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./api-error.enum"), exports);
@@ -0,0 +1,6 @@
1
+ export declare enum LogLevel {
2
+ ERROR = 1,
3
+ WARN = 2,
4
+ INFO = 3,
5
+ LOG = 4
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogLevel = void 0;
4
+ var LogLevel;
5
+ (function (LogLevel) {
6
+ LogLevel[LogLevel["ERROR"] = 1] = "ERROR";
7
+ LogLevel[LogLevel["WARN"] = 2] = "WARN";
8
+ LogLevel[LogLevel["INFO"] = 3] = "INFO";
9
+ LogLevel[LogLevel["LOG"] = 4] = "LOG";
10
+ })(LogLevel || (exports.LogLevel = LogLevel = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum LogScenario {
2
+ API = "API",
3
+ SYSTEM_STARTUP = "SYSTEM_STARTUP",
4
+ OTHER = "OTHER"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.LogScenario = void 0;
4
+ var LogScenario;
5
+ (function (LogScenario) {
6
+ LogScenario["API"] = "API";
7
+ LogScenario["SYSTEM_STARTUP"] = "SYSTEM_STARTUP";
8
+ LogScenario["OTHER"] = "OTHER";
9
+ })(LogScenario || (exports.LogScenario = LogScenario = {}));
File without changes
@@ -0,0 +1 @@
1
+ "use strict";
@@ -0,0 +1,3 @@
1
+ export * from './interface';
2
+ export * from './enum';
3
+ export * from './dto';
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./interface"), exports);
18
+ __exportStar(require("./enum"), exports);
19
+ __exportStar(require("./dto"), exports);
@@ -0,0 +1,13 @@
1
+ export * from './type-message/api-error';
2
+ export * from './type-message/response';
3
+ export * from './type-message/base-order';
4
+ export * from './type-message/base-paginate';
5
+ export * from './requests/domain-verification.request';
6
+ export * from './requests/domain-verification.admin.request';
7
+ export * from './requests/workflow.request';
8
+ export * from './requests/workflow.admin.request';
9
+ export * from './responses/monitor.response';
10
+ export * from './responses/domain-verification.response';
11
+ export * from './responses/domain-verification.admin.response';
12
+ export * from './responses/workflow.response';
13
+ export * from './responses/workflow.admin.response';
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./type-message/api-error"), exports);
18
+ __exportStar(require("./type-message/response"), exports);
19
+ __exportStar(require("./type-message/base-order"), exports);
20
+ __exportStar(require("./type-message/base-paginate"), exports);
21
+ __exportStar(require("./requests/domain-verification.request"), exports);
22
+ __exportStar(require("./requests/domain-verification.admin.request"), exports);
23
+ __exportStar(require("./requests/workflow.request"), exports);
24
+ __exportStar(require("./requests/workflow.admin.request"), exports);
25
+ __exportStar(require("./responses/monitor.response"), exports);
26
+ __exportStar(require("./responses/domain-verification.response"), exports);
27
+ __exportStar(require("./responses/domain-verification.admin.response"), exports);
28
+ __exportStar(require("./responses/workflow.response"), exports);
29
+ __exportStar(require("./responses/workflow.admin.response"), exports);
@@ -0,0 +1,50 @@
1
+ import { QueryPaginate } from '..';
2
+ export interface IGetApplicationCronTaskAdminParams {
3
+ applicationCronTaskId: string;
4
+ }
5
+ export interface IGetHistoryApplicationCronTaskAdminParams {
6
+ applicationCronTaskHistoryId: string;
7
+ }
8
+ export interface ICreateApplicationCronTaskAdminParams {
9
+ applicationId: string;
10
+ }
11
+ export interface ICreateApplicationCronTaskAdminBody {
12
+ name: string;
13
+ webhookUrl: string;
14
+ scheduleConfiguration: string;
15
+ description?: string | null;
16
+ isActivated?: boolean;
17
+ }
18
+ export type IPaginateApplicationCronTaskAdminQuery = {
19
+ name?: string[];
20
+ description?: string[];
21
+ webhookUrl?: string[];
22
+ isActivated?: boolean;
23
+ applicationId?: string[];
24
+ } & QueryPaginate;
25
+ export interface IUpdateApplicationCronTaskAdminParams {
26
+ applicationCronTaskId: string;
27
+ }
28
+ export interface IUpdateApplicationCronTaskAdminBody {
29
+ name?: string;
30
+ webhookUrl?: string;
31
+ scheduleConfiguration?: string;
32
+ description?: string | null;
33
+ isActivated?: boolean;
34
+ }
35
+ export type IPaginateHistoryApplicationCronTaskAdminQuery = {
36
+ startDateMin?: Date;
37
+ startDateMax?: Date;
38
+ requestId?: string[];
39
+ applicationId?: string[];
40
+ applicationCronTaskId?: string[];
41
+ } & QueryPaginate;
42
+ export interface IDeleteApplicationCronTaskAdminParams {
43
+ applicationCronTaskId: string;
44
+ }
45
+ export interface IRegenerateSecretApplicationCronTaskAdminParams {
46
+ applicationCronTaskId: string;
47
+ }
48
+ export interface ITriggerApplicationCronTaskAdminParams {
49
+ applicationCronTaskId: string;
50
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,61 @@
1
+ import { QueryPaginate } from '..';
2
+ export interface IGetApplicationCronTaskParams {
3
+ applicationId: string;
4
+ applicationCronTaskId: string;
5
+ }
6
+ export interface IGetHistoryApplicationCronTaskParams {
7
+ applicationId: string;
8
+ applicationCronTaskId: string;
9
+ applicationCronTaskHistoryId: string;
10
+ }
11
+ export interface ICreateApplicationCronTaskParams {
12
+ applicationId: string;
13
+ }
14
+ export interface ICreateApplicationCronTaskBody {
15
+ name: string;
16
+ webhookUrl: string;
17
+ scheduleConfiguration: string;
18
+ description?: string | null;
19
+ isActivated?: boolean;
20
+ }
21
+ export interface IPaginateApplicationCronTaskParams {
22
+ applicationId: string;
23
+ }
24
+ export type IPaginateApplicationCronTaskQuery = {
25
+ name?: string[];
26
+ description?: string[];
27
+ webhookUrl?: string[];
28
+ isActivated?: boolean;
29
+ } & QueryPaginate;
30
+ export interface IUpdateApplicationCronTaskParams {
31
+ applicationId: string;
32
+ applicationCronTaskId: string;
33
+ }
34
+ export interface IUpdateApplicationCronTaskBody {
35
+ name?: string;
36
+ webhookUrl?: string;
37
+ scheduleConfiguration?: string;
38
+ description?: string | null;
39
+ isActivated?: boolean;
40
+ }
41
+ export interface IPaginateHistoryApplicationCronTaskParams {
42
+ applicationId: string;
43
+ applicationCronTaskId: string;
44
+ }
45
+ export type IPaginateHistoryApplicationCronTaskQuery = {
46
+ startDateMin?: Date;
47
+ startDateMax?: Date;
48
+ requestId?: string[];
49
+ } & QueryPaginate;
50
+ export interface IDeleteApplicationCronTaskParams {
51
+ applicationId: string;
52
+ applicationCronTaskId: string;
53
+ }
54
+ export interface IRegenerateSecretApplicationCronTaskParams {
55
+ applicationId: string;
56
+ applicationCronTaskId: string;
57
+ }
58
+ export interface ITriggerApplicationCronTaskParams {
59
+ applicationId: string;
60
+ applicationCronTaskId: string;
61
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { QueryPaginate } from '..';
2
+ import { LogLevel } from '../../../enum';
3
+ export interface IGetApplicationEventAdminParams {
4
+ applicationEventId: string;
5
+ }
6
+ export type IPaginateApplicationEventAdminQuery = {
7
+ event?: string[];
8
+ eventContains?: string;
9
+ eventStartsWith?: string;
10
+ level?: LogLevel[];
11
+ messageContains?: string;
12
+ applicationId?: string[];
13
+ } & QueryPaginate;
14
+ export interface IDeleteApplicationEventAdminParams {
15
+ applicationEventId: string;
16
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,50 @@
1
+ import { QueryPaginate } from '..';
2
+ import { LogLevel } from '../../../enum';
3
+ export interface IGetApplicationEventParams {
4
+ applicationId: string;
5
+ applicationEventId: string;
6
+ }
7
+ export interface ICreateApplicationEventParams {
8
+ applicationId: string;
9
+ }
10
+ export interface ICreateApplicationEventBody {
11
+ event: string;
12
+ level: LogLevel;
13
+ data?: Record<string, unknown> | null;
14
+ message?: string | null;
15
+ }
16
+ export interface IPaginateApplicationEventParams {
17
+ applicationId: string;
18
+ }
19
+ export type IPaginateApplicationEventQuery = {
20
+ event?: string[];
21
+ eventContains?: string;
22
+ eventStartsWith?: string;
23
+ level?: LogLevel[];
24
+ messageContains?: string;
25
+ } & QueryPaginate;
26
+ export interface IDeleteApplicationEventParams {
27
+ applicationId: string;
28
+ applicationEventId: string;
29
+ }
30
+ export interface IGetTotalCountApplicationEventParams {
31
+ applicationId: string;
32
+ }
33
+ export interface IGetTotalCountApplicationEventQuery {
34
+ dateValueBefore?: Date;
35
+ dateValueAfter?: Date;
36
+ }
37
+ export interface IGetCountPerDayApplicationEventParams {
38
+ applicationId: string;
39
+ }
40
+ export interface IGetCountPerDayApplicationEventQuery {
41
+ dateValueBefore?: Date;
42
+ dateValueAfter?: Date;
43
+ }
44
+ export interface IGetMetricsApplicationEventParams {
45
+ applicationId: string;
46
+ }
47
+ export interface IGetMetricsApplicationEventQuery {
48
+ dateValueBefore?: Date;
49
+ dateValueAfter?: Date;
50
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,19 @@
1
+ import { QueryPaginate } from '..';
2
+ import { LogLevel } from '../../../enum';
3
+ export interface IGetApplicationLogAdminParams {
4
+ applicationLogId: string;
5
+ }
6
+ export type IPaginateApplicationLogAdminQuery = QueryPaginate & {
7
+ title?: string;
8
+ message?: string;
9
+ level?: LogLevel[];
10
+ context?: string;
11
+ scenario?: string;
12
+ requestId?: string;
13
+ processId?: string;
14
+ dateValueBefore?: Date;
15
+ dateValueAfter?: Date;
16
+ applicationId?: string[];
17
+ orderByDateAsc?: boolean;
18
+ shouldGetOnlyLogEndpoint?: boolean;
19
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,59 @@
1
+ import { QueryPaginate } from '..';
2
+ import { APIMethod, LogLevel } from '../../../enum';
3
+ export interface IGetApplicationLogParams {
4
+ applicationId: string;
5
+ applicationLogId: string;
6
+ }
7
+ export interface IPaginateApplicationLogParams {
8
+ applicationId: string;
9
+ }
10
+ export type IPaginateApplicationLogQuery = QueryPaginate & {
11
+ title?: string;
12
+ message?: string;
13
+ level?: LogLevel[];
14
+ context?: string;
15
+ scenario?: string;
16
+ requestId?: string;
17
+ processId?: string;
18
+ dateValueBefore?: Date;
19
+ dateValueAfter?: Date;
20
+ orderByDateAsc?: boolean;
21
+ shouldGetOnlyLogEndpoint?: boolean;
22
+ };
23
+ export interface ICreateApplicationLogParams {
24
+ applicationId: string;
25
+ }
26
+ export interface ICreateApplicationLogQuery {
27
+ token: string;
28
+ }
29
+ export interface ICreateApplicationLogBody {
30
+ title?: string | null;
31
+ message: string;
32
+ level: LogLevel;
33
+ context?: string | null;
34
+ processId: string;
35
+ requestId?: string | null;
36
+ scenario?: string | null;
37
+ dateValue: Date;
38
+ data?: Record<string, unknown> | null;
39
+ stack?: string | null;
40
+ applicationLogEndpoint?: {
41
+ authentication?: string | null;
42
+ controller: string;
43
+ endpoint: string;
44
+ ip: string[];
45
+ method: APIMethod;
46
+ responseTime: number;
47
+ responseHttpCode: number;
48
+ requestParams?: Record<string, string> | null;
49
+ requestQuery?: Record<string, string | string[]> | null;
50
+ requestBody?: Record<string, unknown> | string | null;
51
+ responseBody?: Record<string, unknown> | string | null;
52
+ };
53
+ applicationEvent?: {
54
+ event: string;
55
+ level: LogLevel;
56
+ message?: string | null;
57
+ data?: Record<string, unknown> | null;
58
+ };
59
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,52 @@
1
+ import { QueryPaginate } from '..';
2
+ import { ApplicationSentinelConfigurationDto } from '../../dto';
3
+ export interface IGetApplicationSentinelAdminParams {
4
+ applicationSentinelId: string;
5
+ }
6
+ export interface IGetHistoryApplicationSentinelAdminParams {
7
+ applicationSentinelHistoryId: string;
8
+ }
9
+ export interface ICreateApplicationSentinelAdminParams {
10
+ applicationId: string;
11
+ }
12
+ export interface ICreateApplicationSentinelAdminBody {
13
+ name: string;
14
+ scheduleConfiguration: string;
15
+ description?: string | null;
16
+ isActivated: boolean;
17
+ alertOnFailure: boolean;
18
+ webhookMetadata: Record<string, string>;
19
+ configuration: ApplicationSentinelConfigurationDto;
20
+ }
21
+ export type IPaginateApplicationSentinelAdminQuery = {
22
+ name?: string[];
23
+ description?: string[];
24
+ webhookUrl?: string[];
25
+ isActivated?: boolean;
26
+ applicationId?: string[];
27
+ } & QueryPaginate;
28
+ export interface IUpdateApplicationSentinelAdminParams {
29
+ applicationSentinelId: string;
30
+ }
31
+ export interface IUpdateApplicationSentinelAdminBody {
32
+ name?: string;
33
+ scheduleConfiguration?: string;
34
+ description?: string | null;
35
+ isActivated?: boolean;
36
+ alertOnFailure?: boolean;
37
+ webhookMetadata?: Record<string, string>;
38
+ configuration?: ApplicationSentinelConfigurationDto;
39
+ }
40
+ export type IPaginateHistoryApplicationSentinelAdminQuery = {
41
+ startDateMin?: Date;
42
+ startDateMax?: Date;
43
+ requestId?: string[];
44
+ applicationId?: string[];
45
+ applicationSentinelId?: string[];
46
+ } & QueryPaginate;
47
+ export interface IDeleteApplicationSentinelAdminParams {
48
+ applicationSentinelId: string;
49
+ }
50
+ export interface ITriggerApplicationSentinelAdminParams {
51
+ applicationSentinelId: string;
52
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });