-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The current resource type definitions are messy and difficult to parse in Typescript and IDE hints. Resources like SubscribePro.V2.Customers and others should be simplified and easy to parse, eg:
type CustomersServiceType = {
getOne({ client, id }: { client?: Client; id: string | number; }): Promise<CustomerType | null>
getAll({ client, params }: { client?: Client; params?: CustomerSearchParams; }): Promise<SearchResults<CustomerType[]>>
updateOne({ client, id, data }: { client?: Client; id: string | number; data: UpdateCustomerType; }): Promise<CustomerType | null>;
createOne({ client, data }: { client?: Client; data: CreateCustomerType; }): Promise<CustomerType | null>;
};Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels