@checkstack/catalog-common 1.2.2 → 1.2.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # @checkstack/catalog-common
2
2
 
3
+ ## 1.2.4
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [db1f56f]
8
+ - @checkstack/common@0.6.0
9
+ - @checkstack/frontend-api@0.3.3
10
+
11
+ ## 1.2.3
12
+
13
+ ### Patch Changes
14
+
15
+ - 8a87cd4: Updated access rules to use new `accessPair` interface
16
+
17
+ Migrated to the new `accessPair` interface with per-level options objects for cleaner access rule definitions.
18
+
19
+ - Updated dependencies [8a87cd4]
20
+ - @checkstack/common@0.5.0
21
+ - @checkstack/frontend-api@0.3.2
22
+
3
23
  ## 1.2.2
4
24
 
5
25
  ### Patch Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@checkstack/catalog-common",
3
- "version": "1.2.2",
3
+ "version": "1.2.4",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
package/src/access.ts CHANGED
@@ -15,45 +15,47 @@ export const catalogAccess = {
15
15
  system: accessPair(
16
16
  "system",
17
17
  {
18
- read: "View systems in catalog",
19
- manage: "Create, update, and delete systems",
18
+ read: {
19
+ description: "View systems in catalog",
20
+ isDefault: true,
21
+ isPublic: true,
22
+ },
23
+ manage: {
24
+ description: "Create, update, and delete systems",
25
+ },
20
26
  },
21
27
  {
22
28
  idParam: "systemId",
23
29
  listKey: "systems",
24
- readIsDefault: true,
25
- readIsPublic: true,
26
- }
30
+ },
27
31
  ),
28
32
 
29
33
  /**
30
34
  * Group access (global, no team-based filtering).
31
35
  */
32
- group: accessPair(
33
- "group",
34
- {
35
- read: "View groups",
36
- manage: "Create, update, and delete groups",
36
+ group: accessPair("group", {
37
+ read: {
38
+ description: "View groups",
39
+ isDefault: true,
40
+ isPublic: true,
37
41
  },
38
- {
39
- readIsDefault: true,
40
- readIsPublic: true,
41
- }
42
- ),
42
+ manage: {
43
+ description: "Create, update, and delete groups",
44
+ },
45
+ }),
43
46
 
44
47
  /**
45
48
  * View access (global, user-only).
46
49
  */
47
- view: accessPair(
48
- "view",
49
- {
50
- read: "View saved views",
51
- manage: "Manage saved views",
50
+ view: accessPair("view", {
51
+ read: {
52
+ description: "View saved views",
53
+ isDefault: true,
52
54
  },
53
- {
54
- readIsDefault: true,
55
- }
56
- ),
55
+ manage: {
56
+ description: "Manage saved views",
57
+ },
58
+ }),
57
59
  };
58
60
 
59
61
  /**