UNPKG

@datalayer/core

Version:

[![Datalayer](https://assets.datalayer.tech/datalayer-25.svg)](https://datalayer.io)

26 lines (25 loc) 1.16 kB
import { DeleteSpaceItemResponse, GetSpaceItemResponse, GetSpaceItemsResponse } from '../../models/SpaceDTO'; /** * Get the items of a space. * @param token - Authentication token * @param spaceId - The space ID * @param baseUrl - Base URL for the API (defaults to production) * @returns Promise resolving to the items response */ export declare const getSpaceItems: (token: string, spaceId: string, baseUrl?: string) => Promise<GetSpaceItemsResponse>; /** * Get a single item from a space. * @param token - Authentication token * @param id - The item ID to retrieve * @param baseUrl - Base URL for the API (defaults to production) * @returns Promise resolving to the item response */ export declare const getItem: (token: string, id: string, baseUrl?: string) => Promise<GetSpaceItemResponse>; /** * Delete an item from a space. * @param token - Authentication token * @param id - The item ID to delete * @param baseUrl - Base URL for the API (defaults to production) * @returns Promise resolving when deletion is complete */ export declare const deleteItem: (token: string, id: string, baseUrl?: string) => Promise<DeleteSpaceItemResponse>;