@lomi./sdk
Version:
Official TypeScript SDK for the lomi. API
80 lines • 2.22 kB
TypeScript
import type { customers } from '../models/customers.js';
import type { customers_create } from '../models/customers_create.js';
import type { customers_update } from '../models/customers_update.js';
import type { CancelablePromise } from '../core/CancelablePromise.js';
export declare class CustomerService {
/**
* List customers
* Retrieve a paginated list of customers
* @returns any Successful response
* @throws ApiError
*/
static getCustomers({ 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<customers>;
pagination?: {
limit?: number;
offset?: number;
total?: number;
};
}>;
/**
* Create customer
* Create a new customer
* @returns customers Successfully created
* @throws ApiError
*/
static postCustomers({ requestBody, }: {
requestBody: customers_create;
}): CancelablePromise<customers>;
/**
* Get customer
* Retrieve a specific customer by ID
* @returns customers Successful response
* @throws ApiError
*/
static getCustomers1({ customerId, }: {
/**
* The customer ID
*/
customerId: string;
}): CancelablePromise<customers>;
/**
* Update customer
* Update a specific customer
* @returns customers Successfully updated
* @throws ApiError
*/
static patchCustomers({ customerId, requestBody, }: {
/**
* The customer ID
*/
customerId: string;
requestBody: customers_update;
}): CancelablePromise<customers>;
/**
* Delete customer
* Delete a specific customer
* @returns void
* @throws ApiError
*/
static deleteCustomers({ customerId, }: {
/**
* The customer ID
*/
customerId: string;
}): CancelablePromise<void>;
}
//# sourceMappingURL=CustomerService.d.ts.map