@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 +11 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +803 -12
- package/dist/index.d.ts +803 -12
- package/dist/index.js +11 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
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:
|
|
512
|
-
create:
|
|
513
|
-
read:
|
|
514
|
-
update:
|
|
515
|
-
delete:
|
|
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:
|
|
519
|
-
create:
|
|
520
|
-
read:
|
|
521
|
-
update:
|
|
522
|
-
delete:
|
|
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,
|