@burdenoff/microfe-workspaces 2026.520.1 → 2026.528.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/WorkspacesRoot.js +4 -1
- package/dist/WorkspacesRoot.js.map +1 -1
- package/dist/WorkspacesRoutes.js +4 -4
- package/dist/WorkspacesRoutes.js.map +1 -1
- package/dist/components/CreateProjectDialog.js +1 -1
- package/dist/components/CreateProjectDialog.js.map +1 -1
- package/dist/components/CreateWorkspaceDialog.js +2 -2
- package/dist/components/CreateWorkspaceDialog.js.map +1 -1
- package/dist/components/InviteMemberDialog.js +2 -2
- package/dist/components/InviteMemberDialog.js.map +1 -1
- package/dist/components/MemberListItem.js +71 -86
- package/dist/components/MemberListItem.js.map +1 -1
- package/dist/components/ProjectCard.js +12 -10
- package/dist/components/ProjectCard.js.map +1 -1
- package/dist/components/WorkspaceCard.js.map +1 -1
- package/dist/components/WorkspacesErrorBoundary.js +12 -4
- package/dist/components/WorkspacesErrorBoundary.js.map +1 -1
- package/dist/components/tags/ProjectTagsWidget.js +248 -0
- package/dist/components/tags/ProjectTagsWidget.js.map +1 -0
- package/dist/hooks/useOrgsWithPermission.js +1 -1
- package/dist/hooks/useOrgsWithPermission.js.map +1 -1
- package/dist/hooks/useWorkspacesEventEmitter.js.map +1 -1
- package/dist/hooks/useWorkspacesPageView.js +6 -4
- package/dist/hooks/useWorkspacesPageView.js.map +1 -1
- package/dist/pages/CreateWorkspacePage.js +239 -224
- package/dist/pages/CreateWorkspacePage.js.map +1 -1
- package/dist/pages/InviteAcceptancePage.js +28 -28
- package/dist/pages/InviteAcceptancePage.js.map +1 -1
- package/dist/pages/MembersListPage.js +380 -352
- package/dist/pages/MembersListPage.js.map +1 -1
- package/dist/pages/ProjectDetailPage.js +96 -97
- package/dist/pages/ProjectDetailPage.js.map +1 -1
- package/dist/pages/ProjectsListPage.js +307 -304
- package/dist/pages/ProjectsListPage.js.map +1 -1
- package/dist/pages/WorkspaceSettingsPage.js +94 -91
- package/dist/pages/WorkspaceSettingsPage.js.map +1 -1
- package/dist/pages/WorkspacesListPage.js +1 -1
- package/dist/pages/WorkspacesListPage.js.map +1 -1
- package/dist/pages/dashboard/DashboardCustomizer.js +68 -68
- package/dist/pages/dashboard/DashboardCustomizer.js.map +1 -1
- package/dist/pages/dashboard/DashboardGrid.js +52 -41
- package/dist/pages/dashboard/DashboardGrid.js.map +1 -1
- package/dist/pages/dashboard/DashboardPage.js +74 -65
- package/dist/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/pages/dashboard/WidgetWrapper.js +3 -3
- package/dist/pages/dashboard/WidgetWrapper.js.map +1 -1
- package/dist/pages/dashboard/config.js +126 -30
- package/dist/pages/dashboard/config.js.map +1 -1
- package/dist/pages/dashboard/hooks/useDashboardData.js +39 -2
- package/dist/pages/dashboard/hooks/useDashboardData.js.map +1 -1
- package/dist/pages/dashboard/widgets/AgentsWidget.js +109 -0
- package/dist/pages/dashboard/widgets/AgentsWidget.js.map +1 -0
- package/dist/pages/dashboard/widgets/GroupsWidget.js +6 -5
- package/dist/pages/dashboard/widgets/GroupsWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/MembersWidget.js +6 -6
- package/dist/pages/dashboard/widgets/MembersWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/ProjectsWidget.js +8 -7
- package/dist/pages/dashboard/widgets/ProjectsWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/QuickActionsWidget.js +72 -18
- package/dist/pages/dashboard/widgets/QuickActionsWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js +3 -3
- package/dist/pages/dashboard/widgets/RecentActivityWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/SessionsWidget.js +78 -0
- package/dist/pages/dashboard/widgets/SessionsWidget.js.map +1 -0
- package/dist/pages/dashboard/widgets/StorageWidget.js +35 -20
- package/dist/pages/dashboard/widgets/StorageWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/TagCloudWidget.js +2 -2
- package/dist/pages/dashboard/widgets/TagCloudWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/TipsWidget.js +81 -22
- package/dist/pages/dashboard/widgets/TipsWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js +6 -5
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/VibesWidget.js +64 -0
- package/dist/pages/dashboard/widgets/VibesWidget.js.map +1 -0
- package/dist/pages/dashboard/widgets/WelcomeWidget.js +5 -5
- package/dist/pages/dashboard/widgets/WelcomeWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js +3 -3
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.js.map +1 -1
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js +6 -5
- package/dist/pages/dashboard/widgets/WorkspacesWidget.js.map +1 -1
- package/dist/providers/WorkspacesProvider.js +1 -1
- package/dist/providers/WorkspacesProvider.js.map +1 -1
- package/dist/store/workspacesStore.js.map +1 -1
- package/dist/utils/formatters.js +21 -16
- package/dist/utils/formatters.js.map +1 -1
- package/dist/utils/telemetryError.js +1 -1
- package/dist/utils/telemetryError.js.map +1 -1
- package/package.json +7 -7
- package/dist/WorkspacesRoot.d.ts +0 -35
- package/dist/WorkspacesRoot.d.ts.map +0 -1
- package/dist/WorkspacesRoutes.d.ts +0 -10
- package/dist/WorkspacesRoutes.d.ts.map +0 -1
- package/dist/components/CreateProjectDialog.d.ts +0 -6
- package/dist/components/CreateProjectDialog.d.ts.map +0 -1
- package/dist/components/CreateWorkspaceDialog.d.ts +0 -2
- package/dist/components/CreateWorkspaceDialog.d.ts.map +0 -1
- package/dist/components/InviteMemberDialog.d.ts +0 -7
- package/dist/components/InviteMemberDialog.d.ts.map +0 -1
- package/dist/components/MemberListItem.d.ts +0 -11
- package/dist/components/MemberListItem.d.ts.map +0 -1
- package/dist/components/ProjectCard.d.ts +0 -13
- package/dist/components/ProjectCard.d.ts.map +0 -1
- package/dist/components/WorkspaceCard.d.ts +0 -8
- package/dist/components/WorkspaceCard.d.ts.map +0 -1
- package/dist/components/WorkspacesErrorBoundary.d.ts +0 -27
- package/dist/components/WorkspacesErrorBoundary.d.ts.map +0 -1
- package/dist/components/index.d.ts +0 -8
- package/dist/components/index.d.ts.map +0 -1
- package/dist/constants/permissions.d.ts +0 -33
- package/dist/constants/permissions.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts +0 -319
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts +0 -23527
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts +0 -2300
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts +0 -57851
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/hooks/index.d.ts +0 -8
- package/dist/hooks/index.d.ts.map +0 -1
- package/dist/hooks/useMemberMutations.d.ts +0 -61
- package/dist/hooks/useMemberMutations.d.ts.map +0 -1
- package/dist/hooks/useOrgsWithPermission.d.ts +0 -7
- package/dist/hooks/useOrgsWithPermission.d.ts.map +0 -1
- package/dist/hooks/useProjectMutations.d.ts +0 -26
- package/dist/hooks/useProjectMutations.d.ts.map +0 -1
- package/dist/hooks/useProjects.d.ts +0 -16
- package/dist/hooks/useProjects.d.ts.map +0 -1
- package/dist/hooks/useScopedNavigation.d.ts +0 -4
- package/dist/hooks/useScopedNavigation.d.ts.map +0 -1
- package/dist/hooks/useTenants.d.ts +0 -13
- package/dist/hooks/useTenants.d.ts.map +0 -1
- package/dist/hooks/useWorkspaceActivity.d.ts +0 -12
- package/dist/hooks/useWorkspaceActivity.d.ts.map +0 -1
- package/dist/hooks/useWorkspaceMembers.d.ts +0 -24
- package/dist/hooks/useWorkspaceMembers.d.ts.map +0 -1
- package/dist/hooks/useWorkspaceMutations.d.ts +0 -36
- package/dist/hooks/useWorkspaceMutations.d.ts.map +0 -1
- package/dist/hooks/useWorkspacePermissions.d.ts +0 -29
- package/dist/hooks/useWorkspacePermissions.d.ts.map +0 -1
- package/dist/hooks/useWorkspaceRoles.d.ts +0 -8
- package/dist/hooks/useWorkspaceRoles.d.ts.map +0 -1
- package/dist/hooks/useWorkspaces.d.ts +0 -21
- package/dist/hooks/useWorkspaces.d.ts.map +0 -1
- package/dist/hooks/useWorkspacesEventEmitter.d.ts +0 -18
- package/dist/hooks/useWorkspacesEventEmitter.d.ts.map +0 -1
- package/dist/hooks/useWorkspacesPageView.d.ts +0 -27
- package/dist/hooks/useWorkspacesPageView.d.ts.map +0 -1
- package/dist/index.d.ts +0 -33
- package/dist/index.d.ts.map +0 -1
- package/dist/pages/ActivityListPage.d.ts +0 -2
- package/dist/pages/ActivityListPage.d.ts.map +0 -1
- package/dist/pages/CreateWorkspacePage.d.ts +0 -2
- package/dist/pages/CreateWorkspacePage.d.ts.map +0 -1
- package/dist/pages/InviteAcceptancePage.d.ts +0 -6
- package/dist/pages/InviteAcceptancePage.d.ts.map +0 -1
- package/dist/pages/MembersListPage.d.ts +0 -2
- package/dist/pages/MembersListPage.d.ts.map +0 -1
- package/dist/pages/ProjectDetailPage.d.ts +0 -2
- package/dist/pages/ProjectDetailPage.d.ts.map +0 -1
- package/dist/pages/ProjectsListPage.d.ts +0 -2
- package/dist/pages/ProjectsListPage.d.ts.map +0 -1
- package/dist/pages/WorkspaceDetailPage.d.ts +0 -2
- package/dist/pages/WorkspaceDetailPage.d.ts.map +0 -1
- package/dist/pages/WorkspaceSettingsPage.d.ts +0 -2
- package/dist/pages/WorkspaceSettingsPage.d.ts.map +0 -1
- package/dist/pages/WorkspacesListPage.d.ts +0 -2
- package/dist/pages/WorkspacesListPage.d.ts.map +0 -1
- package/dist/pages/dashboard/DashboardCustomizer.d.ts +0 -12
- package/dist/pages/dashboard/DashboardCustomizer.d.ts.map +0 -1
- package/dist/pages/dashboard/DashboardGrid.d.ts +0 -8
- package/dist/pages/dashboard/DashboardGrid.d.ts.map +0 -1
- package/dist/pages/dashboard/DashboardPage.d.ts +0 -14
- package/dist/pages/dashboard/DashboardPage.d.ts.map +0 -1
- package/dist/pages/dashboard/WidgetWrapper.d.ts +0 -17
- package/dist/pages/dashboard/WidgetWrapper.d.ts.map +0 -1
- package/dist/pages/dashboard/config.d.ts +0 -9
- package/dist/pages/dashboard/config.d.ts.map +0 -1
- package/dist/pages/dashboard/hooks/useDashboardData.d.ts +0 -9
- package/dist/pages/dashboard/hooks/useDashboardData.d.ts.map +0 -1
- package/dist/pages/dashboard/hooks/useDashboardPreferences.d.ts +0 -4
- package/dist/pages/dashboard/hooks/useDashboardPreferences.d.ts.map +0 -1
- package/dist/pages/dashboard/types.d.ts +0 -145
- package/dist/pages/dashboard/types.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/GroupsWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/GroupsWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/MembersWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/MembersWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/ProjectsWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/ProjectsWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/QuickActionsWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/QuickActionsWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/RecentActivityWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/RecentActivityWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/StorageWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/StorageWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/SystemHealthWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/SystemHealthWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/SystemHealthWidget.js +0 -59
- package/dist/pages/dashboard/widgets/SystemHealthWidget.js.map +0 -1
- package/dist/pages/dashboard/widgets/TagCloudWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/TagCloudWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/TipsWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/TipsWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/UpcomingEventsWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/WelcomeWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/WelcomeWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/WorkflowStatsWidget.d.ts.map +0 -1
- package/dist/pages/dashboard/widgets/WorkspacesWidget.d.ts +0 -4
- package/dist/pages/dashboard/widgets/WorkspacesWidget.d.ts.map +0 -1
- package/dist/providers/WorkspacesProvider.d.ts +0 -13
- package/dist/providers/WorkspacesProvider.d.ts.map +0 -1
- package/dist/store/workspacesStore.d.ts +0 -82
- package/dist/store/workspacesStore.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -280
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/formatters.d.ts +0 -60
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/i18n.d.ts +0 -13
- package/dist/utils/i18n.d.ts.map +0 -1
- package/dist/utils/index.d.ts +0 -3
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -3
- package/dist/utils/nativeBridge.d.ts.map +0 -1
- package/dist/utils/projectTags.d.ts +0 -6
- package/dist/utils/projectTags.d.ts.map +0 -1
- package/dist/utils/slug.d.ts +0 -13
- package/dist/utils/slug.d.ts.map +0 -1
- package/dist/utils/telemetryError.d.ts +0 -2
- package/dist/utils/telemetryError.d.ts.map +0 -1
- package/dist/utils/tokenHelpers.d.ts +0 -114
- package/dist/utils/tokenHelpers.d.ts.map +0 -1
package/dist/types/index.d.ts
DELETED
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import { MicrofrontendRootProps } from '@burdenoff/fe-libs/shared/types';
|
|
2
|
-
|
|
3
|
-
export interface NavItem {
|
|
4
|
-
id: string;
|
|
5
|
-
label: string;
|
|
6
|
-
path: string;
|
|
7
|
-
icon?: React.ReactNode;
|
|
8
|
-
badge?: number | string;
|
|
9
|
-
order?: number;
|
|
10
|
-
group?: string;
|
|
11
|
-
children?: NavItem[];
|
|
12
|
-
}
|
|
13
|
-
export interface FooterItem {
|
|
14
|
-
id: string;
|
|
15
|
-
label: string;
|
|
16
|
-
type?: 'status' | 'action' | 'info';
|
|
17
|
-
order?: number;
|
|
18
|
-
section?: 'left' | 'center' | 'right';
|
|
19
|
-
onClick?: () => void;
|
|
20
|
-
}
|
|
21
|
-
export interface WorkspacesRootProps extends MicrofrontendRootProps {
|
|
22
|
-
/** Organization ID for workspace creation context */
|
|
23
|
-
organizationId?: string;
|
|
24
|
-
registerNavItems?: (items: NavItem | NavItem[]) => () => void;
|
|
25
|
-
registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
|
|
26
|
-
onWorkspaceCreate?: (workspace: Workspace) => void;
|
|
27
|
-
onProjectCreate?: (project: Project) => void;
|
|
28
|
-
}
|
|
29
|
-
export type WorkspaceType = 'workspace' | 'user';
|
|
30
|
-
export type WorkspaceStatus = 'ACTIVE' | 'SUSPENDED' | 'ARCHIVED' | 'DELETED';
|
|
31
|
-
export type ProjectStatus = 'ACTIVE' | 'INACTIVE' | 'ARCHIVED';
|
|
32
|
-
export interface ProjectTag {
|
|
33
|
-
id: string;
|
|
34
|
-
tagId: string;
|
|
35
|
-
key: string;
|
|
36
|
-
label: string;
|
|
37
|
-
value?: string | null;
|
|
38
|
-
vocabularyId?: string | null;
|
|
39
|
-
vocabularyKey?: string | null;
|
|
40
|
-
parentTagId?: string | null;
|
|
41
|
-
hierarchyPath?: string | null;
|
|
42
|
-
color?: string | null;
|
|
43
|
-
icon?: string | null;
|
|
44
|
-
description?: string | null;
|
|
45
|
-
metadata?: Record<string, unknown> | null;
|
|
46
|
-
}
|
|
47
|
-
export interface Workspace {
|
|
48
|
-
id: string;
|
|
49
|
-
name: string;
|
|
50
|
-
type: WorkspaceType;
|
|
51
|
-
status: WorkspaceStatus;
|
|
52
|
-
memberCount?: number;
|
|
53
|
-
projectCount?: number;
|
|
54
|
-
domain?: string;
|
|
55
|
-
contactEmail?: string;
|
|
56
|
-
website?: string;
|
|
57
|
-
address?: string;
|
|
58
|
-
tenantId: string;
|
|
59
|
-
orgId?: string;
|
|
60
|
-
createdBy?: string;
|
|
61
|
-
ownerId: string;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
updatedAt: string;
|
|
64
|
-
deletedAt?: string;
|
|
65
|
-
context?: {
|
|
66
|
-
type?: string;
|
|
67
|
-
metadata?: Record<string, unknown>;
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
export interface Project {
|
|
71
|
-
id: string;
|
|
72
|
-
name: string;
|
|
73
|
-
key: string;
|
|
74
|
-
workspaceId: string;
|
|
75
|
-
creatorId: string;
|
|
76
|
-
memberCount?: number;
|
|
77
|
-
status: ProjectStatus;
|
|
78
|
-
config?: Record<string, unknown>;
|
|
79
|
-
tags: ProjectTag[];
|
|
80
|
-
archived: boolean;
|
|
81
|
-
createdAt: string;
|
|
82
|
-
updatedAt: string;
|
|
83
|
-
deletedAt?: string;
|
|
84
|
-
}
|
|
85
|
-
export interface WorkspaceMember {
|
|
86
|
-
id: string;
|
|
87
|
-
workspaceId: string;
|
|
88
|
-
userId: string;
|
|
89
|
-
createdAt: string;
|
|
90
|
-
updatedAt: string;
|
|
91
|
-
deletedAt?: string;
|
|
92
|
-
context?: {
|
|
93
|
-
type?: string;
|
|
94
|
-
metadata?: Record<string, unknown>;
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
export interface WorkspaceInvitation {
|
|
98
|
-
id: string;
|
|
99
|
-
workspaceId?: string;
|
|
100
|
-
projectId?: string;
|
|
101
|
-
email: string;
|
|
102
|
-
status: InvitationStatus;
|
|
103
|
-
roleIds: string[];
|
|
104
|
-
expiresAt?: string;
|
|
105
|
-
invitedById: string;
|
|
106
|
-
invitedUserId?: string;
|
|
107
|
-
createdAt: string;
|
|
108
|
-
updatedAt: string;
|
|
109
|
-
deletedAt?: string;
|
|
110
|
-
context?: {
|
|
111
|
-
type?: string;
|
|
112
|
-
metadata?: Record<string, unknown>;
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
export type InvitationStatus = 'PENDING' | 'ACCEPTED' | 'REJECTED' | 'EXPIRED' | 'CANCELLED';
|
|
116
|
-
export type ViewMode = 'grid' | 'list';
|
|
117
|
-
export type SortBy = 'name' | 'createdAt' | 'updatedAt';
|
|
118
|
-
export type SortDirection = 'asc' | 'desc';
|
|
119
|
-
export interface WorkspaceFilters {
|
|
120
|
-
type?: WorkspaceType;
|
|
121
|
-
status?: WorkspaceStatus;
|
|
122
|
-
search?: string;
|
|
123
|
-
tenantId?: string;
|
|
124
|
-
ownerId?: string;
|
|
125
|
-
}
|
|
126
|
-
export interface ProjectFilters {
|
|
127
|
-
status?: ProjectStatus;
|
|
128
|
-
archived?: boolean;
|
|
129
|
-
search?: string;
|
|
130
|
-
workspaceId?: string;
|
|
131
|
-
tagIds?: string[];
|
|
132
|
-
tagKeys?: string[];
|
|
133
|
-
tagHierarchyPaths?: string[];
|
|
134
|
-
matchAllTags?: boolean;
|
|
135
|
-
includeDescendants?: boolean;
|
|
136
|
-
}
|
|
137
|
-
export interface MemberFilters {
|
|
138
|
-
workspaceId?: string;
|
|
139
|
-
search?: string;
|
|
140
|
-
}
|
|
141
|
-
export interface ContextInput {
|
|
142
|
-
type?: string;
|
|
143
|
-
metadata?: Record<string, unknown>;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Input for creating a workspace via global-tenant-svc
|
|
147
|
-
* This creates the workspace in the global layer, which then syncs to wspace layer
|
|
148
|
-
*/
|
|
149
|
-
export interface CreateWorkspaceInput {
|
|
150
|
-
/** Tenant ID where the workspace will be created (required) */
|
|
151
|
-
tenantId: string;
|
|
152
|
-
/** Organization ID within the tenant (required) */
|
|
153
|
-
organizationId: string;
|
|
154
|
-
/** Display name of the workspace */
|
|
155
|
-
name: string;
|
|
156
|
-
/** URL-friendly slug (unique within tenant) */
|
|
157
|
-
slug: string;
|
|
158
|
-
/** Workspace type: TEAM or PERSONAL */
|
|
159
|
-
type?: 'TEAM' | 'PERSONAL';
|
|
160
|
-
/** Optional metadata */
|
|
161
|
-
metadata?: Record<string, unknown>;
|
|
162
|
-
}
|
|
163
|
-
/** Tenant entity from global-tenant-svc */
|
|
164
|
-
export interface Tenant {
|
|
165
|
-
id: string;
|
|
166
|
-
name: string;
|
|
167
|
-
slug: string;
|
|
168
|
-
status: string;
|
|
169
|
-
type?: string;
|
|
170
|
-
}
|
|
171
|
-
/** List of tenants response */
|
|
172
|
-
export interface TenantList {
|
|
173
|
-
items: Tenant[];
|
|
174
|
-
total: number;
|
|
175
|
-
hasMore: boolean;
|
|
176
|
-
}
|
|
177
|
-
/** Organization entity from global-tenant-svc */
|
|
178
|
-
export interface Organization {
|
|
179
|
-
id: string;
|
|
180
|
-
name: string;
|
|
181
|
-
slug: string;
|
|
182
|
-
tenantId: string;
|
|
183
|
-
}
|
|
184
|
-
/** List of organizations response */
|
|
185
|
-
export interface OrganizationList {
|
|
186
|
-
items: Organization[];
|
|
187
|
-
total: number;
|
|
188
|
-
hasMore: boolean;
|
|
189
|
-
}
|
|
190
|
-
export interface UpdateWorkspaceInput {
|
|
191
|
-
name?: string;
|
|
192
|
-
status?: WorkspaceStatus;
|
|
193
|
-
domain?: string;
|
|
194
|
-
contactEmail?: string;
|
|
195
|
-
website?: string;
|
|
196
|
-
address?: string;
|
|
197
|
-
ownerId?: string;
|
|
198
|
-
context?: ContextInput;
|
|
199
|
-
}
|
|
200
|
-
export interface CreateProjectInput {
|
|
201
|
-
name: string;
|
|
202
|
-
key?: string;
|
|
203
|
-
config?: Record<string, unknown>;
|
|
204
|
-
tags?: ProjectTag[];
|
|
205
|
-
}
|
|
206
|
-
export interface UpdateProjectInput {
|
|
207
|
-
name?: string;
|
|
208
|
-
key?: string;
|
|
209
|
-
status?: ProjectStatus;
|
|
210
|
-
config?: Record<string, unknown>;
|
|
211
|
-
archived?: boolean;
|
|
212
|
-
tags?: ProjectTag[];
|
|
213
|
-
}
|
|
214
|
-
export interface AddWorkspaceMemberInput {
|
|
215
|
-
userId: string;
|
|
216
|
-
context?: ContextInput;
|
|
217
|
-
}
|
|
218
|
-
export interface CreateInvitationInput {
|
|
219
|
-
email: string;
|
|
220
|
-
roleIds?: string[];
|
|
221
|
-
workspaceId?: string;
|
|
222
|
-
projectId?: string;
|
|
223
|
-
invitedUserId?: string;
|
|
224
|
-
expiresAt?: string;
|
|
225
|
-
context?: ContextInput;
|
|
226
|
-
}
|
|
227
|
-
export interface UpdateInvitationInput {
|
|
228
|
-
status?: InvitationStatus;
|
|
229
|
-
roleIds?: string[];
|
|
230
|
-
expiresAt?: string;
|
|
231
|
-
context?: ContextInput;
|
|
232
|
-
}
|
|
233
|
-
export interface PaginationInput {
|
|
234
|
-
limit?: number;
|
|
235
|
-
offset?: number;
|
|
236
|
-
cursor?: string;
|
|
237
|
-
}
|
|
238
|
-
export interface WorkspaceList {
|
|
239
|
-
items: Workspace[];
|
|
240
|
-
total: number;
|
|
241
|
-
hasMore: boolean;
|
|
242
|
-
}
|
|
243
|
-
export interface ProjectList {
|
|
244
|
-
items: Project[];
|
|
245
|
-
total: number;
|
|
246
|
-
hasMore: boolean;
|
|
247
|
-
}
|
|
248
|
-
export interface MemberList {
|
|
249
|
-
items: WorkspaceMember[];
|
|
250
|
-
total: number;
|
|
251
|
-
hasMore: boolean;
|
|
252
|
-
}
|
|
253
|
-
export interface InvitationList {
|
|
254
|
-
items: WorkspaceInvitation[];
|
|
255
|
-
total: number;
|
|
256
|
-
hasMore: boolean;
|
|
257
|
-
}
|
|
258
|
-
export type WorkspaceRole = 'owner' | 'admin' | 'member' | 'guest';
|
|
259
|
-
export interface WorkspaceSettings {
|
|
260
|
-
visibility: 'private' | 'public' | 'unlisted';
|
|
261
|
-
features: WorkspaceFeature[];
|
|
262
|
-
integrations: WorkspaceIntegration[];
|
|
263
|
-
}
|
|
264
|
-
export type WorkspaceFeature = 'projects' | 'files' | 'calendar' | 'tags' | 'conversations' | 'workflow';
|
|
265
|
-
export interface WorkspaceIntegration {
|
|
266
|
-
id: string;
|
|
267
|
-
type: string;
|
|
268
|
-
enabled: boolean;
|
|
269
|
-
config: Record<string, unknown>;
|
|
270
|
-
}
|
|
271
|
-
export interface Activity {
|
|
272
|
-
id: string;
|
|
273
|
-
workspaceId: string;
|
|
274
|
-
userId: string;
|
|
275
|
-
type: ActivityType;
|
|
276
|
-
metadata: Record<string, unknown>;
|
|
277
|
-
createdAt: string;
|
|
278
|
-
}
|
|
279
|
-
export type ActivityType = 'workspace.created' | 'workspace.updated' | 'member.added' | 'member.removed' | 'project.created' | 'file.uploaded';
|
|
280
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAM9E,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;I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
|
-
/**
|
|
2
|
-
* Utility functions for formatting dates and strings in the workspace module
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Format a date string or Date object to a human-readable format
|
|
6
|
-
* @param date - Date string or Date object
|
|
7
|
-
* @param options - Intl.DateTimeFormatOptions
|
|
8
|
-
* @returns Formatted date string
|
|
9
|
-
*/
|
|
10
|
-
export declare function formatDate(date: string | Date, options?: Intl.DateTimeFormatOptions): string;
|
|
11
|
-
/**
|
|
12
|
-
* Format a date to a relative time string (e.g., "2 days ago")
|
|
13
|
-
* @param date - Date string or Date object
|
|
14
|
-
* @returns Relative time string
|
|
15
|
-
*/
|
|
16
|
-
export declare function formatRelativeTime(date: string | Date): string;
|
|
17
|
-
/**
|
|
18
|
-
* Format a date and time to a readable string
|
|
19
|
-
* @param date - Date string or Date object
|
|
20
|
-
* @returns Formatted date and time string
|
|
21
|
-
*/
|
|
22
|
-
export declare function formatDateTime(date: string | Date): string;
|
|
23
|
-
/**
|
|
24
|
-
* Truncate a string to a maximum length and add ellipsis
|
|
25
|
-
* @param str - String to truncate
|
|
26
|
-
* @param maxLength - Maximum length before truncation
|
|
27
|
-
* @returns Truncated string
|
|
28
|
-
*/
|
|
29
|
-
export declare function truncate(str: string, maxLength: number): string;
|
|
30
|
-
/**
|
|
31
|
-
* Convert a string to title case
|
|
32
|
-
* @param str - String to convert
|
|
33
|
-
* @returns Title cased string
|
|
34
|
-
*/
|
|
35
|
-
export declare function toTitleCase(str: string): string;
|
|
36
|
-
/**
|
|
37
|
-
* Format a workspace status to a human-readable string
|
|
38
|
-
* @param status - Workspace status
|
|
39
|
-
* @returns Formatted status string
|
|
40
|
-
*/
|
|
41
|
-
export declare function formatWorkspaceStatus(status: string): string;
|
|
42
|
-
/**
|
|
43
|
-
* Format a project status to a human-readable string
|
|
44
|
-
* @param status - Project status
|
|
45
|
-
* @returns Formatted status string
|
|
46
|
-
*/
|
|
47
|
-
export declare function formatProjectStatus(status: string): string;
|
|
48
|
-
/**
|
|
49
|
-
* Generate initials from a name
|
|
50
|
-
* @param name - Full name
|
|
51
|
-
* @returns Initials (up to 2 characters)
|
|
52
|
-
*/
|
|
53
|
-
export declare function getInitials(name: string): string;
|
|
54
|
-
/**
|
|
55
|
-
* Format a file size in bytes to a human-readable string
|
|
56
|
-
* @param bytes - Size in bytes
|
|
57
|
-
* @returns Formatted size string (e.g., "1.5 MB")
|
|
58
|
-
*/
|
|
59
|
-
export declare function formatFileSize(bytes: number): string;
|
|
60
|
-
//# sourceMappingURL=formatters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"formatters.d.ts","sourceRoot":"","sources":["../../src/utils/formatters.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,IAAI,EAAE,MAAM,GAAG,IAAI,EACnB,OAAO,GAAE,IAAI,CAAC,qBAIb,GACA,MAAM,CAOR;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CA+B9D;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAQ1D;AAED;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAG/D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAM/C;AAED;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAE1D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMhD;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQpD"}
|
package/dist/utils/i18n.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { I18nContextValue } from '@burdenoff/fe-libs/shared/providers/shell';
|
|
2
|
-
|
|
3
|
-
type TranslationParams = Record<string, string | number>;
|
|
4
|
-
/**
|
|
5
|
-
* Translate `key` and fall back to `fallback` when the i18n provider
|
|
6
|
-
* returns the key itself (the convention shell's `useI18n().t(...)` uses
|
|
7
|
-
* to indicate a missing translation). Optional `params` are forwarded to
|
|
8
|
-
* the translator and also used for `{name}` style interpolation in the
|
|
9
|
-
* fallback string.
|
|
10
|
-
*/
|
|
11
|
-
export declare function tWithFallback(t: I18nContextValue['t'], key: string, fallback: string, params?: TranslationParams): string;
|
|
12
|
-
export {};
|
|
13
|
-
//# sourceMappingURL=i18n.d.ts.map
|
package/dist/utils/i18n.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../../src/utils/i18n.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,2CAA2C,CAAC;AAElF,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAEzD;;;;;;GAMG;AACH,wBAAgB,aAAa,CAC3B,CAAC,EAAE,gBAAgB,CAAC,GAAG,CAAC,EACxB,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,GACzB,MAAM,CAUR"}
|
package/dist/utils/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC"}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
export { getPlatform, isNative, isIOS, isAndroid, isWeb, nativeImpact, nativeNotify, nativeToast, nativeConfirm, nativeCopyText, nativeShare, nativeOpenUrl, useNativePlatform, useSafeArea, useNativeKeyboard, useAppState, useDeviceInfo, useHaptics, useStatusBar, } from '@burdenoff/fe-libs/shared/native';
|
|
2
|
-
export type { BurdenoffNativePlatform, BurdenoffNativeBridge, SafeAreaInsets, DeviceInfo, HapticImpactStyle, HapticNotificationType, ToastDuration, ConfirmOptions, ShareOptions, AppState, StatusBarTheme, } from '@burdenoff/fe-libs/shared/native';
|
|
3
|
-
//# sourceMappingURL=nativeBridge.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"nativeBridge.d.ts","sourceRoot":"","sources":["../../src/utils/nativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,cAAc,GACf,MAAM,kCAAkC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { TagItem } from '../../../../fe-libs/src/tag/index.ts';
|
|
2
|
-
import { ProjectTag } from '../types';
|
|
3
|
-
|
|
4
|
-
export declare function normalizeProjectTags(value: unknown): ProjectTag[];
|
|
5
|
-
export declare function toProjectTag(tag: TagItem): ProjectTag;
|
|
6
|
-
//# sourceMappingURL=projectTags.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"projectTags.d.ts","sourceRoot":"","sources":["../../src/utils/projectTags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAC;AAEtD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAU3C,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,EAAE,CAoCjE;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,OAAO,GAAG,UAAU,CAgBrD"}
|
package/dist/utils/slug.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Slug utility functions
|
|
3
|
-
*
|
|
4
|
-
* Shared utilities for generating URL-friendly slugs
|
|
5
|
-
*/
|
|
6
|
-
/**
|
|
7
|
-
* Generate a URL-friendly slug from a name
|
|
8
|
-
*
|
|
9
|
-
* @param name - The name to convert to a slug
|
|
10
|
-
* @returns A lowercase, hyphenated string suitable for URLs
|
|
11
|
-
*/
|
|
12
|
-
export declare function generateSlug(name: string): string;
|
|
13
|
-
//# sourceMappingURL=slug.d.ts.map
|
package/dist/utils/slug.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"slug.d.ts","sourceRoot":"","sources":["../../src/utils/slug.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAMjD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"telemetryError.d.ts","sourceRoot":"","sources":["../../src/utils/telemetryError.ts"],"names":[],"mappings":"AAwDA,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,OAAO,GAAG,MAAM,CAIvD"}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { WorkspaceStatus, ProjectStatus, WorkspaceRole } from '../types';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Get semantic token classes for workspace status badges
|
|
5
|
-
*
|
|
6
|
-
* Uses semantic tokens that automatically adapt to theme (light/dark)
|
|
7
|
-
* and brand (workspaces, fluidgrids, etc.)
|
|
8
|
-
*
|
|
9
|
-
* @param status - The workspace status
|
|
10
|
-
* @returns Tailwind class string with semantic token classes
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* ```tsx
|
|
14
|
-
* <Badge className={getWorkspaceStatusClasses('ACTIVE')}>
|
|
15
|
-
* ACTIVE
|
|
16
|
-
* </Badge>
|
|
17
|
-
* ```
|
|
18
|
-
*/
|
|
19
|
-
export declare function getWorkspaceStatusClasses(status: WorkspaceStatus): string;
|
|
20
|
-
/**
|
|
21
|
-
* Get semantic token classes for project status badges
|
|
22
|
-
*
|
|
23
|
-
* @param status - The project status
|
|
24
|
-
* @returns Tailwind class string with semantic token classes
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```tsx
|
|
28
|
-
* <Badge className={getProjectStatusClasses('ACTIVE')}>
|
|
29
|
-
* ACTIVE
|
|
30
|
-
* </Badge>
|
|
31
|
-
* ```
|
|
32
|
-
*/
|
|
33
|
-
export declare function getProjectStatusClasses(status: ProjectStatus): string;
|
|
34
|
-
/**
|
|
35
|
-
* Get semantic token classes for member role badges
|
|
36
|
-
*
|
|
37
|
-
* @param role - The workspace member role
|
|
38
|
-
* @returns Tailwind class string with semantic token classes
|
|
39
|
-
*
|
|
40
|
-
* @example
|
|
41
|
-
* ```tsx
|
|
42
|
-
* <Badge className={getMemberRoleClasses('owner')}>
|
|
43
|
-
* Owner
|
|
44
|
-
* </Badge>
|
|
45
|
-
* ```
|
|
46
|
-
*/
|
|
47
|
-
export declare function getMemberRoleClasses(role: WorkspaceRole): string;
|
|
48
|
-
/**
|
|
49
|
-
* Get semantic icon color class for workspace status
|
|
50
|
-
*
|
|
51
|
-
* Used for status indicator icons that need to match the status color
|
|
52
|
-
*
|
|
53
|
-
* @param status - The workspace status
|
|
54
|
-
* @returns Tailwind class string for text color
|
|
55
|
-
*
|
|
56
|
-
* @example
|
|
57
|
-
* ```tsx
|
|
58
|
-
* <CheckCircle className={getWorkspaceStatusIconClass('ACTIVE')} size={16} />
|
|
59
|
-
* ```
|
|
60
|
-
*/
|
|
61
|
-
export declare function getWorkspaceStatusIconClass(status: WorkspaceStatus): string;
|
|
62
|
-
/**
|
|
63
|
-
* Get semantic icon color class for project status
|
|
64
|
-
*
|
|
65
|
-
* @param status - The project status
|
|
66
|
-
* @returns Tailwind class string for text color
|
|
67
|
-
*
|
|
68
|
-
* @example
|
|
69
|
-
* ```tsx
|
|
70
|
-
* <Circle className={getProjectStatusIconClass(project.status)} size={12} />
|
|
71
|
-
* ```
|
|
72
|
-
*/
|
|
73
|
-
export declare function getProjectStatusIconClass(status: ProjectStatus): string;
|
|
74
|
-
/**
|
|
75
|
-
* Get semantic background class for workspace status (for larger areas)
|
|
76
|
-
*
|
|
77
|
-
* @param status - The workspace status
|
|
78
|
-
* @returns Tailwind class string for background color
|
|
79
|
-
*
|
|
80
|
-
* @example
|
|
81
|
-
* ```tsx
|
|
82
|
-
* <div className={getWorkspaceStatusBgClass('SUSPENDED')}>
|
|
83
|
-
* Workspace is suspended
|
|
84
|
-
* </div>
|
|
85
|
-
* ```
|
|
86
|
-
*/
|
|
87
|
-
export declare function getWorkspaceStatusBgClass(status: WorkspaceStatus): string;
|
|
88
|
-
/**
|
|
89
|
-
* Get human-readable label for workspace status
|
|
90
|
-
*
|
|
91
|
-
* @param status - The workspace status
|
|
92
|
-
* @returns Formatted status label
|
|
93
|
-
*
|
|
94
|
-
* @example
|
|
95
|
-
* ```tsx
|
|
96
|
-
* getWorkspaceStatusLabel('ACTIVE') // "Active"
|
|
97
|
-
* ```
|
|
98
|
-
*/
|
|
99
|
-
export declare function getWorkspaceStatusLabel(status: WorkspaceStatus): string;
|
|
100
|
-
/**
|
|
101
|
-
* Get human-readable label for project status
|
|
102
|
-
*
|
|
103
|
-
* @param status - The project status
|
|
104
|
-
* @returns Formatted status label
|
|
105
|
-
*/
|
|
106
|
-
export declare function getProjectStatusLabel(status: ProjectStatus): string;
|
|
107
|
-
/**
|
|
108
|
-
* Get human-readable label for member role
|
|
109
|
-
*
|
|
110
|
-
* @param role - The workspace member role
|
|
111
|
-
* @returns Formatted role label
|
|
112
|
-
*/
|
|
113
|
-
export declare function getMemberRoleLabel(role: WorkspaceRole): string;
|
|
114
|
-
//# sourceMappingURL=tokenHelpers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tokenHelpers.d.ts","sourceRoot":"","sources":["../../src/utils/tokenHelpers.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAE9E;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAazE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAUrE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAShE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CAS3E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAQvE;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CASzE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM,CASvE;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,aAAa,GAAG,MAAM,CAQnE;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,GAAG,MAAM,CAS9D"}
|