@joeygrable94/utm-src-pub-validators 0.0.104 → 0.0.106

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/dist/index.js CHANGED
@@ -508,18 +508,18 @@ var ROLE_PERMISSIONS = {
508
508
  billing: (u, p, d) => p.scopes.includes("group:billing"),
509
509
  manager: (u, p, d) => p.scopes.includes("group:manager"),
510
510
  admin: (u, p, d) => p.scopes.includes("group:admin"),
511
- list: true,
512
- create: true,
513
- read: true,
514
- update: true,
515
- delete: true
511
+ list: (u, p, d) => p.scopes.includes("group:access"),
512
+ create: (u, p, d) => p.scopes.includes("group:admin"),
513
+ read: (u, p, d) => p.scopes.includes("group:access"),
514
+ update: (u, p, d) => p.scopes.includes("group:manager"),
515
+ delete: (u, p, d) => p.scopes.includes("group:admin")
516
516
  },
517
517
  "group-user": {
518
- list: false,
519
- create: false,
520
- read: false,
521
- update: false,
522
- delete: false
518
+ list: (u, p, d) => p.scopes.includes("group:access"),
519
+ create: (u, p, d) => p.scopes.includes("group:manager"),
520
+ read: (u, p, d) => p.scopes.includes("group:access"),
521
+ update: (u, p, d) => p.scopes.includes("group:manager"),
522
+ delete: (u, p, d) => p.scopes.includes("group:manager")
523
523
  },
524
524
  website: {
525
525
  list: (u, p, d) => p.scopes.includes("website:list"),
@@ -1118,6 +1118,7 @@ var SQueryListGroupDocuments = v12.object({
1118
1118
  sort: SQuerySortGroupDocuments
1119
1119
  });
1120
1120
  var SCreateGroupDocument = v12.object({
1121
+ creator: IsValidReferenceDocumentId,
1121
1122
  label: IsValidLabel,
1122
1123
  value: IsValidGroupValue,
1123
1124
  description: IsValidDescription,