@company-semantics/contracts 39.2.0 → 39.4.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 +14 -4
- package/src/action-items/README.md +73 -0
- package/src/action-items/__tests__/README.md +39 -0
- package/src/action-items/__tests__/vocabulary.test.ts +133 -0
- package/src/action-items/index.ts +33 -0
- package/src/action-items/kinds.ts +82 -0
- package/src/action-items/schemas.ts +87 -0
- package/src/api/README.md +2 -2
- package/src/api/generated-spec-hash.ts +2 -2
- package/src/api/generated.ts +295 -0
- package/src/generated/openapi-routes.ts +4 -0
- package/src/index.ts +58 -0
- package/src/org/README.md +24 -0
- package/src/org/__tests__/company-md-collab.test.ts +290 -0
- package/src/org/company-md-collab.ts +337 -0
- package/src/org/company-md.ts +12 -0
- package/src/org/index.ts +32 -0
- package/src/resource-keys.ts +9 -0
package/src/resource-keys.ts
CHANGED
|
@@ -55,6 +55,13 @@ export type ResourceKey =
|
|
|
55
55
|
// dashboard reads over Global-infra factory tables; tenant-less, scope 'system'.
|
|
56
56
|
| { type: "factoryFloor"; scope: "system" }
|
|
57
57
|
| { type: "factorySnapshot"; scope: "system" }
|
|
58
|
+
// Everything awaiting the viewer's decision, across every domain
|
|
59
|
+
// (ADR-CONT-104). ORG-scoped, not user-scoped, even though the content is
|
|
60
|
+
// per-viewer: the bucket differs per org, so a user-keyed entry would serve
|
|
61
|
+
// one org's items after switching to another. Same shape as `chats` and
|
|
62
|
+
// `timeline`, which are likewise viewer-filtered but org-partitioned — and it
|
|
63
|
+
// inherits `resolveScope`'s impersonation handling for free.
|
|
64
|
+
| { type: "actionItems"; orgId: string }
|
|
58
65
|
// User-scoped
|
|
59
66
|
| { type: "dismissedBanners"; userId: string }
|
|
60
67
|
| { type: "userOrgs"; userId: string }
|
|
@@ -98,6 +105,7 @@ const ORG_SCOPED_TYPES = [
|
|
|
98
105
|
"orgLevelConfig",
|
|
99
106
|
"peopleOrgChart",
|
|
100
107
|
"orgUnitOwners",
|
|
108
|
+
"actionItems",
|
|
101
109
|
] as const;
|
|
102
110
|
|
|
103
111
|
const USER_SCOPED_TYPES = [
|
|
@@ -181,6 +189,7 @@ export function toQueryKey(key: ResourceKey): readonly string[] {
|
|
|
181
189
|
case "orgLevelConfig":
|
|
182
190
|
case "peopleOrgChart":
|
|
183
191
|
case "orgUnitOwners":
|
|
192
|
+
case "actionItems":
|
|
184
193
|
return [key.type, key.orgId] as const;
|
|
185
194
|
|
|
186
195
|
// System-scoped (ADR-CONTRACTS-052) — tenant-less super-admin resources
|