-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathen.objects.generated.ts
More file actions
311 lines (308 loc) · 8.25 KB
/
Copy pathen.objects.generated.ts
File metadata and controls
311 lines (308 loc) · 8.25 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
// Copyright (c) 2025 ObjectStack. Licensed under the Apache-2.0 license.
/**
* Auto-generated by 'os i18n extract' for locale 'en'.
* Edit translations in place; re-run extract (with --merge) to fill new gaps.
* Do not hand-edit the structure — only the leaf string values.
*/
import type { TranslationData } from '@objectstack/spec/system';
export const enObjects: NonNullable<TranslationData['objects']> = {
sys_approval_request: {
label: "Approval Request",
pluralLabel: "Approval Requests",
description: "Live approval instance tracked per submission",
fields: {
id: {
label: "Request ID"
},
organization_id: {
label: "Organization",
help: "Tenant that owns this approval request (propagated from submitter context)"
},
process_name: {
label: "Source",
help: "Origin of the request — `flow:<flowName|nodeId>` for node-driven approvals"
},
object_name: {
label: "Object"
},
record_id: {
label: "Record ID"
},
submitter_id: {
label: "Submitter"
},
submitter_comment: {
label: "Submitter Comment"
},
status: {
label: "Status",
help: "Lifecycle state of the request",
options: {
pending: "pending",
approved: "approved",
rejected: "rejected",
recalled: "recalled",
returned: "returned"
}
},
current_step: {
label: "Current Step",
help: "Machine name of the step awaiting approval"
},
current_step_index: {
label: "Current Step Index"
},
pending_approvers: {
label: "Pending Approvers",
help: "Comma-separated user ids who can act on the current step"
},
payload_json: {
label: "Snapshot",
help: "Record snapshot at submission time"
},
flow_run_id: {
label: "Flow Run",
help: "Suspended automation run id this request gates (ADR-0019). The decision resumes it."
},
flow_node_id: {
label: "Flow Node",
help: "Approval node id within the flow that opened this request (ADR-0019)."
},
node_config_json: {
label: "Node Config",
help: "Snapshot of the Approval node config (approvers/behavior) for node-driven requests (ADR-0019)."
},
completed_at: {
label: "Completed At"
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
},
_views: {
my_pending: {
label: "My Pending",
emptyState: {
title: "No pending approvals",
message: "You're all caught up."
}
},
submitted_by_me: {
label: "I Submitted"
},
completed: {
label: "Completed"
},
all_requests: {
label: "All"
}
},
_actions: {
approval_approve: {
label: "Approve",
successMessage: "Approved.",
params: {
comment: {
label: "Comment"
},
attachments: {
label: "Attachments"
}
}
},
approval_reject: {
label: "Reject",
confirmText: "Reject this request? A rejection is final for every approver.",
successMessage: "Rejected.",
params: {
comment: {
label: "Comment"
},
attachments: {
label: "Attachments"
}
}
},
approval_reassign: {
label: "Reassign",
successMessage: "Reassigned.",
params: {
to: {
label: "New approver",
helpText: "User to hand this step to"
},
comment: {
label: "Comment"
}
}
},
approval_send_back: {
label: "Send back",
successMessage: "Sent back for revision.",
params: {
comment: {
label: "Reason"
}
}
},
approval_request_info: {
label: "Request info",
successMessage: "Information requested.",
params: {
comment: {
label: "What do you need?"
}
}
},
approval_remind: {
label: "Send reminder",
successMessage: "Reminder sent.",
params: {
comment: {
label: "Note"
}
}
},
approval_recall: {
label: "Recall",
confirmText: "Recall this request? Approvers can no longer act on it and the record is unlocked.",
successMessage: "Recalled.",
params: {
comment: {
label: "Comment"
}
}
},
approval_resubmit: {
label: "Resubmit",
successMessage: "Resubmitted.",
params: {
comment: {
label: "What changed?"
}
}
}
}
},
sys_approval_action: {
label: "Approval Action",
pluralLabel: "Approval Actions",
description: "Append-only audit trail for approval actions",
fields: {
id: {
label: "Action ID"
},
organization_id: {
label: "Organization",
help: "Tenant that owns this action (mirrors the parent request)"
},
request_id: {
label: "Request"
},
step_name: {
label: "Step",
help: "Machine name of the step at the time of the action"
},
step_index: {
label: "Step Index"
},
action: {
label: "Action",
options: {
submit: "submit",
approve: "approve",
reject: "reject",
recall: "recall",
escalate: "escalate",
reassign: "reassign",
remind: "remind",
request_info: "request_info",
comment: "comment",
revise: "revise",
resubmit: "resubmit",
ooo_substitute: "ooo_substitute"
}
},
actor_id: {
label: "Actor"
},
comment: {
label: "Comment"
},
attachments: {
label: "Attachments",
help: "Files supporting this action — e.g. a signed contract or evidence (#3266)."
},
created_at: {
label: "Created At"
}
},
_views: {
recent: {
label: "Recent",
emptyState: {
title: "No approval actions yet",
message: "Actions are logged automatically when approvals progress."
}
},
by_actor: {
label: "By Actor"
},
all_actions: {
label: "All"
}
}
},
sys_approval_delegation: {
label: "Approval Delegation",
pluralLabel: "Approval Delegations",
description: "Self-service out-of-office rule: route this user's approver slots to a delegate within a time window (#1322 M1).",
fields: {
id: {
label: "Delegation ID"
},
delegator_id: {
label: "Delegator",
help: "The user going out of office; their individually-routed approver slots are rerouted while active."
},
delegate_id: {
label: "Delegate",
help: "The backup who receives the delegator's approvals while this rule is active. Acts under their own identity."
},
valid_from: {
label: "Valid From",
help: "Rule is inactive before this instant. Null = active immediately. Enforced at resolution time via isGrantActive (ADR-0091 D2 predicate) — never by a background job."
},
valid_until: {
label: "Valid Until",
help: "Rule is inactive AT and AFTER this instant (half-open [from, until), UTC). Null = never expires."
},
reason: {
label: "Reason",
help: "Why the delegation exists (e.g. \"Annual leave 5/26–5/30\"). Recorded on the substitution audit row."
},
organization_id: {
label: "Organization",
help: "Tenant that owns this rule; null = applies across tenants for this delegator."
},
created_at: {
label: "Created At"
},
updated_at: {
label: "Updated At"
}
},
_views: {
active: {
label: "Active",
emptyState: {
title: "No delegations",
message: "Declare an out-of-office delegation so approvals route to a backup while you are away."
}
}
}
}
};