@crossworks/client-types 0.300.20 → 0.300.23
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/package.json +1 -1
- package/src/dto/workspaces.ts +13 -10
package/package.json
CHANGED
package/src/dto/workspaces.ts
CHANGED
|
@@ -21,8 +21,10 @@ export const WORKSPACE_AREAS: readonly WorkspaceArea[] = [
|
|
|
21
21
|
'keys',
|
|
22
22
|
];
|
|
23
23
|
|
|
24
|
-
/** What a workspace is, for its default icon: the Admin workspace,
|
|
25
|
-
*
|
|
24
|
+
/** What a workspace is, for its default icon: the Admin workspace, a
|
|
25
|
+
* login's private workspace, or any other. 'team' (the built-in Team
|
|
26
|
+
* workspace) comes only from a brain before migration 0286: Team is a
|
|
27
|
+
* normal workspace since (its icon was set to the one 'team' drew). */
|
|
26
28
|
export type WorkspaceKind = 'admin' | 'team' | 'private' | 'other';
|
|
27
29
|
|
|
28
30
|
/**
|
|
@@ -50,12 +52,13 @@ export type Workspace = WorkspaceLook & {
|
|
|
50
52
|
assistant: { id: string; name: string } | null;
|
|
51
53
|
/** The Admin workspace: its users manage the brain (requireArea). */
|
|
52
54
|
isAdmin: boolean;
|
|
53
|
-
/**
|
|
54
|
-
* archived (hide Rename and Archive
|
|
55
|
-
* attached here like any workspace's since
|
|
55
|
+
/** The built-in workspace: Admin only since migration 0286 (Team too
|
|
56
|
+
* before). It cannot be renamed or archived (hide Rename and Archive
|
|
57
|
+
* there). Its connectors are attached here like any workspace's since
|
|
58
|
+
* W5b2. */
|
|
56
59
|
builtIn: boolean;
|
|
57
|
-
/**
|
|
58
|
-
*
|
|
60
|
+
/** Always false since migration 0286 (it marked the built-in Team
|
|
61
|
+
* workspace, where every Admin workspace user was a Moderator). */
|
|
59
62
|
adminModerated: boolean;
|
|
60
63
|
archived: boolean;
|
|
61
64
|
userCount: number;
|
|
@@ -78,9 +81,9 @@ export type WorkspaceUser = {
|
|
|
78
81
|
name: string | null;
|
|
79
82
|
email: string;
|
|
80
83
|
moderator: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Admin
|
|
83
|
-
*
|
|
84
|
+
/** Always false since migration 0286 (a Moderator of the Admin-moderated
|
|
85
|
+
* Team workspace by being an Admin user). Only an Admin user ticks or
|
|
86
|
+
* clears Moderator now (403 admin_only for anyone else). */
|
|
84
87
|
adminViaArea: boolean;
|
|
85
88
|
/** Who added them ("Added by NAME on DATE", plan S1): `name` is the
|
|
86
89
|
* display name or else the email. null when unknown (the adder's login
|