@company-semantics/contracts 54.0.0 → 55.0.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
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// AUTO-GENERATED — do not edit. Run pnpm generate:spec-hash to regenerate.
|
|
2
|
-
export const SPEC_HASH = '
|
|
3
|
-
export const SPEC_HASH_FULL = '
|
|
2
|
+
export const SPEC_HASH = '6eb28e0d82f9' as const;
|
|
3
|
+
export const SPEC_HASH_FULL = '6eb28e0d82f9d1d88e4fc954ece5377c85ddd6da30b6171c4d2aa75f347c09ed' as const;
|
package/src/api/generated.ts
CHANGED
|
@@ -4982,6 +4982,7 @@ export interface components {
|
|
|
4982
4982
|
type: "company" | "department" | "team" | "cross_team" | "doc" | "goal" | "source" | "map" | "context_bank";
|
|
4983
4983
|
canEdit: boolean;
|
|
4984
4984
|
memberCount: number;
|
|
4985
|
+
openRoleCount: number;
|
|
4985
4986
|
description?: string;
|
|
4986
4987
|
orderKey?: string;
|
|
4987
4988
|
/** @enum {string} */
|
package/src/content/schemas.ts
CHANGED
|
@@ -58,6 +58,12 @@ const CompanyMdTreeNodeSchema = z.object({
|
|
|
58
58
|
]),
|
|
59
59
|
canEdit: z.boolean(),
|
|
60
60
|
memberCount: z.number().int(),
|
|
61
|
+
/**
|
|
62
|
+
* Active open roles (`open` + `hiring`) on this node's owning unit — the
|
|
63
|
+
* companion to `memberCount` in the "(N + M open)" split. DIRECT per-unit,
|
|
64
|
+
* not a subtree rollup, matching this projection's `memberCount` scope.
|
|
65
|
+
*/
|
|
66
|
+
openRoleCount: z.number().int().min(0),
|
|
61
67
|
description: z.string().optional(),
|
|
62
68
|
/** Fractional-index key for ordered entity wrappers (unit/context). */
|
|
63
69
|
orderKey: z.string().optional(),
|
package/src/org/company-md.ts
CHANGED
|
@@ -168,6 +168,14 @@ export interface CompanyMdTreeNode extends CompanyMdNodeIdentity {
|
|
|
168
168
|
readonly type: CompanyMdNodeType;
|
|
169
169
|
readonly canEdit: boolean;
|
|
170
170
|
readonly memberCount: number;
|
|
171
|
+
/**
|
|
172
|
+
* Active open roles (`open` + `hiring`) on this node's owning unit, the
|
|
173
|
+
* companion to `memberCount` in the "(N + M open)" people-count split.
|
|
174
|
+
* Unlike `OrgUnitTreeNode.openRoleCount` this is a DIRECT per-unit count,
|
|
175
|
+
* not a subtree rollup — it is paired with this projection's `memberCount`,
|
|
176
|
+
* which is itself direct, so the two halves of one badge share a scope.
|
|
177
|
+
*/
|
|
178
|
+
readonly openRoleCount: number;
|
|
171
179
|
readonly description?: string;
|
|
172
180
|
/**
|
|
173
181
|
* Fractional-index key for stable ordering. Present on ordered entity
|