@supernova-studio/model 1.47.0 → 1.47.1
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.d.mts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -0
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -4979,6 +4979,25 @@ function deriveWorkspaceSeatTypeFromRole(role) {
|
|
|
4979
4979
|
return "None";
|
|
4980
4980
|
}
|
|
4981
4981
|
}
|
|
4982
|
+
var fullSeatTypeRoles = /* @__PURE__ */ new Set([
|
|
4983
|
+
WorkspaceRole.Owner,
|
|
4984
|
+
WorkspaceRole.Admin,
|
|
4985
|
+
WorkspaceRole.Creator,
|
|
4986
|
+
WorkspaceRole.Contributor
|
|
4987
|
+
]);
|
|
4988
|
+
var builderSeatTypeRoles = /* @__PURE__ */ new Set([WorkspaceRole.Owner, WorkspaceRole.Admin, WorkspaceRole.Creator]);
|
|
4989
|
+
var noneSeatTypeRoles = /* @__PURE__ */ new Set([WorkspaceRole.Viewer, WorkspaceRole.Billing]);
|
|
4990
|
+
function isValidRoleSeatPair(role, seatType) {
|
|
4991
|
+
switch (seatType) {
|
|
4992
|
+
case "Full":
|
|
4993
|
+
return fullSeatTypeRoles.has(role);
|
|
4994
|
+
case "Builder":
|
|
4995
|
+
return builderSeatTypeRoles.has(role);
|
|
4996
|
+
case "None":
|
|
4997
|
+
return noneSeatTypeRoles.has(role);
|
|
4998
|
+
}
|
|
4999
|
+
return true;
|
|
5000
|
+
}
|
|
4982
5001
|
|
|
4983
5002
|
// src/workspace/user-invite.ts
|
|
4984
5003
|
var MAX_MEMBERS_COUNT = 100;
|
|
@@ -7542,6 +7561,7 @@ export {
|
|
|
7542
7561
|
isNullish,
|
|
7543
7562
|
isSlugReserved,
|
|
7544
7563
|
isTokenType,
|
|
7564
|
+
isValidRoleSeatPair,
|
|
7545
7565
|
joinRepeatingSpans,
|
|
7546
7566
|
mapByUnique,
|
|
7547
7567
|
mapPageBlockItemValuesV2,
|