@company-semantics/contracts 0.96.0 → 0.97.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.96.0",
3
+ "version": "0.97.0",
4
4
  "private": false,
5
5
  "repository": {
6
6
  "type": "git",
@@ -6,7 +6,7 @@ describe('VIEW_SCOPE_MAP golden snapshot', () => {
6
6
  expect(VIEW_SCOPE_MAP).toStrictEqual({
7
7
  workspace: 'org.view_workspace',
8
8
  timeline: 'org.view_timeline',
9
- activity: 'org.view_activity',
9
+ teamwork: 'org.view_teamwork',
10
10
  goals: 'org.view_goals',
11
11
  teams: 'org.view_teams',
12
12
  'internal-admin': 'internal.view_admin',
@@ -23,7 +23,7 @@ describe('getViewScope', () => {
23
23
  it('returns the required scope for protected views', () => {
24
24
  expect(getViewScope('workspace')).toBe('org.view_workspace')
25
25
  expect(getViewScope('timeline')).toBe('org.view_timeline')
26
- expect(getViewScope('activity')).toBe('org.view_activity')
26
+ expect(getViewScope('teamwork')).toBe('org.view_teamwork')
27
27
  expect(getViewScope('goals')).toBe('org.view_goals')
28
28
  expect(getViewScope('internal-admin')).toBe('internal.view_admin')
29
29
  })
package/src/org/goals.ts CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  export type GoalVisibility = 'public' | 'private';
10
10
 
11
- export type GoalDocLevel = 'root' | 'department';
11
+ export type GoalDocLevel = 'root' | 'department' | 'team';
12
12
 
13
13
  export interface GoalSource {
14
14
  readonly label: string;
@@ -19,7 +19,7 @@ export const VIEW_SCOPE_MAP = {
19
19
  // Protected views (require specific scope)
20
20
  workspace: 'org.view_workspace',
21
21
  timeline: 'org.view_timeline',
22
- activity: 'org.view_activity',
22
+ teamwork: 'org.view_teamwork',
23
23
  goals: 'org.view_goals',
24
24
  teams: 'org.view_teams',
25
25
  'internal-admin': 'internal.view_admin',