吸收数字员工管理端通知订阅策略预览
This commit is contained in:
@@ -2351,6 +2351,92 @@ function checkDigitalAdminNotificationWorkbench() {
|
||||
console.log("[DigitalEmployeeCheck] admin notification workbench hooks OK");
|
||||
}
|
||||
|
||||
function checkDigitalAdminNotificationPoliciesWorkbench() {
|
||||
console.log("\n[DigitalEmployeeCheck] Verify admin notification policies workbench hooks");
|
||||
const backendRoot = path.resolve(packageRoot, "..", "..", "..", "qiming-backend");
|
||||
const qimingRoot = path.resolve(packageRoot, "..", "..", "..", "qiming");
|
||||
const servicePath = path.join(
|
||||
backendRoot,
|
||||
"app-platform-modules",
|
||||
"app-platform-agent",
|
||||
"app-platform-agent-core-application",
|
||||
"src",
|
||||
"main",
|
||||
"java",
|
||||
"com",
|
||||
"xspaceagi",
|
||||
"agent",
|
||||
"core",
|
||||
"application",
|
||||
"service",
|
||||
"DigitalEmployeeSyncApplicationServiceImpl.java",
|
||||
);
|
||||
const dtoPath = path.join(
|
||||
backendRoot,
|
||||
"app-platform-modules",
|
||||
"app-platform-agent",
|
||||
"app-platform-agent-core-adapter",
|
||||
"src",
|
||||
"main",
|
||||
"java",
|
||||
"com",
|
||||
"xspaceagi",
|
||||
"agent",
|
||||
"core",
|
||||
"adapter",
|
||||
"dto",
|
||||
"digital",
|
||||
"DigitalEmployeeAdminWorkbenchRowDto.java",
|
||||
);
|
||||
const testPath = path.join(
|
||||
backendRoot,
|
||||
"app-platform-modules",
|
||||
"app-platform-agent",
|
||||
"app-platform-agent-core-application",
|
||||
"src",
|
||||
"test",
|
||||
"java",
|
||||
"com",
|
||||
"xspaceagi",
|
||||
"agent",
|
||||
"core",
|
||||
"application",
|
||||
"service",
|
||||
"DigitalEmployeeSyncApplicationServiceImplTest.java",
|
||||
);
|
||||
const qimingOpsPath = path.join(qimingRoot, "src", "pages", "SystemManagement", "Content", "DigitalEmployeeOps", "index.tsx");
|
||||
const qimingTypesPath = path.join(qimingRoot, "src", "types", "interfaces", "systemManage.ts");
|
||||
const docsPath = path.resolve(packageRoot, "..", "..", "docs", "digital-employee-frontend-integration-plan.md");
|
||||
const service = fs.readFileSync(servicePath, "utf8");
|
||||
const dto = fs.readFileSync(dtoPath, "utf8");
|
||||
const test = fs.readFileSync(testPath, "utf8");
|
||||
const qimingOps = fs.readFileSync(qimingOpsPath, "utf8");
|
||||
const qimingTypes = fs.readFileSync(qimingTypesPath, "utf8");
|
||||
const docs = fs.readFileSync(docsPath, "utf8");
|
||||
const requiredSnippets = [
|
||||
[service, "notification_policies", "backend notification policies view"],
|
||||
[service, "isNotificationPolicyRow", "backend notification policies matcher"],
|
||||
[dto, "notification_policy_id", "backend notification policy id row field"],
|
||||
[dto, "subscription_status", "backend subscription status row field"],
|
||||
[dto, "desktop_enabled", "backend desktop enabled row field"],
|
||||
[dto, "minimum_level", "backend minimum level row field"],
|
||||
[test, "queryAdminWorkbenchNotificationPoliciesReturnsSubscriptionPolicyRowsOnly", "backend notification policies test"],
|
||||
[qimingTypes, "notification_policies", "qiming notification policies view type"],
|
||||
[qimingOps, "通知策略", "qiming notification policies tab"],
|
||||
[qimingOps, "拉取通知策略", "qiming notification policy pull action"],
|
||||
[qimingOps, "不远程编辑策略", "qiming notification policy safety copy"],
|
||||
[qimingOps, "不触发真实推送", "qiming notification push safety copy"],
|
||||
[docs, "正式管理端通知订阅策略预览", "docs notification policies absorption"],
|
||||
];
|
||||
const missing = requiredSnippets
|
||||
.filter(([content, snippet]) => !content.includes(snippet))
|
||||
.map(([, , label]) => label);
|
||||
if (missing.length > 0) {
|
||||
throw new Error(`Missing admin notification policies workbench hooks: ${missing.join(", ")}`);
|
||||
}
|
||||
console.log("[DigitalEmployeeCheck] admin notification policies workbench hooks OK");
|
||||
}
|
||||
|
||||
function checkDigitalAdminArtifactLifecycleWorkbench() {
|
||||
console.log("\n[DigitalEmployeeCheck] Verify admin artifact lifecycle workbench hooks");
|
||||
const backendRoot = path.resolve(packageRoot, "..", "..", "..", "qiming-backend");
|
||||
@@ -2862,6 +2948,7 @@ function main() {
|
||||
checkDigitalAdminServiceOperationsWorkbench();
|
||||
checkDigitalAdminRouteGovernanceWorkbench();
|
||||
checkDigitalAdminNotificationWorkbench();
|
||||
checkDigitalAdminNotificationPoliciesWorkbench();
|
||||
checkDigitalAdminArtifactLifecycleWorkbench();
|
||||
checkDigitalAdminAuditDiagnosticsWorkbench();
|
||||
checkDigitalAdminDiagnosticRepairPreview();
|
||||
|
||||
Reference in New Issue
Block a user