刘光辉
14 小时以前 0dfe84494048ce27ba8449831782128412d3eb13
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
export type FillFieldType = 'text' | 'multiline' | 'select' | 'checkbox' | 'date';
export type FillFieldValue = boolean | string;
 
export interface FillFieldData {
  type: FillFieldType;
  value: FillFieldValue | null;
}
 
export interface FillDataResponse {
  fields: Record<string, FillFieldData>;
}
 
export interface SelectOption {
  display: string;
  value: string;
}
 
export interface DocumentField {
  alias: string;
  currentValue: FillFieldValue;
  internalId: string;
  options: SelectOption[];
  tag: string;
  type: FillFieldType;
}
 
export interface FieldChange {
  tag: string;
  type: FillFieldType;
  value: FillFieldValue;
}
 
export interface FieldApplyResult {
  error?: string;
  ok: boolean;
  tag: string;
}