@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
|
@@ -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
|
-
|
|
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('
|
|
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
package/src/org/view-scopes.ts
CHANGED
|
@@ -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
|
-
|
|
22
|
+
teamwork: 'org.view_teamwork',
|
|
23
23
|
goals: 'org.view_goals',
|
|
24
24
|
teams: 'org.view_teams',
|
|
25
25
|
'internal-admin': 'internal.view_admin',
|