Archived
基线:鉴权会话+工作组+工作台三区修复+编排工作区+产品设计文档
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KeDBx2PHLavbURXB8LJJ7m
This commit is contained in:
+81
-5
@@ -76,6 +76,10 @@ export declare const formFieldSchema: z.ZodObject<{
|
||||
}, z.core.$strip>;
|
||||
export type FormField = z.infer<typeof formFieldSchema>;
|
||||
declare const fileDocSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
kind: z.ZodLiteral<"html">;
|
||||
name: z.ZodString;
|
||||
html: z.ZodString;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
kind: z.ZodLiteral<"markdown">;
|
||||
name: z.ZodString;
|
||||
md: z.ZodString;
|
||||
@@ -207,6 +211,10 @@ export declare const viewBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
meta: z.ZodOptional<z.ZodString>;
|
||||
file: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
kind: z.ZodLiteral<"html">;
|
||||
name: z.ZodString;
|
||||
html: z.ZodString;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
kind: z.ZodLiteral<"markdown">;
|
||||
name: z.ZodString;
|
||||
md: z.ZodString;
|
||||
@@ -276,6 +284,10 @@ export declare const viewBlockSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
label: z.ZodString;
|
||||
desc: z.ZodString;
|
||||
file: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
kind: z.ZodLiteral<"html">;
|
||||
name: z.ZodString;
|
||||
html: z.ZodString;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
kind: z.ZodLiteral<"markdown">;
|
||||
name: z.ZodString;
|
||||
md: z.ZodString;
|
||||
@@ -434,6 +446,10 @@ export declare const deliverableSchema: z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
meta: z.ZodOptional<z.ZodString>;
|
||||
file: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
kind: z.ZodLiteral<"html">;
|
||||
name: z.ZodString;
|
||||
html: z.ZodString;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
kind: z.ZodLiteral<"markdown">;
|
||||
name: z.ZodString;
|
||||
md: z.ZodString;
|
||||
@@ -503,6 +519,10 @@ export declare const deliverableSchema: z.ZodObject<{
|
||||
label: z.ZodString;
|
||||
desc: z.ZodString;
|
||||
file: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
kind: z.ZodLiteral<"html">;
|
||||
name: z.ZodString;
|
||||
html: z.ZodString;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
kind: z.ZodLiteral<"markdown">;
|
||||
name: z.ZodString;
|
||||
md: z.ZodString;
|
||||
@@ -548,11 +568,31 @@ export declare const workOrderModeSchema: z.ZodEnum<{
|
||||
}>;
|
||||
export type WorkOrderMode = z.infer<typeof workOrderModeSchema>;
|
||||
export declare const WORK_ORDER_MODE_LABEL: Readonly<Record<WorkOrderMode, string>>;
|
||||
/**
|
||||
* 办结口径:执行件只有「已提交」,验收件是放行三选一 —— 与回传协议同一套标识符。
|
||||
* 界面文案由字典给出(与原型逐字一致),不在组件里散落中文。
|
||||
*/
|
||||
export declare const WORK_ORDER_RESULTS: readonly ["submitted", "pass", "redo", "revise"];
|
||||
export declare const workOrderResultSchema: z.ZodEnum<{
|
||||
redo: "redo";
|
||||
revise: "revise";
|
||||
submitted: "submitted";
|
||||
pass: "pass";
|
||||
}>;
|
||||
export type WorkOrderResult = z.infer<typeof workOrderResultSchema>;
|
||||
export declare const WORK_ORDER_RESULT_LABEL: Readonly<Record<WorkOrderResult, string>>;
|
||||
/** 驳回两式 —— 退回即重来,判定处只此一处 */
|
||||
export declare function isRejection(result: WorkOrderResult): boolean;
|
||||
/** 完成回传:谁、何时、答了什么(回传即留痕) */
|
||||
export declare const workDoneSchema: z.ZodObject<{
|
||||
at: z.ZodISODateTime;
|
||||
by: z.core.$ZodBranded<z.ZodString, "StaffId", "out">;
|
||||
result: z.ZodString;
|
||||
result: z.ZodEnum<{
|
||||
redo: "redo";
|
||||
revise: "revise";
|
||||
submitted: "submitted";
|
||||
pass: "pass";
|
||||
}>;
|
||||
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
||||
}, z.core.$strip>;
|
||||
export type WorkDone = z.infer<typeof workDoneSchema>;
|
||||
@@ -668,6 +708,10 @@ export declare const executionWorkOrderSchema: z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
meta: z.ZodOptional<z.ZodString>;
|
||||
file: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
kind: z.ZodLiteral<"html">;
|
||||
name: z.ZodString;
|
||||
html: z.ZodString;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
kind: z.ZodLiteral<"markdown">;
|
||||
name: z.ZodString;
|
||||
md: z.ZodString;
|
||||
@@ -737,6 +781,10 @@ export declare const executionWorkOrderSchema: z.ZodObject<{
|
||||
label: z.ZodString;
|
||||
desc: z.ZodString;
|
||||
file: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
kind: z.ZodLiteral<"html">;
|
||||
name: z.ZodString;
|
||||
html: z.ZodString;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
kind: z.ZodLiteral<"markdown">;
|
||||
name: z.ZodString;
|
||||
md: z.ZodString;
|
||||
@@ -805,7 +853,12 @@ export declare const executionWorkOrderSchema: z.ZodObject<{
|
||||
done: z.ZodOptional<z.ZodObject<{
|
||||
at: z.ZodISODateTime;
|
||||
by: z.core.$ZodBranded<z.ZodString, "StaffId", "out">;
|
||||
result: z.ZodString;
|
||||
result: z.ZodEnum<{
|
||||
redo: "redo";
|
||||
revise: "revise";
|
||||
submitted: "submitted";
|
||||
pass: "pass";
|
||||
}>;
|
||||
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
||||
}, z.core.$strip>>;
|
||||
}, z.core.$strip>;
|
||||
@@ -895,7 +948,12 @@ export declare const acceptanceWorkOrderSchema: z.ZodObject<{
|
||||
done: z.ZodOptional<z.ZodObject<{
|
||||
at: z.ZodISODateTime;
|
||||
by: z.core.$ZodBranded<z.ZodString, "StaffId", "out">;
|
||||
result: z.ZodString;
|
||||
result: z.ZodEnum<{
|
||||
redo: "redo";
|
||||
revise: "revise";
|
||||
submitted: "submitted";
|
||||
pass: "pass";
|
||||
}>;
|
||||
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
||||
}, z.core.$strip>>;
|
||||
}, z.core.$strip>;
|
||||
@@ -1011,6 +1069,10 @@ export declare const workOrderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
name: z.ZodString;
|
||||
meta: z.ZodOptional<z.ZodString>;
|
||||
file: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
kind: z.ZodLiteral<"html">;
|
||||
name: z.ZodString;
|
||||
html: z.ZodString;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
kind: z.ZodLiteral<"markdown">;
|
||||
name: z.ZodString;
|
||||
md: z.ZodString;
|
||||
@@ -1080,6 +1142,10 @@ export declare const workOrderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
label: z.ZodString;
|
||||
desc: z.ZodString;
|
||||
file: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
kind: z.ZodLiteral<"html">;
|
||||
name: z.ZodString;
|
||||
html: z.ZodString;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
kind: z.ZodLiteral<"markdown">;
|
||||
name: z.ZodString;
|
||||
md: z.ZodString;
|
||||
@@ -1148,7 +1214,12 @@ export declare const workOrderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
done: z.ZodOptional<z.ZodObject<{
|
||||
at: z.ZodISODateTime;
|
||||
by: z.core.$ZodBranded<z.ZodString, "StaffId", "out">;
|
||||
result: z.ZodString;
|
||||
result: z.ZodEnum<{
|
||||
redo: "redo";
|
||||
revise: "revise";
|
||||
submitted: "submitted";
|
||||
pass: "pass";
|
||||
}>;
|
||||
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
||||
}, z.core.$strip>>;
|
||||
}, z.core.$strip>, z.ZodObject<{
|
||||
@@ -1212,7 +1283,12 @@ export declare const workOrderSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
||||
done: z.ZodOptional<z.ZodObject<{
|
||||
at: z.ZodISODateTime;
|
||||
by: z.core.$ZodBranded<z.ZodString, "StaffId", "out">;
|
||||
result: z.ZodString;
|
||||
result: z.ZodEnum<{
|
||||
redo: "redo";
|
||||
revise: "revise";
|
||||
submitted: "submitted";
|
||||
pass: "pass";
|
||||
}>;
|
||||
values: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
||||
}, z.core.$strip>>;
|
||||
}, z.core.$strip>], "mode">;
|
||||
|
||||
Reference in New Issue
Block a user