@company-semantics/contracts 0.98.0 → 0.99.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,6 +1,6 @@
1
1
  {
2
2
  "name": "@company-semantics/contracts",
3
- "version": "0.98.0",
3
+ "version": "0.99.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
package/src/index.ts CHANGED
@@ -246,10 +246,13 @@ export type {
246
246
  // Goals domain types (PRD-00173)
247
247
  GoalVisibility,
248
248
  GoalDocLevel,
249
+ GoalNodeType,
249
250
  GoalSource,
250
251
  GoalDependency,
251
252
  GoalTreeNode,
252
253
  GoalDoc,
254
+ TeamDepartmentRole,
255
+ TeamDepartmentMembership,
253
256
  // Team types (PRD-00306)
254
257
  TeamMembershipRole,
255
258
  TeamSyncMode,
package/src/org/goals.ts CHANGED
@@ -10,6 +10,16 @@ export type GoalVisibility = 'public' | 'private';
10
10
 
11
11
  export type GoalDocLevel = 'root' | 'department' | 'team';
12
12
 
13
+ export type GoalNodeType = 'company' | 'department' | 'team' | 'cross_team' | 'doc' | 'goal' | 'source' | 'map';
14
+
15
+ export type TeamDepartmentRole = 'owner' | 'participant' | 'supporting';
16
+
17
+ export interface TeamDepartmentMembership {
18
+ readonly teamId: string;
19
+ readonly departmentId: string;
20
+ readonly role: TeamDepartmentRole;
21
+ }
22
+
13
23
  export interface GoalSource {
14
24
  readonly label: string;
15
25
  readonly sourceType: 'meeting' | 'document' | 'conversation' | 'manual';
@@ -25,13 +35,18 @@ export interface GoalTreeNode {
25
35
  readonly id: string;
26
36
  readonly slug: string;
27
37
  readonly title: string;
38
+ readonly type: GoalNodeType;
28
39
  readonly level: GoalDocLevel;
40
+ readonly parentId: string | null;
29
41
  readonly department: string | null;
30
42
  readonly visibility: GoalVisibility;
31
43
  readonly canEdit: boolean;
32
44
  readonly memberCount: number;
45
+ readonly description?: string;
33
46
  /** Owning team. Null for root docs or when the owning team has been deleted. */
34
47
  readonly owningTeam: { readonly id: string; readonly name: string } | null;
48
+ /** Department IDs this node is associated with (for cross-team projections). */
49
+ readonly departmentIds?: readonly string[];
35
50
  }
36
51
 
37
52
  export interface GoalDocCore {
package/src/org/index.ts CHANGED
@@ -84,6 +84,7 @@ export { VIEW_SCOPE_MAP, getViewScope } from './view-scopes';
84
84
  export type {
85
85
  GoalVisibility,
86
86
  GoalDocLevel,
87
+ GoalNodeType,
87
88
  GoalSource,
88
89
  GoalDependency,
89
90
  GoalTreeNode,
@@ -91,6 +92,8 @@ export type {
91
92
  GoalDocCollaborators,
92
93
  GoalDocRelations,
93
94
  GoalDoc,
95
+ TeamDepartmentRole,
96
+ TeamDepartmentMembership,
94
97
  } from './goals';
95
98
 
96
99
  // Team types (PRD-00306)