import type { VariationAttributeValue } from './VariationAttributeValue'; /** * @type VariationAttribute: Document representing a variation attribute. * * @property attributeDefinitionId: The id of the requested attribute definition. * * @property attributeDefinitionName: The localized display name of the variation attribute definition. * * @property defaultValue: Default variation attribute value. * * @property id: The ID of the variation attribute. * - **Min Length:** 1 * * @property name: The localized display name of the variation attribute. * * @property shared: Returns the value of attribute \'shared\' if attribute is local or shared. * * @property slicing: Returns the value of attribute \'slicing\'. * * @property values: The sorted array of variation values. This array can be empty. * * @property variationAttributeType: Variation attribute type. * */ export type VariationAttribute = { attributeDefinitionId: string; attributeDefinitionName?: { [key: string]: string; }; defaultValue?: string; id?: string; name?: { [key: string]: string; }; shared?: boolean; slicing?: boolean; values?: Array; variationAttributeType?: VariationAttributeVariationAttributeTypeEnum; } & { [key: string]: any; }; export type VariationAttributeVariationAttributeTypeEnum = 'string' | 'int' | 'unknown';