@share-crm/sharedev-cli 0.0.4-rc.19 → 0.0.4-rc.20
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.
- package/dist/sharedev.js +1645 -530
- package/package.json +1 -1
package/dist/sharedev.js
CHANGED
|
@@ -8509,9 +8509,9 @@ function registerAgentScheduleNamespace(program, runtimeContext) {
|
|
|
8509
8509
|
agentScheduleDef
|
|
8510
8510
|
.command('enable')
|
|
8511
8511
|
.description('Agent 定时任务启用/停用')
|
|
8512
|
-
.option('--context <context>', '
|
|
8513
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
8514
|
-
.option('--enable <enable>', '
|
|
8512
|
+
.option('--context <context>', '请求上下文')
|
|
8513
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
8514
|
+
.option('--enable <enable>', '是否启用')
|
|
8515
8515
|
.action((0, command_ts_1.createCommandAction)('agent-schedule def', 'enable', runtimeContext, async ({ options, context }) => {
|
|
8516
8516
|
await (0, agent_schedule_def_command_ts_1.agentScheduleDefEnableCommand)(context, options);
|
|
8517
8517
|
}));
|
|
@@ -8528,8 +8528,8 @@ function registerAgentScheduleNamespace(program, runtimeContext) {
|
|
|
8528
8528
|
agentScheduleDef
|
|
8529
8529
|
.command('create')
|
|
8530
8530
|
.description('Agent 定时任务创建')
|
|
8531
|
-
.option('--type <type>', '
|
|
8532
|
-
.option('--quartzRule <quartzRule>', '
|
|
8531
|
+
.option('--type <type>', '类型标识')
|
|
8532
|
+
.option('--quartzRule <quartzRule>', 'quartz审批规则JSON')
|
|
8533
8533
|
.option('--executions <executions>', 'executions')
|
|
8534
8534
|
.action((0, command_ts_1.createCommandAction)('agent-schedule def', 'create', runtimeContext, async ({ options, context }) => {
|
|
8535
8535
|
await (0, agent_schedule_def_command_ts_1.agentScheduleDefCreateCommand)(context, options);
|
|
@@ -8543,24 +8543,24 @@ function registerAgentScheduleNamespace(program, runtimeContext) {
|
|
|
8543
8543
|
.option('--tenantId <tenantId>', '企业id')
|
|
8544
8544
|
.option('--appId <appId>', '业务标示 CRM')
|
|
8545
8545
|
.option('--type <type>', '类型 STAGE')
|
|
8546
|
-
.option('--name <name>', '
|
|
8546
|
+
.option('--name <name>', '阶段推进器定义名称')
|
|
8547
8547
|
.option('--description <description>', '阶段推进器定义描述')
|
|
8548
8548
|
.option('--stageFieldApiName <stageFieldApiName>', '对象阶段字段的apiName')
|
|
8549
8549
|
.option('--rangeCircleIds <rangeCircleIds>', '部门范围id')
|
|
8550
|
-
.option('--rangeEmployeeIds <rangeEmployeeIds>', '
|
|
8551
|
-
.option('--rangeGroupIds <rangeGroupIds>', '
|
|
8552
|
-
.option('--rangeRoleIds <rangeRoleIds>', '
|
|
8553
|
-
.option('--entityId <entityId>', '
|
|
8550
|
+
.option('--rangeEmployeeIds <rangeEmployeeIds>', '可见人员ID范围')
|
|
8551
|
+
.option('--rangeGroupIds <rangeGroupIds>', '可见用户组ID范围')
|
|
8552
|
+
.option('--rangeRoleIds <rangeRoleIds>', '可见角色ID范围')
|
|
8553
|
+
.option('--entityId <entityId>', '业务对象ID')
|
|
8554
8554
|
.option('--entityName <entityName>', '对象名称')
|
|
8555
|
-
.option('--activities <activities>', '
|
|
8556
|
-
.option('--variables <variables>', '
|
|
8557
|
-
.option('--transitions <transitions>', '
|
|
8558
|
-
.option('--createTime <createTime>', '
|
|
8559
|
-
.option('--modifyTime <modifyTime>', '
|
|
8555
|
+
.option('--activities <activities>', '阶段活动节点定义')
|
|
8556
|
+
.option('--variables <variables>', '阶段变量定义')
|
|
8557
|
+
.option('--transitions <transitions>', '阶段流转规则定义')
|
|
8558
|
+
.option('--createTime <createTime>', '创建时间')
|
|
8559
|
+
.option('--modifyTime <modifyTime>', '最后修改时间')
|
|
8560
8560
|
.option('--enable <enable>', '是否启用')
|
|
8561
|
-
.option('--delete <delete>', '
|
|
8562
|
-
.option('--creator <creator>', '
|
|
8563
|
-
.option('--modifier <modifier>', '
|
|
8561
|
+
.option('--delete <delete>', '删除标记')
|
|
8562
|
+
.option('--creator <creator>', '创建人信息')
|
|
8563
|
+
.option('--modifier <modifier>', '最后修改人信息')
|
|
8564
8564
|
.option('--priority <priority>', '优先级')
|
|
8565
8565
|
.option('--rule <rule>', 'Rule相关')
|
|
8566
8566
|
.option('--linkAppEnable <linkAppEnable>', '是否启用互联')
|
|
@@ -8584,8 +8584,8 @@ function registerAgentScheduleNamespace(program, runtimeContext) {
|
|
|
8584
8584
|
agentScheduleDef
|
|
8585
8585
|
.command('delete')
|
|
8586
8586
|
.description('Agent 定时任务删除')
|
|
8587
|
-
.option('--context <context>', '
|
|
8588
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
8587
|
+
.option('--context <context>', '请求上下文')
|
|
8588
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
8589
8589
|
.action((0, command_ts_1.createCommandAction)('agent-schedule def', 'delete', runtimeContext, async ({ options, context }) => {
|
|
8590
8590
|
await (0, agent_schedule_def_command_ts_1.agentScheduleDefDeleteCommand)(context, options);
|
|
8591
8591
|
}));
|
|
@@ -8713,11 +8713,11 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8713
8713
|
approvalDef
|
|
8714
8714
|
.command('deploy')
|
|
8715
8715
|
.description('审批流定义部署')
|
|
8716
|
-
.requiredOption('--workflow <workflow>', '
|
|
8717
|
-
.requiredOption('--rule <rule>', '
|
|
8718
|
-
.requiredOption('--execution <execution>', '
|
|
8719
|
-
.option('--updateHistory <updateHistory>', '
|
|
8720
|
-
.option('--updateType <updateType>', '
|
|
8716
|
+
.requiredOption('--workflow <workflow>', '流程定义的JSON结构')
|
|
8717
|
+
.requiredOption('--rule <rule>', '触发规则配置')
|
|
8718
|
+
.requiredOption('--execution <execution>', '执行策略配置')
|
|
8719
|
+
.option('--updateHistory <updateHistory>', '是否同时更新修改历史记录')
|
|
8720
|
+
.option('--updateType <updateType>', '更新操作的类型')
|
|
8721
8721
|
.action((0, command_ts_1.createCommandAction)('approval def', 'deploy', runtimeContext, async ({ options, context }) => {
|
|
8722
8722
|
await (0, approval_def_command_ts_1.approvalDefDeployCommand)(context, options);
|
|
8723
8723
|
}));
|
|
@@ -8726,7 +8726,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8726
8726
|
.command('detail')
|
|
8727
8727
|
.description('审批流定义详情查询')
|
|
8728
8728
|
.option('--workflowId <workflowId>', '流程定义版本ID')
|
|
8729
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
8729
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '审批流关联的源流程定义ID')
|
|
8730
8730
|
.action((0, command_ts_1.createCommandAction)('approval def', 'detail', runtimeContext, async ({ options, context }) => {
|
|
8731
8731
|
await (0, approval_def_command_ts_1.approvalDefDetailCommand)(context, options);
|
|
8732
8732
|
}));
|
|
@@ -8743,7 +8743,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8743
8743
|
approvalDef
|
|
8744
8744
|
.command('delete')
|
|
8745
8745
|
.description('审批流定义删除')
|
|
8746
|
-
.requiredOption('--sourceWorkflowIds <sourceWorkflowIds>', '
|
|
8746
|
+
.requiredOption('--sourceWorkflowIds <sourceWorkflowIds>', '源流程定义ID列表')
|
|
8747
8747
|
.action((0, command_ts_1.createCommandAction)('approval def', 'delete', runtimeContext, async ({ options, context }) => {
|
|
8748
8748
|
await (0, approval_def_command_ts_1.approvalDefDeleteCommand)(context, options);
|
|
8749
8749
|
}));
|
|
@@ -8751,11 +8751,11 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8751
8751
|
approvalDef
|
|
8752
8752
|
.command('logs')
|
|
8753
8753
|
.description('审批流程定义修改记录查询')
|
|
8754
|
-
.option('--pageSize <pageSize>', '
|
|
8755
|
-
.option('--pageNumber <pageNumber>', '
|
|
8756
|
-
.option('--orderBy <orderBy>', '
|
|
8757
|
-
.option('--asc <asc>', '
|
|
8758
|
-
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '
|
|
8754
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
8755
|
+
.option('--pageNumber <pageNumber>', '页码,从1开始')
|
|
8756
|
+
.option('--orderBy <orderBy>', '排序字段名称')
|
|
8757
|
+
.option('--asc <asc>', '是否升序排列,true升序,false(默认)降序')
|
|
8758
|
+
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '需要操作的工作流定义唯一标识')
|
|
8759
8759
|
.action((0, command_ts_1.createCommandAction)('approval def', 'logs', runtimeContext, async ({ options, context }) => {
|
|
8760
8760
|
await (0, approval_def_command_ts_1.approvalDefLogsCommand)(context, options);
|
|
8761
8761
|
}));
|
|
@@ -8763,12 +8763,12 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8763
8763
|
approvalDef
|
|
8764
8764
|
.command('add-free-config')
|
|
8765
8765
|
.description('自由审批对象配置新增')
|
|
8766
|
-
.requiredOption('--entityId <entityId>', '
|
|
8767
|
-
.option('--triggerTypes <triggerTypes>', '
|
|
8768
|
-
.option('--remind <remind>', '
|
|
8769
|
-
.option('--dataLockType <dataLockType>', '
|
|
8770
|
-
.option('--completedLockType <completedLockType>', '
|
|
8771
|
-
.option('--defaultDef <defaultDef>', '
|
|
8766
|
+
.requiredOption('--entityId <entityId>', '审批流关联的业务对象ID')
|
|
8767
|
+
.option('--triggerTypes <triggerTypes>', '触发类型列表')
|
|
8768
|
+
.option('--remind <remind>', '审批催办提醒的配置信息')
|
|
8769
|
+
.option('--dataLockType <dataLockType>', '数据锁定类型')
|
|
8770
|
+
.option('--completedLockType <completedLockType>', '完成后的锁定类型')
|
|
8771
|
+
.option('--defaultDef <defaultDef>', '标记该审批流配置是否为默认配置')
|
|
8772
8772
|
.action((0, command_ts_1.createCommandAction)('approval def', 'add-free-config', runtimeContext, async ({ options, context }) => {
|
|
8773
8773
|
await (0, approval_def_command_ts_1.approvalDefAddFreeConfigCommand)(context, options);
|
|
8774
8774
|
}));
|
|
@@ -8776,9 +8776,9 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8776
8776
|
approvalDef
|
|
8777
8777
|
.command('get-approval-config-list')
|
|
8778
8778
|
.description('审批类型列表查询')
|
|
8779
|
-
.option('--entityId <entityId>', '
|
|
8780
|
-
.option('--flowType <flowType>', '
|
|
8781
|
-
.option('--useGroupManager <useGroupManager>', '
|
|
8779
|
+
.option('--entityId <entityId>', '审批流关联的业务对象ID')
|
|
8780
|
+
.option('--flowType <flowType>', '审批流类型标识,free_approvalflow为自由审批流,approvalflow为标准审批流')
|
|
8781
|
+
.option('--useGroupManager <useGroupManager>', '是否使用部门负责人')
|
|
8782
8782
|
.action((0, command_ts_1.createCommandAction)('approval def', 'get-approval-config-list', runtimeContext, async ({ options, context }) => {
|
|
8783
8783
|
await (0, approval_def_command_ts_1.approvalDefGetApprovalConfigListCommand)(context, options);
|
|
8784
8784
|
}));
|
|
@@ -8786,8 +8786,8 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8786
8786
|
approvalDef
|
|
8787
8787
|
.command('candidate-editable-check')
|
|
8788
8788
|
.description('审批候选人编辑校验')
|
|
8789
|
-
.requiredOption('--entityId <entityId>', '
|
|
8790
|
-
.requiredOption('--triggerTypes <triggerTypes>', '
|
|
8789
|
+
.requiredOption('--entityId <entityId>', '审批流关联的业务对象ID')
|
|
8790
|
+
.requiredOption('--triggerTypes <triggerTypes>', '触发类型列表')
|
|
8791
8791
|
.action((0, command_ts_1.createCommandAction)('approval def', 'candidate-editable-check', runtimeContext, async ({ options, context }) => {
|
|
8792
8792
|
await (0, approval_def_command_ts_1.approvalDefCandidateEditableCheckCommand)(context, options);
|
|
8793
8793
|
}));
|
|
@@ -8795,7 +8795,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8795
8795
|
approvalDef
|
|
8796
8796
|
.command('delete-free-config')
|
|
8797
8797
|
.description('自由审批配置删除')
|
|
8798
|
-
.requiredOption('--id <id>', 'ID')
|
|
8798
|
+
.requiredOption('--id <id>', '记录唯一标识ID')
|
|
8799
8799
|
.action((0, command_ts_1.createCommandAction)('approval def', 'delete-free-config', runtimeContext, async ({ options, context }) => {
|
|
8800
8800
|
await (0, approval_def_command_ts_1.approvalDefDeleteFreeConfigCommand)(context, options);
|
|
8801
8801
|
}));
|
|
@@ -8803,13 +8803,13 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8803
8803
|
approvalDef
|
|
8804
8804
|
.command('list')
|
|
8805
8805
|
.description('审批定义列表查询')
|
|
8806
|
-
.option('--pageSize <pageSize>', '
|
|
8807
|
-
.option('--pageNumber <pageNumber>', '
|
|
8808
|
-
.option('--orderBy <orderBy>', '
|
|
8809
|
-
.option('--asc <asc>', '
|
|
8806
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
8807
|
+
.option('--pageNumber <pageNumber>', '页码,从1开始')
|
|
8808
|
+
.option('--orderBy <orderBy>', '排序字段名称')
|
|
8809
|
+
.option('--asc <asc>', '是否升序排列,true升序,false(默认)降序')
|
|
8810
8810
|
.option('--entityId <entityId>', 'entityId非必填')
|
|
8811
|
-
.option('--workflowName <workflowName>', '
|
|
8812
|
-
.option('--status <status>', '
|
|
8811
|
+
.option('--workflowName <workflowName>', '流程定义的名称')
|
|
8812
|
+
.option('--status <status>', '审批流定义或实例的状态')
|
|
8813
8813
|
.option('--from <from>', '请求来源:manageGroup——请求来自分管小组,不受分管小组不受分管小组约束,null——受分管小组约束 /')
|
|
8814
8814
|
.option('--linkApp <linkApp>', '880新增:应用标识 /')
|
|
8815
8815
|
.option('--triggerTypes <triggerTypes>', '880新增:触发类型 /')
|
|
@@ -8823,7 +8823,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8823
8823
|
approvalDef
|
|
8824
8824
|
.command('switch-flow-type')
|
|
8825
8825
|
.description('审批流类型切换')
|
|
8826
|
-
.requiredOption('--id <id>', 'ID')
|
|
8826
|
+
.requiredOption('--id <id>', '记录唯一标识ID')
|
|
8827
8827
|
.option('--entityId <entityId>', '@FsNotEmpty(message = "entityId不能为空", i18nKey = ApprovalI18N.paas_flow_approval_any_is_null)')
|
|
8828
8828
|
.requiredOption('--flowType <flowType>', '启用,传递的是free_approvalflow 停用,传递的是approvalflow /')
|
|
8829
8829
|
.action((0, command_ts_1.createCommandAction)('approval def', 'switch-flow-type', runtimeContext, async ({ options, context }) => {
|
|
@@ -8833,13 +8833,13 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8833
8833
|
approvalDef
|
|
8834
8834
|
.command('update-free-config')
|
|
8835
8835
|
.description('自由审批配置更新')
|
|
8836
|
-
.requiredOption('--id <id>', 'ID')
|
|
8837
|
-
.option('--entityId <entityId>', '
|
|
8838
|
-
.option('--triggerTypes <triggerTypes>', '
|
|
8839
|
-
.option('--remind <remind>', '
|
|
8840
|
-
.option('--dataLockType <dataLockType>', '
|
|
8841
|
-
.option('--completedLockType <completedLockType>', '
|
|
8842
|
-
.option('--defaultDef <defaultDef>', '
|
|
8836
|
+
.requiredOption('--id <id>', '记录唯一标识ID')
|
|
8837
|
+
.option('--entityId <entityId>', '审批流关联的业务对象ID')
|
|
8838
|
+
.option('--triggerTypes <triggerTypes>', '触发类型列表')
|
|
8839
|
+
.option('--remind <remind>', '审批催办提醒的配置信息')
|
|
8840
|
+
.option('--dataLockType <dataLockType>', '数据锁定类型')
|
|
8841
|
+
.option('--completedLockType <completedLockType>', '完成后的锁定类型')
|
|
8842
|
+
.option('--defaultDef <defaultDef>', '标记该审批流配置是否为默认配置')
|
|
8843
8843
|
.action((0, command_ts_1.createCommandAction)('approval def', 'update-free-config', runtimeContext, async ({ options, context }) => {
|
|
8844
8844
|
await (0, approval_def_command_ts_1.approvalDefUpdateFreeConfigCommand)(context, options);
|
|
8845
8845
|
}));
|
|
@@ -8847,7 +8847,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8847
8847
|
approvalDef
|
|
8848
8848
|
.command('get-support-entity')
|
|
8849
8849
|
.description('查询审批流支持的对象列表')
|
|
8850
|
-
.option('--useGroupManager <useGroupManager>', '
|
|
8850
|
+
.option('--useGroupManager <useGroupManager>', '是否使用部门负责人')
|
|
8851
8851
|
.action((0, command_ts_1.createCommandAction)('approval def', 'get-support-entity', runtimeContext, async ({ options, context }) => {
|
|
8852
8852
|
await (0, approval_def_command_ts_1.approvalDefGetSupportEntityCommand)(context, options);
|
|
8853
8853
|
}));
|
|
@@ -8855,7 +8855,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8855
8855
|
approvalDef
|
|
8856
8856
|
.command('get-entity-trigger-type')
|
|
8857
8857
|
.description('查询审批流某个对象支持的触发类型')
|
|
8858
|
-
.requiredOption('--entityId <entityId>', '
|
|
8858
|
+
.requiredOption('--entityId <entityId>', '审批流关联的业务对象ID')
|
|
8859
8859
|
.action((0, command_ts_1.createCommandAction)('approval def', 'get-entity-trigger-type', runtimeContext, async ({ options, context }) => {
|
|
8860
8860
|
await (0, approval_def_command_ts_1.approvalDefGetEntityTriggerTypeCommand)(context, options);
|
|
8861
8861
|
}));
|
|
@@ -8863,7 +8863,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8863
8863
|
approvalDef
|
|
8864
8864
|
.command('get-node-button-config')
|
|
8865
8865
|
.description('查询审批流某个对象支持的节点按钮')
|
|
8866
|
-
.requiredOption('--entityId <entityId>', '
|
|
8866
|
+
.requiredOption('--entityId <entityId>', '审批流关联的业务对象ID')
|
|
8867
8867
|
.action((0, command_ts_1.createCommandAction)('approval def', 'get-node-button-config', runtimeContext, async ({ options, context }) => {
|
|
8868
8868
|
await (0, approval_def_command_ts_1.approvalDefGetNodeButtonConfigCommand)(context, options);
|
|
8869
8869
|
}));
|
|
@@ -8878,7 +8878,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8878
8878
|
approvalDef
|
|
8879
8879
|
.command('set-priorities')
|
|
8880
8880
|
.description('设置审批流程的优先级')
|
|
8881
|
-
.requiredOption('--priorities <priorities>', '
|
|
8881
|
+
.requiredOption('--priorities <priorities>', '优先级排序列表')
|
|
8882
8882
|
.action((0, command_ts_1.createCommandAction)('approval def', 'set-priorities', runtimeContext, async ({ options, context }) => {
|
|
8883
8883
|
await (0, approval_def_command_ts_1.approvalDefSetPrioritiesCommand)(context, options);
|
|
8884
8884
|
}));
|
|
@@ -8886,7 +8886,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8886
8886
|
approvalDef
|
|
8887
8887
|
.command('get-entities')
|
|
8888
8888
|
.description('查询关联了审批流的实体集合')
|
|
8889
|
-
.option('--useGroupManager <useGroupManager>', '
|
|
8889
|
+
.option('--useGroupManager <useGroupManager>', '是否使用部门负责人')
|
|
8890
8890
|
.action((0, command_ts_1.createCommandAction)('approval def', 'get-entities', runtimeContext, async ({ options, context }) => {
|
|
8891
8891
|
await (0, approval_def_command_ts_1.approvalDefGetEntitiesCommand)(context, options);
|
|
8892
8892
|
}));
|
|
@@ -8901,8 +8901,8 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8901
8901
|
approvalDef
|
|
8902
8902
|
.command('query-definitions-without-page')
|
|
8903
8903
|
.description('查询指定对象指定触发类型下审批流信息')
|
|
8904
|
-
.requiredOption('--entityId <entityId>', '
|
|
8905
|
-
.requiredOption('--triggerType <triggerType>', '
|
|
8904
|
+
.requiredOption('--entityId <entityId>', '审批流关联的业务对象ID')
|
|
8905
|
+
.requiredOption('--triggerType <triggerType>', '触发类型')
|
|
8906
8906
|
.action((0, command_ts_1.createCommandAction)('approval def', 'query-definitions-without-page', runtimeContext, async ({ options, context }) => {
|
|
8907
8907
|
await (0, approval_def_command_ts_1.approvalDefQueryDefinitionsWithoutPageCommand)(context, options);
|
|
8908
8908
|
}));
|
|
@@ -8914,12 +8914,12 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8914
8914
|
approvalRt
|
|
8915
8915
|
.command('cancel')
|
|
8916
8916
|
.description('审批流程-取消审批实例')
|
|
8917
|
-
.option('--entityId <entityId>', '
|
|
8918
|
-
.option('--objectId <objectId>', '
|
|
8917
|
+
.option('--entityId <entityId>', '业务对象ID')
|
|
8918
|
+
.option('--objectId <objectId>', '数据记录ID')
|
|
8919
8919
|
.requiredOption('--triggerType <triggerType>', '触发类型')
|
|
8920
|
-
.requiredOption('--cancelReason <cancelReason>', '
|
|
8921
|
-
.option('--instanceId <instanceId>', '
|
|
8922
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
8920
|
+
.requiredOption('--cancelReason <cancelReason>', '取消的原因说明')
|
|
8921
|
+
.option('--instanceId <instanceId>', '流程实例ID')
|
|
8922
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
8923
8923
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'cancel', runtimeContext, async ({ options, context }) => {
|
|
8924
8924
|
await (0, approval_runtime_command_ts_1.approvalRuntimeCancelCommand)(context, options);
|
|
8925
8925
|
}));
|
|
@@ -8927,7 +8927,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8927
8927
|
approvalRt
|
|
8928
8928
|
.command('instance-detail')
|
|
8929
8929
|
.description('审批流程-获取实例详情')
|
|
8930
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
8930
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
8931
8931
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'instance-detail', runtimeContext, async ({ options, context }) => {
|
|
8932
8932
|
await (0, approval_runtime_command_ts_1.approvalRuntimeInstanceDetailCommand)(context, options);
|
|
8933
8933
|
}));
|
|
@@ -8935,8 +8935,8 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8935
8935
|
approvalRt
|
|
8936
8936
|
.command('detail-change')
|
|
8937
8937
|
.description('审批流程-审批流实例审批的明细变更数据')
|
|
8938
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
8939
|
-
.requiredOption('--detailEntityId <detailEntityId>', '
|
|
8938
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
8939
|
+
.requiredOption('--detailEntityId <detailEntityId>', '明细对象的ID')
|
|
8940
8940
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'detail-change', runtimeContext, async ({ options, context }) => {
|
|
8941
8941
|
await (0, approval_runtime_command_ts_1.approvalRuntimeDetailChangeCommand)(context, options);
|
|
8942
8942
|
}));
|
|
@@ -8944,8 +8944,8 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8944
8944
|
approvalRt
|
|
8945
8945
|
.command('get-approval-instance-id-by-object')
|
|
8946
8946
|
.description('审批流程-通过对象ID获取当前进行中的实例ID')
|
|
8947
|
-
.requiredOption('--objectId <objectId>', '
|
|
8948
|
-
.requiredOption('--entityId <entityId>', '
|
|
8947
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
8948
|
+
.requiredOption('--entityId <entityId>', '业务对象ID')
|
|
8949
8949
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'get-approval-instance-id-by-object', runtimeContext, async ({ options, context }) => {
|
|
8950
8950
|
await (0, approval_runtime_command_ts_1.approvalRuntimeGetApprovalInstanceIdByObjectCommand)(context, options);
|
|
8951
8951
|
}));
|
|
@@ -8953,10 +8953,10 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8953
8953
|
approvalRt
|
|
8954
8954
|
.command('preview-tasks')
|
|
8955
8955
|
.description('审批流程-获取预览任务')
|
|
8956
|
-
.requiredOption('--workflowId <workflowId>', '
|
|
8957
|
-
.requiredOption('--activityId <activityId>', '
|
|
8958
|
-
.option('--applicantId <applicantId>', '
|
|
8959
|
-
.requiredOption('--objectId <objectId>', '
|
|
8956
|
+
.requiredOption('--workflowId <workflowId>', '流程定义版本ID')
|
|
8957
|
+
.requiredOption('--activityId <activityId>', '流程节点ID')
|
|
8958
|
+
.option('--applicantId <applicantId>', '流程发起人ID')
|
|
8959
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
8960
8960
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'preview-tasks', runtimeContext, async ({ options, context }) => {
|
|
8961
8961
|
await (0, approval_runtime_command_ts_1.approvalRuntimePreviewTasksCommand)(context, options);
|
|
8962
8962
|
}));
|
|
@@ -8964,8 +8964,8 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8964
8964
|
approvalRt
|
|
8965
8965
|
.command('progress')
|
|
8966
8966
|
.description('审批流程-获取当前审批详情')
|
|
8967
|
-
.requiredOption('--entityId <entityId>', '
|
|
8968
|
-
.requiredOption('--dataId <dataId>', '
|
|
8967
|
+
.requiredOption('--entityId <entityId>', '业务对象ID')
|
|
8968
|
+
.requiredOption('--dataId <dataId>', '数据记录ID')
|
|
8969
8969
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'progress', runtimeContext, async ({ options, context }) => {
|
|
8970
8970
|
await (0, approval_runtime_command_ts_1.approvalRuntimeProgressCommand)(context, options);
|
|
8971
8971
|
}));
|
|
@@ -8973,7 +8973,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8973
8973
|
approvalRt
|
|
8974
8974
|
.command('retrytask')
|
|
8975
8975
|
.description('审批流程-重新生成后续任务, 后续任务没有生成时使用')
|
|
8976
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
8976
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
8977
8977
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'retrytask', runtimeContext, async ({ options, context }) => {
|
|
8978
8978
|
await (0, approval_runtime_command_ts_1.approvalRuntimeRetrytaskCommand)(context, options);
|
|
8979
8979
|
}));
|
|
@@ -8982,9 +8982,9 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8982
8982
|
.command('add-extra-node')
|
|
8983
8983
|
.description('审批流程-前加签')
|
|
8984
8984
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
8985
|
-
.requiredOption('--extraNodeAssignee <extraNodeAssignee>', '
|
|
8986
|
-
.requiredOption('--addNodeReason <addNodeReason>', '
|
|
8987
|
-
.option('--sequence <sequence>', '
|
|
8985
|
+
.requiredOption('--extraNodeAssignee <extraNodeAssignee>', '加签节点的处理人')
|
|
8986
|
+
.requiredOption('--addNodeReason <addNodeReason>', '添加加签节点的原因说明')
|
|
8987
|
+
.option('--sequence <sequence>', '排序序号')
|
|
8988
8988
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'add-extra-node', runtimeContext, async ({ options, context }) => {
|
|
8989
8989
|
await (0, approval_runtime_command_ts_1.approvalRuntimeAddExtraNodeCommand)(context, options);
|
|
8990
8990
|
}));
|
|
@@ -8992,11 +8992,11 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
8992
8992
|
approvalRt
|
|
8993
8993
|
.command('carbon-copy')
|
|
8994
8994
|
.description('审批流程-抄送')
|
|
8995
|
-
.option('--type <type>', '
|
|
8995
|
+
.option('--type <type>', '类型标识')
|
|
8996
8996
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
8997
|
-
.option('--instanceId <instanceId>', '
|
|
8998
|
-
.option('--opinion <opinion>', '
|
|
8999
|
-
.option('--replyMessage <replyMessage>', '
|
|
8997
|
+
.option('--instanceId <instanceId>', '流程实例ID')
|
|
8998
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
8999
|
+
.option('--replyMessage <replyMessage>', '回复的消息内容')
|
|
9000
9000
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'carbon-copy', runtimeContext, async ({ options, context }) => {
|
|
9001
9001
|
await (0, approval_runtime_command_ts_1.approvalRuntimeCarbonCopyCommand)(context, options);
|
|
9002
9002
|
}));
|
|
@@ -9004,9 +9004,9 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9004
9004
|
approvalRt
|
|
9005
9005
|
.command('change-free-approval-task-handler')
|
|
9006
9006
|
.description('审批流程-更改自由审批任务处理人')
|
|
9007
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
9008
|
-
.option('--modifyOpinion <modifyOpinion>', '
|
|
9009
|
-
.option('--freeApprovalDef <freeApprovalDef>', '
|
|
9007
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
9008
|
+
.option('--modifyOpinion <modifyOpinion>', '修改时填写的意见说明')
|
|
9009
|
+
.option('--freeApprovalDef <freeApprovalDef>', '自由审批流程定义结构')
|
|
9010
9010
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'change-free-approval-task-handler', runtimeContext, async ({ options, context }) => {
|
|
9011
9011
|
await (0, approval_runtime_command_ts_1.approvalRuntimeChangeFreeApprovalTaskHandlerCommand)(context, options);
|
|
9012
9012
|
}));
|
|
@@ -9015,8 +9015,8 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9015
9015
|
.command('change-task-handler')
|
|
9016
9016
|
.description('审批流程-更改审批任务处理人')
|
|
9017
9017
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9018
|
-
.requiredOption('--persons <persons>', '
|
|
9019
|
-
.option('--modifyOpinion <modifyOpinion>', '
|
|
9018
|
+
.requiredOption('--persons <persons>', '指定人员信息列表')
|
|
9019
|
+
.option('--modifyOpinion <modifyOpinion>', '修改时填写的意见说明')
|
|
9020
9020
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'change-task-handler', runtimeContext, async ({ options, context }) => {
|
|
9021
9021
|
await (0, approval_runtime_command_ts_1.approvalRuntimeChangeTaskHandlerCommand)(context, options);
|
|
9022
9022
|
}));
|
|
@@ -9024,17 +9024,17 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9024
9024
|
approvalRt
|
|
9025
9025
|
.command('complete')
|
|
9026
9026
|
.description('审批流程-完成任务')
|
|
9027
|
-
.requiredOption('--objectId <objectId>', '
|
|
9028
|
-
.requiredOption('--actionType <actionType>', '
|
|
9027
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
9028
|
+
.requiredOption('--actionType <actionType>', '操作类型')
|
|
9029
9029
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9030
|
-
.option('--opinion <opinion>', '
|
|
9030
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
9031
9031
|
.option('--triggerType <triggerType>', '触发类型')
|
|
9032
|
-
.option('--entityId <entityId>', '
|
|
9033
|
-
.option('--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>', '
|
|
9034
|
-
.option('--afterTagInfo <afterTagInfo>', '
|
|
9035
|
-
.option('--replyMessage <replyMessage>', '
|
|
9036
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
9037
|
-
.option('--blockWithLayout <blockWithLayout>', '
|
|
9032
|
+
.option('--entityId <entityId>', '业务对象ID')
|
|
9033
|
+
.option('--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>', '驳回时是否跳转到当前节点')
|
|
9034
|
+
.option('--afterTagInfo <afterTagInfo>', '后置处理的标签信息')
|
|
9035
|
+
.option('--replyMessage <replyMessage>', '回复的消息内容')
|
|
9036
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
9037
|
+
.option('--blockWithLayout <blockWithLayout>', '布局阻塞规则配置')
|
|
9038
9038
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'complete', runtimeContext, async ({ options, context }) => {
|
|
9039
9039
|
await (0, approval_runtime_command_ts_1.approvalRuntimeCompleteCommand)(context, options);
|
|
9040
9040
|
}));
|
|
@@ -9042,10 +9042,10 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9042
9042
|
approvalRt
|
|
9043
9043
|
.command('delete-reply')
|
|
9044
9044
|
.description('审批流程-删除回复')
|
|
9045
|
-
.option('--replyId <replyId>', '
|
|
9045
|
+
.option('--replyId <replyId>', '被回复的消息ID')
|
|
9046
9046
|
.option('--taskId <taskId>', '任务ID')
|
|
9047
|
-
.option('--instanceId <instanceId>', '
|
|
9048
|
-
.option('--feedId <feedId>', '
|
|
9047
|
+
.option('--instanceId <instanceId>', '流程实例ID')
|
|
9048
|
+
.option('--feedId <feedId>', '动态消息ID')
|
|
9049
9049
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'delete-reply', runtimeContext, async ({ options, context }) => {
|
|
9050
9050
|
await (0, approval_runtime_command_ts_1.approvalRuntimeDeleteReplyCommand)(context, options);
|
|
9051
9051
|
}));
|
|
@@ -9054,13 +9054,13 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9054
9054
|
.command('edit')
|
|
9055
9055
|
.description('审批流程-编辑任务')
|
|
9056
9056
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9057
|
-
.option('--details <details>', '
|
|
9058
|
-
.option('--objectData <objectData>', '
|
|
9059
|
-
.option('--originalData <originalData>', '
|
|
9060
|
-
.option('--originalDetails <originalDetails>', '
|
|
9061
|
-
.option('--optionInfo <optionInfo>', '
|
|
9062
|
-
.option('--actionType <actionType>', '
|
|
9063
|
-
.option('--notValidate <notValidate>', '
|
|
9057
|
+
.option('--details <details>', '明细数据列表')
|
|
9058
|
+
.option('--objectData <objectData>', '业务对象的数据内容')
|
|
9059
|
+
.option('--originalData <originalData>', '原始数据内容')
|
|
9060
|
+
.option('--originalDetails <originalDetails>', '原始明细数据列表')
|
|
9061
|
+
.option('--optionInfo <optionInfo>', '选项配置信息')
|
|
9062
|
+
.option('--actionType <actionType>', '操作类型')
|
|
9063
|
+
.option('--notValidate <notValidate>', '是否跳过数据校验')
|
|
9064
9064
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'edit', runtimeContext, async ({ options, context }) => {
|
|
9065
9065
|
await (0, approval_runtime_command_ts_1.approvalRuntimeEditCommand)(context, options);
|
|
9066
9066
|
}));
|
|
@@ -9069,8 +9069,8 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9069
9069
|
.command('get-task-detail')
|
|
9070
9070
|
.description('审批流程-获取任务详情')
|
|
9071
9071
|
.option('--taskId <taskId>', '任务ID')
|
|
9072
|
-
.option('--todoId <todoId>', '
|
|
9073
|
-
.option('--workflowInstanceId <workflowInstanceId>', '
|
|
9072
|
+
.option('--todoId <todoId>', '待办事项ID')
|
|
9073
|
+
.option('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
9074
9074
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'get-task-detail', runtimeContext, async ({ options, context }) => {
|
|
9075
9075
|
await (0, approval_runtime_command_ts_1.approvalRuntimeGetTaskDetailCommand)(context, options);
|
|
9076
9076
|
}));
|
|
@@ -9086,7 +9086,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9086
9086
|
approvalRt
|
|
9087
9087
|
.command('get-can-refuse-tasks')
|
|
9088
9088
|
.description('审批流程-获取可驳回的任务')
|
|
9089
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
9089
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
9090
9090
|
.option('--taskId <taskId>', '任务ID')
|
|
9091
9091
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'get-can-refuse-tasks', runtimeContext, async ({ options, context }) => {
|
|
9092
9092
|
await (0, approval_runtime_command_ts_1.approvalRuntimeGetCanRefuseTasksCommand)(context, options);
|
|
@@ -9095,9 +9095,9 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9095
9095
|
approvalRt
|
|
9096
9096
|
.command('get-task-extra-data')
|
|
9097
9097
|
.description('审批流程-获取任务扩展数据')
|
|
9098
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
9098
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
9099
9099
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9100
|
-
.option('--buttonType <buttonType>', '
|
|
9100
|
+
.option('--buttonType <buttonType>', '按钮类型标识')
|
|
9101
9101
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'get-task-extra-data', runtimeContext, async ({ options, context }) => {
|
|
9102
9102
|
await (0, approval_runtime_command_ts_1.approvalRuntimeGetTaskExtraDataCommand)(context, options);
|
|
9103
9103
|
}));
|
|
@@ -9114,17 +9114,17 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9114
9114
|
.command('reject-to-before-task')
|
|
9115
9115
|
.description('审批流程-驳回到前一任务')
|
|
9116
9116
|
.requiredOption('--currentTaskId <currentTaskId>', '当前任务ID')
|
|
9117
|
-
.requiredOption('--rejectToTaskId <rejectToTaskId>', '
|
|
9117
|
+
.requiredOption('--rejectToTaskId <rejectToTaskId>', '驳回到的目标任务ID')
|
|
9118
9118
|
.option('--rejectOpinion <rejectOpinion>', '驳回意见')
|
|
9119
|
-
.option('--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>', '
|
|
9120
|
-
.option('--replyMessage <replyMessage>', '
|
|
9121
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
9122
|
-
.option('--data <data>', '
|
|
9123
|
-
.option('--removeVersion <removeVersion>', '
|
|
9124
|
-
.option('--originalData <originalData>', '
|
|
9125
|
-
.option('--optionInfo <optionInfo>', '
|
|
9126
|
-
.option('--entityId <entityId>', '
|
|
9127
|
-
.option('--objectId <objectId>', '
|
|
9119
|
+
.option('--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>', '驳回时是否跳转到当前节点')
|
|
9120
|
+
.option('--replyMessage <replyMessage>', '回复的消息内容')
|
|
9121
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
9122
|
+
.option('--data <data>', '数据内容')
|
|
9123
|
+
.option('--removeVersion <removeVersion>', '待移除的版本号')
|
|
9124
|
+
.option('--originalData <originalData>', '原始数据内容')
|
|
9125
|
+
.option('--optionInfo <optionInfo>', '选项配置信息')
|
|
9126
|
+
.option('--entityId <entityId>', '业务对象ID')
|
|
9127
|
+
.option('--objectId <objectId>', '数据记录ID')
|
|
9128
9128
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'reject-to-before-task', runtimeContext, async ({ options, context }) => {
|
|
9129
9129
|
await (0, approval_runtime_command_ts_1.approvalRuntimeRejectToBeforeTaskCommand)(context, options);
|
|
9130
9130
|
}));
|
|
@@ -9133,8 +9133,8 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9133
9133
|
.command('remind')
|
|
9134
9134
|
.description('审批流程-催办')
|
|
9135
9135
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9136
|
-
.option('--content <content>', '
|
|
9137
|
-
.requiredOption('--remindPersons <remindPersons>', '
|
|
9136
|
+
.option('--content <content>', '文本内容')
|
|
9137
|
+
.requiredOption('--remindPersons <remindPersons>', '需要催办的人员列表')
|
|
9138
9138
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'remind', runtimeContext, async ({ options, context }) => {
|
|
9139
9139
|
await (0, approval_runtime_command_ts_1.approvalRuntimeRemindCommand)(context, options);
|
|
9140
9140
|
}));
|
|
@@ -9142,11 +9142,11 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9142
9142
|
approvalRt
|
|
9143
9143
|
.command('reply')
|
|
9144
9144
|
.description('审批流程-回复')
|
|
9145
|
-
.option('--instanceId <instanceId>', '
|
|
9145
|
+
.option('--instanceId <instanceId>', '流程实例ID')
|
|
9146
9146
|
.option('--taskId <taskId>', '任务ID')
|
|
9147
|
-
.requiredOption('--replyMessage <replyMessage>', '
|
|
9148
|
-
.option('--opinionId <opinionId>', '
|
|
9149
|
-
.option('--replyType <replyType>', '
|
|
9147
|
+
.requiredOption('--replyMessage <replyMessage>', '回复的消息内容')
|
|
9148
|
+
.option('--opinionId <opinionId>', '审批意见记录ID')
|
|
9149
|
+
.option('--replyType <replyType>', '回复的类型')
|
|
9150
9150
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'reply', runtimeContext, async ({ options, context }) => {
|
|
9151
9151
|
await (0, approval_runtime_command_ts_1.approvalRuntimeReplyCommand)(context, options);
|
|
9152
9152
|
}));
|
|
@@ -9154,10 +9154,10 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9154
9154
|
approvalRt
|
|
9155
9155
|
.command('retrieve')
|
|
9156
9156
|
.description('审批流程-取回审批')
|
|
9157
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
9157
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
9158
9158
|
.requiredOption('--currentTaskId <currentTaskId>', '当前任务ID')
|
|
9159
|
-
.requiredOption('--previousTaskId <previousTaskId>', '
|
|
9160
|
-
.option('--deletePreviousOpinion <deletePreviousOpinion>', '
|
|
9159
|
+
.requiredOption('--previousTaskId <previousTaskId>', '上一个任务ID')
|
|
9160
|
+
.option('--deletePreviousOpinion <deletePreviousOpinion>', '是否删除前一任务的意见')
|
|
9161
9161
|
.requiredOption('--retrieveOpinion <retrieveOpinion>', '取回意见')
|
|
9162
9162
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'retrieve', runtimeContext, async ({ options, context }) => {
|
|
9163
9163
|
await (0, approval_runtime_command_ts_1.approvalRuntimeRetrieveCommand)(context, options);
|
|
@@ -9166,7 +9166,7 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9166
9166
|
approvalRt
|
|
9167
9167
|
.command('retrieve-check')
|
|
9168
9168
|
.description('审批流程-取回检查')
|
|
9169
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
9169
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
9170
9170
|
.requiredOption('--currentTaskId <currentTaskId>', '当前任务ID')
|
|
9171
9171
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'retrieve-check', runtimeContext, async ({ options, context }) => {
|
|
9172
9172
|
await (0, approval_runtime_command_ts_1.approvalRuntimeRetrieveCheckCommand)(context, options);
|
|
@@ -9175,21 +9175,21 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9175
9175
|
approvalRt
|
|
9176
9176
|
.command('update-and-complete')
|
|
9177
9177
|
.description('审批流程-更新并完成')
|
|
9178
|
-
.requiredOption('--entityId <entityId>', '
|
|
9179
|
-
.requiredOption('--objectId <objectId>', '
|
|
9180
|
-
.requiredOption('--data <data>', '
|
|
9178
|
+
.requiredOption('--entityId <entityId>', '业务对象ID')
|
|
9179
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
9180
|
+
.requiredOption('--data <data>', '数据内容')
|
|
9181
9181
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9182
|
-
.option('--originalData <originalData>', '
|
|
9183
|
-
.option('--optionInfo <optionInfo>', '
|
|
9184
|
-
.option('--removeVersion <removeVersion>', '
|
|
9185
|
-
.requiredOption('--actionType <actionType>', '
|
|
9186
|
-
.option('--opinion <opinion>', '
|
|
9182
|
+
.option('--originalData <originalData>', '原始数据内容')
|
|
9183
|
+
.option('--optionInfo <optionInfo>', '选项配置信息')
|
|
9184
|
+
.option('--removeVersion <removeVersion>', '待移除的版本号')
|
|
9185
|
+
.requiredOption('--actionType <actionType>', '操作类型')
|
|
9186
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
9187
9187
|
.option('--triggerType <triggerType>', '触发类型')
|
|
9188
|
-
.option('--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>', '
|
|
9189
|
-
.option('--afterTagInfo <afterTagInfo>', '
|
|
9190
|
-
.option('--replyMessage <replyMessage>', '
|
|
9191
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
9192
|
-
.option('--blockWithLayout <blockWithLayout>', '
|
|
9188
|
+
.option('--moveToCurrentActivityWhenReject <moveToCurrentActivityWhenReject>', '驳回时是否跳转到当前节点')
|
|
9189
|
+
.option('--afterTagInfo <afterTagInfo>', '后置处理的标签信息')
|
|
9190
|
+
.option('--replyMessage <replyMessage>', '回复的消息内容')
|
|
9191
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
9192
|
+
.option('--blockWithLayout <blockWithLayout>', '布局阻塞规则配置')
|
|
9193
9193
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'update-and-complete', runtimeContext, async ({ options, context }) => {
|
|
9194
9194
|
await (0, approval_runtime_command_ts_1.approvalRuntimeUpdateAndCompleteCommand)(context, options);
|
|
9195
9195
|
}));
|
|
@@ -9197,13 +9197,13 @@ function registerApprovalNamespace(program, runtimeContext) {
|
|
|
9197
9197
|
approvalRt
|
|
9198
9198
|
.command('update-approval-content')
|
|
9199
9199
|
.description('审批流程-更新审批内容')
|
|
9200
|
-
.requiredOption('--entityId <entityId>', '
|
|
9201
|
-
.requiredOption('--objectId <objectId>', '
|
|
9202
|
-
.requiredOption('--data <data>', '
|
|
9200
|
+
.requiredOption('--entityId <entityId>', '业务对象ID')
|
|
9201
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
9202
|
+
.requiredOption('--data <data>', '数据内容')
|
|
9203
9203
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9204
|
-
.option('--originalData <originalData>', '
|
|
9205
|
-
.option('--optionInfo <optionInfo>', '
|
|
9206
|
-
.option('--removeVersion <removeVersion>', '
|
|
9204
|
+
.option('--originalData <originalData>', '原始数据内容')
|
|
9205
|
+
.option('--optionInfo <optionInfo>', '选项配置信息')
|
|
9206
|
+
.option('--removeVersion <removeVersion>', '待移除的版本号')
|
|
9207
9207
|
.action((0, command_ts_1.createCommandAction)('approval runtime', 'update-approval-content', runtimeContext, async ({ options, context }) => {
|
|
9208
9208
|
await (0, approval_runtime_command_ts_1.approvalRuntimeUpdateApprovalContentCommand)(context, options);
|
|
9209
9209
|
}));
|
|
@@ -9234,7 +9234,7 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9234
9234
|
bpmDef
|
|
9235
9235
|
.command('create-definition')
|
|
9236
9236
|
.description('BPM流程定义创建')
|
|
9237
|
-
.option('--id <id>', '
|
|
9237
|
+
.option('--id <id>', 'BPM流程定义的数据库记录ID')
|
|
9238
9238
|
.option('--tenantId <tenantId>', '企业Id')
|
|
9239
9239
|
.option('--userId <userId>', '用户id')
|
|
9240
9240
|
.option('--sourceWorkflowId <sourceWorkflowId>', '流程定义唯一标识')
|
|
@@ -9279,7 +9279,7 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9279
9279
|
bpmDef
|
|
9280
9280
|
.command('update-definition')
|
|
9281
9281
|
.description('BPM流程定义更新')
|
|
9282
|
-
.option('--id <id>', '
|
|
9282
|
+
.option('--id <id>', 'BPM流程定义的数据库记录ID')
|
|
9283
9283
|
.option('--tenantId <tenantId>', '企业Id')
|
|
9284
9284
|
.option('--userId <userId>', '用户id')
|
|
9285
9285
|
.option('--sourceWorkflowId <sourceWorkflowId>', '流程定义唯一标识')
|
|
@@ -9324,7 +9324,7 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9324
9324
|
bpmDef
|
|
9325
9325
|
.command('delete-definition')
|
|
9326
9326
|
.description('BPM流程定义删除')
|
|
9327
|
-
.requiredOption('--id <id>', 'ID')
|
|
9327
|
+
.requiredOption('--id <id>', 'BPM流程定义的数据库记录ID')
|
|
9328
9328
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'delete-definition', runtimeContext, async ({ options, context }) => {
|
|
9329
9329
|
await (0, bpm_def_command_ts_1.bpmDefDeleteDefinitionCommand)(context, options);
|
|
9330
9330
|
}));
|
|
@@ -9332,15 +9332,15 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9332
9332
|
bpmDef
|
|
9333
9333
|
.command('list')
|
|
9334
9334
|
.description('BPM流程定义列表查询')
|
|
9335
|
-
.option('--pageNumber <pageNumber>', '
|
|
9336
|
-
.option('--pageSize <pageSize>', '
|
|
9337
|
-
.option('--keyWord <keyWord>', '
|
|
9338
|
-
.option('--enabled <enabled>', '
|
|
9339
|
-
.option('--orderBy <orderBy>', '
|
|
9340
|
-
.option('--entityId <entityId>', '
|
|
9341
|
-
.option('--entityIds <entityIds>', '
|
|
9342
|
-
.option('--externalFlow <externalFlow>', '
|
|
9343
|
-
.option('--supportFlowType <supportFlowType>', '
|
|
9335
|
+
.option('--pageNumber <pageNumber>', '页码,从1开始')
|
|
9336
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
9337
|
+
.option('--keyWord <keyWord>', '搜索关键字')
|
|
9338
|
+
.option('--enabled <enabled>', 'BPM流程定义是否处于激活状态')
|
|
9339
|
+
.option('--orderBy <orderBy>', '排序字段名称')
|
|
9340
|
+
.option('--entityId <entityId>', '业务对象ID')
|
|
9341
|
+
.option('--entityIds <entityIds>', '业务对象ID列表')
|
|
9342
|
+
.option('--externalFlow <externalFlow>', '标识是否为外部流程:1是外部流程,0或空不是外部流程')
|
|
9343
|
+
.option('--supportFlowType <supportFlowType>', '支持的流程类型标识')
|
|
9344
9344
|
.option('--from <from>', '请求来源:manageGroup——请求来自分管小组,不受分管小组不受分管小组约束,null——受分管小组约束 /')
|
|
9345
9345
|
.option('--supportPagingQuery <supportPagingQuery>', '是否查询所有定义,true 分页查询,false 全量查询')
|
|
9346
9346
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'list', runtimeContext, async ({ options, context }) => {
|
|
@@ -9350,7 +9350,7 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9350
9350
|
bpmDef
|
|
9351
9351
|
.command('detail')
|
|
9352
9352
|
.description('BPM流程定义详情查询')
|
|
9353
|
-
.requiredOption('--id <id>', 'ID')
|
|
9353
|
+
.requiredOption('--id <id>', 'BPM流程定义的数据库记录ID')
|
|
9354
9354
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'detail', runtimeContext, async ({ options, context }) => {
|
|
9355
9355
|
await (0, bpm_def_command_ts_1.bpmDefDetailCommand)(context, options);
|
|
9356
9356
|
}));
|
|
@@ -9358,8 +9358,8 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9358
9358
|
bpmDef
|
|
9359
9359
|
.command('enable')
|
|
9360
9360
|
.description('BPM流程定义状态更新')
|
|
9361
|
-
.requiredOption('--ids <ids>', '
|
|
9362
|
-
.option('--enabled <enabled>', '
|
|
9361
|
+
.requiredOption('--ids <ids>', 'ID列表')
|
|
9362
|
+
.option('--enabled <enabled>', 'BPM流程定义是否处于激活状态')
|
|
9363
9363
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'enable', runtimeContext, async ({ options, context }) => {
|
|
9364
9364
|
await (0, bpm_def_command_ts_1.bpmDefEnableCommand)(context, options);
|
|
9365
9365
|
}));
|
|
@@ -9367,10 +9367,10 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9367
9367
|
bpmDef
|
|
9368
9368
|
.command('app-actions')
|
|
9369
9369
|
.description('BPM应用操作查询')
|
|
9370
|
-
.option('--apiName <apiName>', '
|
|
9371
|
-
.option('--externalFlow <externalFlow>', '
|
|
9372
|
-
.option('--appId <appId>', '
|
|
9373
|
-
.option('--appType <appType>', '
|
|
9370
|
+
.option('--apiName <apiName>', 'API名称')
|
|
9371
|
+
.option('--externalFlow <externalFlow>', '标识是否为外部流程:1是外部流程,0或空不是外部流程')
|
|
9372
|
+
.option('--appId <appId>', '需要查询操作按钮的应用ID')
|
|
9373
|
+
.option('--appType <appType>', '应用类型标识')
|
|
9374
9374
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'app-actions', runtimeContext, async ({ options, context }) => {
|
|
9375
9375
|
await (0, bpm_def_command_ts_1.bpmDefAppActionsCommand)(context, options);
|
|
9376
9376
|
}));
|
|
@@ -9378,7 +9378,7 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9378
9378
|
bpmDef
|
|
9379
9379
|
.command('definition-by-id')
|
|
9380
9380
|
.description('BPM流程定义按WorkflowId查询')
|
|
9381
|
-
.requiredOption('--workflowId <workflowId>', '
|
|
9381
|
+
.requiredOption('--workflowId <workflowId>', '工作流定义的版本标识ID')
|
|
9382
9382
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'definition-by-id', runtimeContext, async ({ options, context }) => {
|
|
9383
9383
|
await (0, bpm_def_command_ts_1.bpmDefDefinitionByIdCommand)(context, options);
|
|
9384
9384
|
}));
|
|
@@ -9386,9 +9386,9 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9386
9386
|
bpmDef
|
|
9387
9387
|
.command('logs')
|
|
9388
9388
|
.description('BPM流程日志查询')
|
|
9389
|
-
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '
|
|
9390
|
-
.option('--pageSize <pageSize>', '
|
|
9391
|
-
.option('--pageNumber <pageNumber>', '
|
|
9389
|
+
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '需要操作的工作流定义唯一标识')
|
|
9390
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
9391
|
+
.option('--pageNumber <pageNumber>', '页码,从1开始')
|
|
9392
9392
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'logs', runtimeContext, async ({ options, context }) => {
|
|
9393
9393
|
await (0, bpm_def_command_ts_1.bpmDefLogsCommand)(context, options);
|
|
9394
9394
|
}));
|
|
@@ -9403,8 +9403,8 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9403
9403
|
bpmDef
|
|
9404
9404
|
.command('available-workflows')
|
|
9405
9405
|
.description('查询当前对象下可用的流程')
|
|
9406
|
-
.requiredOption('--entryType <entryType>', '
|
|
9407
|
-
.option('--objectId <objectId>', '
|
|
9406
|
+
.requiredOption('--entryType <entryType>', 'BPM流程绑定的入口业务对象类型')
|
|
9407
|
+
.option('--objectId <objectId>', '业务流程关联的数据记录ID')
|
|
9408
9408
|
.option('--validateScope <validateScope>', '是否校验发起人范围 false:不校验 true/null:校验 /')
|
|
9409
9409
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'available-workflows', runtimeContext, async ({ options, context }) => {
|
|
9410
9410
|
await (0, bpm_def_command_ts_1.bpmDefAvailableWorkflowsCommand)(context, options);
|
|
@@ -9434,7 +9434,7 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9434
9434
|
bpmDef
|
|
9435
9435
|
.command('find-obj-actions')
|
|
9436
9436
|
.description('获取自定义对象的所有可操作类型')
|
|
9437
|
-
.requiredOption('--apiName <apiName>', '
|
|
9437
|
+
.requiredOption('--apiName <apiName>', 'API名称')
|
|
9438
9438
|
.option('--actionType <actionType>', '自定义按钮获取传common,操作按钮获取传flow或空')
|
|
9439
9439
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'find-obj-actions', runtimeContext, async ({ options, context }) => {
|
|
9440
9440
|
await (0, bpm_def_command_ts_1.bpmDefFindObjActionsCommand)(context, options);
|
|
@@ -9443,7 +9443,7 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9443
9443
|
bpmDef
|
|
9444
9444
|
.command('find-references')
|
|
9445
9445
|
.description('查询关联当前对象的对象列表')
|
|
9446
|
-
.requiredOption('--apiName <apiName>', '
|
|
9446
|
+
.requiredOption('--apiName <apiName>', 'API名称')
|
|
9447
9447
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'find-references', runtimeContext, async ({ options, context }) => {
|
|
9448
9448
|
await (0, bpm_def_command_ts_1.bpmDefFindReferencesCommand)(context, options);
|
|
9449
9449
|
}));
|
|
@@ -9451,10 +9451,10 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9451
9451
|
bpmDef
|
|
9452
9452
|
.command('find-custom-objs')
|
|
9453
9453
|
.description('查询一个企业下的可用自定义对象列表')
|
|
9454
|
-
.option('--packageName <packageName>', '
|
|
9455
|
-
.option('--includeFieldsDesc <includeFieldsDesc>', '
|
|
9456
|
-
.option('--apiNames <apiNames>', '
|
|
9457
|
-
.option('--useGroupManager <useGroupManager>', '
|
|
9454
|
+
.option('--packageName <packageName>', 'package名称')
|
|
9455
|
+
.option('--includeFieldsDesc <includeFieldsDesc>', '是否包含字段描述')
|
|
9456
|
+
.option('--apiNames <apiNames>', 'API名称列表')
|
|
9457
|
+
.option('--useGroupManager <useGroupManager>', '是否使用部门负责人')
|
|
9458
9458
|
.action((0, command_ts_1.createCommandAction)('bpm def', 'find-custom-objs', runtimeContext, async ({ options, context }) => {
|
|
9459
9459
|
await (0, bpm_def_command_ts_1.bpmDefFindCustomObjsCommand)(context, options);
|
|
9460
9460
|
}));
|
|
@@ -9466,9 +9466,9 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9466
9466
|
bpmRt
|
|
9467
9467
|
.command('instance-after-action-retry')
|
|
9468
9468
|
.description('业务流程-动作后重试')
|
|
9469
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
9470
|
-
.option('--rowNum <rowNum>', '
|
|
9471
|
-
.option('--executeType <executeType>', '
|
|
9469
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
9470
|
+
.option('--rowNum <rowNum>', '数据行号')
|
|
9471
|
+
.option('--executeType <executeType>', '执行的类型方式')
|
|
9472
9472
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'instance-after-action-retry', runtimeContext, async ({ options, context }) => {
|
|
9473
9473
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeInstanceAfterActionRetryCommand)(context, options);
|
|
9474
9474
|
}));
|
|
@@ -9476,12 +9476,12 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9476
9476
|
bpmRt
|
|
9477
9477
|
.command('cancel')
|
|
9478
9478
|
.description('业务流程-取消实例')
|
|
9479
|
-
.requiredOption('--id <id>', 'ID')
|
|
9480
|
-
.option('--reason <reason>', '
|
|
9481
|
-
.option('--data <data>', '
|
|
9482
|
-
.option('--removeVersion <removeVersion>', '
|
|
9483
|
-
.option('--originalData <originalData>', '
|
|
9484
|
-
.option('--optionInfo <optionInfo>', '
|
|
9479
|
+
.requiredOption('--id <id>', '记录唯一标识ID')
|
|
9480
|
+
.option('--reason <reason>', '原因说明')
|
|
9481
|
+
.option('--data <data>', '数据内容')
|
|
9482
|
+
.option('--removeVersion <removeVersion>', '待移除的版本号')
|
|
9483
|
+
.option('--originalData <originalData>', '原始数据内容')
|
|
9484
|
+
.option('--optionInfo <optionInfo>', '选项配置信息')
|
|
9485
9485
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'cancel', runtimeContext, async ({ options, context }) => {
|
|
9486
9486
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeCancelCommand)(context, options);
|
|
9487
9487
|
}));
|
|
@@ -9489,8 +9489,8 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9489
9489
|
bpmRt
|
|
9490
9490
|
.command('get-instance-form')
|
|
9491
9491
|
.description('业务流程-获取实例表单')
|
|
9492
|
-
.option('--workflowInstanceId <workflowInstanceId>', '
|
|
9493
|
-
.option('--instanceFormType <instanceFormType>', '
|
|
9492
|
+
.option('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
9493
|
+
.option('--instanceFormType <instanceFormType>', '实例关联的表单类型')
|
|
9494
9494
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'get-instance-form', runtimeContext, async ({ options, context }) => {
|
|
9495
9495
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeGetInstanceFormCommand)(context, options);
|
|
9496
9496
|
}));
|
|
@@ -9498,12 +9498,12 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9498
9498
|
bpmRt
|
|
9499
9499
|
.command('get-instances-by-object')
|
|
9500
9500
|
.description('业务流程-通过对象获取实例列表')
|
|
9501
|
-
.option('--pageSize <pageSize>', '
|
|
9502
|
-
.option('--pageNumber <pageNumber>', '
|
|
9503
|
-
.option('--orderBy <orderBy>', '
|
|
9504
|
-
.option('--asc <asc>', '
|
|
9505
|
-
.requiredOption('--objectId <objectId>', '
|
|
9506
|
-
.option('--state <state>', '
|
|
9501
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
9502
|
+
.option('--pageNumber <pageNumber>', '页码,从1开始')
|
|
9503
|
+
.option('--orderBy <orderBy>', '排序字段名称')
|
|
9504
|
+
.option('--asc <asc>', '是否升序排列,true升序,false(默认)降序')
|
|
9505
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
9506
|
+
.option('--state <state>', '状态值')
|
|
9507
9507
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'get-instances-by-object', runtimeContext, async ({ options, context }) => {
|
|
9508
9508
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeGetInstancesByObjectCommand)(context, options);
|
|
9509
9509
|
}));
|
|
@@ -9511,7 +9511,7 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9511
9511
|
bpmRt
|
|
9512
9512
|
.command('get-instance-log')
|
|
9513
9513
|
.description('业务流程-获取工作流实例日志')
|
|
9514
|
-
.requiredOption('--workflowInstanceId <workflowInstanceId>', '
|
|
9514
|
+
.requiredOption('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
9515
9515
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'get-instance-log', runtimeContext, async ({ options, context }) => {
|
|
9516
9516
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeGetInstanceLogCommand)(context, options);
|
|
9517
9517
|
}));
|
|
@@ -9519,8 +9519,8 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9519
9519
|
bpmRt
|
|
9520
9520
|
.command('trigger')
|
|
9521
9521
|
.description('业务流程-触发实例')
|
|
9522
|
-
.requiredOption('--id <id>', 'ID')
|
|
9523
|
-
.requiredOption('--objectId <objectId>', '
|
|
9522
|
+
.requiredOption('--id <id>', '记录唯一标识ID')
|
|
9523
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
9524
9524
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'trigger', runtimeContext, async ({ options, context }) => {
|
|
9525
9525
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeTriggerCommand)(context, options);
|
|
9526
9526
|
}));
|
|
@@ -9529,8 +9529,8 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9529
9529
|
.command('task-after-retry')
|
|
9530
9530
|
.description('业务流程-任务动作后重试')
|
|
9531
9531
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9532
|
-
.option('--rowNum <rowNum>', '
|
|
9533
|
-
.option('--executeType <executeType>', '
|
|
9532
|
+
.option('--rowNum <rowNum>', '数据行号')
|
|
9533
|
+
.option('--executeType <executeType>', '执行的类型方式')
|
|
9534
9534
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'task-after-retry', runtimeContext, async ({ options, context }) => {
|
|
9535
9535
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeTaskAfterRetryCommand)(context, options);
|
|
9536
9536
|
}));
|
|
@@ -9540,7 +9540,7 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9540
9540
|
.description('业务流程-更改任务处理人')
|
|
9541
9541
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9542
9542
|
.requiredOption('--candidateIds <candidateIds>', '候选人ID列表')
|
|
9543
|
-
.option('--modifyOpinion <modifyOpinion>', '
|
|
9543
|
+
.option('--modifyOpinion <modifyOpinion>', '修改时填写的意见说明')
|
|
9544
9544
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'change-task-handler', runtimeContext, async ({ options, context }) => {
|
|
9545
9545
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeChangeTaskHandlerCommand)(context, options);
|
|
9546
9546
|
}));
|
|
@@ -9549,16 +9549,16 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9549
9549
|
.command('complete-related-task')
|
|
9550
9550
|
.description('业务流程-完成任务并创建数据')
|
|
9551
9551
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9552
|
-
.requiredOption('--activityId <activityId>', '
|
|
9553
|
-
.requiredOption('--activityInstanceId <activityInstanceId>', '
|
|
9554
|
-
.requiredOption('--data <data>', '
|
|
9555
|
-
.requiredOption('--executionType <executionType>', '
|
|
9556
|
-
.option('--opinion <opinion>', '
|
|
9557
|
-
.option('--objectId <objectId>', '
|
|
9558
|
-
.option('--nextTaskAssignee <nextTaskAssignee>', '
|
|
9559
|
-
.option('--addOrReplaceNextTaskAssignee <addOrReplaceNextTaskAssignee>', '
|
|
9560
|
-
.option('--needGetNextTaskInfo <needGetNextTaskInfo>', '
|
|
9561
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
9552
|
+
.requiredOption('--activityId <activityId>', '流程节点ID')
|
|
9553
|
+
.requiredOption('--activityInstanceId <activityInstanceId>', '节点运行实例ID')
|
|
9554
|
+
.requiredOption('--data <data>', '数据内容')
|
|
9555
|
+
.requiredOption('--executionType <executionType>', '执行方式')
|
|
9556
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
9557
|
+
.option('--objectId <objectId>', '数据记录ID')
|
|
9558
|
+
.option('--nextTaskAssignee <nextTaskAssignee>', '下一节点的处理人')
|
|
9559
|
+
.option('--addOrReplaceNextTaskAssignee <addOrReplaceNextTaskAssignee>', '新增或替换下一节点的处理人')
|
|
9560
|
+
.option('--needGetNextTaskInfo <needGetNextTaskInfo>', '是否需要获取下一任务详情')
|
|
9561
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
9562
9562
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'complete-related-task', runtimeContext, async ({ options, context }) => {
|
|
9563
9563
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeCompleteRelatedTaskCommand)(context, options);
|
|
9564
9564
|
}));
|
|
@@ -9567,13 +9567,13 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9567
9567
|
.command('complete-task')
|
|
9568
9568
|
.description('业务流程-完成任务')
|
|
9569
9569
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9570
|
-
.option('--opinion <opinion>', '
|
|
9571
|
-
.option('--objectId <objectId>', '
|
|
9572
|
-
.option('--data <data>', '
|
|
9573
|
-
.option('--nextTaskAssignee <nextTaskAssignee>', '
|
|
9574
|
-
.option('--addOrReplaceNextTaskAssignee <addOrReplaceNextTaskAssignee>', '
|
|
9575
|
-
.option('--needGetNextTaskInfo <needGetNextTaskInfo>', '
|
|
9576
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
9570
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
9571
|
+
.option('--objectId <objectId>', '数据记录ID')
|
|
9572
|
+
.option('--data <data>', '数据内容')
|
|
9573
|
+
.option('--nextTaskAssignee <nextTaskAssignee>', '下一节点的处理人')
|
|
9574
|
+
.option('--addOrReplaceNextTaskAssignee <addOrReplaceNextTaskAssignee>', '新增或替换下一节点的处理人')
|
|
9575
|
+
.option('--needGetNextTaskInfo <needGetNextTaskInfo>', '是否需要获取下一任务详情')
|
|
9576
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
9577
9577
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'complete-task', runtimeContext, async ({ options, context }) => {
|
|
9578
9578
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeCompleteTaskCommand)(context, options);
|
|
9579
9579
|
}));
|
|
@@ -9582,12 +9582,12 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9582
9582
|
.command('edit')
|
|
9583
9583
|
.description('业务流程-编辑任务')
|
|
9584
9584
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9585
|
-
.option('--details <details>', '
|
|
9586
|
-
.option('--objectData <objectData>', '
|
|
9587
|
-
.option('--optionInfo <optionInfo>', '
|
|
9588
|
-
.option('--notValidate <notValidate>', '
|
|
9589
|
-
.option('--originalData <originalData>', '
|
|
9590
|
-
.option('--originalDetails <originalDetails>', '
|
|
9585
|
+
.option('--details <details>', '明细数据列表')
|
|
9586
|
+
.option('--objectData <objectData>', '业务对象的数据内容')
|
|
9587
|
+
.option('--optionInfo <optionInfo>', '选项配置信息')
|
|
9588
|
+
.option('--notValidate <notValidate>', '是否跳过数据校验')
|
|
9589
|
+
.option('--originalData <originalData>', '原始数据内容')
|
|
9590
|
+
.option('--originalDetails <originalDetails>', '原始明细数据列表')
|
|
9591
9591
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'edit', runtimeContext, async ({ options, context }) => {
|
|
9592
9592
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeEditCommand)(context, options);
|
|
9593
9593
|
}));
|
|
@@ -9603,10 +9603,10 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9603
9603
|
bpmRt
|
|
9604
9604
|
.command('get-task-by-id')
|
|
9605
9605
|
.description('业务流程-获取任务信息')
|
|
9606
|
-
.option('--id <id>', 'ID')
|
|
9607
|
-
.option('--applyButtons <applyButtons>', '
|
|
9608
|
-
.option('--notGetData <notGetData>', '
|
|
9609
|
-
.option('--includeTaskFeedDetailConfig <includeTaskFeedDetailConfig>', '
|
|
9606
|
+
.option('--id <id>', '记录唯一标识ID')
|
|
9607
|
+
.option('--applyButtons <applyButtons>', '操作按钮配置列表')
|
|
9608
|
+
.option('--notGetData <notGetData>', '是否不获取完整数据')
|
|
9609
|
+
.option('--includeTaskFeedDetailConfig <includeTaskFeedDetailConfig>', '返回结果中是否包含任务动态详情配置')
|
|
9610
9610
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'get-task-by-id', runtimeContext, async ({ options, context }) => {
|
|
9611
9611
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeGetTaskByIdCommand)(context, options);
|
|
9612
9612
|
}));
|
|
@@ -9615,14 +9615,14 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9615
9615
|
.command('get-task-info-by-lane-id')
|
|
9616
9616
|
.description('业务流程-通过泳道ID获取任务信息')
|
|
9617
9617
|
.requiredOption('--laneId <laneId>', '泳道ID')
|
|
9618
|
-
.requiredOption('--workflowId <workflowId>', '
|
|
9619
|
-
.requiredOption('--instanceId <instanceId>', '
|
|
9620
|
-
.option('--objectId <objectId>', '
|
|
9621
|
-
.option('--entityId <entityId>', '
|
|
9622
|
-
.option('--notGetDatas <notGetDatas>', '
|
|
9623
|
-
.option('--applyButtons <applyButtons>', '
|
|
9624
|
-
.option('--page <page>', '
|
|
9625
|
-
.option('--pageSize <pageSize>', '
|
|
9618
|
+
.requiredOption('--workflowId <workflowId>', '流程定义版本ID')
|
|
9619
|
+
.requiredOption('--instanceId <instanceId>', '流程实例ID')
|
|
9620
|
+
.option('--objectId <objectId>', '数据记录ID')
|
|
9621
|
+
.option('--entityId <entityId>', '业务对象ID')
|
|
9622
|
+
.option('--notGetDatas <notGetDatas>', '不需要获取数据的对象列表')
|
|
9623
|
+
.option('--applyButtons <applyButtons>', '操作按钮配置列表')
|
|
9624
|
+
.option('--page <page>', '分页页码')
|
|
9625
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
9626
9626
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'get-task-info-by-lane-id', runtimeContext, async ({ options, context }) => {
|
|
9627
9627
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeGetTaskInfoByLaneIdCommand)(context, options);
|
|
9628
9628
|
}));
|
|
@@ -9631,9 +9631,9 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9631
9631
|
.command('operate-task')
|
|
9632
9632
|
.description('业务流程-操作任务')
|
|
9633
9633
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9634
|
-
.requiredOption('--type <type>', '
|
|
9635
|
-
.option('--opinion <opinion>', '
|
|
9636
|
-
.option('--tagInfo <tagInfo>', '
|
|
9634
|
+
.requiredOption('--type <type>', '类型标识')
|
|
9635
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
9636
|
+
.option('--tagInfo <tagInfo>', '标签配置信息')
|
|
9637
9637
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'operate-task', runtimeContext, async ({ options, context }) => {
|
|
9638
9638
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeOperateTaskCommand)(context, options);
|
|
9639
9639
|
}));
|
|
@@ -9650,8 +9650,8 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9650
9650
|
.command('remind')
|
|
9651
9651
|
.description('业务流程-催办')
|
|
9652
9652
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9653
|
-
.option('--content <content>', '
|
|
9654
|
-
.option('--remindPersons <remindPersons>', '
|
|
9653
|
+
.option('--content <content>', '文本内容')
|
|
9654
|
+
.option('--remindPersons <remindPersons>', '需要催办的人员列表')
|
|
9655
9655
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'remind', runtimeContext, async ({ options, context }) => {
|
|
9656
9656
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeRemindCommand)(context, options);
|
|
9657
9657
|
}));
|
|
@@ -9660,18 +9660,18 @@ function registerBpmNamespace(program, runtimeContext) {
|
|
|
9660
9660
|
.command('update-and-complete')
|
|
9661
9661
|
.description('业务流程-更新数据并完成任务')
|
|
9662
9662
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
9663
|
-
.requiredOption('--entityId <entityId>', '
|
|
9664
|
-
.requiredOption('--objectId <objectId>', '
|
|
9665
|
-
.option('--data <data>', '
|
|
9666
|
-
.option('--nextTaskAssignee <nextTaskAssignee>', '
|
|
9667
|
-
.option('--addOrReplaceNextTaskAssignee <addOrReplaceNextTaskAssignee>', '
|
|
9668
|
-
.option('--needGetNextTaskInfo <needGetNextTaskInfo>', '
|
|
9663
|
+
.requiredOption('--entityId <entityId>', '业务对象ID')
|
|
9664
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
9665
|
+
.option('--data <data>', '数据内容')
|
|
9666
|
+
.option('--nextTaskAssignee <nextTaskAssignee>', '下一节点的处理人')
|
|
9667
|
+
.option('--addOrReplaceNextTaskAssignee <addOrReplaceNextTaskAssignee>', '新增或替换下一节点的处理人')
|
|
9668
|
+
.option('--needGetNextTaskInfo <needGetNextTaskInfo>', '是否需要获取下一任务详情')
|
|
9669
9669
|
.option('--result <result>', '结果')
|
|
9670
|
-
.option('--opinion <opinion>', '
|
|
9671
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
9672
|
-
.option('--removeVersion <removeVersion>', '
|
|
9673
|
-
.option('--originalData <originalData>', '
|
|
9674
|
-
.option('--optionInfo <optionInfo>', '
|
|
9670
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
9671
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
9672
|
+
.option('--removeVersion <removeVersion>', '待移除的版本号')
|
|
9673
|
+
.option('--originalData <originalData>', '原始数据内容')
|
|
9674
|
+
.option('--optionInfo <optionInfo>', '选项配置信息')
|
|
9675
9675
|
.action((0, command_ts_1.createCommandAction)('bpm runtime', 'update-and-complete', runtimeContext, async ({ options, context }) => {
|
|
9676
9676
|
await (0, bpm_runtime_command_ts_1.bpmRuntimeUpdateAndCompleteCommand)(context, options);
|
|
9677
9677
|
}));
|
|
@@ -9918,7 +9918,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
9918
9918
|
flowDef
|
|
9919
9919
|
.command('enable')
|
|
9920
9920
|
.description('Flow定义启用/停用')
|
|
9921
|
-
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '
|
|
9921
|
+
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
9922
9922
|
.option('--enable <enable>', '是否启用')
|
|
9923
9923
|
.action((0, command_ts_1.createCommandAction)('flow def', 'enable', runtimeContext, async ({ options, context }) => {
|
|
9924
9924
|
await (0, flow_def_command_ts_1.flowDefEnableCommand)(context, options);
|
|
@@ -9927,7 +9927,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
9927
9927
|
flowDef
|
|
9928
9928
|
.command('delete')
|
|
9929
9929
|
.description('Flow定义删除')
|
|
9930
|
-
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '
|
|
9930
|
+
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
9931
9931
|
.action((0, command_ts_1.createCommandAction)('flow def', 'delete', runtimeContext, async ({ options, context }) => {
|
|
9932
9932
|
await (0, flow_def_command_ts_1.flowDefDeleteCommand)(context, options);
|
|
9933
9933
|
}));
|
|
@@ -9935,7 +9935,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
9935
9935
|
flowDef
|
|
9936
9936
|
.command('publish')
|
|
9937
9937
|
.description('Flow定义发布并激活')
|
|
9938
|
-
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '
|
|
9938
|
+
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
9939
9939
|
.requiredOption('--workflowId <workflowId>', '流程定义版本ID')
|
|
9940
9940
|
.action((0, command_ts_1.createCommandAction)('flow def', 'publish', runtimeContext, async ({ options, context }) => {
|
|
9941
9941
|
await (0, flow_def_command_ts_1.flowDefPublishCommand)(context, options);
|
|
@@ -9963,7 +9963,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
9963
9963
|
.option('--publication <publication>', '版本定义的发布状态,保存定义的时候不应该传该参数')
|
|
9964
9964
|
.option('--version <version>', '版本号,与workflowId不同,workflowId为版本Id')
|
|
9965
9965
|
.option('--templateType <templateType>', '流程模板类型')
|
|
9966
|
-
.option('--identity <identity>', '
|
|
9966
|
+
.option('--identity <identity>', '统一流程的身份标识,用于版本管理')
|
|
9967
9967
|
.action((0, command_ts_1.createCommandAction)('flow def', 'deploy', runtimeContext, async ({ options, context }) => {
|
|
9968
9968
|
await (0, flow_def_command_ts_1.flowDefDeployCommand)(context, options);
|
|
9969
9969
|
}));
|
|
@@ -9997,7 +9997,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
9997
9997
|
.option('--publication <publication>', '版本定义的发布状态,保存定义的时候不应该传该参数')
|
|
9998
9998
|
.option('--version <version>', '版本号,与workflowId不同,workflowId为版本Id')
|
|
9999
9999
|
.option('--templateType <templateType>', '流程模板类型')
|
|
10000
|
-
.option('--identity <identity>', '
|
|
10000
|
+
.option('--identity <identity>', '统一流程的身份标识,用于版本管理')
|
|
10001
10001
|
.action((0, command_ts_1.createCommandAction)('flow def', 'update', runtimeContext, async ({ options, context }) => {
|
|
10002
10002
|
await (0, flow_def_command_ts_1.flowDefUpdateCommand)(context, options);
|
|
10003
10003
|
}));
|
|
@@ -10024,7 +10024,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10024
10024
|
.option('--publication <publication>', '版本定义的发布状态,保存定义的时候不应该传该参数')
|
|
10025
10025
|
.option('--version <version>', '版本号,与workflowId不同,workflowId为版本Id')
|
|
10026
10026
|
.option('--templateType <templateType>', '流程模板类型')
|
|
10027
|
-
.option('--identity <identity>', '
|
|
10027
|
+
.option('--identity <identity>', '统一流程的身份标识,用于版本管理')
|
|
10028
10028
|
.action((0, command_ts_1.createCommandAction)('flow def', 'save-as', runtimeContext, async ({ options, context }) => {
|
|
10029
10029
|
await (0, flow_def_command_ts_1.flowDefSaveAsCommand)(context, options);
|
|
10030
10030
|
}));
|
|
@@ -10032,7 +10032,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10032
10032
|
flowDef
|
|
10033
10033
|
.command('active')
|
|
10034
10034
|
.description('Flow定义激活')
|
|
10035
|
-
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '
|
|
10035
|
+
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
10036
10036
|
.requiredOption('--workflowId <workflowId>', '流程定义版本ID')
|
|
10037
10037
|
.action((0, command_ts_1.createCommandAction)('flow def', 'active', runtimeContext, async ({ options, context }) => {
|
|
10038
10038
|
await (0, flow_def_command_ts_1.flowDefActiveCommand)(context, options);
|
|
@@ -10054,10 +10054,10 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10054
10054
|
flowDef
|
|
10055
10055
|
.command('expression-check')
|
|
10056
10056
|
.description('Flow表达式校验')
|
|
10057
|
-
.option('--expression <expression>', '
|
|
10058
|
-
.option('--returnType <returnType>', '
|
|
10059
|
-
.option('--defaultToZero <defaultToZero>', '
|
|
10060
|
-
.option('--bindVariables <bindVariables>', '
|
|
10057
|
+
.option('--expression <expression>', '条件表达式')
|
|
10058
|
+
.option('--returnType <returnType>', '返回数据类型')
|
|
10059
|
+
.option('--defaultToZero <defaultToZero>', '是否默认设为零值')
|
|
10060
|
+
.option('--bindVariables <bindVariables>', '需要绑定的变量配置')
|
|
10061
10061
|
.action((0, command_ts_1.createCommandAction)('flow def', 'expression-check', runtimeContext, async ({ options, context }) => {
|
|
10062
10062
|
await (0, flow_def_command_ts_1.flowDefExpressionCheckCommand)(context, options);
|
|
10063
10063
|
}));
|
|
@@ -10065,12 +10065,12 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10065
10065
|
flowDef
|
|
10066
10066
|
.command('expression-debug')
|
|
10067
10067
|
.description('Flow表达式试算')
|
|
10068
|
-
.option('--expression <expression>', '
|
|
10069
|
-
.option('--returnType <returnType>', '
|
|
10070
|
-
.option('--defaultToZero <defaultToZero>', '
|
|
10071
|
-
.option('--bindVariables <bindVariables>', '
|
|
10072
|
-
.option('--decimalPlaces <decimalPlaces>', '
|
|
10073
|
-
.option('--bindings <bindings>', '
|
|
10068
|
+
.option('--expression <expression>', '条件表达式')
|
|
10069
|
+
.option('--returnType <returnType>', '返回数据类型')
|
|
10070
|
+
.option('--defaultToZero <defaultToZero>', '是否默认设为零值')
|
|
10071
|
+
.option('--bindVariables <bindVariables>', '需要绑定的变量配置')
|
|
10072
|
+
.option('--decimalPlaces <decimalPlaces>', '小数保留位数')
|
|
10073
|
+
.option('--bindings <bindings>', '绑定关系配置列表')
|
|
10074
10074
|
.action((0, command_ts_1.createCommandAction)('flow def', 'expression-debug', runtimeContext, async ({ options, context }) => {
|
|
10075
10075
|
await (0, flow_def_command_ts_1.flowDefExpressionDebugCommand)(context, options);
|
|
10076
10076
|
}));
|
|
@@ -10078,7 +10078,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10078
10078
|
flowDef
|
|
10079
10079
|
.command('find-business-buttons')
|
|
10080
10080
|
.description('阶段推进器操作任务,获取对象上的按钮')
|
|
10081
|
-
.requiredOption('--entityId <entityId>', '
|
|
10081
|
+
.requiredOption('--entityId <entityId>', '业务流程关联的数据对象ID')
|
|
10082
10082
|
.requiredOption('--flowType <flowType>', '流程类型')
|
|
10083
10083
|
.action((0, command_ts_1.createCommandAction)('flow def', 'find-business-buttons', runtimeContext, async ({ options, context }) => {
|
|
10084
10084
|
await (0, flow_def_command_ts_1.flowDefFindBusinessButtonsCommand)(context, options);
|
|
@@ -10089,25 +10089,25 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10089
10089
|
.description('查询流程相关配置')
|
|
10090
10090
|
.requiredOption('--flowType <flowType>', '流程类型')
|
|
10091
10091
|
.option('--type <type>', '单个获取的 配置key')
|
|
10092
|
-
.option('--terminal <terminal>', '
|
|
10092
|
+
.option('--terminal <terminal>', '终端类型')
|
|
10093
10093
|
.option('--types <types>', '多个获取的 配置key')
|
|
10094
10094
|
.action((0, command_ts_1.createCommandAction)('flow def', 'get-config', runtimeContext, async ({ options, context }) => {
|
|
10095
10095
|
await (0, flow_def_command_ts_1.flowDefGetConfigCommand)(context, options);
|
|
10096
10096
|
}));
|
|
10097
|
-
// flow def link-app
|
|
10097
|
+
// flow def get-link-app
|
|
10098
10098
|
flowDef
|
|
10099
|
-
.command('link-app
|
|
10099
|
+
.command('get-link-app')
|
|
10100
10100
|
.description('查询互联应用')
|
|
10101
|
-
.option('--linkAppId <linkAppId>', '
|
|
10102
|
-
.action((0, command_ts_1.createCommandAction)('flow def', 'link-app
|
|
10103
|
-
await (0, flow_def_command_ts_1.
|
|
10101
|
+
.option('--linkAppId <linkAppId>', '关联应用ID')
|
|
10102
|
+
.action((0, command_ts_1.createCommandAction)('flow def', 'get-link-app', runtimeContext, async ({ options, context }) => {
|
|
10103
|
+
await (0, flow_def_command_ts_1.flowDefGetLinkAppCommand)(context, options);
|
|
10104
10104
|
}));
|
|
10105
10105
|
// flow def get-flow-field-filter-config
|
|
10106
10106
|
flowDef
|
|
10107
10107
|
.command('get-flow-field-filter-config')
|
|
10108
10108
|
.description('获得流程过滤后的字段配置')
|
|
10109
10109
|
.requiredOption('--type <type>', 'workflow_bpm,approvalflow,workflow TODO 上线记得放开')
|
|
10110
|
-
.option('--entities <entities>', '
|
|
10110
|
+
.option('--entities <entities>', '实体列表')
|
|
10111
10111
|
.action((0, command_ts_1.createCommandAction)('flow def', 'get-flow-field-filter-config', runtimeContext, async ({ options, context }) => {
|
|
10112
10112
|
await (0, flow_def_command_ts_1.flowDefGetFlowFieldFilterConfigCommand)(context, options);
|
|
10113
10113
|
}));
|
|
@@ -10116,7 +10116,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10116
10116
|
.command('link-app-roles')
|
|
10117
10117
|
.description('查询应用下的角色列表')
|
|
10118
10118
|
.option('--appId <appId>', 'TODO: 2019/8/1 添加校验')
|
|
10119
|
-
.option('--appType <appType>', '
|
|
10119
|
+
.option('--appType <appType>', '应用类型标识')
|
|
10120
10120
|
.action((0, command_ts_1.createCommandAction)('flow def', 'link-app-roles', runtimeContext, async ({ options, context }) => {
|
|
10121
10121
|
await (0, flow_def_command_ts_1.flowDefLinkAppRolesCommand)(context, options);
|
|
10122
10122
|
}));
|
|
@@ -10142,11 +10142,11 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10142
10142
|
flowDef
|
|
10143
10143
|
.command('get-history')
|
|
10144
10144
|
.description('查询流程历史版本')
|
|
10145
|
-
.requiredOption('--type <type>', '
|
|
10146
|
-
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '
|
|
10145
|
+
.requiredOption('--type <type>', '流程元素的业务类型枚举值')
|
|
10146
|
+
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
10147
10147
|
.option('--workflowId <workflowId>', '流程定义版本ID')
|
|
10148
|
-
.option('--pageNumber <pageNumber>', '
|
|
10149
|
-
.option('--pageSize <pageSize>', '
|
|
10148
|
+
.option('--pageNumber <pageNumber>', '页码,从1开始')
|
|
10149
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
10150
10150
|
.action((0, command_ts_1.createCommandAction)('flow def', 'get-history', runtimeContext, async ({ options, context }) => {
|
|
10151
10151
|
await (0, flow_def_command_ts_1.flowDefGetHistoryCommand)(context, options);
|
|
10152
10152
|
}));
|
|
@@ -10166,7 +10166,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10166
10166
|
flowRt
|
|
10167
10167
|
.command('common-opinion-delete')
|
|
10168
10168
|
.description('工作流-删除常用意见')
|
|
10169
|
-
.requiredOption('--id <id>', 'ID')
|
|
10169
|
+
.requiredOption('--id <id>', '记录唯一标识ID')
|
|
10170
10170
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'common-opinion-delete', runtimeContext, async ({ options, context }) => {
|
|
10171
10171
|
await (0, flow_runtime_command_ts_1.flowRuntimeCommonOpinionDeleteCommand)(context, options);
|
|
10172
10172
|
}));
|
|
@@ -10174,10 +10174,10 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10174
10174
|
flowRt
|
|
10175
10175
|
.command('common-opinion-edit')
|
|
10176
10176
|
.description('工作流-编辑常用意见')
|
|
10177
|
-
.requiredOption('--id <id>', 'ID')
|
|
10178
|
-
.option('--opinion <opinion>', '
|
|
10179
|
-
.option('--opinionType <opinionType>', '
|
|
10180
|
-
.option('--multilang <multilang>', '
|
|
10177
|
+
.requiredOption('--id <id>', '记录唯一标识ID')
|
|
10178
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
10179
|
+
.option('--opinionType <opinionType>', '意见类型')
|
|
10180
|
+
.option('--multilang <multilang>', '是否启用多语言支持')
|
|
10181
10181
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'common-opinion-edit', runtimeContext, async ({ options, context }) => {
|
|
10182
10182
|
await (0, flow_runtime_command_ts_1.flowRuntimeCommonOpinionEditCommand)(context, options);
|
|
10183
10183
|
}));
|
|
@@ -10185,11 +10185,11 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10185
10185
|
flowRt
|
|
10186
10186
|
.command('common-opinion-list')
|
|
10187
10187
|
.description('工作流-获取常用意见列表')
|
|
10188
|
-
.option('--type <type>', '
|
|
10189
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
10190
|
-
.option('--activityId <activityId>', '
|
|
10191
|
-
.option('--opinionType <opinionType>', '
|
|
10192
|
-
.option('--isInstance <isInstance>', '
|
|
10188
|
+
.option('--type <type>', '类型标识')
|
|
10189
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
10190
|
+
.option('--activityId <activityId>', '流程节点ID')
|
|
10191
|
+
.option('--opinionType <opinionType>', '意见类型')
|
|
10192
|
+
.option('--isInstance <isInstance>', '是否为流程运行实例')
|
|
10193
10193
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'common-opinion-list', runtimeContext, async ({ options, context }) => {
|
|
10194
10194
|
await (0, flow_runtime_command_ts_1.flowRuntimeCommonOpinionListCommand)(context, options);
|
|
10195
10195
|
}));
|
|
@@ -10197,10 +10197,10 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10197
10197
|
flowRt
|
|
10198
10198
|
.command('common-opinion-save')
|
|
10199
10199
|
.description('工作流-保存常用意见')
|
|
10200
|
-
.option('--type <type>', '
|
|
10201
|
-
.option('--opinion <opinion>', '
|
|
10202
|
-
.option('--opinionType <opinionType>', '
|
|
10203
|
-
.option('--multilang <multilang>', '
|
|
10200
|
+
.option('--type <type>', '类型标识')
|
|
10201
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
10202
|
+
.option('--opinionType <opinionType>', '意见类型')
|
|
10203
|
+
.option('--multilang <multilang>', '是否启用多语言支持')
|
|
10204
10204
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'common-opinion-save', runtimeContext, async ({ options, context }) => {
|
|
10205
10205
|
await (0, flow_runtime_command_ts_1.flowRuntimeCommonOpinionSaveCommand)(context, options);
|
|
10206
10206
|
}));
|
|
@@ -10208,7 +10208,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10208
10208
|
flowRt
|
|
10209
10209
|
.command('common-opinion-set-priorities')
|
|
10210
10210
|
.description('工作流-设置优先级')
|
|
10211
|
-
.requiredOption('--commonOpinions <commonOpinions>', '
|
|
10211
|
+
.requiredOption('--commonOpinions <commonOpinions>', '常用审批意见列表')
|
|
10212
10212
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'common-opinion-set-priorities', runtimeContext, async ({ options, context }) => {
|
|
10213
10213
|
await (0, flow_runtime_command_ts_1.flowRuntimeCommonOpinionSetPrioritiesCommand)(context, options);
|
|
10214
10214
|
}));
|
|
@@ -10225,10 +10225,10 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10225
10225
|
.command('find-element-suits')
|
|
10226
10226
|
.description('工作流-查找匹配元素')
|
|
10227
10227
|
.option('--name <name>', '名称')
|
|
10228
|
-
.requiredOption('--entityId <entityId>', '
|
|
10229
|
-
.requiredOption('--type <type>', '
|
|
10230
|
-
.option('--page <page>', '
|
|
10231
|
-
.option('--pageSize <pageSize>', '
|
|
10228
|
+
.requiredOption('--entityId <entityId>', '业务对象ID')
|
|
10229
|
+
.requiredOption('--type <type>', '类型标识')
|
|
10230
|
+
.option('--page <page>', '分页页码')
|
|
10231
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
10232
10232
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'find-element-suits', runtimeContext, async ({ options, context }) => {
|
|
10233
10233
|
await (0, flow_runtime_command_ts_1.flowRuntimeFindElementSuitsCommand)(context, options);
|
|
10234
10234
|
}));
|
|
@@ -10236,10 +10236,10 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10236
10236
|
flowRt
|
|
10237
10237
|
.command('delay-task-reflush-and-execute')
|
|
10238
10238
|
.description('工作流-延迟任务刷新执行')
|
|
10239
|
-
.option('--operationType <operationType>', '
|
|
10239
|
+
.option('--operationType <operationType>', '操作的类型标识')
|
|
10240
10240
|
.option('--taskId <taskId>', '任务ID')
|
|
10241
|
-
.option('--type <type>', '
|
|
10242
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
10241
|
+
.option('--type <type>', '类型标识')
|
|
10242
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
10243
10243
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'delay-task-reflush-and-execute', runtimeContext, async ({ options, context }) => {
|
|
10244
10244
|
await (0, flow_runtime_command_ts_1.flowRuntimeDelayTaskReflushAndExecuteCommand)(context, options);
|
|
10245
10245
|
}));
|
|
@@ -10249,7 +10249,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10249
10249
|
.description('工作流-执行功能')
|
|
10250
10250
|
.option('--taskId <taskId>', '任务ID')
|
|
10251
10251
|
.option('--flowType <flowType>', '流程类型')
|
|
10252
|
-
.option('--functionType <functionType>', '
|
|
10252
|
+
.option('--functionType <functionType>', '函数类型标识')
|
|
10253
10253
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'execute-function', runtimeContext, async ({ options, context }) => {
|
|
10254
10254
|
await (0, flow_runtime_command_ts_1.flowRuntimeExecuteFunctionCommand)(context, options);
|
|
10255
10255
|
}));
|
|
@@ -10283,10 +10283,10 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10283
10283
|
flowRt
|
|
10284
10284
|
.command('log-detail')
|
|
10285
10285
|
.description('工作流-获取日志详情')
|
|
10286
|
-
.option('--type <type>', '
|
|
10287
|
-
.option('--bizType <bizType>', '
|
|
10288
|
-
.option('--id <id>', 'ID')
|
|
10289
|
-
.option('--matchId <matchId>', '
|
|
10286
|
+
.option('--type <type>', '类型标识')
|
|
10287
|
+
.option('--bizType <bizType>', '业务类型标识')
|
|
10288
|
+
.option('--id <id>', '记录唯一标识ID')
|
|
10289
|
+
.option('--matchId <matchId>', '匹配规则的ID')
|
|
10290
10290
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'log-detail', runtimeContext, async ({ options, context }) => {
|
|
10291
10291
|
await (0, flow_runtime_command_ts_1.flowRuntimeLogDetailCommand)(context, options);
|
|
10292
10292
|
}));
|
|
@@ -10295,8 +10295,8 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10295
10295
|
.command('instance-log-detail')
|
|
10296
10296
|
.description('工作流-获取流程实例日志详情')
|
|
10297
10297
|
.requiredOption('--flowType <flowType>', '流程类型')
|
|
10298
|
-
.requiredOption('--workflowInstanceId <workflowInstanceId>', '
|
|
10299
|
-
.option('--debug <debug>', '
|
|
10298
|
+
.requiredOption('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
10299
|
+
.option('--debug <debug>', '是否开启调试模式')
|
|
10300
10300
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'instance-log-detail', runtimeContext, async ({ options, context }) => {
|
|
10301
10301
|
await (0, flow_runtime_command_ts_1.flowRuntimeInstanceLogDetailCommand)(context, options);
|
|
10302
10302
|
}));
|
|
@@ -10304,13 +10304,13 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10304
10304
|
flowRt
|
|
10305
10305
|
.command('instance-logs')
|
|
10306
10306
|
.description('工作流-获取流程实例日志')
|
|
10307
|
-
.option('--traceId <traceId>', '
|
|
10308
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
10309
|
-
.option('--workflowInstanceId <workflowInstanceId>', '
|
|
10310
|
-
.option('--start <start>', '
|
|
10311
|
-
.option('--end <end>', '
|
|
10312
|
-
.option('--startInstanceId <startInstanceId>', '
|
|
10313
|
-
.option('--endInstanceId <endInstanceId>', '
|
|
10307
|
+
.option('--traceId <traceId>', '全链路追踪ID')
|
|
10308
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
10309
|
+
.option('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
10310
|
+
.option('--start <start>', '开始标记')
|
|
10311
|
+
.option('--end <end>', '结束标记')
|
|
10312
|
+
.option('--startInstanceId <startInstanceId>', '开始流程实例ID')
|
|
10313
|
+
.option('--endInstanceId <endInstanceId>', '结束流程实例ID')
|
|
10314
10314
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'instance-logs', runtimeContext, async ({ options, context }) => {
|
|
10315
10315
|
await (0, flow_runtime_command_ts_1.flowRuntimeInstanceLogsCommand)(context, options);
|
|
10316
10316
|
}));
|
|
@@ -10318,11 +10318,11 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10318
10318
|
flowRt
|
|
10319
10319
|
.command('hand-over-logs')
|
|
10320
10320
|
.description('工作流-交接日志')
|
|
10321
|
-
.option('--entityId <entityId>', '
|
|
10321
|
+
.option('--entityId <entityId>', '业务对象ID')
|
|
10322
10322
|
.option('--startTime <startTime>', '开始时间')
|
|
10323
10323
|
.option('--endTime <endTime>', '结束时间')
|
|
10324
|
-
.option('--pageNumber <pageNumber>', '
|
|
10325
|
-
.option('--pageSize <pageSize>', '
|
|
10324
|
+
.option('--pageNumber <pageNumber>', '页码,从1开始')
|
|
10325
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
10326
10326
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'hand-over-logs', runtimeContext, async ({ options, context }) => {
|
|
10327
10327
|
await (0, flow_runtime_command_ts_1.flowRuntimeHandOverLogsCommand)(context, options);
|
|
10328
10328
|
}));
|
|
@@ -10330,13 +10330,13 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10330
10330
|
flowRt
|
|
10331
10331
|
.command('log-list')
|
|
10332
10332
|
.description('工作流-获取日志列表')
|
|
10333
|
-
.requiredOption('--type <type>', '
|
|
10334
|
-
.requiredOption('--bizType <bizType>', '
|
|
10335
|
-
.requiredOption('--objectId <objectId>', '
|
|
10336
|
-
.requiredOption('--start <start>', '
|
|
10337
|
-
.requiredOption('--end <end>', '
|
|
10338
|
-
.option('--startId <startId>', '
|
|
10339
|
-
.option('--endId <endId>', '
|
|
10333
|
+
.requiredOption('--type <type>', '类型标识')
|
|
10334
|
+
.requiredOption('--bizType <bizType>', '业务类型标识')
|
|
10335
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
10336
|
+
.requiredOption('--start <start>', '开始标记')
|
|
10337
|
+
.requiredOption('--end <end>', '结束标记')
|
|
10338
|
+
.option('--startId <startId>', '开始位置的记录ID')
|
|
10339
|
+
.option('--endId <endId>', '结束位置的记录ID')
|
|
10340
10340
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'log-list', runtimeContext, async ({ options, context }) => {
|
|
10341
10341
|
await (0, flow_runtime_command_ts_1.flowRuntimeLogListCommand)(context, options);
|
|
10342
10342
|
}));
|
|
@@ -10344,8 +10344,8 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10344
10344
|
flowRt
|
|
10345
10345
|
.command('log-list-header')
|
|
10346
10346
|
.description('工作流-获取日志表头')
|
|
10347
|
-
.requiredOption('--type <type>', '
|
|
10348
|
-
.requiredOption('--bizType <bizType>', '
|
|
10347
|
+
.requiredOption('--type <type>', '类型标识')
|
|
10348
|
+
.requiredOption('--bizType <bizType>', '业务类型标识')
|
|
10349
10349
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'log-list-header', runtimeContext, async ({ options, context }) => {
|
|
10350
10350
|
await (0, flow_runtime_command_ts_1.flowRuntimeLogListHeaderCommand)(context, options);
|
|
10351
10351
|
}));
|
|
@@ -10353,12 +10353,12 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10353
10353
|
flowRt
|
|
10354
10354
|
.command('batch-process-tasks')
|
|
10355
10355
|
.description('工作流-批量处理任务')
|
|
10356
|
-
.requiredOption('--unprocessedTasks <unprocessedTasks>', '
|
|
10357
|
-
.option('--actionType <actionType>', '
|
|
10358
|
-
.option('--opinion <opinion>', '
|
|
10359
|
-
.requiredOption('--operationType <operationType>', '
|
|
10356
|
+
.requiredOption('--unprocessedTasks <unprocessedTasks>', '尚未处理的任务列表')
|
|
10357
|
+
.option('--actionType <actionType>', '操作类型')
|
|
10358
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
10359
|
+
.requiredOption('--operationType <operationType>', '操作的类型标识')
|
|
10360
10360
|
.option('--apiName <apiName>', 'API名称')
|
|
10361
|
-
.option('--compParam <compParam>', '
|
|
10361
|
+
.option('--compParam <compParam>', '对比参数')
|
|
10362
10362
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'batch-process-tasks', runtimeContext, async ({ options, context }) => {
|
|
10363
10363
|
await (0, flow_runtime_command_ts_1.flowRuntimeBatchProcessTasksCommand)(context, options);
|
|
10364
10364
|
}));
|
|
@@ -10366,11 +10366,11 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10366
10366
|
flowRt
|
|
10367
10367
|
.command('batch-replace-candidate-ids')
|
|
10368
10368
|
.description('工作流-批量替换候选人')
|
|
10369
|
-
.option('--type <type>', '
|
|
10369
|
+
.option('--type <type>', '类型标识')
|
|
10370
10370
|
.requiredOption('--targetUserId <targetUserId>', '目标用户ID')
|
|
10371
10371
|
.option('--sourceUserId <sourceUserId>', '源用户ID')
|
|
10372
10372
|
.option('--taskIds <taskIds>', '任务ID列表')
|
|
10373
|
-
.option('--opinion <opinion>', '
|
|
10373
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
10374
10374
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'batch-replace-candidate-ids', runtimeContext, async ({ options, context }) => {
|
|
10375
10375
|
await (0, flow_runtime_command_ts_1.flowRuntimeBatchReplaceCandidateIdsCommand)(context, options);
|
|
10376
10376
|
}));
|
|
@@ -10378,10 +10378,10 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10378
10378
|
flowRt
|
|
10379
10379
|
.command('get-batch-operation-custom-buttons')
|
|
10380
10380
|
.description('工作流-获取批量操作按钮')
|
|
10381
|
-
.option('--type <type>', '
|
|
10382
|
-
.option('--sessionKey <sessionKey>', '
|
|
10383
|
-
.option('--entityId <entityId>', '
|
|
10384
|
-
.requiredOption('--client <client>', '
|
|
10381
|
+
.option('--type <type>', '类型标识')
|
|
10382
|
+
.option('--sessionKey <sessionKey>', '会话密钥标识')
|
|
10383
|
+
.option('--entityId <entityId>', '业务对象ID')
|
|
10384
|
+
.requiredOption('--client <client>', '客户端类型标识')
|
|
10385
10385
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'get-batch-operation-custom-buttons', runtimeContext, async ({ options, context }) => {
|
|
10386
10386
|
await (0, flow_runtime_command_ts_1.flowRuntimeGetBatchOperationCustomButtonsCommand)(context, options);
|
|
10387
10387
|
}));
|
|
@@ -10389,8 +10389,8 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10389
10389
|
flowRt
|
|
10390
10390
|
.command('get-batch-operation-result')
|
|
10391
10391
|
.description('工作流-获取批量操作结果')
|
|
10392
|
-
.option('--requestId <requestId>', '
|
|
10393
|
-
.option('--operationType <operationType>', '
|
|
10392
|
+
.option('--requestId <requestId>', '请求唯一标识ID')
|
|
10393
|
+
.option('--operationType <operationType>', '操作类型')
|
|
10394
10394
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'get-batch-operation-result', runtimeContext, async ({ options, context }) => {
|
|
10395
10395
|
await (0, flow_runtime_command_ts_1.flowRuntimeGetBatchOperationResultCommand)(context, options);
|
|
10396
10396
|
}));
|
|
@@ -10398,7 +10398,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10398
10398
|
flowRt
|
|
10399
10399
|
.command('get-oneflow-current-black-tasks')
|
|
10400
10400
|
.description('工作流-获取当前要处理的任务')
|
|
10401
|
-
.requiredOption('--workflowInstanceId <workflowInstanceId>', '
|
|
10401
|
+
.requiredOption('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
10402
10402
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'get-oneflow-current-black-tasks', runtimeContext, async ({ options, context }) => {
|
|
10403
10403
|
await (0, flow_runtime_command_ts_1.flowRuntimeGetOneflowCurrentBlackTasksCommand)(context, options);
|
|
10404
10404
|
}));
|
|
@@ -10407,7 +10407,7 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10407
10407
|
.command('complete-oneflow-task')
|
|
10408
10408
|
.description('工作流-完成Flow任务')
|
|
10409
10409
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
10410
|
-
.requiredOption('--inputs <inputs>', '
|
|
10410
|
+
.requiredOption('--inputs <inputs>', '输入参数配置列表')
|
|
10411
10411
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'complete-oneflow-task', runtimeContext, async ({ options, context }) => {
|
|
10412
10412
|
await (0, flow_runtime_command_ts_1.flowRuntimeCompleteOneflowTaskCommand)(context, options);
|
|
10413
10413
|
}));
|
|
@@ -10415,16 +10415,16 @@ function registerFlowNamespace(program, runtimeContext) {
|
|
|
10415
10415
|
flowRt
|
|
10416
10416
|
.command('debug-oneflow')
|
|
10417
10417
|
.description('工作流-调试Flow')
|
|
10418
|
-
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '
|
|
10419
|
-
.option('--inputs <inputs>', '
|
|
10420
|
-
.option('--source <source>', '
|
|
10421
|
-
.option('--eventId <eventId>', '
|
|
10422
|
-
.option('--workflowId <workflowId>', '
|
|
10423
|
-
.option('--batchTrigger <batchTrigger>', '
|
|
10424
|
-
.option('--async <async>', '
|
|
10425
|
-
.option('--workflowInstanceId <workflowInstanceId>', '
|
|
10426
|
-
.option('--identity <identity>', '
|
|
10427
|
-
.option('--viaHttpShort <viaHttpShort>', '
|
|
10418
|
+
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
10419
|
+
.option('--inputs <inputs>', '输入参数配置列表')
|
|
10420
|
+
.option('--source <source>', '数据来源标识')
|
|
10421
|
+
.option('--eventId <eventId>', '事件ID')
|
|
10422
|
+
.option('--workflowId <workflowId>', '流程定义版本ID')
|
|
10423
|
+
.option('--batchTrigger <batchTrigger>', '是否批量触发执行')
|
|
10424
|
+
.option('--async <async>', '是否异步执行')
|
|
10425
|
+
.option('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
10426
|
+
.option('--identity <identity>', '身份标识信息')
|
|
10427
|
+
.option('--viaHttpShort <viaHttpShort>', '是否通过HTTP短连接方式')
|
|
10428
10428
|
.action((0, command_ts_1.createCommandAction)('flow runtime', 'debug-oneflow', runtimeContext, async ({ options, context }) => {
|
|
10429
10429
|
await (0, flow_runtime_command_ts_1.flowRuntimeDebugOneflowCommand)(context, options);
|
|
10430
10430
|
}));
|
|
@@ -10582,6 +10582,15 @@ Examples:
|
|
|
10582
10582
|
$ sharedev object-dev scene pull --objectApiName AccountObj --sceneApiName demo_scene
|
|
10583
10583
|
$ sharedev object-dev scene push --objectApiName AccountObj --sceneApiNames demo_scene,test_scene
|
|
10584
10584
|
$ sharedev object-dev scene update --objectApiName AccountObj --data "{}"
|
|
10585
|
+
$ sharedev object-dev object-mapping pull --objectApiNames AccountObj,LeadsObj
|
|
10586
|
+
$ sharedev object-dev object-mapping create --objectApiName AccountObj --data "{}"
|
|
10587
|
+
$ sharedev object-dev object-mapping update --objectApiName AccountObj --data "{}"
|
|
10588
|
+
$ sharedev object-dev object-mapping push --objectApiName AccountObj --ruleApiNames rule_xsh2__c,rule_xxa1__c
|
|
10589
|
+
$ sharedev object-dev convert-rule list --objectApiName AccountObj
|
|
10590
|
+
$ sharedev object-dev convert-rule pull --objectApiNames AccountObj,LeadsObj
|
|
10591
|
+
$ sharedev object-dev convert-rule create --objectApiName AccountObj --data "{}"
|
|
10592
|
+
$ sharedev object-dev convert-rule update --objectApiName AccountObj --data "{}"
|
|
10593
|
+
$ sharedev object-dev convert-rule push --objectApiName AccountObj --ruleApiNames rule_xsh2__c,rule_xxa1__c
|
|
10585
10594
|
`);
|
|
10586
10595
|
const objectCommand = objectDev.command('object').description('Object describe operations');
|
|
10587
10596
|
objectCommand
|
|
@@ -11019,6 +11028,96 @@ Examples:
|
|
|
11019
11028
|
void context;
|
|
11020
11029
|
await (0, index_ts_1.objectDevScenePushCommand)(options);
|
|
11021
11030
|
}));
|
|
11031
|
+
const objectMappingCommand = objectDev.command('object-mapping').description('Object mapping rule operations');
|
|
11032
|
+
objectMappingCommand
|
|
11033
|
+
.command('pull')
|
|
11034
|
+
.description('Pull object-mapping rules from remote and save locally')
|
|
11035
|
+
.requiredOption('--objectApiNames <apiNames>', 'Object apiNames, comma separated')
|
|
11036
|
+
.option('--force', 'Force overwrite local metadata files regardless of local status')
|
|
11037
|
+
.option('--yes', 'Skip the force confirmation prompt')
|
|
11038
|
+
.option('--skipOverwriteConfirm', 'Skip overwrite confirm for local metadata not in unchanged status and keep local file')
|
|
11039
|
+
.action((0, command_ts_1.createCommandAction)('object-dev', 'object-mapping.pull', runtimeContext, async ({ options, context }) => {
|
|
11040
|
+
void context;
|
|
11041
|
+
await (0, index_ts_1.objectDevObjectMappingPullCommand)(options);
|
|
11042
|
+
}));
|
|
11043
|
+
objectMappingCommand
|
|
11044
|
+
.command('create')
|
|
11045
|
+
.description('Create local object-mapping rule draft without remote API call')
|
|
11046
|
+
.requiredOption('--objectApiName <apiName>', 'Target object apiName')
|
|
11047
|
+
.requiredOption('--data <json>', 'Object-mapping rule data (JSON string)')
|
|
11048
|
+
.option('--force', 'Force overwrite local metadata file if it already exists')
|
|
11049
|
+
.action((0, command_ts_1.createCommandAction)('object-dev', 'object-mapping.create', runtimeContext, async ({ options, context }) => {
|
|
11050
|
+
void context;
|
|
11051
|
+
await (0, index_ts_1.objectDevObjectMappingCreateCommand)(options);
|
|
11052
|
+
}));
|
|
11053
|
+
objectMappingCommand
|
|
11054
|
+
.command('update')
|
|
11055
|
+
.description('Update local object-mapping rule draft without remote API call')
|
|
11056
|
+
.requiredOption('--objectApiName <apiName>', 'Target object apiName')
|
|
11057
|
+
.requiredOption('--data <json>', 'Object-mapping rule data (JSON string)')
|
|
11058
|
+
.action((0, command_ts_1.createCommandAction)('object-dev', 'object-mapping.update', runtimeContext, async ({ options, context }) => {
|
|
11059
|
+
void context;
|
|
11060
|
+
await (0, index_ts_1.objectDevObjectMappingUpdateCommand)(options);
|
|
11061
|
+
}));
|
|
11062
|
+
objectMappingCommand
|
|
11063
|
+
.command('push')
|
|
11064
|
+
.description('Push object-mapping rules to remote via shareCli execute (auto create or update)')
|
|
11065
|
+
.requiredOption('--objectApiName <apiName>', 'Target object apiName')
|
|
11066
|
+
.requiredOption('--ruleApiNames <ruleApiNames>', 'Target rule apiNames, comma separated')
|
|
11067
|
+
.option('--skipOverwriteConfirm', 'Skip overwrite confirm when pre/post pull encounters local metadata not in unchanged status')
|
|
11068
|
+
.action((0, command_ts_1.createCommandAction)('object-dev', 'object-mapping.push', runtimeContext, async ({ options, context }) => {
|
|
11069
|
+
void context;
|
|
11070
|
+
await (0, index_ts_1.objectDevObjectMappingPushCommand)(options);
|
|
11071
|
+
}));
|
|
11072
|
+
const convertRuleCommand = objectDev.command('convert-rule').description('Convert rule operations');
|
|
11073
|
+
convertRuleCommand
|
|
11074
|
+
.command('list')
|
|
11075
|
+
.description('List convert rules via shareCli execute')
|
|
11076
|
+
.requiredOption('--objectApiName <apiName>', 'Target object apiName')
|
|
11077
|
+
.action((0, command_ts_1.createCommandAction)('object-dev', 'convert-rule.list', runtimeContext, async ({ options, context }) => {
|
|
11078
|
+
void context;
|
|
11079
|
+
await (0, index_ts_1.objectDevConvertRuleListCommand)(options);
|
|
11080
|
+
}));
|
|
11081
|
+
convertRuleCommand
|
|
11082
|
+
.command('pull')
|
|
11083
|
+
.description('Pull convert rules from remote and save locally')
|
|
11084
|
+
.requiredOption('--objectApiNames <apiNames>', 'Object apiNames, comma separated')
|
|
11085
|
+
.option('--force', 'Force overwrite local metadata files regardless of local status')
|
|
11086
|
+
.option('--yes', 'Skip the force confirmation prompt')
|
|
11087
|
+
.option('--skipOverwriteConfirm', 'Skip overwrite confirm for local metadata not in unchanged status and keep local file')
|
|
11088
|
+
.action((0, command_ts_1.createCommandAction)('object-dev', 'convert-rule.pull', runtimeContext, async ({ options, context }) => {
|
|
11089
|
+
void context;
|
|
11090
|
+
await (0, index_ts_1.objectDevConvertRulePullCommand)(options);
|
|
11091
|
+
}));
|
|
11092
|
+
convertRuleCommand
|
|
11093
|
+
.command('create')
|
|
11094
|
+
.description('Create local convert-rule draft without remote API call')
|
|
11095
|
+
.requiredOption('--objectApiName <apiName>', 'Target object apiName')
|
|
11096
|
+
.requiredOption('--data <json>', 'Convert-rule data (JSON string)')
|
|
11097
|
+
.option('--force', 'Force overwrite local metadata file if it already exists')
|
|
11098
|
+
.action((0, command_ts_1.createCommandAction)('object-dev', 'convert-rule.create', runtimeContext, async ({ options, context }) => {
|
|
11099
|
+
void context;
|
|
11100
|
+
await (0, index_ts_1.objectDevConvertRuleCreateCommand)(options);
|
|
11101
|
+
}));
|
|
11102
|
+
convertRuleCommand
|
|
11103
|
+
.command('update')
|
|
11104
|
+
.description('Update local convert-rule draft without remote API call')
|
|
11105
|
+
.requiredOption('--objectApiName <apiName>', 'Target object apiName')
|
|
11106
|
+
.requiredOption('--data <json>', 'Convert-rule data (JSON string)')
|
|
11107
|
+
.action((0, command_ts_1.createCommandAction)('object-dev', 'convert-rule.update', runtimeContext, async ({ options, context }) => {
|
|
11108
|
+
void context;
|
|
11109
|
+
await (0, index_ts_1.objectDevConvertRuleUpdateCommand)(options);
|
|
11110
|
+
}));
|
|
11111
|
+
convertRuleCommand
|
|
11112
|
+
.command('push')
|
|
11113
|
+
.description('Push convert rules to remote via shareCli execute (auto create or update)')
|
|
11114
|
+
.requiredOption('--objectApiName <apiName>', 'Target object apiName')
|
|
11115
|
+
.requiredOption('--ruleApiNames <ruleApiNames>', 'Target rule apiNames, comma separated')
|
|
11116
|
+
.option('--skipOverwriteConfirm', 'Skip overwrite confirm when pre/post pull encounters local metadata not in unchanged status')
|
|
11117
|
+
.action((0, command_ts_1.createCommandAction)('object-dev', 'convert-rule.push', runtimeContext, async ({ options, context }) => {
|
|
11118
|
+
void context;
|
|
11119
|
+
await (0, index_ts_1.objectDevConvertRulePushCommand)(options);
|
|
11120
|
+
}));
|
|
11022
11121
|
}
|
|
11023
11122
|
|
|
11024
11123
|
|
|
@@ -11237,20 +11336,20 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11237
11336
|
.option('--description <description>', '阶段推进器定义描述')
|
|
11238
11337
|
.option('--stageFieldApiName <stageFieldApiName>', '对象阶段字段的apiName')
|
|
11239
11338
|
.option('--rangeCircleIds <rangeCircleIds>', '部门范围id')
|
|
11240
|
-
.option('--rangeEmployeeIds <rangeEmployeeIds>', '
|
|
11241
|
-
.option('--rangeGroupIds <rangeGroupIds>', '
|
|
11242
|
-
.option('--rangeRoleIds <rangeRoleIds>', '
|
|
11243
|
-
.option('--entityId <entityId>', '
|
|
11339
|
+
.option('--rangeEmployeeIds <rangeEmployeeIds>', '阶段推进器定义的可见人员ID范围')
|
|
11340
|
+
.option('--rangeGroupIds <rangeGroupIds>', '阶段推进器定义的可见用户组ID范围')
|
|
11341
|
+
.option('--rangeRoleIds <rangeRoleIds>', '阶段推进器定义的可见角色ID范围')
|
|
11342
|
+
.option('--entityId <entityId>', '阶段推进器关联的业务对象ID')
|
|
11244
11343
|
.option('--entityName <entityName>', '对象名称')
|
|
11245
|
-
.option('--activities <activities>', '
|
|
11246
|
-
.option('--variables <variables>', '
|
|
11247
|
-
.option('--transitions <transitions>', '
|
|
11248
|
-
.option('--createTime <createTime>', '
|
|
11249
|
-
.option('--modifyTime <modifyTime>', '
|
|
11344
|
+
.option('--activities <activities>', '阶段推进器中所有活动节点的配置列表')
|
|
11345
|
+
.option('--variables <variables>', '阶段推进器中使用的变量及其配置')
|
|
11346
|
+
.option('--transitions <transitions>', '阶段推进器中状态之间的流转条件和规则')
|
|
11347
|
+
.option('--createTime <createTime>', '阶段推进器定义的创建时间')
|
|
11348
|
+
.option('--modifyTime <modifyTime>', '阶段推进器定义的最后修改时间')
|
|
11250
11349
|
.option('--enable <enable>', '是否启用')
|
|
11251
|
-
.option('--delete <delete>', '
|
|
11252
|
-
.option('--creator <creator>', '
|
|
11253
|
-
.option('--modifier <modifier>', '
|
|
11350
|
+
.option('--delete <delete>', '删除标记')
|
|
11351
|
+
.option('--creator <creator>', '阶段推进器定义的创建人信息')
|
|
11352
|
+
.option('--modifier <modifier>', '阶段推进器定义的最后修改人信息')
|
|
11254
11353
|
.option('--priority <priority>', '优先级')
|
|
11255
11354
|
.option('--rule <rule>', 'Rule相关')
|
|
11256
11355
|
.option('--linkAppEnable <linkAppEnable>', '是否启用互联')
|
|
@@ -11283,20 +11382,20 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11283
11382
|
.option('--description <description>', '阶段推进器定义描述')
|
|
11284
11383
|
.option('--stageFieldApiName <stageFieldApiName>', '对象阶段字段的apiName')
|
|
11285
11384
|
.option('--rangeCircleIds <rangeCircleIds>', '部门范围id')
|
|
11286
|
-
.option('--rangeEmployeeIds <rangeEmployeeIds>', '
|
|
11287
|
-
.option('--rangeGroupIds <rangeGroupIds>', '
|
|
11288
|
-
.option('--rangeRoleIds <rangeRoleIds>', '
|
|
11289
|
-
.option('--entityId <entityId>', '
|
|
11385
|
+
.option('--rangeEmployeeIds <rangeEmployeeIds>', '阶段推进器定义的可见人员ID范围')
|
|
11386
|
+
.option('--rangeGroupIds <rangeGroupIds>', '阶段推进器定义的可见用户组ID范围')
|
|
11387
|
+
.option('--rangeRoleIds <rangeRoleIds>', '阶段推进器定义的可见角色ID范围')
|
|
11388
|
+
.option('--entityId <entityId>', '阶段推进器关联的业务对象ID')
|
|
11290
11389
|
.option('--entityName <entityName>', '对象名称')
|
|
11291
|
-
.option('--activities <activities>', '
|
|
11292
|
-
.option('--variables <variables>', '
|
|
11293
|
-
.option('--transitions <transitions>', '
|
|
11294
|
-
.option('--createTime <createTime>', '
|
|
11295
|
-
.option('--modifyTime <modifyTime>', '
|
|
11390
|
+
.option('--activities <activities>', '阶段推进器中所有活动节点的配置列表')
|
|
11391
|
+
.option('--variables <variables>', '阶段推进器中使用的变量及其配置')
|
|
11392
|
+
.option('--transitions <transitions>', '阶段推进器中状态之间的流转条件和规则')
|
|
11393
|
+
.option('--createTime <createTime>', '阶段推进器定义的创建时间')
|
|
11394
|
+
.option('--modifyTime <modifyTime>', '阶段推进器定义的最后修改时间')
|
|
11296
11395
|
.option('--enable <enable>', '是否启用')
|
|
11297
|
-
.option('--delete <delete>', '
|
|
11298
|
-
.option('--creator <creator>', '
|
|
11299
|
-
.option('--modifier <modifier>', '
|
|
11396
|
+
.option('--delete <delete>', '删除标记')
|
|
11397
|
+
.option('--creator <creator>', '阶段推进器定义的创建人信息')
|
|
11398
|
+
.option('--modifier <modifier>', '阶段推进器定义的最后修改人信息')
|
|
11300
11399
|
.option('--priority <priority>', '优先级')
|
|
11301
11400
|
.option('--rule <rule>', 'Rule相关')
|
|
11302
11401
|
.option('--linkAppEnable <linkAppEnable>', '是否启用互联')
|
|
@@ -11360,7 +11459,7 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11360
11459
|
.option('--entityId <entityId>', '对象的entityId 为空是查询全部对象 传值为查询指定对象')
|
|
11361
11460
|
.option('--supportPagingQuery <supportPagingQuery>', '是否为优先级列表获取定义信息,当为优先级获取的列表时,此值需要前端传值为false')
|
|
11362
11461
|
.option('--from <from>', '请求来源:manageGroup——请求来自分管小组,不受分管小组不受分管小组约束,null——受分管小组约束 /')
|
|
11363
|
-
.option('--sourceWorkflowIds <sourceWorkflowIds>', '
|
|
11462
|
+
.option('--sourceWorkflowIds <sourceWorkflowIds>', '源流程定义ID列表')
|
|
11364
11463
|
.action((0, command_ts_1.createCommandAction)('stage def', 'list', runtimeContext, async ({ options, context }) => {
|
|
11365
11464
|
await (0, stage_def_command_ts_1.stageDefListCommand)(context, options);
|
|
11366
11465
|
}));
|
|
@@ -11372,7 +11471,7 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11372
11471
|
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '流程主版本')
|
|
11373
11472
|
.requiredOption('--workflowId <workflowId>', '版本号')
|
|
11374
11473
|
.requiredOption('--entityId <entityId>', '对象apiName不能为空')
|
|
11375
|
-
.option('--applyAble <applyAble>', '
|
|
11474
|
+
.option('--applyAble <applyAble>', '是否可应用')
|
|
11376
11475
|
.action((0, command_ts_1.createCommandAction)('stage def', 'export-apply-data', runtimeContext, async ({ options, context }) => {
|
|
11377
11476
|
await (0, stage_def_command_ts_1.stageDefExportApplyDataCommand)(context, options);
|
|
11378
11477
|
}));
|
|
@@ -11389,7 +11488,7 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11389
11488
|
stageDef
|
|
11390
11489
|
.command('get-support-entity')
|
|
11391
11490
|
.description('查询阶段推进器支持选择的对象')
|
|
11392
|
-
.option('--useGroupManager <useGroupManager>', '
|
|
11491
|
+
.option('--useGroupManager <useGroupManager>', '是否使用部门负责人')
|
|
11393
11492
|
.action((0, command_ts_1.createCommandAction)('stage def', 'get-support-entity', runtimeContext, async ({ options, context }) => {
|
|
11394
11493
|
await (0, stage_def_command_ts_1.stageDefGetSupportEntityCommand)(context, options);
|
|
11395
11494
|
}));
|
|
@@ -11405,7 +11504,7 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11405
11504
|
stageDef
|
|
11406
11505
|
.command('find-references')
|
|
11407
11506
|
.description('查询关联对象')
|
|
11408
|
-
.requiredOption('--apiName <apiName>', '
|
|
11507
|
+
.requiredOption('--apiName <apiName>', 'API名称')
|
|
11409
11508
|
.action((0, command_ts_1.createCommandAction)('stage def', 'find-references', runtimeContext, async ({ options, context }) => {
|
|
11410
11509
|
await (0, stage_def_command_ts_1.stageDefFindReferencesCommand)(context, options);
|
|
11411
11510
|
}));
|
|
@@ -11424,8 +11523,8 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11424
11523
|
stageRt
|
|
11425
11524
|
.command('back-to-validate')
|
|
11426
11525
|
.description('阶段推进器-退回验证')
|
|
11427
|
-
.requiredOption('--workflowInstanceId <workflowInstanceId>', '
|
|
11428
|
-
.requiredOption('--stageId <stageId>', '
|
|
11526
|
+
.requiredOption('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
11527
|
+
.requiredOption('--stageId <stageId>', '阶段推进器ID')
|
|
11429
11528
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'back-to-validate', runtimeContext, async ({ options, context }) => {
|
|
11430
11529
|
await (0, stage_runtime_command_ts_1.stageRuntimeBackToValidateCommand)(context, options);
|
|
11431
11530
|
}));
|
|
@@ -11433,8 +11532,8 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11433
11532
|
stageRt
|
|
11434
11533
|
.command('get-instance-by-object')
|
|
11435
11534
|
.description('阶段推进器-通过对象ID获取实例信息')
|
|
11436
|
-
.requiredOption('--entityId <entityId>', '
|
|
11437
|
-
.requiredOption('--objectId <objectId>', '
|
|
11535
|
+
.requiredOption('--entityId <entityId>', '业务对象ID')
|
|
11536
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
11438
11537
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'get-instance-by-object', runtimeContext, async ({ options, context }) => {
|
|
11439
11538
|
await (0, stage_runtime_command_ts_1.stageRuntimeGetInstanceByObjectCommand)(context, options);
|
|
11440
11539
|
}));
|
|
@@ -11442,9 +11541,9 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11442
11541
|
stageRt
|
|
11443
11542
|
.command('cancel')
|
|
11444
11543
|
.description('阶段推进器-取消')
|
|
11445
|
-
.requiredOption('--entityId <entityId>', '
|
|
11446
|
-
.requiredOption('--objectId <objectId>', '
|
|
11447
|
-
.option('--cancelReason <cancelReason>', '
|
|
11544
|
+
.requiredOption('--entityId <entityId>', '业务对象ID')
|
|
11545
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
11546
|
+
.option('--cancelReason <cancelReason>', '取消的原因说明')
|
|
11448
11547
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'cancel', runtimeContext, async ({ options, context }) => {
|
|
11449
11548
|
await (0, stage_runtime_command_ts_1.stageRuntimeCancelCommand)(context, options);
|
|
11450
11549
|
}));
|
|
@@ -11452,11 +11551,11 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11452
11551
|
stageRt
|
|
11453
11552
|
.command('reactive')
|
|
11454
11553
|
.description('阶段推进器-激活')
|
|
11455
|
-
.requiredOption('--workflowInstanceId <workflowInstanceId>', '
|
|
11456
|
-
.requiredOption('--activeStageId <activeStageId>', '
|
|
11457
|
-
.option('--taskData <taskData>', '
|
|
11458
|
-
.option('--ignoreSkipInNoBlockValidate <ignoreSkipInNoBlockValidate>', '
|
|
11459
|
-
.option('--async <async>', '
|
|
11554
|
+
.requiredOption('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
11555
|
+
.requiredOption('--activeStageId <activeStageId>', '当前处于激活状态的阶段ID')
|
|
11556
|
+
.option('--taskData <taskData>', '任务相关数据')
|
|
11557
|
+
.option('--ignoreSkipInNoBlockValidate <ignoreSkipInNoBlockValidate>', '是否在无阻塞校验中跳过')
|
|
11558
|
+
.option('--async <async>', '是否异步执行')
|
|
11460
11559
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'reactive', runtimeContext, async ({ options, context }) => {
|
|
11461
11560
|
await (0, stage_runtime_command_ts_1.stageRuntimeReactiveCommand)(context, options);
|
|
11462
11561
|
}));
|
|
@@ -11464,7 +11563,7 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11464
11563
|
stageRt
|
|
11465
11564
|
.command('reactive-validate')
|
|
11466
11565
|
.description('阶段推进器-激活验证')
|
|
11467
|
-
.requiredOption('--workflowInstanceId <workflowInstanceId>', '
|
|
11566
|
+
.requiredOption('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
11468
11567
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'reactive-validate', runtimeContext, async ({ options, context }) => {
|
|
11469
11568
|
await (0, stage_runtime_command_ts_1.stageRuntimeReactiveValidateCommand)(context, options);
|
|
11470
11569
|
}));
|
|
@@ -11472,21 +11571,21 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11472
11571
|
stageRt
|
|
11473
11572
|
.command('trigger')
|
|
11474
11573
|
.description('阶段推进器-触发')
|
|
11475
|
-
.requiredOption('--entityId <entityId>', '
|
|
11476
|
-
.requiredOption('--objectId <objectId>', '
|
|
11477
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
11574
|
+
.requiredOption('--entityId <entityId>', '业务对象ID')
|
|
11575
|
+
.requiredOption('--objectId <objectId>', '数据记录ID')
|
|
11576
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '源流程定义标识ID')
|
|
11478
11577
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'trigger', runtimeContext, async ({ options, context }) => {
|
|
11479
11578
|
await (0, stage_runtime_command_ts_1.stageRuntimeTriggerCommand)(context, options);
|
|
11480
11579
|
}));
|
|
11481
11580
|
// stage runtime move-to
|
|
11482
11581
|
stageRt
|
|
11483
11582
|
.command('move-to')
|
|
11484
|
-
.description('
|
|
11485
|
-
.requiredOption('--workflowInstanceId <workflowInstanceId>', '
|
|
11486
|
-
.requiredOption('--stageId <stageId>', '
|
|
11487
|
-
.option('--comment <comment>', '
|
|
11488
|
-
.option('--ignoreSkipInNoBlockValidate <ignoreSkipInNoBlockValidate>', '
|
|
11489
|
-
.option('--async <async>', '
|
|
11583
|
+
.description('阶段推进器-移动到终端')
|
|
11584
|
+
.requiredOption('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
11585
|
+
.requiredOption('--stageId <stageId>', '阶段推进器ID')
|
|
11586
|
+
.option('--comment <comment>', '备注信息')
|
|
11587
|
+
.option('--ignoreSkipInNoBlockValidate <ignoreSkipInNoBlockValidate>', '是否在无阻塞校验中跳过')
|
|
11588
|
+
.option('--async <async>', '是否异步执行')
|
|
11490
11589
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'move-to', runtimeContext, async ({ options, context }) => {
|
|
11491
11590
|
await (0, stage_runtime_command_ts_1.stageRuntimeMoveToCommand)(context, options);
|
|
11492
11591
|
}));
|
|
@@ -11494,7 +11593,7 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11494
11593
|
stageRt
|
|
11495
11594
|
.command('query-move-to-result')
|
|
11496
11595
|
.description('阶段推进器-查询移动结果')
|
|
11497
|
-
.requiredOption('--jobId <jobId>', '
|
|
11596
|
+
.requiredOption('--jobId <jobId>', '后台任务ID')
|
|
11498
11597
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'query-move-to-result', runtimeContext, async ({ options, context }) => {
|
|
11499
11598
|
await (0, stage_runtime_command_ts_1.stageRuntimeQueryMoveToResultCommand)(context, options);
|
|
11500
11599
|
}));
|
|
@@ -11511,12 +11610,12 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11511
11610
|
stageRt
|
|
11512
11611
|
.command('complete-back-to-task')
|
|
11513
11612
|
.description('阶段推进器-完成退回任务')
|
|
11514
|
-
.option('--workflowInstanceId <workflowInstanceId>', '
|
|
11515
|
-
.option('--stageId <stageId>', '
|
|
11516
|
-
.option('--noBlockValidate <noBlockValidate>', '
|
|
11517
|
-
.option('--async <async>', '
|
|
11518
|
-
.option('--data <data>', '
|
|
11519
|
-
.option('--flowLayoutEditData <flowLayoutEditData>', '
|
|
11613
|
+
.option('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
11614
|
+
.option('--stageId <stageId>', '阶段推进器ID')
|
|
11615
|
+
.option('--noBlockValidate <noBlockValidate>', '无阻塞校验配置')
|
|
11616
|
+
.option('--async <async>', '是否异步执行')
|
|
11617
|
+
.option('--data <data>', '数据内容')
|
|
11618
|
+
.option('--flowLayoutEditData <flowLayoutEditData>', '流程布局的编辑数据')
|
|
11520
11619
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'complete-back-to-task', runtimeContext, async ({ options, context }) => {
|
|
11521
11620
|
await (0, stage_runtime_command_ts_1.stageRuntimeCompleteBackToTaskCommand)(context, options);
|
|
11522
11621
|
}));
|
|
@@ -11525,9 +11624,9 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11525
11624
|
.command('complete')
|
|
11526
11625
|
.description('阶段推进器-完成任务')
|
|
11527
11626
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
11528
|
-
.option('--comment <comment>', '
|
|
11529
|
-
.option('--data <data>', '
|
|
11530
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
11627
|
+
.option('--comment <comment>', '备注信息')
|
|
11628
|
+
.option('--data <data>', '数据内容')
|
|
11629
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
11531
11630
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'complete', runtimeContext, async ({ options, context }) => {
|
|
11532
11631
|
await (0, stage_runtime_command_ts_1.stageRuntimeCompleteCommand)(context, options);
|
|
11533
11632
|
}));
|
|
@@ -11536,10 +11635,10 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11536
11635
|
.command('complete-terminal-pre-task')
|
|
11537
11636
|
.description('阶段推进器-完成终结态前置任务')
|
|
11538
11637
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
11539
|
-
.option('--comment <comment>', '
|
|
11540
|
-
.option('--data <data>', '
|
|
11541
|
-
.option('--flowLayoutEditData <flowLayoutEditData>', '
|
|
11542
|
-
.option('--async <async>', '
|
|
11638
|
+
.option('--comment <comment>', '备注信息')
|
|
11639
|
+
.option('--data <data>', '数据内容')
|
|
11640
|
+
.option('--flowLayoutEditData <flowLayoutEditData>', '流程布局的编辑数据')
|
|
11641
|
+
.option('--async <async>', '是否异步执行')
|
|
11543
11642
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'complete-terminal-pre-task', runtimeContext, async ({ options, context }) => {
|
|
11544
11643
|
await (0, stage_runtime_command_ts_1.stageRuntimeCompleteTerminalPreTaskCommand)(context, options);
|
|
11545
11644
|
}));
|
|
@@ -11548,7 +11647,7 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11548
11647
|
.command('disassociate')
|
|
11549
11648
|
.description('阶段推进器-取消关联')
|
|
11550
11649
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
11551
|
-
.requiredOption('--objectIds <objectIds>', '
|
|
11650
|
+
.requiredOption('--objectIds <objectIds>', '数据记录ID列表')
|
|
11552
11651
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'disassociate', runtimeContext, async ({ options, context }) => {
|
|
11553
11652
|
await (0, stage_runtime_command_ts_1.stageRuntimeDisassociateCommand)(context, options);
|
|
11554
11653
|
}));
|
|
@@ -11557,13 +11656,13 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11557
11656
|
.command('edit')
|
|
11558
11657
|
.description('阶段推进器-编辑任务')
|
|
11559
11658
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
11560
|
-
.option('--details <details>', '
|
|
11561
|
-
.requiredOption('--objectData <objectData>', '
|
|
11562
|
-
.option('--optionInfo <optionInfo>', '
|
|
11563
|
-
.option('--notValidate <notValidate>', '
|
|
11564
|
-
.option('--originalData <originalData>', '
|
|
11565
|
-
.option('--originalDetails <originalDetails>', '
|
|
11566
|
-
.option('--instanceId <instanceId>', '
|
|
11659
|
+
.option('--details <details>', '明细数据列表')
|
|
11660
|
+
.requiredOption('--objectData <objectData>', '业务对象的数据内容')
|
|
11661
|
+
.option('--optionInfo <optionInfo>', '选项配置信息')
|
|
11662
|
+
.option('--notValidate <notValidate>', '是否跳过数据校验')
|
|
11663
|
+
.option('--originalData <originalData>', '原始数据内容')
|
|
11664
|
+
.option('--originalDetails <originalDetails>', '原始明细数据列表')
|
|
11665
|
+
.option('--instanceId <instanceId>', '流程实例ID')
|
|
11567
11666
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'edit', runtimeContext, async ({ options, context }) => {
|
|
11568
11667
|
await (0, stage_runtime_command_ts_1.stageRuntimeEditCommand)(context, options);
|
|
11569
11668
|
}));
|
|
@@ -11572,7 +11671,7 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11572
11671
|
.command('task')
|
|
11573
11672
|
.description('阶段推进器-通过ID获取')
|
|
11574
11673
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
11575
|
-
.option('--activityId <activityId>', '
|
|
11674
|
+
.option('--activityId <activityId>', '流程节点ID')
|
|
11576
11675
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'task', runtimeContext, async ({ options, context }) => {
|
|
11577
11676
|
await (0, stage_runtime_command_ts_1.stageRuntimeTaskCommand)(context, options);
|
|
11578
11677
|
}));
|
|
@@ -11580,8 +11679,8 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11580
11679
|
stageRt
|
|
11581
11680
|
.command('task-by-stage-id')
|
|
11582
11681
|
.description('阶段推进器-获取任务信息')
|
|
11583
|
-
.requiredOption('--workflowInstanceId <workflowInstanceId>', '
|
|
11584
|
-
.requiredOption('--stageId <stageId>', '
|
|
11682
|
+
.requiredOption('--workflowInstanceId <workflowInstanceId>', '流程运行实例ID')
|
|
11683
|
+
.requiredOption('--stageId <stageId>', '阶段推进器ID')
|
|
11585
11684
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'task-by-stage-id', runtimeContext, async ({ options, context }) => {
|
|
11586
11685
|
await (0, stage_runtime_command_ts_1.stageRuntimeTaskByStageIdCommand)(context, options);
|
|
11587
11686
|
}));
|
|
@@ -11590,7 +11689,7 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11590
11689
|
.command('regenerate-stage-tasks-handler')
|
|
11591
11690
|
.description('阶段推进器-重新生成处理人')
|
|
11592
11691
|
.requiredOption('--stageTaskId <stageTaskId>', '阶段任务ID')
|
|
11593
|
-
.option('--opinion <opinion>', '
|
|
11692
|
+
.option('--opinion <opinion>', '审批意见内容')
|
|
11594
11693
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'regenerate-stage-tasks-handler', runtimeContext, async ({ options, context }) => {
|
|
11595
11694
|
await (0, stage_runtime_command_ts_1.stageRuntimeRegenerateStageTasksHandlerCommand)(context, options);
|
|
11596
11695
|
}));
|
|
@@ -11607,9 +11706,9 @@ function registerStageNamespace(program, runtimeContext) {
|
|
|
11607
11706
|
.command('update-and-complete')
|
|
11608
11707
|
.description('阶段推进器-更新并完成任务')
|
|
11609
11708
|
.requiredOption('--taskId <taskId>', '任务ID')
|
|
11610
|
-
.option('--comment <comment>', '
|
|
11611
|
-
.option('--data <data>', '
|
|
11612
|
-
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '
|
|
11709
|
+
.option('--comment <comment>', '备注信息')
|
|
11710
|
+
.option('--data <data>', '数据内容')
|
|
11711
|
+
.option('--ignoreNoBlockValidate <ignoreNoBlockValidate>', '是否跳过无阻塞校验')
|
|
11613
11712
|
.action((0, command_ts_1.createCommandAction)('stage runtime', 'update-and-complete', runtimeContext, async ({ options, context }) => {
|
|
11614
11713
|
await (0, stage_runtime_command_ts_1.stageRuntimeUpdateAndCompleteCommand)(context, options);
|
|
11615
11714
|
}));
|
|
@@ -11673,33 +11772,33 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11673
11772
|
workflowDef
|
|
11674
11773
|
.command('create-definition')
|
|
11675
11774
|
.description('工作流定义创建')
|
|
11676
|
-
.option('--id <id>', 'ID')
|
|
11677
|
-
.option('--name <name>', '
|
|
11678
|
-
.option('--description <description>', '
|
|
11679
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
11680
|
-
.option('--entityId <entityId>', '
|
|
11681
|
-
.option('--entityName <entityName>', '
|
|
11682
|
-
.option('--type <type>', '
|
|
11683
|
-
.option('--rule <rule>', '
|
|
11684
|
-
.option('--workflow <workflow>', '
|
|
11685
|
-
.option('--scheduleTime <scheduleTime>', '
|
|
11686
|
-
.option('--triggerTypes <triggerTypes>', '
|
|
11687
|
-
.option('--modifier <modifier>', '
|
|
11688
|
-
.option('--modifyTime <modifyTime>', '
|
|
11689
|
-
.option('--creator <creator>', '
|
|
11775
|
+
.option('--id <id>', '工作流定义的数据库记录ID')
|
|
11776
|
+
.option('--name <name>', '工作流定义的名称')
|
|
11777
|
+
.option('--description <description>', '工作流定义的描述说明')
|
|
11778
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '需要操作的工作流定义唯一标识')
|
|
11779
|
+
.option('--entityId <entityId>', '工作流关联的业务对象ID,如客户对象、订单对象')
|
|
11780
|
+
.option('--entityName <entityName>', '工作流关联的业务对象显示名称')
|
|
11781
|
+
.option('--type <type>', '流程元素的业务类型枚举值')
|
|
11782
|
+
.option('--rule <rule>', '工作流的触发规则定义')
|
|
11783
|
+
.option('--workflow <workflow>', '工作流定义的完整JSON结构,包含节点、连线等信息')
|
|
11784
|
+
.option('--scheduleTime <scheduleTime>', '工作流定时触发的cron表达式或时间配置')
|
|
11785
|
+
.option('--triggerTypes <triggerTypes>', '工作流的触发类型,如数据变更触发、定时触发、手动触发等')
|
|
11786
|
+
.option('--modifier <modifier>', '最后修改人信息')
|
|
11787
|
+
.option('--modifyTime <modifyTime>', '最后修改时间')
|
|
11788
|
+
.option('--creator <creator>', '创建人信息')
|
|
11690
11789
|
.option('--createTime <createTime>', '创建时间')
|
|
11691
|
-
.option('--enable <enable>', '
|
|
11692
|
-
.option('--removeHistoryJob <removeHistoryJob>', '
|
|
11693
|
-
.option('--triggerNames <triggerNames>', '
|
|
11694
|
-
.option('--controlStatus <controlStatus>', '
|
|
11695
|
-
.option('--linkApp <linkApp>', '
|
|
11696
|
-
.option('--linkAppName <linkAppName>', '
|
|
11697
|
-
.option('--linkAppType <linkAppType>', '
|
|
11698
|
-
.option('--linkAppEnable <linkAppEnable>', '
|
|
11699
|
-
.option('--errorNotifyRecipients <errorNotifyRecipients>', '
|
|
11700
|
-
.option('--timezone <timezone>', '
|
|
11701
|
-
.option('--nameTranslateInfo <nameTranslateInfo>', '
|
|
11702
|
-
.option('--descTranslateInfo <descTranslateInfo>', '
|
|
11790
|
+
.option('--enable <enable>', '工作流定义是否启用')
|
|
11791
|
+
.option('--removeHistoryJob <removeHistoryJob>', '更新工作流定义时,是否删除旧的定时任务记录')
|
|
11792
|
+
.option('--triggerNames <triggerNames>', '工作流被触发后需要执行的动作名称')
|
|
11793
|
+
.option('--controlStatus <controlStatus>', '工作流定义的合规管控状态')
|
|
11794
|
+
.option('--linkApp <linkApp>', '工作流关联的外部系统应用ID')
|
|
11795
|
+
.option('--linkAppName <linkAppName>', '工作流关联的外部系统应用显示名称')
|
|
11796
|
+
.option('--linkAppType <linkAppType>', '工作流关联应用的类型,1:企业互联,2:客户互联')
|
|
11797
|
+
.option('--linkAppEnable <linkAppEnable>', '工作流是否启用与外部应用的互联互通')
|
|
11798
|
+
.option('--errorNotifyRecipients <errorNotifyRecipients>', '工作流执行异常时接收通知的用户列表')
|
|
11799
|
+
.option('--timezone <timezone>', '工作流定时触发使用的时区,如Asia/Shanghai')
|
|
11800
|
+
.option('--nameTranslateInfo <nameTranslateInfo>', '工作流名称的多语言翻译配置')
|
|
11801
|
+
.option('--descTranslateInfo <descTranslateInfo>', '工作流描述的多语言翻译配置')
|
|
11703
11802
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'create-definition', runtimeContext, async ({ options, context }) => {
|
|
11704
11803
|
await (0, workflow_def_command_ts_1.workflowDefCreateDefinitionCommand)(context, options);
|
|
11705
11804
|
}));
|
|
@@ -11707,33 +11806,33 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11707
11806
|
workflowDef
|
|
11708
11807
|
.command('update-definition')
|
|
11709
11808
|
.description('工作流定义更新')
|
|
11710
|
-
.option('--id <id>', 'ID')
|
|
11711
|
-
.option('--name <name>', '
|
|
11712
|
-
.option('--description <description>', '
|
|
11713
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
11714
|
-
.option('--entityId <entityId>', '
|
|
11715
|
-
.option('--entityName <entityName>', '
|
|
11716
|
-
.option('--type <type>', '
|
|
11717
|
-
.option('--rule <rule>', '
|
|
11718
|
-
.option('--workflow <workflow>', '
|
|
11719
|
-
.option('--scheduleTime <scheduleTime>', '
|
|
11720
|
-
.option('--triggerTypes <triggerTypes>', '
|
|
11721
|
-
.option('--modifier <modifier>', '
|
|
11722
|
-
.option('--modifyTime <modifyTime>', '
|
|
11723
|
-
.option('--creator <creator>', '
|
|
11809
|
+
.option('--id <id>', '工作流定义的数据库记录ID')
|
|
11810
|
+
.option('--name <name>', '工作流定义的名称')
|
|
11811
|
+
.option('--description <description>', '工作流定义的描述说明')
|
|
11812
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '需要操作的工作流定义唯一标识')
|
|
11813
|
+
.option('--entityId <entityId>', '工作流关联的业务对象ID,如客户对象、订单对象')
|
|
11814
|
+
.option('--entityName <entityName>', '工作流关联的业务对象显示名称')
|
|
11815
|
+
.option('--type <type>', '流程元素的业务类型枚举值')
|
|
11816
|
+
.option('--rule <rule>', '工作流的触发规则定义')
|
|
11817
|
+
.option('--workflow <workflow>', '工作流定义的完整JSON结构,包含节点、连线等信息')
|
|
11818
|
+
.option('--scheduleTime <scheduleTime>', '工作流定时触发的cron表达式或时间配置')
|
|
11819
|
+
.option('--triggerTypes <triggerTypes>', '工作流的触发类型,如数据变更触发、定时触发、手动触发等')
|
|
11820
|
+
.option('--modifier <modifier>', '最后修改人信息')
|
|
11821
|
+
.option('--modifyTime <modifyTime>', '最后修改时间')
|
|
11822
|
+
.option('--creator <creator>', '创建人信息')
|
|
11724
11823
|
.option('--createTime <createTime>', '创建时间')
|
|
11725
|
-
.option('--enable <enable>', '
|
|
11726
|
-
.option('--removeHistoryJob <removeHistoryJob>', '
|
|
11727
|
-
.option('--triggerNames <triggerNames>', '
|
|
11728
|
-
.option('--controlStatus <controlStatus>', '
|
|
11729
|
-
.option('--linkApp <linkApp>', '
|
|
11730
|
-
.option('--linkAppName <linkAppName>', '
|
|
11731
|
-
.option('--linkAppType <linkAppType>', '
|
|
11732
|
-
.option('--linkAppEnable <linkAppEnable>', '
|
|
11733
|
-
.option('--errorNotifyRecipients <errorNotifyRecipients>', '
|
|
11734
|
-
.option('--timezone <timezone>', '
|
|
11735
|
-
.option('--nameTranslateInfo <nameTranslateInfo>', '
|
|
11736
|
-
.option('--descTranslateInfo <descTranslateInfo>', '
|
|
11824
|
+
.option('--enable <enable>', '工作流定义是否启用')
|
|
11825
|
+
.option('--removeHistoryJob <removeHistoryJob>', '更新工作流定义时,是否删除旧的定时任务记录')
|
|
11826
|
+
.option('--triggerNames <triggerNames>', '工作流被触发后需要执行的动作名称')
|
|
11827
|
+
.option('--controlStatus <controlStatus>', '工作流定义的合规管控状态')
|
|
11828
|
+
.option('--linkApp <linkApp>', '工作流关联的外部系统应用ID')
|
|
11829
|
+
.option('--linkAppName <linkAppName>', '工作流关联的外部系统应用显示名称')
|
|
11830
|
+
.option('--linkAppType <linkAppType>', '工作流关联应用的类型,1:企业互联,2:客户互联')
|
|
11831
|
+
.option('--linkAppEnable <linkAppEnable>', '工作流是否启用与外部应用的互联互通')
|
|
11832
|
+
.option('--errorNotifyRecipients <errorNotifyRecipients>', '工作流执行异常时接收通知的用户列表')
|
|
11833
|
+
.option('--timezone <timezone>', '工作流定时触发使用的时区,如Asia/Shanghai')
|
|
11834
|
+
.option('--nameTranslateInfo <nameTranslateInfo>', '工作流名称的多语言翻译配置')
|
|
11835
|
+
.option('--descTranslateInfo <descTranslateInfo>', '工作流描述的多语言翻译配置')
|
|
11737
11836
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'update-definition', runtimeContext, async ({ options, context }) => {
|
|
11738
11837
|
await (0, workflow_def_command_ts_1.workflowDefUpdateDefinitionCommand)(context, options);
|
|
11739
11838
|
}));
|
|
@@ -11741,8 +11840,8 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11741
11840
|
workflowDef
|
|
11742
11841
|
.command('enable')
|
|
11743
11842
|
.description('工作流定义启用/停用')
|
|
11744
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
11745
|
-
.option('--enabled <enabled>', '
|
|
11843
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '需要操作的工作流定义唯一标识')
|
|
11844
|
+
.option('--enabled <enabled>', '工作流定义是否处于启用状态')
|
|
11746
11845
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'enable', runtimeContext, async ({ options, context }) => {
|
|
11747
11846
|
await (0, workflow_def_command_ts_1.workflowDefEnableCommand)(context, options);
|
|
11748
11847
|
}));
|
|
@@ -11750,7 +11849,7 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11750
11849
|
workflowDef
|
|
11751
11850
|
.command('delete-definition')
|
|
11752
11851
|
.description('工作流定义删除')
|
|
11753
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
11852
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '需要操作的工作流定义唯一标识')
|
|
11754
11853
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'delete-definition', runtimeContext, async ({ options, context }) => {
|
|
11755
11854
|
await (0, workflow_def_command_ts_1.workflowDefDeleteDefinitionCommand)(context, options);
|
|
11756
11855
|
}));
|
|
@@ -11758,7 +11857,7 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11758
11857
|
workflowDef
|
|
11759
11858
|
.command('detail')
|
|
11760
11859
|
.description('工作流定义详情查询')
|
|
11761
|
-
.option('--sourceWorkflowId <sourceWorkflowId>', '
|
|
11860
|
+
.option('--sourceWorkflowId <sourceWorkflowId>', '需要操作的工作流定义唯一标识')
|
|
11762
11861
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'detail', runtimeContext, async ({ options, context }) => {
|
|
11763
11862
|
await (0, workflow_def_command_ts_1.workflowDefDetailCommand)(context, options);
|
|
11764
11863
|
}));
|
|
@@ -11766,12 +11865,12 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11766
11865
|
workflowDef
|
|
11767
11866
|
.command('list')
|
|
11768
11867
|
.description('工作流定义列表查询')
|
|
11769
|
-
.option('--pageNumber <pageNumber>', '
|
|
11770
|
-
.option('--pageSize <pageSize>', '
|
|
11771
|
-
.option('--keyWord <keyWord>', '
|
|
11772
|
-
.option('--entityId <entityId>', '
|
|
11773
|
-
.option('--enable <enable>', '
|
|
11774
|
-
.option('--orderBy <orderBy>', '
|
|
11868
|
+
.option('--pageNumber <pageNumber>', '页码,从1开始')
|
|
11869
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
11870
|
+
.option('--keyWord <keyWord>', '搜索关键字')
|
|
11871
|
+
.option('--entityId <entityId>', '工作流关联的业务对象ID,如客户对象、订单对象')
|
|
11872
|
+
.option('--enable <enable>', '工作流定义是否启用')
|
|
11873
|
+
.option('--orderBy <orderBy>', '排序字段名称')
|
|
11775
11874
|
.option('--asc <asc>', 'true 生序 false (默认)降序 /')
|
|
11776
11875
|
.option('--from <from>', '请求来源:manageGroup——请求来自分管小组,不受分管小组不受分管小组约束,null——受分管小组约束 /')
|
|
11777
11876
|
.option('--supportPagingQuery <supportPagingQuery>', '是否查询所有定义,true 分页查询,false 全量查询')
|
|
@@ -11782,7 +11881,7 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11782
11881
|
workflowDef
|
|
11783
11882
|
.command('definition-by-id')
|
|
11784
11883
|
.description('工作流定义按WorkflowId查询')
|
|
11785
|
-
.option('--workflowId <workflowId>', '
|
|
11884
|
+
.option('--workflowId <workflowId>', '工作流定义的版本标识ID')
|
|
11786
11885
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'definition-by-id', runtimeContext, async ({ options, context }) => {
|
|
11787
11886
|
await (0, workflow_def_command_ts_1.workflowDefDefinitionByIdCommand)(context, options);
|
|
11788
11887
|
}));
|
|
@@ -11790,9 +11889,9 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11790
11889
|
workflowDef
|
|
11791
11890
|
.command('logs')
|
|
11792
11891
|
.description('工作流修改日志查询')
|
|
11793
|
-
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '
|
|
11794
|
-
.option('--pageNumber <pageNumber>', '
|
|
11795
|
-
.option('--pageSize <pageSize>', '
|
|
11892
|
+
.requiredOption('--sourceWorkflowId <sourceWorkflowId>', '需要操作的工作流定义唯一标识')
|
|
11893
|
+
.option('--pageNumber <pageNumber>', '页码,从1开始')
|
|
11894
|
+
.option('--pageSize <pageSize>', '每页返回条数')
|
|
11796
11895
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'logs', runtimeContext, async ({ options, context }) => {
|
|
11797
11896
|
await (0, workflow_def_command_ts_1.workflowDefLogsCommand)(context, options);
|
|
11798
11897
|
}));
|
|
@@ -11800,10 +11899,10 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11800
11899
|
workflowDef
|
|
11801
11900
|
.command('find-use-custom-objs')
|
|
11802
11901
|
.description('查询企业下的工作流关联对象列表')
|
|
11803
|
-
.requiredOption('--packageName <packageName>', '
|
|
11804
|
-
.option('--includeFieldsDesc <includeFieldsDesc>', '
|
|
11805
|
-
.option('--apiNames <apiNames>', '
|
|
11806
|
-
.option('--useGroupManager <useGroupManager>', '
|
|
11902
|
+
.requiredOption('--packageName <packageName>', 'package名称')
|
|
11903
|
+
.option('--includeFieldsDesc <includeFieldsDesc>', '是否包含字段描述')
|
|
11904
|
+
.option('--apiNames <apiNames>', 'API名称列表')
|
|
11905
|
+
.option('--useGroupManager <useGroupManager>', '是否使用部门负责人')
|
|
11807
11906
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'find-use-custom-objs', runtimeContext, async ({ options, context }) => {
|
|
11808
11907
|
await (0, workflow_def_command_ts_1.workflowDefFindUseCustomObjsCommand)(context, options);
|
|
11809
11908
|
}));
|
|
@@ -11811,8 +11910,8 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11811
11910
|
workflowDef
|
|
11812
11911
|
.command('find-describe')
|
|
11813
11912
|
.description('查看对象的描述')
|
|
11814
|
-
.requiredOption('--apiName <apiName>', '
|
|
11815
|
-
.option('--includeRef <includeRef>', '
|
|
11913
|
+
.requiredOption('--apiName <apiName>', 'API名称')
|
|
11914
|
+
.option('--includeRef <includeRef>', '是否包含引用信息')
|
|
11816
11915
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'find-describe', runtimeContext, async ({ options, context }) => {
|
|
11817
11916
|
await (0, workflow_def_command_ts_1.workflowDefFindDescribeCommand)(context, options);
|
|
11818
11917
|
}));
|
|
@@ -11832,7 +11931,7 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11832
11931
|
workflowDef
|
|
11833
11932
|
.command('get-external-notice')
|
|
11834
11933
|
.description('查询外部消息通知相关配置')
|
|
11835
|
-
.option('--entityId <entityId>', '
|
|
11934
|
+
.option('--entityId <entityId>', '工作流关联的业务对象ID,如客户对象、订单对象')
|
|
11836
11935
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'get-external-notice', runtimeContext, async ({ options, context }) => {
|
|
11837
11936
|
await (0, workflow_def_command_ts_1.workflowDefGetExternalNoticeCommand)(context, options);
|
|
11838
11937
|
}));
|
|
@@ -11840,10 +11939,10 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11840
11939
|
workflowDef
|
|
11841
11940
|
.command('find-custom-objs')
|
|
11842
11941
|
.description('查询企业下的可用自定义对象列表')
|
|
11843
|
-
.requiredOption('--packageName <packageName>', '
|
|
11844
|
-
.option('--includeFieldsDesc <includeFieldsDesc>', '
|
|
11845
|
-
.option('--apiNames <apiNames>', '
|
|
11846
|
-
.option('--useGroupManager <useGroupManager>', '
|
|
11942
|
+
.requiredOption('--packageName <packageName>', 'package名称')
|
|
11943
|
+
.option('--includeFieldsDesc <includeFieldsDesc>', '是否包含字段描述')
|
|
11944
|
+
.option('--apiNames <apiNames>', 'API名称列表')
|
|
11945
|
+
.option('--useGroupManager <useGroupManager>', '是否使用部门负责人')
|
|
11847
11946
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'find-custom-objs', runtimeContext, async ({ options, context }) => {
|
|
11848
11947
|
await (0, workflow_def_command_ts_1.workflowDefFindCustomObjsCommand)(context, options);
|
|
11849
11948
|
}));
|
|
@@ -11851,7 +11950,7 @@ function registerWorkflowNamespace(program, runtimeContext) {
|
|
|
11851
11950
|
workflowDef
|
|
11852
11951
|
.command('get-external-notice-outer-roles')
|
|
11853
11952
|
.description('查询外部通知互联应用的外部角色')
|
|
11854
|
-
.option('--channel <channel>', '
|
|
11953
|
+
.option('--channel <channel>', '通知渠道')
|
|
11855
11954
|
.action((0, command_ts_1.createCommandAction)('workflow def', 'get-external-notice-outer-roles', runtimeContext, async ({ options, context }) => {
|
|
11856
11955
|
await (0, workflow_def_command_ts_1.workflowDefGetExternalNoticeOuterRolesCommand)(context, options);
|
|
11857
11956
|
}));
|
|
@@ -12653,6 +12752,17 @@ const SHARE_CLI_COMMAND_PATH_MAP = {
|
|
|
12653
12752
|
create: ['object-dev', 'button', 'create'],
|
|
12654
12753
|
update: ['object-dev', 'button', 'update'],
|
|
12655
12754
|
},
|
|
12755
|
+
objectMapping: {
|
|
12756
|
+
'rule-detail-list': ['object-dev', 'object-mapping', 'rule-detail-list'],
|
|
12757
|
+
'create-rule': ['object-dev', 'object-mapping', 'create-rule'],
|
|
12758
|
+
'update-rule': ['object-dev', 'object-mapping', 'update-rule'],
|
|
12759
|
+
},
|
|
12760
|
+
convertRule: {
|
|
12761
|
+
'rule-list': ['object-dev', 'convert-rule', 'rule-list'],
|
|
12762
|
+
'rule-detail-list': ['object-dev', 'convert-rule', 'rule-detail-list'],
|
|
12763
|
+
'create-rule': ['object-dev', 'convert-rule', 'create-rule'],
|
|
12764
|
+
'update-rule': ['object-dev', 'convert-rule', 'update-rule'],
|
|
12765
|
+
},
|
|
12656
12766
|
dataAuth: {
|
|
12657
12767
|
getCommonPrivilegeList: ['access', 'data-auth', 'get-common-privilege-list'],
|
|
12658
12768
|
batchUpdateCommonPrivilege: ['access', 'data-auth', 'batch-update-common-privilege'],
|
|
@@ -12750,7 +12860,7 @@ const SHARE_CLI_COMMAND_PATH_MAP = {
|
|
|
12750
12860
|
expressionDebug: ['FlowDefExpressionDebug'],
|
|
12751
12861
|
findBusinessButtons: ['FlowDefFindBusinessButtons'],
|
|
12752
12862
|
getConfig: ['FlowDefGetFlowConfig'],
|
|
12753
|
-
|
|
12863
|
+
getLinkApp: ['FlowGetLinkApp'],
|
|
12754
12864
|
getFlowFieldFilterConfig: ['FlowDefGetFlowFieldFilterConfig'],
|
|
12755
12865
|
linkAppRoles: ['FlowDefGetRoleListByLinkApp'],
|
|
12756
12866
|
afterActionConfig: ['FlowDefAfterActionConfig'],
|
|
@@ -13647,6 +13757,18 @@ exports.XML_METADATA_RULES = {
|
|
|
13647
13757
|
apiNameVariable: 'apiName',
|
|
13648
13758
|
defaultOpenTag: '<CommonPrivilege xmlns="http://sharecrm.com/metadata">',
|
|
13649
13759
|
},
|
|
13760
|
+
ObjectMapping: {
|
|
13761
|
+
dirPathTemplate: 'tenant-config/objects/{objectApiName}/object-mappings',
|
|
13762
|
+
fileNameTemplate: '{apiName}.object-mapping-meta.xml',
|
|
13763
|
+
apiNameVariable: 'apiName',
|
|
13764
|
+
defaultOpenTag: '<ObjectMapping xmlns="http://sharecrm.com/metadata">',
|
|
13765
|
+
},
|
|
13766
|
+
ConvertRule: {
|
|
13767
|
+
dirPathTemplate: 'tenant-config/objects/{objectApiName}/convert-rules',
|
|
13768
|
+
fileNameTemplate: '{apiName}.convert-rule-meta.xml',
|
|
13769
|
+
apiNameVariable: 'apiName',
|
|
13770
|
+
defaultOpenTag: '<ConvertRule xmlns="http://sharecrm.com/metadata">',
|
|
13771
|
+
},
|
|
13650
13772
|
};
|
|
13651
13773
|
const getXmlMetadataRule = (headerName) => exports.XML_METADATA_RULES[headerName];
|
|
13652
13774
|
exports.getXmlMetadataRule = getXmlMetadataRule;
|
|
@@ -18313,7 +18435,7 @@ exports.flowDefExpressionCheckCommand = flowDefExpressionCheckCommand;
|
|
|
18313
18435
|
exports.flowDefExpressionDebugCommand = flowDefExpressionDebugCommand;
|
|
18314
18436
|
exports.flowDefFindBusinessButtonsCommand = flowDefFindBusinessButtonsCommand;
|
|
18315
18437
|
exports.flowDefGetConfigCommand = flowDefGetConfigCommand;
|
|
18316
|
-
exports.
|
|
18438
|
+
exports.flowDefGetLinkAppCommand = flowDefGetLinkAppCommand;
|
|
18317
18439
|
exports.flowDefGetFlowFieldFilterConfigCommand = flowDefGetFlowFieldFilterConfigCommand;
|
|
18318
18440
|
exports.flowDefLinkAppRolesCommand = flowDefLinkAppRolesCommand;
|
|
18319
18441
|
exports.flowDefAfterActionConfigCommand = flowDefAfterActionConfigCommand;
|
|
@@ -18593,6 +18715,8 @@ async function flowDefFindBusinessButtonsCommand(_context, options) {
|
|
|
18593
18715
|
async function flowDefGetConfigCommand(_context, options) {
|
|
18594
18716
|
void _context;
|
|
18595
18717
|
const typeMap = {
|
|
18718
|
+
flowType: "object",
|
|
18719
|
+
terminal: "object",
|
|
18596
18720
|
types: "array"
|
|
18597
18721
|
};
|
|
18598
18722
|
const data = buildOptionsData(options, typeMap);
|
|
@@ -18607,12 +18731,12 @@ async function flowDefGetConfigCommand(_context, options) {
|
|
|
18607
18731
|
throw error;
|
|
18608
18732
|
}
|
|
18609
18733
|
}
|
|
18610
|
-
async function
|
|
18734
|
+
async function flowDefGetLinkAppCommand(_context, options) {
|
|
18611
18735
|
void _context;
|
|
18612
18736
|
const data = buildOptionsData(options, {});
|
|
18613
|
-
logger_ts_1.loggerService.startLoading('Executing flowDef link-app
|
|
18737
|
+
logger_ts_1.loggerService.startLoading('Executing flowDef get-link-app');
|
|
18614
18738
|
try {
|
|
18615
|
-
const response = await (0, flow_def_service_ts_1.executeFlowDefShareCli)((0, request_execute_command_paths_ts_1.getShareCliCommandPath)('flowDef', '
|
|
18739
|
+
const response = await (0, flow_def_service_ts_1.executeFlowDefShareCli)((0, request_execute_command_paths_ts_1.getShareCliCommandPath)('flowDef', 'getLinkApp'), data);
|
|
18616
18740
|
logger_ts_1.loggerService.stopLoading();
|
|
18617
18741
|
logger_ts_1.loggerService.printJson(response);
|
|
18618
18742
|
}
|
|
@@ -19642,6 +19766,97 @@ async function objectDevButtonPushCommand(options) {
|
|
|
19642
19766
|
}
|
|
19643
19767
|
|
|
19644
19768
|
|
|
19769
|
+
/***/ },
|
|
19770
|
+
|
|
19771
|
+
/***/ 8759
|
|
19772
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
19773
|
+
|
|
19774
|
+
|
|
19775
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19776
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
19777
|
+
};
|
|
19778
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
19779
|
+
exports.objectDevConvertRuleListCommand = objectDevConvertRuleListCommand;
|
|
19780
|
+
exports.objectDevConvertRulePullCommand = objectDevConvertRulePullCommand;
|
|
19781
|
+
exports.objectDevConvertRuleCreateCommand = objectDevConvertRuleCreateCommand;
|
|
19782
|
+
exports.objectDevConvertRuleUpdateCommand = objectDevConvertRuleUpdateCommand;
|
|
19783
|
+
exports.objectDevConvertRulePushCommand = objectDevConvertRulePushCommand;
|
|
19784
|
+
const prompts_1 = __webpack_require__(118);
|
|
19785
|
+
const index_ts_1 = __webpack_require__(285);
|
|
19786
|
+
const logger_ts_1 = __webpack_require__(3333);
|
|
19787
|
+
const normalize_ts_1 = __importDefault(__webpack_require__(9268));
|
|
19788
|
+
function printErrorMessages(errorMessages) {
|
|
19789
|
+
if (!errorMessages.length) {
|
|
19790
|
+
return false;
|
|
19791
|
+
}
|
|
19792
|
+
errorMessages.forEach((error) => logger_ts_1.loggerService.error(error));
|
|
19793
|
+
return true;
|
|
19794
|
+
}
|
|
19795
|
+
async function objectDevConvertRuleListCommand(options) {
|
|
19796
|
+
const checkedObjectApiName = normalize_ts_1.default.normalizeString(options.objectApiName);
|
|
19797
|
+
if (!checkedObjectApiName || !/^[A-Za-z][A-Za-z0-9_]*$/.test(checkedObjectApiName)) {
|
|
19798
|
+
throw new Error('Invalid arguments: objectApiName is required.');
|
|
19799
|
+
}
|
|
19800
|
+
const rules = await (0, index_ts_1.fetchConvertRuleList)(checkedObjectApiName, null);
|
|
19801
|
+
logger_ts_1.loggerService.printTable(['apiName', 'label', 'ruleType', 'isActive'], rules.map((item) => [
|
|
19802
|
+
normalize_ts_1.default.normalizeString(item.api_name)
|
|
19803
|
+
?? normalize_ts_1.default.normalizeString(item.apiName) ?? '',
|
|
19804
|
+
normalize_ts_1.default.normalizeText(item.label),
|
|
19805
|
+
normalize_ts_1.default.normalizeText(item.rule_type)
|
|
19806
|
+
?? normalize_ts_1.default.normalizeText(item.ruleType)
|
|
19807
|
+
?? '',
|
|
19808
|
+
normalize_ts_1.default.normalizeText(item.is_active)
|
|
19809
|
+
?? normalize_ts_1.default.normalizeText(item.isActive)
|
|
19810
|
+
?? '',
|
|
19811
|
+
]));
|
|
19812
|
+
logger_ts_1.loggerService.success(`Convert-rule list completed: object=${checkedObjectApiName}, found=${rules.length}`);
|
|
19813
|
+
}
|
|
19814
|
+
async function objectDevConvertRulePullCommand(options) {
|
|
19815
|
+
if (options.force && options.skipOverwriteConfirm) {
|
|
19816
|
+
throw new Error('Invalid arguments: use either --force or --skipOverwriteConfirm, not both.');
|
|
19817
|
+
}
|
|
19818
|
+
if (options.force && options.yes !== true) {
|
|
19819
|
+
const confirmed = await (0, prompts_1.confirm)({
|
|
19820
|
+
message: 'This will force overwrite local convert-rule metadata files regardless of local status. Continue?',
|
|
19821
|
+
initialValue: false,
|
|
19822
|
+
});
|
|
19823
|
+
if (!confirmed) {
|
|
19824
|
+
throw new Error('Command cancelled.');
|
|
19825
|
+
}
|
|
19826
|
+
}
|
|
19827
|
+
const { objectApiNames, found, written, skipped, errorMessages } = await (0, index_ts_1.convertRulePullService)(options.objectApiNames, options.force === true, options.skipOverwriteConfirm === true);
|
|
19828
|
+
if (printErrorMessages(errorMessages))
|
|
19829
|
+
return;
|
|
19830
|
+
logger_ts_1.loggerService.success(`Convert-rule pull completed: objects=${objectApiNames.length}, found=${found}, written=${written}, skipped=${skipped}`);
|
|
19831
|
+
}
|
|
19832
|
+
async function objectDevConvertRuleCreateCommand(options) {
|
|
19833
|
+
const result = await (0, index_ts_1.convertRuleCreateService)(options.objectApiName, options.data, options.force === true);
|
|
19834
|
+
if (printErrorMessages(result.errorMessages))
|
|
19835
|
+
return;
|
|
19836
|
+
if (!result.filePath) {
|
|
19837
|
+
throw new Error('Convert-rule metadata not created.');
|
|
19838
|
+
}
|
|
19839
|
+
logger_ts_1.loggerService.success('Command completed: convert-rule create');
|
|
19840
|
+
logger_ts_1.loggerService.info(`Convert-rule metadata created: ${result.filePath}`);
|
|
19841
|
+
}
|
|
19842
|
+
async function objectDevConvertRuleUpdateCommand(options) {
|
|
19843
|
+
const result = await (0, index_ts_1.convertRuleUpdateService)(options.objectApiName, options.data);
|
|
19844
|
+
if (!result.filePath) {
|
|
19845
|
+
throw new Error('Convert-rule metadata not updated.');
|
|
19846
|
+
}
|
|
19847
|
+
if (printErrorMessages(result.errorMessages))
|
|
19848
|
+
return;
|
|
19849
|
+
logger_ts_1.loggerService.success('Command completed: convert-rule update');
|
|
19850
|
+
logger_ts_1.loggerService.info(`Convert-rule metadata updated: ${result.filePath}`);
|
|
19851
|
+
}
|
|
19852
|
+
async function objectDevConvertRulePushCommand(options) {
|
|
19853
|
+
const pushed = await (0, index_ts_1.convertRulePushService)(options.objectApiName, options.ruleApiNames, options.skipOverwriteConfirm === true);
|
|
19854
|
+
if (printErrorMessages(pushed.errorMessages))
|
|
19855
|
+
return;
|
|
19856
|
+
logger_ts_1.loggerService.success(`Push completed successfully: convert-rule (${pushed.objectApiName}.${pushed.apiName})`);
|
|
19857
|
+
}
|
|
19858
|
+
|
|
19859
|
+
|
|
19645
19860
|
/***/ },
|
|
19646
19861
|
|
|
19647
19862
|
/***/ 5379
|
|
@@ -19713,7 +19928,8 @@ async function objectDevFieldPushCommand(options) {
|
|
|
19713
19928
|
|
|
19714
19929
|
|
|
19715
19930
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
19716
|
-
exports.objectDevButtonPushCommand = exports.objectDevButtonUpdateCommand = exports.objectDevButtonCreateCommand = exports.objectDevButtonPullCommand = exports.objectDevButtonListCommand = exports.objectDevValidateRuleUpdateCommand = exports.objectDevValidateRulePushCommand = exports.objectDevValidateRulePullCommand = exports.objectDevValidateRuleListCommand = exports.objectDevValidateRuleCreateCommand = exports.objectDevLayoutRuleUpdateCommand = exports.objectDevLayoutRulePushCommand = exports.objectDevLayoutRulePullCommand = exports.objectDevLayoutRuleListCommand = exports.objectDevLayoutRuleCreateCommand = exports.objectDevLayoutUpdateCommand = exports.objectDevLayoutPushCommand = exports.objectDevLayoutPullCommand = exports.objectDevLayoutListCommand = exports.objectDevLayoutEnableEditCommand = exports.objectDevLayoutEditStatusCommand = exports.objectDevLayoutCreateCommand = exports.objectDevFieldPushCommand = exports.objectDevFieldUpdateCommand = exports.objectDevFieldCreateCommand = exports.objectDevFieldListCommand = exports.objectDevObjectPushCommand = exports.objectDevObjectUpdateCommand = exports.objectDevObjectCreateCommand = exports.objectDevSceneUpdateCommand = exports.objectDevScenePushCommand = exports.objectDevScenePullCommand = exports.objectDevSceneListCommand = exports.objectDevSceneCreateCommand = exports.objectDevOptionSetUpdateCommand = exports.objectDevOptionSetPushCommand = exports.objectDevOptionSetPullCommand = exports.objectDevOptionSetListCommand = exports.objectDevOptionSetDeleteCommand = exports.objectDevOptionSetCreateCommand = exports.objectDevObjectRelatedPullCommand = exports.ObjectDevObjectPullOptions = exports.ObjectDevObjectListOptions = exports.objectDevObjectPullCommand = exports.objectDevObjectListCommand = void 0;
|
|
19931
|
+
exports.objectDevConvertRuleListCommand = exports.objectDevObjectMappingPushCommand = exports.objectDevObjectMappingUpdateCommand = exports.objectDevObjectMappingCreateCommand = exports.objectDevObjectMappingPullCommand = exports.objectDevButtonPushCommand = exports.objectDevButtonUpdateCommand = exports.objectDevButtonCreateCommand = exports.objectDevButtonPullCommand = exports.objectDevButtonListCommand = exports.objectDevValidateRuleUpdateCommand = exports.objectDevValidateRulePushCommand = exports.objectDevValidateRulePullCommand = exports.objectDevValidateRuleListCommand = exports.objectDevValidateRuleCreateCommand = exports.objectDevLayoutRuleUpdateCommand = exports.objectDevLayoutRulePushCommand = exports.objectDevLayoutRulePullCommand = exports.objectDevLayoutRuleListCommand = exports.objectDevLayoutRuleCreateCommand = exports.objectDevLayoutUpdateCommand = exports.objectDevLayoutPushCommand = exports.objectDevLayoutPullCommand = exports.objectDevLayoutListCommand = exports.objectDevLayoutEnableEditCommand = exports.objectDevLayoutEditStatusCommand = exports.objectDevLayoutCreateCommand = exports.objectDevFieldPushCommand = exports.objectDevFieldUpdateCommand = exports.objectDevFieldCreateCommand = exports.objectDevFieldListCommand = exports.objectDevObjectPushCommand = exports.objectDevObjectUpdateCommand = exports.objectDevObjectCreateCommand = exports.objectDevSceneUpdateCommand = exports.objectDevScenePushCommand = exports.objectDevScenePullCommand = exports.objectDevSceneListCommand = exports.objectDevSceneCreateCommand = exports.objectDevOptionSetUpdateCommand = exports.objectDevOptionSetPushCommand = exports.objectDevOptionSetPullCommand = exports.objectDevOptionSetListCommand = exports.objectDevOptionSetDeleteCommand = exports.objectDevOptionSetCreateCommand = exports.objectDevObjectRelatedPullCommand = exports.ObjectDevObjectPullOptions = exports.ObjectDevObjectListOptions = exports.objectDevObjectPullCommand = exports.objectDevObjectListCommand = void 0;
|
|
19932
|
+
exports.objectDevConvertRulePushCommand = exports.objectDevConvertRuleUpdateCommand = exports.objectDevConvertRuleCreateCommand = exports.objectDevConvertRulePullCommand = void 0;
|
|
19717
19933
|
var object_ts_1 = __webpack_require__(1268);
|
|
19718
19934
|
Object.defineProperty(exports, "objectDevObjectListCommand", ({ enumerable: true, get: function () { return object_ts_1.objectDevObjectListCommand; } }));
|
|
19719
19935
|
Object.defineProperty(exports, "objectDevObjectPullCommand", ({ enumerable: true, get: function () { return object_ts_1.objectDevObjectPullCommand; } }));
|
|
@@ -19769,6 +19985,17 @@ Object.defineProperty(exports, "objectDevButtonPullCommand", ({ enumerable: true
|
|
|
19769
19985
|
Object.defineProperty(exports, "objectDevButtonCreateCommand", ({ enumerable: true, get: function () { return button_ts_1.objectDevButtonCreateCommand; } }));
|
|
19770
19986
|
Object.defineProperty(exports, "objectDevButtonUpdateCommand", ({ enumerable: true, get: function () { return button_ts_1.objectDevButtonUpdateCommand; } }));
|
|
19771
19987
|
Object.defineProperty(exports, "objectDevButtonPushCommand", ({ enumerable: true, get: function () { return button_ts_1.objectDevButtonPushCommand; } }));
|
|
19988
|
+
var object_mapping_ts_1 = __webpack_require__(455);
|
|
19989
|
+
Object.defineProperty(exports, "objectDevObjectMappingPullCommand", ({ enumerable: true, get: function () { return object_mapping_ts_1.objectDevObjectMappingPullCommand; } }));
|
|
19990
|
+
Object.defineProperty(exports, "objectDevObjectMappingCreateCommand", ({ enumerable: true, get: function () { return object_mapping_ts_1.objectDevObjectMappingCreateCommand; } }));
|
|
19991
|
+
Object.defineProperty(exports, "objectDevObjectMappingUpdateCommand", ({ enumerable: true, get: function () { return object_mapping_ts_1.objectDevObjectMappingUpdateCommand; } }));
|
|
19992
|
+
Object.defineProperty(exports, "objectDevObjectMappingPushCommand", ({ enumerable: true, get: function () { return object_mapping_ts_1.objectDevObjectMappingPushCommand; } }));
|
|
19993
|
+
var convert_rule_ts_1 = __webpack_require__(8759);
|
|
19994
|
+
Object.defineProperty(exports, "objectDevConvertRuleListCommand", ({ enumerable: true, get: function () { return convert_rule_ts_1.objectDevConvertRuleListCommand; } }));
|
|
19995
|
+
Object.defineProperty(exports, "objectDevConvertRulePullCommand", ({ enumerable: true, get: function () { return convert_rule_ts_1.objectDevConvertRulePullCommand; } }));
|
|
19996
|
+
Object.defineProperty(exports, "objectDevConvertRuleCreateCommand", ({ enumerable: true, get: function () { return convert_rule_ts_1.objectDevConvertRuleCreateCommand; } }));
|
|
19997
|
+
Object.defineProperty(exports, "objectDevConvertRuleUpdateCommand", ({ enumerable: true, get: function () { return convert_rule_ts_1.objectDevConvertRuleUpdateCommand; } }));
|
|
19998
|
+
Object.defineProperty(exports, "objectDevConvertRulePushCommand", ({ enumerable: true, get: function () { return convert_rule_ts_1.objectDevConvertRulePushCommand; } }));
|
|
19772
19999
|
|
|
19773
20000
|
|
|
19774
20001
|
/***/ },
|
|
@@ -19999,6 +20226,73 @@ function resolveLayoutPullObjectApiNames(objectApiNames, objectApiName) {
|
|
|
19999
20226
|
}
|
|
20000
20227
|
|
|
20001
20228
|
|
|
20229
|
+
/***/ },
|
|
20230
|
+
|
|
20231
|
+
/***/ 455
|
|
20232
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
20233
|
+
|
|
20234
|
+
|
|
20235
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
20236
|
+
exports.objectDevObjectMappingPullCommand = objectDevObjectMappingPullCommand;
|
|
20237
|
+
exports.objectDevObjectMappingCreateCommand = objectDevObjectMappingCreateCommand;
|
|
20238
|
+
exports.objectDevObjectMappingUpdateCommand = objectDevObjectMappingUpdateCommand;
|
|
20239
|
+
exports.objectDevObjectMappingPushCommand = objectDevObjectMappingPushCommand;
|
|
20240
|
+
const prompts_1 = __webpack_require__(118);
|
|
20241
|
+
const index_ts_1 = __webpack_require__(285);
|
|
20242
|
+
const logger_ts_1 = __webpack_require__(3333);
|
|
20243
|
+
function printErrorMessages(errorMessages) {
|
|
20244
|
+
if (!errorMessages.length) {
|
|
20245
|
+
return false;
|
|
20246
|
+
}
|
|
20247
|
+
errorMessages.forEach((error) => logger_ts_1.loggerService.error(error));
|
|
20248
|
+
return true;
|
|
20249
|
+
}
|
|
20250
|
+
async function objectDevObjectMappingPullCommand(options) {
|
|
20251
|
+
if (options.force && options.skipOverwriteConfirm) {
|
|
20252
|
+
throw new Error('Invalid arguments: use either --force or --skipOverwriteConfirm, not both.');
|
|
20253
|
+
}
|
|
20254
|
+
if (options.force && options.yes !== true) {
|
|
20255
|
+
const confirmed = await (0, prompts_1.confirm)({
|
|
20256
|
+
message: 'This will force overwrite local object-mapping metadata files regardless of local status. Continue?',
|
|
20257
|
+
initialValue: false,
|
|
20258
|
+
});
|
|
20259
|
+
if (!confirmed) {
|
|
20260
|
+
throw new Error('Command cancelled.');
|
|
20261
|
+
}
|
|
20262
|
+
}
|
|
20263
|
+
const { objectApiNames, found, written, skipped, errorMessages } = await (0, index_ts_1.objectMappingPullService)(options.objectApiNames, options.force === true, options.skipOverwriteConfirm === true);
|
|
20264
|
+
if (printErrorMessages(errorMessages))
|
|
20265
|
+
return;
|
|
20266
|
+
logger_ts_1.loggerService.success(`Object-mapping pull completed: objects=${objectApiNames.length}, found=${found}, written=${written}, skipped=${skipped}`);
|
|
20267
|
+
}
|
|
20268
|
+
async function objectDevObjectMappingCreateCommand(options) {
|
|
20269
|
+
const result = await (0, index_ts_1.objectMappingCreateService)(options.objectApiName, options.data, options.force === true);
|
|
20270
|
+
if (printErrorMessages(result.errorMessages))
|
|
20271
|
+
return;
|
|
20272
|
+
if (!result.filePath) {
|
|
20273
|
+
throw new Error('Object-mapping metadata not created.');
|
|
20274
|
+
}
|
|
20275
|
+
logger_ts_1.loggerService.success('Command completed: object-mapping create');
|
|
20276
|
+
logger_ts_1.loggerService.info(`Object-mapping metadata created: ${result.filePath}`);
|
|
20277
|
+
}
|
|
20278
|
+
async function objectDevObjectMappingUpdateCommand(options) {
|
|
20279
|
+
const result = await (0, index_ts_1.objectMappingUpdateService)(options.objectApiName, options.data);
|
|
20280
|
+
if (!result.filePath) {
|
|
20281
|
+
throw new Error('Object-mapping metadata not updated.');
|
|
20282
|
+
}
|
|
20283
|
+
if (printErrorMessages(result.errorMessages))
|
|
20284
|
+
return;
|
|
20285
|
+
logger_ts_1.loggerService.success('Command completed: object-mapping update');
|
|
20286
|
+
logger_ts_1.loggerService.info(`Object-mapping metadata updated: ${result.filePath}`);
|
|
20287
|
+
}
|
|
20288
|
+
async function objectDevObjectMappingPushCommand(options) {
|
|
20289
|
+
const pushed = await (0, index_ts_1.objectMappingPushService)(options.objectApiName, options.ruleApiNames, options.skipOverwriteConfirm === true);
|
|
20290
|
+
if (printErrorMessages(pushed.errorMessages))
|
|
20291
|
+
return;
|
|
20292
|
+
logger_ts_1.loggerService.success(`Push completed successfully: object-mapping (${pushed.objectApiName}.${pushed.apiName})`);
|
|
20293
|
+
}
|
|
20294
|
+
|
|
20295
|
+
|
|
20002
20296
|
/***/ },
|
|
20003
20297
|
|
|
20004
20298
|
/***/ 866
|
|
@@ -20869,6 +21163,419 @@ const buttonUpdateService = async (objectApiName, data) => {
|
|
|
20869
21163
|
exports.buttonUpdateService = buttonUpdateService;
|
|
20870
21164
|
|
|
20871
21165
|
|
|
21166
|
+
/***/ },
|
|
21167
|
+
|
|
21168
|
+
/***/ 1959
|
|
21169
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
21170
|
+
|
|
21171
|
+
|
|
21172
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21173
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21174
|
+
};
|
|
21175
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
21176
|
+
exports.convertRuleCreateService = void 0;
|
|
21177
|
+
const normalize_ts_1 = __importDefault(__webpack_require__(9268));
|
|
21178
|
+
const index_ts_1 = __webpack_require__(9985);
|
|
21179
|
+
const convert_rule_list_ts_1 = __webpack_require__(8031);
|
|
21180
|
+
const xmlMetadataManager = new index_ts_1.XmlMetadataManager();
|
|
21181
|
+
const convertRuleCreateService = async (objectApiName, data, force) => {
|
|
21182
|
+
const checkedObjectApiName = normalize_ts_1.default.normalizeString(objectApiName);
|
|
21183
|
+
if (!checkedObjectApiName || !/^[A-Za-z][A-Za-z0-9_]*$/.test(checkedObjectApiName)) {
|
|
21184
|
+
throw new Error('Invalid arguments: objectApiName is required.');
|
|
21185
|
+
}
|
|
21186
|
+
const raw = normalize_ts_1.default.normalizeString(data);
|
|
21187
|
+
if (!raw) {
|
|
21188
|
+
throw new Error('Invalid arguments: data is required.');
|
|
21189
|
+
}
|
|
21190
|
+
const ruleData = JSON.parse(raw);
|
|
21191
|
+
if (!ruleData || typeof ruleData !== 'object' || Array.isArray(ruleData)) {
|
|
21192
|
+
throw new Error('data must be a JSON object.');
|
|
21193
|
+
}
|
|
21194
|
+
const ruleApiName = normalize_ts_1.default.normalizeString(ruleData.api_name) ?? normalize_ts_1.default.normalizeString(ruleData.apiName);
|
|
21195
|
+
if (!ruleApiName) {
|
|
21196
|
+
throw new Error('data.api_name or data.apiName is required.');
|
|
21197
|
+
}
|
|
21198
|
+
const remoteRules = await (0, convert_rule_list_ts_1.fetchConvertRuleList)(checkedObjectApiName, null);
|
|
21199
|
+
if (remoteRules.some((item) => {
|
|
21200
|
+
const remoteName = normalize_ts_1.default.normalizeString(item.api_name)
|
|
21201
|
+
?? normalize_ts_1.default.normalizeString(item.apiName);
|
|
21202
|
+
return remoteName === ruleApiName;
|
|
21203
|
+
})) {
|
|
21204
|
+
throw new Error('Convert-rule already exists remotely: ' + checkedObjectApiName + '.' + ruleApiName);
|
|
21205
|
+
}
|
|
21206
|
+
const existing = await xmlMetadataManager.readXml('ConvertRule', ruleApiName, {
|
|
21207
|
+
objectApiName: checkedObjectApiName,
|
|
21208
|
+
fields: ['content'],
|
|
21209
|
+
});
|
|
21210
|
+
if (existing.content !== null && existing.content !== undefined) {
|
|
21211
|
+
if (!force) {
|
|
21212
|
+
throw new Error('Convert-rule already exists locally: ' + checkedObjectApiName + '.' + ruleApiName + '. Use --force to overwrite.');
|
|
21213
|
+
}
|
|
21214
|
+
}
|
|
21215
|
+
const filePath = await xmlMetadataManager.writeXml('ConvertRule', ruleApiName, ruleData, {
|
|
21216
|
+
objectApiName: checkedObjectApiName,
|
|
21217
|
+
status: 'new',
|
|
21218
|
+
});
|
|
21219
|
+
return {
|
|
21220
|
+
filePath,
|
|
21221
|
+
errorMessages: [],
|
|
21222
|
+
};
|
|
21223
|
+
};
|
|
21224
|
+
exports.convertRuleCreateService = convertRuleCreateService;
|
|
21225
|
+
|
|
21226
|
+
|
|
21227
|
+
/***/ },
|
|
21228
|
+
|
|
21229
|
+
/***/ 8031
|
|
21230
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
21231
|
+
|
|
21232
|
+
|
|
21233
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
21234
|
+
exports.fetchConvertRuleDetailList = exports.fetchConvertRuleList = void 0;
|
|
21235
|
+
const request_execute_command_paths_ts_1 = __webpack_require__(2351);
|
|
21236
|
+
const request_ts_1 = __webpack_require__(3176);
|
|
21237
|
+
const types_ts_1 = __webpack_require__(7480);
|
|
21238
|
+
/**
|
|
21239
|
+
* 调 list 接口获取转换规则轻量列表
|
|
21240
|
+
*/
|
|
21241
|
+
const fetchConvertRuleList = async (objectApiName, ruleApiNames) => {
|
|
21242
|
+
const response = await (0, request_ts_1.requestObjectDevExecute)((0, request_execute_command_paths_ts_1.getShareCliCommandPath)('convertRule', 'rule-list'), {
|
|
21243
|
+
describeApiName: objectApiName,
|
|
21244
|
+
ruleApiNames,
|
|
21245
|
+
});
|
|
21246
|
+
const result = await (0, request_ts_1.extractObjectDevServiceResult)(response, (res) => {
|
|
21247
|
+
const data = (0, types_ts_1.narrowObjectDevResponse)(res.data);
|
|
21248
|
+
if (!data)
|
|
21249
|
+
throw new Error(`Invalid response data for object ${objectApiName}`);
|
|
21250
|
+
const list = (0, types_ts_1.narrowObjectDevResponse)(data.convertRuleList)
|
|
21251
|
+
?? (0, types_ts_1.narrowObjectDevResponse)(data.ruleInfoList)
|
|
21252
|
+
?? (0, types_ts_1.narrowObjectDevResponse)(data.list);
|
|
21253
|
+
return list ?? [];
|
|
21254
|
+
});
|
|
21255
|
+
if (!result.success) {
|
|
21256
|
+
throw new Error(result.errorMessage);
|
|
21257
|
+
}
|
|
21258
|
+
return (result.data ?? []).filter((item) => Boolean(item) && typeof item === 'object').map((item) => {
|
|
21259
|
+
const record = item;
|
|
21260
|
+
const rule = record.rule;
|
|
21261
|
+
return (rule && typeof rule === 'object' ? rule : record);
|
|
21262
|
+
});
|
|
21263
|
+
};
|
|
21264
|
+
exports.fetchConvertRuleList = fetchConvertRuleList;
|
|
21265
|
+
/**
|
|
21266
|
+
* 调详情列表接口获取转换规则完整详情
|
|
21267
|
+
*/
|
|
21268
|
+
const fetchConvertRuleDetailList = async (objectApiName, ruleApiNames) => {
|
|
21269
|
+
const response = await (0, request_ts_1.requestObjectDevExecute)((0, request_execute_command_paths_ts_1.getShareCliCommandPath)('convertRule', 'rule-detail-list'), {
|
|
21270
|
+
describeApiName: objectApiName,
|
|
21271
|
+
ruleApiNames,
|
|
21272
|
+
});
|
|
21273
|
+
const result = await (0, request_ts_1.extractObjectDevServiceResult)(response, (res) => {
|
|
21274
|
+
const data = (0, types_ts_1.narrowObjectDevResponse)(res.data);
|
|
21275
|
+
if (!data)
|
|
21276
|
+
throw new Error(`Invalid response data for object ${objectApiName}`);
|
|
21277
|
+
const list = (0, types_ts_1.narrowObjectDevResponse)(data.convertRuleList)
|
|
21278
|
+
?? (0, types_ts_1.narrowObjectDevResponse)(data.ruleInfoList)
|
|
21279
|
+
?? (0, types_ts_1.narrowObjectDevResponse)(data.ruleDetailList)
|
|
21280
|
+
?? (0, types_ts_1.narrowObjectDevResponse)(data.list);
|
|
21281
|
+
return list ?? [];
|
|
21282
|
+
});
|
|
21283
|
+
if (!result.success) {
|
|
21284
|
+
throw new Error(result.errorMessage);
|
|
21285
|
+
}
|
|
21286
|
+
return (result.data ?? []).filter((item) => Boolean(item) && typeof item === 'object').map((item) => {
|
|
21287
|
+
const record = item;
|
|
21288
|
+
const rule = record.rule;
|
|
21289
|
+
return (rule && typeof rule === 'object' ? rule : record);
|
|
21290
|
+
});
|
|
21291
|
+
};
|
|
21292
|
+
exports.fetchConvertRuleDetailList = fetchConvertRuleDetailList;
|
|
21293
|
+
|
|
21294
|
+
|
|
21295
|
+
/***/ },
|
|
21296
|
+
|
|
21297
|
+
/***/ 1624
|
|
21298
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
21299
|
+
|
|
21300
|
+
|
|
21301
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21302
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21303
|
+
};
|
|
21304
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
21305
|
+
exports.convertRulePullService = void 0;
|
|
21306
|
+
const logger_ts_1 = __webpack_require__(3333);
|
|
21307
|
+
const index_ts_1 = __webpack_require__(9985);
|
|
21308
|
+
const convert_rule_list_ts_1 = __webpack_require__(8031);
|
|
21309
|
+
const normalize_ts_1 = __importDefault(__webpack_require__(9268));
|
|
21310
|
+
const xmlMetadataManager = new index_ts_1.XmlMetadataManager();
|
|
21311
|
+
const convertRulePullService = async (objectApiNamesRaw, force = false, skipOverwriteConfirm = false) => {
|
|
21312
|
+
const errorMessages = [];
|
|
21313
|
+
const objectApiNames = (normalize_ts_1.default.normalizeString(objectApiNamesRaw) ?? '')
|
|
21314
|
+
.split(',')
|
|
21315
|
+
.map((item) => item.trim())
|
|
21316
|
+
.filter(Boolean);
|
|
21317
|
+
if (!objectApiNames.length) {
|
|
21318
|
+
throw new Error('Invalid arguments: objectApiNames is required.');
|
|
21319
|
+
}
|
|
21320
|
+
let written = 0;
|
|
21321
|
+
let skipped = 0;
|
|
21322
|
+
let found = 0;
|
|
21323
|
+
for (const objectApiName of objectApiNames) {
|
|
21324
|
+
try {
|
|
21325
|
+
const rules = await (0, convert_rule_list_ts_1.fetchConvertRuleDetailList)(objectApiName, null);
|
|
21326
|
+
found += rules.length;
|
|
21327
|
+
for (const ruleRecord of rules) {
|
|
21328
|
+
const ruleApiName = normalize_ts_1.default.normalizeString(ruleRecord.api_name)
|
|
21329
|
+
?? normalize_ts_1.default.normalizeString(ruleRecord.apiName);
|
|
21330
|
+
if (!ruleApiName) {
|
|
21331
|
+
skipped += 1;
|
|
21332
|
+
continue;
|
|
21333
|
+
}
|
|
21334
|
+
try {
|
|
21335
|
+
if (force) {
|
|
21336
|
+
await xmlMetadataManager.writeXml('ConvertRule', ruleApiName, ruleRecord, {
|
|
21337
|
+
objectApiName,
|
|
21338
|
+
status: 'unchanged',
|
|
21339
|
+
});
|
|
21340
|
+
written += 1;
|
|
21341
|
+
continue;
|
|
21342
|
+
}
|
|
21343
|
+
const localStatus = await xmlMetadataManager.readXml('ConvertRule', ruleApiName, {
|
|
21344
|
+
objectApiName,
|
|
21345
|
+
fields: ['status'],
|
|
21346
|
+
});
|
|
21347
|
+
if (localStatus.status !== 'unchanged') {
|
|
21348
|
+
if (skipOverwriteConfirm) {
|
|
21349
|
+
logger_ts_1.loggerService.info(`Skipped ${objectApiName}.${ruleApiName}: local status is ${localStatus.status}. Use --force to overwrite local metadata.`);
|
|
21350
|
+
}
|
|
21351
|
+
else {
|
|
21352
|
+
logger_ts_1.loggerService.info(`Convert-rule local status ${localStatus.status}, skip overwrite: ${objectApiName}.${ruleApiName}. Use --force to overwrite local metadata.`);
|
|
21353
|
+
}
|
|
21354
|
+
skipped += 1;
|
|
21355
|
+
continue;
|
|
21356
|
+
}
|
|
21357
|
+
await xmlMetadataManager.writeXml('ConvertRule', ruleApiName, ruleRecord, {
|
|
21358
|
+
objectApiName,
|
|
21359
|
+
status: 'unchanged',
|
|
21360
|
+
});
|
|
21361
|
+
written += 1;
|
|
21362
|
+
}
|
|
21363
|
+
catch (error) {
|
|
21364
|
+
errorMessages.push(objectApiName + ' convert-rule ' + ruleApiName + ': ' + (error instanceof Error ? error.message : String(error)));
|
|
21365
|
+
}
|
|
21366
|
+
}
|
|
21367
|
+
}
|
|
21368
|
+
catch (error) {
|
|
21369
|
+
errorMessages.push(objectApiName + ': ' + (error instanceof Error ? error.message : String(error)));
|
|
21370
|
+
}
|
|
21371
|
+
}
|
|
21372
|
+
return {
|
|
21373
|
+
objectApiNames,
|
|
21374
|
+
found,
|
|
21375
|
+
written,
|
|
21376
|
+
skipped,
|
|
21377
|
+
errorMessages,
|
|
21378
|
+
};
|
|
21379
|
+
};
|
|
21380
|
+
exports.convertRulePullService = convertRulePullService;
|
|
21381
|
+
|
|
21382
|
+
|
|
21383
|
+
/***/ },
|
|
21384
|
+
|
|
21385
|
+
/***/ 2771
|
|
21386
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
21387
|
+
|
|
21388
|
+
|
|
21389
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21390
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21391
|
+
};
|
|
21392
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
21393
|
+
exports.convertRulePushService = void 0;
|
|
21394
|
+
const normalize_ts_1 = __importDefault(__webpack_require__(9268));
|
|
21395
|
+
const request_execute_command_paths_ts_1 = __webpack_require__(2351);
|
|
21396
|
+
const index_ts_1 = __webpack_require__(9985);
|
|
21397
|
+
const convert_rule_list_ts_1 = __webpack_require__(8031);
|
|
21398
|
+
const convert_rule_pull_ts_1 = __webpack_require__(1624);
|
|
21399
|
+
const request_ts_1 = __webpack_require__(3176);
|
|
21400
|
+
const logger_ts_1 = __webpack_require__(3333);
|
|
21401
|
+
const xmlMetadataManager = new index_ts_1.XmlMetadataManager();
|
|
21402
|
+
const isRecord = normalize_ts_1.default.isRecord;
|
|
21403
|
+
const convertRulePushService = async (objectApiName, ruleApiNames, skipOverwriteConfirm = false) => {
|
|
21404
|
+
const errorMessages = [];
|
|
21405
|
+
const checkedObjectApiName = normalize_ts_1.default.normalizeString(objectApiName);
|
|
21406
|
+
if (!checkedObjectApiName || !/^[A-Za-z][A-Za-z0-9_]*$/.test(checkedObjectApiName)) {
|
|
21407
|
+
throw new Error('Invalid arguments: objectApiName is required.');
|
|
21408
|
+
}
|
|
21409
|
+
const targetRuleApiNames = (ruleApiNames ?? '')
|
|
21410
|
+
.split(',')
|
|
21411
|
+
.map((item) => normalize_ts_1.default.normalizeString(item))
|
|
21412
|
+
.filter((item) => Boolean(item));
|
|
21413
|
+
if (!targetRuleApiNames.length) {
|
|
21414
|
+
throw new Error('Invalid arguments: ruleApiNames is required.');
|
|
21415
|
+
}
|
|
21416
|
+
for (const ruleApiName of targetRuleApiNames) {
|
|
21417
|
+
try {
|
|
21418
|
+
let ruleMeta = await xmlMetadataManager.readXml('ConvertRule', ruleApiName, {
|
|
21419
|
+
objectApiName: checkedObjectApiName,
|
|
21420
|
+
});
|
|
21421
|
+
if (!ruleMeta.content || !isRecord(ruleMeta.content)) {
|
|
21422
|
+
throw new Error(`Invalid convert-rule content: ${checkedObjectApiName}.${ruleApiName}`);
|
|
21423
|
+
}
|
|
21424
|
+
// pre-pull for non-new rules
|
|
21425
|
+
if (ruleMeta.status !== 'new') {
|
|
21426
|
+
logger_ts_1.loggerService.startLoading('convert-rule push pre-pull: ' + checkedObjectApiName + '.' + ruleApiName);
|
|
21427
|
+
try {
|
|
21428
|
+
const prePullResult = await (0, convert_rule_pull_ts_1.convertRulePullService)(checkedObjectApiName, false, skipOverwriteConfirm);
|
|
21429
|
+
errorMessages.push(...prePullResult.errorMessages);
|
|
21430
|
+
}
|
|
21431
|
+
finally {
|
|
21432
|
+
logger_ts_1.loggerService.stopLoading();
|
|
21433
|
+
}
|
|
21434
|
+
}
|
|
21435
|
+
// Check remote existence via rule-detail-list
|
|
21436
|
+
logger_ts_1.loggerService.startLoading('convert-rule push check remote: ' + checkedObjectApiName + '.' + ruleApiName);
|
|
21437
|
+
let existsRemotely = false;
|
|
21438
|
+
try {
|
|
21439
|
+
const remoteRules = await (0, convert_rule_list_ts_1.fetchConvertRuleDetailList)(checkedObjectApiName, null);
|
|
21440
|
+
existsRemotely = remoteRules.some((item) => {
|
|
21441
|
+
const remoteName = normalize_ts_1.default.normalizeString(item.api_name)
|
|
21442
|
+
?? normalize_ts_1.default.normalizeString(item.apiName);
|
|
21443
|
+
return remoteName === ruleApiName;
|
|
21444
|
+
});
|
|
21445
|
+
}
|
|
21446
|
+
finally {
|
|
21447
|
+
logger_ts_1.loggerService.stopLoading();
|
|
21448
|
+
}
|
|
21449
|
+
// Fix local status based on remote
|
|
21450
|
+
if (ruleMeta.status === 'new' && existsRemotely) {
|
|
21451
|
+
await xmlMetadataManager.writeXml('ConvertRule', ruleApiName, ruleMeta.content, {
|
|
21452
|
+
objectApiName: checkedObjectApiName,
|
|
21453
|
+
status: 'modified',
|
|
21454
|
+
features: ruleMeta.features,
|
|
21455
|
+
extra: ruleMeta.extra,
|
|
21456
|
+
});
|
|
21457
|
+
logger_ts_1.loggerService.warn('Convert-rule exists remotely, local status changed from new to modified: ' + checkedObjectApiName + '.' + ruleApiName);
|
|
21458
|
+
ruleMeta = await xmlMetadataManager.readXml('ConvertRule', ruleApiName, {
|
|
21459
|
+
objectApiName: checkedObjectApiName,
|
|
21460
|
+
});
|
|
21461
|
+
}
|
|
21462
|
+
if (ruleMeta.status !== 'new' && !existsRemotely) {
|
|
21463
|
+
await xmlMetadataManager.writeXml('ConvertRule', ruleApiName, ruleMeta.content, {
|
|
21464
|
+
objectApiName: checkedObjectApiName,
|
|
21465
|
+
status: 'new',
|
|
21466
|
+
features: ruleMeta.features,
|
|
21467
|
+
extra: ruleMeta.extra,
|
|
21468
|
+
});
|
|
21469
|
+
logger_ts_1.loggerService.warn('Convert-rule does not exist remotely, local status changed from ' + ruleMeta.status + ' to new: ' + checkedObjectApiName + '.' + ruleApiName);
|
|
21470
|
+
ruleMeta = await xmlMetadataManager.readXml('ConvertRule', ruleApiName, {
|
|
21471
|
+
objectApiName: checkedObjectApiName,
|
|
21472
|
+
});
|
|
21473
|
+
}
|
|
21474
|
+
const isCreate = ruleMeta.status === 'new';
|
|
21475
|
+
const ruleContent = { ...(ruleMeta.content && isRecord(ruleMeta.content)
|
|
21476
|
+
? ruleMeta.content
|
|
21477
|
+
: {}) };
|
|
21478
|
+
if (!ruleContent.describe_api_name) {
|
|
21479
|
+
ruleContent.describe_api_name = checkedObjectApiName;
|
|
21480
|
+
}
|
|
21481
|
+
if (!ruleContent.api_name) {
|
|
21482
|
+
ruleContent.api_name = ruleApiName;
|
|
21483
|
+
}
|
|
21484
|
+
logger_ts_1.loggerService.startLoading('convert-rule push request: ' + checkedObjectApiName + '.' + ruleApiName + ' (' + (isCreate ? 'create' : 'update') + ')');
|
|
21485
|
+
const raw = await (0, request_ts_1.requestObjectDevExecute)(isCreate
|
|
21486
|
+
? (0, request_execute_command_paths_ts_1.getShareCliCommandPath)('convertRule', 'create-rule')
|
|
21487
|
+
: (0, request_execute_command_paths_ts_1.getShareCliCommandPath)('convertRule', 'update-rule'), ruleContent);
|
|
21488
|
+
const response = raw;
|
|
21489
|
+
if (response.success !== true || normalize_ts_1.default.normalizeString(normalize_ts_1.default.asString(response.code)) !== 'OK') {
|
|
21490
|
+
logger_ts_1.loggerService.stopLoading();
|
|
21491
|
+
throw new Error('convert-rule push failed: ' + (normalize_ts_1.default.normalizeText(response.message) || 'Unknown error'));
|
|
21492
|
+
}
|
|
21493
|
+
logger_ts_1.loggerService.stopLoading();
|
|
21494
|
+
// Write back status
|
|
21495
|
+
const latestMeta = await xmlMetadataManager.readXml('ConvertRule', ruleApiName, {
|
|
21496
|
+
objectApiName: checkedObjectApiName,
|
|
21497
|
+
});
|
|
21498
|
+
await xmlMetadataManager.writeXml('ConvertRule', ruleApiName, latestMeta.content, {
|
|
21499
|
+
objectApiName: checkedObjectApiName,
|
|
21500
|
+
status: 'unchanged',
|
|
21501
|
+
features: latestMeta.features,
|
|
21502
|
+
extra: latestMeta.extra,
|
|
21503
|
+
});
|
|
21504
|
+
// post-pull
|
|
21505
|
+
logger_ts_1.loggerService.startLoading('convert-rule push post-pull: ' + checkedObjectApiName);
|
|
21506
|
+
try {
|
|
21507
|
+
const postPullResult = await (0, convert_rule_pull_ts_1.convertRulePullService)(checkedObjectApiName, false, skipOverwriteConfirm);
|
|
21508
|
+
errorMessages.push(...postPullResult.errorMessages);
|
|
21509
|
+
}
|
|
21510
|
+
finally {
|
|
21511
|
+
logger_ts_1.loggerService.stopLoading();
|
|
21512
|
+
}
|
|
21513
|
+
logger_ts_1.loggerService.info(`Convert-rule pushed: ${checkedObjectApiName}.${ruleApiName}`);
|
|
21514
|
+
}
|
|
21515
|
+
catch (error) {
|
|
21516
|
+
errorMessages.push(`Convert-rule push failed: ${checkedObjectApiName}.${ruleApiName}: ${error}`);
|
|
21517
|
+
}
|
|
21518
|
+
}
|
|
21519
|
+
return {
|
|
21520
|
+
objectApiName: checkedObjectApiName,
|
|
21521
|
+
apiName: targetRuleApiNames.join(','),
|
|
21522
|
+
errorMessages,
|
|
21523
|
+
};
|
|
21524
|
+
};
|
|
21525
|
+
exports.convertRulePushService = convertRulePushService;
|
|
21526
|
+
|
|
21527
|
+
|
|
21528
|
+
/***/ },
|
|
21529
|
+
|
|
21530
|
+
/***/ 8346
|
|
21531
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
21532
|
+
|
|
21533
|
+
|
|
21534
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21535
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
21536
|
+
};
|
|
21537
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
21538
|
+
exports.convertRuleUpdateService = void 0;
|
|
21539
|
+
const normalize_ts_1 = __importDefault(__webpack_require__(9268));
|
|
21540
|
+
const index_ts_1 = __webpack_require__(9985);
|
|
21541
|
+
const xmlMetadataManager = new index_ts_1.XmlMetadataManager();
|
|
21542
|
+
const convertRuleUpdateService = async (objectApiName, data) => {
|
|
21543
|
+
const checkedObjectApiName = normalize_ts_1.default.normalizeString(objectApiName);
|
|
21544
|
+
if (!checkedObjectApiName || !/^[A-Za-z][A-Za-z0-9_]*$/.test(checkedObjectApiName)) {
|
|
21545
|
+
throw new Error('Invalid arguments: objectApiName is required.');
|
|
21546
|
+
}
|
|
21547
|
+
const raw = normalize_ts_1.default.normalizeString(data);
|
|
21548
|
+
if (!raw) {
|
|
21549
|
+
throw new Error('Invalid arguments: data is required.');
|
|
21550
|
+
}
|
|
21551
|
+
const ruleData = JSON.parse(raw);
|
|
21552
|
+
if (!ruleData || typeof ruleData !== 'object' || Array.isArray(ruleData)) {
|
|
21553
|
+
throw new Error('data must be a JSON object.');
|
|
21554
|
+
}
|
|
21555
|
+
const ruleApiName = normalize_ts_1.default.normalizeString(normalize_ts_1.default.asString(ruleData.api_name))
|
|
21556
|
+
?? normalize_ts_1.default.normalizeString(normalize_ts_1.default.asString(ruleData.apiName));
|
|
21557
|
+
if (!ruleApiName || !/^[A-Za-z][A-Za-z0-9_]*$/.test(ruleApiName)) {
|
|
21558
|
+
throw new Error('Invalid arguments: api_name or apiName is required in data.');
|
|
21559
|
+
}
|
|
21560
|
+
const current = await xmlMetadataManager.readXml('ConvertRule', ruleApiName, {
|
|
21561
|
+
objectApiName: checkedObjectApiName,
|
|
21562
|
+
fields: ['content', 'status']
|
|
21563
|
+
});
|
|
21564
|
+
if (current.content === null || current.content === undefined) {
|
|
21565
|
+
throw new Error(`Convert-rule metadata not found: ${checkedObjectApiName}.${ruleApiName}`);
|
|
21566
|
+
}
|
|
21567
|
+
const filePath = await xmlMetadataManager.writeXml('ConvertRule', ruleApiName, ruleData, {
|
|
21568
|
+
objectApiName: checkedObjectApiName,
|
|
21569
|
+
status: current.status === 'new' ? 'new' : 'modified'
|
|
21570
|
+
});
|
|
21571
|
+
return {
|
|
21572
|
+
filePath,
|
|
21573
|
+
errorMessages: []
|
|
21574
|
+
};
|
|
21575
|
+
};
|
|
21576
|
+
exports.convertRuleUpdateService = convertRuleUpdateService;
|
|
21577
|
+
|
|
21578
|
+
|
|
20872
21579
|
/***/ },
|
|
20873
21580
|
|
|
20874
21581
|
/***/ 3163
|
|
@@ -21218,7 +21925,8 @@ exports.fieldUpdateService = fieldUpdateService;
|
|
|
21218
21925
|
|
|
21219
21926
|
|
|
21220
21927
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
21221
|
-
exports.
|
|
21928
|
+
exports.fetchConvertRuleList = exports.objectMappingPushService = exports.objectMappingUpdateService = exports.objectMappingCreateService = exports.objectMappingListService = exports.fetchObjectMappingList = exports.objectMappingPullService = exports.buttonPushService = exports.buttonUpdateService = exports.buttonCreateService = exports.buttonListService = exports.buttonPullService = exports.validateRulePushService = exports.validateRuleUpdateService = exports.validateRuleCreateService = exports.validateRulePullService = exports.validateRuleListService = exports.layoutRulePushService = exports.layoutRulePullService = exports.layoutRuleUpdateService = exports.layoutRuleListService = exports.layoutRuleCreateService = exports.layoutPushService = exports.layoutPullService = exports.layoutUpdateService = exports.layoutListService = exports.layoutEnableEditService = exports.layoutEditStatusService = exports.layoutCreateService = exports.sceneUpdateService = exports.scenePushService = exports.scenePullService = exports.sceneListService = exports.sceneCreateService = exports.optionSetUpdateService = exports.optionSetPushService = exports.optionSetPullService = exports.optionSetListService = exports.optionSetDeleteService = exports.optionSetCreateService = exports.fieldPushService = exports.fieldUpdateService = exports.fieldListService = exports.fieldCreateService = exports.objectPushService = exports.objectUpdateService = exports.objectCreateService = exports.objectListService = exports.objectRelatedPullService = exports.objectPullService = void 0;
|
|
21929
|
+
exports.extractObjectDevServiceResult = exports.requestObjectDevExecute = exports.convertRulePushService = exports.convertRuleUpdateService = exports.convertRuleCreateService = exports.convertRulePullService = exports.convertRuleListService = void 0;
|
|
21222
21930
|
var object_pull_ts_1 = __webpack_require__(9365);
|
|
21223
21931
|
Object.defineProperty(exports, "objectPullService", ({ enumerable: true, get: function () { return object_pull_ts_1.objectPullService; } }));
|
|
21224
21932
|
var object_related_pull_ts_1 = __webpack_require__(9711);
|
|
@@ -21305,6 +22013,28 @@ var button_update_ts_1 = __webpack_require__(7278);
|
|
|
21305
22013
|
Object.defineProperty(exports, "buttonUpdateService", ({ enumerable: true, get: function () { return button_update_ts_1.buttonUpdateService; } }));
|
|
21306
22014
|
var button_push_ts_1 = __webpack_require__(4863);
|
|
21307
22015
|
Object.defineProperty(exports, "buttonPushService", ({ enumerable: true, get: function () { return button_push_ts_1.buttonPushService; } }));
|
|
22016
|
+
var object_mapping_pull_ts_1 = __webpack_require__(8456);
|
|
22017
|
+
Object.defineProperty(exports, "objectMappingPullService", ({ enumerable: true, get: function () { return object_mapping_pull_ts_1.objectMappingPullService; } }));
|
|
22018
|
+
var object_mapping_list_ts_1 = __webpack_require__(7244);
|
|
22019
|
+
Object.defineProperty(exports, "fetchObjectMappingList", ({ enumerable: true, get: function () { return object_mapping_list_ts_1.fetchObjectMappingList; } }));
|
|
22020
|
+
Object.defineProperty(exports, "objectMappingListService", ({ enumerable: true, get: function () { return object_mapping_list_ts_1.fetchObjectMappingList; } }));
|
|
22021
|
+
var object_mapping_create_ts_1 = __webpack_require__(5223);
|
|
22022
|
+
Object.defineProperty(exports, "objectMappingCreateService", ({ enumerable: true, get: function () { return object_mapping_create_ts_1.objectMappingCreateService; } }));
|
|
22023
|
+
var object_mapping_update_ts_1 = __webpack_require__(1610);
|
|
22024
|
+
Object.defineProperty(exports, "objectMappingUpdateService", ({ enumerable: true, get: function () { return object_mapping_update_ts_1.objectMappingUpdateService; } }));
|
|
22025
|
+
var object_mapping_push_ts_1 = __webpack_require__(9603);
|
|
22026
|
+
Object.defineProperty(exports, "objectMappingPushService", ({ enumerable: true, get: function () { return object_mapping_push_ts_1.objectMappingPushService; } }));
|
|
22027
|
+
var convert_rule_list_ts_1 = __webpack_require__(8031);
|
|
22028
|
+
Object.defineProperty(exports, "fetchConvertRuleList", ({ enumerable: true, get: function () { return convert_rule_list_ts_1.fetchConvertRuleList; } }));
|
|
22029
|
+
Object.defineProperty(exports, "convertRuleListService", ({ enumerable: true, get: function () { return convert_rule_list_ts_1.fetchConvertRuleList; } }));
|
|
22030
|
+
var convert_rule_pull_ts_1 = __webpack_require__(1624);
|
|
22031
|
+
Object.defineProperty(exports, "convertRulePullService", ({ enumerable: true, get: function () { return convert_rule_pull_ts_1.convertRulePullService; } }));
|
|
22032
|
+
var convert_rule_create_ts_1 = __webpack_require__(1959);
|
|
22033
|
+
Object.defineProperty(exports, "convertRuleCreateService", ({ enumerable: true, get: function () { return convert_rule_create_ts_1.convertRuleCreateService; } }));
|
|
22034
|
+
var convert_rule_update_ts_1 = __webpack_require__(8346);
|
|
22035
|
+
Object.defineProperty(exports, "convertRuleUpdateService", ({ enumerable: true, get: function () { return convert_rule_update_ts_1.convertRuleUpdateService; } }));
|
|
22036
|
+
var convert_rule_push_ts_1 = __webpack_require__(2771);
|
|
22037
|
+
Object.defineProperty(exports, "convertRulePushService", ({ enumerable: true, get: function () { return convert_rule_push_ts_1.convertRulePushService; } }));
|
|
21308
22038
|
var request_ts_1 = __webpack_require__(3176);
|
|
21309
22039
|
Object.defineProperty(exports, "requestObjectDevExecute", ({ enumerable: true, get: function () { return request_ts_1.requestObjectDevExecute; } }));
|
|
21310
22040
|
Object.defineProperty(exports, "extractObjectDevServiceResult", ({ enumerable: true, get: function () { return request_ts_1.extractObjectDevServiceResult; } }));
|
|
@@ -22261,6 +22991,391 @@ const layoutUpdateService = async (objectApiName, layoutApiName, data) => {
|
|
|
22261
22991
|
exports.layoutUpdateService = layoutUpdateService;
|
|
22262
22992
|
|
|
22263
22993
|
|
|
22994
|
+
/***/ },
|
|
22995
|
+
|
|
22996
|
+
/***/ 5223
|
|
22997
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
22998
|
+
|
|
22999
|
+
|
|
23000
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23001
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23002
|
+
};
|
|
23003
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23004
|
+
exports.objectMappingCreateService = void 0;
|
|
23005
|
+
const normalize_ts_1 = __importDefault(__webpack_require__(9268));
|
|
23006
|
+
const index_ts_1 = __webpack_require__(9985);
|
|
23007
|
+
const object_mapping_list_ts_1 = __webpack_require__(7244);
|
|
23008
|
+
const xmlMetadataManager = new index_ts_1.XmlMetadataManager();
|
|
23009
|
+
const objectMappingCreateService = async (objectApiName, data, force) => {
|
|
23010
|
+
const checkedObjectApiName = normalize_ts_1.default.normalizeString(objectApiName);
|
|
23011
|
+
if (!checkedObjectApiName || !/^[A-Za-z][A-Za-z0-9_]*$/.test(checkedObjectApiName)) {
|
|
23012
|
+
throw new Error('Invalid arguments: objectApiName is required.');
|
|
23013
|
+
}
|
|
23014
|
+
const raw = normalize_ts_1.default.normalizeString(data);
|
|
23015
|
+
if (!raw) {
|
|
23016
|
+
throw new Error('Invalid arguments: data is required.');
|
|
23017
|
+
}
|
|
23018
|
+
const mappingData = JSON.parse(raw);
|
|
23019
|
+
if (!mappingData || typeof mappingData !== 'object' || Array.isArray(mappingData)) {
|
|
23020
|
+
throw new Error('data must be a JSON object.');
|
|
23021
|
+
}
|
|
23022
|
+
const mappingApiName = normalize_ts_1.default.normalizeString(mappingData.api_name) ?? normalize_ts_1.default.normalizeString(mappingData.apiName);
|
|
23023
|
+
if (!mappingApiName) {
|
|
23024
|
+
throw new Error('data.api_name or data.apiName is required.');
|
|
23025
|
+
}
|
|
23026
|
+
const remoteMappings = await (0, object_mapping_list_ts_1.fetchObjectMappingList)(checkedObjectApiName, null);
|
|
23027
|
+
if (remoteMappings.some((item) => {
|
|
23028
|
+
const remoteName = normalize_ts_1.default.normalizeString(item.api_name)
|
|
23029
|
+
?? normalize_ts_1.default.normalizeString(item.apiName);
|
|
23030
|
+
return remoteName === mappingApiName;
|
|
23031
|
+
})) {
|
|
23032
|
+
throw new Error('Object-mapping already exists remotely: ' + checkedObjectApiName + '.' + mappingApiName);
|
|
23033
|
+
}
|
|
23034
|
+
const existing = await xmlMetadataManager.readXml('ObjectMapping', mappingApiName, {
|
|
23035
|
+
objectApiName: checkedObjectApiName,
|
|
23036
|
+
fields: ['content'],
|
|
23037
|
+
});
|
|
23038
|
+
if (existing.content !== null && existing.content !== undefined) {
|
|
23039
|
+
if (!force) {
|
|
23040
|
+
throw new Error('Object-mapping already exists locally: ' + checkedObjectApiName + '.' + mappingApiName + '. Use --force to overwrite.');
|
|
23041
|
+
}
|
|
23042
|
+
}
|
|
23043
|
+
const filePath = await xmlMetadataManager.writeXml('ObjectMapping', mappingApiName, mappingData, {
|
|
23044
|
+
objectApiName: checkedObjectApiName,
|
|
23045
|
+
status: 'new',
|
|
23046
|
+
});
|
|
23047
|
+
return {
|
|
23048
|
+
filePath,
|
|
23049
|
+
errorMessages: [],
|
|
23050
|
+
};
|
|
23051
|
+
};
|
|
23052
|
+
exports.objectMappingCreateService = objectMappingCreateService;
|
|
23053
|
+
|
|
23054
|
+
|
|
23055
|
+
/***/ },
|
|
23056
|
+
|
|
23057
|
+
/***/ 7244
|
|
23058
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
23059
|
+
|
|
23060
|
+
|
|
23061
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23062
|
+
exports.fetchObjectMappingList = void 0;
|
|
23063
|
+
const request_execute_command_paths_ts_1 = __webpack_require__(2351);
|
|
23064
|
+
const request_ts_1 = __webpack_require__(3176);
|
|
23065
|
+
const types_ts_1 = __webpack_require__(7480);
|
|
23066
|
+
/**
|
|
23067
|
+
* 调 list 接口获取指定对象下的对象映射规则列表
|
|
23068
|
+
*/
|
|
23069
|
+
const fetchObjectMappingList = async (objectApiName, ruleApiNames) => {
|
|
23070
|
+
const response = await (0, request_ts_1.requestObjectDevExecute)((0, request_execute_command_paths_ts_1.getShareCliCommandPath)('objectMapping', 'rule-detail-list'), {
|
|
23071
|
+
describeApiName: objectApiName,
|
|
23072
|
+
ruleApiNames,
|
|
23073
|
+
});
|
|
23074
|
+
const result = await (0, request_ts_1.extractObjectDevServiceResult)(response, (res) => {
|
|
23075
|
+
const data = (0, types_ts_1.narrowObjectDevResponse)(res.data);
|
|
23076
|
+
if (!data)
|
|
23077
|
+
throw new Error(`Invalid response data for object ${objectApiName}`);
|
|
23078
|
+
const list = (0, types_ts_1.narrowObjectDevResponse)(data.ruleInfoList)
|
|
23079
|
+
?? (0, types_ts_1.narrowObjectDevResponse)(data.objectMappingList)
|
|
23080
|
+
?? (0, types_ts_1.narrowObjectDevResponse)(data.list);
|
|
23081
|
+
return list ?? [];
|
|
23082
|
+
});
|
|
23083
|
+
if (!result.success) {
|
|
23084
|
+
throw new Error(result.errorMessage);
|
|
23085
|
+
}
|
|
23086
|
+
return (result.data ?? []).filter((item) => Boolean(item) && typeof item === 'object').map((item) => {
|
|
23087
|
+
const record = item;
|
|
23088
|
+
const rule = record.rule;
|
|
23089
|
+
return (rule && typeof rule === 'object' ? rule : record);
|
|
23090
|
+
});
|
|
23091
|
+
};
|
|
23092
|
+
exports.fetchObjectMappingList = fetchObjectMappingList;
|
|
23093
|
+
|
|
23094
|
+
|
|
23095
|
+
/***/ },
|
|
23096
|
+
|
|
23097
|
+
/***/ 8456
|
|
23098
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
23099
|
+
|
|
23100
|
+
|
|
23101
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23102
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23103
|
+
};
|
|
23104
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23105
|
+
exports.objectMappingPullService = void 0;
|
|
23106
|
+
const normalize_ts_1 = __importDefault(__webpack_require__(9268));
|
|
23107
|
+
const logger_ts_1 = __webpack_require__(3333);
|
|
23108
|
+
const index_ts_1 = __webpack_require__(9985);
|
|
23109
|
+
const object_mapping_list_ts_1 = __webpack_require__(7244);
|
|
23110
|
+
const xmlMetadataManager = new index_ts_1.XmlMetadataManager();
|
|
23111
|
+
const objectMappingPullService = async (objectApiNamesRaw, force = false, skipOverwriteConfirm = false) => {
|
|
23112
|
+
const errorMessages = [];
|
|
23113
|
+
const objectApiNames = (normalize_ts_1.default.normalizeString(objectApiNamesRaw) ?? '')
|
|
23114
|
+
.split(',')
|
|
23115
|
+
.map((item) => item.trim())
|
|
23116
|
+
.filter(Boolean);
|
|
23117
|
+
if (!objectApiNames.length) {
|
|
23118
|
+
throw new Error('Invalid arguments: objectApiNames is required.');
|
|
23119
|
+
}
|
|
23120
|
+
let found = 0;
|
|
23121
|
+
let written = 0;
|
|
23122
|
+
let skipped = 0;
|
|
23123
|
+
for (const objectApiName of objectApiNames) {
|
|
23124
|
+
try {
|
|
23125
|
+
const mappings = await (0, object_mapping_list_ts_1.fetchObjectMappingList)(objectApiName, null);
|
|
23126
|
+
found += mappings.length;
|
|
23127
|
+
for (const mappingRecord of mappings) {
|
|
23128
|
+
const mappingApiName = normalize_ts_1.default.normalizeString(mappingRecord.api_name)
|
|
23129
|
+
?? normalize_ts_1.default.normalizeString(mappingRecord.apiName);
|
|
23130
|
+
if (!mappingApiName) {
|
|
23131
|
+
skipped += 1;
|
|
23132
|
+
continue;
|
|
23133
|
+
}
|
|
23134
|
+
try {
|
|
23135
|
+
if (force) {
|
|
23136
|
+
await xmlMetadataManager.writeXml('ObjectMapping', mappingApiName, mappingRecord, {
|
|
23137
|
+
objectApiName,
|
|
23138
|
+
status: 'unchanged',
|
|
23139
|
+
});
|
|
23140
|
+
written += 1;
|
|
23141
|
+
continue;
|
|
23142
|
+
}
|
|
23143
|
+
const localStatus = await xmlMetadataManager.readXml('ObjectMapping', mappingApiName, {
|
|
23144
|
+
objectApiName,
|
|
23145
|
+
fields: ['status'],
|
|
23146
|
+
});
|
|
23147
|
+
if (localStatus.status !== 'unchanged') {
|
|
23148
|
+
if (skipOverwriteConfirm) {
|
|
23149
|
+
logger_ts_1.loggerService.info(`Skipped ${objectApiName}.${mappingApiName}: local status is ${localStatus.status}. Use --force to overwrite local metadata.`);
|
|
23150
|
+
}
|
|
23151
|
+
else {
|
|
23152
|
+
logger_ts_1.loggerService.info(`Object-mapping local status ${localStatus.status}, skip overwrite: ${objectApiName}.${mappingApiName}. Use --force to overwrite local metadata.`);
|
|
23153
|
+
}
|
|
23154
|
+
skipped += 1;
|
|
23155
|
+
continue;
|
|
23156
|
+
}
|
|
23157
|
+
await xmlMetadataManager.writeXml('ObjectMapping', mappingApiName, mappingRecord, {
|
|
23158
|
+
objectApiName,
|
|
23159
|
+
status: 'unchanged',
|
|
23160
|
+
});
|
|
23161
|
+
written += 1;
|
|
23162
|
+
}
|
|
23163
|
+
catch (error) {
|
|
23164
|
+
errorMessages.push(objectApiName + ' object-mapping ' + mappingApiName + ': ' + (error instanceof Error ? error.message : String(error)));
|
|
23165
|
+
}
|
|
23166
|
+
}
|
|
23167
|
+
}
|
|
23168
|
+
catch (error) {
|
|
23169
|
+
errorMessages.push(objectApiName + ': ' + (error instanceof Error ? error.message : String(error)));
|
|
23170
|
+
}
|
|
23171
|
+
}
|
|
23172
|
+
return {
|
|
23173
|
+
objectApiNames,
|
|
23174
|
+
found,
|
|
23175
|
+
written,
|
|
23176
|
+
skipped,
|
|
23177
|
+
errorMessages,
|
|
23178
|
+
};
|
|
23179
|
+
};
|
|
23180
|
+
exports.objectMappingPullService = objectMappingPullService;
|
|
23181
|
+
|
|
23182
|
+
|
|
23183
|
+
/***/ },
|
|
23184
|
+
|
|
23185
|
+
/***/ 9603
|
|
23186
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
23187
|
+
|
|
23188
|
+
|
|
23189
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23190
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23191
|
+
};
|
|
23192
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23193
|
+
exports.objectMappingPushService = void 0;
|
|
23194
|
+
const normalize_ts_1 = __importDefault(__webpack_require__(9268));
|
|
23195
|
+
const request_execute_command_paths_ts_1 = __webpack_require__(2351);
|
|
23196
|
+
const index_ts_1 = __webpack_require__(9985);
|
|
23197
|
+
const object_mapping_list_ts_1 = __webpack_require__(7244);
|
|
23198
|
+
const object_mapping_pull_ts_1 = __webpack_require__(8456);
|
|
23199
|
+
const request_ts_1 = __webpack_require__(3176);
|
|
23200
|
+
const logger_ts_1 = __webpack_require__(3333);
|
|
23201
|
+
const xmlMetadataManager = new index_ts_1.XmlMetadataManager();
|
|
23202
|
+
const isRecord = normalize_ts_1.default.isRecord;
|
|
23203
|
+
const objectMappingPushService = async (objectApiName, ruleApiNames, skipOverwriteConfirm = false) => {
|
|
23204
|
+
const errorMessages = [];
|
|
23205
|
+
const checkedObjectApiName = normalize_ts_1.default.normalizeString(objectApiName);
|
|
23206
|
+
if (!checkedObjectApiName || !/^[A-Za-z][A-Za-z0-9_]*$/.test(checkedObjectApiName)) {
|
|
23207
|
+
throw new Error('Invalid arguments: objectApiName is required.');
|
|
23208
|
+
}
|
|
23209
|
+
const targetRuleApiNames = (ruleApiNames ?? '')
|
|
23210
|
+
.split(',')
|
|
23211
|
+
.map((item) => normalize_ts_1.default.normalizeString(item))
|
|
23212
|
+
.filter((item) => Boolean(item));
|
|
23213
|
+
if (!targetRuleApiNames.length) {
|
|
23214
|
+
throw new Error('Invalid arguments: ruleApiNames is required.');
|
|
23215
|
+
}
|
|
23216
|
+
for (const ruleApiName of targetRuleApiNames) {
|
|
23217
|
+
try {
|
|
23218
|
+
let mappingMeta = await xmlMetadataManager.readXml('ObjectMapping', ruleApiName, {
|
|
23219
|
+
objectApiName: checkedObjectApiName,
|
|
23220
|
+
});
|
|
23221
|
+
if (!mappingMeta.content || !isRecord(mappingMeta.content)) {
|
|
23222
|
+
throw new Error(`Invalid object-mapping content: ${checkedObjectApiName}.${ruleApiName}`);
|
|
23223
|
+
}
|
|
23224
|
+
// pre-pull for non-new rules
|
|
23225
|
+
if (mappingMeta.status !== 'new') {
|
|
23226
|
+
logger_ts_1.loggerService.startLoading('object-mapping push pre-pull: ' + checkedObjectApiName + '.' + ruleApiName);
|
|
23227
|
+
try {
|
|
23228
|
+
const prePullResult = await (0, object_mapping_pull_ts_1.objectMappingPullService)(checkedObjectApiName, false, skipOverwriteConfirm);
|
|
23229
|
+
errorMessages.push(...prePullResult.errorMessages);
|
|
23230
|
+
}
|
|
23231
|
+
finally {
|
|
23232
|
+
logger_ts_1.loggerService.stopLoading();
|
|
23233
|
+
}
|
|
23234
|
+
}
|
|
23235
|
+
// Check remote existence
|
|
23236
|
+
logger_ts_1.loggerService.startLoading('object-mapping push check remote: ' + checkedObjectApiName + '.' + ruleApiName);
|
|
23237
|
+
let existsRemotely = false;
|
|
23238
|
+
try {
|
|
23239
|
+
const remoteMappings = await (0, object_mapping_list_ts_1.fetchObjectMappingList)(checkedObjectApiName, null);
|
|
23240
|
+
existsRemotely = remoteMappings.some((item) => {
|
|
23241
|
+
const remoteName = normalize_ts_1.default.normalizeString(item.api_name)
|
|
23242
|
+
?? normalize_ts_1.default.normalizeString(item.apiName);
|
|
23243
|
+
return remoteName === ruleApiName;
|
|
23244
|
+
});
|
|
23245
|
+
}
|
|
23246
|
+
finally {
|
|
23247
|
+
logger_ts_1.loggerService.stopLoading();
|
|
23248
|
+
}
|
|
23249
|
+
// Fix local status based on remote
|
|
23250
|
+
if (mappingMeta.status === 'new' && existsRemotely) {
|
|
23251
|
+
await xmlMetadataManager.writeXml('ObjectMapping', ruleApiName, mappingMeta.content, {
|
|
23252
|
+
objectApiName: checkedObjectApiName,
|
|
23253
|
+
status: 'modified',
|
|
23254
|
+
features: mappingMeta.features,
|
|
23255
|
+
extra: mappingMeta.extra,
|
|
23256
|
+
});
|
|
23257
|
+
logger_ts_1.loggerService.warn('Object-mapping exists remotely, local status changed from new to modified: ' + checkedObjectApiName + '.' + ruleApiName);
|
|
23258
|
+
mappingMeta = await xmlMetadataManager.readXml('ObjectMapping', ruleApiName, {
|
|
23259
|
+
objectApiName: checkedObjectApiName,
|
|
23260
|
+
});
|
|
23261
|
+
}
|
|
23262
|
+
if (mappingMeta.status !== 'new' && !existsRemotely) {
|
|
23263
|
+
await xmlMetadataManager.writeXml('ObjectMapping', ruleApiName, mappingMeta.content, {
|
|
23264
|
+
objectApiName: checkedObjectApiName,
|
|
23265
|
+
status: 'new',
|
|
23266
|
+
features: mappingMeta.features,
|
|
23267
|
+
extra: mappingMeta.extra,
|
|
23268
|
+
});
|
|
23269
|
+
logger_ts_1.loggerService.warn('Object-mapping does not exist remotely, local status changed from ' + mappingMeta.status + ' to new: ' + checkedObjectApiName + '.' + ruleApiName);
|
|
23270
|
+
mappingMeta = await xmlMetadataManager.readXml('ObjectMapping', ruleApiName, {
|
|
23271
|
+
objectApiName: checkedObjectApiName,
|
|
23272
|
+
});
|
|
23273
|
+
}
|
|
23274
|
+
const isCreate = mappingMeta.status === 'new';
|
|
23275
|
+
const mappingContent = { ...(mappingMeta.content && isRecord(mappingMeta.content)
|
|
23276
|
+
? mappingMeta.content
|
|
23277
|
+
: {}) };
|
|
23278
|
+
if (!mappingContent.describe_api_name) {
|
|
23279
|
+
mappingContent.describe_api_name = checkedObjectApiName;
|
|
23280
|
+
}
|
|
23281
|
+
if (!mappingContent.api_name) {
|
|
23282
|
+
mappingContent.api_name = ruleApiName;
|
|
23283
|
+
}
|
|
23284
|
+
logger_ts_1.loggerService.startLoading('object-mapping push request: ' + checkedObjectApiName + '.' + ruleApiName + ' (' + (isCreate ? 'create' : 'update') + ')');
|
|
23285
|
+
const raw = await (0, request_ts_1.requestObjectDevExecute)(isCreate
|
|
23286
|
+
? (0, request_execute_command_paths_ts_1.getShareCliCommandPath)('objectMapping', 'create-rule')
|
|
23287
|
+
: (0, request_execute_command_paths_ts_1.getShareCliCommandPath)('objectMapping', 'update-rule'), mappingContent);
|
|
23288
|
+
const response = raw;
|
|
23289
|
+
if (response.success !== true || normalize_ts_1.default.normalizeString(normalize_ts_1.default.asString(response.code)) !== 'OK') {
|
|
23290
|
+
logger_ts_1.loggerService.stopLoading();
|
|
23291
|
+
throw new Error('object-mapping push failed: ' + (normalize_ts_1.default.normalizeText(response.message) || 'Unknown error'));
|
|
23292
|
+
}
|
|
23293
|
+
logger_ts_1.loggerService.stopLoading();
|
|
23294
|
+
// Write back status
|
|
23295
|
+
const latestMeta = await xmlMetadataManager.readXml('ObjectMapping', ruleApiName, {
|
|
23296
|
+
objectApiName: checkedObjectApiName,
|
|
23297
|
+
});
|
|
23298
|
+
await xmlMetadataManager.writeXml('ObjectMapping', ruleApiName, latestMeta.content, {
|
|
23299
|
+
objectApiName: checkedObjectApiName,
|
|
23300
|
+
status: 'unchanged',
|
|
23301
|
+
features: latestMeta.features,
|
|
23302
|
+
extra: latestMeta.extra,
|
|
23303
|
+
});
|
|
23304
|
+
// post-pull
|
|
23305
|
+
logger_ts_1.loggerService.startLoading('object-mapping push post-pull: ' + checkedObjectApiName);
|
|
23306
|
+
try {
|
|
23307
|
+
const postPullResult = await (0, object_mapping_pull_ts_1.objectMappingPullService)(checkedObjectApiName, false, skipOverwriteConfirm);
|
|
23308
|
+
errorMessages.push(...postPullResult.errorMessages);
|
|
23309
|
+
}
|
|
23310
|
+
finally {
|
|
23311
|
+
logger_ts_1.loggerService.stopLoading();
|
|
23312
|
+
}
|
|
23313
|
+
logger_ts_1.loggerService.info(`Object-mapping pushed: ${checkedObjectApiName}.${ruleApiName}`);
|
|
23314
|
+
}
|
|
23315
|
+
catch (error) {
|
|
23316
|
+
errorMessages.push(`Object-mapping push failed: ${checkedObjectApiName}.${ruleApiName}: ${error}`);
|
|
23317
|
+
}
|
|
23318
|
+
}
|
|
23319
|
+
return {
|
|
23320
|
+
objectApiName: checkedObjectApiName,
|
|
23321
|
+
apiName: targetRuleApiNames.join(','),
|
|
23322
|
+
errorMessages,
|
|
23323
|
+
};
|
|
23324
|
+
};
|
|
23325
|
+
exports.objectMappingPushService = objectMappingPushService;
|
|
23326
|
+
|
|
23327
|
+
|
|
23328
|
+
/***/ },
|
|
23329
|
+
|
|
23330
|
+
/***/ 1610
|
|
23331
|
+
(__unused_webpack_module, exports, __webpack_require__) {
|
|
23332
|
+
|
|
23333
|
+
|
|
23334
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23335
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
23336
|
+
};
|
|
23337
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
23338
|
+
exports.objectMappingUpdateService = void 0;
|
|
23339
|
+
const normalize_ts_1 = __importDefault(__webpack_require__(9268));
|
|
23340
|
+
const index_ts_1 = __webpack_require__(9985);
|
|
23341
|
+
const xmlMetadataManager = new index_ts_1.XmlMetadataManager();
|
|
23342
|
+
const objectMappingUpdateService = async (objectApiName, data) => {
|
|
23343
|
+
const checkedObjectApiName = normalize_ts_1.default.normalizeString(objectApiName);
|
|
23344
|
+
if (!checkedObjectApiName || !/^[A-Za-z][A-Za-z0-9_]*$/.test(checkedObjectApiName)) {
|
|
23345
|
+
throw new Error('Invalid arguments: objectApiName is required.');
|
|
23346
|
+
}
|
|
23347
|
+
const raw = normalize_ts_1.default.normalizeString(data);
|
|
23348
|
+
if (!raw) {
|
|
23349
|
+
throw new Error('Invalid arguments: data is required.');
|
|
23350
|
+
}
|
|
23351
|
+
const mappingData = JSON.parse(raw);
|
|
23352
|
+
if (!mappingData || typeof mappingData !== 'object' || Array.isArray(mappingData)) {
|
|
23353
|
+
throw new Error('data must be a JSON object.');
|
|
23354
|
+
}
|
|
23355
|
+
const mappingApiName = normalize_ts_1.default.normalizeString(normalize_ts_1.default.asString(mappingData.api_name))
|
|
23356
|
+
?? normalize_ts_1.default.normalizeString(normalize_ts_1.default.asString(mappingData.apiName));
|
|
23357
|
+
if (!mappingApiName || !/^[A-Za-z][A-Za-z0-9_]*$/.test(mappingApiName)) {
|
|
23358
|
+
throw new Error('Invalid arguments: api_name or apiName is required in data.');
|
|
23359
|
+
}
|
|
23360
|
+
const current = await xmlMetadataManager.readXml('ObjectMapping', mappingApiName, {
|
|
23361
|
+
objectApiName: checkedObjectApiName,
|
|
23362
|
+
fields: ['content', 'status']
|
|
23363
|
+
});
|
|
23364
|
+
if (current.content === null || current.content === undefined) {
|
|
23365
|
+
throw new Error(`Object-mapping metadata not found: ${checkedObjectApiName}.${mappingApiName}`);
|
|
23366
|
+
}
|
|
23367
|
+
const filePath = await xmlMetadataManager.writeXml('ObjectMapping', mappingApiName, mappingData, {
|
|
23368
|
+
objectApiName: checkedObjectApiName,
|
|
23369
|
+
status: current.status === 'new' ? 'new' : 'modified'
|
|
23370
|
+
});
|
|
23371
|
+
return {
|
|
23372
|
+
filePath,
|
|
23373
|
+
errorMessages: []
|
|
23374
|
+
};
|
|
23375
|
+
};
|
|
23376
|
+
exports.objectMappingUpdateService = objectMappingUpdateService;
|
|
23377
|
+
|
|
23378
|
+
|
|
22264
23379
|
/***/ },
|
|
22265
23380
|
|
|
22266
23381
|
/***/ 9711
|
|
@@ -41512,7 +42627,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
|
|
|
41512
42627
|
/***/ 8330
|
|
41513
42628
|
(module) {
|
|
41514
42629
|
|
|
41515
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@share-crm/sharedev-cli","version":"0.0.4-rc.
|
|
42630
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@share-crm/sharedev-cli","version":"0.0.4-rc.20","private":false,"description":"sharedev command line tool","type":"module","main":"dist/sharedev.js","bin":{"sharedev":"./bin/cli.mjs"},"author":{"name":"sharecrm-npm"},"files":["dist","bin","README.md"],"scripts":{"build":"tsc --noEmit && webpack --config build/webpack/webpack.prod.cjs","build:debug":"tsc --noEmit && webpack --config build/webpack/webpack.debug.cjs","build:bin":"bun build --compile --target=bun-darwin-x64 src/cli.ts --outfile scripts/sharedev-darwin-x64 && bun build --compile --target=bun-darwin-arm64 src/cli.ts --outfile scripts/sharedev-darwin-arm64 && bun build --compile --target=bun-windows-x64 src/cli.ts --outfile scripts/sharedev-windows-x64.exe","build:all":"npm run build && npm run build:bin","dev":"tsc --noEmit --watch & webpack --config build/webpack/webpack.dev.cjs --watch","dev2":"node src/cli.ts","typecheck":"tsc --noEmit","prettier":"prettier --write ./src/**/*.ts","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage"},"dependencies":{"@clack/prompts":"^1.1.0","@mariozechner/pi-coding-agent":"^0.62.0","axios":"~1.13.0","chalk":"^5.6.2","commander":"^14.0.1","extract-zip":"^2.0.1","fast-xml-parser":"^5.2.5","fs-extra":"^11.3.2","lodash-es":"^4.18.1","ora":"^9.3.0"},"devDependencies":{"@types/extract-zip":"^2.0.3","@types/fs-extra":"^11.0.4","@types/lodash-es":"^4.17.12","@types/node":"^24.3.0","@vitest/coverage-v8":"^4.1.8","ts-loader":"^9.5.4","typescript":"^5.9.2","vitest":"^3.2.6","webpack":"^5.101.3","webpack-cli":"^6.0.1","webpack-merge":"^6.0.1"},"packageManager":"pnpm@10.17.0"}');
|
|
41516
42631
|
|
|
41517
42632
|
/***/ }
|
|
41518
42633
|
|