@erxes/api-shared 0.0.0-stage → 3.2.19-2

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 (758) hide show
  1. package/LICENSE.md +672 -0
  2. package/core-modules/dist/erxes-api-shared-core-modules.cjs.d.ts +2 -0
  3. package/core-modules/dist/erxes-api-shared-core-modules.cjs.dev.js +6685 -0
  4. package/core-modules/dist/erxes-api-shared-core-modules.cjs.js +7 -0
  5. package/core-modules/dist/erxes-api-shared-core-modules.cjs.prod.js +6685 -0
  6. package/core-modules/dist/erxes-api-shared-core-modules.esm.js +6298 -0
  7. package/core-modules/package.json +5 -0
  8. package/core-types/dist/erxes-api-shared-core-types.cjs.d.ts +2 -0
  9. package/core-types/dist/erxes-api-shared-core-types.cjs.dev.js +12 -0
  10. package/core-types/dist/erxes-api-shared-core-types.cjs.js +7 -0
  11. package/core-types/dist/erxes-api-shared-core-types.cjs.prod.js +12 -0
  12. package/core-types/dist/erxes-api-shared-core-types.esm.js +8 -0
  13. package/core-types/package.json +5 -0
  14. package/dist/declarations/src/core-modules/approval/approvalChangeTypes.d.ts +15 -0
  15. package/dist/declarations/src/core-modules/approval/approvalChangeTypes.d.ts.map +1 -0
  16. package/dist/declarations/src/core-modules/approval/checkApprovalLock.d.ts +7 -0
  17. package/dist/declarations/src/core-modules/approval/checkApprovalLock.d.ts.map +1 -0
  18. package/dist/declarations/src/core-modules/approval/constants.d.ts +37 -0
  19. package/dist/declarations/src/core-modules/approval/constants.d.ts.map +1 -0
  20. package/dist/declarations/src/core-modules/approval/index.d.ts +7 -0
  21. package/dist/declarations/src/core-modules/approval/index.d.ts.map +1 -0
  22. package/dist/declarations/src/core-modules/approval/initApproval.d.ts +9 -0
  23. package/dist/declarations/src/core-modules/approval/initApproval.d.ts.map +1 -0
  24. package/dist/declarations/src/core-modules/approval/types.d.ts +164 -0
  25. package/dist/declarations/src/core-modules/approval/types.d.ts.map +1 -0
  26. package/dist/declarations/src/core-modules/approval/zodSchemas.d.ts +125 -0
  27. package/dist/declarations/src/core-modules/approval/zodSchemas.d.ts.map +1 -0
  28. package/dist/declarations/src/core-modules/apps/@types/app.d.ts +15 -0
  29. package/dist/declarations/src/core-modules/apps/@types/app.d.ts.map +1 -0
  30. package/dist/declarations/src/core-modules/apps/db/definitions/apps.d.ts +13 -0
  31. package/dist/declarations/src/core-modules/apps/db/definitions/apps.d.ts.map +1 -0
  32. package/dist/declarations/src/core-modules/apps/index.d.ts +3 -0
  33. package/dist/declarations/src/core-modules/apps/index.d.ts.map +1 -0
  34. package/dist/declarations/src/core-modules/automations/actionErrorPolicy.d.ts +68 -0
  35. package/dist/declarations/src/core-modules/automations/actionErrorPolicy.d.ts.map +1 -0
  36. package/dist/declarations/src/core-modules/automations/actionOutcome.d.ts +51 -0
  37. package/dist/declarations/src/core-modules/automations/actionOutcome.d.ts.map +1 -0
  38. package/dist/declarations/src/core-modules/automations/constants.d.ts +101 -0
  39. package/dist/declarations/src/core-modules/automations/constants.d.ts.map +1 -0
  40. package/dist/declarations/src/core-modules/automations/definitions/aiAgents.d.ts +141 -0
  41. package/dist/declarations/src/core-modules/automations/definitions/aiAgents.d.ts.map +1 -0
  42. package/dist/declarations/src/core-modules/automations/definitions/automations.d.ts +868 -0
  43. package/dist/declarations/src/core-modules/automations/definitions/automations.d.ts.map +1 -0
  44. package/dist/declarations/src/core-modules/automations/definitions/executions.d.ts +316 -0
  45. package/dist/declarations/src/core-modules/automations/definitions/executions.d.ts.map +1 -0
  46. package/dist/declarations/src/core-modules/automations/definitions/index.d.ts +4 -0
  47. package/dist/declarations/src/core-modules/automations/definitions/index.d.ts.map +1 -0
  48. package/dist/declarations/src/core-modules/automations/index.d.ts +14 -0
  49. package/dist/declarations/src/core-modules/automations/index.d.ts.map +1 -0
  50. package/dist/declarations/src/core-modules/automations/outputResolvers.d.ts +67 -0
  51. package/dist/declarations/src/core-modules/automations/outputResolvers.d.ts.map +1 -0
  52. package/dist/declarations/src/core-modules/automations/reEnrollment.d.ts +23 -0
  53. package/dist/declarations/src/core-modules/automations/reEnrollment.d.ts.map +1 -0
  54. package/dist/declarations/src/core-modules/automations/segmentMembership.d.ts +19 -0
  55. package/dist/declarations/src/core-modules/automations/segmentMembership.d.ts.map +1 -0
  56. package/dist/declarations/src/core-modules/automations/sendAutomationMessage.d.ts +51 -0
  57. package/dist/declarations/src/core-modules/automations/sendAutomationMessage.d.ts.map +1 -0
  58. package/dist/declarations/src/core-modules/automations/setupAutomationProducers.d.ts +4 -0
  59. package/dist/declarations/src/core-modules/automations/setupAutomationProducers.d.ts.map +1 -0
  60. package/dist/declarations/src/core-modules/automations/typeUtils.d.ts +2 -0
  61. package/dist/declarations/src/core-modules/automations/typeUtils.d.ts.map +1 -0
  62. package/dist/declarations/src/core-modules/automations/types.d.ts +474 -0
  63. package/dist/declarations/src/core-modules/automations/types.d.ts.map +1 -0
  64. package/dist/declarations/src/core-modules/automations/utils.d.ts +38 -0
  65. package/dist/declarations/src/core-modules/automations/utils.d.ts.map +1 -0
  66. package/dist/declarations/src/core-modules/automations/workflowValidation.d.ts +3 -0
  67. package/dist/declarations/src/core-modules/automations/workflowValidation.d.ts.map +1 -0
  68. package/dist/declarations/src/core-modules/automations/zodTypes.d.ts +2366 -0
  69. package/dist/declarations/src/core-modules/automations/zodTypes.d.ts.map +1 -0
  70. package/dist/declarations/src/core-modules/client-portals/definitions/clientPortal.d.ts +375 -0
  71. package/dist/declarations/src/core-modules/client-portals/definitions/clientPortal.d.ts.map +1 -0
  72. package/dist/declarations/src/core-modules/client-portals/definitions/comment.d.ts +53 -0
  73. package/dist/declarations/src/core-modules/client-portals/definitions/comment.d.ts.map +1 -0
  74. package/dist/declarations/src/core-modules/client-portals/definitions/cpNotification.d.ts +110 -0
  75. package/dist/declarations/src/core-modules/client-portals/definitions/cpNotification.d.ts.map +1 -0
  76. package/dist/declarations/src/core-modules/client-portals/definitions/cpUser.d.ts +828 -0
  77. package/dist/declarations/src/core-modules/client-portals/definitions/cpUser.d.ts.map +1 -0
  78. package/dist/declarations/src/core-modules/client-portals/index.d.ts +5 -0
  79. package/dist/declarations/src/core-modules/client-portals/index.d.ts.map +1 -0
  80. package/dist/declarations/src/core-modules/common/db/definitions/common.d.ts +77 -0
  81. package/dist/declarations/src/core-modules/common/db/definitions/common.d.ts.map +1 -0
  82. package/dist/declarations/src/core-modules/common/eventHandlers/createEventHandlers.d.ts +8 -0
  83. package/dist/declarations/src/core-modules/common/eventHandlers/createEventHandlers.d.ts.map +1 -0
  84. package/dist/declarations/src/core-modules/common/eventHandlers/generateEventHandlers.d.ts +4 -0
  85. package/dist/declarations/src/core-modules/common/eventHandlers/generateEventHandlers.d.ts.map +1 -0
  86. package/dist/declarations/src/core-modules/common/eventHandlers/index.d.ts +5 -0
  87. package/dist/declarations/src/core-modules/common/eventHandlers/index.d.ts.map +1 -0
  88. package/dist/declarations/src/core-modules/common/eventHandlers/runtimeContext.d.ts +9 -0
  89. package/dist/declarations/src/core-modules/common/eventHandlers/runtimeContext.d.ts.map +1 -0
  90. package/dist/declarations/src/core-modules/common/eventHandlers/schemas.d.ts +82 -0
  91. package/dist/declarations/src/core-modules/common/eventHandlers/schemas.d.ts.map +1 -0
  92. package/dist/declarations/src/core-modules/common/eventHandlers/types.d.ts +87 -0
  93. package/dist/declarations/src/core-modules/common/eventHandlers/types.d.ts.map +1 -0
  94. package/dist/declarations/src/core-modules/common/index.d.ts +5 -0
  95. package/dist/declarations/src/core-modules/common/index.d.ts.map +1 -0
  96. package/dist/declarations/src/core-modules/common/references/getRecordReferenceFields.d.ts +57 -0
  97. package/dist/declarations/src/core-modules/common/references/getRecordReferenceFields.d.ts.map +1 -0
  98. package/dist/declarations/src/core-modules/common/references/index.d.ts +6 -0
  99. package/dist/declarations/src/core-modules/common/references/index.d.ts.map +1 -0
  100. package/dist/declarations/src/core-modules/common/references/initRecordReferences.d.ts +4 -0
  101. package/dist/declarations/src/core-modules/common/references/initRecordReferences.d.ts.map +1 -0
  102. package/dist/declarations/src/core-modules/common/references/resolveRecordReferencePlaceholders.d.ts +12 -0
  103. package/dist/declarations/src/core-modules/common/references/resolveRecordReferencePlaceholders.d.ts.map +1 -0
  104. package/dist/declarations/src/core-modules/common/references/resolveRecordReferenceValue.d.ts +6 -0
  105. package/dist/declarations/src/core-modules/common/references/resolveRecordReferenceValue.d.ts.map +1 -0
  106. package/dist/declarations/src/core-modules/common/references/types.d.ts +63 -0
  107. package/dist/declarations/src/core-modules/common/references/types.d.ts.map +1 -0
  108. package/dist/declarations/src/core-modules/common/routeToModuleProducer.d.ts +55 -0
  109. package/dist/declarations/src/core-modules/common/routeToModuleProducer.d.ts.map +1 -0
  110. package/dist/declarations/src/core-modules/email-content/blocksToHtml.d.ts +72 -0
  111. package/dist/declarations/src/core-modules/email-content/blocksToHtml.d.ts.map +1 -0
  112. package/dist/declarations/src/core-modules/email-content/constants.d.ts +5 -0
  113. package/dist/declarations/src/core-modules/email-content/constants.d.ts.map +1 -0
  114. package/dist/declarations/src/core-modules/email-content/emailFooter.d.ts +5 -0
  115. package/dist/declarations/src/core-modules/email-content/emailFooter.d.ts.map +1 -0
  116. package/dist/declarations/src/core-modules/email-content/expandRepeatRows.d.ts +9 -0
  117. package/dist/declarations/src/core-modules/email-content/expandRepeatRows.d.ts.map +1 -0
  118. package/dist/declarations/src/core-modules/email-content/index.d.ts +9 -0
  119. package/dist/declarations/src/core-modules/email-content/index.d.ts.map +1 -0
  120. package/dist/declarations/src/core-modules/email-content/renderEmailContent.d.ts +19 -0
  121. package/dist/declarations/src/core-modules/email-content/renderEmailContent.d.ts.map +1 -0
  122. package/dist/declarations/src/core-modules/email-content/replacePlaceholders.d.ts +36 -0
  123. package/dist/declarations/src/core-modules/email-content/replacePlaceholders.d.ts.map +1 -0
  124. package/dist/declarations/src/core-modules/email-content/types.d.ts +48 -0
  125. package/dist/declarations/src/core-modules/email-content/types.d.ts.map +1 -0
  126. package/dist/declarations/src/core-modules/email-content/unresolvedPlaceholders.d.ts +4 -0
  127. package/dist/declarations/src/core-modules/email-content/unresolvedPlaceholders.d.ts.map +1 -0
  128. package/dist/declarations/src/core-modules/forms/index.d.ts +3 -0
  129. package/dist/declarations/src/core-modules/forms/index.d.ts.map +1 -0
  130. package/dist/declarations/src/core-modules/forms/types.d.ts +55 -0
  131. package/dist/declarations/src/core-modules/forms/types.d.ts.map +1 -0
  132. package/dist/declarations/src/core-modules/forms/utils.d.ts +4 -0
  133. package/dist/declarations/src/core-modules/forms/utils.d.ts.map +1 -0
  134. package/dist/declarations/src/core-modules/import-export/index.d.ts +8 -0
  135. package/dist/declarations/src/core-modules/import-export/index.d.ts.map +1 -0
  136. package/dist/declarations/src/core-modules/import-export/types.d.ts +181 -0
  137. package/dist/declarations/src/core-modules/import-export/types.d.ts.map +1 -0
  138. package/dist/declarations/src/core-modules/import-export/utils/exportCursor.d.ts +14 -0
  139. package/dist/declarations/src/core-modules/import-export/utils/exportCursor.d.ts.map +1 -0
  140. package/dist/declarations/src/core-modules/import-export/utils/headerMatcher.d.ts +32 -0
  141. package/dist/declarations/src/core-modules/import-export/utils/headerMatcher.d.ts.map +1 -0
  142. package/dist/declarations/src/core-modules/import-export/utils/importExportRuntime.d.ts +32 -0
  143. package/dist/declarations/src/core-modules/import-export/utils/importExportRuntime.d.ts.map +1 -0
  144. package/dist/declarations/src/core-modules/import-export/utils/importUtils.d.ts +25 -0
  145. package/dist/declarations/src/core-modules/import-export/utils/importUtils.d.ts.map +1 -0
  146. package/dist/declarations/src/core-modules/import-export/worker.d.ts +8 -0
  147. package/dist/declarations/src/core-modules/import-export/worker.d.ts.map +1 -0
  148. package/dist/declarations/src/core-modules/import-export/zodSchemas.d.ts +111 -0
  149. package/dist/declarations/src/core-modules/import-export/zodSchemas.d.ts.map +1 -0
  150. package/dist/declarations/src/core-modules/index.d.ts +16 -0
  151. package/dist/declarations/src/core-modules/index.d.ts.map +1 -0
  152. package/dist/declarations/src/core-modules/logs/activityLog/builder.d.ts +3 -0
  153. package/dist/declarations/src/core-modules/logs/activityLog/builder.d.ts.map +1 -0
  154. package/dist/declarations/src/core-modules/logs/activityLog/index.d.ts +5 -0
  155. package/dist/declarations/src/core-modules/logs/activityLog/index.d.ts.map +1 -0
  156. package/dist/declarations/src/core-modules/logs/activityLog/sharedBuilders.d.ts +18 -0
  157. package/dist/declarations/src/core-modules/logs/activityLog/sharedBuilders.d.ts.map +1 -0
  158. package/dist/declarations/src/core-modules/logs/activityLog/types.d.ts +21 -0
  159. package/dist/declarations/src/core-modules/logs/activityLog/types.d.ts.map +1 -0
  160. package/dist/declarations/src/core-modules/logs/activityLog/utils.d.ts +10 -0
  161. package/dist/declarations/src/core-modules/logs/activityLog/utils.d.ts.map +1 -0
  162. package/dist/declarations/src/core-modules/logs/activityLogUtils.d.ts +72 -0
  163. package/dist/declarations/src/core-modules/logs/activityLogUtils.d.ts.map +1 -0
  164. package/dist/declarations/src/core-modules/logs/definitions/activityLog.d.ts +84 -0
  165. package/dist/declarations/src/core-modules/logs/definitions/activityLog.d.ts.map +1 -0
  166. package/dist/declarations/src/core-modules/logs/definitions/logs.d.ts +39 -0
  167. package/dist/declarations/src/core-modules/logs/definitions/logs.d.ts.map +1 -0
  168. package/dist/declarations/src/core-modules/logs/index.d.ts +6 -0
  169. package/dist/declarations/src/core-modules/logs/index.d.ts.map +1 -0
  170. package/dist/declarations/src/core-modules/logs/types.d.ts +15 -0
  171. package/dist/declarations/src/core-modules/logs/types.d.ts.map +1 -0
  172. package/dist/declarations/src/core-modules/notifications/definitions/emailAddresses.d.ts +73 -0
  173. package/dist/declarations/src/core-modules/notifications/definitions/emailAddresses.d.ts.map +1 -0
  174. package/dist/declarations/src/core-modules/notifications/definitions/emailDeliveries.d.ts +115 -0
  175. package/dist/declarations/src/core-modules/notifications/definitions/emailDeliveries.d.ts.map +1 -0
  176. package/dist/declarations/src/core-modules/notifications/definitions/emailRamp.d.ts +65 -0
  177. package/dist/declarations/src/core-modules/notifications/definitions/emailRamp.d.ts.map +1 -0
  178. package/dist/declarations/src/core-modules/notifications/definitions/emailSenders.d.ts +58 -0
  179. package/dist/declarations/src/core-modules/notifications/definitions/emailSenders.d.ts.map +1 -0
  180. package/dist/declarations/src/core-modules/notifications/definitions/notificationSettings.d.ts +66 -0
  181. package/dist/declarations/src/core-modules/notifications/definitions/notificationSettings.d.ts.map +1 -0
  182. package/dist/declarations/src/core-modules/notifications/definitions/notifications.d.ts +89 -0
  183. package/dist/declarations/src/core-modules/notifications/definitions/notifications.d.ts.map +1 -0
  184. package/dist/declarations/src/core-modules/notifications/index.d.ts +8 -0
  185. package/dist/declarations/src/core-modules/notifications/index.d.ts.map +1 -0
  186. package/dist/declarations/src/core-modules/notifications/utils.d.ts +85 -0
  187. package/dist/declarations/src/core-modules/notifications/utils.d.ts.map +1 -0
  188. package/dist/declarations/src/core-modules/permissions/db/definitions/permissions.d.ts +60 -0
  189. package/dist/declarations/src/core-modules/permissions/db/definitions/permissions.d.ts.map +1 -0
  190. package/dist/declarations/src/core-modules/permissions/index.d.ts +4 -0
  191. package/dist/declarations/src/core-modules/permissions/index.d.ts.map +1 -0
  192. package/dist/declarations/src/core-modules/permissions/user-actions-map.d.ts +4 -0
  193. package/dist/declarations/src/core-modules/permissions/user-actions-map.d.ts.map +1 -0
  194. package/dist/declarations/src/core-modules/permissions/utils.d.ts +22 -0
  195. package/dist/declarations/src/core-modules/permissions/utils.d.ts.map +1 -0
  196. package/dist/declarations/src/core-modules/properties/filter.d.ts +5 -0
  197. package/dist/declarations/src/core-modules/properties/filter.d.ts.map +1 -0
  198. package/dist/declarations/src/core-modules/properties/importExport.d.ts +18 -0
  199. package/dist/declarations/src/core-modules/properties/importExport.d.ts.map +1 -0
  200. package/dist/declarations/src/core-modules/properties/index.d.ts +10 -0
  201. package/dist/declarations/src/core-modules/properties/index.d.ts.map +1 -0
  202. package/dist/declarations/src/core-modules/properties/keys.d.ts +46 -0
  203. package/dist/declarations/src/core-modules/properties/keys.d.ts.map +1 -0
  204. package/dist/declarations/src/core-modules/properties/mergeRows.d.ts +8 -0
  205. package/dist/declarations/src/core-modules/properties/mergeRows.d.ts.map +1 -0
  206. package/dist/declarations/src/core-modules/properties/operators.d.ts +6 -0
  207. package/dist/declarations/src/core-modules/properties/operators.d.ts.map +1 -0
  208. package/dist/declarations/src/core-modules/properties/options.d.ts +10 -0
  209. package/dist/declarations/src/core-modules/properties/options.d.ts.map +1 -0
  210. package/dist/declarations/src/core-modules/properties/setupPropertyProducers.d.ts +4 -0
  211. package/dist/declarations/src/core-modules/properties/setupPropertyProducers.d.ts.map +1 -0
  212. package/dist/declarations/src/core-modules/properties/types.d.ts +14 -0
  213. package/dist/declarations/src/core-modules/properties/types.d.ts.map +1 -0
  214. package/dist/declarations/src/core-modules/properties/valueUsage.d.ts +56 -0
  215. package/dist/declarations/src/core-modules/properties/valueUsage.d.ts.map +1 -0
  216. package/dist/declarations/src/core-modules/segments/dependencies.d.ts +6 -0
  217. package/dist/declarations/src/core-modules/segments/dependencies.d.ts.map +1 -0
  218. package/dist/declarations/src/core-modules/segments/evaluate.d.ts +11 -0
  219. package/dist/declarations/src/core-modules/segments/evaluate.d.ts.map +1 -0
  220. package/dist/declarations/src/core-modules/segments/evaluateBatch.d.ts +42 -0
  221. package/dist/declarations/src/core-modules/segments/evaluateBatch.d.ts.map +1 -0
  222. package/dist/declarations/src/core-modules/segments/evaluateFieldsRouter.d.ts +29 -0
  223. package/dist/declarations/src/core-modules/segments/evaluateFieldsRouter.d.ts.map +1 -0
  224. package/dist/declarations/src/core-modules/segments/evaluateOwned.d.ts +27 -0
  225. package/dist/declarations/src/core-modules/segments/evaluateOwned.d.ts.map +1 -0
  226. package/dist/declarations/src/core-modules/segments/events.d.ts +45 -0
  227. package/dist/declarations/src/core-modules/segments/events.d.ts.map +1 -0
  228. package/dist/declarations/src/core-modules/segments/fieldBuilders.d.ts +35 -0
  229. package/dist/declarations/src/core-modules/segments/fieldBuilders.d.ts.map +1 -0
  230. package/dist/declarations/src/core-modules/segments/fieldMeta.d.ts +62 -0
  231. package/dist/declarations/src/core-modules/segments/fieldMeta.d.ts.map +1 -0
  232. package/dist/declarations/src/core-modules/segments/fieldRequests.d.ts +33 -0
  233. package/dist/declarations/src/core-modules/segments/fieldRequests.d.ts.map +1 -0
  234. package/dist/declarations/src/core-modules/segments/fingerprint.d.ts +6 -0
  235. package/dist/declarations/src/core-modules/segments/fingerprint.d.ts.map +1 -0
  236. package/dist/declarations/src/core-modules/segments/index.d.ts +31 -0
  237. package/dist/declarations/src/core-modules/segments/index.d.ts.map +1 -0
  238. package/dist/declarations/src/core-modules/segments/joinChanges.d.ts +11 -0
  239. package/dist/declarations/src/core-modules/segments/joinChanges.d.ts.map +1 -0
  240. package/dist/declarations/src/core-modules/segments/materialized.d.ts +9 -0
  241. package/dist/declarations/src/core-modules/segments/materialized.d.ts.map +1 -0
  242. package/dist/declarations/src/core-modules/segments/measureRelations.d.ts +18 -0
  243. package/dist/declarations/src/core-modules/segments/measureRelations.d.ts.map +1 -0
  244. package/dist/declarations/src/core-modules/segments/memberQuery.d.ts +13 -0
  245. package/dist/declarations/src/core-modules/segments/memberQuery.d.ts.map +1 -0
  246. package/dist/declarations/src/core-modules/segments/membership.d.ts +24 -0
  247. package/dist/declarations/src/core-modules/segments/membership.d.ts.map +1 -0
  248. package/dist/declarations/src/core-modules/segments/mongoFilter.d.ts +15 -0
  249. package/dist/declarations/src/core-modules/segments/mongoFilter.d.ts.map +1 -0
  250. package/dist/declarations/src/core-modules/segments/nodeRefs.d.ts +5 -0
  251. package/dist/declarations/src/core-modules/segments/nodeRefs.d.ts.map +1 -0
  252. package/dist/declarations/src/core-modules/segments/nodes.d.ts +42 -0
  253. package/dist/declarations/src/core-modules/segments/nodes.d.ts.map +1 -0
  254. package/dist/declarations/src/core-modules/segments/operators.d.ts +46 -0
  255. package/dist/declarations/src/core-modules/segments/operators.d.ts.map +1 -0
  256. package/dist/declarations/src/core-modules/segments/ownedSource.d.ts +7 -0
  257. package/dist/declarations/src/core-modules/segments/ownedSource.d.ts.map +1 -0
  258. package/dist/declarations/src/core-modules/segments/plan.d.ts +35 -0
  259. package/dist/declarations/src/core-modules/segments/plan.d.ts.map +1 -0
  260. package/dist/declarations/src/core-modules/segments/relationRegistry.d.ts +33 -0
  261. package/dist/declarations/src/core-modules/segments/relationRegistry.d.ts.map +1 -0
  262. package/dist/declarations/src/core-modules/segments/setupSegmentProducers.d.ts +4 -0
  263. package/dist/declarations/src/core-modules/segments/setupSegmentProducers.d.ts.map +1 -0
  264. package/dist/declarations/src/core-modules/segments/subjectsReachedBy.d.ts +11 -0
  265. package/dist/declarations/src/core-modules/segments/subjectsReachedBy.d.ts.map +1 -0
  266. package/dist/declarations/src/core-modules/segments/timeZone.d.ts +2 -0
  267. package/dist/declarations/src/core-modules/segments/timeZone.d.ts.map +1 -0
  268. package/dist/declarations/src/core-modules/segments/types.d.ts +67 -0
  269. package/dist/declarations/src/core-modules/segments/types.d.ts.map +1 -0
  270. package/dist/declarations/src/core-modules/segments/utils.d.ts +4 -0
  271. package/dist/declarations/src/core-modules/segments/utils.d.ts.map +1 -0
  272. package/dist/declarations/src/core-modules/segments/walkNodes.d.ts +9 -0
  273. package/dist/declarations/src/core-modules/segments/walkNodes.d.ts.map +1 -0
  274. package/dist/declarations/src/core-modules/segments/zodSchemas.d.ts +532 -0
  275. package/dist/declarations/src/core-modules/segments/zodSchemas.d.ts.map +1 -0
  276. package/dist/declarations/src/core-modules/segments/zonedTime.d.ts +25 -0
  277. package/dist/declarations/src/core-modules/segments/zonedTime.d.ts.map +1 -0
  278. package/dist/declarations/src/core-modules/templates/index.d.ts +2 -0
  279. package/dist/declarations/src/core-modules/templates/index.d.ts.map +1 -0
  280. package/dist/declarations/src/core-modules/templates/utils.d.ts +11 -0
  281. package/dist/declarations/src/core-modules/templates/utils.d.ts.map +1 -0
  282. package/dist/declarations/src/core-modules/users/constants.d.ts +114 -0
  283. package/dist/declarations/src/core-modules/users/constants.d.ts.map +1 -0
  284. package/dist/declarations/src/core-modules/users/db/definitions/users.d.ts +24 -0
  285. package/dist/declarations/src/core-modules/users/db/definitions/users.d.ts.map +1 -0
  286. package/dist/declarations/src/core-modules/users/index.d.ts +3 -0
  287. package/dist/declarations/src/core-modules/users/index.d.ts.map +1 -0
  288. package/dist/declarations/src/core-types/common.d.ts +149 -0
  289. package/dist/declarations/src/core-types/common.d.ts.map +1 -0
  290. package/dist/declarations/src/core-types/index.d.ts +20 -0
  291. package/dist/declarations/src/core-types/index.d.ts.map +1 -0
  292. package/dist/declarations/src/core-types/modules/app/app.d.ts +12 -0
  293. package/dist/declarations/src/core-types/modules/app/app.d.ts.map +1 -0
  294. package/dist/declarations/src/core-types/modules/automations/automations.d.ts +19 -0
  295. package/dist/declarations/src/core-types/modules/automations/automations.d.ts.map +1 -0
  296. package/dist/declarations/src/core-types/modules/contacts/company.d.ts +53 -0
  297. package/dist/declarations/src/core-types/modules/contacts/company.d.ts.map +1 -0
  298. package/dist/declarations/src/core-types/modules/contacts/contacts-common.d.ts +32 -0
  299. package/dist/declarations/src/core-types/modules/contacts/contacts-common.d.ts.map +1 -0
  300. package/dist/declarations/src/core-types/modules/contacts/customer.d.ts +74 -0
  301. package/dist/declarations/src/core-types/modules/contacts/customer.d.ts.map +1 -0
  302. package/dist/declarations/src/core-types/modules/emailTemplates/emailTemplate.d.ts +18 -0
  303. package/dist/declarations/src/core-types/modules/emailTemplates/emailTemplate.d.ts.map +1 -0
  304. package/dist/declarations/src/core-types/modules/logs/logs.d.ts +28 -0
  305. package/dist/declarations/src/core-types/modules/logs/logs.d.ts.map +1 -0
  306. package/dist/declarations/src/core-types/modules/permissions/permission.d.ts +56 -0
  307. package/dist/declarations/src/core-types/modules/permissions/permission.d.ts.map +1 -0
  308. package/dist/declarations/src/core-types/modules/permissions/role.d.ts +21 -0
  309. package/dist/declarations/src/core-types/modules/permissions/role.d.ts.map +1 -0
  310. package/dist/declarations/src/core-types/modules/products/product.d.ts +76 -0
  311. package/dist/declarations/src/core-types/modules/products/product.d.ts.map +1 -0
  312. package/dist/declarations/src/core-types/modules/products/productCategory.d.ts +26 -0
  313. package/dist/declarations/src/core-types/modules/products/productCategory.d.ts.map +1 -0
  314. package/dist/declarations/src/core-types/modules/products/productConfig.d.ts +9 -0
  315. package/dist/declarations/src/core-types/modules/products/productConfig.d.ts.map +1 -0
  316. package/dist/declarations/src/core-types/modules/products/uom.d.ts +11 -0
  317. package/dist/declarations/src/core-types/modules/products/uom.d.ts.map +1 -0
  318. package/dist/declarations/src/core-types/modules/relations/relations.d.ts +13 -0
  319. package/dist/declarations/src/core-types/modules/relations/relations.d.ts.map +1 -0
  320. package/dist/declarations/src/core-types/modules/saas/organization.d.ts +8 -0
  321. package/dist/declarations/src/core-types/modules/saas/organization.d.ts.map +1 -0
  322. package/dist/declarations/src/core-types/modules/tags/tag.d.ts +16 -0
  323. package/dist/declarations/src/core-types/modules/tags/tag.d.ts.map +1 -0
  324. package/dist/declarations/src/core-types/modules/team-member/structure.d.ts +19 -0
  325. package/dist/declarations/src/core-types/modules/team-member/structure.d.ts.map +1 -0
  326. package/dist/declarations/src/core-types/modules/team-member/user.d.ts +90 -0
  327. package/dist/declarations/src/core-types/modules/team-member/user.d.ts.map +1 -0
  328. package/dist/declarations/src/index.d.ts +3 -0
  329. package/dist/declarations/src/index.d.ts.map +1 -0
  330. package/dist/declarations/src/utils/agent-tools/auth.d.ts +18 -0
  331. package/dist/declarations/src/utils/agent-tools/auth.d.ts.map +1 -0
  332. package/dist/declarations/src/utils/agent-tools/endpoints.d.ts +16 -0
  333. package/dist/declarations/src/utils/agent-tools/endpoints.d.ts.map +1 -0
  334. package/dist/declarations/src/utils/agent-tools/index.d.ts +6 -0
  335. package/dist/declarations/src/utils/agent-tools/index.d.ts.map +1 -0
  336. package/dist/declarations/src/utils/agent-tools/manifest.d.ts +11 -0
  337. package/dist/declarations/src/utils/agent-tools/manifest.d.ts.map +1 -0
  338. package/dist/declarations/src/utils/agent-tools/responseLimit.d.ts +26 -0
  339. package/dist/declarations/src/utils/agent-tools/responseLimit.d.ts.map +1 -0
  340. package/dist/declarations/src/utils/agent-tools/types.d.ts +48 -0
  341. package/dist/declarations/src/utils/agent-tools/types.d.ts.map +1 -0
  342. package/dist/declarations/src/utils/apollo/beforeResolvers.d.ts +41 -0
  343. package/dist/declarations/src/utils/apollo/beforeResolvers.d.ts.map +1 -0
  344. package/dist/declarations/src/utils/apollo/commonTypeDefs.d.ts +7 -0
  345. package/dist/declarations/src/utils/apollo/commonTypeDefs.d.ts.map +1 -0
  346. package/dist/declarations/src/utils/apollo/constants.d.ts +3 -0
  347. package/dist/declarations/src/utils/apollo/constants.d.ts.map +1 -0
  348. package/dist/declarations/src/utils/apollo/customScalars.d.ts +6 -0
  349. package/dist/declarations/src/utils/apollo/customScalars.d.ts.map +1 -0
  350. package/dist/declarations/src/utils/apollo/expectedErrorPlugin.d.ts +11 -0
  351. package/dist/declarations/src/utils/apollo/expectedErrorPlugin.d.ts.map +1 -0
  352. package/dist/declarations/src/utils/apollo/index.d.ts +10 -0
  353. package/dist/declarations/src/utils/apollo/index.d.ts.map +1 -0
  354. package/dist/declarations/src/utils/apollo/runBeforeResolvers.d.ts +27 -0
  355. package/dist/declarations/src/utils/apollo/runBeforeResolvers.d.ts.map +1 -0
  356. package/dist/declarations/src/utils/apollo/utils.d.ts +5 -0
  357. package/dist/declarations/src/utils/apollo/utils.d.ts.map +1 -0
  358. package/dist/declarations/src/utils/apollo/wrapperMutations.d.ts +8 -0
  359. package/dist/declarations/src/utils/apollo/wrapperMutations.d.ts.map +1 -0
  360. package/dist/declarations/src/utils/apollo/wrapperResolvers.d.ts +8 -0
  361. package/dist/declarations/src/utils/apollo/wrapperResolvers.d.ts.map +1 -0
  362. package/dist/declarations/src/utils/bulkUtils.d.ts +7 -0
  363. package/dist/declarations/src/utils/bulkUtils.d.ts.map +1 -0
  364. package/dist/declarations/src/utils/constants.d.ts +40 -0
  365. package/dist/declarations/src/utils/constants.d.ts.map +1 -0
  366. package/dist/declarations/src/utils/editor.d.ts +45 -0
  367. package/dist/declarations/src/utils/editor.d.ts.map +1 -0
  368. package/dist/declarations/src/utils/email/address.d.ts +10 -0
  369. package/dist/declarations/src/utils/email/address.d.ts.map +1 -0
  370. package/dist/declarations/src/utils/email/attachments.d.ts +12 -0
  371. package/dist/declarations/src/utils/email/attachments.d.ts.map +1 -0
  372. package/dist/declarations/src/utils/email/config.d.ts +10 -0
  373. package/dist/declarations/src/utils/email/config.d.ts.map +1 -0
  374. package/dist/declarations/src/utils/email/constants.d.ts +6 -0
  375. package/dist/declarations/src/utils/email/constants.d.ts.map +1 -0
  376. package/dist/declarations/src/utils/email/index.d.ts +12 -0
  377. package/dist/declarations/src/utils/email/index.d.ts.map +1 -0
  378. package/dist/declarations/src/utils/email/providers/sendgrid.d.ts +17 -0
  379. package/dist/declarations/src/utils/email/providers/sendgrid.d.ts.map +1 -0
  380. package/dist/declarations/src/utils/email/providers/sendgridEvents.d.ts +18 -0
  381. package/dist/declarations/src/utils/email/providers/sendgridEvents.d.ts.map +1 -0
  382. package/dist/declarations/src/utils/email/providers/ses.d.ts +19 -0
  383. package/dist/declarations/src/utils/email/providers/ses.d.ts.map +1 -0
  384. package/dist/declarations/src/utils/email/providers/smtp.d.ts +14 -0
  385. package/dist/declarations/src/utils/email/providers/smtp.d.ts.map +1 -0
  386. package/dist/declarations/src/utils/email/resolveProvider.d.ts +6 -0
  387. package/dist/declarations/src/utils/email/resolveProvider.d.ts.map +1 -0
  388. package/dist/declarations/src/utils/email/service.d.ts +50 -0
  389. package/dist/declarations/src/utils/email/service.d.ts.map +1 -0
  390. package/dist/declarations/src/utils/email/types.d.ts +87 -0
  391. package/dist/declarations/src/utils/email/types.d.ts.map +1 -0
  392. package/dist/declarations/src/utils/errorClassifier.d.ts +56 -0
  393. package/dist/declarations/src/utils/errorClassifier.d.ts.map +1 -0
  394. package/dist/declarations/src/utils/file/read.d.ts +14 -0
  395. package/dist/declarations/src/utils/file/read.d.ts.map +1 -0
  396. package/dist/declarations/src/utils/file/upload.d.ts +10 -0
  397. package/dist/declarations/src/utils/file/upload.d.ts.map +1 -0
  398. package/dist/declarations/src/utils/graphqlPubSub.d.ts +3 -0
  399. package/dist/declarations/src/utils/graphqlPubSub.d.ts.map +1 -0
  400. package/dist/declarations/src/utils/headers/get-hostname.d.ts +5 -0
  401. package/dist/declarations/src/utils/headers/get-hostname.d.ts.map +1 -0
  402. package/dist/declarations/src/utils/headers/index.d.ts +5 -0
  403. package/dist/declarations/src/utils/headers/index.d.ts.map +1 -0
  404. package/dist/declarations/src/utils/headers/sanitize.d.ts +3 -0
  405. package/dist/declarations/src/utils/headers/sanitize.d.ts.map +1 -0
  406. package/dist/declarations/src/utils/headers/subdomain.d.ts +4 -0
  407. package/dist/declarations/src/utils/headers/subdomain.d.ts.map +1 -0
  408. package/dist/declarations/src/utils/headers/user.d.ts +14 -0
  409. package/dist/declarations/src/utils/headers/user.d.ts.map +1 -0
  410. package/dist/declarations/src/utils/index.d.ts +28 -0
  411. package/dist/declarations/src/utils/index.d.ts.map +1 -0
  412. package/dist/declarations/src/utils/knowledge.d.ts +50 -0
  413. package/dist/declarations/src/utils/knowledge.d.ts.map +1 -0
  414. package/dist/declarations/src/utils/logs/index.d.ts +103 -0
  415. package/dist/declarations/src/utils/logs/index.d.ts.map +1 -0
  416. package/dist/declarations/src/utils/mongo/cursor-util.d.ts +41 -0
  417. package/dist/declarations/src/utils/mongo/cursor-util.d.ts.map +1 -0
  418. package/dist/declarations/src/utils/mongo/generate-models.d.ts +4 -0
  419. package/dist/declarations/src/utils/mongo/generate-models.d.ts.map +1 -0
  420. package/dist/declarations/src/utils/mongo/index.d.ts +6 -0
  421. package/dist/declarations/src/utils/mongo/index.d.ts.map +1 -0
  422. package/dist/declarations/src/utils/mongo/mongo-connection.d.ts +5 -0
  423. package/dist/declarations/src/utils/mongo/mongo-connection.d.ts.map +1 -0
  424. package/dist/declarations/src/utils/mongo/mongoose-types.d.ts +22 -0
  425. package/dist/declarations/src/utils/mongo/mongoose-types.d.ts.map +1 -0
  426. package/dist/declarations/src/utils/mongo/mongoose-utils.d.ts +30 -0
  427. package/dist/declarations/src/utils/mongo/mongoose-utils.d.ts.map +1 -0
  428. package/dist/declarations/src/utils/mongo/search-tokens.d.ts +21 -0
  429. package/dist/declarations/src/utils/mongo/search-tokens.d.ts.map +1 -0
  430. package/dist/declarations/src/utils/mq-worker.d.ts +19 -0
  431. package/dist/declarations/src/utils/mq-worker.d.ts.map +1 -0
  432. package/dist/declarations/src/utils/random.d.ts +3 -0
  433. package/dist/declarations/src/utils/random.d.ts.map +1 -0
  434. package/dist/declarations/src/utils/redis.d.ts +4 -0
  435. package/dist/declarations/src/utils/redis.d.ts.map +1 -0
  436. package/dist/declarations/src/utils/saas/index.d.ts +3 -0
  437. package/dist/declarations/src/utils/saas/index.d.ts.map +1 -0
  438. package/dist/declarations/src/utils/saas/saas-mongo-connection.d.ts +59 -0
  439. package/dist/declarations/src/utils/saas/saas-mongo-connection.d.ts.map +1 -0
  440. package/dist/declarations/src/utils/saas/types.d.ts +96 -0
  441. package/dist/declarations/src/utils/saas/types.d.ts.map +1 -0
  442. package/dist/declarations/src/utils/sanitize.d.ts +3 -0
  443. package/dist/declarations/src/utils/sanitize.d.ts.map +1 -0
  444. package/dist/declarations/src/utils/sentry-init.d.ts +15 -0
  445. package/dist/declarations/src/utils/sentry-init.d.ts.map +1 -0
  446. package/dist/declarations/src/utils/sentry-instrument.d.ts +2 -0
  447. package/dist/declarations/src/utils/sentry-instrument.d.ts.map +1 -0
  448. package/dist/declarations/src/utils/serializablePayload.d.ts +11 -0
  449. package/dist/declarations/src/utils/serializablePayload.d.ts.map +1 -0
  450. package/dist/declarations/src/utils/service-discovery.d.ts +25 -0
  451. package/dist/declarations/src/utils/service-discovery.d.ts.map +1 -0
  452. package/dist/declarations/src/utils/start-plugin.d.ts +85 -0
  453. package/dist/declarations/src/utils/start-plugin.d.ts.map +1 -0
  454. package/dist/declarations/src/utils/string.d.ts +82 -0
  455. package/dist/declarations/src/utils/string.d.ts.map +1 -0
  456. package/dist/declarations/src/utils/trpc/index.d.ts +79 -0
  457. package/dist/declarations/src/utils/trpc/index.d.ts.map +1 -0
  458. package/dist/declarations/src/utils/trpc/sendCoreModuleProducer.d.ts +53 -0
  459. package/dist/declarations/src/utils/trpc/sendCoreModuleProducer.d.ts.map +1 -0
  460. package/dist/declarations/src/utils/utils.d.ts +69 -0
  461. package/dist/declarations/src/utils/utils.d.ts.map +1 -0
  462. package/dist/erxes-api-shared.cjs.d.ts +3 -0
  463. package/dist/erxes-api-shared.cjs.dev.js +7 -0
  464. package/dist/erxes-api-shared.cjs.js +7 -0
  465. package/dist/erxes-api-shared.cjs.prod.js +7 -0
  466. package/dist/erxes-api-shared.esm.js +3 -0
  467. package/dist/start-plugin-576e707d.cjs.prod.js +23223 -0
  468. package/dist/start-plugin-6e76556c.esm.js +22742 -0
  469. package/dist/start-plugin-89fa2bd2.cjs.dev.js +23225 -0
  470. package/package.json +105 -4
  471. package/src/common-modules/payment/worker.ts +53 -0
  472. package/src/core-modules/approval/approvalChangeTypes.ts +31 -0
  473. package/src/core-modules/approval/checkApprovalLock.ts +85 -0
  474. package/src/core-modules/approval/constants.ts +45 -0
  475. package/src/core-modules/approval/index.ts +6 -0
  476. package/src/core-modules/approval/initApproval.ts +59 -0
  477. package/src/core-modules/approval/types.ts +206 -0
  478. package/src/core-modules/approval/zodSchemas.ts +55 -0
  479. package/src/core-modules/apps/@types/app.ts +15 -0
  480. package/src/core-modules/apps/db/definitions/apps.ts +30 -0
  481. package/src/core-modules/apps/index.ts +2 -0
  482. package/src/core-modules/automations/actionErrorPolicy.test.ts +125 -0
  483. package/src/core-modules/automations/actionErrorPolicy.ts +162 -0
  484. package/src/core-modules/automations/actionInputs.test.ts +70 -0
  485. package/src/core-modules/automations/actionOutcome.test.ts +87 -0
  486. package/src/core-modules/automations/actionOutcome.ts +128 -0
  487. package/src/core-modules/automations/constants.ts +181 -0
  488. package/src/core-modules/automations/definitions/aiAgents.ts +343 -0
  489. package/src/core-modules/automations/definitions/automations.ts +207 -0
  490. package/src/core-modules/automations/definitions/executions.ts +190 -0
  491. package/src/core-modules/automations/definitions/index.ts +3 -0
  492. package/src/core-modules/automations/getValueByPath.test.ts +49 -0
  493. package/src/core-modules/automations/index.ts +13 -0
  494. package/src/core-modules/automations/outputResolvers.test.ts +97 -0
  495. package/src/core-modules/automations/outputResolvers.ts +1238 -0
  496. package/src/core-modules/automations/reEnrollment.ts +34 -0
  497. package/src/core-modules/automations/segmentMembership.ts +34 -0
  498. package/src/core-modules/automations/sendAutomationMessage.ts +219 -0
  499. package/src/core-modules/automations/setPropertyOutcome.test.ts +105 -0
  500. package/src/core-modules/automations/setPropertyRows.test.ts +61 -0
  501. package/src/core-modules/automations/setupAutomationProducers.ts +187 -0
  502. package/src/core-modules/automations/typeUtils.ts +3 -0
  503. package/src/core-modules/automations/types.ts +577 -0
  504. package/src/core-modules/automations/utils.ts +1128 -0
  505. package/src/core-modules/automations/workflowValidation.ts +32 -0
  506. package/src/core-modules/automations/zodTypes.ts +221 -0
  507. package/src/core-modules/client-portals/definitions/clientPortal.ts +230 -0
  508. package/src/core-modules/client-portals/definitions/comment.ts +26 -0
  509. package/src/core-modules/client-portals/definitions/cpNotification.ts +112 -0
  510. package/src/core-modules/client-portals/definitions/cpUser.ts +236 -0
  511. package/src/core-modules/client-portals/index.ts +4 -0
  512. package/src/core-modules/common/db/definitions/common.ts +43 -0
  513. package/src/core-modules/common/eventHandlers/createEventHandlers.ts +236 -0
  514. package/src/core-modules/common/eventHandlers/generateEventHandlers.ts +37 -0
  515. package/src/core-modules/common/eventHandlers/index.ts +11 -0
  516. package/src/core-modules/common/eventHandlers/runtimeContext.ts +36 -0
  517. package/src/core-modules/common/eventHandlers/schemas.ts +53 -0
  518. package/src/core-modules/common/eventHandlers/types.ts +97 -0
  519. package/src/core-modules/common/eventHandlers/utils.ts +113 -0
  520. package/src/core-modules/common/index.ts +4 -0
  521. package/src/core-modules/common/references/fetchRecordReferenceTargets.ts +43 -0
  522. package/src/core-modules/common/references/getRecordReferenceFields.ts +243 -0
  523. package/src/core-modules/common/references/index.ts +9 -0
  524. package/src/core-modules/common/references/initRecordReferences.ts +84 -0
  525. package/src/core-modules/common/references/normalizeRecordReferenceConfig.ts +59 -0
  526. package/src/core-modules/common/references/resolveRecordReferencePath.ts +473 -0
  527. package/src/core-modules/common/references/resolveRecordReferencePlaceholders.ts +173 -0
  528. package/src/core-modules/common/references/resolveRecordReferenceValue.ts +41 -0
  529. package/src/core-modules/common/references/resolveRecordRelationIds.ts +57 -0
  530. package/src/core-modules/common/references/types.ts +78 -0
  531. package/src/core-modules/common/references/utils.ts +60 -0
  532. package/src/core-modules/common/references/zodInputs.ts +13 -0
  533. package/src/core-modules/common/routeToModuleProducer.ts +118 -0
  534. package/src/core-modules/email-content/blocksToHtml.ts +551 -0
  535. package/src/core-modules/email-content/constants.ts +4 -0
  536. package/src/core-modules/email-content/emailFooter.ts +17 -0
  537. package/src/core-modules/email-content/expandRepeatRows.test.ts +36 -0
  538. package/src/core-modules/email-content/expandRepeatRows.ts +59 -0
  539. package/src/core-modules/email-content/index.ts +8 -0
  540. package/src/core-modules/email-content/renderEmailContent.ts +88 -0
  541. package/src/core-modules/email-content/replacePlaceholders.ts +143 -0
  542. package/src/core-modules/email-content/types.ts +49 -0
  543. package/src/core-modules/email-content/unresolvedPlaceholders.ts +27 -0
  544. package/src/core-modules/forms/index.ts +2 -0
  545. package/src/core-modules/forms/types.ts +86 -0
  546. package/src/core-modules/forms/utils.ts +34 -0
  547. package/src/core-modules/import-export/index.ts +7 -0
  548. package/src/core-modules/import-export/types.ts +204 -0
  549. package/src/core-modules/import-export/utils/createCoreImportClient.ts +131 -0
  550. package/src/core-modules/import-export/utils/exportBatchProcess.ts +560 -0
  551. package/src/core-modules/import-export/utils/exportCursor.ts +47 -0
  552. package/src/core-modules/import-export/utils/headerMatcher.test.ts +90 -0
  553. package/src/core-modules/import-export/utils/headerMatcher.ts +229 -0
  554. package/src/core-modules/import-export/utils/importBatchProcess.ts +780 -0
  555. package/src/core-modules/import-export/utils/importExportError.ts +71 -0
  556. package/src/core-modules/import-export/utils/importExportRuntime.ts +96 -0
  557. package/src/core-modules/import-export/utils/importUtils.ts +59 -0
  558. package/src/core-modules/import-export/utils/progressUpdate.ts +25 -0
  559. package/src/core-modules/import-export/utils/tempWorkspace.ts +34 -0
  560. package/src/core-modules/import-export/worker.ts +215 -0
  561. package/src/core-modules/import-export/zodSchemas.ts +63 -0
  562. package/src/core-modules/index.ts +15 -0
  563. package/src/core-modules/logs/activityLog/builder.ts +232 -0
  564. package/src/core-modules/logs/activityLog/index.ts +4 -0
  565. package/src/core-modules/logs/activityLog/sharedBuilders.ts +95 -0
  566. package/src/core-modules/logs/activityLog/types.ts +26 -0
  567. package/src/core-modules/logs/activityLog/utils.ts +61 -0
  568. package/src/core-modules/logs/activityLogUtils.ts +677 -0
  569. package/src/core-modules/logs/definitions/activityLog.ts +71 -0
  570. package/src/core-modules/logs/definitions/logs.ts +49 -0
  571. package/src/core-modules/logs/index.ts +5 -0
  572. package/src/core-modules/logs/types.ts +16 -0
  573. package/src/core-modules/notifications/definitions/emailAddresses.ts +105 -0
  574. package/src/core-modules/notifications/definitions/emailDeliveries.ts +188 -0
  575. package/src/core-modules/notifications/definitions/emailRamp.ts +83 -0
  576. package/src/core-modules/notifications/definitions/emailSenders.ts +84 -0
  577. package/src/core-modules/notifications/definitions/notificationConfigs.ts +110 -0
  578. package/src/core-modules/notifications/definitions/notificationSettings.ts +67 -0
  579. package/src/core-modules/notifications/definitions/notifications.ts +130 -0
  580. package/src/core-modules/notifications/emailUtils.ts +88 -0
  581. package/src/core-modules/notifications/index.ts +7 -0
  582. package/src/core-modules/notifications/utils.ts +143 -0
  583. package/src/core-modules/permissions/db/definitions/permissions.ts +82 -0
  584. package/src/core-modules/permissions/index.ts +3 -0
  585. package/src/core-modules/permissions/oauth-scopes.test.ts +102 -0
  586. package/src/core-modules/permissions/user-actions-map.ts +170 -0
  587. package/src/core-modules/permissions/utils.ts +317 -0
  588. package/src/core-modules/properties/README.md +161 -0
  589. package/src/core-modules/properties/filter.test.ts +74 -0
  590. package/src/core-modules/properties/filter.ts +156 -0
  591. package/src/core-modules/properties/importExport.ts +159 -0
  592. package/src/core-modules/properties/index.ts +9 -0
  593. package/src/core-modules/properties/keys.test.ts +71 -0
  594. package/src/core-modules/properties/keys.ts +128 -0
  595. package/src/core-modules/properties/mergePropertyData.test.ts +65 -0
  596. package/src/core-modules/properties/mergeRows.ts +93 -0
  597. package/src/core-modules/properties/operators.ts +91 -0
  598. package/src/core-modules/properties/options.test.ts +119 -0
  599. package/src/core-modules/properties/options.ts +55 -0
  600. package/src/core-modules/properties/setupPropertyProducers.ts +32 -0
  601. package/src/core-modules/properties/types.ts +31 -0
  602. package/src/core-modules/properties/valueUsage.test.ts +158 -0
  603. package/src/core-modules/properties/valueUsage.ts +153 -0
  604. package/src/core-modules/segments/anniversary.test.ts +122 -0
  605. package/src/core-modules/segments/dependencies.test.ts +173 -0
  606. package/src/core-modules/segments/dependencies.ts +70 -0
  607. package/src/core-modules/segments/evaluate.test.ts +339 -0
  608. package/src/core-modules/segments/evaluate.ts +388 -0
  609. package/src/core-modules/segments/evaluateBatch.test.ts +233 -0
  610. package/src/core-modules/segments/evaluateBatch.ts +263 -0
  611. package/src/core-modules/segments/evaluateFieldsRouter.test.ts +148 -0
  612. package/src/core-modules/segments/evaluateFieldsRouter.ts +94 -0
  613. package/src/core-modules/segments/evaluateOwned.ts +162 -0
  614. package/src/core-modules/segments/events.ts +142 -0
  615. package/src/core-modules/segments/fieldBuilders.ts +152 -0
  616. package/src/core-modules/segments/fieldMeta.ts +96 -0
  617. package/src/core-modules/segments/fieldRequests.test.ts +302 -0
  618. package/src/core-modules/segments/fieldRequests.ts +172 -0
  619. package/src/core-modules/segments/fieldSources.test.ts +99 -0
  620. package/src/core-modules/segments/fingerprint.test.ts +111 -0
  621. package/src/core-modules/segments/fingerprint.ts +70 -0
  622. package/src/core-modules/segments/index.ts +30 -0
  623. package/src/core-modules/segments/joinChanges.test.ts +96 -0
  624. package/src/core-modules/segments/joinChanges.ts +67 -0
  625. package/src/core-modules/segments/materialized.ts +23 -0
  626. package/src/core-modules/segments/measureRelations.test.ts +222 -0
  627. package/src/core-modules/segments/measureRelations.ts +322 -0
  628. package/src/core-modules/segments/memberQuery.test.ts +60 -0
  629. package/src/core-modules/segments/memberQuery.ts +45 -0
  630. package/src/core-modules/segments/membership.ts +170 -0
  631. package/src/core-modules/segments/mongoFilter.test.ts +326 -0
  632. package/src/core-modules/segments/mongoFilter.ts +355 -0
  633. package/src/core-modules/segments/nodeRefs.ts +29 -0
  634. package/src/core-modules/segments/nodes.ts +48 -0
  635. package/src/core-modules/segments/operators.ts +243 -0
  636. package/src/core-modules/segments/ownedSource.ts +16 -0
  637. package/src/core-modules/segments/plan.test.ts +172 -0
  638. package/src/core-modules/segments/plan.ts +155 -0
  639. package/src/core-modules/segments/relationRegistry.test.ts +64 -0
  640. package/src/core-modules/segments/relationRegistry.ts +198 -0
  641. package/src/core-modules/segments/segmentReference.test.ts +142 -0
  642. package/src/core-modules/segments/setupSegmentProducers.ts +77 -0
  643. package/src/core-modules/segments/subjectsReachedBy.ts +70 -0
  644. package/src/core-modules/segments/timeZone.ts +56 -0
  645. package/src/core-modules/segments/types.ts +97 -0
  646. package/src/core-modules/segments/utils.ts +122 -0
  647. package/src/core-modules/segments/walkNodes.ts +76 -0
  648. package/src/core-modules/segments/zodSchemas.ts +130 -0
  649. package/src/core-modules/segments/zonedTime.test.ts +163 -0
  650. package/src/core-modules/segments/zonedTime.ts +198 -0
  651. package/src/core-modules/templates/index.ts +1 -0
  652. package/src/core-modules/templates/utils.ts +91 -0
  653. package/src/core-modules/users/constants.ts +318 -0
  654. package/src/core-modules/users/db/definitions/users.ts +226 -0
  655. package/src/core-modules/users/index.ts +2 -0
  656. package/src/core-types/common.ts +183 -0
  657. package/src/core-types/index.ts +19 -0
  658. package/src/core-types/modules/app/app.ts +13 -0
  659. package/src/core-types/modules/automations/automations.ts +23 -0
  660. package/src/core-types/modules/contacts/company.ts +70 -0
  661. package/src/core-types/modules/contacts/contacts-common.ts +32 -0
  662. package/src/core-types/modules/contacts/customer.ts +94 -0
  663. package/src/core-types/modules/emailTemplates/emailTemplate.ts +19 -0
  664. package/src/core-types/modules/emailTemplates/index.ts +1 -0
  665. package/src/core-types/modules/logs/logs.ts +30 -0
  666. package/src/core-types/modules/permissions/permission.ts +63 -0
  667. package/src/core-types/modules/permissions/role.ts +24 -0
  668. package/src/core-types/modules/products/product.ts +100 -0
  669. package/src/core-types/modules/products/productCategory.ts +27 -0
  670. package/src/core-types/modules/products/productConfig.ts +10 -0
  671. package/src/core-types/modules/products/uom.ts +12 -0
  672. package/src/core-types/modules/relations/relations.ts +14 -0
  673. package/src/core-types/modules/saas/organization.ts +7 -0
  674. package/src/core-types/modules/structure/structure.ts +29 -0
  675. package/src/core-types/modules/tags/tag.ts +17 -0
  676. package/src/core-types/modules/team-member/structure.ts +23 -0
  677. package/src/core-types/modules/team-member/user.ts +93 -0
  678. package/src/index.ts +1 -0
  679. package/src/utils/agent-tools/auth.ts +129 -0
  680. package/src/utils/agent-tools/endpoints.ts +274 -0
  681. package/src/utils/agent-tools/index.ts +5 -0
  682. package/src/utils/agent-tools/manifest.ts +152 -0
  683. package/src/utils/agent-tools/responseLimit.test.ts +99 -0
  684. package/src/utils/agent-tools/responseLimit.ts +66 -0
  685. package/src/utils/agent-tools/types.ts +52 -0
  686. package/src/utils/apollo/beforeResolvers.ts +117 -0
  687. package/src/utils/apollo/commonTypeDefs.ts +78 -0
  688. package/src/utils/apollo/constants.ts +16 -0
  689. package/src/utils/apollo/customScalars.ts +69 -0
  690. package/src/utils/apollo/expectedErrorPlugin.ts +83 -0
  691. package/src/utils/apollo/index.ts +10 -0
  692. package/src/utils/apollo/runBeforeResolvers.ts +214 -0
  693. package/src/utils/apollo/utils.ts +80 -0
  694. package/src/utils/apollo/wrapperMutations.ts +75 -0
  695. package/src/utils/apollo/wrapperResolvers.ts +182 -0
  696. package/src/utils/bulkUtils.ts +62 -0
  697. package/src/utils/constants.ts +99 -0
  698. package/src/utils/editor.ts +412 -0
  699. package/src/utils/email/address.ts +42 -0
  700. package/src/utils/email/attachments.ts +74 -0
  701. package/src/utils/email/config.ts +46 -0
  702. package/src/utils/email/constants.ts +25 -0
  703. package/src/utils/email/index.ts +11 -0
  704. package/src/utils/email/providers/sendgrid.ts +280 -0
  705. package/src/utils/email/providers/sendgridEvents.ts +48 -0
  706. package/src/utils/email/providers/ses.ts +250 -0
  707. package/src/utils/email/providers/smtp.ts +99 -0
  708. package/src/utils/email/resolveProvider.ts +75 -0
  709. package/src/utils/email/service.ts +192 -0
  710. package/src/utils/email/types.ts +127 -0
  711. package/src/utils/errorClassifier.test.ts +231 -0
  712. package/src/utils/errorClassifier.ts +458 -0
  713. package/src/utils/file/read.ts +464 -0
  714. package/src/utils/file/upload.ts +531 -0
  715. package/src/utils/graphqlPubSub.ts +28 -0
  716. package/src/utils/headers/get-hostname.ts +18 -0
  717. package/src/utils/headers/index.ts +4 -0
  718. package/src/utils/headers/sanitize.ts +9 -0
  719. package/src/utils/headers/subdomain.ts +13 -0
  720. package/src/utils/headers/user.test.ts +76 -0
  721. package/src/utils/headers/user.ts +113 -0
  722. package/src/utils/index.ts +27 -0
  723. package/src/utils/knowledge.ts +107 -0
  724. package/src/utils/logs/index.ts +247 -0
  725. package/src/utils/mongo/cursor-util.ts +153 -0
  726. package/src/utils/mongo/generate-models.ts +97 -0
  727. package/src/utils/mongo/index.ts +5 -0
  728. package/src/utils/mongo/mongo-connection.ts +42 -0
  729. package/src/utils/mongo/mongoose-types.ts +26 -0
  730. package/src/utils/mongo/mongoose-utils.ts +329 -0
  731. package/src/utils/mongo/search-tokens.ts +193 -0
  732. package/src/utils/mq-worker.ts +150 -0
  733. package/src/utils/random.ts +6 -0
  734. package/src/utils/redis.ts +23 -0
  735. package/src/utils/saas/constants.ts +32 -0
  736. package/src/utils/saas/definition.ts +318 -0
  737. package/src/utils/saas/index.ts +2 -0
  738. package/src/utils/saas/saas-mongo-connection.ts +595 -0
  739. package/src/utils/saas/types.ts +107 -0
  740. package/src/utils/sanitize.ts +73 -0
  741. package/src/utils/sentry-init.ts +128 -0
  742. package/src/utils/sentry-instrument.ts +5 -0
  743. package/src/utils/serializablePayload.test.ts +65 -0
  744. package/src/utils/serializablePayload.ts +44 -0
  745. package/src/utils/service-discovery.ts +256 -0
  746. package/src/utils/start-plugin.ts +482 -0
  747. package/src/utils/string.ts +159 -0
  748. package/src/utils/trpc/index.ts +278 -0
  749. package/src/utils/trpc/sendCoreModuleProducer.ts +146 -0
  750. package/src/utils/trpc/trpc-setup.ts +91 -0
  751. package/src/utils/utils.ts +669 -0
  752. package/utils/dist/erxes-api-shared-utils.cjs.d.ts +2 -0
  753. package/utils/dist/erxes-api-shared-utils.cjs.dev.js +3066 -0
  754. package/utils/dist/erxes-api-shared-utils.cjs.js +7 -0
  755. package/utils/dist/erxes-api-shared-utils.cjs.prod.js +3066 -0
  756. package/utils/dist/erxes-api-shared-utils.esm.js +2776 -0
  757. package/utils/package.json +5 -0
  758. package/README.md +0 -3
@@ -0,0 +1,2366 @@
1
+ import { z } from 'zod';
2
+ import { TAutomationProducers } from "./types.js";
3
+ export declare const AutomationBaseInput: z.ZodObject<{
4
+ subdomain: z.ZodString;
5
+ data: z.ZodOptional<z.ZodAny>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ subdomain: string;
8
+ data?: any;
9
+ }, {
10
+ subdomain: string;
11
+ data?: any;
12
+ }>;
13
+ export declare const AutomationExecActionInput: z.ZodObject<{
14
+ createdAt: z.ZodOptional<z.ZodString>;
15
+ startedAt: z.ZodOptional<z.ZodString>;
16
+ finishedAt: z.ZodOptional<z.ZodString>;
17
+ durationMs: z.ZodOptional<z.ZodNumber>;
18
+ status: z.ZodOptional<z.ZodEnum<["success", "skipped", "error", "waiting", "queued", "standby", "dropped"]>>;
19
+ actionId: z.ZodString;
20
+ actionType: z.ZodString;
21
+ actionConfig: z.ZodOptional<z.ZodAny>;
22
+ nextActionId: z.ZodOptional<z.ZodString>;
23
+ result: z.ZodOptional<z.ZodAny>;
24
+ skipReason: z.ZodOptional<z.ZodString>;
25
+ attempt: z.ZodOptional<z.ZodNumber>;
26
+ jobId: z.ZodOptional<z.ZodString>;
27
+ queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
28
+ expiresAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
29
+ }, "strip", z.ZodTypeAny, {
30
+ actionType: string;
31
+ actionId: string;
32
+ durationMs?: number | undefined;
33
+ jobId?: string | undefined;
34
+ createdAt?: string | undefined;
35
+ result?: any;
36
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
37
+ nextActionId?: string | undefined;
38
+ startedAt?: string | undefined;
39
+ finishedAt?: string | undefined;
40
+ actionConfig?: any;
41
+ skipReason?: string | undefined;
42
+ attempt?: number | undefined;
43
+ queuedAt?: string | Date | undefined;
44
+ expiresAt?: string | Date | undefined;
45
+ }, {
46
+ actionType: string;
47
+ actionId: string;
48
+ durationMs?: number | undefined;
49
+ jobId?: string | undefined;
50
+ createdAt?: string | undefined;
51
+ result?: any;
52
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
53
+ nextActionId?: string | undefined;
54
+ startedAt?: string | undefined;
55
+ finishedAt?: string | undefined;
56
+ actionConfig?: any;
57
+ skipReason?: string | undefined;
58
+ attempt?: number | undefined;
59
+ queuedAt?: string | Date | undefined;
60
+ expiresAt?: string | Date | undefined;
61
+ }>;
62
+ export declare const AutomationExecutionInput: z.ZodObject<{
63
+ _id: z.ZodString;
64
+ createdAt: z.ZodOptional<z.ZodString>;
65
+ modifiedAt: z.ZodOptional<z.ZodString>;
66
+ automationId: z.ZodString;
67
+ triggerId: z.ZodString;
68
+ triggerType: z.ZodString;
69
+ triggerConfig: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
70
+ nextActionId: z.ZodOptional<z.ZodString>;
71
+ targetId: z.ZodString;
72
+ target: z.ZodRecord<z.ZodString, z.ZodAny>;
73
+ createdVia: z.ZodOptional<z.ZodObject<{
74
+ source: z.ZodString;
75
+ sourceId: z.ZodString;
76
+ sourceName: z.ZodOptional<z.ZodString>;
77
+ runId: z.ZodOptional<z.ZodString>;
78
+ actorId: z.ZodOptional<z.ZodString>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ sourceId: string;
81
+ source: string;
82
+ sourceName?: string | undefined;
83
+ runId?: string | undefined;
84
+ actorId?: string | undefined;
85
+ }, {
86
+ sourceId: string;
87
+ source: string;
88
+ sourceName?: string | undefined;
89
+ runId?: string | undefined;
90
+ actorId?: string | undefined;
91
+ }>>;
92
+ status: z.ZodString;
93
+ description: z.ZodString;
94
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
95
+ createdAt: z.ZodOptional<z.ZodString>;
96
+ startedAt: z.ZodOptional<z.ZodString>;
97
+ finishedAt: z.ZodOptional<z.ZodString>;
98
+ durationMs: z.ZodOptional<z.ZodNumber>;
99
+ status: z.ZodOptional<z.ZodEnum<["success", "skipped", "error", "waiting", "queued", "standby", "dropped"]>>;
100
+ actionId: z.ZodString;
101
+ actionType: z.ZodString;
102
+ actionConfig: z.ZodOptional<z.ZodAny>;
103
+ nextActionId: z.ZodOptional<z.ZodString>;
104
+ result: z.ZodOptional<z.ZodAny>;
105
+ skipReason: z.ZodOptional<z.ZodString>;
106
+ attempt: z.ZodOptional<z.ZodNumber>;
107
+ jobId: z.ZodOptional<z.ZodString>;
108
+ queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
109
+ expiresAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
110
+ }, "strip", z.ZodTypeAny, {
111
+ actionType: string;
112
+ actionId: string;
113
+ durationMs?: number | undefined;
114
+ jobId?: string | undefined;
115
+ createdAt?: string | undefined;
116
+ result?: any;
117
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
118
+ nextActionId?: string | undefined;
119
+ startedAt?: string | undefined;
120
+ finishedAt?: string | undefined;
121
+ actionConfig?: any;
122
+ skipReason?: string | undefined;
123
+ attempt?: number | undefined;
124
+ queuedAt?: string | Date | undefined;
125
+ expiresAt?: string | Date | undefined;
126
+ }, {
127
+ actionType: string;
128
+ actionId: string;
129
+ durationMs?: number | undefined;
130
+ jobId?: string | undefined;
131
+ createdAt?: string | undefined;
132
+ result?: any;
133
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
134
+ nextActionId?: string | undefined;
135
+ startedAt?: string | undefined;
136
+ finishedAt?: string | undefined;
137
+ actionConfig?: any;
138
+ skipReason?: string | undefined;
139
+ attempt?: number | undefined;
140
+ queuedAt?: string | Date | undefined;
141
+ expiresAt?: string | Date | undefined;
142
+ }>, "many">>;
143
+ startWaitingDate: z.ZodOptional<z.ZodDate>;
144
+ waitingActionId: z.ZodOptional<z.ZodString>;
145
+ objToCheck: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
146
+ responseActionId: z.ZodOptional<z.ZodString>;
147
+ }, "strip", z.ZodTypeAny, {
148
+ _id: string;
149
+ status: string;
150
+ description: string;
151
+ target: Record<string, any>;
152
+ automationId: string;
153
+ triggerId: string;
154
+ triggerType: string;
155
+ triggerConfig: Record<string, any>;
156
+ targetId: string;
157
+ createdAt?: string | undefined;
158
+ createdVia?: {
159
+ sourceId: string;
160
+ source: string;
161
+ sourceName?: string | undefined;
162
+ runId?: string | undefined;
163
+ actorId?: string | undefined;
164
+ } | undefined;
165
+ nextActionId?: string | undefined;
166
+ modifiedAt?: string | undefined;
167
+ actions?: {
168
+ actionType: string;
169
+ actionId: string;
170
+ durationMs?: number | undefined;
171
+ jobId?: string | undefined;
172
+ createdAt?: string | undefined;
173
+ result?: any;
174
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
175
+ nextActionId?: string | undefined;
176
+ startedAt?: string | undefined;
177
+ finishedAt?: string | undefined;
178
+ actionConfig?: any;
179
+ skipReason?: string | undefined;
180
+ attempt?: number | undefined;
181
+ queuedAt?: string | Date | undefined;
182
+ expiresAt?: string | Date | undefined;
183
+ }[] | undefined;
184
+ startWaitingDate?: Date | undefined;
185
+ waitingActionId?: string | undefined;
186
+ objToCheck?: Record<string, any> | undefined;
187
+ responseActionId?: string | undefined;
188
+ }, {
189
+ _id: string;
190
+ status: string;
191
+ description: string;
192
+ target: Record<string, any>;
193
+ automationId: string;
194
+ triggerId: string;
195
+ triggerType: string;
196
+ targetId: string;
197
+ createdAt?: string | undefined;
198
+ createdVia?: {
199
+ sourceId: string;
200
+ source: string;
201
+ sourceName?: string | undefined;
202
+ runId?: string | undefined;
203
+ actorId?: string | undefined;
204
+ } | undefined;
205
+ nextActionId?: string | undefined;
206
+ modifiedAt?: string | undefined;
207
+ triggerConfig?: Record<string, any> | undefined;
208
+ actions?: {
209
+ actionType: string;
210
+ actionId: string;
211
+ durationMs?: number | undefined;
212
+ jobId?: string | undefined;
213
+ createdAt?: string | undefined;
214
+ result?: any;
215
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
216
+ nextActionId?: string | undefined;
217
+ startedAt?: string | undefined;
218
+ finishedAt?: string | undefined;
219
+ actionConfig?: any;
220
+ skipReason?: string | undefined;
221
+ attempt?: number | undefined;
222
+ queuedAt?: string | Date | undefined;
223
+ expiresAt?: string | Date | undefined;
224
+ }[] | undefined;
225
+ startWaitingDate?: Date | undefined;
226
+ waitingActionId?: string | undefined;
227
+ objToCheck?: Record<string, any> | undefined;
228
+ responseActionId?: string | undefined;
229
+ }>;
230
+ export declare const AutomationActionInput: z.ZodObject<{
231
+ id: z.ZodString;
232
+ type: z.ZodString;
233
+ nextActionId: z.ZodOptional<z.ZodString>;
234
+ config: z.ZodOptional<z.ZodAny>;
235
+ style: z.ZodAny;
236
+ icon: z.ZodOptional<z.ZodString>;
237
+ label: z.ZodOptional<z.ZodString>;
238
+ description: z.ZodOptional<z.ZodString>;
239
+ workflowId: z.ZodOptional<z.ZodString>;
240
+ targetActionId: z.ZodOptional<z.ZodString>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ type: string;
243
+ id: string;
244
+ config?: any;
245
+ description?: string | undefined;
246
+ icon?: string | undefined;
247
+ label?: string | undefined;
248
+ nextActionId?: string | undefined;
249
+ style?: any;
250
+ workflowId?: string | undefined;
251
+ targetActionId?: string | undefined;
252
+ }, {
253
+ type: string;
254
+ id: string;
255
+ config?: any;
256
+ description?: string | undefined;
257
+ icon?: string | undefined;
258
+ label?: string | undefined;
259
+ nextActionId?: string | undefined;
260
+ style?: any;
261
+ workflowId?: string | undefined;
262
+ targetActionId?: string | undefined;
263
+ }>;
264
+ export declare const ReceiveActionsInputData: z.ZodObject<{
265
+ moduleName: z.ZodString;
266
+ actionType: z.ZodString;
267
+ action: z.ZodObject<{
268
+ id: z.ZodString;
269
+ type: z.ZodString;
270
+ nextActionId: z.ZodOptional<z.ZodString>;
271
+ config: z.ZodOptional<z.ZodAny>;
272
+ style: z.ZodAny;
273
+ icon: z.ZodOptional<z.ZodString>;
274
+ label: z.ZodOptional<z.ZodString>;
275
+ description: z.ZodOptional<z.ZodString>;
276
+ workflowId: z.ZodOptional<z.ZodString>;
277
+ targetActionId: z.ZodOptional<z.ZodString>;
278
+ }, "strip", z.ZodTypeAny, {
279
+ type: string;
280
+ id: string;
281
+ config?: any;
282
+ description?: string | undefined;
283
+ icon?: string | undefined;
284
+ label?: string | undefined;
285
+ nextActionId?: string | undefined;
286
+ style?: any;
287
+ workflowId?: string | undefined;
288
+ targetActionId?: string | undefined;
289
+ }, {
290
+ type: string;
291
+ id: string;
292
+ config?: any;
293
+ description?: string | undefined;
294
+ icon?: string | undefined;
295
+ label?: string | undefined;
296
+ nextActionId?: string | undefined;
297
+ style?: any;
298
+ workflowId?: string | undefined;
299
+ targetActionId?: string | undefined;
300
+ }>;
301
+ execution: z.ZodObject<{
302
+ _id: z.ZodString;
303
+ createdAt: z.ZodOptional<z.ZodString>;
304
+ modifiedAt: z.ZodOptional<z.ZodString>;
305
+ automationId: z.ZodString;
306
+ triggerId: z.ZodString;
307
+ triggerType: z.ZodString;
308
+ triggerConfig: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
309
+ nextActionId: z.ZodOptional<z.ZodString>;
310
+ targetId: z.ZodString;
311
+ target: z.ZodRecord<z.ZodString, z.ZodAny>;
312
+ createdVia: z.ZodOptional<z.ZodObject<{
313
+ source: z.ZodString;
314
+ sourceId: z.ZodString;
315
+ sourceName: z.ZodOptional<z.ZodString>;
316
+ runId: z.ZodOptional<z.ZodString>;
317
+ actorId: z.ZodOptional<z.ZodString>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ sourceId: string;
320
+ source: string;
321
+ sourceName?: string | undefined;
322
+ runId?: string | undefined;
323
+ actorId?: string | undefined;
324
+ }, {
325
+ sourceId: string;
326
+ source: string;
327
+ sourceName?: string | undefined;
328
+ runId?: string | undefined;
329
+ actorId?: string | undefined;
330
+ }>>;
331
+ status: z.ZodString;
332
+ description: z.ZodString;
333
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
334
+ createdAt: z.ZodOptional<z.ZodString>;
335
+ startedAt: z.ZodOptional<z.ZodString>;
336
+ finishedAt: z.ZodOptional<z.ZodString>;
337
+ durationMs: z.ZodOptional<z.ZodNumber>;
338
+ status: z.ZodOptional<z.ZodEnum<["success", "skipped", "error", "waiting", "queued", "standby", "dropped"]>>;
339
+ actionId: z.ZodString;
340
+ actionType: z.ZodString;
341
+ actionConfig: z.ZodOptional<z.ZodAny>;
342
+ nextActionId: z.ZodOptional<z.ZodString>;
343
+ result: z.ZodOptional<z.ZodAny>;
344
+ skipReason: z.ZodOptional<z.ZodString>;
345
+ attempt: z.ZodOptional<z.ZodNumber>;
346
+ jobId: z.ZodOptional<z.ZodString>;
347
+ queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
348
+ expiresAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
349
+ }, "strip", z.ZodTypeAny, {
350
+ actionType: string;
351
+ actionId: string;
352
+ durationMs?: number | undefined;
353
+ jobId?: string | undefined;
354
+ createdAt?: string | undefined;
355
+ result?: any;
356
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
357
+ nextActionId?: string | undefined;
358
+ startedAt?: string | undefined;
359
+ finishedAt?: string | undefined;
360
+ actionConfig?: any;
361
+ skipReason?: string | undefined;
362
+ attempt?: number | undefined;
363
+ queuedAt?: string | Date | undefined;
364
+ expiresAt?: string | Date | undefined;
365
+ }, {
366
+ actionType: string;
367
+ actionId: string;
368
+ durationMs?: number | undefined;
369
+ jobId?: string | undefined;
370
+ createdAt?: string | undefined;
371
+ result?: any;
372
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
373
+ nextActionId?: string | undefined;
374
+ startedAt?: string | undefined;
375
+ finishedAt?: string | undefined;
376
+ actionConfig?: any;
377
+ skipReason?: string | undefined;
378
+ attempt?: number | undefined;
379
+ queuedAt?: string | Date | undefined;
380
+ expiresAt?: string | Date | undefined;
381
+ }>, "many">>;
382
+ startWaitingDate: z.ZodOptional<z.ZodDate>;
383
+ waitingActionId: z.ZodOptional<z.ZodString>;
384
+ objToCheck: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
385
+ responseActionId: z.ZodOptional<z.ZodString>;
386
+ }, "strip", z.ZodTypeAny, {
387
+ _id: string;
388
+ status: string;
389
+ description: string;
390
+ target: Record<string, any>;
391
+ automationId: string;
392
+ triggerId: string;
393
+ triggerType: string;
394
+ triggerConfig: Record<string, any>;
395
+ targetId: string;
396
+ createdAt?: string | undefined;
397
+ createdVia?: {
398
+ sourceId: string;
399
+ source: string;
400
+ sourceName?: string | undefined;
401
+ runId?: string | undefined;
402
+ actorId?: string | undefined;
403
+ } | undefined;
404
+ nextActionId?: string | undefined;
405
+ modifiedAt?: string | undefined;
406
+ actions?: {
407
+ actionType: string;
408
+ actionId: string;
409
+ durationMs?: number | undefined;
410
+ jobId?: string | undefined;
411
+ createdAt?: string | undefined;
412
+ result?: any;
413
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
414
+ nextActionId?: string | undefined;
415
+ startedAt?: string | undefined;
416
+ finishedAt?: string | undefined;
417
+ actionConfig?: any;
418
+ skipReason?: string | undefined;
419
+ attempt?: number | undefined;
420
+ queuedAt?: string | Date | undefined;
421
+ expiresAt?: string | Date | undefined;
422
+ }[] | undefined;
423
+ startWaitingDate?: Date | undefined;
424
+ waitingActionId?: string | undefined;
425
+ objToCheck?: Record<string, any> | undefined;
426
+ responseActionId?: string | undefined;
427
+ }, {
428
+ _id: string;
429
+ status: string;
430
+ description: string;
431
+ target: Record<string, any>;
432
+ automationId: string;
433
+ triggerId: string;
434
+ triggerType: string;
435
+ targetId: string;
436
+ createdAt?: string | undefined;
437
+ createdVia?: {
438
+ sourceId: string;
439
+ source: string;
440
+ sourceName?: string | undefined;
441
+ runId?: string | undefined;
442
+ actorId?: string | undefined;
443
+ } | undefined;
444
+ nextActionId?: string | undefined;
445
+ modifiedAt?: string | undefined;
446
+ triggerConfig?: Record<string, any> | undefined;
447
+ actions?: {
448
+ actionType: string;
449
+ actionId: string;
450
+ durationMs?: number | undefined;
451
+ jobId?: string | undefined;
452
+ createdAt?: string | undefined;
453
+ result?: any;
454
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
455
+ nextActionId?: string | undefined;
456
+ startedAt?: string | undefined;
457
+ finishedAt?: string | undefined;
458
+ actionConfig?: any;
459
+ skipReason?: string | undefined;
460
+ attempt?: number | undefined;
461
+ queuedAt?: string | Date | undefined;
462
+ expiresAt?: string | Date | undefined;
463
+ }[] | undefined;
464
+ startWaitingDate?: Date | undefined;
465
+ waitingActionId?: string | undefined;
466
+ objToCheck?: Record<string, any> | undefined;
467
+ responseActionId?: string | undefined;
468
+ }>;
469
+ collectionType: z.ZodString;
470
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
471
+ }, "strip", z.ZodTypeAny, {
472
+ moduleName: string;
473
+ action: {
474
+ type: string;
475
+ id: string;
476
+ config?: any;
477
+ description?: string | undefined;
478
+ icon?: string | undefined;
479
+ label?: string | undefined;
480
+ nextActionId?: string | undefined;
481
+ style?: any;
482
+ workflowId?: string | undefined;
483
+ targetActionId?: string | undefined;
484
+ };
485
+ actionType: string;
486
+ execution: {
487
+ _id: string;
488
+ status: string;
489
+ description: string;
490
+ target: Record<string, any>;
491
+ automationId: string;
492
+ triggerId: string;
493
+ triggerType: string;
494
+ triggerConfig: Record<string, any>;
495
+ targetId: string;
496
+ createdAt?: string | undefined;
497
+ createdVia?: {
498
+ sourceId: string;
499
+ source: string;
500
+ sourceName?: string | undefined;
501
+ runId?: string | undefined;
502
+ actorId?: string | undefined;
503
+ } | undefined;
504
+ nextActionId?: string | undefined;
505
+ modifiedAt?: string | undefined;
506
+ actions?: {
507
+ actionType: string;
508
+ actionId: string;
509
+ durationMs?: number | undefined;
510
+ jobId?: string | undefined;
511
+ createdAt?: string | undefined;
512
+ result?: any;
513
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
514
+ nextActionId?: string | undefined;
515
+ startedAt?: string | undefined;
516
+ finishedAt?: string | undefined;
517
+ actionConfig?: any;
518
+ skipReason?: string | undefined;
519
+ attempt?: number | undefined;
520
+ queuedAt?: string | Date | undefined;
521
+ expiresAt?: string | Date | undefined;
522
+ }[] | undefined;
523
+ startWaitingDate?: Date | undefined;
524
+ waitingActionId?: string | undefined;
525
+ objToCheck?: Record<string, any> | undefined;
526
+ responseActionId?: string | undefined;
527
+ };
528
+ collectionType: string;
529
+ inputs?: Record<string, any> | undefined;
530
+ }, {
531
+ moduleName: string;
532
+ action: {
533
+ type: string;
534
+ id: string;
535
+ config?: any;
536
+ description?: string | undefined;
537
+ icon?: string | undefined;
538
+ label?: string | undefined;
539
+ nextActionId?: string | undefined;
540
+ style?: any;
541
+ workflowId?: string | undefined;
542
+ targetActionId?: string | undefined;
543
+ };
544
+ actionType: string;
545
+ execution: {
546
+ _id: string;
547
+ status: string;
548
+ description: string;
549
+ target: Record<string, any>;
550
+ automationId: string;
551
+ triggerId: string;
552
+ triggerType: string;
553
+ targetId: string;
554
+ createdAt?: string | undefined;
555
+ createdVia?: {
556
+ sourceId: string;
557
+ source: string;
558
+ sourceName?: string | undefined;
559
+ runId?: string | undefined;
560
+ actorId?: string | undefined;
561
+ } | undefined;
562
+ nextActionId?: string | undefined;
563
+ modifiedAt?: string | undefined;
564
+ triggerConfig?: Record<string, any> | undefined;
565
+ actions?: {
566
+ actionType: string;
567
+ actionId: string;
568
+ durationMs?: number | undefined;
569
+ jobId?: string | undefined;
570
+ createdAt?: string | undefined;
571
+ result?: any;
572
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
573
+ nextActionId?: string | undefined;
574
+ startedAt?: string | undefined;
575
+ finishedAt?: string | undefined;
576
+ actionConfig?: any;
577
+ skipReason?: string | undefined;
578
+ attempt?: number | undefined;
579
+ queuedAt?: string | Date | undefined;
580
+ expiresAt?: string | Date | undefined;
581
+ }[] | undefined;
582
+ startWaitingDate?: Date | undefined;
583
+ waitingActionId?: string | undefined;
584
+ objToCheck?: Record<string, any> | undefined;
585
+ responseActionId?: string | undefined;
586
+ };
587
+ collectionType: string;
588
+ inputs?: Record<string, any> | undefined;
589
+ }>;
590
+ export declare const ReceiveActionsInput: z.ZodObject<z.objectUtil.extendShape<{
591
+ subdomain: z.ZodString;
592
+ data: z.ZodOptional<z.ZodAny>;
593
+ }, {
594
+ data: z.ZodObject<{
595
+ moduleName: z.ZodString;
596
+ actionType: z.ZodString;
597
+ action: z.ZodObject<{
598
+ id: z.ZodString;
599
+ type: z.ZodString;
600
+ nextActionId: z.ZodOptional<z.ZodString>;
601
+ config: z.ZodOptional<z.ZodAny>;
602
+ style: z.ZodAny;
603
+ icon: z.ZodOptional<z.ZodString>;
604
+ label: z.ZodOptional<z.ZodString>;
605
+ description: z.ZodOptional<z.ZodString>;
606
+ workflowId: z.ZodOptional<z.ZodString>;
607
+ targetActionId: z.ZodOptional<z.ZodString>;
608
+ }, "strip", z.ZodTypeAny, {
609
+ type: string;
610
+ id: string;
611
+ config?: any;
612
+ description?: string | undefined;
613
+ icon?: string | undefined;
614
+ label?: string | undefined;
615
+ nextActionId?: string | undefined;
616
+ style?: any;
617
+ workflowId?: string | undefined;
618
+ targetActionId?: string | undefined;
619
+ }, {
620
+ type: string;
621
+ id: string;
622
+ config?: any;
623
+ description?: string | undefined;
624
+ icon?: string | undefined;
625
+ label?: string | undefined;
626
+ nextActionId?: string | undefined;
627
+ style?: any;
628
+ workflowId?: string | undefined;
629
+ targetActionId?: string | undefined;
630
+ }>;
631
+ execution: z.ZodObject<{
632
+ _id: z.ZodString;
633
+ createdAt: z.ZodOptional<z.ZodString>;
634
+ modifiedAt: z.ZodOptional<z.ZodString>;
635
+ automationId: z.ZodString;
636
+ triggerId: z.ZodString;
637
+ triggerType: z.ZodString;
638
+ triggerConfig: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
639
+ nextActionId: z.ZodOptional<z.ZodString>;
640
+ targetId: z.ZodString;
641
+ target: z.ZodRecord<z.ZodString, z.ZodAny>;
642
+ createdVia: z.ZodOptional<z.ZodObject<{
643
+ source: z.ZodString;
644
+ sourceId: z.ZodString;
645
+ sourceName: z.ZodOptional<z.ZodString>;
646
+ runId: z.ZodOptional<z.ZodString>;
647
+ actorId: z.ZodOptional<z.ZodString>;
648
+ }, "strip", z.ZodTypeAny, {
649
+ sourceId: string;
650
+ source: string;
651
+ sourceName?: string | undefined;
652
+ runId?: string | undefined;
653
+ actorId?: string | undefined;
654
+ }, {
655
+ sourceId: string;
656
+ source: string;
657
+ sourceName?: string | undefined;
658
+ runId?: string | undefined;
659
+ actorId?: string | undefined;
660
+ }>>;
661
+ status: z.ZodString;
662
+ description: z.ZodString;
663
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
664
+ createdAt: z.ZodOptional<z.ZodString>;
665
+ startedAt: z.ZodOptional<z.ZodString>;
666
+ finishedAt: z.ZodOptional<z.ZodString>;
667
+ durationMs: z.ZodOptional<z.ZodNumber>;
668
+ status: z.ZodOptional<z.ZodEnum<["success", "skipped", "error", "waiting", "queued", "standby", "dropped"]>>;
669
+ actionId: z.ZodString;
670
+ actionType: z.ZodString;
671
+ actionConfig: z.ZodOptional<z.ZodAny>;
672
+ nextActionId: z.ZodOptional<z.ZodString>;
673
+ result: z.ZodOptional<z.ZodAny>;
674
+ skipReason: z.ZodOptional<z.ZodString>;
675
+ attempt: z.ZodOptional<z.ZodNumber>;
676
+ jobId: z.ZodOptional<z.ZodString>;
677
+ queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
678
+ expiresAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
679
+ }, "strip", z.ZodTypeAny, {
680
+ actionType: string;
681
+ actionId: string;
682
+ durationMs?: number | undefined;
683
+ jobId?: string | undefined;
684
+ createdAt?: string | undefined;
685
+ result?: any;
686
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
687
+ nextActionId?: string | undefined;
688
+ startedAt?: string | undefined;
689
+ finishedAt?: string | undefined;
690
+ actionConfig?: any;
691
+ skipReason?: string | undefined;
692
+ attempt?: number | undefined;
693
+ queuedAt?: string | Date | undefined;
694
+ expiresAt?: string | Date | undefined;
695
+ }, {
696
+ actionType: string;
697
+ actionId: string;
698
+ durationMs?: number | undefined;
699
+ jobId?: string | undefined;
700
+ createdAt?: string | undefined;
701
+ result?: any;
702
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
703
+ nextActionId?: string | undefined;
704
+ startedAt?: string | undefined;
705
+ finishedAt?: string | undefined;
706
+ actionConfig?: any;
707
+ skipReason?: string | undefined;
708
+ attempt?: number | undefined;
709
+ queuedAt?: string | Date | undefined;
710
+ expiresAt?: string | Date | undefined;
711
+ }>, "many">>;
712
+ startWaitingDate: z.ZodOptional<z.ZodDate>;
713
+ waitingActionId: z.ZodOptional<z.ZodString>;
714
+ objToCheck: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
715
+ responseActionId: z.ZodOptional<z.ZodString>;
716
+ }, "strip", z.ZodTypeAny, {
717
+ _id: string;
718
+ status: string;
719
+ description: string;
720
+ target: Record<string, any>;
721
+ automationId: string;
722
+ triggerId: string;
723
+ triggerType: string;
724
+ triggerConfig: Record<string, any>;
725
+ targetId: string;
726
+ createdAt?: string | undefined;
727
+ createdVia?: {
728
+ sourceId: string;
729
+ source: string;
730
+ sourceName?: string | undefined;
731
+ runId?: string | undefined;
732
+ actorId?: string | undefined;
733
+ } | undefined;
734
+ nextActionId?: string | undefined;
735
+ modifiedAt?: string | undefined;
736
+ actions?: {
737
+ actionType: string;
738
+ actionId: string;
739
+ durationMs?: number | undefined;
740
+ jobId?: string | undefined;
741
+ createdAt?: string | undefined;
742
+ result?: any;
743
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
744
+ nextActionId?: string | undefined;
745
+ startedAt?: string | undefined;
746
+ finishedAt?: string | undefined;
747
+ actionConfig?: any;
748
+ skipReason?: string | undefined;
749
+ attempt?: number | undefined;
750
+ queuedAt?: string | Date | undefined;
751
+ expiresAt?: string | Date | undefined;
752
+ }[] | undefined;
753
+ startWaitingDate?: Date | undefined;
754
+ waitingActionId?: string | undefined;
755
+ objToCheck?: Record<string, any> | undefined;
756
+ responseActionId?: string | undefined;
757
+ }, {
758
+ _id: string;
759
+ status: string;
760
+ description: string;
761
+ target: Record<string, any>;
762
+ automationId: string;
763
+ triggerId: string;
764
+ triggerType: string;
765
+ targetId: string;
766
+ createdAt?: string | undefined;
767
+ createdVia?: {
768
+ sourceId: string;
769
+ source: string;
770
+ sourceName?: string | undefined;
771
+ runId?: string | undefined;
772
+ actorId?: string | undefined;
773
+ } | undefined;
774
+ nextActionId?: string | undefined;
775
+ modifiedAt?: string | undefined;
776
+ triggerConfig?: Record<string, any> | undefined;
777
+ actions?: {
778
+ actionType: string;
779
+ actionId: string;
780
+ durationMs?: number | undefined;
781
+ jobId?: string | undefined;
782
+ createdAt?: string | undefined;
783
+ result?: any;
784
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
785
+ nextActionId?: string | undefined;
786
+ startedAt?: string | undefined;
787
+ finishedAt?: string | undefined;
788
+ actionConfig?: any;
789
+ skipReason?: string | undefined;
790
+ attempt?: number | undefined;
791
+ queuedAt?: string | Date | undefined;
792
+ expiresAt?: string | Date | undefined;
793
+ }[] | undefined;
794
+ startWaitingDate?: Date | undefined;
795
+ waitingActionId?: string | undefined;
796
+ objToCheck?: Record<string, any> | undefined;
797
+ responseActionId?: string | undefined;
798
+ }>;
799
+ collectionType: z.ZodString;
800
+ inputs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
801
+ }, "strip", z.ZodTypeAny, {
802
+ moduleName: string;
803
+ action: {
804
+ type: string;
805
+ id: string;
806
+ config?: any;
807
+ description?: string | undefined;
808
+ icon?: string | undefined;
809
+ label?: string | undefined;
810
+ nextActionId?: string | undefined;
811
+ style?: any;
812
+ workflowId?: string | undefined;
813
+ targetActionId?: string | undefined;
814
+ };
815
+ actionType: string;
816
+ execution: {
817
+ _id: string;
818
+ status: string;
819
+ description: string;
820
+ target: Record<string, any>;
821
+ automationId: string;
822
+ triggerId: string;
823
+ triggerType: string;
824
+ triggerConfig: Record<string, any>;
825
+ targetId: string;
826
+ createdAt?: string | undefined;
827
+ createdVia?: {
828
+ sourceId: string;
829
+ source: string;
830
+ sourceName?: string | undefined;
831
+ runId?: string | undefined;
832
+ actorId?: string | undefined;
833
+ } | undefined;
834
+ nextActionId?: string | undefined;
835
+ modifiedAt?: string | undefined;
836
+ actions?: {
837
+ actionType: string;
838
+ actionId: string;
839
+ durationMs?: number | undefined;
840
+ jobId?: string | undefined;
841
+ createdAt?: string | undefined;
842
+ result?: any;
843
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
844
+ nextActionId?: string | undefined;
845
+ startedAt?: string | undefined;
846
+ finishedAt?: string | undefined;
847
+ actionConfig?: any;
848
+ skipReason?: string | undefined;
849
+ attempt?: number | undefined;
850
+ queuedAt?: string | Date | undefined;
851
+ expiresAt?: string | Date | undefined;
852
+ }[] | undefined;
853
+ startWaitingDate?: Date | undefined;
854
+ waitingActionId?: string | undefined;
855
+ objToCheck?: Record<string, any> | undefined;
856
+ responseActionId?: string | undefined;
857
+ };
858
+ collectionType: string;
859
+ inputs?: Record<string, any> | undefined;
860
+ }, {
861
+ moduleName: string;
862
+ action: {
863
+ type: string;
864
+ id: string;
865
+ config?: any;
866
+ description?: string | undefined;
867
+ icon?: string | undefined;
868
+ label?: string | undefined;
869
+ nextActionId?: string | undefined;
870
+ style?: any;
871
+ workflowId?: string | undefined;
872
+ targetActionId?: string | undefined;
873
+ };
874
+ actionType: string;
875
+ execution: {
876
+ _id: string;
877
+ status: string;
878
+ description: string;
879
+ target: Record<string, any>;
880
+ automationId: string;
881
+ triggerId: string;
882
+ triggerType: string;
883
+ targetId: string;
884
+ createdAt?: string | undefined;
885
+ createdVia?: {
886
+ sourceId: string;
887
+ source: string;
888
+ sourceName?: string | undefined;
889
+ runId?: string | undefined;
890
+ actorId?: string | undefined;
891
+ } | undefined;
892
+ nextActionId?: string | undefined;
893
+ modifiedAt?: string | undefined;
894
+ triggerConfig?: Record<string, any> | undefined;
895
+ actions?: {
896
+ actionType: string;
897
+ actionId: string;
898
+ durationMs?: number | undefined;
899
+ jobId?: string | undefined;
900
+ createdAt?: string | undefined;
901
+ result?: any;
902
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
903
+ nextActionId?: string | undefined;
904
+ startedAt?: string | undefined;
905
+ finishedAt?: string | undefined;
906
+ actionConfig?: any;
907
+ skipReason?: string | undefined;
908
+ attempt?: number | undefined;
909
+ queuedAt?: string | Date | undefined;
910
+ expiresAt?: string | Date | undefined;
911
+ }[] | undefined;
912
+ startWaitingDate?: Date | undefined;
913
+ waitingActionId?: string | undefined;
914
+ objToCheck?: Record<string, any> | undefined;
915
+ responseActionId?: string | undefined;
916
+ };
917
+ collectionType: string;
918
+ inputs?: Record<string, any> | undefined;
919
+ }>;
920
+ }>, "strip", z.ZodTypeAny, {
921
+ data: {
922
+ moduleName: string;
923
+ action: {
924
+ type: string;
925
+ id: string;
926
+ config?: any;
927
+ description?: string | undefined;
928
+ icon?: string | undefined;
929
+ label?: string | undefined;
930
+ nextActionId?: string | undefined;
931
+ style?: any;
932
+ workflowId?: string | undefined;
933
+ targetActionId?: string | undefined;
934
+ };
935
+ actionType: string;
936
+ execution: {
937
+ _id: string;
938
+ status: string;
939
+ description: string;
940
+ target: Record<string, any>;
941
+ automationId: string;
942
+ triggerId: string;
943
+ triggerType: string;
944
+ triggerConfig: Record<string, any>;
945
+ targetId: string;
946
+ createdAt?: string | undefined;
947
+ createdVia?: {
948
+ sourceId: string;
949
+ source: string;
950
+ sourceName?: string | undefined;
951
+ runId?: string | undefined;
952
+ actorId?: string | undefined;
953
+ } | undefined;
954
+ nextActionId?: string | undefined;
955
+ modifiedAt?: string | undefined;
956
+ actions?: {
957
+ actionType: string;
958
+ actionId: string;
959
+ durationMs?: number | undefined;
960
+ jobId?: string | undefined;
961
+ createdAt?: string | undefined;
962
+ result?: any;
963
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
964
+ nextActionId?: string | undefined;
965
+ startedAt?: string | undefined;
966
+ finishedAt?: string | undefined;
967
+ actionConfig?: any;
968
+ skipReason?: string | undefined;
969
+ attempt?: number | undefined;
970
+ queuedAt?: string | Date | undefined;
971
+ expiresAt?: string | Date | undefined;
972
+ }[] | undefined;
973
+ startWaitingDate?: Date | undefined;
974
+ waitingActionId?: string | undefined;
975
+ objToCheck?: Record<string, any> | undefined;
976
+ responseActionId?: string | undefined;
977
+ };
978
+ collectionType: string;
979
+ inputs?: Record<string, any> | undefined;
980
+ };
981
+ subdomain: string;
982
+ }, {
983
+ data: {
984
+ moduleName: string;
985
+ action: {
986
+ type: string;
987
+ id: string;
988
+ config?: any;
989
+ description?: string | undefined;
990
+ icon?: string | undefined;
991
+ label?: string | undefined;
992
+ nextActionId?: string | undefined;
993
+ style?: any;
994
+ workflowId?: string | undefined;
995
+ targetActionId?: string | undefined;
996
+ };
997
+ actionType: string;
998
+ execution: {
999
+ _id: string;
1000
+ status: string;
1001
+ description: string;
1002
+ target: Record<string, any>;
1003
+ automationId: string;
1004
+ triggerId: string;
1005
+ triggerType: string;
1006
+ targetId: string;
1007
+ createdAt?: string | undefined;
1008
+ createdVia?: {
1009
+ sourceId: string;
1010
+ source: string;
1011
+ sourceName?: string | undefined;
1012
+ runId?: string | undefined;
1013
+ actorId?: string | undefined;
1014
+ } | undefined;
1015
+ nextActionId?: string | undefined;
1016
+ modifiedAt?: string | undefined;
1017
+ triggerConfig?: Record<string, any> | undefined;
1018
+ actions?: {
1019
+ actionType: string;
1020
+ actionId: string;
1021
+ durationMs?: number | undefined;
1022
+ jobId?: string | undefined;
1023
+ createdAt?: string | undefined;
1024
+ result?: any;
1025
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1026
+ nextActionId?: string | undefined;
1027
+ startedAt?: string | undefined;
1028
+ finishedAt?: string | undefined;
1029
+ actionConfig?: any;
1030
+ skipReason?: string | undefined;
1031
+ attempt?: number | undefined;
1032
+ queuedAt?: string | Date | undefined;
1033
+ expiresAt?: string | Date | undefined;
1034
+ }[] | undefined;
1035
+ startWaitingDate?: Date | undefined;
1036
+ waitingActionId?: string | undefined;
1037
+ objToCheck?: Record<string, any> | undefined;
1038
+ responseActionId?: string | undefined;
1039
+ };
1040
+ collectionType: string;
1041
+ inputs?: Record<string, any> | undefined;
1042
+ };
1043
+ subdomain: string;
1044
+ }>;
1045
+ export declare const CheckCustomTriggerInputData: z.ZodObject<{
1046
+ moduleName: z.ZodString;
1047
+ collectionType: z.ZodString;
1048
+ relationType: z.ZodOptional<z.ZodString>;
1049
+ automationId: z.ZodString;
1050
+ trigger: z.ZodObject<{
1051
+ id: z.ZodString;
1052
+ type: z.ZodString;
1053
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
1054
+ actionId: z.ZodOptional<z.ZodString>;
1055
+ style: z.ZodOptional<z.ZodAny>;
1056
+ icon: z.ZodOptional<z.ZodString>;
1057
+ label: z.ZodOptional<z.ZodString>;
1058
+ description: z.ZodOptional<z.ZodString>;
1059
+ isCustom: z.ZodOptional<z.ZodBoolean>;
1060
+ workflowId: z.ZodOptional<z.ZodString>;
1061
+ }, "strip", z.ZodTypeAny, {
1062
+ type: string;
1063
+ id: string;
1064
+ config: Record<string, any>;
1065
+ description?: string | undefined;
1066
+ icon?: string | undefined;
1067
+ label?: string | undefined;
1068
+ style?: any;
1069
+ workflowId?: string | undefined;
1070
+ actionId?: string | undefined;
1071
+ isCustom?: boolean | undefined;
1072
+ }, {
1073
+ type: string;
1074
+ id: string;
1075
+ config: Record<string, any>;
1076
+ description?: string | undefined;
1077
+ icon?: string | undefined;
1078
+ label?: string | undefined;
1079
+ style?: any;
1080
+ workflowId?: string | undefined;
1081
+ actionId?: string | undefined;
1082
+ isCustom?: boolean | undefined;
1083
+ }>;
1084
+ target: z.ZodRecord<z.ZodString, z.ZodAny>;
1085
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
1086
+ eventUpdateDescription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1087
+ }, "strip", z.ZodTypeAny, {
1088
+ moduleName: string;
1089
+ config: Record<string, any>;
1090
+ target: Record<string, any>;
1091
+ automationId: string;
1092
+ collectionType: string;
1093
+ trigger: {
1094
+ type: string;
1095
+ id: string;
1096
+ config: Record<string, any>;
1097
+ description?: string | undefined;
1098
+ icon?: string | undefined;
1099
+ label?: string | undefined;
1100
+ style?: any;
1101
+ workflowId?: string | undefined;
1102
+ actionId?: string | undefined;
1103
+ isCustom?: boolean | undefined;
1104
+ };
1105
+ relationType?: string | undefined;
1106
+ eventUpdateDescription?: Record<string, any> | undefined;
1107
+ }, {
1108
+ moduleName: string;
1109
+ config: Record<string, any>;
1110
+ target: Record<string, any>;
1111
+ automationId: string;
1112
+ collectionType: string;
1113
+ trigger: {
1114
+ type: string;
1115
+ id: string;
1116
+ config: Record<string, any>;
1117
+ description?: string | undefined;
1118
+ icon?: string | undefined;
1119
+ label?: string | undefined;
1120
+ style?: any;
1121
+ workflowId?: string | undefined;
1122
+ actionId?: string | undefined;
1123
+ isCustom?: boolean | undefined;
1124
+ };
1125
+ relationType?: string | undefined;
1126
+ eventUpdateDescription?: Record<string, any> | undefined;
1127
+ }>;
1128
+ export declare const FindObjectInputData: z.ZodObject<{
1129
+ objectType: z.ZodString;
1130
+ field: z.ZodString;
1131
+ value: z.ZodString;
1132
+ }, "strip", z.ZodTypeAny, {
1133
+ field: string;
1134
+ value: string;
1135
+ objectType: string;
1136
+ }, {
1137
+ field: string;
1138
+ value: string;
1139
+ objectType: string;
1140
+ }>;
1141
+ export declare const ResolveOutputPathsInputData: z.ZodObject<{
1142
+ nodeType: z.ZodString;
1143
+ source: z.ZodRecord<z.ZodString, z.ZodAny>;
1144
+ paths: z.ZodArray<z.ZodString, "many">;
1145
+ defaultValue: z.ZodOptional<z.ZodAny>;
1146
+ }, "strip", z.ZodTypeAny, {
1147
+ source: Record<string, any>;
1148
+ paths: string[];
1149
+ nodeType: string;
1150
+ defaultValue?: any;
1151
+ }, {
1152
+ source: Record<string, any>;
1153
+ paths: string[];
1154
+ nodeType: string;
1155
+ defaultValue?: any;
1156
+ }>;
1157
+ export declare const SetPropertiesInputData: z.ZodObject<{
1158
+ moduleName: z.ZodString;
1159
+ triggerType: z.ZodString;
1160
+ targetType: z.ZodString;
1161
+ actionType: z.ZodString;
1162
+ action: z.ZodObject<{
1163
+ id: z.ZodString;
1164
+ type: z.ZodString;
1165
+ nextActionId: z.ZodOptional<z.ZodString>;
1166
+ config: z.ZodOptional<z.ZodAny>;
1167
+ style: z.ZodAny;
1168
+ icon: z.ZodOptional<z.ZodString>;
1169
+ label: z.ZodOptional<z.ZodString>;
1170
+ description: z.ZodOptional<z.ZodString>;
1171
+ workflowId: z.ZodOptional<z.ZodString>;
1172
+ targetActionId: z.ZodOptional<z.ZodString>;
1173
+ }, "strip", z.ZodTypeAny, {
1174
+ type: string;
1175
+ id: string;
1176
+ config?: any;
1177
+ description?: string | undefined;
1178
+ icon?: string | undefined;
1179
+ label?: string | undefined;
1180
+ nextActionId?: string | undefined;
1181
+ style?: any;
1182
+ workflowId?: string | undefined;
1183
+ targetActionId?: string | undefined;
1184
+ }, {
1185
+ type: string;
1186
+ id: string;
1187
+ config?: any;
1188
+ description?: string | undefined;
1189
+ icon?: string | undefined;
1190
+ label?: string | undefined;
1191
+ nextActionId?: string | undefined;
1192
+ style?: any;
1193
+ workflowId?: string | undefined;
1194
+ targetActionId?: string | undefined;
1195
+ }>;
1196
+ execution: z.ZodObject<{
1197
+ _id: z.ZodString;
1198
+ createdAt: z.ZodOptional<z.ZodString>;
1199
+ modifiedAt: z.ZodOptional<z.ZodString>;
1200
+ automationId: z.ZodString;
1201
+ triggerId: z.ZodString;
1202
+ triggerType: z.ZodString;
1203
+ triggerConfig: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1204
+ nextActionId: z.ZodOptional<z.ZodString>;
1205
+ targetId: z.ZodString;
1206
+ target: z.ZodRecord<z.ZodString, z.ZodAny>;
1207
+ createdVia: z.ZodOptional<z.ZodObject<{
1208
+ source: z.ZodString;
1209
+ sourceId: z.ZodString;
1210
+ sourceName: z.ZodOptional<z.ZodString>;
1211
+ runId: z.ZodOptional<z.ZodString>;
1212
+ actorId: z.ZodOptional<z.ZodString>;
1213
+ }, "strip", z.ZodTypeAny, {
1214
+ sourceId: string;
1215
+ source: string;
1216
+ sourceName?: string | undefined;
1217
+ runId?: string | undefined;
1218
+ actorId?: string | undefined;
1219
+ }, {
1220
+ sourceId: string;
1221
+ source: string;
1222
+ sourceName?: string | undefined;
1223
+ runId?: string | undefined;
1224
+ actorId?: string | undefined;
1225
+ }>>;
1226
+ status: z.ZodString;
1227
+ description: z.ZodString;
1228
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1229
+ createdAt: z.ZodOptional<z.ZodString>;
1230
+ startedAt: z.ZodOptional<z.ZodString>;
1231
+ finishedAt: z.ZodOptional<z.ZodString>;
1232
+ durationMs: z.ZodOptional<z.ZodNumber>;
1233
+ status: z.ZodOptional<z.ZodEnum<["success", "skipped", "error", "waiting", "queued", "standby", "dropped"]>>;
1234
+ actionId: z.ZodString;
1235
+ actionType: z.ZodString;
1236
+ actionConfig: z.ZodOptional<z.ZodAny>;
1237
+ nextActionId: z.ZodOptional<z.ZodString>;
1238
+ result: z.ZodOptional<z.ZodAny>;
1239
+ skipReason: z.ZodOptional<z.ZodString>;
1240
+ attempt: z.ZodOptional<z.ZodNumber>;
1241
+ jobId: z.ZodOptional<z.ZodString>;
1242
+ queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1243
+ expiresAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1244
+ }, "strip", z.ZodTypeAny, {
1245
+ actionType: string;
1246
+ actionId: string;
1247
+ durationMs?: number | undefined;
1248
+ jobId?: string | undefined;
1249
+ createdAt?: string | undefined;
1250
+ result?: any;
1251
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1252
+ nextActionId?: string | undefined;
1253
+ startedAt?: string | undefined;
1254
+ finishedAt?: string | undefined;
1255
+ actionConfig?: any;
1256
+ skipReason?: string | undefined;
1257
+ attempt?: number | undefined;
1258
+ queuedAt?: string | Date | undefined;
1259
+ expiresAt?: string | Date | undefined;
1260
+ }, {
1261
+ actionType: string;
1262
+ actionId: string;
1263
+ durationMs?: number | undefined;
1264
+ jobId?: string | undefined;
1265
+ createdAt?: string | undefined;
1266
+ result?: any;
1267
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1268
+ nextActionId?: string | undefined;
1269
+ startedAt?: string | undefined;
1270
+ finishedAt?: string | undefined;
1271
+ actionConfig?: any;
1272
+ skipReason?: string | undefined;
1273
+ attempt?: number | undefined;
1274
+ queuedAt?: string | Date | undefined;
1275
+ expiresAt?: string | Date | undefined;
1276
+ }>, "many">>;
1277
+ startWaitingDate: z.ZodOptional<z.ZodDate>;
1278
+ waitingActionId: z.ZodOptional<z.ZodString>;
1279
+ objToCheck: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1280
+ responseActionId: z.ZodOptional<z.ZodString>;
1281
+ }, "strip", z.ZodTypeAny, {
1282
+ _id: string;
1283
+ status: string;
1284
+ description: string;
1285
+ target: Record<string, any>;
1286
+ automationId: string;
1287
+ triggerId: string;
1288
+ triggerType: string;
1289
+ triggerConfig: Record<string, any>;
1290
+ targetId: string;
1291
+ createdAt?: string | undefined;
1292
+ createdVia?: {
1293
+ sourceId: string;
1294
+ source: string;
1295
+ sourceName?: string | undefined;
1296
+ runId?: string | undefined;
1297
+ actorId?: string | undefined;
1298
+ } | undefined;
1299
+ nextActionId?: string | undefined;
1300
+ modifiedAt?: string | undefined;
1301
+ actions?: {
1302
+ actionType: string;
1303
+ actionId: string;
1304
+ durationMs?: number | undefined;
1305
+ jobId?: string | undefined;
1306
+ createdAt?: string | undefined;
1307
+ result?: any;
1308
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1309
+ nextActionId?: string | undefined;
1310
+ startedAt?: string | undefined;
1311
+ finishedAt?: string | undefined;
1312
+ actionConfig?: any;
1313
+ skipReason?: string | undefined;
1314
+ attempt?: number | undefined;
1315
+ queuedAt?: string | Date | undefined;
1316
+ expiresAt?: string | Date | undefined;
1317
+ }[] | undefined;
1318
+ startWaitingDate?: Date | undefined;
1319
+ waitingActionId?: string | undefined;
1320
+ objToCheck?: Record<string, any> | undefined;
1321
+ responseActionId?: string | undefined;
1322
+ }, {
1323
+ _id: string;
1324
+ status: string;
1325
+ description: string;
1326
+ target: Record<string, any>;
1327
+ automationId: string;
1328
+ triggerId: string;
1329
+ triggerType: string;
1330
+ targetId: string;
1331
+ createdAt?: string | undefined;
1332
+ createdVia?: {
1333
+ sourceId: string;
1334
+ source: string;
1335
+ sourceName?: string | undefined;
1336
+ runId?: string | undefined;
1337
+ actorId?: string | undefined;
1338
+ } | undefined;
1339
+ nextActionId?: string | undefined;
1340
+ modifiedAt?: string | undefined;
1341
+ triggerConfig?: Record<string, any> | undefined;
1342
+ actions?: {
1343
+ actionType: string;
1344
+ actionId: string;
1345
+ durationMs?: number | undefined;
1346
+ jobId?: string | undefined;
1347
+ createdAt?: string | undefined;
1348
+ result?: any;
1349
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1350
+ nextActionId?: string | undefined;
1351
+ startedAt?: string | undefined;
1352
+ finishedAt?: string | undefined;
1353
+ actionConfig?: any;
1354
+ skipReason?: string | undefined;
1355
+ attempt?: number | undefined;
1356
+ queuedAt?: string | Date | undefined;
1357
+ expiresAt?: string | Date | undefined;
1358
+ }[] | undefined;
1359
+ startWaitingDate?: Date | undefined;
1360
+ waitingActionId?: string | undefined;
1361
+ objToCheck?: Record<string, any> | undefined;
1362
+ responseActionId?: string | undefined;
1363
+ }>;
1364
+ collectionType: z.ZodString;
1365
+ }, "strip", z.ZodTypeAny, {
1366
+ moduleName: string;
1367
+ action: {
1368
+ type: string;
1369
+ id: string;
1370
+ config?: any;
1371
+ description?: string | undefined;
1372
+ icon?: string | undefined;
1373
+ label?: string | undefined;
1374
+ nextActionId?: string | undefined;
1375
+ style?: any;
1376
+ workflowId?: string | undefined;
1377
+ targetActionId?: string | undefined;
1378
+ };
1379
+ actionType: string;
1380
+ triggerType: string;
1381
+ execution: {
1382
+ _id: string;
1383
+ status: string;
1384
+ description: string;
1385
+ target: Record<string, any>;
1386
+ automationId: string;
1387
+ triggerId: string;
1388
+ triggerType: string;
1389
+ triggerConfig: Record<string, any>;
1390
+ targetId: string;
1391
+ createdAt?: string | undefined;
1392
+ createdVia?: {
1393
+ sourceId: string;
1394
+ source: string;
1395
+ sourceName?: string | undefined;
1396
+ runId?: string | undefined;
1397
+ actorId?: string | undefined;
1398
+ } | undefined;
1399
+ nextActionId?: string | undefined;
1400
+ modifiedAt?: string | undefined;
1401
+ actions?: {
1402
+ actionType: string;
1403
+ actionId: string;
1404
+ durationMs?: number | undefined;
1405
+ jobId?: string | undefined;
1406
+ createdAt?: string | undefined;
1407
+ result?: any;
1408
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1409
+ nextActionId?: string | undefined;
1410
+ startedAt?: string | undefined;
1411
+ finishedAt?: string | undefined;
1412
+ actionConfig?: any;
1413
+ skipReason?: string | undefined;
1414
+ attempt?: number | undefined;
1415
+ queuedAt?: string | Date | undefined;
1416
+ expiresAt?: string | Date | undefined;
1417
+ }[] | undefined;
1418
+ startWaitingDate?: Date | undefined;
1419
+ waitingActionId?: string | undefined;
1420
+ objToCheck?: Record<string, any> | undefined;
1421
+ responseActionId?: string | undefined;
1422
+ };
1423
+ collectionType: string;
1424
+ targetType: string;
1425
+ }, {
1426
+ moduleName: string;
1427
+ action: {
1428
+ type: string;
1429
+ id: string;
1430
+ config?: any;
1431
+ description?: string | undefined;
1432
+ icon?: string | undefined;
1433
+ label?: string | undefined;
1434
+ nextActionId?: string | undefined;
1435
+ style?: any;
1436
+ workflowId?: string | undefined;
1437
+ targetActionId?: string | undefined;
1438
+ };
1439
+ actionType: string;
1440
+ triggerType: string;
1441
+ execution: {
1442
+ _id: string;
1443
+ status: string;
1444
+ description: string;
1445
+ target: Record<string, any>;
1446
+ automationId: string;
1447
+ triggerId: string;
1448
+ triggerType: string;
1449
+ targetId: string;
1450
+ createdAt?: string | undefined;
1451
+ createdVia?: {
1452
+ sourceId: string;
1453
+ source: string;
1454
+ sourceName?: string | undefined;
1455
+ runId?: string | undefined;
1456
+ actorId?: string | undefined;
1457
+ } | undefined;
1458
+ nextActionId?: string | undefined;
1459
+ modifiedAt?: string | undefined;
1460
+ triggerConfig?: Record<string, any> | undefined;
1461
+ actions?: {
1462
+ actionType: string;
1463
+ actionId: string;
1464
+ durationMs?: number | undefined;
1465
+ jobId?: string | undefined;
1466
+ createdAt?: string | undefined;
1467
+ result?: any;
1468
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1469
+ nextActionId?: string | undefined;
1470
+ startedAt?: string | undefined;
1471
+ finishedAt?: string | undefined;
1472
+ actionConfig?: any;
1473
+ skipReason?: string | undefined;
1474
+ attempt?: number | undefined;
1475
+ queuedAt?: string | Date | undefined;
1476
+ expiresAt?: string | Date | undefined;
1477
+ }[] | undefined;
1478
+ startWaitingDate?: Date | undefined;
1479
+ waitingActionId?: string | undefined;
1480
+ objToCheck?: Record<string, any> | undefined;
1481
+ responseActionId?: string | undefined;
1482
+ };
1483
+ collectionType: string;
1484
+ targetType: string;
1485
+ }>;
1486
+ export declare const GenerateAiContextInputData: z.ZodObject<{
1487
+ moduleName: z.ZodString;
1488
+ collectionType: z.ZodOptional<z.ZodString>;
1489
+ triggerType: z.ZodString;
1490
+ target: z.ZodRecord<z.ZodString, z.ZodAny>;
1491
+ }, "strip", z.ZodTypeAny, {
1492
+ moduleName: string;
1493
+ target: Record<string, any>;
1494
+ triggerType: string;
1495
+ collectionType?: string | undefined;
1496
+ }, {
1497
+ moduleName: string;
1498
+ target: Record<string, any>;
1499
+ triggerType: string;
1500
+ collectionType?: string | undefined;
1501
+ }>;
1502
+ export declare const LoadAiKnowledgeDocumentBatchInputData: z.ZodObject<{
1503
+ moduleName: z.ZodString;
1504
+ sourceKey: z.ZodString;
1505
+ scope: z.ZodOptional<z.ZodEnum<["all", "selected"]>>;
1506
+ sourceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1507
+ candidateSourceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1508
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1509
+ cursor: z.ZodOptional<z.ZodString>;
1510
+ limit: z.ZodOptional<z.ZodNumber>;
1511
+ skipTotalCount: z.ZodOptional<z.ZodBoolean>;
1512
+ }, "strip", z.ZodTypeAny, {
1513
+ moduleName: string;
1514
+ sourceKey: string;
1515
+ limit?: number | undefined;
1516
+ config?: Record<string, unknown> | undefined;
1517
+ cursor?: string | undefined;
1518
+ scope?: "all" | "selected" | undefined;
1519
+ sourceIds?: string[] | undefined;
1520
+ candidateSourceIds?: string[] | undefined;
1521
+ skipTotalCount?: boolean | undefined;
1522
+ }, {
1523
+ moduleName: string;
1524
+ sourceKey: string;
1525
+ limit?: number | undefined;
1526
+ config?: Record<string, unknown> | undefined;
1527
+ cursor?: string | undefined;
1528
+ scope?: "all" | "selected" | undefined;
1529
+ sourceIds?: string[] | undefined;
1530
+ candidateSourceIds?: string[] | undefined;
1531
+ skipTotalCount?: boolean | undefined;
1532
+ }>;
1533
+ export declare const LookupAiToolInputData: z.ZodObject<{
1534
+ moduleName: z.ZodString;
1535
+ toolKey: z.ZodString;
1536
+ query: z.ZodDefault<z.ZodString>;
1537
+ limit: z.ZodOptional<z.ZodNumber>;
1538
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1539
+ }, "strip", z.ZodTypeAny, {
1540
+ query: string;
1541
+ moduleName: string;
1542
+ toolKey: string;
1543
+ limit?: number | undefined;
1544
+ filters?: Record<string, unknown> | undefined;
1545
+ }, {
1546
+ moduleName: string;
1547
+ toolKey: string;
1548
+ limit?: number | undefined;
1549
+ query?: string | undefined;
1550
+ filters?: Record<string, unknown> | undefined;
1551
+ }>;
1552
+ export declare const CheckCustomTriggerInput: z.ZodObject<z.objectUtil.extendShape<{
1553
+ subdomain: z.ZodString;
1554
+ data: z.ZodOptional<z.ZodAny>;
1555
+ }, {
1556
+ data: z.ZodObject<{
1557
+ moduleName: z.ZodString;
1558
+ collectionType: z.ZodString;
1559
+ relationType: z.ZodOptional<z.ZodString>;
1560
+ automationId: z.ZodString;
1561
+ trigger: z.ZodObject<{
1562
+ id: z.ZodString;
1563
+ type: z.ZodString;
1564
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
1565
+ actionId: z.ZodOptional<z.ZodString>;
1566
+ style: z.ZodOptional<z.ZodAny>;
1567
+ icon: z.ZodOptional<z.ZodString>;
1568
+ label: z.ZodOptional<z.ZodString>;
1569
+ description: z.ZodOptional<z.ZodString>;
1570
+ isCustom: z.ZodOptional<z.ZodBoolean>;
1571
+ workflowId: z.ZodOptional<z.ZodString>;
1572
+ }, "strip", z.ZodTypeAny, {
1573
+ type: string;
1574
+ id: string;
1575
+ config: Record<string, any>;
1576
+ description?: string | undefined;
1577
+ icon?: string | undefined;
1578
+ label?: string | undefined;
1579
+ style?: any;
1580
+ workflowId?: string | undefined;
1581
+ actionId?: string | undefined;
1582
+ isCustom?: boolean | undefined;
1583
+ }, {
1584
+ type: string;
1585
+ id: string;
1586
+ config: Record<string, any>;
1587
+ description?: string | undefined;
1588
+ icon?: string | undefined;
1589
+ label?: string | undefined;
1590
+ style?: any;
1591
+ workflowId?: string | undefined;
1592
+ actionId?: string | undefined;
1593
+ isCustom?: boolean | undefined;
1594
+ }>;
1595
+ target: z.ZodRecord<z.ZodString, z.ZodAny>;
1596
+ config: z.ZodRecord<z.ZodString, z.ZodAny>;
1597
+ eventUpdateDescription: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1598
+ }, "strip", z.ZodTypeAny, {
1599
+ moduleName: string;
1600
+ config: Record<string, any>;
1601
+ target: Record<string, any>;
1602
+ automationId: string;
1603
+ collectionType: string;
1604
+ trigger: {
1605
+ type: string;
1606
+ id: string;
1607
+ config: Record<string, any>;
1608
+ description?: string | undefined;
1609
+ icon?: string | undefined;
1610
+ label?: string | undefined;
1611
+ style?: any;
1612
+ workflowId?: string | undefined;
1613
+ actionId?: string | undefined;
1614
+ isCustom?: boolean | undefined;
1615
+ };
1616
+ relationType?: string | undefined;
1617
+ eventUpdateDescription?: Record<string, any> | undefined;
1618
+ }, {
1619
+ moduleName: string;
1620
+ config: Record<string, any>;
1621
+ target: Record<string, any>;
1622
+ automationId: string;
1623
+ collectionType: string;
1624
+ trigger: {
1625
+ type: string;
1626
+ id: string;
1627
+ config: Record<string, any>;
1628
+ description?: string | undefined;
1629
+ icon?: string | undefined;
1630
+ label?: string | undefined;
1631
+ style?: any;
1632
+ workflowId?: string | undefined;
1633
+ actionId?: string | undefined;
1634
+ isCustom?: boolean | undefined;
1635
+ };
1636
+ relationType?: string | undefined;
1637
+ eventUpdateDescription?: Record<string, any> | undefined;
1638
+ }>;
1639
+ }>, "strip", z.ZodTypeAny, {
1640
+ data: {
1641
+ moduleName: string;
1642
+ config: Record<string, any>;
1643
+ target: Record<string, any>;
1644
+ automationId: string;
1645
+ collectionType: string;
1646
+ trigger: {
1647
+ type: string;
1648
+ id: string;
1649
+ config: Record<string, any>;
1650
+ description?: string | undefined;
1651
+ icon?: string | undefined;
1652
+ label?: string | undefined;
1653
+ style?: any;
1654
+ workflowId?: string | undefined;
1655
+ actionId?: string | undefined;
1656
+ isCustom?: boolean | undefined;
1657
+ };
1658
+ relationType?: string | undefined;
1659
+ eventUpdateDescription?: Record<string, any> | undefined;
1660
+ };
1661
+ subdomain: string;
1662
+ }, {
1663
+ data: {
1664
+ moduleName: string;
1665
+ config: Record<string, any>;
1666
+ target: Record<string, any>;
1667
+ automationId: string;
1668
+ collectionType: string;
1669
+ trigger: {
1670
+ type: string;
1671
+ id: string;
1672
+ config: Record<string, any>;
1673
+ description?: string | undefined;
1674
+ icon?: string | undefined;
1675
+ label?: string | undefined;
1676
+ style?: any;
1677
+ workflowId?: string | undefined;
1678
+ actionId?: string | undefined;
1679
+ isCustom?: boolean | undefined;
1680
+ };
1681
+ relationType?: string | undefined;
1682
+ eventUpdateDescription?: Record<string, any> | undefined;
1683
+ };
1684
+ subdomain: string;
1685
+ }>;
1686
+ export declare const FindObjectInput: z.ZodObject<z.objectUtil.extendShape<{
1687
+ subdomain: z.ZodString;
1688
+ data: z.ZodOptional<z.ZodAny>;
1689
+ }, {
1690
+ data: z.ZodObject<{
1691
+ objectType: z.ZodString;
1692
+ field: z.ZodString;
1693
+ value: z.ZodString;
1694
+ }, "strip", z.ZodTypeAny, {
1695
+ field: string;
1696
+ value: string;
1697
+ objectType: string;
1698
+ }, {
1699
+ field: string;
1700
+ value: string;
1701
+ objectType: string;
1702
+ }>;
1703
+ }>, "strip", z.ZodTypeAny, {
1704
+ data: {
1705
+ field: string;
1706
+ value: string;
1707
+ objectType: string;
1708
+ };
1709
+ subdomain: string;
1710
+ }, {
1711
+ data: {
1712
+ field: string;
1713
+ value: string;
1714
+ objectType: string;
1715
+ };
1716
+ subdomain: string;
1717
+ }>;
1718
+ export declare const ResolveOutputPathsInput: z.ZodObject<z.objectUtil.extendShape<{
1719
+ subdomain: z.ZodString;
1720
+ data: z.ZodOptional<z.ZodAny>;
1721
+ }, {
1722
+ data: z.ZodObject<{
1723
+ nodeType: z.ZodString;
1724
+ source: z.ZodRecord<z.ZodString, z.ZodAny>;
1725
+ paths: z.ZodArray<z.ZodString, "many">;
1726
+ defaultValue: z.ZodOptional<z.ZodAny>;
1727
+ }, "strip", z.ZodTypeAny, {
1728
+ source: Record<string, any>;
1729
+ paths: string[];
1730
+ nodeType: string;
1731
+ defaultValue?: any;
1732
+ }, {
1733
+ source: Record<string, any>;
1734
+ paths: string[];
1735
+ nodeType: string;
1736
+ defaultValue?: any;
1737
+ }>;
1738
+ }>, "strip", z.ZodTypeAny, {
1739
+ data: {
1740
+ source: Record<string, any>;
1741
+ paths: string[];
1742
+ nodeType: string;
1743
+ defaultValue?: any;
1744
+ };
1745
+ subdomain: string;
1746
+ }, {
1747
+ data: {
1748
+ source: Record<string, any>;
1749
+ paths: string[];
1750
+ nodeType: string;
1751
+ defaultValue?: any;
1752
+ };
1753
+ subdomain: string;
1754
+ }>;
1755
+ export declare const SetPropertiesInput: z.ZodObject<z.objectUtil.extendShape<{
1756
+ subdomain: z.ZodString;
1757
+ data: z.ZodOptional<z.ZodAny>;
1758
+ }, {
1759
+ data: z.ZodObject<{
1760
+ moduleName: z.ZodString;
1761
+ triggerType: z.ZodString;
1762
+ targetType: z.ZodString;
1763
+ actionType: z.ZodString;
1764
+ action: z.ZodObject<{
1765
+ id: z.ZodString;
1766
+ type: z.ZodString;
1767
+ nextActionId: z.ZodOptional<z.ZodString>;
1768
+ config: z.ZodOptional<z.ZodAny>;
1769
+ style: z.ZodAny;
1770
+ icon: z.ZodOptional<z.ZodString>;
1771
+ label: z.ZodOptional<z.ZodString>;
1772
+ description: z.ZodOptional<z.ZodString>;
1773
+ workflowId: z.ZodOptional<z.ZodString>;
1774
+ targetActionId: z.ZodOptional<z.ZodString>;
1775
+ }, "strip", z.ZodTypeAny, {
1776
+ type: string;
1777
+ id: string;
1778
+ config?: any;
1779
+ description?: string | undefined;
1780
+ icon?: string | undefined;
1781
+ label?: string | undefined;
1782
+ nextActionId?: string | undefined;
1783
+ style?: any;
1784
+ workflowId?: string | undefined;
1785
+ targetActionId?: string | undefined;
1786
+ }, {
1787
+ type: string;
1788
+ id: string;
1789
+ config?: any;
1790
+ description?: string | undefined;
1791
+ icon?: string | undefined;
1792
+ label?: string | undefined;
1793
+ nextActionId?: string | undefined;
1794
+ style?: any;
1795
+ workflowId?: string | undefined;
1796
+ targetActionId?: string | undefined;
1797
+ }>;
1798
+ execution: z.ZodObject<{
1799
+ _id: z.ZodString;
1800
+ createdAt: z.ZodOptional<z.ZodString>;
1801
+ modifiedAt: z.ZodOptional<z.ZodString>;
1802
+ automationId: z.ZodString;
1803
+ triggerId: z.ZodString;
1804
+ triggerType: z.ZodString;
1805
+ triggerConfig: z.ZodDefault<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
1806
+ nextActionId: z.ZodOptional<z.ZodString>;
1807
+ targetId: z.ZodString;
1808
+ target: z.ZodRecord<z.ZodString, z.ZodAny>;
1809
+ createdVia: z.ZodOptional<z.ZodObject<{
1810
+ source: z.ZodString;
1811
+ sourceId: z.ZodString;
1812
+ sourceName: z.ZodOptional<z.ZodString>;
1813
+ runId: z.ZodOptional<z.ZodString>;
1814
+ actorId: z.ZodOptional<z.ZodString>;
1815
+ }, "strip", z.ZodTypeAny, {
1816
+ sourceId: string;
1817
+ source: string;
1818
+ sourceName?: string | undefined;
1819
+ runId?: string | undefined;
1820
+ actorId?: string | undefined;
1821
+ }, {
1822
+ sourceId: string;
1823
+ source: string;
1824
+ sourceName?: string | undefined;
1825
+ runId?: string | undefined;
1826
+ actorId?: string | undefined;
1827
+ }>>;
1828
+ status: z.ZodString;
1829
+ description: z.ZodString;
1830
+ actions: z.ZodOptional<z.ZodArray<z.ZodObject<{
1831
+ createdAt: z.ZodOptional<z.ZodString>;
1832
+ startedAt: z.ZodOptional<z.ZodString>;
1833
+ finishedAt: z.ZodOptional<z.ZodString>;
1834
+ durationMs: z.ZodOptional<z.ZodNumber>;
1835
+ status: z.ZodOptional<z.ZodEnum<["success", "skipped", "error", "waiting", "queued", "standby", "dropped"]>>;
1836
+ actionId: z.ZodString;
1837
+ actionType: z.ZodString;
1838
+ actionConfig: z.ZodOptional<z.ZodAny>;
1839
+ nextActionId: z.ZodOptional<z.ZodString>;
1840
+ result: z.ZodOptional<z.ZodAny>;
1841
+ skipReason: z.ZodOptional<z.ZodString>;
1842
+ attempt: z.ZodOptional<z.ZodNumber>;
1843
+ jobId: z.ZodOptional<z.ZodString>;
1844
+ queuedAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1845
+ expiresAt: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodDate]>>;
1846
+ }, "strip", z.ZodTypeAny, {
1847
+ actionType: string;
1848
+ actionId: string;
1849
+ durationMs?: number | undefined;
1850
+ jobId?: string | undefined;
1851
+ createdAt?: string | undefined;
1852
+ result?: any;
1853
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1854
+ nextActionId?: string | undefined;
1855
+ startedAt?: string | undefined;
1856
+ finishedAt?: string | undefined;
1857
+ actionConfig?: any;
1858
+ skipReason?: string | undefined;
1859
+ attempt?: number | undefined;
1860
+ queuedAt?: string | Date | undefined;
1861
+ expiresAt?: string | Date | undefined;
1862
+ }, {
1863
+ actionType: string;
1864
+ actionId: string;
1865
+ durationMs?: number | undefined;
1866
+ jobId?: string | undefined;
1867
+ createdAt?: string | undefined;
1868
+ result?: any;
1869
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1870
+ nextActionId?: string | undefined;
1871
+ startedAt?: string | undefined;
1872
+ finishedAt?: string | undefined;
1873
+ actionConfig?: any;
1874
+ skipReason?: string | undefined;
1875
+ attempt?: number | undefined;
1876
+ queuedAt?: string | Date | undefined;
1877
+ expiresAt?: string | Date | undefined;
1878
+ }>, "many">>;
1879
+ startWaitingDate: z.ZodOptional<z.ZodDate>;
1880
+ waitingActionId: z.ZodOptional<z.ZodString>;
1881
+ objToCheck: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
1882
+ responseActionId: z.ZodOptional<z.ZodString>;
1883
+ }, "strip", z.ZodTypeAny, {
1884
+ _id: string;
1885
+ status: string;
1886
+ description: string;
1887
+ target: Record<string, any>;
1888
+ automationId: string;
1889
+ triggerId: string;
1890
+ triggerType: string;
1891
+ triggerConfig: Record<string, any>;
1892
+ targetId: string;
1893
+ createdAt?: string | undefined;
1894
+ createdVia?: {
1895
+ sourceId: string;
1896
+ source: string;
1897
+ sourceName?: string | undefined;
1898
+ runId?: string | undefined;
1899
+ actorId?: string | undefined;
1900
+ } | undefined;
1901
+ nextActionId?: string | undefined;
1902
+ modifiedAt?: string | undefined;
1903
+ actions?: {
1904
+ actionType: string;
1905
+ actionId: string;
1906
+ durationMs?: number | undefined;
1907
+ jobId?: string | undefined;
1908
+ createdAt?: string | undefined;
1909
+ result?: any;
1910
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1911
+ nextActionId?: string | undefined;
1912
+ startedAt?: string | undefined;
1913
+ finishedAt?: string | undefined;
1914
+ actionConfig?: any;
1915
+ skipReason?: string | undefined;
1916
+ attempt?: number | undefined;
1917
+ queuedAt?: string | Date | undefined;
1918
+ expiresAt?: string | Date | undefined;
1919
+ }[] | undefined;
1920
+ startWaitingDate?: Date | undefined;
1921
+ waitingActionId?: string | undefined;
1922
+ objToCheck?: Record<string, any> | undefined;
1923
+ responseActionId?: string | undefined;
1924
+ }, {
1925
+ _id: string;
1926
+ status: string;
1927
+ description: string;
1928
+ target: Record<string, any>;
1929
+ automationId: string;
1930
+ triggerId: string;
1931
+ triggerType: string;
1932
+ targetId: string;
1933
+ createdAt?: string | undefined;
1934
+ createdVia?: {
1935
+ sourceId: string;
1936
+ source: string;
1937
+ sourceName?: string | undefined;
1938
+ runId?: string | undefined;
1939
+ actorId?: string | undefined;
1940
+ } | undefined;
1941
+ nextActionId?: string | undefined;
1942
+ modifiedAt?: string | undefined;
1943
+ triggerConfig?: Record<string, any> | undefined;
1944
+ actions?: {
1945
+ actionType: string;
1946
+ actionId: string;
1947
+ durationMs?: number | undefined;
1948
+ jobId?: string | undefined;
1949
+ createdAt?: string | undefined;
1950
+ result?: any;
1951
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
1952
+ nextActionId?: string | undefined;
1953
+ startedAt?: string | undefined;
1954
+ finishedAt?: string | undefined;
1955
+ actionConfig?: any;
1956
+ skipReason?: string | undefined;
1957
+ attempt?: number | undefined;
1958
+ queuedAt?: string | Date | undefined;
1959
+ expiresAt?: string | Date | undefined;
1960
+ }[] | undefined;
1961
+ startWaitingDate?: Date | undefined;
1962
+ waitingActionId?: string | undefined;
1963
+ objToCheck?: Record<string, any> | undefined;
1964
+ responseActionId?: string | undefined;
1965
+ }>;
1966
+ collectionType: z.ZodString;
1967
+ }, "strip", z.ZodTypeAny, {
1968
+ moduleName: string;
1969
+ action: {
1970
+ type: string;
1971
+ id: string;
1972
+ config?: any;
1973
+ description?: string | undefined;
1974
+ icon?: string | undefined;
1975
+ label?: string | undefined;
1976
+ nextActionId?: string | undefined;
1977
+ style?: any;
1978
+ workflowId?: string | undefined;
1979
+ targetActionId?: string | undefined;
1980
+ };
1981
+ actionType: string;
1982
+ triggerType: string;
1983
+ execution: {
1984
+ _id: string;
1985
+ status: string;
1986
+ description: string;
1987
+ target: Record<string, any>;
1988
+ automationId: string;
1989
+ triggerId: string;
1990
+ triggerType: string;
1991
+ triggerConfig: Record<string, any>;
1992
+ targetId: string;
1993
+ createdAt?: string | undefined;
1994
+ createdVia?: {
1995
+ sourceId: string;
1996
+ source: string;
1997
+ sourceName?: string | undefined;
1998
+ runId?: string | undefined;
1999
+ actorId?: string | undefined;
2000
+ } | undefined;
2001
+ nextActionId?: string | undefined;
2002
+ modifiedAt?: string | undefined;
2003
+ actions?: {
2004
+ actionType: string;
2005
+ actionId: string;
2006
+ durationMs?: number | undefined;
2007
+ jobId?: string | undefined;
2008
+ createdAt?: string | undefined;
2009
+ result?: any;
2010
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
2011
+ nextActionId?: string | undefined;
2012
+ startedAt?: string | undefined;
2013
+ finishedAt?: string | undefined;
2014
+ actionConfig?: any;
2015
+ skipReason?: string | undefined;
2016
+ attempt?: number | undefined;
2017
+ queuedAt?: string | Date | undefined;
2018
+ expiresAt?: string | Date | undefined;
2019
+ }[] | undefined;
2020
+ startWaitingDate?: Date | undefined;
2021
+ waitingActionId?: string | undefined;
2022
+ objToCheck?: Record<string, any> | undefined;
2023
+ responseActionId?: string | undefined;
2024
+ };
2025
+ collectionType: string;
2026
+ targetType: string;
2027
+ }, {
2028
+ moduleName: string;
2029
+ action: {
2030
+ type: string;
2031
+ id: string;
2032
+ config?: any;
2033
+ description?: string | undefined;
2034
+ icon?: string | undefined;
2035
+ label?: string | undefined;
2036
+ nextActionId?: string | undefined;
2037
+ style?: any;
2038
+ workflowId?: string | undefined;
2039
+ targetActionId?: string | undefined;
2040
+ };
2041
+ actionType: string;
2042
+ triggerType: string;
2043
+ execution: {
2044
+ _id: string;
2045
+ status: string;
2046
+ description: string;
2047
+ target: Record<string, any>;
2048
+ automationId: string;
2049
+ triggerId: string;
2050
+ triggerType: string;
2051
+ targetId: string;
2052
+ createdAt?: string | undefined;
2053
+ createdVia?: {
2054
+ sourceId: string;
2055
+ source: string;
2056
+ sourceName?: string | undefined;
2057
+ runId?: string | undefined;
2058
+ actorId?: string | undefined;
2059
+ } | undefined;
2060
+ nextActionId?: string | undefined;
2061
+ modifiedAt?: string | undefined;
2062
+ triggerConfig?: Record<string, any> | undefined;
2063
+ actions?: {
2064
+ actionType: string;
2065
+ actionId: string;
2066
+ durationMs?: number | undefined;
2067
+ jobId?: string | undefined;
2068
+ createdAt?: string | undefined;
2069
+ result?: any;
2070
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
2071
+ nextActionId?: string | undefined;
2072
+ startedAt?: string | undefined;
2073
+ finishedAt?: string | undefined;
2074
+ actionConfig?: any;
2075
+ skipReason?: string | undefined;
2076
+ attempt?: number | undefined;
2077
+ queuedAt?: string | Date | undefined;
2078
+ expiresAt?: string | Date | undefined;
2079
+ }[] | undefined;
2080
+ startWaitingDate?: Date | undefined;
2081
+ waitingActionId?: string | undefined;
2082
+ objToCheck?: Record<string, any> | undefined;
2083
+ responseActionId?: string | undefined;
2084
+ };
2085
+ collectionType: string;
2086
+ targetType: string;
2087
+ }>;
2088
+ }>, "strip", z.ZodTypeAny, {
2089
+ data: {
2090
+ moduleName: string;
2091
+ action: {
2092
+ type: string;
2093
+ id: string;
2094
+ config?: any;
2095
+ description?: string | undefined;
2096
+ icon?: string | undefined;
2097
+ label?: string | undefined;
2098
+ nextActionId?: string | undefined;
2099
+ style?: any;
2100
+ workflowId?: string | undefined;
2101
+ targetActionId?: string | undefined;
2102
+ };
2103
+ actionType: string;
2104
+ triggerType: string;
2105
+ execution: {
2106
+ _id: string;
2107
+ status: string;
2108
+ description: string;
2109
+ target: Record<string, any>;
2110
+ automationId: string;
2111
+ triggerId: string;
2112
+ triggerType: string;
2113
+ triggerConfig: Record<string, any>;
2114
+ targetId: string;
2115
+ createdAt?: string | undefined;
2116
+ createdVia?: {
2117
+ sourceId: string;
2118
+ source: string;
2119
+ sourceName?: string | undefined;
2120
+ runId?: string | undefined;
2121
+ actorId?: string | undefined;
2122
+ } | undefined;
2123
+ nextActionId?: string | undefined;
2124
+ modifiedAt?: string | undefined;
2125
+ actions?: {
2126
+ actionType: string;
2127
+ actionId: string;
2128
+ durationMs?: number | undefined;
2129
+ jobId?: string | undefined;
2130
+ createdAt?: string | undefined;
2131
+ result?: any;
2132
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
2133
+ nextActionId?: string | undefined;
2134
+ startedAt?: string | undefined;
2135
+ finishedAt?: string | undefined;
2136
+ actionConfig?: any;
2137
+ skipReason?: string | undefined;
2138
+ attempt?: number | undefined;
2139
+ queuedAt?: string | Date | undefined;
2140
+ expiresAt?: string | Date | undefined;
2141
+ }[] | undefined;
2142
+ startWaitingDate?: Date | undefined;
2143
+ waitingActionId?: string | undefined;
2144
+ objToCheck?: Record<string, any> | undefined;
2145
+ responseActionId?: string | undefined;
2146
+ };
2147
+ collectionType: string;
2148
+ targetType: string;
2149
+ };
2150
+ subdomain: string;
2151
+ }, {
2152
+ data: {
2153
+ moduleName: string;
2154
+ action: {
2155
+ type: string;
2156
+ id: string;
2157
+ config?: any;
2158
+ description?: string | undefined;
2159
+ icon?: string | undefined;
2160
+ label?: string | undefined;
2161
+ nextActionId?: string | undefined;
2162
+ style?: any;
2163
+ workflowId?: string | undefined;
2164
+ targetActionId?: string | undefined;
2165
+ };
2166
+ actionType: string;
2167
+ triggerType: string;
2168
+ execution: {
2169
+ _id: string;
2170
+ status: string;
2171
+ description: string;
2172
+ target: Record<string, any>;
2173
+ automationId: string;
2174
+ triggerId: string;
2175
+ triggerType: string;
2176
+ targetId: string;
2177
+ createdAt?: string | undefined;
2178
+ createdVia?: {
2179
+ sourceId: string;
2180
+ source: string;
2181
+ sourceName?: string | undefined;
2182
+ runId?: string | undefined;
2183
+ actorId?: string | undefined;
2184
+ } | undefined;
2185
+ nextActionId?: string | undefined;
2186
+ modifiedAt?: string | undefined;
2187
+ triggerConfig?: Record<string, any> | undefined;
2188
+ actions?: {
2189
+ actionType: string;
2190
+ actionId: string;
2191
+ durationMs?: number | undefined;
2192
+ jobId?: string | undefined;
2193
+ createdAt?: string | undefined;
2194
+ result?: any;
2195
+ status?: "success" | "waiting" | "error" | "standby" | "skipped" | "queued" | "dropped" | undefined;
2196
+ nextActionId?: string | undefined;
2197
+ startedAt?: string | undefined;
2198
+ finishedAt?: string | undefined;
2199
+ actionConfig?: any;
2200
+ skipReason?: string | undefined;
2201
+ attempt?: number | undefined;
2202
+ queuedAt?: string | Date | undefined;
2203
+ expiresAt?: string | Date | undefined;
2204
+ }[] | undefined;
2205
+ startWaitingDate?: Date | undefined;
2206
+ waitingActionId?: string | undefined;
2207
+ objToCheck?: Record<string, any> | undefined;
2208
+ responseActionId?: string | undefined;
2209
+ };
2210
+ collectionType: string;
2211
+ targetType: string;
2212
+ };
2213
+ subdomain: string;
2214
+ }>;
2215
+ export declare const GenerateAiContextInput: z.ZodObject<z.objectUtil.extendShape<{
2216
+ subdomain: z.ZodString;
2217
+ data: z.ZodOptional<z.ZodAny>;
2218
+ }, {
2219
+ data: z.ZodObject<{
2220
+ moduleName: z.ZodString;
2221
+ collectionType: z.ZodOptional<z.ZodString>;
2222
+ triggerType: z.ZodString;
2223
+ target: z.ZodRecord<z.ZodString, z.ZodAny>;
2224
+ }, "strip", z.ZodTypeAny, {
2225
+ moduleName: string;
2226
+ target: Record<string, any>;
2227
+ triggerType: string;
2228
+ collectionType?: string | undefined;
2229
+ }, {
2230
+ moduleName: string;
2231
+ target: Record<string, any>;
2232
+ triggerType: string;
2233
+ collectionType?: string | undefined;
2234
+ }>;
2235
+ }>, "strip", z.ZodTypeAny, {
2236
+ data: {
2237
+ moduleName: string;
2238
+ target: Record<string, any>;
2239
+ triggerType: string;
2240
+ collectionType?: string | undefined;
2241
+ };
2242
+ subdomain: string;
2243
+ }, {
2244
+ data: {
2245
+ moduleName: string;
2246
+ target: Record<string, any>;
2247
+ triggerType: string;
2248
+ collectionType?: string | undefined;
2249
+ };
2250
+ subdomain: string;
2251
+ }>;
2252
+ export declare const LoadAiKnowledgeDocumentBatchInput: z.ZodObject<z.objectUtil.extendShape<{
2253
+ subdomain: z.ZodString;
2254
+ data: z.ZodOptional<z.ZodAny>;
2255
+ }, {
2256
+ data: z.ZodObject<{
2257
+ moduleName: z.ZodString;
2258
+ sourceKey: z.ZodString;
2259
+ scope: z.ZodOptional<z.ZodEnum<["all", "selected"]>>;
2260
+ sourceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2261
+ candidateSourceIds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
2262
+ config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2263
+ cursor: z.ZodOptional<z.ZodString>;
2264
+ limit: z.ZodOptional<z.ZodNumber>;
2265
+ skipTotalCount: z.ZodOptional<z.ZodBoolean>;
2266
+ }, "strip", z.ZodTypeAny, {
2267
+ moduleName: string;
2268
+ sourceKey: string;
2269
+ limit?: number | undefined;
2270
+ config?: Record<string, unknown> | undefined;
2271
+ cursor?: string | undefined;
2272
+ scope?: "all" | "selected" | undefined;
2273
+ sourceIds?: string[] | undefined;
2274
+ candidateSourceIds?: string[] | undefined;
2275
+ skipTotalCount?: boolean | undefined;
2276
+ }, {
2277
+ moduleName: string;
2278
+ sourceKey: string;
2279
+ limit?: number | undefined;
2280
+ config?: Record<string, unknown> | undefined;
2281
+ cursor?: string | undefined;
2282
+ scope?: "all" | "selected" | undefined;
2283
+ sourceIds?: string[] | undefined;
2284
+ candidateSourceIds?: string[] | undefined;
2285
+ skipTotalCount?: boolean | undefined;
2286
+ }>;
2287
+ }>, "strip", z.ZodTypeAny, {
2288
+ data: {
2289
+ moduleName: string;
2290
+ sourceKey: string;
2291
+ limit?: number | undefined;
2292
+ config?: Record<string, unknown> | undefined;
2293
+ cursor?: string | undefined;
2294
+ scope?: "all" | "selected" | undefined;
2295
+ sourceIds?: string[] | undefined;
2296
+ candidateSourceIds?: string[] | undefined;
2297
+ skipTotalCount?: boolean | undefined;
2298
+ };
2299
+ subdomain: string;
2300
+ }, {
2301
+ data: {
2302
+ moduleName: string;
2303
+ sourceKey: string;
2304
+ limit?: number | undefined;
2305
+ config?: Record<string, unknown> | undefined;
2306
+ cursor?: string | undefined;
2307
+ scope?: "all" | "selected" | undefined;
2308
+ sourceIds?: string[] | undefined;
2309
+ candidateSourceIds?: string[] | undefined;
2310
+ skipTotalCount?: boolean | undefined;
2311
+ };
2312
+ subdomain: string;
2313
+ }>;
2314
+ export declare const LookupAiToolInput: z.ZodObject<z.objectUtil.extendShape<{
2315
+ subdomain: z.ZodString;
2316
+ data: z.ZodOptional<z.ZodAny>;
2317
+ }, {
2318
+ data: z.ZodObject<{
2319
+ moduleName: z.ZodString;
2320
+ toolKey: z.ZodString;
2321
+ query: z.ZodDefault<z.ZodString>;
2322
+ limit: z.ZodOptional<z.ZodNumber>;
2323
+ filters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2324
+ }, "strip", z.ZodTypeAny, {
2325
+ query: string;
2326
+ moduleName: string;
2327
+ toolKey: string;
2328
+ limit?: number | undefined;
2329
+ filters?: Record<string, unknown> | undefined;
2330
+ }, {
2331
+ moduleName: string;
2332
+ toolKey: string;
2333
+ limit?: number | undefined;
2334
+ query?: string | undefined;
2335
+ filters?: Record<string, unknown> | undefined;
2336
+ }>;
2337
+ }>, "strip", z.ZodTypeAny, {
2338
+ data: {
2339
+ query: string;
2340
+ moduleName: string;
2341
+ toolKey: string;
2342
+ limit?: number | undefined;
2343
+ filters?: Record<string, unknown> | undefined;
2344
+ };
2345
+ subdomain: string;
2346
+ }, {
2347
+ data: {
2348
+ moduleName: string;
2349
+ toolKey: string;
2350
+ limit?: number | undefined;
2351
+ query?: string | undefined;
2352
+ filters?: Record<string, unknown> | undefined;
2353
+ };
2354
+ subdomain: string;
2355
+ }>;
2356
+ export type TAutomationProducersInput = {
2357
+ [TAutomationProducers.RECEIVE_ACTIONS]: z.infer<typeof ReceiveActionsInputData>;
2358
+ [TAutomationProducers.CHECK_CUSTOM_TRIGGER]: z.infer<typeof CheckCustomTriggerInputData>;
2359
+ [TAutomationProducers.FIND_OBJECT]: z.infer<typeof FindObjectInputData>;
2360
+ [TAutomationProducers.RESOLVE_OUTPUT_PATHS]: z.infer<typeof ResolveOutputPathsInputData>;
2361
+ [TAutomationProducers.SET_PROPERTIES]: z.infer<typeof SetPropertiesInputData>;
2362
+ [TAutomationProducers.GENERATE_AI_CONTEXT]: z.infer<typeof GenerateAiContextInputData>;
2363
+ [TAutomationProducers.LOAD_AI_KNOWLEDGE_DOCUMENT_BATCH]: z.infer<typeof LoadAiKnowledgeDocumentBatchInputData>;
2364
+ [TAutomationProducers.LOOKUP_AI_TOOL]: z.infer<typeof LookupAiToolInputData>;
2365
+ };
2366
+ //# sourceMappingURL=zodTypes.d.ts.map