@steedos-labs/plugin-workflow 3.0.0-beta.21 → 3.0.0-beta.22

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.
@@ -553,7 +553,7 @@ pushManager.checkMailFromNameLength = function (name) {
553
553
  };
554
554
 
555
555
  // TODO 手机推送
556
- pushManager.send_message_by_raix_push = async function (data) {
556
+ pushManager.send_message_by_raix_push = async function (data, lang) {
557
557
  if (process.env.STEEDOS_DEBUG_DISABLE_PUSHMANAGER || !data["data"]) {
558
558
  return;
559
559
  }
@@ -590,7 +590,7 @@ pushManager.send_message_by_raix_push = async function (data) {
590
590
  }
591
591
  let notificationDoc = {
592
592
  name: notification.text,
593
- body: '审批',
593
+ body: t('CustomLabels.approval_workflow', {}, lang),
594
594
  related_to: {
595
595
  o: "instances",
596
596
  ids: [notification.payload?.instance]
@@ -631,7 +631,7 @@ pushManager.send_message_by_raix_push = async function (data) {
631
631
  };
632
632
 
633
633
  //steedos_ids 必须为数组 ; body 如果有,则必须为Hash
634
- pushManager.send_message = function (steedos_ids, body) {
634
+ pushManager.send_message = function (steedos_ids, body, current_user_info, lang) {
635
635
  if (process.env.STEEDOS_DEBUG_DISABLE_PUSHMANAGER) {
636
636
  return;
637
637
  }
@@ -651,7 +651,7 @@ pushManager.send_message = function (steedos_ids, body) {
651
651
  data.data = body;
652
652
  }
653
653
 
654
- pushManager.send_message_by_raix_push(data);
654
+ pushManager.send_message_by_raix_push(data, lang);
655
655
  };
656
656
 
657
657
  // TODO处理发送手机短信
@@ -780,7 +780,7 @@ pushManager.send_instance_notification = async function (send_from, instance, de
780
780
  await pushManager.send_email_to_SMTP(title.email, content, to_user, from_user);
781
781
 
782
782
  // Send Push Notification
783
- await pushManager.send_message([to_user.steedos_id], push_body, current_user_info);
783
+ await pushManager.send_message([to_user.steedos_id], push_body, current_user_info, lang);
784
784
 
785
785
  // Send SMS
786
786
  if (['reassign_new_inbox_users', 'submit_pending_rejected_applicant_inbox', 'submit_pending_rejected_inbox', 'submit_pending_inbox', 'first_submit_inbox', 'return_pending_inbox'].includes(send_from)) {
@@ -3,4 +3,5 @@ CustomApplications:
3
3
  name: Approval
4
4
  description: Provide a graphical form and process design interface to customize the enterprise business approval process.
5
5
  CustomLabels:
6
+ approval_workflow: Workflow
6
7
  flows_tabs_form: Form
@@ -1,2 +1,3 @@
1
1
  CustomLabels:
2
- flows_tabs_form: 表单
2
+ flows_tabs_form: 表单
3
+ approval_workflow: 审批
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steedos-labs/plugin-workflow",
3
- "version": "3.0.0-beta.21",
3
+ "version": "3.0.0-beta.22",
4
4
  "main": "package.service.js",
5
5
  "license": "MIT",
6
6
  "scripts": {