@company-semantics/contracts 13.11.0 → 13.12.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/api/generated.ts +9 -0
- package/src/org/index.ts +2 -0
- package/src/org/schemas.ts +21 -0
- package/src/org/types.ts +11 -0
package/package.json
CHANGED
package/src/api/generated.ts
CHANGED
|
@@ -4273,6 +4273,7 @@ export interface components {
|
|
|
4273
4273
|
depth: number;
|
|
4274
4274
|
hasChildren: boolean;
|
|
4275
4275
|
memberCount: number;
|
|
4276
|
+
openRoleCount: number;
|
|
4276
4277
|
missingAtNextLevel: {
|
|
4277
4278
|
count: number;
|
|
4278
4279
|
userIds: string[];
|
|
@@ -4420,6 +4421,7 @@ export interface components {
|
|
|
4420
4421
|
depth: number;
|
|
4421
4422
|
hasChildren: boolean;
|
|
4422
4423
|
memberCount: number;
|
|
4424
|
+
openRoleCount: number;
|
|
4423
4425
|
missingAtNextLevel: {
|
|
4424
4426
|
count: number;
|
|
4425
4427
|
userIds: string[];
|
|
@@ -4675,6 +4677,13 @@ export interface components {
|
|
|
4675
4677
|
/** @enum {string} */
|
|
4676
4678
|
relationshipType: "solid" | "dotted";
|
|
4677
4679
|
}[];
|
|
4680
|
+
openRoles: {
|
|
4681
|
+
/** Format: uuid */
|
|
4682
|
+
id: string;
|
|
4683
|
+
/** Format: uuid */
|
|
4684
|
+
unitId: string;
|
|
4685
|
+
title: string | null;
|
|
4686
|
+
}[];
|
|
4678
4687
|
};
|
|
4679
4688
|
/** @description Polling snapshot of a generic ingestion operation. */
|
|
4680
4689
|
IngestionOperationPollResponse: {
|
package/src/org/index.ts
CHANGED
|
@@ -247,6 +247,7 @@ export {
|
|
|
247
247
|
OrgUnitRelationshipSchema,
|
|
248
248
|
OrgLevelConfigSchema,
|
|
249
249
|
OrgLevelIconSchema,
|
|
250
|
+
OrgOwnerIconSchema,
|
|
250
251
|
OrgUnitResponseSchema,
|
|
251
252
|
OrgUnitTreeResponseSchema,
|
|
252
253
|
MissingAtNextLevelSchema,
|
|
@@ -276,6 +277,7 @@ export type {
|
|
|
276
277
|
OrgUnitRelationship,
|
|
277
278
|
OrgLevelConfig,
|
|
278
279
|
OrgLevelIcon,
|
|
280
|
+
OrgOwnerIcon,
|
|
279
281
|
OrgUnitResponse,
|
|
280
282
|
OrgUnitTreeResponse,
|
|
281
283
|
MissingAtNextLevel,
|
package/src/org/schemas.ts
CHANGED
|
@@ -158,6 +158,19 @@ export type WorkspaceAccessResponse = z.infer<
|
|
|
158
158
|
// PATCH /api/workspace/name (returns WorkspaceOverview)
|
|
159
159
|
// ---------------------------------------------------------------------------
|
|
160
160
|
|
|
161
|
+
/**
|
|
162
|
+
* Icon options for the `owner` org-chart role (ADR-CONT-070). Selected
|
|
163
|
+
* alongside the owner title in the Organization structure editor; `crown` is
|
|
164
|
+
* the default. Presentation only — never an authorization input.
|
|
165
|
+
*/
|
|
166
|
+
export const OrgOwnerIconSchema = z.enum([
|
|
167
|
+
"crown",
|
|
168
|
+
"crown-cross",
|
|
169
|
+
"person",
|
|
170
|
+
"person-simple-circle",
|
|
171
|
+
"medal-military",
|
|
172
|
+
]);
|
|
173
|
+
|
|
161
174
|
export const WorkspaceOverviewSchema = z.object({
|
|
162
175
|
id: z.string(),
|
|
163
176
|
name: z.string(),
|
|
@@ -173,11 +186,19 @@ export const WorkspaceOverviewSchema = z.object({
|
|
|
173
186
|
* section heading renders. Presentation only — never an authorization input.
|
|
174
187
|
*/
|
|
175
188
|
ownerTitle: z.string(),
|
|
189
|
+
/**
|
|
190
|
+
* Org-configured icon for the `owner` org-chart role (ADR-CONT-070).
|
|
191
|
+
* Server-resolved: `orgs.owner_icon` when set, otherwise the default
|
|
192
|
+
* "crown". Always present. Presentation only — never an authorization input.
|
|
193
|
+
*/
|
|
194
|
+
ownerIcon: OrgOwnerIconSchema,
|
|
176
195
|
createdAt: z.string(),
|
|
177
196
|
memberCount: z.number(),
|
|
178
197
|
claimable: z.boolean(),
|
|
179
198
|
});
|
|
180
199
|
|
|
200
|
+
export type OrgOwnerIcon = z.infer<typeof OrgOwnerIconSchema>;
|
|
201
|
+
|
|
181
202
|
export type WorkspaceOverview = z.infer<typeof WorkspaceOverviewSchema>;
|
|
182
203
|
|
|
183
204
|
// ---------------------------------------------------------------------------
|
package/src/org/types.ts
CHANGED
|
@@ -78,6 +78,17 @@ export interface WorkspaceOverview {
|
|
|
78
78
|
* Mirror of `WorkspaceOverviewSchema.ownerTitle` — keep in lockstep.
|
|
79
79
|
*/
|
|
80
80
|
ownerTitle: string;
|
|
81
|
+
/**
|
|
82
|
+
* Org-configured icon for the `owner` org-chart role (ADR-CONT-070).
|
|
83
|
+
* Server-resolved (`orgs.owner_icon` else "crown"). Mirror of
|
|
84
|
+
* `WorkspaceOverviewSchema.ownerIcon` / `OrgOwnerIconSchema` — keep in lockstep.
|
|
85
|
+
*/
|
|
86
|
+
ownerIcon:
|
|
87
|
+
| "crown"
|
|
88
|
+
| "crown-cross"
|
|
89
|
+
| "person"
|
|
90
|
+
| "person-simple-circle"
|
|
91
|
+
| "medal-military";
|
|
81
92
|
createdAt: string;
|
|
82
93
|
memberCount: number;
|
|
83
94
|
claimable: boolean;
|