@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.cjs CHANGED
@@ -530,18 +530,18 @@ var ROLE_PERMISSIONS = {
530
530
  billing: (u, p, d) => p.scopes.includes("group:billing"),
531
531
  manager: (u, p, d) => p.scopes.includes("group:manager"),
532
532
  admin: (u, p, d) => p.scopes.includes("group:admin"),
533
- list: true,
534
- create: true,
535
- read: true,
536
- update: true,
537
- delete: true
533
+ list: (u, p, d) => p.scopes.includes("group:access"),
534
+ create: (u, p, d) => p.scopes.includes("group:admin"),
535
+ read: (u, p, d) => p.scopes.includes("group:access"),
536
+ update: (u, p, d) => p.scopes.includes("group:manager"),
537
+ delete: (u, p, d) => p.scopes.includes("group:admin")
538
538
  },
539
539
  "group-user": {
540
- list: false,
541
- create: false,
542
- read: false,
543
- update: false,
544
- delete: false
540
+ list: (u, p, d) => p.scopes.includes("group:access"),
541
+ create: (u, p, d) => p.scopes.includes("group:manager"),
542
+ read: (u, p, d) => p.scopes.includes("group:access"),
543
+ update: (u, p, d) => p.scopes.includes("group:manager"),
544
+ delete: (u, p, d) => p.scopes.includes("group:manager")
545
545
  },
546
546
  website: {
547
547
  list: (u, p, d) => p.scopes.includes("website:list"),
@@ -1140,6 +1140,7 @@ var SQueryListGroupDocuments = v12__namespace.object({
1140
1140
  sort: SQuerySortGroupDocuments
1141
1141
  });
1142
1142
  var SCreateGroupDocument = v12__namespace.object({
1143
+ creator: IsValidReferenceDocumentId,
1143
1144
  label: IsValidLabel,
1144
1145
  value: IsValidGroupValue,
1145
1146
  description: IsValidDescription,