Application Load

IProductVariantValue

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IProductVariantValue

One selectable variation value and its display details.

src/lib/interfaces/orionplace/products/IProduct.ts
TypeScript
export interface IProductVariantValue {
  // Variant-value ID; sent as main_variant_value when loading secondary
  // choices.
  id: number;
  // Color value assigned to this variant value. The client uses it as a CSS
  // color only when the variant type has is_color set to true.
  color: string;
  // Names of this variant value, keyed by language code.
  locale: Record<string, string>;
  // Number of products with status `EProductStatus.PUBLISHED` in this group
  // with this variant value.
  c_published: number;
  // Product ID corresponding to this primary value. May identify the current
  // product; the client must look up the product data separately.
  reload_product?: number | null;
}