UNPKG

sb-mig

Version:

CLI to rule the world. (and handle stuff related to Storyblok CMS)

87 lines (86 loc) 5.04 kB
export declare const managementApi: { assets: { getAllAssets: import("./assets/assets.types.js").GetAllAssets; createAsset: import("./assets/assets.types.js").CreateAsset; migrateAsset: import("./assets/assets.types.js").MigrateAsset; getAsset: (assetName: string | undefined) => Promise<void>; getAssetById: import("./assets/assets.types.js").GetAssetById; getAssetByName: import("./assets/assets.types.js").GetAssetByName; updateAsset: import("./assets/assets.types.js").UpdateAsset; }; auth: { getCurrentUser: import("./auth/auth.types.js").GetCurrentUser; hasAccessToSpace: import("./auth/auth.types.js").HasAccessToSpace; }; components: { getAllComponents: import("./components/components.types.js").GetAllComponents; getComponent: import("./components/components.types.js").GetComponent; getAllComponentsGroups: import("./components/components.types.js").GetAllComponentsGroups; createComponentsGroup: import("./components/components.types.js").CreateComponentsGroup; getComponentsGroup: import("./components/components.types.js").GetComponentsGroup; removeComponentGroup: import("./components/components.types.js").RemoveComponentGroup; removeComponent: import("./components/components.types.js").RemoveComponent; updateComponent: import("./components/components.types.js").UpdateComponent; createComponent: import("./components/components.types.js").CreateComponent; }; datasources: { createDatasource: import("./datasources/datasources.types.js").CreateDatasource; getDatasource: import("./datasources/datasources.types.js").GetDatasource; getAllDatasources: import("./datasources/datasources.types.js").GetAllDatasources; updateDatasource: import("./datasources/datasources.types.js").UpdateDatasource; syncDatasources: import("./datasources/datasources.types.js").SyncDatasources; }; plugins: { getAllPlugins: import("./plugins/plugins.types.js").GetAllPlugins; getPlugin: import("./plugins/plugins.types.js").GetPlugin; updatePlugin: import("./plugins/plugins.types.js").UpdatePlugin; createPlugin: import("./plugins/plugins.types.js").CreatePlugin; getPluginDetails: import("./plugins/plugins.types.js").GetPluginDetails; syncProvidedPlugins: import("./plugins/plugins.types.js").SyncProvidedPlugins; }; presets: { getComponentPresets: (componentName: string | undefined, config: import("./utils/request.js").RequestBaseConfig) => Promise<false | any[]>; getPreset: import("./presets/presets.types.js").GetPresetById; createPreset: (p: any, config: import("./utils/request.js").RequestBaseConfig) => Promise<any>; getAllPresets: (config: import("./utils/request.js").RequestBaseConfig) => Promise<any[]>; updatePreset: import("./presets/presets.types.js").UpdatePreset; updatePresets: import("./presets/presets.types.js").UpdatePresets; }; roles: { createRole: import("./roles/roles.types.js").CreateRole; getRole: import("./roles/roles.types.js").GetRole; getAllRoles: import("./roles/roles.types.js").GetAllRoles; updateRole: import("./roles/roles.types.js").UpdateRole; syncRoles: import("./roles/roles.types.js").SyncRoles; }; stories: { createStory: import("./stories/stories.types.js").CreateStory; updateStory: import("./stories/stories.types.js").UpdateStory; getStoryById: import("./stories/stories.types.js").GetStoryById; removeStory: import("./stories/stories.types.js").RemoveStory; getStoryBySlug: import("./stories/stories.types.js").GetStoryBySlug; updateStories: import("./stories/stories.types.js").UpdateStories; publishStoryLanguages: ({ storyId, story, languages, }: { storyId: string | number; story?: Record<string, any>; languages: string[]; }, config: { spaceId: string; sbApi: any; }) => Promise<any>; parsePublishLanguagesOption: (publishLanguages?: string) => import("./stories/stories.types.js").PublishLanguagesOption; resolvePublishLanguageCodes: (publishLanguages: import("./stories/stories.types.js").PublishLanguagesOption | undefined, config: { spaceId: string; sbApi: any; }) => Promise<string[]>; getAllStories: import("./stories/stories.types.js").GetAllStories; removeAllStories: import("./stories/stories.types.js").RemoveAllStories; upsertStory: import("./stories/stories.types.js").UpsertStory; backupStories: import("./stories/stories.types.js").BackupStories; }; spaces: { getAllSpaces: import("./spaces/spaces.types.js").GetAllSpaces; getSpace: import("./spaces/spaces.types.js").GetSpace; updateSpace: import("./spaces/spaces.types.js").UpdateSpace; }; };