@mediafly/frontend-api - v20.4.1
    Preparing search index...

    Function MockWorkspace

    • Parameters

      • Optionaloverrides: {
            canDelete?: boolean;
            canEdit?: boolean;
            canManageAccess?: boolean;
            canShare?: boolean;
            canView?: boolean;
            created?: string;
            createdBy?: string;
            creatorId?: string;
            editors?: ({ id?: string; name?: string } | undefined)[];
            folderThemes?: {
                [key: string]:
                    | {
                        layout?: { rows?: ((...) | (...))[] };
                        metadata?: {
                            applyToChildFolders?: boolean;
                            backgroundColor?: string;
                            backgroundFileSlug?: string;
                            backgroundImageSlug?: string;
                            backgroundImageXPosition?: "center" | "left" | "right";
                            backgroundImageYPosition?: "center" | "top" | "bottom";
                            headerBackgroundColor?: string;
                            headerBackgroundFileSlug?: string;
                            headerBackgroundImageSlug?: string;
                            headerBackgroundPosition?: "center" | "left" | "right";
                            headerBackgroundWidth?: "grid" | "browser";
                            headerTitleAlignment?: "center" | "left";
                            headerTitleColor?: TextColor;
                            hideHeaderTitle?: boolean;
                            textColor?: TextColor;
                        };
                    }
                    | undefined;
            };
            isFavorite?: boolean;
            lastViewed?: string;
            layout?: {
                rows?: (
                    | {
                        metadata?: {
                            backgroundColor?: (...)
                            | (...);
                            backgroundImageFileSlug?: (...) | (...);
                            backgroundImageSlug?: (...) | (...);
                            backgroundImageXPosition?: (...) | (...);
                            backgroundImageYPosition?: (...) | (...);
                            padding?: (...) | (...);
                            textColor?: (...) | (...);
                        };
                        sections?: (
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                            | (...)
                        )[];
                    }
                    | undefined
                )[];
            };
            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?: "dark" | "light";
                    };
                };
                dependencies?: ({ id?: string; type?: string } | undefined)[];
                homePageSlug?: string;
                isTemplate?: boolean;
                navigationBackgroundColor?: string;
                navigationTextColor?: TextColor;
                templateSlug?: string;
                textColor?: TextColor;
                thumbnail?: { slug?: string; type?: ImageSourceType };
                title?: string;
            };
            modified?: string;
            pages?: (
                | {
                    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;
                }
                | undefined
            )[];
            permissions?: (
                | {
                    assigneeId?: string;
                    assigneeName?: string;
                    assigneeType?: string;
                    permission?: string;
                }
                | undefined
            )[];
            shares?: [];
            slug?: string;
            thumbnailUrl?: string;
            type?: "Workspace";
            versionTags?: {
                [key: string]:
                    | { timestamp?: string; workspaceVersion?: string }
                    | undefined;
            };
            workspaceVersion?: string;
        }

      Returns Workspace