@datalayer/core
Version:
[](https://datalayer.io)
27 lines (26 loc) • 1.33 kB
TypeScript
import { CreateLexicalRequest, CreateLexicalResponse, GetLexicalResponse, UpdateLexicalRequest, UpdateLexicalResponse } from '../../models/LexicalDTO';
/**
* Create a new lexical document.
* @param token - Authentication token
* @param data - Document creation configuration
* @param baseUrl - Base URL for the API (defaults to production)
* @returns Promise resolving to the created document response
*/
export declare const createLexical: (token: string, data: CreateLexicalRequest, baseUrl?: string) => Promise<CreateLexicalResponse>;
/**
* Get a lexical document by ID.
* @param token - Authentication token
* @param id - The document ID
* @param baseUrl - Base URL for the API (defaults to production)
* @returns Promise resolving to the document response
*/
export declare const getLexical: (token: string, id: string, baseUrl?: string) => Promise<GetLexicalResponse>;
/**
* Update a lexical document.
* @param token - Authentication token
* @param id - The document ID
* @param data - Update data containing name and/or description
* @param baseUrl - Base URL for the API (defaults to production)
* @returns Promise resolving to the updated document response
*/
export declare const updateLexical: (token: string, id: string, data: UpdateLexicalRequest, baseUrl?: string) => Promise<UpdateLexicalResponse>;