@company-semantics/contracts 1.24.0 → 1.24.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "1.24.0",
3
+ "version": "1.24.1",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,6 +36,8 @@ export type ResourceKey =
36
36
  | { type: 'orgUnitAncestors'; orgId: string; unitId: string }
37
37
  | { type: 'orgUnitMemberships'; orgId: string; unitId: string }
38
38
  | { type: 'orgUnitPermissions'; orgId: string; unitId: string }
39
+ // People reporting (ADR-BE-166) — drives the settings Org chart drill-down
40
+ | { type: 'peopleOrgChart'; orgId: string }
39
41
  // User-scoped
40
42
  | { type: 'dismissedBanners'; userId: string }
41
43
  | { type: 'userOrgs'; userId: string }
@@ -62,7 +64,7 @@ const ORG_SCOPED_TYPES = [
62
64
  'members', 'departments', 'chats', 'teams', 'integrations', 'invites',
63
65
  'auditEvents', 'timeline', 'workspace', 'workspaceDomains', 'authSettings',
64
66
  'billing', 'aiUsage', 'deletionEligibility', 'transferOwnership', 'companyMdDocs',
65
- 'orgTree', 'orgLevelConfig',
67
+ 'orgTree', 'orgLevelConfig', 'peopleOrgChart',
66
68
  ] as const;
67
69
 
68
70
  const USER_SCOPED_TYPES = ['dismissedBanners', 'userOrgs', 'sessions', 'viewer'] as const;
@@ -125,6 +127,7 @@ export function toQueryKey(key: ResourceKey): readonly string[] {
125
127
  case 'companyMdDocs':
126
128
  case 'orgTree':
127
129
  case 'orgLevelConfig':
130
+ case 'peopleOrgChart':
128
131
  return [key.type, key.orgId] as const;
129
132
 
130
133
  default: {