@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,71 @@
1
+ import { QueryPaginate } from '..';
2
+ import { ApplicationSentinelConfigurationDto } from '../../dto';
3
+ export interface IGetApplicationSentinelParams {
4
+ applicationId: string;
5
+ applicationSentinelId: string;
6
+ }
7
+ export interface IGetHistoryApplicationSentinelParams {
8
+ applicationId: string;
9
+ applicationSentinelId: string;
10
+ applicationSentinelHistoryId: string;
11
+ }
12
+ export interface ICreateApplicationSentinelParams {
13
+ applicationId: string;
14
+ }
15
+ export interface ICreateApplicationSentinelBody {
16
+ name: string;
17
+ scheduleConfiguration: string;
18
+ description?: string | null;
19
+ isActivated: boolean;
20
+ alertOnFailure: boolean;
21
+ webhookMetadata: Record<string, string>;
22
+ configuration: ApplicationSentinelConfigurationDto;
23
+ }
24
+ export interface IPaginateApplicationSentinelParams {
25
+ applicationId: string;
26
+ }
27
+ export type IPaginateApplicationSentinelQuery = {
28
+ name?: string[];
29
+ isActivated?: boolean;
30
+ alertOnFailure?: boolean;
31
+ } & QueryPaginate;
32
+ export interface IUpdateApplicationSentinelParams {
33
+ applicationId: string;
34
+ applicationSentinelId: string;
35
+ }
36
+ export interface IUpdateApplicationSentinelBody {
37
+ name?: string;
38
+ scheduleConfiguration?: string;
39
+ description?: string | null;
40
+ isActivated?: boolean;
41
+ alertOnFailure?: boolean;
42
+ webhookMetadata?: Record<string, string>;
43
+ configuration?: ApplicationSentinelConfigurationDto;
44
+ }
45
+ export interface IPaginateHistoryApplicationSentinelParams {
46
+ applicationId: string;
47
+ applicationSentinelId: string;
48
+ }
49
+ export type IPaginateHistoryApplicationSentinelQuery = {
50
+ startDateMin?: Date;
51
+ startDateMax?: Date;
52
+ minLatency?: number;
53
+ maxLatency?: number;
54
+ hasFailed?: boolean;
55
+ } & QueryPaginate;
56
+ export interface IDeleteApplicationSentinelParams {
57
+ applicationId: string;
58
+ applicationSentinelId: string;
59
+ }
60
+ export interface ITriggerApplicationSentinelParams {
61
+ applicationId: string;
62
+ applicationSentinelId: string;
63
+ }
64
+ export interface IMetricsLatencyApplicationSentinelParams {
65
+ applicationId: string;
66
+ applicationSentinelId: string;
67
+ }
68
+ export interface IMetricsLatencyApplicationSentinelQuery {
69
+ startDate?: Date;
70
+ endDate?: Date;
71
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,13 @@
1
+ import { QueryPaginate } from '..';
2
+ import { ApplicationStatsType } from '../../../enum';
3
+ export interface IGetApplicationStatsAdminParams {
4
+ applicationStatsId: string;
5
+ }
6
+ export type IPaginateApplicationStatsAdminQuery = {
7
+ type?: ApplicationStatsType[];
8
+ dateValueBefore?: Date;
9
+ dateValueAfter?: Date;
10
+ processId?: string[];
11
+ orderByDateAsc?: boolean;
12
+ applicationId?: string[];
13
+ } & QueryPaginate;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,31 @@
1
+ import { QueryPaginate } from '..';
2
+ import { ApplicationStatsType } from '../../../enum';
3
+ export interface IGetApplicationStatsParams {
4
+ applicationId: string;
5
+ applicationStatsId: string;
6
+ }
7
+ export interface ICreateApplicationStatsParams {
8
+ applicationId: string;
9
+ }
10
+ export interface ICreateApplicationStatsQuery {
11
+ token: string;
12
+ }
13
+ export interface ICreateApplicationStatsBody {
14
+ stats: {
15
+ type: ApplicationStatsType;
16
+ dateValue: Date;
17
+ processId: string;
18
+ value: number;
19
+ percentValue: number;
20
+ }[];
21
+ }
22
+ export interface IPaginateApplicationStatsParams {
23
+ applicationId: string;
24
+ }
25
+ export type IPaginateApplicationStatsQuery = {
26
+ type?: ApplicationStatsType[];
27
+ dateValueBefore?: Date;
28
+ dateValueAfter?: Date;
29
+ processId?: string[];
30
+ orderByDateAsc?: boolean;
31
+ } & QueryPaginate;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,16 @@
1
+ import { ApplicationWebhookScope } from '../../../enum';
2
+ import { QueryPaginate } from '..';
3
+ export interface IGetApplicationWebhookHistoryAdminParams {
4
+ applicationWebhookHistoryId: string;
5
+ }
6
+ export type IPaginateApplicationWebhookHistoryAdminQuery = {
7
+ responseCode?: number[];
8
+ applicationWebhookId?: string[];
9
+ applicationId?: string[];
10
+ webhookId?: string;
11
+ groupId?: string;
12
+ scope?: ApplicationWebhookScope[];
13
+ applicationEventId?: string[];
14
+ applicationSentinelHistoryId?: string[];
15
+ applicationSentinelId?: string[];
16
+ } & QueryPaginate;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,21 @@
1
+ import { QueryPaginate } from '..';
2
+ import { ApplicationWebhookScope } from '../../../enum';
3
+ export interface IGetApplicationWebhookHistoryParams {
4
+ applicationId: string;
5
+ applicationWebhookHistoryId: string;
6
+ }
7
+ export interface IPaginateApplicationWebhookHistoryParams {
8
+ applicationId: string;
9
+ }
10
+ export type IPaginateApplicationWebhookHistoryQuery = {
11
+ responseCode?: number[];
12
+ applicationWebhookId?: string[];
13
+ webhookId?: string;
14
+ groupId?: string;
15
+ scope?: ApplicationWebhookScope[];
16
+ applicationEventId?: string[];
17
+ applicationSentinelHistoryId?: string[];
18
+ applicationSentinelId?: string[];
19
+ dateValueBefore?: Date;
20
+ dateValueAfter?: Date;
21
+ } & QueryPaginate;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,39 @@
1
+ import { QueryPaginate } from '..';
2
+ import { ApplicationWebhookScope } from '../../../enum';
3
+ import { ApplicationWebhookFilters } from '../../models/application-webhook.model';
4
+ export interface IGetApplicationWebhookAdminParams {
5
+ applicationWebhookId: string;
6
+ }
7
+ export interface IDeleteApplicationWebhookAdminParams {
8
+ applicationWebhookId: string;
9
+ }
10
+ export interface IUpdateApplicationWebhookAdminParams {
11
+ applicationWebhookId: string;
12
+ }
13
+ export interface IUpdateApplicationWebhookAdminBody {
14
+ webhookUrl?: string;
15
+ name?: string;
16
+ isEnabled?: boolean;
17
+ description?: string;
18
+ scopes?: ApplicationWebhookScope[];
19
+ filters?: ApplicationWebhookFilters | null;
20
+ }
21
+ export interface ICreateApplicationWebhookAdminParams {
22
+ applicationId: string;
23
+ }
24
+ export interface ICreateApplicationWebhookAdminBody {
25
+ webhookUrl: string;
26
+ name: string;
27
+ isEnabled: boolean;
28
+ description?: string;
29
+ scopes: ApplicationWebhookScope[];
30
+ filters: ApplicationWebhookFilters | null;
31
+ }
32
+ export interface IResetSecretApplicationWebhookAdminParams {
33
+ applicationWebhookId: string;
34
+ }
35
+ export type IPaginateApplicationWebhookAdminQuery = {
36
+ applicationId?: string[];
37
+ name?: string;
38
+ scopes?: ApplicationWebhookScope[];
39
+ } & QueryPaginate;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,45 @@
1
+ import { QueryPaginate } from '..';
2
+ import { ApplicationWebhookScope } from '../../../enum';
3
+ import { ApplicationWebhookFilters } from '../../models/application-webhook.model';
4
+ export interface IGetApplicationWebhookParams {
5
+ applicationId: string;
6
+ applicationWebhookId: string;
7
+ }
8
+ export interface IDeleteApplicationWebhookParams {
9
+ applicationId: string;
10
+ applicationWebhookId: string;
11
+ }
12
+ export interface IUpdateApplicationWebhookParams {
13
+ applicationId: string;
14
+ applicationWebhookId: string;
15
+ }
16
+ export interface IUpdateApplicationWebhookBody {
17
+ webhookUrl?: string;
18
+ name?: string;
19
+ isEnabled?: boolean;
20
+ description?: string;
21
+ scopes?: ApplicationWebhookScope[];
22
+ filters?: ApplicationWebhookFilters | null;
23
+ }
24
+ export interface ICreateApplicationWebhookParams {
25
+ applicationId: string;
26
+ }
27
+ export interface ICreateApplicationWebhookBody {
28
+ webhookUrl: string;
29
+ name: string;
30
+ isEnabled: boolean;
31
+ description?: string;
32
+ scopes: ApplicationWebhookScope[];
33
+ filters: ApplicationWebhookFilters | null;
34
+ }
35
+ export interface IResetSecretApplicationWebhookParams {
36
+ applicationId: string;
37
+ applicationWebhookId: string;
38
+ }
39
+ export interface IPaginateApplicationWebhookParams {
40
+ applicationId: string;
41
+ }
42
+ export type IPaginateApplicationWebhookQuery = {
43
+ name?: string;
44
+ scopes?: ApplicationWebhookScope[];
45
+ } & QueryPaginate;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ import { QueryPaginate } from '..';
2
+ export interface IGetApplicationAdminParams {
3
+ applicationId: string;
4
+ }
5
+ export interface IResetSecretPublishTokenApplicationAdminParams {
6
+ applicationId: string;
7
+ }
8
+ export type IPaginateApplicationAdminQuery = QueryPaginate;
9
+ export interface IPaginateHourlyMetricsApplicationAdminQuery extends QueryPaginate {
10
+ applicationId: string;
11
+ startDate?: Date;
12
+ endDate?: Date;
13
+ }
14
+ export type ICreateApplicationAdminBody = {
15
+ projectId: string;
16
+ externalApplicationId: string;
17
+ };
18
+ export interface IDeleteApplicationAdminParams {
19
+ applicationId: string;
20
+ }
21
+ export interface IGetMetricsApplicationAdminBody {
22
+ applicationId: string[];
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,64 @@
1
+ export interface IGetApplicationParams {
2
+ applicationId: string;
3
+ }
4
+ export interface IResetSecretPublishTokenApplicationParams {
5
+ applicationId: string;
6
+ }
7
+ export interface IGetLogAnalyticsApplicationParams {
8
+ applicationId: string;
9
+ }
10
+ export interface IGetLogAnalyticsApplicationQuery {
11
+ dateValueBefore?: Date;
12
+ dateValueAfter?: Date;
13
+ }
14
+ export interface IGetAnalyticsApplicationParams {
15
+ applicationId: string;
16
+ }
17
+ export interface IGetAnalyticsApplicationQuery {
18
+ dateValueBefore?: Date;
19
+ dateValueAfter?: Date;
20
+ }
21
+ export interface IGetStatsAnalyticsApplicationParams {
22
+ applicationId: string;
23
+ }
24
+ export interface IGetStatsAnalyticsApplicationQuery {
25
+ dateValueBefore?: Date;
26
+ dateValueAfter?: Date;
27
+ }
28
+ export interface IGetEndpointAnalyticsApplicationParams {
29
+ applicationId: string;
30
+ }
31
+ export interface IGetEndpointAnalyticsApplicationQuery {
32
+ dateValueBefore?: Date;
33
+ dateValueAfter?: Date;
34
+ }
35
+ export interface IGetEndpointOnPeriodAnalyticsApplicationParams {
36
+ applicationId: string;
37
+ }
38
+ export interface IGetEndpointOnPeriodAnalyticsApplicationQuery {
39
+ dateValueBefore?: Date;
40
+ dateValueAfter?: Date;
41
+ }
42
+ export interface IGetSlowerEndpointAnalyticsApplicationParams {
43
+ applicationId: string;
44
+ }
45
+ export interface IGetSlowerEndpointAnalyticsApplicationQuery {
46
+ dateValueBefore?: Date;
47
+ dateValueAfter?: Date;
48
+ }
49
+ export interface ICallPerControllerAnalyticsApplicationParams {
50
+ applicationId: string;
51
+ }
52
+ export interface ICallPerControllerAnalyticsApplicationQuery {
53
+ dateValueBefore?: Date;
54
+ dateValueAfter?: Date;
55
+ }
56
+ export interface IPaginateHourlyMetricsApplicationParams {
57
+ applicationId: string;
58
+ }
59
+ export interface IPaginateHourlyMetricsApplicationQuery {
60
+ page?: number;
61
+ limit?: number;
62
+ startDate?: Date;
63
+ endDate?: Date;
64
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export interface IRunCronDomainVerificationAdminBody {
2
+ reVerifyOnly?: boolean;
3
+ retryPendingOnly?: boolean;
4
+ applicationCronTaskHistoryId?: string;
5
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,29 @@
1
+ import { VerificationMethod } from '../../models/domain-verification.model';
2
+ export interface ICreateDomainVerificationParams {
3
+ projectId: string;
4
+ }
5
+ export interface ICreateDomainVerificationBody {
6
+ domain: string;
7
+ }
8
+ export interface IListDomainVerificationParams {
9
+ projectId: string;
10
+ }
11
+ export interface IGetDomainVerificationParams {
12
+ projectId: string;
13
+ domainVerificationId: string;
14
+ }
15
+ export interface IVerifyDomainVerificationParams {
16
+ projectId: string;
17
+ domainVerificationId: string;
18
+ }
19
+ export interface IVerifyDomainVerificationBody {
20
+ method: VerificationMethod;
21
+ }
22
+ export interface IRegenerateDomainVerificationParams {
23
+ projectId: string;
24
+ domainVerificationId: string;
25
+ }
26
+ export interface IDeleteDomainVerificationParams {
27
+ projectId: string;
28
+ domainVerificationId: string;
29
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,10 @@
1
+ export interface IGetHourlyMetricsParams {
2
+ projectId: string;
3
+ }
4
+ export interface IGetHourlyMetricsQuery {
5
+ applicationIds?: string[];
6
+ startDate?: Date;
7
+ endDate?: Date;
8
+ limit?: number;
9
+ offset?: number;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ export interface CreateFuturePartitionsInfrastructureBody {
2
+ monthsAhead: number;
3
+ applicationCronTaskHistoryId?: string;
4
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ export interface IFillLifetimeMetricsAdminBody {
2
+ applicationIds?: string[];
3
+ force?: boolean;
4
+ }
5
+ export interface IFillHourlyMetricsAdminBody {
6
+ applicationIds?: string[];
7
+ days?: number;
8
+ force?: boolean;
9
+ }
10
+ export interface IAggregateHourAdminBody {
11
+ applicationIds?: string[];
12
+ applicationCronTaskHistoryId?: string;
13
+ referenceDate?: Date;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,23 @@
1
+ export interface IGetSentinelMetricsParams {
2
+ projectId: string;
3
+ }
4
+ export interface IGetSentinelMetricsQuery {
5
+ applicationIds?: string[];
6
+ shouldGetAll?: boolean;
7
+ }
8
+ export interface IGetLatencySentinelMetricsParams {
9
+ projectId: string;
10
+ }
11
+ export interface IGetLatencySentinelMetricsQuery {
12
+ applicationIds?: string[];
13
+ startDate?: Date;
14
+ endDate?: Date;
15
+ }
16
+ export interface IGetLastIncidentSentinelMetricsParams {
17
+ projectId: string;
18
+ }
19
+ export interface IGetLastIncidentSentinelMetricsQuery {
20
+ applicationIds?: string[];
21
+ startDate?: Date;
22
+ endDate?: Date;
23
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ export interface GetReportAdminBody {
2
+ applicationId: string[];
3
+ startDate: Date;
4
+ endDate: Date;
5
+ timePeriod?: 'minute' | 'hour' | 'day' | 'month';
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,35 @@
1
+ import { WorkflowMode, WorkflowStatus, IWorkflowTriggerData } from '../../models/workflow.model';
2
+ import { WorkflowExecutionStatus } from '../../models/workflow-execution.model';
3
+ import { QueryPaginate } from '..';
4
+ export interface IGetWorkflowAdminParams {
5
+ workflowId: string;
6
+ }
7
+ export interface ITriggerWorkflowAdminParams {
8
+ workflowId: string;
9
+ }
10
+ export interface ICancelWorkflowExecutionAdminParams {
11
+ workflowExecutionId: string;
12
+ }
13
+ export interface IPaginateWorkflowAdminQuery extends QueryPaginate {
14
+ projectId?: string;
15
+ status?: WorkflowStatus;
16
+ mode?: WorkflowMode;
17
+ search?: string;
18
+ orderBy?: 'name' | 'createdAt' | 'updatedAt' | 'status';
19
+ orderDirection?: 'ASC' | 'DESC';
20
+ }
21
+ export interface IPaginateWorkflowExecutionsAdminQuery extends QueryPaginate {
22
+ projectId?: string;
23
+ workflowId?: string;
24
+ status?: WorkflowExecutionStatus;
25
+ startDate?: string;
26
+ endDate?: string;
27
+ orderBy?: 'startedAt' | 'completedAt' | 'status';
28
+ orderDirection?: 'ASC' | 'DESC';
29
+ }
30
+ export interface IUpdateWorkflowStatusAdminBody {
31
+ status: WorkflowStatus;
32
+ }
33
+ export interface ITriggerWorkflowAdminBody {
34
+ triggerData: IWorkflowTriggerData;
35
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,114 @@
1
+ import { WorkflowMode, WorkflowStatus, WorkflowTemplate, IWorkflowTriggerConfig, IWorkflowSettings } from '../../models/workflow.model';
2
+ import { IWorkflowStepConfig } from '../../models/workflow-step.model';
3
+ import { WorkflowExecutionStatus } from '../../models/workflow-execution.model';
4
+ import { QueryPaginate } from '..';
5
+ export type ICreateWorkflowParams = {
6
+ projectId: string;
7
+ };
8
+ export interface IPaginateWorkflowParams {
9
+ projectId: string;
10
+ }
11
+ export interface IGetWorkflowParams {
12
+ projectId: string;
13
+ workflowId: string;
14
+ }
15
+ export interface IUpdateWorkflowParams {
16
+ projectId: string;
17
+ workflowId: string;
18
+ }
19
+ export interface IUpdateWorkflowStatusParams {
20
+ projectId: string;
21
+ workflowId: string;
22
+ }
23
+ export interface IDeleteWorkflowParams {
24
+ projectId: string;
25
+ workflowId: string;
26
+ }
27
+ export interface ICreateWorkflowStepParams {
28
+ projectId: string;
29
+ workflowId: string;
30
+ }
31
+ export interface IListWorkflowStepsParams {
32
+ projectId: string;
33
+ workflowId: string;
34
+ }
35
+ export interface IUpdateWorkflowStepParams {
36
+ projectId: string;
37
+ workflowId: string;
38
+ workflowStepId: string;
39
+ }
40
+ export interface IDeleteWorkflowStepParams {
41
+ projectId: string;
42
+ workflowId: string;
43
+ workflowStepId: string;
44
+ }
45
+ export interface IPaginateWorkflowExecutionParams {
46
+ projectId: string;
47
+ workflowId: string;
48
+ }
49
+ export interface IGetWorkflowExecutionParams {
50
+ projectId: string;
51
+ workflowId: string;
52
+ workflowExecutionId: string;
53
+ }
54
+ export interface IGetWorkflowExecutionStatsParams {
55
+ projectId: string;
56
+ workflowId: string;
57
+ }
58
+ export interface ICancelWorkflowExecutionParams {
59
+ projectId: string;
60
+ workflowId: string;
61
+ workflowExecutionId: string;
62
+ }
63
+ export interface ICreateWorkflowBody {
64
+ name: string;
65
+ description?: string | null;
66
+ mode?: WorkflowMode;
67
+ template?: WorkflowTemplate | null;
68
+ trigger: IWorkflowTriggerConfig;
69
+ settings?: IWorkflowSettings;
70
+ }
71
+ export interface IUpdateWorkflowBody {
72
+ name?: string;
73
+ description?: string | null;
74
+ mode?: WorkflowMode;
75
+ trigger?: IWorkflowTriggerConfig;
76
+ settings?: IWorkflowSettings;
77
+ }
78
+ export interface IUpdateWorkflowStatusBody {
79
+ status: WorkflowStatus;
80
+ }
81
+ export interface ICreateWorkflowStepBody {
82
+ name: string;
83
+ description?: string | null;
84
+ order?: number;
85
+ config: IWorkflowStepConfig;
86
+ workflowNextStepId?: string | null;
87
+ isEnabled?: boolean;
88
+ }
89
+ export interface IUpdateWorkflowStepBody {
90
+ name?: string;
91
+ description?: string | null;
92
+ order?: number;
93
+ config?: IWorkflowStepConfig;
94
+ workflowNextStepId?: string | null;
95
+ isEnabled?: boolean;
96
+ }
97
+ export interface IPaginateWorkflowQuery extends QueryPaginate {
98
+ status?: WorkflowStatus;
99
+ mode?: WorkflowMode;
100
+ search?: string;
101
+ orderBy?: 'name' | 'createdAt' | 'updatedAt' | 'status';
102
+ orderDirection?: 'ASC' | 'DESC';
103
+ }
104
+ export interface IPaginateWorkflowExecutionQuery extends QueryPaginate {
105
+ status?: WorkflowExecutionStatus;
106
+ startDate?: string;
107
+ endDate?: string;
108
+ orderBy?: 'startedAt' | 'completedAt' | 'status';
109
+ orderDirection?: 'ASC' | 'DESC';
110
+ }
111
+ export interface IGetWorkflowExecutionStatsQuery {
112
+ startDate?: string;
113
+ endDate?: string;
114
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });