Skip to main content

Interface: ModularCatalog

Lists the configured component designs and scene settings of a modular product. Use it to build a catalog independent of placed items. It includes hidden designs. An empty products array means no eligible catalog data was present.

Example​

const catalog = window.mimeeqApp.observers.modular.catalog.getValue();
console.log(catalog?.products.map(({ code }) => code) ?? []);
console.log(catalog?.settings.starterConfig);

Properties​

productId​

productId: string

The parent modular product ID.


products​

products: object[]

code​

code: string

mode​

mode: MetadataMode

name​

name: string

productId​

productId: string

settings​

settings: object

settings.filters​

filters: string[]

settings.general​

general: Partial<Pick<SettingsGeneral, "canBePrimary" | "freeMove" | "allowSnapping" | "hideProduct" | "excludeFromSummary" | "disableConfigure" | "disableSelection" | "allowMaxQuantity" | "maxQuantity" | "maxQuantityMessage">>

settings.hierarchy​

hierarchy: object

settings.hierarchy.child​

child: boolean

settings.hierarchy.parent​

parent: boolean

status​

status: Status

type​

type: MetadataType


settings​

settings: object

dimensions​

dimensions: Partial<Pick<DimensionProductSettings, "dimensionSource" | "localSettings">> & object

Product dimension settings. Global-template values are inherited separately.

Type Declaration​
lengthUnit?​

optional lengthUnit?: string

Legacy dimension unit, when present on the product.

showDimensions​

showDimensions: boolean

starterConfig?​

optional starterConfig?: string

Saved scene shortcode to use as the starter configuration, when configured.