@elevasis/core 0.27.0 → 0.28.0
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.
- package/dist/index.d.ts +157 -100
- package/dist/index.js +116 -46
- package/dist/knowledge/index.d.ts +22 -22
- package/dist/organization-model/index.d.ts +157 -100
- package/dist/organization-model/index.js +116 -46
- package/dist/test-utils/index.d.ts +18 -18
- package/dist/test-utils/index.js +22 -20
- package/package.json +3 -3
- package/src/organization-model/__tests__/define-domain-record.test.ts +289 -0
- package/src/organization-model/__tests__/om-spine-doc-contract.test.ts +56 -0
- package/src/organization-model/domains/actions.ts +13 -0
- package/src/organization-model/domains/customers.ts +95 -78
- package/src/organization-model/domains/entities.ts +157 -144
- package/src/organization-model/domains/goals.ts +100 -83
- package/src/organization-model/domains/knowledge.ts +106 -93
- package/src/organization-model/domains/offerings.ts +88 -71
- package/src/organization-model/domains/policies.ts +115 -102
- package/src/organization-model/domains/roles.ts +109 -96
- package/src/organization-model/domains/statuses.ts +351 -339
- package/src/organization-model/domains/systems.ts +176 -164
- package/src/organization-model/helpers.ts +331 -306
- package/src/organization-model/index.ts +42 -0
- package/src/organization-model/published.ts +27 -2
- package/src/platform/constants/versions.ts +1 -1
- package/src/reference/_generated/contracts.md +24 -24
|
@@ -1,339 +1,351 @@
|
|
|
1
|
-
import { z } from 'zod'
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
'delivery.
|
|
11
|
-
'delivery.
|
|
12
|
-
'
|
|
13
|
-
'
|
|
14
|
-
'
|
|
15
|
-
'schedule
|
|
16
|
-
'
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
order:
|
|
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
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
import { defineDomainRecord } from '../helpers'
|
|
3
|
+
|
|
4
|
+
// ---------------------------------------------------------------------------
|
|
5
|
+
// Semantic class enum — one value per status category.
|
|
6
|
+
// Every status entry declares which category it belongs to via semanticClass.
|
|
7
|
+
// ---------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
export const StatusSemanticClassSchema = z.enum([
|
|
10
|
+
'delivery.task',
|
|
11
|
+
'delivery.project',
|
|
12
|
+
'delivery.milestone',
|
|
13
|
+
'queue',
|
|
14
|
+
'execution',
|
|
15
|
+
'schedule',
|
|
16
|
+
'schedule.run',
|
|
17
|
+
'request'
|
|
18
|
+
])
|
|
19
|
+
|
|
20
|
+
// ---------------------------------------------------------------------------
|
|
21
|
+
// Status entry schema
|
|
22
|
+
// ---------------------------------------------------------------------------
|
|
23
|
+
|
|
24
|
+
export const StatusEntrySchema = z.object({
|
|
25
|
+
id: z.string().trim().min(1).max(100),
|
|
26
|
+
/** Domain-map iteration order. Convention: multiples of 10 (10, 20, 30, ...) to allow easy insertion. */
|
|
27
|
+
order: z.number(),
|
|
28
|
+
label: z.string().trim().min(1).max(120),
|
|
29
|
+
semanticClass: StatusSemanticClassSchema,
|
|
30
|
+
category: z.string().trim().min(1).max(80).optional()
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
// ---------------------------------------------------------------------------
|
|
34
|
+
// Domain schema — id-keyed map of status entries
|
|
35
|
+
// ---------------------------------------------------------------------------
|
|
36
|
+
|
|
37
|
+
export const StatusesDomainSchema = z
|
|
38
|
+
.record(z.string(), StatusEntrySchema)
|
|
39
|
+
.refine((record) => Object.entries(record).every(([key, entry]) => entry.id === key), {
|
|
40
|
+
message: 'Each status entry id must match its map key'
|
|
41
|
+
})
|
|
42
|
+
.default({})
|
|
43
|
+
|
|
44
|
+
// ---------------------------------------------------------------------------
|
|
45
|
+
// Seed — covers all status enums in scope (delivery, queue, execution,
|
|
46
|
+
// schedule, schedule.run, request). Delivery project/milestone statuses are
|
|
47
|
+
// included here as semantic references; they mirror delivery.ts but live in
|
|
48
|
+
// the statuses domain as the vibe-readable registry.
|
|
49
|
+
// ---------------------------------------------------------------------------
|
|
50
|
+
|
|
51
|
+
/** Validate and return a single status entry. */
|
|
52
|
+
export function defineStatus(entry: z.input<typeof StatusEntrySchema>): StatusEntry {
|
|
53
|
+
return StatusEntrySchema.parse(entry)
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/** Validate and return an id-keyed map of status entries. */
|
|
57
|
+
export function defineStatuses(entries: readonly z.input<typeof StatusEntrySchema>[]): StatusesDomain {
|
|
58
|
+
return defineDomainRecord(StatusEntrySchema, entries)
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type StatusEntry = z.infer<typeof StatusEntrySchema>
|
|
62
|
+
export type StatusesDomain = z.infer<typeof StatusesDomainSchema>
|
|
63
|
+
export type StatusSemanticClass = z.infer<typeof StatusSemanticClassSchema>
|
|
64
|
+
|
|
65
|
+
export const DEFAULT_ORGANIZATION_MODEL_STATUSES: StatusesDomain = {
|
|
66
|
+
// --- delivery.task (TaskStatus — 9 values) ---
|
|
67
|
+
'delivery.task.planned': {
|
|
68
|
+
id: 'delivery.task.planned',
|
|
69
|
+
order: 10,
|
|
70
|
+
label: 'Planned',
|
|
71
|
+
semanticClass: 'delivery.task',
|
|
72
|
+
category: 'delivery'
|
|
73
|
+
},
|
|
74
|
+
'delivery.task.in_progress': {
|
|
75
|
+
id: 'delivery.task.in_progress',
|
|
76
|
+
order: 20,
|
|
77
|
+
label: 'In Progress',
|
|
78
|
+
semanticClass: 'delivery.task',
|
|
79
|
+
category: 'delivery'
|
|
80
|
+
},
|
|
81
|
+
'delivery.task.blocked': {
|
|
82
|
+
id: 'delivery.task.blocked',
|
|
83
|
+
order: 30,
|
|
84
|
+
label: 'Blocked',
|
|
85
|
+
semanticClass: 'delivery.task',
|
|
86
|
+
category: 'delivery'
|
|
87
|
+
},
|
|
88
|
+
'delivery.task.submitted': {
|
|
89
|
+
id: 'delivery.task.submitted',
|
|
90
|
+
order: 40,
|
|
91
|
+
label: 'Submitted',
|
|
92
|
+
semanticClass: 'delivery.task',
|
|
93
|
+
category: 'delivery'
|
|
94
|
+
},
|
|
95
|
+
'delivery.task.approved': {
|
|
96
|
+
id: 'delivery.task.approved',
|
|
97
|
+
order: 50,
|
|
98
|
+
label: 'Approved',
|
|
99
|
+
semanticClass: 'delivery.task',
|
|
100
|
+
category: 'delivery'
|
|
101
|
+
},
|
|
102
|
+
'delivery.task.revision_requested': {
|
|
103
|
+
id: 'delivery.task.revision_requested',
|
|
104
|
+
order: 60,
|
|
105
|
+
label: 'Revision Requested',
|
|
106
|
+
semanticClass: 'delivery.task',
|
|
107
|
+
category: 'delivery'
|
|
108
|
+
},
|
|
109
|
+
'delivery.task.rejected': {
|
|
110
|
+
id: 'delivery.task.rejected',
|
|
111
|
+
order: 70,
|
|
112
|
+
label: 'Rejected',
|
|
113
|
+
semanticClass: 'delivery.task',
|
|
114
|
+
category: 'delivery'
|
|
115
|
+
},
|
|
116
|
+
'delivery.task.cancelled': {
|
|
117
|
+
id: 'delivery.task.cancelled',
|
|
118
|
+
order: 80,
|
|
119
|
+
label: 'Cancelled',
|
|
120
|
+
semanticClass: 'delivery.task',
|
|
121
|
+
category: 'delivery'
|
|
122
|
+
},
|
|
123
|
+
'delivery.task.completed': {
|
|
124
|
+
id: 'delivery.task.completed',
|
|
125
|
+
order: 90,
|
|
126
|
+
label: 'Completed',
|
|
127
|
+
semanticClass: 'delivery.task',
|
|
128
|
+
category: 'delivery'
|
|
129
|
+
},
|
|
130
|
+
|
|
131
|
+
// --- delivery.project (ProjectStatus — 6 values) ---
|
|
132
|
+
'delivery.project.active': {
|
|
133
|
+
id: 'delivery.project.active',
|
|
134
|
+
order: 100,
|
|
135
|
+
label: 'Active',
|
|
136
|
+
semanticClass: 'delivery.project',
|
|
137
|
+
category: 'delivery'
|
|
138
|
+
},
|
|
139
|
+
'delivery.project.on_track': {
|
|
140
|
+
id: 'delivery.project.on_track',
|
|
141
|
+
order: 110,
|
|
142
|
+
label: 'On Track',
|
|
143
|
+
semanticClass: 'delivery.project',
|
|
144
|
+
category: 'delivery'
|
|
145
|
+
},
|
|
146
|
+
'delivery.project.at_risk': {
|
|
147
|
+
id: 'delivery.project.at_risk',
|
|
148
|
+
order: 120,
|
|
149
|
+
label: 'At Risk',
|
|
150
|
+
semanticClass: 'delivery.project',
|
|
151
|
+
category: 'delivery'
|
|
152
|
+
},
|
|
153
|
+
'delivery.project.blocked': {
|
|
154
|
+
id: 'delivery.project.blocked',
|
|
155
|
+
order: 130,
|
|
156
|
+
label: 'Blocked',
|
|
157
|
+
semanticClass: 'delivery.project',
|
|
158
|
+
category: 'delivery'
|
|
159
|
+
},
|
|
160
|
+
'delivery.project.paused': {
|
|
161
|
+
id: 'delivery.project.paused',
|
|
162
|
+
order: 140,
|
|
163
|
+
label: 'Paused',
|
|
164
|
+
semanticClass: 'delivery.project',
|
|
165
|
+
category: 'delivery'
|
|
166
|
+
},
|
|
167
|
+
'delivery.project.completed': {
|
|
168
|
+
id: 'delivery.project.completed',
|
|
169
|
+
order: 150,
|
|
170
|
+
label: 'Completed',
|
|
171
|
+
semanticClass: 'delivery.project',
|
|
172
|
+
category: 'delivery'
|
|
173
|
+
},
|
|
174
|
+
|
|
175
|
+
// --- delivery.milestone (MilestoneStatus — 5 values) ---
|
|
176
|
+
'delivery.milestone.upcoming': {
|
|
177
|
+
id: 'delivery.milestone.upcoming',
|
|
178
|
+
order: 160,
|
|
179
|
+
label: 'Upcoming',
|
|
180
|
+
semanticClass: 'delivery.milestone',
|
|
181
|
+
category: 'delivery'
|
|
182
|
+
},
|
|
183
|
+
'delivery.milestone.in_progress': {
|
|
184
|
+
id: 'delivery.milestone.in_progress',
|
|
185
|
+
order: 170,
|
|
186
|
+
label: 'In Progress',
|
|
187
|
+
semanticClass: 'delivery.milestone',
|
|
188
|
+
category: 'delivery'
|
|
189
|
+
},
|
|
190
|
+
'delivery.milestone.blocked': {
|
|
191
|
+
id: 'delivery.milestone.blocked',
|
|
192
|
+
order: 180,
|
|
193
|
+
label: 'Blocked',
|
|
194
|
+
semanticClass: 'delivery.milestone',
|
|
195
|
+
category: 'delivery'
|
|
196
|
+
},
|
|
197
|
+
'delivery.milestone.overdue': {
|
|
198
|
+
id: 'delivery.milestone.overdue',
|
|
199
|
+
order: 190,
|
|
200
|
+
label: 'Overdue',
|
|
201
|
+
semanticClass: 'delivery.milestone',
|
|
202
|
+
category: 'delivery'
|
|
203
|
+
},
|
|
204
|
+
'delivery.milestone.completed': {
|
|
205
|
+
id: 'delivery.milestone.completed',
|
|
206
|
+
order: 200,
|
|
207
|
+
label: 'Completed',
|
|
208
|
+
semanticClass: 'delivery.milestone',
|
|
209
|
+
category: 'delivery'
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
// --- queue (QueueTaskStatus — 5 values, maps hitl/command-queue tasks) ---
|
|
213
|
+
'queue.pending': { id: 'queue.pending', order: 210, label: 'Pending', semanticClass: 'queue', category: 'queue' },
|
|
214
|
+
'queue.processing': {
|
|
215
|
+
id: 'queue.processing',
|
|
216
|
+
order: 220,
|
|
217
|
+
label: 'Processing',
|
|
218
|
+
semanticClass: 'queue',
|
|
219
|
+
category: 'queue'
|
|
220
|
+
},
|
|
221
|
+
'queue.completed': {
|
|
222
|
+
id: 'queue.completed',
|
|
223
|
+
order: 230,
|
|
224
|
+
label: 'Completed',
|
|
225
|
+
semanticClass: 'queue',
|
|
226
|
+
category: 'queue'
|
|
227
|
+
},
|
|
228
|
+
'queue.failed': { id: 'queue.failed', order: 240, label: 'Failed', semanticClass: 'queue', category: 'queue' },
|
|
229
|
+
'queue.expired': { id: 'queue.expired', order: 250, label: 'Expired', semanticClass: 'queue', category: 'queue' },
|
|
230
|
+
|
|
231
|
+
// --- execution (ExecutionStatus — 5 values) ---
|
|
232
|
+
'execution.pending': {
|
|
233
|
+
id: 'execution.pending',
|
|
234
|
+
order: 260,
|
|
235
|
+
label: 'Pending',
|
|
236
|
+
semanticClass: 'execution',
|
|
237
|
+
category: 'execution'
|
|
238
|
+
},
|
|
239
|
+
'execution.running': {
|
|
240
|
+
id: 'execution.running',
|
|
241
|
+
order: 270,
|
|
242
|
+
label: 'Running',
|
|
243
|
+
semanticClass: 'execution',
|
|
244
|
+
category: 'execution'
|
|
245
|
+
},
|
|
246
|
+
'execution.completed': {
|
|
247
|
+
id: 'execution.completed',
|
|
248
|
+
order: 280,
|
|
249
|
+
label: 'Completed',
|
|
250
|
+
semanticClass: 'execution',
|
|
251
|
+
category: 'execution'
|
|
252
|
+
},
|
|
253
|
+
'execution.failed': {
|
|
254
|
+
id: 'execution.failed',
|
|
255
|
+
order: 290,
|
|
256
|
+
label: 'Failed',
|
|
257
|
+
semanticClass: 'execution',
|
|
258
|
+
category: 'execution'
|
|
259
|
+
},
|
|
260
|
+
'execution.warning': {
|
|
261
|
+
id: 'execution.warning',
|
|
262
|
+
order: 300,
|
|
263
|
+
label: 'Warning',
|
|
264
|
+
semanticClass: 'execution',
|
|
265
|
+
category: 'execution'
|
|
266
|
+
},
|
|
267
|
+
|
|
268
|
+
// --- schedule (schedule status — 4 values) ---
|
|
269
|
+
'schedule.active': {
|
|
270
|
+
id: 'schedule.active',
|
|
271
|
+
order: 310,
|
|
272
|
+
label: 'Active',
|
|
273
|
+
semanticClass: 'schedule',
|
|
274
|
+
category: 'schedule'
|
|
275
|
+
},
|
|
276
|
+
'schedule.paused': {
|
|
277
|
+
id: 'schedule.paused',
|
|
278
|
+
order: 320,
|
|
279
|
+
label: 'Paused',
|
|
280
|
+
semanticClass: 'schedule',
|
|
281
|
+
category: 'schedule'
|
|
282
|
+
},
|
|
283
|
+
'schedule.completed': {
|
|
284
|
+
id: 'schedule.completed',
|
|
285
|
+
order: 330,
|
|
286
|
+
label: 'Completed',
|
|
287
|
+
semanticClass: 'schedule',
|
|
288
|
+
category: 'schedule'
|
|
289
|
+
},
|
|
290
|
+
'schedule.cancelled': {
|
|
291
|
+
id: 'schedule.cancelled',
|
|
292
|
+
order: 340,
|
|
293
|
+
label: 'Cancelled',
|
|
294
|
+
semanticClass: 'schedule',
|
|
295
|
+
category: 'schedule'
|
|
296
|
+
},
|
|
297
|
+
|
|
298
|
+
// --- schedule.run (schedule run status — 4 values) ---
|
|
299
|
+
'schedule.run.running': {
|
|
300
|
+
id: 'schedule.run.running',
|
|
301
|
+
order: 350,
|
|
302
|
+
label: 'Running',
|
|
303
|
+
semanticClass: 'schedule.run',
|
|
304
|
+
category: 'schedule'
|
|
305
|
+
},
|
|
306
|
+
'schedule.run.completed': {
|
|
307
|
+
id: 'schedule.run.completed',
|
|
308
|
+
order: 360,
|
|
309
|
+
label: 'Completed',
|
|
310
|
+
semanticClass: 'schedule.run',
|
|
311
|
+
category: 'schedule'
|
|
312
|
+
},
|
|
313
|
+
'schedule.run.failed': {
|
|
314
|
+
id: 'schedule.run.failed',
|
|
315
|
+
order: 370,
|
|
316
|
+
label: 'Failed',
|
|
317
|
+
semanticClass: 'schedule.run',
|
|
318
|
+
category: 'schedule'
|
|
319
|
+
},
|
|
320
|
+
'schedule.run.cancelled': {
|
|
321
|
+
id: 'schedule.run.cancelled',
|
|
322
|
+
order: 380,
|
|
323
|
+
label: 'Cancelled',
|
|
324
|
+
semanticClass: 'schedule.run',
|
|
325
|
+
category: 'schedule'
|
|
326
|
+
},
|
|
327
|
+
|
|
328
|
+
// --- request (RequestStatus — 4 values, maps reported_requests) ---
|
|
329
|
+
'request.open': { id: 'request.open', order: 390, label: 'Open', semanticClass: 'request', category: 'request' },
|
|
330
|
+
'request.investigating': {
|
|
331
|
+
id: 'request.investigating',
|
|
332
|
+
order: 400,
|
|
333
|
+
label: 'Investigating',
|
|
334
|
+
semanticClass: 'request',
|
|
335
|
+
category: 'request'
|
|
336
|
+
},
|
|
337
|
+
'request.resolved': {
|
|
338
|
+
id: 'request.resolved',
|
|
339
|
+
order: 410,
|
|
340
|
+
label: 'Resolved',
|
|
341
|
+
semanticClass: 'request',
|
|
342
|
+
category: 'request'
|
|
343
|
+
},
|
|
344
|
+
'request.wont_fix': {
|
|
345
|
+
id: 'request.wont_fix',
|
|
346
|
+
order: 420,
|
|
347
|
+
label: "Won't Fix",
|
|
348
|
+
semanticClass: 'request',
|
|
349
|
+
category: 'request'
|
|
350
|
+
}
|
|
351
|
+
}
|