@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
+ import { ApplicationSentinelConfigurationDto } from '../dto/application-sentinel-configuration.dto';
2
+ import { IApplicationSentinelHistory } from './application-sentinel-history.model';
3
+ import { IApplication } from './application.model';
4
+ export interface IApplicationSentinel {
5
+ id?: string;
6
+ name: string;
7
+ description: string | null;
8
+ isActivated: boolean;
9
+ applicationId: string;
10
+ alertOnFailure: boolean;
11
+ webhookMetadata: Record<string, string>;
12
+ scheduleConfiguration: string;
13
+ configuration: ApplicationSentinelConfigurationDto;
14
+ lastDownNotificationDate?: Date | null;
15
+ lastUpNotificationDate?: Date | null;
16
+ updatedAt?: Date;
17
+ createdAt?: Date;
18
+ application?: IApplication;
19
+ applicationSentinelHistory?: IApplicationSentinelHistory[];
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { ApplicationStatsType } from '../../enum';
2
+ import { IApplication } from './application.model';
3
+ export interface IApplicationStats {
4
+ id?: string;
5
+ applicationId: string;
6
+ type: ApplicationStatsType;
7
+ dateValue: Date;
8
+ processId: string;
9
+ value: number | null;
10
+ percentValue: number | null;
11
+ updatedAt?: Date;
12
+ createdAt?: Date;
13
+ application?: IApplication;
14
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,22 @@
1
+ import { ApplicationWebhookScope } from '../../enum';
2
+ import { IApplicationEvent } from './application-event.model';
3
+ import { IApplicationSentinelHistory } from './application-sentinel-history.model';
4
+ import { IApplicationWebhook } from './application-webhook.model';
5
+ export interface IApplicationWebhookHistory {
6
+ id?: string;
7
+ body: Record<string, unknown>;
8
+ response: string | null;
9
+ responseCode: number | null;
10
+ webhookId: string;
11
+ groupId: string;
12
+ scope: ApplicationWebhookScope;
13
+ sendAt: Date;
14
+ applicationWebhookId: string;
15
+ applicationSentinelHistoryId: string | null;
16
+ applicationEventId: string | null;
17
+ updatedAt?: Date;
18
+ createdAt?: Date;
19
+ applicationWebhook?: IApplicationWebhook;
20
+ applicationSentinelHistory?: IApplicationSentinelHistory | null;
21
+ applicationEvent?: IApplicationEvent | null;
22
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,32 @@
1
+ import { ApplicationSentinelType } from '../../enum/application-sentinel-type.enum';
2
+ import { ApplicationWebhookScope } from '../../enum/application-webhook-scope.enum';
3
+ import { IApplicationWebhookHistory } from './application-webhook-history.model';
4
+ import { IApplication } from './application.model';
5
+ export interface IApplicationWebhook {
6
+ id?: string;
7
+ scopes: ApplicationWebhookScope[];
8
+ webhookSecret: string;
9
+ webhookUrl: string;
10
+ isEnabled: boolean;
11
+ name: string;
12
+ description: string;
13
+ applicationId: string;
14
+ filters: ApplicationWebhookFilters | null;
15
+ updatedAt?: Date;
16
+ createdAt?: Date;
17
+ application: IApplication;
18
+ applicationWebhookHistory: IApplicationWebhookHistory[];
19
+ }
20
+ export type ApplicationWebhookFilters = {
21
+ [ApplicationWebhookScope.EVENT]?: {
22
+ include?: string[] | null;
23
+ equals?: string[] | null;
24
+ startsWith?: string[] | null;
25
+ endsWith?: string[] | null;
26
+ } | null;
27
+ [ApplicationWebhookScope.SENTINEL]?: {
28
+ type?: ApplicationSentinelType[];
29
+ notifyOnSuccess?: boolean;
30
+ notifyOnFailure?: boolean;
31
+ } | null;
32
+ };
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const application_webhook_scope_enum_1 = require("../../enum/application-webhook-scope.enum");
@@ -0,0 +1,19 @@
1
+ import { IApplicationCronTask } from './application-cron-task.model';
2
+ import { IApplicationEvent } from './application-event.model';
3
+ import { IApplicationLog } from './application-log.model';
4
+ import { IApplicationSentinel } from './application-sentinel.model';
5
+ import { IApplicationStats } from './application-stats.model';
6
+ import { IApplicationWebhook } from './application-webhook.model';
7
+ export interface IApplication {
8
+ id?: string;
9
+ projectId: string;
10
+ secretPublishToken: string;
11
+ updatedAt?: Date;
12
+ createdAt?: Date;
13
+ applicationStats?: IApplicationStats[];
14
+ applicationLog?: IApplicationLog[];
15
+ applicationCronTask?: IApplicationCronTask[];
16
+ applicationEvent?: IApplicationEvent[];
17
+ applicationWebhook?: IApplicationWebhook[];
18
+ applicationSentinel?: IApplicationSentinel[];
19
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,42 @@
1
+ import { IProject } from "./project.model";
2
+ export declare enum VerificationMethod {
3
+ DNS_TXT = "DNS_TXT",
4
+ HTTP_FILE = "HTTP_FILE"
5
+ }
6
+ export declare enum VerificationStatus {
7
+ PENDING = "PENDING",
8
+ VERIFIED = "VERIFIED",
9
+ FAILED = "FAILED"
10
+ }
11
+ export interface IDomainVerification {
12
+ id: string;
13
+ projectId: string;
14
+ domain: string;
15
+ verificationToken: string;
16
+ status: VerificationStatus;
17
+ verificationMethod: VerificationMethod | null;
18
+ verifiedAt: Date | null;
19
+ lastCheckedAt: Date | null;
20
+ lastError: string | null;
21
+ retryCount: number;
22
+ nextRetryAt: Date | null;
23
+ createdAt: Date;
24
+ updatedAt: Date;
25
+ project?: IProject;
26
+ }
27
+ export interface IDomainVerificationInstructions {
28
+ dns: {
29
+ recordType: string;
30
+ host: string;
31
+ value: string;
32
+ };
33
+ http: {
34
+ url: string;
35
+ content: string;
36
+ };
37
+ }
38
+ export interface IDomainVerificationResult {
39
+ success: boolean;
40
+ message: string;
41
+ error?: string;
42
+ }
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VerificationStatus = exports.VerificationMethod = void 0;
4
+ var VerificationMethod;
5
+ (function (VerificationMethod) {
6
+ VerificationMethod["DNS_TXT"] = "DNS_TXT";
7
+ VerificationMethod["HTTP_FILE"] = "HTTP_FILE";
8
+ })(VerificationMethod || (exports.VerificationMethod = VerificationMethod = {}));
9
+ var VerificationStatus;
10
+ (function (VerificationStatus) {
11
+ VerificationStatus["PENDING"] = "PENDING";
12
+ VerificationStatus["VERIFIED"] = "VERIFIED";
13
+ VerificationStatus["FAILED"] = "FAILED";
14
+ })(VerificationStatus || (exports.VerificationStatus = VerificationStatus = {}));
@@ -0,0 +1,11 @@
1
+ export interface IPartitionOptimizationHistory {
2
+ id?: string;
3
+ partitionName: string;
4
+ lastOptimizedAt: Date;
5
+ operations: string[];
6
+ durationMs: number;
7
+ status: 'success' | 'error';
8
+ errorMessage?: string | null;
9
+ createdAt?: Date;
10
+ updatedAt?: Date;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { IDomainVerification } from "./domain-verification.model";
2
+ import { IWorkflowExecution } from "./workflow-execution.model";
3
+ import { IWorkflowStep } from "./workflow-step.model";
4
+ export interface IProject {
5
+ id: string;
6
+ createdAt?: Date;
7
+ updatedAt?: Date;
8
+ domainVerification?: IDomainVerification[];
9
+ workflowStep?: IWorkflowStep[];
10
+ workflowExecution?: IWorkflowExecution[];
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,59 @@
1
+ import { IWorkflowExecution } from './workflow-execution.model';
2
+ import { IWorkflowStep, WorkflowStepType } from './workflow-step.model';
3
+ export declare enum WorkflowExecutionStepStatus {
4
+ PENDING = "PENDING",
5
+ RUNNING = "RUNNING",
6
+ COMPLETED = "COMPLETED",
7
+ FAILED = "FAILED",
8
+ SKIPPED = "SKIPPED",
9
+ WAITING = "WAITING"
10
+ }
11
+ export interface IWorkflowStepExecutionInput {
12
+ triggerData: Record<string, unknown>;
13
+ previousStepResults: Record<string, unknown>;
14
+ variables: Record<string, unknown>;
15
+ }
16
+ export interface IWorkflowStepExecutionOutput {
17
+ result: unknown;
18
+ data?: Record<string, unknown>;
19
+ variables?: Record<string, unknown>;
20
+ conditionResult?: boolean;
21
+ filtered?: boolean;
22
+ nextStepId?: string | null;
23
+ }
24
+ export interface IWorkflowStepExecutionError {
25
+ code: string;
26
+ message: string;
27
+ details?: Record<string, unknown>;
28
+ retryable: boolean;
29
+ }
30
+ export interface IWorkflowExecutionStep {
31
+ id: string;
32
+ workflowExecutionId: string;
33
+ workflowStepId: string;
34
+ stepType: WorkflowStepType;
35
+ stepName: string;
36
+ executionOrder: number;
37
+ status: WorkflowExecutionStepStatus;
38
+ input: IWorkflowStepExecutionInput;
39
+ output: IWorkflowStepExecutionOutput | null;
40
+ error: IWorkflowStepExecutionError | null;
41
+ retryCount: number;
42
+ startedAt: Date | null;
43
+ completedAt: Date | null;
44
+ durationMs: number | null;
45
+ createdAt?: Date;
46
+ updatedAt?: Date;
47
+ execution?: IWorkflowExecution;
48
+ step?: IWorkflowStep;
49
+ }
50
+ export interface IWorkflowStepExecutionLog {
51
+ timestamp: Date;
52
+ level: 'debug' | 'info' | 'warn' | 'error';
53
+ message: string;
54
+ data?: Record<string, unknown>;
55
+ }
56
+ export interface IWorkflowExecutionStepDetails extends IWorkflowExecutionStep {
57
+ logs?: IWorkflowStepExecutionLog[];
58
+ stepConfig?: Record<string, unknown>;
59
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowExecutionStepStatus = void 0;
4
+ var WorkflowExecutionStepStatus;
5
+ (function (WorkflowExecutionStepStatus) {
6
+ WorkflowExecutionStepStatus["PENDING"] = "PENDING";
7
+ WorkflowExecutionStepStatus["RUNNING"] = "RUNNING";
8
+ WorkflowExecutionStepStatus["COMPLETED"] = "COMPLETED";
9
+ WorkflowExecutionStepStatus["FAILED"] = "FAILED";
10
+ WorkflowExecutionStepStatus["SKIPPED"] = "SKIPPED";
11
+ WorkflowExecutionStepStatus["WAITING"] = "WAITING";
12
+ })(WorkflowExecutionStepStatus || (exports.WorkflowExecutionStepStatus = WorkflowExecutionStepStatus = {}));
@@ -0,0 +1,76 @@
1
+ import { IWorkflow, IWorkflowTriggerData, WorkflowTriggerType } from './workflow.model';
2
+ import { IWorkflowExecutionStep } from './workflow-execution-step.model';
3
+ export declare enum WorkflowExecutionStatus {
4
+ PENDING = "PENDING",
5
+ RUNNING = "RUNNING",
6
+ WAITING = "WAITING",
7
+ COMPLETED = "COMPLETED",
8
+ FAILED = "FAILED",
9
+ CANCELLED = "CANCELLED",
10
+ SKIPPED = "SKIPPED"
11
+ }
12
+ export interface IWorkflowExecutionMetadata {
13
+ sourceIp?: string;
14
+ userAgent?: string;
15
+ context?: Record<string, unknown>;
16
+ }
17
+ export interface IWorkflowExecutionError {
18
+ code: string;
19
+ message: string;
20
+ stepId?: string;
21
+ stack?: string;
22
+ occurredAt: Date;
23
+ }
24
+ export interface IWorkflowExecution {
25
+ id: string;
26
+ workflowId: string;
27
+ status: WorkflowExecutionStatus;
28
+ triggerType: WorkflowTriggerType;
29
+ triggerData: IWorkflowTriggerData;
30
+ userId: string | null;
31
+ currentWorkflowStepId: string | null;
32
+ stepResults: Record<string, unknown>;
33
+ variables: Record<string, unknown>;
34
+ metadata: IWorkflowExecutionMetadata;
35
+ error: IWorkflowExecutionError | null;
36
+ retryCount: number;
37
+ nextRetryAt: Date | null;
38
+ startedAt: Date;
39
+ completedAt: Date | null;
40
+ durationMs: number | null;
41
+ createdAt?: Date;
42
+ updatedAt?: Date;
43
+ workflow?: IWorkflow;
44
+ workflowExecutionStep?: IWorkflowExecutionStep[];
45
+ }
46
+ export interface IWorkflowExecutionSummary {
47
+ id: string;
48
+ workflowId: string;
49
+ workflowName: string;
50
+ status: WorkflowExecutionStatus;
51
+ triggerType: WorkflowTriggerType;
52
+ userId: string | null;
53
+ userEmail?: string;
54
+ stepsExecuted: number;
55
+ stepsTotal: number;
56
+ startedAt: Date;
57
+ completedAt: Date | null;
58
+ durationMs: number | null;
59
+ errorMessage?: string;
60
+ }
61
+ export interface IWorkflowExecutionStats {
62
+ workflowId: string;
63
+ period: 'hour' | 'day' | 'week' | 'month';
64
+ totalExecutions: number;
65
+ successfulExecutions: number;
66
+ failedExecutions: number;
67
+ skippedExecutions: number;
68
+ averageDurationMs: number;
69
+ executionsByHour?: Record<string, number>;
70
+ executionsByDay?: Record<string, number>;
71
+ topErrors?: Array<{
72
+ code: string;
73
+ message: string;
74
+ count: number;
75
+ }>;
76
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowExecutionStatus = void 0;
4
+ var WorkflowExecutionStatus;
5
+ (function (WorkflowExecutionStatus) {
6
+ WorkflowExecutionStatus["PENDING"] = "PENDING";
7
+ WorkflowExecutionStatus["RUNNING"] = "RUNNING";
8
+ WorkflowExecutionStatus["WAITING"] = "WAITING";
9
+ WorkflowExecutionStatus["COMPLETED"] = "COMPLETED";
10
+ WorkflowExecutionStatus["FAILED"] = "FAILED";
11
+ WorkflowExecutionStatus["CANCELLED"] = "CANCELLED";
12
+ WorkflowExecutionStatus["SKIPPED"] = "SKIPPED";
13
+ })(WorkflowExecutionStatus || (exports.WorkflowExecutionStatus = WorkflowExecutionStatus = {}));
@@ -0,0 +1,106 @@
1
+ import { IWorkflow } from './workflow.model';
2
+ export declare enum WorkflowStepType {
3
+ ACTION = "ACTION",
4
+ CONDITION = "CONDITION",
5
+ FILTER = "FILTER",
6
+ DELAY = "DELAY"
7
+ }
8
+ export declare enum WorkflowActionType {
9
+ INVITE_TO_PROJECT = "INVITE_TO_PROJECT",
10
+ CALL_WEBHOOK = "CALL_WEBHOOK"
11
+ }
12
+ export declare enum WorkflowConditionOperator {
13
+ EQUALS = "EQUALS",
14
+ NOT_EQUALS = "NOT_EQUALS",
15
+ CONTAINS = "CONTAINS",
16
+ NOT_CONTAINS = "NOT_CONTAINS",
17
+ STARTS_WITH = "STARTS_WITH",
18
+ ENDS_WITH = "ENDS_WITH",
19
+ GREATER_THAN = "GREATER_THAN",
20
+ LESS_THAN = "LESS_THAN",
21
+ IS_EMPTY = "IS_EMPTY",
22
+ IS_NOT_EMPTY = "IS_NOT_EMPTY",
23
+ IN_LIST = "IN_LIST",
24
+ NOT_IN_LIST = "NOT_IN_LIST",
25
+ MATCHES_REGEX = "MATCHES_REGEX",
26
+ EMAIL_DOMAIN_VERIFIED = "EMAIL_DOMAIN_VERIFIED"
27
+ }
28
+ export declare enum WorkflowLogicalOperator {
29
+ AND = "AND",
30
+ OR = "OR"
31
+ }
32
+ export declare enum WorkflowDelayUnit {
33
+ SECONDS = "SECONDS",
34
+ MINUTES = "MINUTES",
35
+ HOURS = "HOURS",
36
+ DAYS = "DAYS"
37
+ }
38
+ export interface IInviteToProjectActionConfig {
39
+ actionType: WorkflowActionType.INVITE_TO_PROJECT;
40
+ projectId: string;
41
+ permission: string[];
42
+ message?: string;
43
+ autoConfirm?: boolean;
44
+ }
45
+ export interface ICallWebhookActionConfig {
46
+ actionType: WorkflowActionType.CALL_WEBHOOK;
47
+ url: string;
48
+ method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
49
+ headers?: Record<string, string>;
50
+ body?: Record<string, unknown>;
51
+ }
52
+ export type IWorkflowActionConfig = IInviteToProjectActionConfig | ICallWebhookActionConfig;
53
+ export interface IWorkflowConditionRule {
54
+ field: string;
55
+ operator: WorkflowConditionOperator;
56
+ value?: string | number | boolean | string[];
57
+ }
58
+ export interface IWorkflowConditionGroup {
59
+ logicalOperator: WorkflowLogicalOperator;
60
+ rules: IWorkflowConditionRule[];
61
+ }
62
+ export interface IWorkflowConditionConfig {
63
+ groups: IWorkflowConditionGroup[];
64
+ onTrueStepId?: string | null;
65
+ onFalseStepId?: string | null;
66
+ }
67
+ export interface IWorkflowFilterConfig {
68
+ conditions: IWorkflowConditionGroup[];
69
+ filterMessage?: string;
70
+ }
71
+ export interface IWorkflowDelayConfig {
72
+ duration: number;
73
+ unit: WorkflowDelayUnit;
74
+ }
75
+ export interface IWorkflowStepConfigAction {
76
+ type: WorkflowStepType.ACTION;
77
+ action: IWorkflowActionConfig;
78
+ }
79
+ export interface IWorkflowStepConfigCondition {
80
+ type: WorkflowStepType.CONDITION;
81
+ condition: IWorkflowConditionConfig;
82
+ }
83
+ export interface IWorkflowStepConfigFilter {
84
+ type: WorkflowStepType.FILTER;
85
+ filter: IWorkflowFilterConfig;
86
+ }
87
+ export interface IWorkflowStepConfigDelay {
88
+ type: WorkflowStepType.DELAY;
89
+ delay: IWorkflowDelayConfig;
90
+ }
91
+ export type IWorkflowStepConfig = IWorkflowStepConfigAction | IWorkflowStepConfigCondition | IWorkflowStepConfigFilter | IWorkflowStepConfigDelay;
92
+ export interface IWorkflowStep {
93
+ id: string;
94
+ workflowId: string;
95
+ name: string;
96
+ description: string | null;
97
+ order: number;
98
+ type: WorkflowStepType;
99
+ config: IWorkflowStepConfig;
100
+ workflowNextStepId: string | null;
101
+ isEnabled: boolean;
102
+ createdAt?: Date;
103
+ updatedAt?: Date;
104
+ workflow?: IWorkflow;
105
+ workflowNextStep?: IWorkflowStep | null;
106
+ }
@@ -0,0 +1,44 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowDelayUnit = exports.WorkflowLogicalOperator = exports.WorkflowConditionOperator = exports.WorkflowActionType = exports.WorkflowStepType = void 0;
4
+ var WorkflowStepType;
5
+ (function (WorkflowStepType) {
6
+ WorkflowStepType["ACTION"] = "ACTION";
7
+ WorkflowStepType["CONDITION"] = "CONDITION";
8
+ WorkflowStepType["FILTER"] = "FILTER";
9
+ WorkflowStepType["DELAY"] = "DELAY";
10
+ })(WorkflowStepType || (exports.WorkflowStepType = WorkflowStepType = {}));
11
+ var WorkflowActionType;
12
+ (function (WorkflowActionType) {
13
+ WorkflowActionType["INVITE_TO_PROJECT"] = "INVITE_TO_PROJECT";
14
+ WorkflowActionType["CALL_WEBHOOK"] = "CALL_WEBHOOK";
15
+ })(WorkflowActionType || (exports.WorkflowActionType = WorkflowActionType = {}));
16
+ var WorkflowConditionOperator;
17
+ (function (WorkflowConditionOperator) {
18
+ WorkflowConditionOperator["EQUALS"] = "EQUALS";
19
+ WorkflowConditionOperator["NOT_EQUALS"] = "NOT_EQUALS";
20
+ WorkflowConditionOperator["CONTAINS"] = "CONTAINS";
21
+ WorkflowConditionOperator["NOT_CONTAINS"] = "NOT_CONTAINS";
22
+ WorkflowConditionOperator["STARTS_WITH"] = "STARTS_WITH";
23
+ WorkflowConditionOperator["ENDS_WITH"] = "ENDS_WITH";
24
+ WorkflowConditionOperator["GREATER_THAN"] = "GREATER_THAN";
25
+ WorkflowConditionOperator["LESS_THAN"] = "LESS_THAN";
26
+ WorkflowConditionOperator["IS_EMPTY"] = "IS_EMPTY";
27
+ WorkflowConditionOperator["IS_NOT_EMPTY"] = "IS_NOT_EMPTY";
28
+ WorkflowConditionOperator["IN_LIST"] = "IN_LIST";
29
+ WorkflowConditionOperator["NOT_IN_LIST"] = "NOT_IN_LIST";
30
+ WorkflowConditionOperator["MATCHES_REGEX"] = "MATCHES_REGEX";
31
+ WorkflowConditionOperator["EMAIL_DOMAIN_VERIFIED"] = "EMAIL_DOMAIN_VERIFIED";
32
+ })(WorkflowConditionOperator || (exports.WorkflowConditionOperator = WorkflowConditionOperator = {}));
33
+ var WorkflowLogicalOperator;
34
+ (function (WorkflowLogicalOperator) {
35
+ WorkflowLogicalOperator["AND"] = "AND";
36
+ WorkflowLogicalOperator["OR"] = "OR";
37
+ })(WorkflowLogicalOperator || (exports.WorkflowLogicalOperator = WorkflowLogicalOperator = {}));
38
+ var WorkflowDelayUnit;
39
+ (function (WorkflowDelayUnit) {
40
+ WorkflowDelayUnit["SECONDS"] = "SECONDS";
41
+ WorkflowDelayUnit["MINUTES"] = "MINUTES";
42
+ WorkflowDelayUnit["HOURS"] = "HOURS";
43
+ WorkflowDelayUnit["DAYS"] = "DAYS";
44
+ })(WorkflowDelayUnit || (exports.WorkflowDelayUnit = WorkflowDelayUnit = {}));
@@ -0,0 +1,90 @@
1
+ import { IProject } from './project.model';
2
+ import { IWorkflowStep } from './workflow-step.model';
3
+ import { IWorkflowExecution } from './workflow-execution.model';
4
+ export declare enum WorkflowMode {
5
+ SIMPLE = "SIMPLE",
6
+ ADVANCED = "ADVANCED"
7
+ }
8
+ export declare enum WorkflowStatus {
9
+ DRAFT = "DRAFT",
10
+ ACTIVE = "ACTIVE",
11
+ PAUSED = "PAUSED",
12
+ ARCHIVED = "ARCHIVED"
13
+ }
14
+ export declare enum WorkflowTriggerType {
15
+ USER_REGISTRATION = "USER_REGISTRATION",
16
+ WEBHOOK = "WEBHOOK"
17
+ }
18
+ export declare enum WorkflowTemplate {
19
+ AUTO_INVITE_BY_DOMAIN = "AUTO_INVITE_BY_DOMAIN"
20
+ }
21
+ export interface IWorkflowTriggerConfigBase {
22
+ type: WorkflowTriggerType;
23
+ }
24
+ export interface IUserRegistrationTriggerConfig extends IWorkflowTriggerConfigBase {
25
+ type: WorkflowTriggerType.USER_REGISTRATION;
26
+ filters?: {
27
+ emailDomains?: string[];
28
+ excludeEmailDomains?: string[];
29
+ };
30
+ }
31
+ export interface IWebhookTriggerConfig extends IWorkflowTriggerConfigBase {
32
+ type: WorkflowTriggerType.WEBHOOK;
33
+ webhookUrls?: IWorkflowWebhookUrl[];
34
+ secretKey?: string;
35
+ allowedIps?: string[];
36
+ }
37
+ export interface IWorkflowWebhookUrl {
38
+ id: string;
39
+ url: string;
40
+ isActive: boolean;
41
+ createdAt: Date;
42
+ }
43
+ export type IWorkflowTriggerConfig = IUserRegistrationTriggerConfig | IWebhookTriggerConfig;
44
+ export interface IUserRegistrationTriggerData {
45
+ userId: string;
46
+ email: string;
47
+ emailDomain: string;
48
+ name: string | null;
49
+ familyName: string | null;
50
+ registeredAt: Date;
51
+ }
52
+ export interface IWebhookTriggerData {
53
+ webhookUrlId: string;
54
+ payload: Record<string, unknown>;
55
+ headers?: Record<string, string>;
56
+ sourceIp?: string;
57
+ receivedAt: Date;
58
+ }
59
+ export type IWorkflowTriggerData = IUserRegistrationTriggerData | IWebhookTriggerData;
60
+ export interface IWorkflowSettings {
61
+ maxExecutionsPerHour?: number;
62
+ maxExecutionsPerDay?: number;
63
+ retryOnFailure?: boolean;
64
+ maxRetryAttempts?: number;
65
+ retryDelaySeconds?: number;
66
+ }
67
+ export interface IWorkflow {
68
+ id: string;
69
+ projectId: string;
70
+ name: string;
71
+ description: string | null;
72
+ mode: WorkflowMode;
73
+ template: WorkflowTemplate | null;
74
+ status: WorkflowStatus;
75
+ trigger: IWorkflowTriggerConfig;
76
+ settings: IWorkflowSettings;
77
+ userId: string;
78
+ createdAt?: Date;
79
+ updatedAt?: Date;
80
+ project?: IProject;
81
+ workflowStep?: IWorkflowStep[];
82
+ workflowExecution?: IWorkflowExecution[];
83
+ }
84
+ export interface IWorkflowContext {
85
+ workflowId: string;
86
+ executionId: string;
87
+ triggerData: IWorkflowTriggerData;
88
+ stepResults: Record<string, unknown>;
89
+ variables: Record<string, unknown>;
90
+ }
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.WorkflowTemplate = exports.WorkflowTriggerType = exports.WorkflowStatus = exports.WorkflowMode = void 0;
4
+ var WorkflowMode;
5
+ (function (WorkflowMode) {
6
+ WorkflowMode["SIMPLE"] = "SIMPLE";
7
+ WorkflowMode["ADVANCED"] = "ADVANCED";
8
+ })(WorkflowMode || (exports.WorkflowMode = WorkflowMode = {}));
9
+ var WorkflowStatus;
10
+ (function (WorkflowStatus) {
11
+ WorkflowStatus["DRAFT"] = "DRAFT";
12
+ WorkflowStatus["ACTIVE"] = "ACTIVE";
13
+ WorkflowStatus["PAUSED"] = "PAUSED";
14
+ WorkflowStatus["ARCHIVED"] = "ARCHIVED";
15
+ })(WorkflowStatus || (exports.WorkflowStatus = WorkflowStatus = {}));
16
+ var WorkflowTriggerType;
17
+ (function (WorkflowTriggerType) {
18
+ WorkflowTriggerType["USER_REGISTRATION"] = "USER_REGISTRATION";
19
+ WorkflowTriggerType["WEBHOOK"] = "WEBHOOK";
20
+ })(WorkflowTriggerType || (exports.WorkflowTriggerType = WorkflowTriggerType = {}));
21
+ var WorkflowTemplate;
22
+ (function (WorkflowTemplate) {
23
+ WorkflowTemplate["AUTO_INVITE_BY_DOMAIN"] = "AUTO_INVITE_BY_DOMAIN";
24
+ })(WorkflowTemplate || (exports.WorkflowTemplate = WorkflowTemplate = {}));
@@ -0,0 +1 @@
1
+ export {};