@tachybase/plugin-workflow-approval 0.23.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (277) hide show
  1. package/.turbo/turbo-build.log +14 -0
  2. package/LICENSE +201 -0
  3. package/README.md +1 -0
  4. package/client.d.ts +2 -0
  5. package/client.js +1 -0
  6. package/dist/client/h5/ApprovalBlockInitializer.d.ts +8 -0
  7. package/dist/client/h5/ApprovalSettings.d.ts +2 -0
  8. package/dist/client/h5/collection/ApprovalTodos.d.ts +105 -0
  9. package/dist/client/h5/collection/Approvals.collection.d.ts +85 -0
  10. package/dist/client/h5/collection/FlowNodes.collection.d.ts +38 -0
  11. package/dist/client/h5/collection/UserJobs.collection.d.ts +141 -0
  12. package/dist/client/h5/collection/Workflows.collection.d.ts +30 -0
  13. package/dist/client/h5/collection/approvalCarbonCopy.collection.d.ts +156 -0
  14. package/dist/client/h5/collection/notice.collection.d.ts +131 -0
  15. package/dist/client/h5/component/ApprovalProcess.view.d.ts +2 -0
  16. package/dist/client/h5/component/ApprovalReachDataType.d.ts +2 -0
  17. package/dist/client/h5/component/ApprovalTemplateType.d.ts +2 -0
  18. package/dist/client/h5/constants.d.ts +159 -0
  19. package/dist/client/h5/context/ApprovalExecution.d.ts +3 -0
  20. package/dist/client/h5/context/FormBlock.d.ts +2 -0
  21. package/dist/client/h5/context/SchemaComponent.d.ts +5 -0
  22. package/dist/client/h5/context/WithActionEnabled.d.ts +3 -0
  23. package/dist/client/h5/index.d.ts +6 -0
  24. package/dist/client/h5/initiations/InitiationsBlock.d.ts +5 -0
  25. package/dist/client/h5/initiations/component/ApprovalItem.d.ts +2 -0
  26. package/dist/client/h5/initiations/component/ApprovalStatus.d.ts +2 -0
  27. package/dist/client/h5/initiations/component/InitiationsItem.d.ts +3 -0
  28. package/dist/client/h5/initiations/component/UserInitiationsItem.d.ts +3 -0
  29. package/dist/client/h5/initiations/component/ViewActionInitiationsContent.d.ts +10 -0
  30. package/dist/client/h5/initiations/component/ViewActionUserInitiationsContent.d.ts +3 -0
  31. package/dist/client/h5/initiations/config/LauncherActionConfig.d.ts +2 -0
  32. package/dist/client/h5/initiations/config/LauncherActionConfigComponent.d.ts +2 -0
  33. package/dist/client/h5/initiations/hook/useActionResubmit.d.ts +3 -0
  34. package/dist/client/h5/initiations/hook/useCreateSubmit.d.ts +3 -0
  35. package/dist/client/h5/initiations/hook/useDestroyAction.d.ts +3 -0
  36. package/dist/client/h5/initiations/hook/useFormBlockProps.d.ts +3 -0
  37. package/dist/client/h5/initiations/hook/useUpadteSubmit.d.ts +3 -0
  38. package/dist/client/h5/initiations/hook/useWithdrawAction.d.ts +3 -0
  39. package/dist/client/h5/initiations/provider/ActionBar.d.ts +1 -0
  40. package/dist/client/h5/initiations/provider/ActionResubmit.provider.d.ts +1 -0
  41. package/dist/client/h5/initiations/provider/ApplyActionStatus.d.ts +3 -0
  42. package/dist/client/h5/initiations/provider/Resubmit.provider.d.ts +10 -0
  43. package/dist/client/h5/initiations/provider/WithdrawAction.d.ts +3 -0
  44. package/dist/client/h5/locale.d.ts +7 -0
  45. package/dist/client/h5/todos/TodosBlock.d.ts +3 -0
  46. package/dist/client/h5/todos/component/TabApplicantType.d.ts +2 -0
  47. package/dist/client/h5/todos/component/TabApprovalItem.d.ts +3 -0
  48. package/dist/client/h5/todos/component/TabApprovalType.d.ts +2 -0
  49. package/dist/client/h5/todos/component/TabDuplicateItem.d.ts +3 -0
  50. package/dist/client/h5/todos/component/TabExecutedItem.d.ts +3 -0
  51. package/dist/client/h5/todos/component/TabPendingItem.d.ts +3 -0
  52. package/dist/client/h5/todos/component/TabProcessedItem.d.ts +3 -0
  53. package/dist/client/h5/todos/component/ViewActionTodosContent.d.ts +3 -0
  54. package/dist/client/h5/todos/component/ViewTodosDetailsContent.d.ts +2 -0
  55. package/dist/client/h5/todos/component/ViewTodosUserJobsContent.d.ts +6 -0
  56. package/dist/client/h5/todos/component/ViewTodosWorkflowNoticeContent.d.ts +3 -0
  57. package/dist/client/h5/todos/componentSchema.d.ts +32 -0
  58. package/dist/client/h5/todos/hook/useApprovalDetailBlockProps.d.ts +3 -0
  59. package/dist/client/h5/todos/hook/useApprovalFormBlockProps.d.ts +3 -0
  60. package/dist/client/h5/todos/hook/useDestroyAction.d.ts +3 -0
  61. package/dist/client/h5/todos/hook/useFormBlockProps.d.ts +9 -0
  62. package/dist/client/h5/todos/hook/usePropsNoticeDetail.d.ts +3 -0
  63. package/dist/client/h5/todos/hook/useSubmit.d.ts +6 -0
  64. package/dist/client/h5/todos/interface/interface.d.ts +139 -0
  65. package/dist/client/h5/todos/provider/ActionBarProvider.d.ts +3 -0
  66. package/dist/client/h5/todos/provider/ApplyActionStatus.d.ts +3 -0
  67. package/dist/client/h5/todos/provider/ApprovalAction.d.ts +9 -0
  68. package/dist/client/h5/todos/provider/ApprovalFormBlock.d.ts +2 -0
  69. package/dist/client/h5/todos/provider/FormBlockProvider.d.ts +2 -0
  70. package/dist/client/h5/todos/provider/ManualActionStatusProvider.d.ts +6 -0
  71. package/dist/client/h5/todos/provider/WithdrawAction.d.ts +3 -0
  72. package/dist/client/h5/todos/provider/todosContext.d.ts +2 -0
  73. package/dist/client/index.d.ts +7 -0
  74. package/dist/client/index.js +183 -0
  75. package/dist/client/pc/collections/approvalCarbonCopy.d.ts +156 -0
  76. package/dist/client/pc/collections/approvalRecords.d.ts +131 -0
  77. package/dist/client/pc/collections/approvals.d.ts +109 -0
  78. package/dist/client/pc/collections/flowNodes.d.ts +38 -0
  79. package/dist/client/pc/collections/workflows.d.ts +41 -0
  80. package/dist/client/pc/common/FormBlock.provider.d.ts +2 -0
  81. package/dist/client/pc/configuration/Approval.setting.d.ts +8 -0
  82. package/dist/client/pc/configuration/ApprovalPane.component.d.ts +2 -0
  83. package/dist/client/pc/configuration/ApprovalPane.schema.d.ts +651 -0
  84. package/dist/client/pc/configuration/instruction-approval/Approval.node.d.ts +152 -0
  85. package/dist/client/pc/configuration/instruction-approval/ApprovalNode.component.d.ts +4 -0
  86. package/dist/client/pc/configuration/instruction-approval/ApproverConfig.context.d.ts +1 -0
  87. package/dist/client/pc/configuration/instruction-approval/approval-config/SkipApproval.schema.d.ts +14 -0
  88. package/dist/client/pc/configuration/instruction-approval/approval-config/SkipApproval.view.d.ts +2 -0
  89. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.AssigneesAddition.d.ts +2 -0
  90. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.AssigneesSelect.d.ts +2 -0
  91. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.ContentTooltip.d.ts +5 -0
  92. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.NegotiationConfig.d.ts +5 -0
  93. package/dist/client/pc/configuration/instruction-approval/approval-config/VC.SchemaConfigButtonApprover.d.ts +2 -0
  94. package/dist/client/pc/configuration/instruction-approval/approver-interface/ApprovalUpdateForm.provider.d.ts +1 -0
  95. package/dist/client/pc/configuration/instruction-approval/approver-interface/ApproverAddBlock.initializer.d.ts +2 -0
  96. package/dist/client/pc/configuration/instruction-approval/approver-interface/ApproverBlock.view.d.ts +5 -0
  97. package/dist/client/pc/configuration/instruction-approval/approver-interface/ApproverInterface.schema.d.ts +2 -0
  98. package/dist/client/pc/configuration/instruction-approval/approver-interface/Iz.ApproverActionConfig.d.ts +2 -0
  99. package/dist/client/pc/configuration/instruction-approval/approver-interface/Pd.ActionBarProvider.d.ts +1 -0
  100. package/dist/client/pc/configuration/instruction-approval/approver-interface/Pd.ApprovalActionProvider.d.ts +1 -0
  101. package/dist/client/pc/configuration/instruction-approval/approver-interface/Pd.SchemaConfigButtonContext.d.ts +1 -0
  102. package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApprovalActionConfig.d.ts +2 -0
  103. package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApprovalFormBlockProvider.d.ts +2 -0
  104. package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApproverAddBlock.d.ts +2 -0
  105. package/dist/client/pc/configuration/instruction-approval/approver-interface/VC.ApproverAddBlockKit.d.ts +2 -0
  106. package/dist/client/pc/configuration/instruction-approval/approver-interface/useApprovalFormBlockProps.d.ts +3 -0
  107. package/dist/client/pc/configuration/instruction-approval/forms/AddActionButton.setting.d.ts +2 -0
  108. package/dist/client/pc/configuration/instruction-approval/forms/Approval.options.d.ts +42 -0
  109. package/dist/client/pc/configuration/instruction-approval/forms/FormBlock.factory.d.ts +6 -0
  110. package/dist/client/pc/configuration/instruction-approval/forms/update.d.ts +28 -0
  111. package/dist/client/pc/configuration/instruction-approval/kit.d.ts +5 -0
  112. package/dist/client/pc/configuration/instruction-approval/utils.d.ts +1 -0
  113. package/dist/client/pc/configuration/instruction-carbon-copy/ApprovalCarbonCopy.instruction.d.ts +76 -0
  114. package/dist/client/pc/configuration/instruction-carbon-copy/config-items/AddNotifiedPerson.view.d.ts +2 -0
  115. package/dist/client/pc/configuration/instruction-carbon-copy/config-items/ConfigButtonNotice.view.d.ts +2 -0
  116. package/dist/client/pc/configuration/instruction-carbon-copy/config-items/SelectNotifiedPerson.view.d.ts +2 -0
  117. package/dist/client/pc/configuration/instruction-carbon-copy/kit.d.ts +5 -0
  118. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetail.block.d.ts +2 -0
  119. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetail.initializer.d.ts +2 -0
  120. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetail.schema.d.ts +6 -0
  121. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/CarbonCopyDetailContainer.schema.d.ts +2 -0
  122. package/dist/client/pc/configuration/instruction-carbon-copy/show-interface/style.d.ts +3 -0
  123. package/dist/client/pc/configuration/instruction-carbon-copy/style.d.ts +5 -0
  124. package/dist/client/pc/configuration/plugin.d.ts +5 -0
  125. package/dist/client/pc/configuration/trigger/Approval.trigger.d.ts +121 -0
  126. package/dist/client/pc/configuration/trigger/ConfigButton.view.d.ts +2 -0
  127. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherActionConfig.component.d.ts +3 -0
  128. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherActionConfig.initializer.d.ts +2 -0
  129. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherAddBlockButton.initializer.d.ts +2 -0
  130. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherBlockButton.component.d.ts +2 -0
  131. package/dist/client/pc/configuration/trigger/launcher-interface/LauncherInterface.schema.d.ts +2 -0
  132. package/dist/client/pc/configuration/trigger/launcher-interface/SchemaAddBlock.component.d.ts +5 -0
  133. package/dist/client/pc/configuration/trigger/plugin.d.ts +6 -0
  134. package/dist/client/pc/constants.d.ts +91 -0
  135. package/dist/client/pc/index.d.ts +5 -0
  136. package/dist/client/pc/locale.d.ts +7 -0
  137. package/dist/client/pc/usage/block/ApprovalBlock.initializer.d.ts +70 -0
  138. package/dist/client/pc/usage/block/BlockInitItem.provider.d.ts +5 -0
  139. package/dist/client/pc/usage/block/BlockInitItem.schema.d.ts +21 -0
  140. package/dist/client/pc/usage/block/BlockInitItem.view.d.ts +2 -0
  141. package/dist/client/pc/usage/block/InitiateApplication.component.d.ts +6 -0
  142. package/dist/client/pc/usage/block/carbon-copy/CarbonCopyBlock.provider.d.ts +5 -0
  143. package/dist/client/pc/usage/block/carbon-copy/CarbonCopyCenter.schema.d.ts +2 -0
  144. package/dist/client/pc/usage/block/common/ApprovalExecution.provider.d.ts +6 -0
  145. package/dist/client/pc/usage/block/common/FlowContext.provider.d.ts +6 -0
  146. package/dist/client/pc/usage/block/common/FuzzySearch.component.d.ts +2 -0
  147. package/dist/client/pc/usage/block/common/SchemaComponent.provider.d.ts +5 -0
  148. package/dist/client/pc/usage/block/common/useHandleRefresh.d.ts +3 -0
  149. package/dist/client/pc/usage/block/initiations/ApprovalStatus.context.d.ts +2 -0
  150. package/dist/client/pc/usage/block/initiations/CheckContent.component.d.ts +2 -0
  151. package/dist/client/pc/usage/block/initiations/CheckContent.provider.d.ts +2 -0
  152. package/dist/client/pc/usage/block/initiations/CheckContent.schema.d.ts +45 -0
  153. package/dist/client/pc/usage/block/initiations/CheckContent.view.d.ts +2 -0
  154. package/dist/client/pc/usage/block/initiations/CheckLink.schema.d.ts +24 -0
  155. package/dist/client/pc/usage/block/initiations/CheckLink.view.d.ts +2 -0
  156. package/dist/client/pc/usage/block/initiations/TableInitiated.d.ts +6 -0
  157. package/dist/client/pc/usage/block/initiations/TableInitiated.schema.d.ts +182 -0
  158. package/dist/client/pc/usage/block/initiations/WithdrawAction.provider.d.ts +3 -0
  159. package/dist/client/pc/usage/block/initiations/apply-button/ActionBar.provider.d.ts +1 -0
  160. package/dist/client/pc/usage/block/initiations/apply-button/ActionStatus.provider.d.ts +3 -0
  161. package/dist/client/pc/usage/block/initiations/apply-button/ActionWithdraw.provider.d.ts +1 -0
  162. package/dist/client/pc/usage/block/initiations/apply-button/ApplyButton.component.d.ts +2 -0
  163. package/dist/client/pc/usage/block/initiations/apply-button/ApplyButton.provider.d.ts +2 -0
  164. package/dist/client/pc/usage/block/initiations/apply-button/ApplyButton.view.d.ts +2 -0
  165. package/dist/client/pc/usage/block/initiations/apply-button/hooks/useActionResubmit.d.ts +3 -0
  166. package/dist/client/pc/usage/block/initiations/apply-button/hooks/useSubmitCreate.d.ts +3 -0
  167. package/dist/client/pc/usage/block/initiations/apply-button/hooks/useWithdrawAction.d.ts +3 -0
  168. package/dist/client/pc/usage/block/initiations/hooks/useActionResubmit.d.ts +3 -0
  169. package/dist/client/pc/usage/block/initiations/hooks/useDestroyAction.d.ts +3 -0
  170. package/dist/client/pc/usage/block/initiations/hooks/useFormBlockProps.d.ts +3 -0
  171. package/dist/client/pc/usage/block/initiations/hooks/useSubmitUpdate.d.ts +3 -0
  172. package/dist/client/pc/usage/block/initiations/hooks/useWithdrawAction.d.ts +3 -0
  173. package/dist/client/pc/usage/block/initiations/providers/ActionBar.provider.d.ts +1 -0
  174. package/dist/client/pc/usage/block/initiations/providers/ActionResubmit.provider.d.ts +1 -0
  175. package/dist/client/pc/usage/block/initiations/providers/ApplyActionStatus.provider.d.ts +2 -0
  176. package/dist/client/pc/usage/block/initiations/providers/Record.provider.d.ts +2 -0
  177. package/dist/client/pc/usage/block/plugin.d.ts +5 -0
  178. package/dist/client/pc/usage/block/todos/CheckContent.component.d.ts +2 -0
  179. package/dist/client/pc/usage/block/todos/CheckContent.provider.d.ts +2 -0
  180. package/dist/client/pc/usage/block/todos/CheckContent.schema.d.ts +40 -0
  181. package/dist/client/pc/usage/block/todos/CheckContent.view.d.ts +2 -0
  182. package/dist/client/pc/usage/block/todos/CheckLink.schema.d.ts +19 -0
  183. package/dist/client/pc/usage/block/todos/CheckLink.view.d.ts +2 -0
  184. package/dist/client/pc/usage/block/todos/TableTodos.d.ts +6 -0
  185. package/dist/client/pc/usage/block/todos/TableTodos.schema.d.ts +195 -0
  186. package/dist/client/pc/usage/block/todos/hooks/useApprovalDetailBlockProps.d.ts +3 -0
  187. package/dist/client/pc/usage/block/todos/hooks/useApprovalFormBlockProps.d.ts +3 -0
  188. package/dist/client/pc/usage/block/todos/hooks/useSubmit.d.ts +3 -0
  189. package/dist/client/pc/usage/block/todos/providers/ActionBar.provider.d.ts +2 -0
  190. package/dist/client/pc/usage/block/todos/providers/ApprovalAction.provider.d.ts +10 -0
  191. package/dist/client/pc/usage/block/todos/providers/ApprovalExecutions.provider.d.ts +28 -0
  192. package/dist/client/pc/usage/block/todos/providers/ApprovalFormBlock.provider.d.ts +2 -0
  193. package/dist/client/pc/usage/block/todos/providers/ApprovalUpdateForm.provider.d.ts +1 -0
  194. package/dist/client/pc/usage/common/ApprovalData.provider.d.ts +5 -0
  195. package/dist/client/pc/usage/common/ApprovalProcess.view.d.ts +2 -0
  196. package/dist/client/pc/usage/common/Resubmit.provider.d.ts +10 -0
  197. package/dist/client/pc/usage/common/WithActionEnabled.provider.d.ts +3 -0
  198. package/dist/client/pc/usage/common/approval-columns/approvalStatus.column.d.ts +3 -0
  199. package/dist/client/pc/usage/common/approval-columns/lastNode.column.d.ts +2 -0
  200. package/dist/client/pc/usage/common/approval-columns/node.column.d.ts +1 -0
  201. package/dist/client/pc/usage/common/approval-columns/status.column.d.ts +3 -0
  202. package/dist/client/pc/usage/common/approval-columns/summary.column.d.ts +2 -0
  203. package/dist/client/pc/usage/common/approval-columns/user.column.d.ts +1 -0
  204. package/dist/client/pc/usage/common/approval-columns/workflow.column.d.ts +2 -0
  205. package/dist/client/pc/usage/common/notice-columns/column.action.d.ts +2 -0
  206. package/dist/client/pc/usage/common/notice-columns/column.node.d.ts +1 -0
  207. package/dist/client/pc/usage/common/notice-columns/column.status.d.ts +8 -0
  208. package/dist/client/pc/usage/common/notice-columns/column.user.d.ts +1 -0
  209. package/dist/client/pc/usage/common/notice-columns/column.workflow.d.ts +2 -0
  210. package/dist/client/pc/usage/common/notice-show-detail/NoticeDetail.provider.d.ts +5 -0
  211. package/dist/client/pc/usage/common/notice-show-detail/NoticeDetail.schema.d.ts +2 -0
  212. package/dist/client/pc/usage/common/notice-show-detail/contexts/MyComponent.context.d.ts +9 -0
  213. package/dist/client/pc/usage/common/notice-show-detail/contexts/WorkflowNotice.context.d.ts +4 -0
  214. package/dist/client/pc/usage/common/notice-show-detail/hooks/usePropsNoticeDetail.d.ts +3 -0
  215. package/dist/client/pc/usage/common/plugin.d.ts +4 -0
  216. package/dist/client/pc/usage/common/process-columns/index.d.ts +44 -0
  217. package/dist/client/pc/usage/common/process-columns/renderDetail.d.ts +2 -0
  218. package/dist/client/pc/usage/common/process-columns/renderStatus.d.ts +2 -0
  219. package/dist/client/pc/usage/common/process-columns/renderTaskNode.d.ts +2 -0
  220. package/dist/client/pc/usage/common/style.d.ts +4 -0
  221. package/dist/client/pc/usage/common/tools.d.ts +1 -0
  222. package/dist/client/pc/usage/plugin.d.ts +5 -0
  223. package/dist/client/pc/usage/record-block/RecordApprovals.decorator.d.ts +5 -0
  224. package/dist/client/pc/usage/record-block/RecordApprovals.initializer.d.ts +2 -0
  225. package/dist/client/pc/usage/record-block/RecordApprovals.schema.d.ts +110 -0
  226. package/dist/client/pc/usage/record-block/RecordApprovals.view.d.ts +2 -0
  227. package/dist/client/pc/usage/record-block/plugin.d.ts +6 -0
  228. package/dist/common/collection-name.d.ts +4 -0
  229. package/dist/common/collection-name.js +36 -0
  230. package/dist/externalVersion.js +19 -0
  231. package/dist/index.d.ts +2 -0
  232. package/dist/index.js +39 -0
  233. package/dist/locale/en-US.json +311 -0
  234. package/dist/locale/zh-CN.json +388 -0
  235. package/dist/server/actions/approvalCarbonCopy.d.ts +3 -0
  236. package/dist/server/actions/approvalCarbonCopy.js +71 -0
  237. package/dist/server/actions/approvalRecords.d.ts +4 -0
  238. package/dist/server/actions/approvalRecords.js +111 -0
  239. package/dist/server/actions/approvals.d.ts +8 -0
  240. package/dist/server/actions/approvals.js +275 -0
  241. package/dist/server/actions/index.d.ts +3 -0
  242. package/dist/server/actions/index.js +48 -0
  243. package/dist/server/actions/workflows.d.ts +3 -0
  244. package/dist/server/actions/workflows.js +49 -0
  245. package/dist/server/collections/approvalCarbonCopy.d.ts +2 -0
  246. package/dist/server/collections/approvalCarbonCopy.js +87 -0
  247. package/dist/server/collections/approvalExecutions.d.ts +2 -0
  248. package/dist/server/collections/approvalExecutions.js +70 -0
  249. package/dist/server/collections/approvalRecords.d.ts +2 -0
  250. package/dist/server/collections/approvalRecords.js +88 -0
  251. package/dist/server/collections/approvals.d.ts +2 -0
  252. package/dist/server/collections/approvals.js +96 -0
  253. package/dist/server/constants/error-code.d.ts +22 -0
  254. package/dist/server/constants/error-code.js +48 -0
  255. package/dist/server/constants/status.d.ts +20 -0
  256. package/dist/server/constants/status.js +46 -0
  257. package/dist/server/index.d.ts +1 -0
  258. package/dist/server/index.js +33 -0
  259. package/dist/server/instructions/Approval.d.ts +9 -0
  260. package/dist/server/instructions/Approval.js +220 -0
  261. package/dist/server/instructions/ApprovalCarbonCopy.d.ts +8 -0
  262. package/dist/server/instructions/ApprovalCarbonCopy.js +99 -0
  263. package/dist/server/instructions/tools.d.ts +11 -0
  264. package/dist/server/instructions/tools.js +139 -0
  265. package/dist/server/plugin.d.ts +12 -0
  266. package/dist/server/plugin.js +89 -0
  267. package/dist/server/tools.d.ts +11 -0
  268. package/dist/server/tools.js +70 -0
  269. package/dist/server/triggers/Approval.d.ts +23 -0
  270. package/dist/server/triggers/Approval.js +313 -0
  271. package/dist/server/triggers/tools.d.ts +12 -0
  272. package/dist/server/triggers/tools.js +44 -0
  273. package/dist/server/utils.d.ts +1 -0
  274. package/dist/server/utils.js +39 -0
  275. package/package.json +45 -0
  276. package/server.d.ts +2 -0
  277. package/server.js +1 -0
@@ -0,0 +1,651 @@
1
+ import React from 'react';
2
+ import { ISchema } from '@tachybase/schema';
3
+ export declare const approvalFieldset: Record<string, ISchema>;
4
+ export declare const schemaApprovalPanne: {
5
+ type: string;
6
+ properties: {
7
+ approvalProvider: {
8
+ type: string;
9
+ 'x-decorator': string;
10
+ 'x-component': string;
11
+ 'x-decorator-props': {
12
+ collection: {
13
+ name: string;
14
+ fields: ({
15
+ type: string;
16
+ name: string;
17
+ interface: string;
18
+ uiSchema: ISchema;
19
+ target?: undefined;
20
+ targetKey?: undefined;
21
+ foreignKey?: undefined;
22
+ collectionName?: undefined;
23
+ } | {
24
+ type: string;
25
+ name: string;
26
+ interface?: undefined;
27
+ uiSchema?: undefined;
28
+ target?: undefined;
29
+ targetKey?: undefined;
30
+ foreignKey?: undefined;
31
+ collectionName?: undefined;
32
+ } | {
33
+ name: string;
34
+ type: string;
35
+ interface: string;
36
+ target: string;
37
+ targetKey: string;
38
+ foreignKey: string;
39
+ collectionName: string;
40
+ uiSchema: {
41
+ type: string;
42
+ title: string;
43
+ "x-component": string;
44
+ "x-component-props": {
45
+ fieldNames: {
46
+ value: string;
47
+ label: string;
48
+ };
49
+ };
50
+ "x-read-pretty": boolean;
51
+ };
52
+ })[];
53
+ };
54
+ action: string;
55
+ params: {
56
+ filter: {
57
+ current: boolean;
58
+ type: string;
59
+ };
60
+ sort: string[];
61
+ except: string[];
62
+ };
63
+ rowKey: string;
64
+ };
65
+ properties: {
66
+ actions: {
67
+ type: string;
68
+ 'x-component': string;
69
+ 'x-component-props': {
70
+ style: {
71
+ marginBottom: number;
72
+ };
73
+ };
74
+ properties: {
75
+ filter: {
76
+ type: string;
77
+ title: string;
78
+ default: {
79
+ $and: {
80
+ title: {
81
+ $includes: string;
82
+ };
83
+ }[];
84
+ };
85
+ 'x-action': string;
86
+ 'x-component': string;
87
+ 'x-use-component-props': string;
88
+ 'x-component-props': {
89
+ icon: string;
90
+ };
91
+ 'x-align': string;
92
+ };
93
+ refresh: {
94
+ type: string;
95
+ title: string;
96
+ 'x-action': string;
97
+ 'x-component': string;
98
+ 'x-settings': string;
99
+ 'x-component-props': {
100
+ icon: string;
101
+ };
102
+ 'x-use-component-props': string;
103
+ };
104
+ delete: {
105
+ type: string;
106
+ title: string;
107
+ 'x-action': string;
108
+ 'x-decorator': string;
109
+ 'x-component': string;
110
+ 'x-use-component-props': string;
111
+ 'x-component-props': {
112
+ icon: string;
113
+ confirm: {
114
+ title: string;
115
+ content: string;
116
+ };
117
+ };
118
+ };
119
+ load: {
120
+ type: string;
121
+ title: string;
122
+ 'x-component': string;
123
+ 'x-component-props': {
124
+ icon: string;
125
+ openSize: string;
126
+ };
127
+ properties: {
128
+ modal: {
129
+ type: string;
130
+ title: string;
131
+ 'x-decorator': string;
132
+ 'x-component': string;
133
+ properties: {
134
+ title: {
135
+ type: string;
136
+ title: string;
137
+ 'x-decorator': string;
138
+ 'x-component': string;
139
+ };
140
+ file: {
141
+ type: string;
142
+ title: string;
143
+ required: boolean;
144
+ 'x-decorator': string;
145
+ 'x-component': string;
146
+ 'x-component-props': {
147
+ action: string;
148
+ multiple: boolean;
149
+ };
150
+ };
151
+ footer: {
152
+ type: string;
153
+ 'x-component': string;
154
+ properties: {
155
+ submit: {
156
+ type: string;
157
+ title: string;
158
+ 'x-component': string;
159
+ 'x-component-props': {
160
+ type: string;
161
+ useAction(): {
162
+ run(): Promise<void>;
163
+ };
164
+ };
165
+ };
166
+ cancel: {
167
+ type: string;
168
+ title: string;
169
+ 'x-component': string;
170
+ 'x-use-component-props': string;
171
+ };
172
+ };
173
+ };
174
+ };
175
+ };
176
+ };
177
+ };
178
+ create: import("@tachybase/schema").Stringify<{
179
+ [key: symbol]: any;
180
+ [key: `x-${string}`]: any;
181
+ [key: `x-${number}`]: any;
182
+ version?: string;
183
+ name?: import("@tachybase/schema").SchemaKey;
184
+ title?: any;
185
+ description?: any;
186
+ default?: any;
187
+ readOnly?: boolean;
188
+ writeOnly?: boolean;
189
+ type?: import("@tachybase/schema").SchemaTypes;
190
+ enum?: import("@tachybase/schema").SchemaEnum<any>;
191
+ const?: any;
192
+ multipleOf?: number;
193
+ maximum?: number;
194
+ exclusiveMaximum?: number;
195
+ minimum?: number;
196
+ exclusiveMinimum?: number;
197
+ maxLength?: number;
198
+ minLength?: number;
199
+ pattern?: string | RegExp;
200
+ maxItems?: number;
201
+ minItems?: number;
202
+ uniqueItems?: boolean;
203
+ maxProperties?: number;
204
+ minProperties?: number;
205
+ required?: string[] | boolean | string;
206
+ format?: string;
207
+ $ref?: string;
208
+ $namespace?: string;
209
+ definitions?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
210
+ properties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
211
+ items?: import("@tachybase/schema").SchemaItems<any, any, any, any, any, any, any, any>;
212
+ additionalItems?: import("@tachybase/schema").Stringify</*elided*/ any>;
213
+ patternProperties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
214
+ additionalProperties?: import("@tachybase/schema").Stringify</*elided*/ any>;
215
+ "x-value"?: any;
216
+ "x-index"?: number;
217
+ "x-pattern"?: any;
218
+ "x-display"?: any;
219
+ "x-validator"?: any;
220
+ "x-decorator"?: any;
221
+ "x-decorator-props"?: any;
222
+ "x-component"?: any;
223
+ "x-component-props"?: any;
224
+ "x-reactions"?: import("@tachybase/schema").SchemaReactions<any>;
225
+ "x-content"?: any;
226
+ "x-data"?: any;
227
+ "x-visible"?: boolean;
228
+ "x-hidden"?: boolean;
229
+ "x-disabled"?: boolean;
230
+ "x-editable"?: boolean;
231
+ "x-read-only"?: boolean;
232
+ "x-read-pretty"?: boolean;
233
+ "x-compile-omitted"?: string[];
234
+ }>;
235
+ };
236
+ };
237
+ table: {
238
+ type: string;
239
+ 'x-component': string;
240
+ 'x-use-component-props': string;
241
+ 'x-component-props': {
242
+ rowKey: string;
243
+ rowSelection: {
244
+ type: string;
245
+ };
246
+ };
247
+ properties: {
248
+ title: {
249
+ type: string;
250
+ 'x-decorator': string;
251
+ 'x-component': string;
252
+ properties: {
253
+ title: {
254
+ type: string;
255
+ 'x-component': string;
256
+ 'x-read-pretty': boolean;
257
+ };
258
+ };
259
+ };
260
+ description: {
261
+ type: string;
262
+ 'x-decorator': string;
263
+ 'x-component': string;
264
+ properties: {
265
+ description: {
266
+ type: string;
267
+ 'x-component': string;
268
+ 'x-read-pretty': boolean;
269
+ };
270
+ };
271
+ };
272
+ enabled: {
273
+ type: string;
274
+ 'x-decorator': string;
275
+ 'x-component': string;
276
+ 'x-component-props': {
277
+ width: number;
278
+ };
279
+ properties: {
280
+ enabled: {
281
+ type: string;
282
+ 'x-component': string;
283
+ 'x-read-pretty': boolean;
284
+ default: boolean;
285
+ };
286
+ };
287
+ };
288
+ allExecuted: {
289
+ type: string;
290
+ 'x-decorator': string;
291
+ 'x-component': string;
292
+ 'x-component-props': {
293
+ width: number;
294
+ };
295
+ properties: {
296
+ allExecuted: {
297
+ type: string;
298
+ 'x-decorator': string;
299
+ 'x-decorator-props': {
300
+ component: (props: any) => React.DetailedReactHTMLElement<any, HTMLElement>;
301
+ };
302
+ 'x-component': string;
303
+ 'x-read-pretty': boolean;
304
+ properties: {
305
+ drawer: {
306
+ type: string;
307
+ name: string;
308
+ title: string;
309
+ 'x-component': string;
310
+ properties: {
311
+ content: {
312
+ type: string;
313
+ "x-decorator": string;
314
+ "x-decorator-props": {
315
+ collection: {
316
+ name: string;
317
+ fields: {
318
+ interface: string;
319
+ type: string;
320
+ name: string;
321
+ uiSchema: ISchema;
322
+ }[];
323
+ };
324
+ dataSource: string;
325
+ action: string;
326
+ params: {
327
+ appends: string[];
328
+ pageSize: number;
329
+ sort: string[];
330
+ };
331
+ };
332
+ properties: {
333
+ actions: {
334
+ type: string;
335
+ "x-component": string;
336
+ "x-component-props": {
337
+ style: {
338
+ marginBottom: number;
339
+ };
340
+ };
341
+ properties: {
342
+ refresher: {
343
+ type: string;
344
+ title: string;
345
+ "x-action": string;
346
+ "x-component": string;
347
+ "x-use-component-props": string;
348
+ "x-designer": string;
349
+ "x-component-props": {
350
+ icon: string;
351
+ };
352
+ "x-align": string;
353
+ };
354
+ clear: {
355
+ type: string;
356
+ title: string;
357
+ "x-component": string;
358
+ "x-component-props": {
359
+ isShow: any;
360
+ useAction(): {
361
+ run(): Promise<void>;
362
+ };
363
+ confirm: {
364
+ title: string;
365
+ content: string;
366
+ };
367
+ };
368
+ };
369
+ };
370
+ };
371
+ table: {
372
+ type: string;
373
+ "x-component": string;
374
+ "x-use-component-props": string;
375
+ "x-component-props": {
376
+ rowKey: string;
377
+ };
378
+ properties: {
379
+ actions: {
380
+ type: string;
381
+ title: string;
382
+ "x-component": string;
383
+ "x-component-props": {
384
+ width: number;
385
+ };
386
+ properties: {
387
+ actions: {
388
+ type: string;
389
+ "x-component": string;
390
+ "x-component-props": {
391
+ split: string;
392
+ };
393
+ properties: {
394
+ link: {
395
+ type: string;
396
+ "x-component": string;
397
+ };
398
+ };
399
+ };
400
+ };
401
+ };
402
+ id: {
403
+ type: string;
404
+ "x-decorator": string;
405
+ "x-component": string;
406
+ "x-component-props": {
407
+ width: number;
408
+ };
409
+ properties: {
410
+ id: {
411
+ type: string;
412
+ "x-component": string;
413
+ "x-read-pretty": boolean;
414
+ };
415
+ };
416
+ };
417
+ createdAt: {
418
+ type: string;
419
+ "x-decorator": string;
420
+ "x-component": string;
421
+ "x-component-props": {
422
+ width: number;
423
+ };
424
+ properties: {
425
+ createdAt: {
426
+ type: string;
427
+ "x-component": string;
428
+ "x-component-props": {
429
+ showTime: boolean;
430
+ };
431
+ "x-read-pretty": boolean;
432
+ };
433
+ };
434
+ };
435
+ executionTime: {
436
+ type: string;
437
+ title: string;
438
+ "x-decorator": string;
439
+ "x-component": string;
440
+ "x-component-props": {
441
+ width: number;
442
+ };
443
+ properties: {
444
+ executionTime: {
445
+ type: string;
446
+ "x-decorator": string;
447
+ "x-component": string;
448
+ "x-read-pretty": boolean;
449
+ };
450
+ };
451
+ };
452
+ workflowId: {
453
+ type: string;
454
+ "x-decorator": string;
455
+ "x-component": string;
456
+ "x-component-props": {
457
+ width: number;
458
+ };
459
+ properties: {
460
+ workflowId: {
461
+ type: string;
462
+ "x-component": string;
463
+ "x-read-pretty": boolean;
464
+ };
465
+ };
466
+ };
467
+ status: {
468
+ type: string;
469
+ title: string;
470
+ "x-decorator": string;
471
+ "x-component": string;
472
+ "x-component-props": {
473
+ width: number;
474
+ };
475
+ properties: {
476
+ status: {
477
+ type: string;
478
+ "x-decorator": string;
479
+ "x-component": string;
480
+ "x-read-pretty": boolean;
481
+ };
482
+ };
483
+ };
484
+ };
485
+ };
486
+ };
487
+ };
488
+ };
489
+ };
490
+ };
491
+ };
492
+ };
493
+ };
494
+ actions: {
495
+ type: string;
496
+ title: string;
497
+ 'x-component': string;
498
+ 'x-component-props': {
499
+ fixed: string;
500
+ };
501
+ properties: {
502
+ actions: {
503
+ type: string;
504
+ 'x-component': string;
505
+ 'x-component-props': {
506
+ split: string;
507
+ };
508
+ properties: {
509
+ configure: {
510
+ type: string;
511
+ 'x-component': string;
512
+ };
513
+ update: import("@tachybase/schema").Stringify<{
514
+ [key: symbol]: any;
515
+ [key: `x-${string}`]: any;
516
+ [key: `x-${number}`]: any;
517
+ version?: string;
518
+ name?: import("@tachybase/schema").SchemaKey;
519
+ title?: any;
520
+ description?: any;
521
+ default?: any;
522
+ readOnly?: boolean;
523
+ writeOnly?: boolean;
524
+ type?: import("@tachybase/schema").SchemaTypes;
525
+ enum?: import("@tachybase/schema").SchemaEnum<any>;
526
+ const?: any;
527
+ multipleOf?: number;
528
+ maximum?: number;
529
+ exclusiveMaximum?: number;
530
+ minimum?: number;
531
+ exclusiveMinimum?: number;
532
+ maxLength?: number;
533
+ minLength?: number;
534
+ pattern?: string | RegExp;
535
+ maxItems?: number;
536
+ minItems?: number;
537
+ uniqueItems?: boolean;
538
+ maxProperties?: number;
539
+ minProperties?: number;
540
+ required?: string[] | boolean | string;
541
+ format?: string;
542
+ $ref?: string;
543
+ $namespace?: string;
544
+ definitions?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
545
+ properties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
546
+ items?: import("@tachybase/schema").SchemaItems<any, any, any, any, any, any, any, any>;
547
+ additionalItems?: import("@tachybase/schema").Stringify</*elided*/ any>;
548
+ patternProperties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
549
+ additionalProperties?: import("@tachybase/schema").Stringify</*elided*/ any>;
550
+ "x-value"?: any;
551
+ "x-index"?: number;
552
+ "x-pattern"?: any;
553
+ "x-display"?: any;
554
+ "x-validator"?: any;
555
+ "x-decorator"?: any;
556
+ "x-decorator-props"?: any;
557
+ "x-component"?: any;
558
+ "x-component-props"?: any;
559
+ "x-reactions"?: import("@tachybase/schema").SchemaReactions<any>;
560
+ "x-content"?: any;
561
+ "x-data"?: any;
562
+ "x-visible"?: boolean;
563
+ "x-hidden"?: boolean;
564
+ "x-disabled"?: boolean;
565
+ "x-editable"?: boolean;
566
+ "x-read-only"?: boolean;
567
+ "x-read-pretty"?: boolean;
568
+ "x-compile-omitted"?: string[];
569
+ }>;
570
+ revision: {
571
+ type: string;
572
+ title: string;
573
+ 'x-component': string;
574
+ 'x-component-props': {
575
+ openSize: string;
576
+ };
577
+ properties: {
578
+ modal: {
579
+ type: string;
580
+ title: string;
581
+ 'x-decorator': string;
582
+ 'x-component': string;
583
+ properties: {
584
+ title: {
585
+ type: string;
586
+ title: string;
587
+ 'x-decorator': string;
588
+ 'x-component': string;
589
+ };
590
+ footer: {
591
+ type: string;
592
+ 'x-component': string;
593
+ properties: {
594
+ submit: {
595
+ type: string;
596
+ title: string;
597
+ 'x-component': string;
598
+ 'x-component-props': {
599
+ type: string;
600
+ useAction(): {
601
+ run(): Promise<void>;
602
+ };
603
+ };
604
+ };
605
+ cancel: {
606
+ type: string;
607
+ title: string;
608
+ 'x-component': string;
609
+ 'x-component-props': {
610
+ useAction: string;
611
+ };
612
+ };
613
+ };
614
+ };
615
+ };
616
+ };
617
+ };
618
+ };
619
+ delete: {
620
+ type: string;
621
+ title: string;
622
+ 'x-action': string;
623
+ 'x-component': string;
624
+ 'x-use-component-props': string;
625
+ 'x-component-props': {
626
+ confirm: {
627
+ title: string;
628
+ content: string;
629
+ };
630
+ };
631
+ };
632
+ dump: {
633
+ type: string;
634
+ title: string;
635
+ 'x-component': string;
636
+ 'x-component-props': {
637
+ useAction(): {
638
+ run(): Promise<void>;
639
+ };
640
+ };
641
+ };
642
+ };
643
+ };
644
+ };
645
+ };
646
+ };
647
+ };
648
+ };
649
+ };
650
+ };
651
+ };