UNPKG

sb-mig

Version:

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

12 lines (11 loc) 532 B
import { getAllSpaces as apiGetAllSpaces, getSpace as apiGetSpace, updateSpace as apiUpdateSpace, } from "../../api/spaces/spaces.js"; import { toRequestConfig } from "../requestConfig.js"; export async function getAllSpaces(client) { return await apiGetAllSpaces(toRequestConfig(client)); } export async function getSpace(client, spaceId) { return await apiGetSpace({ spaceId }, toRequestConfig(client)); } export async function updateSpace(client, args) { return await apiUpdateSpace(args, toRequestConfig(client)); }