UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

80 lines 2.18 kB
import type { products } from '../models/products.js'; import type { products_create } from '../models/products_create.js'; import type { products_update } from '../models/products_update.js'; import type { CancelablePromise } from '../core/CancelablePromise.js'; export declare class ProductService { /** * List products * Retrieve a paginated list of products * @returns any Successful response * @throws ApiError */ static getProducts({ limit, offset, sort, }: { /** * Maximum number of items to return */ limit?: number; /** * Number of items to skip */ offset?: number; /** * Sort order (e.g., created_at:desc) */ sort?: string; }): CancelablePromise<{ data?: Array<products>; pagination?: { limit?: number; offset?: number; total?: number; }; }>; /** * Create product * Create a new product * @returns products Successfully created * @throws ApiError */ static postProducts({ requestBody, }: { requestBody: products_create; }): CancelablePromise<products>; /** * Get product * Retrieve a specific product by ID * @returns products Successful response * @throws ApiError */ static getProducts1({ productId, }: { /** * The product ID */ productId: string; }): CancelablePromise<products>; /** * Update product * Update a specific product * @returns products Successfully updated * @throws ApiError */ static patchProducts({ productId, requestBody, }: { /** * The product ID */ productId: string; requestBody: products_update; }): CancelablePromise<products>; /** * Delete product * Delete a specific product * @returns void * @throws ApiError */ static deleteProducts({ productId, }: { /** * The product ID */ productId: string; }): CancelablePromise<void>; } //# sourceMappingURL=ProductService.d.ts.map