@paritydeals/node-sdk
Version:
Node.js SDK for interacting with the ParityDeals API.
35 lines • 1.01 kB
TypeScript
import { BaseResponse } from './common';
export interface CustomerBase {
name?: string | null;
email?: string | null;
metadata?: Record<string, any> | null;
}
export interface CustomerCreatePayload extends CustomerBase {
customerId: string;
name?: string | null;
email?: string | null;
metadata?: Record<string, any> | null;
}
export interface CustomerUpdatePayload {
name?: string | null;
email?: string | null;
metadata?: Record<string, any> | null;
}
export interface CustomerResponse extends CustomerBase {
id: string;
customerId: string;
email?: string | null;
details?: Record<string, any> | null;
createdOn: string;
modifiedOn: string;
}
export interface PaginatedCustomerResponse extends BaseResponse {
count: number;
next?: string | null;
previous?: string | null;
results: CustomerResponse[];
}
export interface ArchiveSuccessResponse extends BaseResponse {
message: string;
}
//# sourceMappingURL=customers.d.ts.map