Functions
combineData
- combineData(data: object, variant: object): object
-
Parameters
-
data: object
-
variant: object
Returns object
extendStructure
- extendStructure(originalData: object, transformedData: object, structure: Base): object
-
Parameters
-
originalData: object
-
transformedData: object
-
structure: Base
Returns object
remap
- remap(product: object, structure: Partial<Structure>, defaults?: object): object
-
Parameters
-
product: object
-
structure: Partial<Structure>
-
Default value defaults: object = {}
Returns object
remapVariant
- remapVariant(baseProduct: object, variants: object[], structure: Base): (Anonymous function)
-
Parameters
-
baseProduct: object
-
variants: object[]
-
structure: Base
Returns (Anonymous function)
unpackVariants
- unpackVariants(__namedParameters: object, product: object, remappedProduct: object, baseStructure: Base): object[]
-
Parameters
-
__namedParameters: object
-
field: string
-
structure: object
-
product: object
-
remappedProduct: object
-
baseStructure: Base
Returns object[]