UNPKG

@kworq/storyblok-space-cloner

Version:

Tools to efficiently copy components, stories, and assets from one Storyblok space to another. Simplifies cloning for development, testing, or migration purposes, ensuring seamless transfer of content and structure.

29 lines (28 loc) 965 B
import type StoryblokClient from "storyblok-js-client"; export declare function copyAssets(clients: { source: { client: StoryblokClient; spaceId: string; }; target: { client: StoryblokClient; spaceId: string; }; }, created_count?: number, skipped_count?: number, page?: number, unique_assets?: Map<any, any>): Promise<{ clone_type: string; created_count: number; skipped_count: number; from_total: any; }>; export declare function uploadFile(targetClient: StoryblokClient, targetSpaceId: string, sourceFilename: string, fileOptions: Record<string, any>): Promise<[string, any]>; export declare function fetchAssetBuffer(url: string): Promise<Buffer | undefined>; export declare function copyAssetFolders(clients: { source: { client: StoryblokClient; spaceId: string; }; target: { client: StoryblokClient; spaceId: string; }; }): Promise<Map<any, any>>;