@burdenoff/microfe-workspaces 2026.1120.1 → 2026.1121.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/WorkspacesRoutes.js +83 -59
- package/dist/components/ProjectCard.js +48 -47
- package/dist/constants/navigationV2.d.ts +5 -0
- package/dist/constants/navigationV2.js +2 -2
- package/dist/generated/global-operations.d.ts +11 -1
- package/dist/generated/global-types.d.ts +9866 -574
- package/dist/generated/wspace-operations.d.ts +171 -2
- package/dist/generated/wspace-operations.js +1088 -52
- package/dist/generated/wspace-types.d.ts +193797 -41883
- package/dist/hooks/v2/useWorkspacePagesV2Data.d.ts +89 -0
- package/dist/hooks/v2/useWorkspacePagesV2Data.js +211 -0
- package/dist/index.d.ts +1 -1
- package/dist/pages/MembersListPage.js +101 -100
- package/dist/pages/ProjectMembersPage.js +116 -115
- package/dist/pages/ProjectsListPage.js +233 -232
- package/dist/pages/v2/ActivityPage.d.ts +1 -0
- package/dist/pages/v2/ActivityPage.js +150 -0
- package/dist/pages/v2/InvitePeopleDialog.d.ts +11 -0
- package/dist/pages/v2/InvitePeopleDialog.js +208 -0
- package/dist/pages/v2/InvitedTab.d.ts +9 -0
- package/dist/pages/v2/InvitedTab.js +223 -0
- package/dist/pages/v2/MembersPage.d.ts +1 -0
- package/dist/pages/v2/MembersPage.js +120 -0
- package/dist/pages/v2/PeopleTab.d.ts +20 -0
- package/dist/pages/v2/PeopleTab.js +253 -0
- package/dist/pages/v2/ProjectsPage.d.ts +1 -0
- package/dist/pages/v2/ProjectsPage.js +242 -0
- package/dist/pages/v2/WorkspacesPage.d.ts +3 -0
- package/dist/pages/v2/WorkspacesPage.js +247 -0
- package/dist/pages/v2/activitySentences.d.ts +50 -0
- package/dist/pages/v2/activitySentences.js +288 -0
- package/dist/pages/v2/inviteEmails.d.ts +12 -0
- package/dist/pages/v2/inviteEmails.js +18 -0
- package/dist/pages/v2/memberRows.d.ts +54 -0
- package/dist/pages/v2/memberRows.js +51 -0
- package/dist/pages/v2/projectRows.d.ts +10 -0
- package/dist/pages/v2/projectRows.js +10 -0
- package/dist/pages/v2/relativeTime.d.ts +6 -0
- package/dist/pages/v2/relativeTime.js +30 -0
- package/dist/store/workspacesStore.d.ts +2 -1
- package/dist/store/workspacesStore.js +1 -1
- package/dist/translations/en.d.ts +382 -0
- package/dist/translations/en.js +382 -0
- package/dist/types/index.d.ts +19 -0
- package/dist/utils/nativeBridge.js +1 -1
- package/package.json +3 -3
|
@@ -9,6 +9,19 @@ type Exact<T extends {
|
|
|
9
9
|
export type Incremental<T> = T | {
|
|
10
10
|
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
11
11
|
};
|
|
12
|
+
export type ActivityCategory = 'ANALYTICS' | 'CREATE' | 'DATA' | 'DELETE' | 'INVITE' | 'LOGIN' | 'LOGOUT' | 'OTHER' | 'PERMISSION' | 'PROJECT' | 'ROLE' | 'SECURITY' | 'SETTINGS' | 'TEAM' | 'UPDATE' | 'VIEW' | 'WORKSPACE';
|
|
13
|
+
/** Actor types - actors are created in auth-svc, RBAC just references opaque IDs */
|
|
14
|
+
export type ActorType =
|
|
15
|
+
/** Automated bot (workflow, AI assistant) */
|
|
16
|
+
'BOT'
|
|
17
|
+
/** Service acting on behalf of user */
|
|
18
|
+
| 'DELEGATED_AGENT'
|
|
19
|
+
/** Workspace group actor used for inherited/shared permissions */
|
|
20
|
+
| 'GROUP'
|
|
21
|
+
/** External API integration (Zapier, etc.) */
|
|
22
|
+
| 'INTEGRATION'
|
|
23
|
+
/** Human user */
|
|
24
|
+
| 'USER';
|
|
12
25
|
/**
|
|
13
26
|
* Input for adding a member to a workspace.
|
|
14
27
|
* Workspace ID is read from gateway context (x-workspace-id header).
|
|
@@ -16,6 +29,17 @@ export type Incremental<T> = T | {
|
|
|
16
29
|
export type AddWorkspaceMemberInput = {
|
|
17
30
|
/** Operation context for scoping */
|
|
18
31
|
context?: WorkspaceContextInput | null | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* Workspace RBAC role IDs to grant (optional, at most 100, duplicates ignored).
|
|
34
|
+
* New member: gets exactly these roles; a role still held from an earlier membership is revoked, which the caller
|
|
35
|
+
* must also be allowed to do (assignment:delete). Omitted or [] gets exactly the workspace default member role
|
|
36
|
+
* (Editor), replacing any earlier grant.
|
|
37
|
+
* Existing member: listed roles not already held are added, nothing is removed; omitted or [] changes nothing
|
|
38
|
+
* (an intentional zero-role member stays at zero). RBAC validates the IDs and checks the verified caller
|
|
39
|
+
* (gateway x-actor-id/x-actor-type, never a client argument) holds assignment:create and may grant or revoke
|
|
40
|
+
* protected roles (Workspace Owner/Admin). Invalid or unauthorized input fails the whole request and adds no member.
|
|
41
|
+
*/
|
|
42
|
+
roleIds?: Array<string> | null | undefined;
|
|
19
43
|
/** User ID to add as member */
|
|
20
44
|
userId: string;
|
|
21
45
|
};
|
|
@@ -31,6 +55,8 @@ export type CreateInvitationInput = {
|
|
|
31
55
|
invitedUserId?: string | null | undefined;
|
|
32
56
|
/** Project ID for project invitations */
|
|
33
57
|
projectId?: string | null | undefined;
|
|
58
|
+
/** Workspace projects to add the invitee to once they accept the invitation */
|
|
59
|
+
projectIds?: Array<string> | null | undefined;
|
|
34
60
|
/** Array of role IDs to assign upon acceptance */
|
|
35
61
|
roleIds?: Array<string> | null | undefined;
|
|
36
62
|
/** Universal entity-owned tags to attach during creation */
|
|
@@ -45,6 +71,11 @@ export type CreateInvitationInput = {
|
|
|
45
71
|
export type CreateProjectInput = {
|
|
46
72
|
/** Project configuration and settings */
|
|
47
73
|
config?: Record<string, unknown> | null | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Optional human-readable description (surfaced on `Project.description`;
|
|
76
|
+
* BOFF-9202)
|
|
77
|
+
*/
|
|
78
|
+
description?: string | null | undefined;
|
|
48
79
|
/** Unique project key/code (auto-generated if not provided) */
|
|
49
80
|
key?: string | null | undefined;
|
|
50
81
|
/** Display name of the project */
|
|
@@ -83,6 +114,14 @@ export type GetProjectTagsInput = {
|
|
|
83
114
|
export type GetWorkspaceTagsInput = {
|
|
84
115
|
entityId: string;
|
|
85
116
|
};
|
|
117
|
+
/** Outcome of the most recent attempt to send the invitation email */
|
|
118
|
+
export type InvitationEmailStatus =
|
|
119
|
+
/** The email was not sent (delivery failed or was suppressed); see emailErrorCode */
|
|
120
|
+
'FAILED'
|
|
121
|
+
/** The notification service accepted and triggered the email */
|
|
122
|
+
| 'SENT'
|
|
123
|
+
/** Sending invitation emails is not configured for this environment */
|
|
124
|
+
| 'SKIPPED';
|
|
86
125
|
export type InviteStatus =
|
|
87
126
|
/** Invitation has been accepted by the invitee */
|
|
88
127
|
'ACCEPTED'
|
|
@@ -96,9 +135,11 @@ export type InviteStatus =
|
|
|
96
135
|
| 'REJECTED';
|
|
97
136
|
/** Standard pagination input */
|
|
98
137
|
export type PaginationInput = {
|
|
99
|
-
/**
|
|
138
|
+
/** Shared federation compatibility field. workspaceDirectory is offset-only and rejects non-empty cursors. */
|
|
139
|
+
cursor?: string | null | undefined;
|
|
140
|
+
/** Maximum number of entries to return (clamped server-side). */
|
|
100
141
|
limit?: number | null | undefined;
|
|
101
|
-
/** Number of
|
|
142
|
+
/** Number of entries to skip from the start of the result set. */
|
|
102
143
|
offset?: number | null | undefined;
|
|
103
144
|
};
|
|
104
145
|
/** Filter input for querying projects */
|
|
@@ -172,6 +213,8 @@ export type UpdateInvitationInput = {
|
|
|
172
213
|
context?: WorkspaceContextInput | null | undefined;
|
|
173
214
|
/** Updated expiration timestamp */
|
|
174
215
|
expiresAt?: string | null | undefined;
|
|
216
|
+
/** Workspace projects to add the invitee to upon acceptance */
|
|
217
|
+
projectIds?: Array<string> | null | undefined;
|
|
175
218
|
/** Array of role IDs to assign */
|
|
176
219
|
roleIds?: Array<string> | null | undefined;
|
|
177
220
|
/** Updated status */
|
|
@@ -185,6 +228,8 @@ export type UpdateProjectInput = {
|
|
|
185
228
|
archived?: boolean | null | undefined;
|
|
186
229
|
/** Project configuration and settings */
|
|
187
230
|
config?: Record<string, unknown> | null | undefined;
|
|
231
|
+
/** Optional human-readable description (BOFF-9202) */
|
|
232
|
+
description?: string | null | undefined;
|
|
188
233
|
/** Unique project key/code */
|
|
189
234
|
key?: string | null | undefined;
|
|
190
235
|
/** Display name of the project */
|
|
@@ -760,6 +805,24 @@ export type ReplaceWorkspaceTagsMutation = {
|
|
|
760
805
|
} | null;
|
|
761
806
|
}>;
|
|
762
807
|
};
|
|
808
|
+
export type GetWorkspaceActivityLogQueryVariables = Exact<{
|
|
809
|
+
workspaceId: string;
|
|
810
|
+
limit?: number | null | undefined;
|
|
811
|
+
}>;
|
|
812
|
+
export type GetWorkspaceActivityLogQuery = {
|
|
813
|
+
getWorkspaceActivities: Array<{
|
|
814
|
+
id: string;
|
|
815
|
+
action: string;
|
|
816
|
+
category: ActivityCategory | null;
|
|
817
|
+
resourceType: string | null;
|
|
818
|
+
resourceId: string | null;
|
|
819
|
+
userId: string;
|
|
820
|
+
targetUserId: string | null;
|
|
821
|
+
description: string | null;
|
|
822
|
+
details: Record<string, unknown> | null;
|
|
823
|
+
timestamp: string;
|
|
824
|
+
}>;
|
|
825
|
+
};
|
|
763
826
|
export type WorkspaceMemberFieldsFragment = {
|
|
764
827
|
id: string;
|
|
765
828
|
workspaceId: string;
|
|
@@ -932,6 +995,85 @@ export type GetMyPendingInvitationsQuery = {
|
|
|
932
995
|
} | null;
|
|
933
996
|
}>;
|
|
934
997
|
};
|
|
998
|
+
export type GetWorkspaceMembersWithStatusQueryVariables = Exact<{
|
|
999
|
+
workspaceId: string;
|
|
1000
|
+
pagination?: PaginationInput | null | undefined;
|
|
1001
|
+
}>;
|
|
1002
|
+
export type GetWorkspaceMembersWithStatusQuery = {
|
|
1003
|
+
workspaceMembers: {
|
|
1004
|
+
total: number;
|
|
1005
|
+
hasMore: boolean;
|
|
1006
|
+
items: Array<{
|
|
1007
|
+
role: string;
|
|
1008
|
+
status: string;
|
|
1009
|
+
id: string;
|
|
1010
|
+
workspaceId: string;
|
|
1011
|
+
userId: string;
|
|
1012
|
+
createdAt: string;
|
|
1013
|
+
updatedAt: string;
|
|
1014
|
+
context: {
|
|
1015
|
+
type: string | null;
|
|
1016
|
+
metadata: Record<string, unknown> | null;
|
|
1017
|
+
} | null;
|
|
1018
|
+
}>;
|
|
1019
|
+
};
|
|
1020
|
+
};
|
|
1021
|
+
export type GetWorkspaceInvitationsWithEmailStatusQueryVariables = Exact<{
|
|
1022
|
+
status?: InviteStatus | null | undefined;
|
|
1023
|
+
pagination?: PaginationInput | null | undefined;
|
|
1024
|
+
}>;
|
|
1025
|
+
export type GetWorkspaceInvitationsWithEmailStatusQuery = {
|
|
1026
|
+
workspaceInvitations: {
|
|
1027
|
+
total: number;
|
|
1028
|
+
hasMore: boolean;
|
|
1029
|
+
items: Array<{
|
|
1030
|
+
emailStatus: InvitationEmailStatus | null;
|
|
1031
|
+
emailErrorCode: string | null;
|
|
1032
|
+
emailLastAttemptAt: string | null;
|
|
1033
|
+
projectId: string | null;
|
|
1034
|
+
invitedUserId: string | null;
|
|
1035
|
+
updatedAt: string;
|
|
1036
|
+
deletedAt: string | null;
|
|
1037
|
+
id: string;
|
|
1038
|
+
email: string;
|
|
1039
|
+
status: InviteStatus;
|
|
1040
|
+
roleIds: Array<string>;
|
|
1041
|
+
workspaceId: string | null;
|
|
1042
|
+
invitedById: string | null;
|
|
1043
|
+
expiresAt: string | null;
|
|
1044
|
+
createdAt: string;
|
|
1045
|
+
context: {
|
|
1046
|
+
type: string | null;
|
|
1047
|
+
metadata: Record<string, unknown> | null;
|
|
1048
|
+
} | null;
|
|
1049
|
+
}>;
|
|
1050
|
+
};
|
|
1051
|
+
};
|
|
1052
|
+
export type GetWorkspaceActorRolesQueryVariables = Exact<{
|
|
1053
|
+
scopeId: string;
|
|
1054
|
+
pagination?: PaginationInput | null | undefined;
|
|
1055
|
+
}>;
|
|
1056
|
+
export type GetWorkspaceActorRolesQuery = {
|
|
1057
|
+
actorsPage: {
|
|
1058
|
+
items: Array<{
|
|
1059
|
+
actorId: string;
|
|
1060
|
+
actorType: ActorType;
|
|
1061
|
+
roleAssignments: Array<{
|
|
1062
|
+
id: string;
|
|
1063
|
+
isActive: boolean;
|
|
1064
|
+
roleId: string;
|
|
1065
|
+
role: {
|
|
1066
|
+
id: string;
|
|
1067
|
+
name: string;
|
|
1068
|
+
};
|
|
1069
|
+
}>;
|
|
1070
|
+
}>;
|
|
1071
|
+
pageInfo: {
|
|
1072
|
+
hasNextPage: boolean;
|
|
1073
|
+
totalCount: number;
|
|
1074
|
+
};
|
|
1075
|
+
};
|
|
1076
|
+
};
|
|
935
1077
|
export type ProjectCardFieldsFragment = {
|
|
936
1078
|
id: string;
|
|
937
1079
|
name: string;
|
|
@@ -1160,6 +1302,28 @@ export type GetProjectTagsQuery = {
|
|
|
1160
1302
|
} | null;
|
|
1161
1303
|
}>;
|
|
1162
1304
|
};
|
|
1305
|
+
export type GetMyProjectsWithDetailsQueryVariables = Exact<{
|
|
1306
|
+
pagination?: PaginationInput | null | undefined;
|
|
1307
|
+
}>;
|
|
1308
|
+
export type GetMyProjectsWithDetailsQuery = {
|
|
1309
|
+
myProjects: {
|
|
1310
|
+
total: number;
|
|
1311
|
+
hasMore: boolean;
|
|
1312
|
+
items: Array<{
|
|
1313
|
+
description: string | null;
|
|
1314
|
+
creatorId: string;
|
|
1315
|
+
id: string;
|
|
1316
|
+
name: string;
|
|
1317
|
+
key: string;
|
|
1318
|
+
workspaceId: string;
|
|
1319
|
+
status: ProjectStatus;
|
|
1320
|
+
tags: Record<string, unknown>;
|
|
1321
|
+
archived: boolean;
|
|
1322
|
+
createdAt: string;
|
|
1323
|
+
updatedAt: string;
|
|
1324
|
+
}>;
|
|
1325
|
+
};
|
|
1326
|
+
};
|
|
1163
1327
|
export type WorkspaceCardFieldsFragment = {
|
|
1164
1328
|
id: string;
|
|
1165
1329
|
name: string;
|
|
@@ -1440,16 +1604,21 @@ export declare const InitializeWorkspaceDocument: DocumentNode<InitializeWorkspa
|
|
|
1440
1604
|
export declare const TagWorkspaceDocument: DocumentNode<TagWorkspaceMutation, TagWorkspaceMutationVariables>;
|
|
1441
1605
|
export declare const UntagWorkspaceDocument: DocumentNode<UntagWorkspaceMutation, UntagWorkspaceMutationVariables>;
|
|
1442
1606
|
export declare const ReplaceWorkspaceTagsDocument: DocumentNode<ReplaceWorkspaceTagsMutation, ReplaceWorkspaceTagsMutationVariables>;
|
|
1607
|
+
export declare const GetWorkspaceActivityLogDocument: DocumentNode<GetWorkspaceActivityLogQuery, GetWorkspaceActivityLogQueryVariables>;
|
|
1443
1608
|
export declare const GetWorkspaceMembersDocument: DocumentNode<GetWorkspaceMembersQuery, GetWorkspaceMembersQueryVariables>;
|
|
1444
1609
|
export declare const GetWorkspaceMemberDocument: DocumentNode<GetWorkspaceMemberQuery, GetWorkspaceMemberQueryVariables>;
|
|
1445
1610
|
export declare const GetUserWorkspacesDocument: DocumentNode<GetUserWorkspacesQuery, GetUserWorkspacesQueryVariables>;
|
|
1446
1611
|
export declare const GetWorkspaceInvitationsDocument: DocumentNode<GetWorkspaceInvitationsQuery, GetWorkspaceInvitationsQueryVariables>;
|
|
1447
1612
|
export declare const GetInvitationDocument: DocumentNode<GetInvitationQuery, GetInvitationQueryVariables>;
|
|
1448
1613
|
export declare const GetMyPendingInvitationsDocument: DocumentNode<GetMyPendingInvitationsQuery, GetMyPendingInvitationsQueryVariables>;
|
|
1614
|
+
export declare const GetWorkspaceMembersWithStatusDocument: DocumentNode<GetWorkspaceMembersWithStatusQuery, GetWorkspaceMembersWithStatusQueryVariables>;
|
|
1615
|
+
export declare const GetWorkspaceInvitationsWithEmailStatusDocument: DocumentNode<GetWorkspaceInvitationsWithEmailStatusQuery, GetWorkspaceInvitationsWithEmailStatusQueryVariables>;
|
|
1616
|
+
export declare const GetWorkspaceActorRolesDocument: DocumentNode<GetWorkspaceActorRolesQuery, GetWorkspaceActorRolesQueryVariables>;
|
|
1449
1617
|
export declare const GetProjectsDocument: DocumentNode<GetProjectsQuery, GetProjectsQueryVariables>;
|
|
1450
1618
|
export declare const GetProjectDocument: DocumentNode<GetProjectQuery, GetProjectQueryVariables>;
|
|
1451
1619
|
export declare const GetMyProjectsDocument: DocumentNode<GetMyProjectsQuery, GetMyProjectsQueryVariables>;
|
|
1452
1620
|
export declare const GetProjectTagsDocument: DocumentNode<GetProjectTagsQuery, GetProjectTagsQueryVariables>;
|
|
1621
|
+
export declare const GetMyProjectsWithDetailsDocument: DocumentNode<GetMyProjectsWithDetailsQuery, GetMyProjectsWithDetailsQueryVariables>;
|
|
1453
1622
|
export declare const GetWorkspacesDocument: DocumentNode<GetWorkspacesQuery, GetWorkspacesQueryVariables>;
|
|
1454
1623
|
export declare const GetWorkspaceDocument: DocumentNode<GetWorkspaceQuery, GetWorkspaceQueryVariables>;
|
|
1455
1624
|
export declare const GetMyWorkspacesDocument: DocumentNode<GetMyWorkspacesQuery, GetMyWorkspacesQueryVariables>;
|