ProductsModule
Provides methods for managing products in the system.
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new ProductsModule(
client):ProductsModule
Parameters
Section titled “Parameters”client
Section titled “client”Returns
Section titled “Returns”ProductsModule
Methods
Section titled “Methods”create()
Section titled “create()”create(
data):Promise<any>
Creates a new product in the system.
Parameters
Section titled “Parameters”any
The product data to create.
Returns
Section titled “Returns”Promise<any>
A promise resolving to the created product.
list()
Section titled “list()”list(
params?):Promise<any>
Retrieves a paginated list of products.
Parameters
Section titled “Parameters”params?
Section titled “params?”any
Optional query parameters for filtering and pagination.
Returns
Section titled “Returns”Promise<any>
A promise resolving to an array of products.