@company-semantics/contracts 0.143.1 → 0.144.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/package.json +1 -1
- package/src/content/schemas.ts +7 -0
package/package.json
CHANGED
package/src/content/schemas.ts
CHANGED
|
@@ -55,6 +55,8 @@ const CompanyMdTreeNodeSchema = z.object({
|
|
|
55
55
|
memberCount: z.number().int(),
|
|
56
56
|
description: z.string().optional(),
|
|
57
57
|
departmentIds: z.array(z.string()).optional(),
|
|
58
|
+
/** Fractional-index key for ordered entity wrappers (dept/team/context). */
|
|
59
|
+
orderKey: z.string().optional(),
|
|
58
60
|
});
|
|
59
61
|
|
|
60
62
|
// ---------------------------------------------------------------------------
|
|
@@ -168,6 +170,8 @@ const TeamSummarySchema = z.object({
|
|
|
168
170
|
scope: z.enum(['department', 'cross_department', 'org']),
|
|
169
171
|
department: z.object({ id: z.string(), name: z.string(), slug: z.string() }).nullable(),
|
|
170
172
|
homeDepartment: z.object({ id: z.string(), name: z.string(), slug: z.string() }).nullable(),
|
|
173
|
+
/** Fractional-index key used by drag-to-reorder. Backend always returns this. */
|
|
174
|
+
orderKey: z.string(),
|
|
171
175
|
});
|
|
172
176
|
|
|
173
177
|
// ---------------------------------------------------------------------------
|
|
@@ -203,6 +207,8 @@ const DepartmentSummarySchema = z.object({
|
|
|
203
207
|
slug: z.string(),
|
|
204
208
|
description: z.string().nullable(),
|
|
205
209
|
memberCount: z.number().int(),
|
|
210
|
+
/** Fractional-index key used by drag-to-reorder. Backend always returns this. */
|
|
211
|
+
orderKey: z.string(),
|
|
206
212
|
});
|
|
207
213
|
|
|
208
214
|
// ---------------------------------------------------------------------------
|
|
@@ -223,6 +229,7 @@ export const DepartmentResponseSchema = z.object({
|
|
|
223
229
|
syncMode: z.enum(['manual_only', 'scim', 'hris']),
|
|
224
230
|
memberCount: z.number().int(),
|
|
225
231
|
members: z.array(DepartmentMemberSchema),
|
|
232
|
+
orderKey: z.string(),
|
|
226
233
|
});
|
|
227
234
|
|
|
228
235
|
// ---------------------------------------------------------------------------
|