UNPKG

@lomi./sdk

Version:

Official TypeScript SDK for the lomi. API

62 lines 1.41 kB
/** * CustomersService * AUTO-GENERATED - Do not edit manually * * Customer management - create and manage customer profiles */ import { request } from '../core/request.js'; export class CustomersService { /** * List customers * Customer management - create and manage customer profiles */ static async list(options) { return await request({ method: 'GET', url: '/customers', query: options, }); } /** * Get a single customer */ static async get(id) { return await request({ method: 'GET', url: '/customers/{id}', path: { id }, }); } /** * Create a new customer */ static async create(data) { return await request({ method: 'POST', url: '/customers', body: data, }); } /** * Update an existing customer */ static async update(id, data) { return await request({ method: 'PATCH', url: '/customers/{id}', path: { id }, body: data, }); } /** * Delete a customer */ static async delete(id) { return await request({ method: 'DELETE', url: '/customers/{id}', path: { id }, }); } } //# sourceMappingURL=CustomersService.js.map