weaver-e10-builder 1.0.8-beta → 1.0.9-beta

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 (261) hide show
  1. package/dist/commands/actionflow.d.ts +7 -0
  2. package/dist/commands/actionflow.d.ts.map +1 -0
  3. package/dist/commands/actionflow.js +105 -0
  4. package/dist/commands/actionflow.js.map +1 -0
  5. package/dist/commands/auth.js +1 -1
  6. package/dist/commands/auth.js.map +1 -1
  7. package/dist/commands/form-list.d.ts.map +1 -1
  8. package/dist/commands/form-list.js +18 -9
  9. package/dist/commands/form-list.js.map +1 -1
  10. package/dist/commands/form-native.d.ts +0 -14
  11. package/dist/commands/form-native.d.ts.map +1 -1
  12. package/dist/commands/form-native.js +398 -72
  13. package/dist/commands/form-native.js.map +1 -1
  14. package/dist/commands/form.d.ts.map +1 -1
  15. package/dist/commands/form.js +5 -2
  16. package/dist/commands/form.js.map +1 -1
  17. package/dist/commands/wf-form.d.ts.map +1 -1
  18. package/dist/commands/wf-form.js +49 -1
  19. package/dist/commands/wf-form.js.map +1 -1
  20. package/dist/commands/workflow-action.d.ts +11 -0
  21. package/dist/commands/workflow-action.d.ts.map +1 -1
  22. package/dist/commands/workflow-action.js +13 -1592
  23. package/dist/commands/workflow-action.js.map +1 -1
  24. package/dist/commands/workflow-create-workflow.d.ts.map +1 -1
  25. package/dist/commands/workflow-create-workflow.js +36 -5
  26. package/dist/commands/workflow-create-workflow.js.map +1 -1
  27. package/dist/core/client.d.ts +2 -0
  28. package/dist/core/client.d.ts.map +1 -1
  29. package/dist/core/client.js +2 -0
  30. package/dist/core/client.js.map +1 -1
  31. package/dist/index.js +2 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/services/actionflow/build_workflow_draft.d.ts +20 -0
  34. package/dist/services/actionflow/build_workflow_draft.d.ts.map +1 -0
  35. package/dist/services/actionflow/build_workflow_draft.js +222 -0
  36. package/dist/services/actionflow/build_workflow_draft.js.map +1 -0
  37. package/dist/services/actionflow/calendar_mapper.d.ts +3 -0
  38. package/dist/services/actionflow/calendar_mapper.d.ts.map +1 -0
  39. package/dist/services/actionflow/calendar_mapper.js +152 -0
  40. package/dist/services/actionflow/calendar_mapper.js.map +1 -0
  41. package/dist/services/actionflow/component_registry.d.ts +13 -0
  42. package/dist/services/actionflow/component_registry.d.ts.map +1 -0
  43. package/dist/services/actionflow/component_registry.js +213 -0
  44. package/dist/services/actionflow/component_registry.js.map +1 -0
  45. package/dist/services/actionflow/components/action_eb_add.d.ts +3 -0
  46. package/dist/services/actionflow/components/action_eb_add.d.ts.map +1 -0
  47. package/dist/services/actionflow/components/action_eb_add.js +127 -0
  48. package/dist/services/actionflow/components/action_eb_add.js.map +1 -0
  49. package/dist/services/actionflow/components/action_eb_add_compiler.d.ts +4 -0
  50. package/dist/services/actionflow/components/action_eb_add_compiler.d.ts.map +1 -0
  51. package/dist/services/actionflow/components/action_eb_add_compiler.js +13 -0
  52. package/dist/services/actionflow/components/action_eb_add_compiler.js.map +1 -0
  53. package/dist/services/actionflow/components/action_eb_delete.d.ts +3 -0
  54. package/dist/services/actionflow/components/action_eb_delete.d.ts.map +1 -0
  55. package/dist/services/actionflow/components/action_eb_delete.js +69 -0
  56. package/dist/services/actionflow/components/action_eb_delete.js.map +1 -0
  57. package/dist/services/actionflow/components/action_eb_delete_compiler.d.ts +4 -0
  58. package/dist/services/actionflow/components/action_eb_delete_compiler.d.ts.map +1 -0
  59. package/dist/services/actionflow/components/action_eb_delete_compiler.js +7 -0
  60. package/dist/services/actionflow/components/action_eb_delete_compiler.js.map +1 -0
  61. package/dist/services/actionflow/components/action_eb_recover.d.ts +3 -0
  62. package/dist/services/actionflow/components/action_eb_recover.d.ts.map +1 -0
  63. package/dist/services/actionflow/components/action_eb_recover.js +28 -0
  64. package/dist/services/actionflow/components/action_eb_recover.js.map +1 -0
  65. package/dist/services/actionflow/components/action_eb_recover_compiler.d.ts +3 -0
  66. package/dist/services/actionflow/components/action_eb_recover_compiler.d.ts.map +1 -0
  67. package/dist/services/actionflow/components/action_eb_recover_compiler.js +16 -0
  68. package/dist/services/actionflow/components/action_eb_recover_compiler.js.map +1 -0
  69. package/dist/services/actionflow/components/action_eb_save_version.d.ts +3 -0
  70. package/dist/services/actionflow/components/action_eb_save_version.d.ts.map +1 -0
  71. package/dist/services/actionflow/components/action_eb_save_version.js +30 -0
  72. package/dist/services/actionflow/components/action_eb_save_version.js.map +1 -0
  73. package/dist/services/actionflow/components/action_eb_save_version_compiler.d.ts +3 -0
  74. package/dist/services/actionflow/components/action_eb_save_version_compiler.d.ts.map +1 -0
  75. package/dist/services/actionflow/components/action_eb_save_version_compiler.js +15 -0
  76. package/dist/services/actionflow/components/action_eb_save_version_compiler.js.map +1 -0
  77. package/dist/services/actionflow/components/action_eb_update.d.ts +3 -0
  78. package/dist/services/actionflow/components/action_eb_update.d.ts.map +1 -0
  79. package/dist/services/actionflow/components/action_eb_update.js +154 -0
  80. package/dist/services/actionflow/components/action_eb_update.js.map +1 -0
  81. package/dist/services/actionflow/components/action_eb_update_compiler.d.ts +16 -0
  82. package/dist/services/actionflow/components/action_eb_update_compiler.d.ts.map +1 -0
  83. package/dist/services/actionflow/components/action_eb_update_compiler.js +94 -0
  84. package/dist/services/actionflow/components/action_eb_update_compiler.js.map +1 -0
  85. package/dist/services/actionflow/components/approve_create.d.ts +3 -0
  86. package/dist/services/actionflow/components/approve_create.d.ts.map +1 -0
  87. package/dist/services/actionflow/components/approve_create.js +44 -0
  88. package/dist/services/actionflow/components/approve_create.js.map +1 -0
  89. package/dist/services/actionflow/components/approve_trigger.d.ts +5 -0
  90. package/dist/services/actionflow/components/approve_trigger.d.ts.map +1 -0
  91. package/dist/services/actionflow/components/approve_trigger.js +184 -0
  92. package/dist/services/actionflow/components/approve_trigger.js.map +1 -0
  93. package/dist/services/actionflow/components/approve_trigger_compiler.d.ts +4 -0
  94. package/dist/services/actionflow/components/approve_trigger_compiler.d.ts.map +1 -0
  95. package/dist/services/actionflow/components/approve_trigger_compiler.js +20 -0
  96. package/dist/services/actionflow/components/approve_trigger_compiler.js.map +1 -0
  97. package/dist/services/actionflow/components/condition.d.ts +3 -0
  98. package/dist/services/actionflow/components/condition.d.ts.map +1 -0
  99. package/dist/services/actionflow/components/condition.js +23 -0
  100. package/dist/services/actionflow/components/condition.js.map +1 -0
  101. package/dist/services/actionflow/components/date_trigger.d.ts +5 -0
  102. package/dist/services/actionflow/components/date_trigger.d.ts.map +1 -0
  103. package/dist/services/actionflow/components/date_trigger.js +129 -0
  104. package/dist/services/actionflow/components/date_trigger.js.map +1 -0
  105. package/dist/services/actionflow/components/document_actions.d.ts +28 -0
  106. package/dist/services/actionflow/components/document_actions.d.ts.map +1 -0
  107. package/dist/services/actionflow/components/document_actions.js +266 -0
  108. package/dist/services/actionflow/components/document_actions.js.map +1 -0
  109. package/dist/services/actionflow/components/eb_get_data_by_id.d.ts +5 -0
  110. package/dist/services/actionflow/components/eb_get_data_by_id.d.ts.map +1 -0
  111. package/dist/services/actionflow/components/eb_get_data_by_id.js +44 -0
  112. package/dist/services/actionflow/components/eb_get_data_by_id.js.map +1 -0
  113. package/dist/services/actionflow/components/enquiry_form.d.ts +5 -0
  114. package/dist/services/actionflow/components/enquiry_form.d.ts.map +1 -0
  115. package/dist/services/actionflow/components/enquiry_form.js +100 -0
  116. package/dist/services/actionflow/components/enquiry_form.js.map +1 -0
  117. package/dist/services/actionflow/components/event_form_data.d.ts +3 -0
  118. package/dist/services/actionflow/components/event_form_data.d.ts.map +1 -0
  119. package/dist/services/actionflow/components/event_form_data.js +29 -0
  120. package/dist/services/actionflow/components/event_form_data.js.map +1 -0
  121. package/dist/services/actionflow/components/hrm_actions.d.ts +7 -0
  122. package/dist/services/actionflow/components/hrm_actions.d.ts.map +1 -0
  123. package/dist/services/actionflow/components/hrm_actions.js +138 -0
  124. package/dist/services/actionflow/components/hrm_actions.js.map +1 -0
  125. package/dist/services/actionflow/components/index.d.ts +32 -0
  126. package/dist/services/actionflow/components/index.d.ts.map +1 -0
  127. package/dist/services/actionflow/components/index.js +132 -0
  128. package/dist/services/actionflow/components/index.js.map +1 -0
  129. package/dist/services/actionflow/components/logic_flow_set.d.ts +10 -0
  130. package/dist/services/actionflow/components/logic_flow_set.d.ts.map +1 -0
  131. package/dist/services/actionflow/components/logic_flow_set.js +79 -0
  132. package/dist/services/actionflow/components/logic_flow_set.js.map +1 -0
  133. package/dist/services/actionflow/components/meeting_create.d.ts +5 -0
  134. package/dist/services/actionflow/components/meeting_create.d.ts.map +1 -0
  135. package/dist/services/actionflow/components/meeting_create.js +37 -0
  136. package/dist/services/actionflow/components/meeting_create.js.map +1 -0
  137. package/dist/services/actionflow/components/multiple_execution.d.ts +5 -0
  138. package/dist/services/actionflow/components/multiple_execution.d.ts.map +1 -0
  139. package/dist/services/actionflow/components/multiple_execution.js +136 -0
  140. package/dist/services/actionflow/components/multiple_execution.js.map +1 -0
  141. package/dist/services/actionflow/components/output.d.ts +9 -0
  142. package/dist/services/actionflow/components/output.d.ts.map +1 -0
  143. package/dist/services/actionflow/components/output.js +81 -0
  144. package/dist/services/actionflow/components/output.js.map +1 -0
  145. package/dist/services/actionflow/components/schedule_create.d.ts +5 -0
  146. package/dist/services/actionflow/components/schedule_create.d.ts.map +1 -0
  147. package/dist/services/actionflow/components/schedule_create.js +42 -0
  148. package/dist/services/actionflow/components/schedule_create.js.map +1 -0
  149. package/dist/services/actionflow/components/send_message.d.ts +7 -0
  150. package/dist/services/actionflow/components/send_message.d.ts.map +1 -0
  151. package/dist/services/actionflow/components/send_message.js +200 -0
  152. package/dist/services/actionflow/components/send_message.js.map +1 -0
  153. package/dist/services/actionflow/components/simple_scheduler.d.ts +5 -0
  154. package/dist/services/actionflow/components/simple_scheduler.d.ts.map +1 -0
  155. package/dist/services/actionflow/components/simple_scheduler.js +22 -0
  156. package/dist/services/actionflow/components/simple_scheduler.js.map +1 -0
  157. package/dist/services/actionflow/components/time_batch_trigger.d.ts +5 -0
  158. package/dist/services/actionflow/components/time_batch_trigger.d.ts.map +1 -0
  159. package/dist/services/actionflow/components/time_batch_trigger.js +92 -0
  160. package/dist/services/actionflow/components/time_batch_trigger.js.map +1 -0
  161. package/dist/services/actionflow/components/workflow_actions.d.ts +26 -0
  162. package/dist/services/actionflow/components/workflow_actions.d.ts.map +1 -0
  163. package/dist/services/actionflow/components/workflow_actions.js +403 -0
  164. package/dist/services/actionflow/components/workflow_actions.js.map +1 -0
  165. package/dist/services/actionflow/context_data_builder.d.ts +9 -0
  166. package/dist/services/actionflow/context_data_builder.d.ts.map +1 -0
  167. package/dist/services/actionflow/context_data_builder.js +31 -0
  168. package/dist/services/actionflow/context_data_builder.js.map +1 -0
  169. package/dist/services/actionflow/context_preflight.d.ts +6 -0
  170. package/dist/services/actionflow/context_preflight.d.ts.map +1 -0
  171. package/dist/services/actionflow/context_preflight.js +122 -0
  172. package/dist/services/actionflow/context_preflight.js.map +1 -0
  173. package/dist/services/actionflow/context_provider.d.ts +18 -0
  174. package/dist/services/actionflow/context_provider.d.ts.map +1 -0
  175. package/dist/services/actionflow/context_provider.js +102 -0
  176. package/dist/services/actionflow/context_provider.js.map +1 -0
  177. package/dist/services/actionflow/context_source.d.ts +7 -0
  178. package/dist/services/actionflow/context_source.d.ts.map +1 -0
  179. package/dist/services/actionflow/context_source.js +10 -0
  180. package/dist/services/actionflow/context_source.js.map +1 -0
  181. package/dist/services/actionflow/design_client.d.ts +48 -0
  182. package/dist/services/actionflow/design_client.d.ts.map +1 -0
  183. package/dist/services/actionflow/design_client.js +170 -0
  184. package/dist/services/actionflow/design_client.js.map +1 -0
  185. package/dist/services/actionflow/document_source.d.ts +5 -0
  186. package/dist/services/actionflow/document_source.d.ts.map +1 -0
  187. package/dist/services/actionflow/document_source.js +5 -0
  188. package/dist/services/actionflow/document_source.js.map +1 -0
  189. package/dist/services/actionflow/enrich_approve_trigger.d.ts +12 -0
  190. package/dist/services/actionflow/enrich_approve_trigger.d.ts.map +1 -0
  191. package/dist/services/actionflow/enrich_approve_trigger.js +107 -0
  192. package/dist/services/actionflow/enrich_approve_trigger.js.map +1 -0
  193. package/dist/services/actionflow/filter_rules.d.ts +14 -0
  194. package/dist/services/actionflow/filter_rules.d.ts.map +1 -0
  195. package/dist/services/actionflow/filter_rules.js +259 -0
  196. package/dist/services/actionflow/filter_rules.js.map +1 -0
  197. package/dist/services/actionflow/form_source.d.ts +17 -0
  198. package/dist/services/actionflow/form_source.d.ts.map +1 -0
  199. package/dist/services/actionflow/form_source.js +42 -0
  200. package/dist/services/actionflow/form_source.js.map +1 -0
  201. package/dist/services/actionflow/formula_service.d.ts +51 -0
  202. package/dist/services/actionflow/formula_service.d.ts.map +1 -0
  203. package/dist/services/actionflow/formula_service.js +999 -0
  204. package/dist/services/actionflow/formula_service.js.map +1 -0
  205. package/dist/services/actionflow/generation_service.d.ts +28 -0
  206. package/dist/services/actionflow/generation_service.d.ts.map +1 -0
  207. package/dist/services/actionflow/generation_service.js +283 -0
  208. package/dist/services/actionflow/generation_service.js.map +1 -0
  209. package/dist/services/actionflow/hrm_source.d.ts +4 -0
  210. package/dist/services/actionflow/hrm_source.d.ts.map +1 -0
  211. package/dist/services/actionflow/hrm_source.js +8 -0
  212. package/dist/services/actionflow/hrm_source.js.map +1 -0
  213. package/dist/services/actionflow/id_generator.d.ts +13 -0
  214. package/dist/services/actionflow/id_generator.d.ts.map +1 -0
  215. package/dist/services/actionflow/id_generator.js +33 -0
  216. package/dist/services/actionflow/id_generator.js.map +1 -0
  217. package/dist/services/actionflow/person_source.d.ts +7 -0
  218. package/dist/services/actionflow/person_source.d.ts.map +1 -0
  219. package/dist/services/actionflow/person_source.js +34 -0
  220. package/dist/services/actionflow/person_source.js.map +1 -0
  221. package/dist/services/actionflow/preflight_service.d.ts +42 -0
  222. package/dist/services/actionflow/preflight_service.d.ts.map +1 -0
  223. package/dist/services/actionflow/preflight_service.js +1247 -0
  224. package/dist/services/actionflow/preflight_service.js.map +1 -0
  225. package/dist/services/actionflow/query_field_defaults.d.ts +3 -0
  226. package/dist/services/actionflow/query_field_defaults.d.ts.map +1 -0
  227. package/dist/services/actionflow/query_field_defaults.js +46 -0
  228. package/dist/services/actionflow/query_field_defaults.js.map +1 -0
  229. package/dist/services/actionflow/readback_verifier.d.ts +11 -0
  230. package/dist/services/actionflow/readback_verifier.d.ts.map +1 -0
  231. package/dist/services/actionflow/readback_verifier.js +252 -0
  232. package/dist/services/actionflow/readback_verifier.js.map +1 -0
  233. package/dist/services/actionflow/request.d.ts +13 -0
  234. package/dist/services/actionflow/request.d.ts.map +1 -0
  235. package/dist/services/actionflow/request.js +15 -0
  236. package/dist/services/actionflow/request.js.map +1 -0
  237. package/dist/services/actionflow/runtime_metadata.d.ts +27 -0
  238. package/dist/services/actionflow/runtime_metadata.d.ts.map +1 -0
  239. package/dist/services/actionflow/runtime_metadata.js +142 -0
  240. package/dist/services/actionflow/runtime_metadata.js.map +1 -0
  241. package/dist/services/actionflow/save_workflow_draft.d.ts +34 -0
  242. package/dist/services/actionflow/save_workflow_draft.d.ts.map +1 -0
  243. package/dist/services/actionflow/save_workflow_draft.js +449 -0
  244. package/dist/services/actionflow/save_workflow_draft.js.map +1 -0
  245. package/dist/services/actionflow/system_params.d.ts +5 -0
  246. package/dist/services/actionflow/system_params.d.ts.map +1 -0
  247. package/dist/services/actionflow/system_params.js +55 -0
  248. package/dist/services/actionflow/system_params.js.map +1 -0
  249. package/dist/services/actionflow/trigger_common.d.ts +6 -0
  250. package/dist/services/actionflow/trigger_common.d.ts.map +1 -0
  251. package/dist/services/actionflow/trigger_common.js +41 -0
  252. package/dist/services/actionflow/trigger_common.js.map +1 -0
  253. package/dist/services/actionflow/workflow_compiler.d.ts +27 -0
  254. package/dist/services/actionflow/workflow_compiler.d.ts.map +1 -0
  255. package/dist/services/actionflow/workflow_compiler.js +1804 -0
  256. package/dist/services/actionflow/workflow_compiler.js.map +1 -0
  257. package/dist/services/actionflow/workflow_source.d.ts +14 -0
  258. package/dist/services/actionflow/workflow_source.d.ts.map +1 -0
  259. package/dist/services/actionflow/workflow_source.js +86 -0
  260. package/dist/services/actionflow/workflow_source.js.map +1 -0
  261. package/package.json +1 -1
@@ -0,0 +1,44 @@
1
+ import { buildFormulaReference } from './action_eb_update_compiler.js';
2
+ import { buildPersonFormula, formulaContainerString, formulaFixed } from '../formula_service.js';
3
+ import { genSfId } from '../id_generator.js';
4
+ export const EB_GET_DATA_BY_ID_COMPONENT = {
5
+ type: 'EbGetDataById', nodeRole: 'action', description: '根据数据 ID 获取指定 e-builder 表单的一条数据详情。',
6
+ display: { typeName: '获取表单数据详情', componentName: '获取表单数据详情', componentDesc: '根据数据ID获取指定e-builder应用下的表单数据', icon: 'Icon-eb-mcolor' },
7
+ params: {
8
+ targetForm: { required: true, description: '要读取的 e-builder 表单。标准格式为 groupId/id;兼容 appId/tableId。', valueType: 'platform_reference', referenceType: 'ebuilder_form', valueShape: 'object' },
9
+ dataId: { required: true, description: '要读取的数据 ID;支持 fixed 或 context 公式。', valueType: 'object' },
10
+ checkRight: { required: false, default: true, description: '是否按操作人校验数据权限。', valueType: 'boolean' },
11
+ operatorId: { required: false, description: '读取操作人;与 person 二选一。', valueType: 'platform_reference', referenceType: 'user_assignment', valueShape: 'object' },
12
+ person: { required: false, description: 'operatorId 的兼容别名。', valueType: 'platform_reference', referenceType: 'user_assignment', valueShape: 'object' },
13
+ },
14
+ paramAliases: { person: 'operatorId' },
15
+ propertySources: [
16
+ { properties: ['targetForm'], module: 'core.form_source', lookups: ['dsGroup', 'dsList'], purpose: '解析目标表单', fallback: 'real_candidate_only' },
17
+ { properties: ['operatorId', 'person'], module: 'core.person_source', lookups: ['resourceData'], purpose: '校验操作人(person 为兼容别名)', fallback: 'real_candidate_only' },
18
+ ],
19
+ dataMapping: { targetForm: '_targetForm' }, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['FormData', 'FormField', 'SettingInfo'] },
20
+ dataFields: {
21
+ targetForm: { type: 'object', required: true, subfields: ['groupName', 'groupId', 'id', 'text', 'type'] },
22
+ appId: { type: 'array', required: true }, formId: { type: 'array', required: true }, dataId: { type: 'formula<string>', required: true },
23
+ checkRight: { type: 'formula<boolean>', required: true }, operatorId: { type: 'formula<resource>', required: true },
24
+ },
25
+ };
26
+ export function ebGetDataByIdCompiler(draftParams, ctx) {
27
+ const result = ctx.compileGeneric(draftParams, 'EbGetDataById', ctx);
28
+ const operator = draftParams.operatorId ?? draftParams.person;
29
+ if (!operator || typeof operator !== 'object')
30
+ throw new Error('EbGetDataById 缺少 operatorId(或兼容别名 person)');
31
+ if (draftParams.dataId === undefined || draftParams.dataId === null || draftParams.dataId === '')
32
+ throw new Error('EbGetDataById 缺少 dataId');
33
+ result.appId = result.appType;
34
+ result.formId = result.tableType;
35
+ // AssignWrapper 保存的是 type=8 容器 + 子 FormulaBean;直接写子公式会导致编辑器无法回显。
36
+ result.dataId = formulaContainerString([buildFormulaReference(draftParams.dataId, { meta: ctx.meta, appId: ctx.appId, eventId: ctx.eventNodeId, componentType: 'EbGetDataById' })], '', ctx.appId);
37
+ result.checkRight = formulaContainerString([formulaFixed(draftParams.checkRight ?? true, 'boolean')], '', ctx.appId);
38
+ const operatorChild = buildPersonFormula(operator, ctx.meta, ctx.appId, false, true);
39
+ result.operatorId = operatorChild.type === '8' ? operatorChild : formulaContainerString([operatorChild], '', ctx.appId);
40
+ result.id = String(draftParams.id ?? genSfId());
41
+ result.type = 'EbGetDataById';
42
+ return result;
43
+ }
44
+ //# sourceMappingURL=eb_get_data_by_id.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eb_get_data_by_id.js","sourceRoot":"","sources":["../../../../src/services/actionflow/components/eb_get_data_by_id.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,qBAAqB,EAAE,MAAM,gCAAgC,CAAC;AACvE,OAAO,EAAE,kBAAkB,EAAE,sBAAsB,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACjG,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB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AAC"}
@@ -0,0 +1,5 @@
1
+ /** 查询表单数据 (EnquiryForm)。 */
2
+ import type { CompilerContext } from './index.js';
3
+ export declare const ENQUIRY_FORM_COMPONENT: Record<string, any>;
4
+ export declare function enquiryFormCompiler(draftParams: Record<string, any>, ctx: CompilerContext): Record<string, any>;
5
+ //# sourceMappingURL=enquiry_form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enquiry_form.d.ts","sourceRoot":"","sources":["../../../../src/services/actionflow/components/enquiry_form.ts"],"names":[],"mappings":"AAAA,4BAA4B;AAC5B,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAKlD,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAyCtD,CAAC;AAEF,wBAAgB,mBAAmB,CAAC,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAwD/G"}
@@ -0,0 +1,100 @@
1
+ import { buildPersonFormula } from '../formula_service.js';
2
+ import { genSfId } from '../id_generator.js';
3
+ import { defaultQueryFieldsAll } from '../query_field_defaults.js';
4
+ export const ENQUIRY_FORM_COMPONENT = {
5
+ type: 'EnquiryForm',
6
+ nodeRole: 'action',
7
+ description: '查询 e-builder 表单数据(列表查询/分组统计)。',
8
+ display: { typeName: '查询表单数据', componentName: '查询表单数据', componentDesc: '查询指定表单的数据', icon: 'Icon-eb-mcolor' },
9
+ params: {
10
+ dataSource: { required: true, description: '要查询的数据源(表单)。标准格式为 groupId/id。', valueType: 'platform_reference', referenceType: 'ebuilder_form', valueShape: 'object' },
11
+ person: { required: true, description: '操作人。plan 传 {"id":"<人员id>","name":"<姓名>"}。', valueType: 'platform_reference', referenceType: 'user_assignment', valueShape: 'object' },
12
+ filter: { required: false, description: '查询筛选条件:支持单条条件或 {relationship,conditions} 嵌套条件树。', valueType: 'object', valueShape: 'object' },
13
+ queryFields: { required: false, description: '查询输出字段;未提供或传空数组时默认全选(含数据ID等系统字段)。仅在需求明确限制输出时传字段列表。', valueType: 'array', valueShape: 'array' },
14
+ opType: { required: false, default: 'list', description: '查询类型。', valueType: 'string' },
15
+ countFlag: { required: false, description: '是否统计数量。', valueType: 'boolean' },
16
+ nodataFlag: { required: false, description: '无数据是否报错。', valueType: 'boolean' },
17
+ authorityFlag: { required: false, description: '权限标志。', valueType: 'string' },
18
+ parseMark: { required: false, description: '是否解析标记。', valueType: 'boolean' },
19
+ orderFields: { required: false, description: '排序字段。', valueType: 'array', valueShape: 'array' },
20
+ formPageNo: { required: false, description: '分页页码。', valueType: 'string' },
21
+ formPageSize: { required: false, description: '分页大小。', valueType: 'string' },
22
+ groupFields: { required: false, description: '分组字段。', valueType: 'array', valueShape: 'array' },
23
+ groupMessage: { required: false, description: '分组消息。', valueType: 'string' },
24
+ },
25
+ propertySources: [
26
+ { properties: ['dataSource', 'filter', 'queryFields', 'orderFields', 'groupFields'], module: 'core.form_source', lookups: ['dsGroup', 'dsList', 'getEbField'], purpose: '解析查询表单并校验筛选、输出、排序和分组字段', fallback: 'real_candidate_only' },
27
+ { properties: ['person'], module: 'core.person_source', lookups: ['resourceData'], purpose: '解析查询操作人 Browser 对象', fallback: 'real_candidate_only' },
28
+ ],
29
+ dataMapping: {
30
+ dataSource: '_enquiryDataSource', person: '_person', filter: '_enquiryFilter', queryFields: 'queryFields',
31
+ opType: 'opType', countFlag: 'countFlag', nodataFlag: 'nodataFlag', authorityFlag: 'authorityFlag',
32
+ parseMark: 'parseMark', orderFields: 'orderFields', formPageNo: 'formPageNo', formPageSize: 'formPageSize',
33
+ groupFields: 'groupFields', groupMessage: 'groupMessage', workflowModule: 'workflowModule', workflowId: 'workflowId',
34
+ },
35
+ defaultData: { opType: 'list', countFlag: false, nodataFlag: true, parseMark: true, authorityFlag: '0' },
36
+ defaultPerson: { type: 'role', direct: true },
37
+ runtimeContext: { inputs: ['FormData'], outputs: ['FormData', 'FormField', 'SettingInfo', 'accessId', 'monitorId'] },
38
+ dataFields: {
39
+ dataSource: { type: 'object', required: true, subfields: ['sourceId', 'groupId', 'id', 'text', 'type', 'enquiryId'] },
40
+ filterInput: { type: 'object', required: true, subfields: ['isNewFilter', 'isParent', 'datas'] },
41
+ queryFields: { type: 'array', required: false, subfields: ['formId', 'id', 'content'] },
42
+ person: { type: 'object', required: true, platformRef: 'user_assignment' },
43
+ opType: { type: 'string', required: true, default: 'list', options: ['list', 'groupFields'] },
44
+ },
45
+ };
46
+ export function enquiryFormCompiler(draftParams, ctx) {
47
+ const meta = ctx.meta || {};
48
+ const appId = ctx.appId;
49
+ const result = {};
50
+ const dataSource = draftParams.dataSource && typeof draftParams.dataSource === 'object' ? draftParams.dataSource : {};
51
+ const sourceId = String(dataSource.id || dataSource.tableId || dataSource.sourceId || '');
52
+ const sourceText = String(dataSource.text || dataSource.name || '');
53
+ const groupId = String(dataSource.groupId ?? dataSource.appId ?? '-98');
54
+ const sourceType = String(dataSource.type || 'FORM');
55
+ const opType = String(dataSource.opType || draftParams.opType || 'list');
56
+ result.dataSource = {
57
+ sourceId, isPhysical: true, peratorId: String(dataSource.peratorId ?? ''), authorityFlag: dataSource.authorityFlag ?? '0',
58
+ groupId, opType, type: sourceType, id: sourceId, enquiryId: String(draftParams.enquiryId ?? '-1'),
59
+ text: sourceText, usage: String(dataSource.usage ?? ''), objType: String(dataSource.objType ?? ''),
60
+ module: String(dataSource.module ?? ''), appId: String(dataSource.appId ?? groupId),
61
+ ebuilderDataConfig: { dataSetup: { dataSource: 'ALL', dataPermission: 'HAVE_PERMISSION_DATA' }, type: sourceType },
62
+ };
63
+ if (!ctx.buildFilterInput)
64
+ throw new Error('EnquiryForm 的筛选条件需要 filter_builder');
65
+ const filterInput = ctx.buildFilterInput(result, draftParams.filter || [], meta, appId, 'EnquiryForm');
66
+ result.filterInput = filterInput;
67
+ result.dataSource.opText = JSON.stringify(filterInput);
68
+ const requestedQueryFields = Array.isArray(draftParams.queryFields) && draftParams.queryFields.length > 0
69
+ ? draftParams.queryFields
70
+ : defaultQueryFieldsAll(sourceId);
71
+ result.queryFields = [];
72
+ for (const field of requestedQueryFields) {
73
+ if (field && typeof field === 'object' && field.id) {
74
+ result.queryFields.push({ formId: String(field.formId ?? sourceId), parseMark: Boolean(field.parseMark ?? false), id: String(field.id), content: String(field.content ?? field.id) });
75
+ }
76
+ }
77
+ const person = draftParams.person;
78
+ if (person && typeof person === 'object')
79
+ result.person = buildPersonFormula(person, meta, appId, false, true);
80
+ else
81
+ result.person = buildPersonFormula({ type: 'user', id: '', name: '' }, meta, appId, false, true);
82
+ result.opType = String(draftParams.opType ?? 'list');
83
+ result.countFlag = Boolean(draftParams.countFlag ?? false);
84
+ result.nodataFlag = Boolean(draftParams.nodataFlag ?? true);
85
+ result.parseMark = Boolean(draftParams.parseMark ?? true);
86
+ result.authorityFlag = String(draftParams.authorityFlag ?? '0');
87
+ result.id = genSfId();
88
+ for (const key of ['orderFields', 'formPageNo', 'formPageSize', 'groupFields', 'groupMessage']) {
89
+ const value = draftParams[key];
90
+ if (value !== undefined && value !== null && value !== '' && !(Array.isArray(value) && value.length === 0)) {
91
+ result[key] = JSON.parse(JSON.stringify(value));
92
+ }
93
+ }
94
+ if (appId) {
95
+ result.currentApplication = appId;
96
+ result.applicationId = appId;
97
+ }
98
+ return result;
99
+ }
100
+ //# sourceMappingURL=enquiry_form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enquiry_form.js","sourceRoot":"","sources":["../../../../src/services/actionflow/components/enquiry_form.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAEnE,MAAM,CAAC,MAAM,sBAAsB,GAAwB;IACzD,IAAI,EAAE,aAAa;IACnB,QAAQ,EAAE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,EAAE,cAAc,CAAC,EAAE,CAAC;QAC/F,MAAM,KAAK,GAAG,WAAW,CAAC,GAAG,CAAC,CAAC;QAC/B,IAAI,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,KAAK,EAAE,IAAI,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,EAAE,CAAC;YAC3G,MAAM,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;IACD,IAAI,KAAK,EAAE,CAAC;QACV,MAAM,CAAC,kBAAkB,GAAG,KAAK,CAAC;QAClC,MAAM,CAAC,aAAa,GAAG,KAAK,CAAC;IAC/B,CAAC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** 表单数据触发 (EventFormData)。 */
2
+ export declare const EVENT_FORM_DATA_COMPONENT: Record<string, any>;
3
+ //# sourceMappingURL=event_form_data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event_form_data.d.ts","sourceRoot":"","sources":["../../../../src/services/actionflow/components/event_form_data.ts"],"names":[],"mappings":"AAAA,8BAA8B;AAC9B,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CA0BzD,CAAC"}
@@ -0,0 +1,29 @@
1
+ /** 表单数据触发 (EventFormData)。 */
2
+ export const EVENT_FORM_DATA_COMPONENT = {
3
+ type: 'EventFormData',
4
+ nodeRole: 'event',
5
+ description: 'e-builder 表单数据新增/更新/删除后自动触发动作流。',
6
+ display: { typeName: '表单数据触发', componentName: '表单数据触发', componentDesc: '表单数据变动后触发动作流', icon: 'Icon-eb-mcolor' },
7
+ params: {
8
+ targetForm: { required: true, description: '要监听数据变动的 e-builder 表单。标准格式为 groupId/id。', valueType: 'platform_reference', referenceType: 'ebuilder_form', valueShape: 'object' },
9
+ triggerTimes: { required: true, description: '触发时机:数组或单个值,枚举 afterAdd/afterUpdate/afterDelete/fieldDataChange(兼容别名 afterCreate/afterSubmit→afterAdd 等,编译器归一化)。', valueType: 'array', valueShape: 'any' },
10
+ triggerType: { required: false, default: 'sequence', description: 'sequence=依次/merge=合并/parallel=并行。', valueType: 'enum', options: [{ value: 'sequence', label: '依次触发' }, { value: 'merge', label: '合并触发' }, { value: 'parallel', label: '并行触发' }] },
11
+ changeFields: { required: false, description: '仅 fieldDataChange 时必填:监听的字段 ID 数组。', valueType: 'array', valueShape: 'array' },
12
+ filter: { required: false, description: '触发条件(可选):仅满足条件的数据变动才触发。', valueType: 'object', valueShape: 'object' },
13
+ },
14
+ propertySources: [{ properties: ['dataSource', 'triggerFields'], module: 'core.form_source', lookups: ['dsGroup', 'dsList', 'getEbField'], purpose: '解析触发表单和字段', fallback: 'real_candidate_only' }],
15
+ dataMapping: { targetForm: '_targetForm', triggerTimes: 'triggerTimes', triggerType: 'triggerType', changeFields: 'changeFields', filter: '_filterInput' },
16
+ defaultData: { triggerType: 'sequence', ebActionId: '-1' },
17
+ nodeDataDefaults: { type: 'EventFormData', ebActionId: '-1' },
18
+ filterValueScope: 'local',
19
+ runtimeContext: { inputs: [], outputs: ['FormData', 'FormField', 'SettingInfo', 'accessId', 'monitorId'] },
20
+ dataFields: {
21
+ targetForm: { type: 'object', required: true, subfields: ['groupName', 'groupId', 'id', 'text', 'type'] },
22
+ triggerTimes: { type: 'array', required: true },
23
+ triggerType: { type: 'string', required: false, default: 'sequence', options: ['sequence', 'merge', 'parallel'] },
24
+ changeFields: { type: 'array', required: false },
25
+ ebActionId: { type: 'int|str', required: true, platformRef: 'actionConfig' },
26
+ type: { type: 'string', required: true, default: 'EventFormData' },
27
+ },
28
+ };
29
+ //# sourceMappingURL=event_form_data.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event_form_data.js","sourceRoot":"","sources":["../../../../src/services/actionfl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E,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,OAAO,EAAE,eAAe,EAAE;KACnE;CACF,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { CompilerContext } from './index.js';
2
+ export declare const ALTER_PERSON_STATUS_COMPONENT: Record<string, any>;
3
+ export declare const PERSONNEL_ONBOARDING_COMPONENT: Record<string, any>;
4
+ export declare const HRM_EMPLOYEE_UPDATE_COMPONENT: Record<string, any>;
5
+ export declare const hrmActionComponents: Record<string, any>[];
6
+ export declare function hrmActionCompiler(type: string, draft: Record<string, any>, ctx: CompilerContext): Record<string, any>;
7
+ //# sourceMappingURL=hrm_actions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hrm_actions.d.ts","sourceRoot":"","sources":["../../../../src/services/actionflow/components/hrm_actions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAiElD,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAU7D,CAAC;AAEF,eAAO,MAAM,8BAA8B,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAS9D,CAAC;AAEF,eAAO,MAAM,6BAA6B,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAU7D,CAAC;AAEF,eAAO,MAAM,mBAAmB,uBAAiG,CAAC;AAElI,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAAE,GAAG,EAAE,eAAe,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CA0BrH"}
@@ -0,0 +1,138 @@
1
+ import { buildPersonFormula, buildSettingEntry, formulaFixedForAssignSwitch } from '../formula_service.js';
2
+ import { genSfId } from '../id_generator.js';
3
+ const personSource = [{
4
+ properties: ['operators', 'personList', 'person'], module: 'core.person_source', lookups: ['resourceData'],
5
+ purpose: '解析当前租户人员 Browser 原对象', fallback: 'real_candidate_only',
6
+ }];
7
+ function fixedPerson(value, ctx, field, multiple = false) {
8
+ if (value && typeof value === 'object' && String(value.type ?? '') === '1' && !value.kind)
9
+ return { ...value };
10
+ const values = Array.isArray(value) ? value : [value];
11
+ if ((!multiple && values.length !== 1) || !values.length || values.some((item) => !item || typeof item !== 'object' || !(item.id ?? item.value) || !(item.name ?? item.text ?? item.label))) {
12
+ throw new Error(`${field} 仅接受当前租户人员 Browser 原对象${multiple ? '数组' : ''};该组件前端不支持动态赋值或手输 ID`);
13
+ }
14
+ if (!multiple)
15
+ return buildPersonFormula(values[0], ctx.meta, ctx.appId, false, true);
16
+ const ids = values.map((item) => String(item.id ?? item.value));
17
+ const bean = formulaFixedForAssignSwitch(ids.join(','));
18
+ bean.applicationId = ctx.appId;
19
+ bean.name = values.map((item) => String(item.name ?? item.text ?? item.label)).join(',');
20
+ bean.config = { originValue: values, switchType: 'fixvalue', formulaVersion: 'V1' };
21
+ return bean;
22
+ }
23
+ const personParam = (description, multiple = false) => ({ required: true, description, valueType: 'platform_reference', referenceType: multiple ? 'user_assignment[]' : 'user_assignment', valueShape: multiple ? 'array' : 'object' });
24
+ const assignmentsParam = (description) => ({ required: true, description, valueType: 'object', valueShape: 'object', itemSchema: { requiredKeys: ['main'] } });
25
+ function findField(fields, key, scope) {
26
+ const matches = fields.filter((field) => String(field.id || '') === key || String(field.showName || field.name || '') === key);
27
+ if (matches.length !== 1)
28
+ throw new Error(`${scope} 字段 '${key}' ${matches.length ? '存在重名,必须传字段 ID' : '不在当前租户字段定义中'}`);
29
+ return matches[0];
30
+ }
31
+ function buildAssignments(assignments, schema, ctx, type) {
32
+ if (!assignments || typeof assignments !== 'object' || Array.isArray(assignments))
33
+ throw new Error(`${type}.fieldAssignments 必须是对象,至少包含 main`);
34
+ const mainInput = assignments.main;
35
+ if (!mainInput || typeof mainInput !== 'object' || Array.isArray(mainInput) || !Object.keys(mainInput).length)
36
+ throw new Error(`${type}.fieldAssignments.main 至少配置一个当前租户字段`);
37
+ const fields = Array.isArray(schema?.main) ? schema.main : [];
38
+ if (!fields.length)
39
+ throw new Error(`${type} 未取得当前租户人员字段定义,不能编译 fieldAssignments`);
40
+ const main = {};
41
+ for (const [key, value] of Object.entries(mainInput)) {
42
+ const field = findField(fields, String(key), `${type}.fieldAssignments.main`);
43
+ main[String(field.id)] = buildSettingEntry(String(field.id), value, String(field.componentKey || field.type || 'Text'), ctx.meta, ctx.appId, ctx.eventNodeId, 'OPERATE_EQUAL', type);
44
+ }
45
+ const detail = [];
46
+ if (assignments.detail !== undefined) {
47
+ if (!Array.isArray(assignments.detail))
48
+ throw new Error(`${type}.fieldAssignments.detail 必须是数组`);
49
+ for (const item of assignments.detail) {
50
+ if (!item || typeof item !== 'object')
51
+ throw new Error(`${type}.fieldAssignments.detail 每项必须是对象`);
52
+ const tableKey = String(item.tableId ?? item.table ?? item.tableName ?? '');
53
+ const table = (schema.detail || []).filter((candidate) => String(candidate.detailTableId || '') === tableKey || String(candidate.tableName || '') === tableKey);
54
+ if (table.length !== 1)
55
+ throw new Error(`${type}.fieldAssignments.detail 表 '${tableKey}' ${table.length ? '存在重名,必须传 tableId' : '不在当前租户字段定义中'}`);
56
+ const values = item.fields ?? item.assignments;
57
+ if (!values || typeof values !== 'object' || Array.isArray(values) || !Object.keys(values).length)
58
+ throw new Error(`${type}.fieldAssignments.detail[${tableKey}].fields 至少配置一个字段`);
59
+ const data = {};
60
+ for (const [key, value] of Object.entries(values)) {
61
+ const field = findField(table[0].fields || [], String(key), `${type}.fieldAssignments.detail[${tableKey}]`);
62
+ data[String(field.id)] = buildSettingEntry(String(field.id), value, String(field.componentKey || field.type || 'Text'), ctx.meta, ctx.appId, ctx.eventNodeId, 'OPERATE_EQUAL', type, true);
63
+ }
64
+ detail.push({ detailTableId: String(table[0].detailTableId), data });
65
+ }
66
+ }
67
+ return { main, detail };
68
+ }
69
+ export const ALTER_PERSON_STATUS_COMPONENT = {
70
+ type: 'AlterPersonStatus', nodeRole: 'action', description: '更新人员状态(在职或离职)。',
71
+ display: { typeName: '人员状态变更', componentName: '人员状态变更', componentDesc: '更新人员状态', icon: 'Icon-HRM' },
72
+ params: {
73
+ personList: personParam('待变更人员,必须是当前租户人员 Browser 原对象数组。', true),
74
+ userStatus: { required: true, description: '目标人员状态。', valueType: 'enum', options: [{ value: '1', label: '在职' }, { value: '2', label: '离职' }] },
75
+ operators: personParam('操作人,必须是当前租户人员 Browser 原对象。'),
76
+ },
77
+ propertySources: personSource, dataMapping: {}, defaultData: { userStatus: '1' }, runtimeContext: { inputs: ['FormData'], outputs: ['Response.entry[].personId', 'Response.entry[].result'] },
78
+ dataFields: { personList: { type: 'formula<resource[]>', required: true }, userStatus: { type: 'string', required: true }, operators: { type: 'formula<resource>', required: true } },
79
+ };
80
+ export const PERSONNEL_ONBOARDING_COMPONENT = {
81
+ type: 'PersonnelOnboarding', nodeRole: 'action', description: '新增人员到系统。',
82
+ display: { typeName: '人员入职', componentName: '人员入职', componentDesc: '新增人员到系统', icon: 'Icon-HRM' },
83
+ params: {
84
+ operators: personParam('操作人,必须是当前租户人员 Browser 原对象。'),
85
+ fieldAssignments: assignmentsParam('人员入职字段赋值。格式:{"main":{"姓名":"张三","部门":<真实 Browser 对象>},"detail":[{"table":"教育经历","fields":{"学校名称":"…"}}]};字段名或 ID 均可,重名时必须用 ID。'),
86
+ },
87
+ propertySources: [...personSource, { properties: ['fieldAssignments'], module: 'component.hrm_source', lookups: ['getHrmOnboardingFields'], purpose: '读取当前租户人员入职字段并编译 fieldAssignments', fallback: 'reject' }], dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['Response.entry.personId', 'Response.entry.result'] },
88
+ dataFields: { operators: { type: 'formula<resource>', required: true }, setting: { type: 'EsbFormDataDto', required: true } },
89
+ };
90
+ export const HRM_EMPLOYEE_UPDATE_COMPONENT = {
91
+ type: 'HrmEmployeeUpdate', nodeRole: 'action', description: '更新人员信息。',
92
+ display: { typeName: '更新人员', componentName: '更新人员', componentDesc: '更新人员信息', icon: 'Icon-HRM' },
93
+ params: {
94
+ operators: personParam('操作人,必须是当前租户人员 Browser 原对象。'),
95
+ person: personParam('待更新人员,必须是当前租户人员 Browser 原对象。'),
96
+ fieldAssignments: assignmentsParam('人员信息字段赋值。格式同 PersonnelOnboarding.fieldAssignments;字段名或 ID 均可,重名时必须用 ID。'),
97
+ },
98
+ propertySources: [...personSource, { properties: ['fieldAssignments'], module: 'component.hrm_source', lookups: ['getHrmOnboardingFields'], purpose: '读取当前租户人员字段并编译 fieldAssignments', fallback: 'reject' }], dataMapping: {}, defaultData: {}, runtimeContext: { inputs: ['FormData'], outputs: ['Response.entry.result'] },
99
+ dataFields: { operators: { type: 'formula<resource>', required: true }, person: { type: 'formula<resource>', required: true }, setting: { type: 'EsbFormDataDto', required: true } },
100
+ };
101
+ export const hrmActionComponents = [ALTER_PERSON_STATUS_COMPONENT, PERSONNEL_ONBOARDING_COMPONENT, HRM_EMPLOYEE_UPDATE_COMPONENT];
102
+ export function hrmActionCompiler(type, draft, ctx) {
103
+ const require = (key) => { if (draft[key] === undefined || draft[key] === null || draft[key] === '')
104
+ throw new Error(`${type}.${key} 为必填项,不能省略或伪造`); };
105
+ const result = ctx.compileGeneric(draft, type, ctx);
106
+ if (type === 'AlterPersonStatus') {
107
+ require('personList');
108
+ require('operators');
109
+ const status = String(draft.userStatus ?? '1');
110
+ if (!['1', '2'].includes(status))
111
+ throw new Error('AlterPersonStatus.userStatus 仅支持 1(在职)或 2(离职)');
112
+ result.personList = fixedPerson(draft.personList, ctx, 'AlterPersonStatus.personList', true);
113
+ result.operators = fixedPerson(draft.operators, ctx, 'AlterPersonStatus.operators');
114
+ result.userStatus = status;
115
+ }
116
+ if (type === 'PersonnelOnboarding') {
117
+ require('operators');
118
+ require('fieldAssignments');
119
+ result.operators = fixedPerson(draft.operators, ctx, 'PersonnelOnboarding.operators');
120
+ result.setting = buildAssignments(draft.fieldAssignments, draft._hrmFieldSchema, ctx, type);
121
+ delete result.fieldAssignments;
122
+ delete result._hrmFieldSchema;
123
+ }
124
+ if (type === 'HrmEmployeeUpdate') {
125
+ require('operators');
126
+ require('person');
127
+ require('fieldAssignments');
128
+ result.operators = fixedPerson(draft.operators, ctx, 'HrmEmployeeUpdate.operators');
129
+ result.person = fixedPerson(draft.person, ctx, 'HrmEmployeeUpdate.person');
130
+ result.setting = buildAssignments(draft.fieldAssignments, draft._hrmFieldSchema, ctx, type);
131
+ delete result.fieldAssignments;
132
+ delete result._hrmFieldSchema;
133
+ }
134
+ result.id ??= String(draft.id ?? genSfId());
135
+ result.type = type;
136
+ return result;
137
+ }
138
+ //# sourceMappingURL=hrm_actions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hrm_actions.js","sourceRoot":"","sources":["../../../../src/services/actionflow/components/hrm_actions.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAC;AAC3G,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAE7C,MAAM,YAAY,GAAG,CAAC;QACpB,UAAU,EAAE,CAAC,WAAW,EAAE,YAAY,EAAE,QAAQ,CAAC,EAAE,MAAM,EAAE,oBAAoB,EAAE,OAAO,EAAE,CAAC,cAAc,CAAC;QAC1G,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,qBAAqB;KACjE,CAAC,CAAC;AAEH,SAAS,WAAW,CAAC,KAAU,EAAE,GAAoB,EAAE,KAAa,EAAE,QAAQ,GAAG,KAAK;IACpF,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,IAAI,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI;QAAE,OAAO,EAAE,GAAG,KAAK,EAAE,CAAC;IAC/G,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,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C,EAAE,KAAK,MAAM,CAAC,KAAK,CAAC,EAAE,IAAI,OAAO,EAAE,CAAC,CAAC;IAAC,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;IAChE,OAAO,MAAM,CAAC;AAChB,CAAC"}
@@ -0,0 +1,32 @@
1
+ /**
2
+ * 组件注册中心 — 显式注册 scripts/components/ 下所有组件包。
3
+ * 对齐 Python 版 components/__init__.py(黄金参照),但用显式注册替代自动发现。
4
+ */
5
+ export interface CompilerContext {
6
+ meta: Record<string, any>;
7
+ appId: string;
8
+ actionIndex: number;
9
+ eventNodeId: string;
10
+ eventName: string;
11
+ lenient: boolean;
12
+ /** 通用映射(compileComponentData 的 _skip_component_compiler=True 分支),由 workflow_compiler 注入。 */
13
+ compileGeneric: (draftParams: Record<string, any>, componentType: string, ctx: CompilerContext) => Record<string, any>;
14
+ /** 筛选条件树转换(_build_filter_input),由 workflow_compiler 注入,避免循环依赖。 */
15
+ buildFilterInput?: (result: Record<string, any>, val: any, meta: Record<string, any>, appId: string, componentType: string) => Record<string, any>;
16
+ /** 条件设计 DTO 构造,供循环等非分支节点复用平台条件保存协议。 */
17
+ buildConditionDetail?: (condition: Record<string, any>, sourceId: string, meta: Record<string, any> | null) => Record<string, any>;
18
+ }
19
+ export type CompilerFn = (draftParams: Record<string, any>, ctx: CompilerContext) => Record<string, any>;
20
+ export type NodePostFn = (node: Record<string, any>, ctx: {
21
+ draftAction: Record<string, any>;
22
+ meta: Record<string, any>;
23
+ appId: string;
24
+ eventNodeId: string;
25
+ isEvent: boolean;
26
+ }) => Record<string, any>;
27
+ export declare function get(ctype: string): Record<string, any> | undefined;
28
+ export declare function getAll(): Record<string, Record<string, any>>;
29
+ export declare function getCompiler(ctype: string): CompilerFn | undefined;
30
+ export declare function getNodePost(ctype: string): NodePostFn | undefined;
31
+ export declare function listTypes(nodeRole?: string): string[];
32
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":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AAE,GAAG,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,KAAK,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AA+GxM,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,CAElE;AAED,wBAAgB,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAE5D;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAEjE;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,UAAU,GAAG,SAAS,CAEjE;AAED,wBAAgB,SAAS,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAKrD"}
@@ -0,0 +1,132 @@
1
+ /**
2
+ * 组件注册中心 — 显式注册 scripts/components/ 下所有组件包。
3
+ * 对齐 Python 版 components/__init__.py(黄金参照),但用显式注册替代自动发现。
4
+ */
5
+ import { OUTPUT_COMPONENT, outputPostNode } from './output.js';
6
+ import { CONDITION_COMPONENT } from './condition.js';
7
+ import { ACTION_EB_DELETE_COMPONENT } from './action_eb_delete.js';
8
+ import { ACTION_EB_RECOVER_COMPONENT } from './action_eb_recover.js';
9
+ import { ACTION_EB_SAVE_VERSION_COMPONENT } from './action_eb_save_version.js';
10
+ import { EB_GET_DATA_BY_ID_COMPONENT, ebGetDataByIdCompiler } from './eb_get_data_by_id.js';
11
+ import { ACTION_EB_ADD_COMPONENT } from './action_eb_add.js';
12
+ import { ACTION_EB_UPDATE_COMPONENT } from './action_eb_update.js';
13
+ import { APPROVE_TRIGGER_COMPONENT } from './approve_trigger.js';
14
+ import { SIMPLE_SCHEDULER_COMPONENT, simpleSchedulerCompiler } from './simple_scheduler.js';
15
+ import { DATE_TRIGGER_COMPONENT, dateTriggerCompiler } from './date_trigger.js';
16
+ import { TIME_BATCH_TRIGGER_COMPONENT, timeBatchTriggerCompiler } from './time_batch_trigger.js';
17
+ import { EVENT_FORM_DATA_COMPONENT } from './event_form_data.js';
18
+ import { APPROVE_CREATE_COMPONENT } from './approve_create.js';
19
+ import { APPROVE_SAVE_COMPONENT, APPROVE_MANDATORY_ARCHIVING_COMPONENT, APPROVE_COMMIT_COMPONENT, APPROVE_DELETE_COMPONENT, APPROVE_DO_CIRCULATE_COMPONENT, APPROVE_DO_FORWARD_COMPONENT, APPROVE_DO_TURN_TODO_COMPONENT, APPROVE_CONSUL_TURN_TODO_COMPONENT, APPROVE_MANUAL_CC_COMPONENT, APPROVE_ADD_SIGN_COMPONENT, APPROVE_AGREE_REJECT_APPLY_COMPONENT, APPROVE_REFUSE_REJECT_APPLY_COMPONENT, APPROVE_REJECT_APPLY_COMPONENT, APPROVE_WITHDRAW_COMPONENT, APPROVE_SHARE_ENTRY_COMPONENT, APPROVE_SEND_BACK_COMPONENT, APPROVE_COMPLETELY_DELETE_COMPONENT, WORKFLOW_TO_DOC_COMPONENT, APPROVE_ENTRUST_COMPONENT, APPROVE_INTERVENTION_COMPONENT, WORKFLOW_DOC_EMPOWERMENT_COMPONENT, workflowCompilers } from './workflow_actions.js';
20
+ import { ENQUIRY_FORM_COMPONENT, enquiryFormCompiler } from './enquiry_form.js';
21
+ import { SEND_MESSAGE_COMPONENT, sendMessageCompiler, sendMessagePostNode } from './send_message.js';
22
+ import { MEETING_CREATE_COMPONENT, meetingCreateCompiler } from './meeting_create.js';
23
+ import { SCHEDULE_CREATE_COMPONENT, scheduleCreateCompiler } from './schedule_create.js';
24
+ import { MULTIPLE_EXECUTION_COMPONENT, multipleExecutionCompiler } from './multiple_execution.js';
25
+ import { LOGIC_FLOW_SET_COMPONENT, logicFlowSetCompiler, logicFlowSetPostNode } from './logic_flow_set.js';
26
+ import { documentActionComponents, documentActionCompiler } from './document_actions.js';
27
+ import { hrmActionComponents, hrmActionCompiler } from './hrm_actions.js';
28
+ // 组件编译器(延迟绑定 compileGeneric,避免循环依赖)
29
+ import { actionEbAddCompiler } from './action_eb_add_compiler.js';
30
+ import { actionEbUpdateCompiler } from './action_eb_update_compiler.js';
31
+ import { actionEbDeleteCompiler } from './action_eb_delete_compiler.js';
32
+ import { actionEbRecoverCompiler } from './action_eb_recover_compiler.js';
33
+ import { actionEbSaveVersionCompiler } from './action_eb_save_version_compiler.js';
34
+ import { approveTriggerCompiler } from './approve_trigger_compiler.js';
35
+ const COMPONENTS = new Map();
36
+ const COMPILERS = new Map();
37
+ const NODE_POSTS = new Map();
38
+ function registerComponent(comp) {
39
+ const ctype = comp.type;
40
+ if (!ctype || typeof ctype !== 'string')
41
+ return;
42
+ COMPONENTS.set(ctype, comp);
43
+ }
44
+ registerComponent(OUTPUT_COMPONENT);
45
+ registerComponent(CONDITION_COMPONENT);
46
+ registerComponent(ACTION_EB_DELETE_COMPONENT);
47
+ registerComponent(ACTION_EB_RECOVER_COMPONENT);
48
+ registerComponent(ACTION_EB_SAVE_VERSION_COMPONENT);
49
+ registerComponent(EB_GET_DATA_BY_ID_COMPONENT);
50
+ registerComponent(ACTION_EB_ADD_COMPONENT);
51
+ registerComponent(ACTION_EB_UPDATE_COMPONENT);
52
+ registerComponent(APPROVE_TRIGGER_COMPONENT);
53
+ registerComponent(SIMPLE_SCHEDULER_COMPONENT);
54
+ registerComponent(DATE_TRIGGER_COMPONENT);
55
+ registerComponent(TIME_BATCH_TRIGGER_COMPONENT);
56
+ registerComponent(EVENT_FORM_DATA_COMPONENT);
57
+ registerComponent(APPROVE_CREATE_COMPONENT);
58
+ registerComponent(APPROVE_SAVE_COMPONENT);
59
+ registerComponent(APPROVE_MANDATORY_ARCHIVING_COMPONENT);
60
+ registerComponent(APPROVE_COMMIT_COMPONENT);
61
+ registerComponent(APPROVE_DELETE_COMPONENT);
62
+ registerComponent(APPROVE_DO_CIRCULATE_COMPONENT);
63
+ registerComponent(APPROVE_DO_FORWARD_COMPONENT);
64
+ registerComponent(APPROVE_DO_TURN_TODO_COMPONENT);
65
+ registerComponent(APPROVE_CONSUL_TURN_TODO_COMPONENT);
66
+ registerComponent(APPROVE_MANUAL_CC_COMPONENT);
67
+ registerComponent(APPROVE_ADD_SIGN_COMPONENT);
68
+ registerComponent(APPROVE_AGREE_REJECT_APPLY_COMPONENT);
69
+ registerComponent(APPROVE_REFUSE_REJECT_APPLY_COMPONENT);
70
+ registerComponent(APPROVE_REJECT_APPLY_COMPONENT);
71
+ registerComponent(APPROVE_WITHDRAW_COMPONENT);
72
+ registerComponent(APPROVE_SHARE_ENTRY_COMPONENT);
73
+ registerComponent(APPROVE_SEND_BACK_COMPONENT);
74
+ registerComponent(APPROVE_COMPLETELY_DELETE_COMPONENT);
75
+ registerComponent(WORKFLOW_TO_DOC_COMPONENT);
76
+ registerComponent(APPROVE_ENTRUST_COMPONENT);
77
+ registerComponent(APPROVE_INTERVENTION_COMPONENT);
78
+ registerComponent(WORKFLOW_DOC_EMPOWERMENT_COMPONENT);
79
+ registerComponent(ENQUIRY_FORM_COMPONENT);
80
+ registerComponent(SEND_MESSAGE_COMPONENT);
81
+ registerComponent(MEETING_CREATE_COMPONENT);
82
+ registerComponent(SCHEDULE_CREATE_COMPONENT);
83
+ registerComponent(MULTIPLE_EXECUTION_COMPONENT);
84
+ registerComponent(LOGIC_FLOW_SET_COMPONENT);
85
+ for (const component of documentActionComponents)
86
+ registerComponent(component);
87
+ for (const component of hrmActionComponents)
88
+ registerComponent(component);
89
+ COMPILERS.set('ActionEbAdd', actionEbAddCompiler);
90
+ COMPILERS.set('ActionEbUpdate', actionEbUpdateCompiler);
91
+ COMPILERS.set('ActionEbDelete', actionEbDeleteCompiler);
92
+ COMPILERS.set('ActionEbRecover', actionEbRecoverCompiler);
93
+ COMPILERS.set('ActionEbSaveVersion', actionEbSaveVersionCompiler);
94
+ COMPILERS.set('EbGetDataById', ebGetDataByIdCompiler);
95
+ COMPILERS.set('SimpleScheduler', simpleSchedulerCompiler);
96
+ COMPILERS.set('DateTrigger', dateTriggerCompiler);
97
+ COMPILERS.set('TimeBatchTrigger', timeBatchTriggerCompiler);
98
+ COMPILERS.set('EnquiryForm', enquiryFormCompiler);
99
+ COMPILERS.set('SendMessage', sendMessageCompiler);
100
+ COMPILERS.set('MeetingCreate', meetingCreateCompiler);
101
+ COMPILERS.set('ScheduleCreate', scheduleCreateCompiler);
102
+ COMPILERS.set('ApproveTrigger', approveTriggerCompiler);
103
+ for (const [type, compiler] of Object.entries(workflowCompilers))
104
+ COMPILERS.set(type, compiler);
105
+ COMPILERS.set('MultipleExecution', multipleExecutionCompiler);
106
+ COMPILERS.set('LogicFlowSet', logicFlowSetCompiler);
107
+ for (const component of documentActionComponents)
108
+ COMPILERS.set(component.type, (draft, ctx) => documentActionCompiler(component.type, draft, ctx));
109
+ for (const component of hrmActionComponents)
110
+ COMPILERS.set(component.type, (draft, ctx) => hrmActionCompiler(component.type, draft, ctx));
111
+ NODE_POSTS.set('LogicFlowSet', logicFlowSetPostNode);
112
+ NODE_POSTS.set('SendMessage', sendMessagePostNode);
113
+ NODE_POSTS.set('Output', outputPostNode);
114
+ export function get(ctype) {
115
+ return COMPONENTS.get(ctype);
116
+ }
117
+ export function getAll() {
118
+ return Object.fromEntries(COMPONENTS);
119
+ }
120
+ export function getCompiler(ctype) {
121
+ return COMPILERS.get(ctype);
122
+ }
123
+ export function getNodePost(ctype) {
124
+ return NODE_POSTS.get(ctype);
125
+ }
126
+ export function listTypes(nodeRole) {
127
+ if (nodeRole) {
128
+ return [...COMPONENTS.entries()].filter(([, c]) => c.nodeRole === nodeRole).map(([t]) => t);
129
+ }
130
+ return [...COMPONENTS.keys()];
131
+ }
132
+ //# sourceMappingURL=index.js.map
@@ -0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