@objectstack/plugin-approvals 16.1.0 → 17.0.0-rc.1

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.
@@ -1,205 +0,0 @@
1
- // Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
2
-
3
- /**
4
- * Auto-generated by 'os i18n extract' for locale 'zh-CN'.
5
- * Edit translations in place; re-run extract (with --merge) to fill new gaps.
6
- * Do not hand-edit the structure — only the leaf string values.
7
- */
8
-
9
- import type { TranslationData } from '@objectstack/spec/system';
10
-
11
- export const zhCNObjects: NonNullable<TranslationData['objects']> = {
12
- sys_approval_request: {
13
- label: "审批请求",
14
- pluralLabel: "审批请求",
15
- description: "按提交记录跟踪的实时审批实例",
16
- fields: {
17
- id: {
18
- label: "请求 ID"
19
- },
20
- organization_id: {
21
- label: "组织",
22
- help: "拥有该审批请求的租户(从提交方上下文传播)"
23
- },
24
- process_name: {
25
- label: "来源",
26
- help: "请求来源 —— 节点驱动的审批为 `flow:<flowName|nodeId>`"
27
- },
28
- object_name: {
29
- label: "对象"
30
- },
31
- record_id: {
32
- label: "记录 ID"
33
- },
34
- submitter_id: {
35
- label: "提交人"
36
- },
37
- submitter_comment: {
38
- label: "提交备注"
39
- },
40
- status: {
41
- label: "状态",
42
- help: "请求的生命周期状态",
43
- options: {
44
- pending: "待处理",
45
- approved: "已批准",
46
- rejected: "已拒绝",
47
- recalled: "已撤回"
48
- }
49
- },
50
- current_step: {
51
- label: "当前步骤",
52
- help: "当前等待审批的步骤机器名称"
53
- },
54
- current_step_index: {
55
- label: "当前步骤索引"
56
- },
57
- pending_approvers: {
58
- label: "待审批人",
59
- help: "可在当前步骤执行操作的用户 ID,逗号分隔"
60
- },
61
- payload_json: {
62
- label: "快照",
63
- help: "提交时的记录快照"
64
- },
65
- flow_run_id: {
66
- label: "Flow Run",
67
- help: "Suspended automation run id this request gates (ADR-0019). The decision resumes it."
68
- },
69
- flow_node_id: {
70
- label: "Flow Node",
71
- help: "Approval node id within the flow that opened this request (ADR-0019)."
72
- },
73
- node_config_json: {
74
- label: "Node Config",
75
- help: "Snapshot of the Approval node config (approvers/behavior) for node-driven requests (ADR-0019)."
76
- },
77
- completed_at: {
78
- label: "完成时间"
79
- },
80
- created_at: {
81
- label: "创建时间"
82
- },
83
- updated_at: {
84
- label: "更新时间"
85
- }
86
- },
87
- _views: {
88
- my_pending: {
89
- label: "我的待办"
90
- },
91
- submitted_by_me: {
92
- label: "我提交的"
93
- },
94
- completed: {
95
- label: "已完成"
96
- },
97
- all_requests: {
98
- label: "全部"
99
- }
100
- }
101
- },
102
- sys_approval_action: {
103
- label: "审批动作",
104
- pluralLabel: "审批动作",
105
- description: "追加写入的审批操作审计记录",
106
- fields: {
107
- id: {
108
- label: "动作 ID"
109
- },
110
- organization_id: {
111
- label: "组织",
112
- help: "拥有该动作的租户(与父请求保持一致)"
113
- },
114
- request_id: {
115
- label: "请求"
116
- },
117
- step_name: {
118
- label: "步骤",
119
- help: "执行该动作时对应步骤的机器名称"
120
- },
121
- step_index: {
122
- label: "步骤索引"
123
- },
124
- action: {
125
- label: "操作",
126
- options: {
127
- submit: "提交",
128
- approve: "批准",
129
- reject: "拒绝",
130
- recall: "撤回",
131
- escalate: "升级"
132
- }
133
- },
134
- actor_id: {
135
- label: "执行人"
136
- },
137
- comment: {
138
- label: "评论"
139
- },
140
- created_at: {
141
- label: "创建时间"
142
- }
143
- },
144
- _views: {
145
- recent: {
146
- label: "最近"
147
- },
148
- by_actor: {
149
- label: "按执行人"
150
- },
151
- all_actions: {
152
- label: "全部"
153
- }
154
- }
155
- },
156
- sys_approval_delegation: {
157
- label: "审批委派",
158
- pluralLabel: "审批委派",
159
- description: "自助不在岗规则:在时间窗内把该用户的审批人槽位改派给候补人(#1322 M1)。",
160
- fields: {
161
- id: {
162
- label: "委派 ID"
163
- },
164
- delegator_id: {
165
- label: "委派人",
166
- help: "即将不在岗的用户;规则生效期间,路由到其个人的审批人槽位将被改派。"
167
- },
168
- delegate_id: {
169
- label: "候补人",
170
- help: "规则生效期间接收委派人审批的候补人。以其本人身份行使。"
171
- },
172
- valid_from: {
173
- label: "生效时间",
174
- help: "此刻之前规则不生效。留空 = 立即生效。在解析时通过 isGrantActive 强制(ADR-0091 D2 判定式)——绝不依赖后台任务。"
175
- },
176
- valid_until: {
177
- label: "失效时间",
178
- help: "此刻(含)及之后规则不生效(半开区间 [from, until),UTC)。留空 = 永不过期。"
179
- },
180
- reason: {
181
- label: "原因",
182
- help: "委派存在的原因(例如“年假 5/26–5/30”)。会记入改派审计行。"
183
- },
184
- organization_id: {
185
- label: "组织",
186
- help: "拥有此规则的租户;留空 = 对该委派人跨租户生效。"
187
- },
188
- created_at: {
189
- label: "创建时间"
190
- },
191
- updated_at: {
192
- label: "更新时间"
193
- }
194
- },
195
- _views: {
196
- active: {
197
- label: "生效中",
198
- emptyState: {
199
- title: "暂无委派",
200
- message: "声明一条不在岗委派,休假期间审批自动改派给候补人。"
201
- }
202
- }
203
- }
204
- }
205
- };
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "extends": "../../../tsconfig.json",
3
- "compilerOptions": {
4
- "outDir": "./dist",
5
- "rootDir": "./src",
6
- "types": ["node"]
7
- },
8
- "include": ["src/**/*"],
9
- "exclude": ["dist", "node_modules", "**/*.test.ts"]
10
- }