@company-semantics/contracts 0.102.0 → 0.102.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 +1 -1
- package/src/resource-keys.ts +3 -1
package/package.json
CHANGED
package/src/resource-keys.ts
CHANGED
|
@@ -12,6 +12,7 @@ export type ResourceKey =
|
|
|
12
12
|
| { type: 'integrations'; orgId: string }
|
|
13
13
|
| { type: 'invites'; orgId: string }
|
|
14
14
|
| { type: 'auditEvents'; orgId: string }
|
|
15
|
+
| { type: 'timeline'; orgId: string }
|
|
15
16
|
// Identities (singular) — single entities
|
|
16
17
|
| { type: 'member'; orgId: string; memberId: string }
|
|
17
18
|
| { type: 'workspace'; orgId: string }
|
|
@@ -44,7 +45,7 @@ export function resolveScope(context: {
|
|
|
44
45
|
/** All ResourceKey type literals for exhaustive checking. */
|
|
45
46
|
const ORG_SCOPED_TYPES = [
|
|
46
47
|
'members', 'departments', 'chats', 'teams', 'integrations', 'invites',
|
|
47
|
-
'auditEvents', 'workspace', 'authSettings', 'billing', 'aiUsage',
|
|
48
|
+
'auditEvents', 'timeline', 'workspace', 'authSettings', 'billing', 'aiUsage',
|
|
48
49
|
'deletionEligibility', 'transferOwnership', 'goals',
|
|
49
50
|
] as const;
|
|
50
51
|
|
|
@@ -79,6 +80,7 @@ export function toQueryKey(key: ResourceKey): readonly string[] {
|
|
|
79
80
|
case 'integrations':
|
|
80
81
|
case 'invites':
|
|
81
82
|
case 'auditEvents':
|
|
83
|
+
case 'timeline':
|
|
82
84
|
case 'workspace':
|
|
83
85
|
case 'authSettings':
|
|
84
86
|
case 'billing':
|