import type { SortingRule } from './SortingRule'; import type { PathRecord } from './PathRecord'; /** * @type Category: Document representing a category. * * @property catalogId: The ID of the catalog that contains it. * - **Min Length:** 1 * - **Max Length:** 256 * * @property categories: The array of subcategories for the category. * * @property creationDate: Returns the value of attribute \'creationDate\'. It is read only. * - **Max Length:** 30 * * @property description: The localized description of the category. * * @property id: The ID of the category. * - **Min Length:** 1 * - **Max Length:** 256 * * @property image: The name of the category image. The URL to the image is computed. * - **Min Length:** 1 * - **Max Length:** 256 * * @property lastModified: Returns the value of attribute \'lastModified\'. It is read only. * - **Max Length:** 30 * * @property name: The localized name of the category. * * @property online: The online status of the category determines if it is visible in the storefront. Defaults to false if not specified on creation. * * @property pageDescription: The localized page description of the category. * * @property pageKeywords: The localized page keywords for the category. * * @property pageTitle: The localized page title of the category. * * @property parentCategoryId: The ID of the parent category. Defaults to root if not specified on creation. * - **Min Length:** 1 * - **Max Length:** 256 * * @property paths: The path record. * * @property position: The position of the category determines the display order in the storefront. * * @property sortingRules: The category sorting rules. * * @property thumbnail: The name of the category thumbnail. The URL to the thumbnail is computed. * - **Min Length:** 1 * - **Max Length:** 256 * */ export type Category = { catalogId?: string; categories?: Array; creationDate?: string; description?: { [key: string]: string; }; id: string; image?: string; lastModified?: string; name?: { [key: string]: string; }; online?: boolean; pageDescription?: { [key: string]: string; }; pageKeywords?: { [key: string]: string; }; pageTitle?: { [key: string]: string; }; parentCategoryId?: string; paths?: Array; position?: number; sortingRules?: Array; thumbnail?: string; } & { [key: string]: any; };