Skip to main content

Products

The Products module provides methods to manage and retrieve product information. These methods can be used to fetch a list of products or get details about a specific product.

"Camera member functions"

getProducts()

Fetches the list of all available products names.

getProducts(): string[];

getProduct()

Fetches details of a specific product by its name.

getProduct(productName: string): Product;

Product

Product instances have additional methods to interact with their properties and images. After creating a product with name product_1, we can access its properties writting Products.product_1.

getProperty()

Fetches a property of a product instance by its property ID.

getProperty(propertyId: string): Promise<unknown>;

getImage()

Fetches an image associated with a product instance by its image ID.

getImage(imageId: string): Promise<Ve.Image>;