补齐审批退回结果通知 [09-04-approval-return-notification-gap]

这个提交包含在:
2026-09-04 16:22:27 +08:00
父节点 a6ffb7fc3c
当前提交 2e69fe4edb
共修改 19 个文件,包含 857 行新增和 14 行删除
+18 -2
查看文件
@@ -1,6 +1,7 @@
const Fastify = require('fastify');
const { AppError } = require('../../../src/utils/AppError');
const { NOTIFICATION_TYPES } = require('../../../src/constants/notificationTypes');
const { encryptStringOrThrow } = require('../../../src/services/crypto');
const notificationsRoutes = require('../../../src/routes/notifications');
@@ -446,8 +447,13 @@ describe('notifications channel routes', () => {
timeoutMs: 800,
routing: {
roleCodes: ['manager'],
domainScopes: ['workflow'],
allowedTypes: ['workflow.task_assigned'],
domainScopes: ['workflow', 'leave', 'procurement', 'travel'],
allowedTypes: [
NOTIFICATION_TYPES.workflowTaskAssigned,
NOTIFICATION_TYPES.leaveReturned,
NOTIFICATION_TYPES.purchaseRequestReturned,
NOTIFICATION_TYPES.travelRequestReturned,
],
},
},
},
@@ -460,6 +466,16 @@ describe('notifications channel routes', () => {
webhookUrl: null,
secretConfigured: false,
secretMasked: null,
routing: {
roleCodes: ['manager'],
domainScopes: ['workflow', 'leave', 'procurement', 'travel'],
allowedTypes: [
NOTIFICATION_TYPES.workflowTaskAssigned,
NOTIFICATION_TYPES.leaveReturned,
NOTIFICATION_TYPES.purchaseRequestReturned,
NOTIFICATION_TYPES.travelRequestReturned,
],
},
}),
);
expect(stateChannels[0].config_json.secretEncrypted).toBeUndefined();