2022-04-12 10:50:01 +00:00
|
|
|
import { ApplicationPayload } from "@appsmith/constants/ReduxActionConstants";
|
2020-06-17 10:19:56 +00:00
|
|
|
|
2022-06-15 15:37:41 +00:00
|
|
|
export type WorkspaceRole = {
|
2019-12-23 12:16:33 +00:00
|
|
|
id: string;
|
|
|
|
|
name: string;
|
2020-01-14 09:47:45 +00:00
|
|
|
displayName?: string;
|
2020-01-06 09:07:30 +00:00
|
|
|
isDefault?: boolean;
|
2019-12-23 12:16:33 +00:00
|
|
|
};
|
|
|
|
|
|
2022-06-15 15:37:41 +00:00
|
|
|
export type Workspace = {
|
2019-12-23 12:16:33 +00:00
|
|
|
id: string;
|
|
|
|
|
name: string;
|
|
|
|
|
website?: string;
|
2020-08-28 18:51:16 +00:00
|
|
|
email?: string;
|
2020-12-01 22:01:27 +00:00
|
|
|
logoUrl?: string;
|
|
|
|
|
uploadProgress?: number;
|
2020-11-25 12:24:14 +00:00
|
|
|
userPermissions?: string[];
|
2019-12-23 12:16:33 +00:00
|
|
|
};
|
2020-06-17 10:19:56 +00:00
|
|
|
|
2022-06-15 15:37:41 +00:00
|
|
|
export type WorkspaceUser = {
|
2020-06-17 10:19:56 +00:00
|
|
|
name: string;
|
2022-08-22 17:57:07 +00:00
|
|
|
username: string;
|
|
|
|
|
userId: string;
|
|
|
|
|
permissionGroupId: string;
|
|
|
|
|
permissionGroupName: string;
|
2020-06-25 03:05:41 +00:00
|
|
|
isDeleting: boolean;
|
|
|
|
|
isChangingRole: boolean;
|
2020-06-17 10:19:56 +00:00
|
|
|
};
|
|
|
|
|
|
2022-06-15 15:37:41 +00:00
|
|
|
export type Workspaces = {
|
2020-06-17 10:19:56 +00:00
|
|
|
applications: ApplicationPayload[];
|
2022-06-15 15:37:41 +00:00
|
|
|
workspace: Workspace;
|
2022-08-22 17:57:07 +00:00
|
|
|
users: WorkspaceUser[];
|
2020-06-17 10:19:56 +00:00
|
|
|
};
|