- MockWorkspace(overrides?): DeviceApi.Workspace
Parameters
Optional
overrides: {
canDelete?: boolean;
canEdit?: boolean;
canManageAccess?: boolean;
canShare?: boolean;
canView?: boolean;
created?: string;
createdBy?: string;
creatorId?: string;
editors?: (undefined | {
id?: string;
name?: string;
})[];
folderThemes?: {};
layout?: {
rows?: (undefined | {
metadata?: {
backgroundColor?: (...) | (...);
backgroundImageFileSlug?: (...) | (...);
backgroundImageSlug?: (...) | (...);
backgroundImageXPosition?: (...) | (...);
backgroundImageYPosition?: (...) | (...);
padding?: (...) | (...);
textColor?: (...) | (...);
};
sections?: (
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...))[];
})[];
};
metadata?: {
backgroundColor?: string;
backgroundImageFileSlug?: string;
backgroundImageSlug?: string;
backgroundImageXPosition?: XPosition;
backgroundImageYPosition?: YPosition;
backgroundVideoSlug?: string;
backgroundVideoXPosition?: XPosition;
backgroundVideoYPosition?: YPosition;
contentItemStyle?: {
contentItemDisplayType?: ContentItemDisplayType;
gridStyle?: {
corner?: "rounded" | "straight";
frameColor?: string;
hasFrame?: boolean;
hasShadow?: boolean;
hideFolderCount?: boolean;
thumbnailShape?: "square" | "imageRatio";
titleLength?: "oneLine" | "fullText" | "twoLines";
titleStyle?: "attached" | "detached" | "floating";
titleTextColor?: "light" | "dark";
};
};
dependencies?: (undefined | {
id?: string;
type?: string;
})[];
homePageSlug?: string;
initiallyHideMenus?: boolean;
isTemplate?: boolean;
navigationBackgroundColor?: string;
navigationTextColor?: TextColor;
templateSlug?: string;
textColor?: TextColor;
thumbnail?: {
slug?: string;
type?: ImageSourceType;
};
title?: string;
};
modified?: string;
pages?: (undefined | {
layout?: {
rows?: ((...) | (...))[];
};
metadata?: {
backgroundColor?: string;
backgroundImageFileSlug?: string;
backgroundImageSlug?: string;
backgroundImageXPosition?: XPosition;
backgroundImageYPosition?: YPosition;
backgroundVideoSlug?: string;
backgroundVideoXPosition?: XPosition;
backgroundVideoYPosition?: YPosition;
contentItemStyle?: {
contentItemDisplayType?: (...) | (...);
gridStyle?: (...) | (...);
};
textColor?: TextColor;
title?: string;
type?: WorkspacePageType;
};
slug?: string;
workspaceSlug?: string;
})[];
permissions?: (undefined | {
assigneeId?: string;
assigneeName?: string;
assigneeType?: string;
permission?: string;
})[];
shares?: [];
slug?: string;
thumbnailUrl?: string;
type?: "Workspace";
versionTags?: {};
workspaceVersion?: string;
}Optional
canDelete?: boolean
Optional
canEdit?: boolean
Optional
canManageAccess?: boolean
Optional
canShare?: boolean
Optional
canView?: boolean
Optional
created?: string
Optional
createdBy?: string
Optional
creatorId?: string
Optional
editors?: (undefined | {
id?: string;
name?: string;
})[]
Optional
folderThemes?: {}
Optional
layout?: {
rows?: (undefined | {
metadata?: {
backgroundColor?: (...) | (...);
backgroundImageFileSlug?: (...) | (...);
backgroundImageSlug?: (...) | (...);
backgroundImageXPosition?: (...) | (...);
backgroundImageYPosition?: (...) | (...);
padding?: (...) | (...);
textColor?: (...) | (...);
};
sections?: (
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...))[];
})[];
}
Optional
rows?: (undefined | {
metadata?: {
backgroundColor?: (...) | (...);
backgroundImageFileSlug?: (...) | (...);
backgroundImageSlug?: (...) | (...);
backgroundImageXPosition?: (...) | (...);
backgroundImageYPosition?: (...) | (...);
padding?: (...) | (...);
textColor?: (...) | (...);
};
sections?: (
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...)
| (...))[];
})[]
Optional
metadata?: {
backgroundColor?: string;
backgroundImageFileSlug?: string;
backgroundImageSlug?: string;
backgroundImageXPosition?: XPosition;
backgroundImageYPosition?: YPosition;
backgroundVideoSlug?: string;
backgroundVideoXPosition?: XPosition;
backgroundVideoYPosition?: YPosition;
contentItemStyle?: {
contentItemDisplayType?: ContentItemDisplayType;
gridStyle?: {
corner?: "rounded" | "straight";
frameColor?: string;
hasFrame?: boolean;
hasShadow?: boolean;
hideFolderCount?: boolean;
thumbnailShape?: "square" | "imageRatio";
titleLength?: "oneLine" | "fullText" | "twoLines";
titleStyle?: "attached" | "detached" | "floating";
titleTextColor?: "light" | "dark";
};
};
dependencies?: (undefined | {
id?: string;
type?: string;
})[];
homePageSlug?: string;
initiallyHideMenus?: boolean;
isTemplate?: boolean;
navigationBackgroundColor?: string;
navigationTextColor?: TextColor;
templateSlug?: string;
textColor?: TextColor;
thumbnail?: {
slug?: string;
type?: ImageSourceType;
};
title?: string;
}
Optional
backgroundColor?: string
Optional
backgroundImageFileSlug?: string
Optional
backgroundImageSlug?: string
Optional
backgroundImageXPosition?: XPosition
Optional
backgroundImageYPosition?: YPosition
Optional
backgroundVideoSlug?: string
Optional
backgroundVideoXPosition?: XPosition
Optional
backgroundVideoYPosition?: YPosition
Optional
contentItemStyle?: {
contentItemDisplayType?: ContentItemDisplayType;
gridStyle?: {
corner?: "rounded" | "straight";
frameColor?: string;
hasFrame?: boolean;
hasShadow?: boolean;
hideFolderCount?: boolean;
thumbnailShape?: "square" | "imageRatio";
titleLength?: "oneLine" | "fullText" | "twoLines";
titleStyle?: "attached" | "detached" | "floating";
titleTextColor?: "light" | "dark";
};
}
Optional
contentItemDisplayType?: ContentItemDisplayType
Optional
gridStyle?: {
corner?: "rounded" | "straight";
frameColor?: string;
hasFrame?: boolean;
hasShadow?: boolean;
hideFolderCount?: boolean;
thumbnailShape?: "square" | "imageRatio";
titleLength?: "oneLine" | "fullText" | "twoLines";
titleStyle?: "attached" | "detached" | "floating";
titleTextColor?: "light" | "dark";
}
Optional
corner?: "rounded" | "straight"
Optional
frameColor?: string
Optional
hasFrame?: boolean
Optional
hasShadow?: boolean
Optional
hideFolderCount?: boolean
Optional
thumbnailShape?: "square" | "imageRatio"
Optional
titleLength?: "oneLine" | "fullText" | "twoLines"
Optional
titleStyle?: "attached" | "detached" | "floating"
Optional
titleTextColor?: "light" | "dark"
Optional
dependencies?: (undefined | {
id?: string;
type?: string;
})[]
Optional
homePageSlug?: string
Optional
initiallyHideMenus?: boolean
Optional
isTemplate?: boolean
Optional
navigationBackgroundColor?: string
Optional
navigationTextColor?: TextColor
Optional
templateSlug?: string
Optional
textColor?: TextColor
Optional
thumbnail?: {
slug?: string;
type?: ImageSourceType;
}
Optional
slug?: string
Optional
type?: ImageSourceType
Optional
title?: string
Optional
modified?: string
Optional
pages?: (undefined | {
layout?: {
rows?: ((...) | (...))[];
};
metadata?: {
backgroundColor?: string;
backgroundImageFileSlug?: string;
backgroundImageSlug?: string;
backgroundImageXPosition?: XPosition;
backgroundImageYPosition?: YPosition;
backgroundVideoSlug?: string;
backgroundVideoXPosition?: XPosition;
backgroundVideoYPosition?: YPosition;
contentItemStyle?: {
contentItemDisplayType?: (...) | (...);
gridStyle?: (...) | (...);
};
textColor?: TextColor;
title?: string;
type?: WorkspacePageType;
};
slug?: string;
workspaceSlug?: string;
})[]
Optional
permissions?: (undefined | {
assigneeId?: string;
assigneeName?: string;
assigneeType?: string;
permission?: string;
})[]
Optional
shares?: []
Optional
slug?: string
Optional
thumbnailUrl?: string
Optional
type?: "Workspace"
Optional
versionTags?: {}
Optional
workspaceVersion?: string
Returns DeviceApi.Workspace