import { AttributeDetailsFragment } from "@saleor/fragments/types/AttributeDetailsFragment"; import { ProductDetails_product_productType_variantAttributes } from "@saleor/products/types/ProductDetails"; import { AttributeInputTypeEnum, AttributeTypeEnum, AttributeValueType } from "@saleor/types/globalTypes"; import { AttributeList_attributes_edges_node } from "./types/AttributeList"; export const attribute: AttributeDetailsFragment = { __typename: "Attribute" as "Attribute", availableInGrid: true, filterableInDashboard: false, filterableInStorefront: true, id: "UHJvZHVjdEF0dHJpYnV0ZTo5", inputType: AttributeInputTypeEnum.DROPDOWN, metadata: [ { __typename: "MetadataItem", key: "integration.id", value: "100023123" } ], name: "Author", privateMetadata: [], slug: "author", storefrontSearchPosition: 2, type: AttributeTypeEnum.PRODUCT_TYPE, valueRequired: true, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI0", name: "John Doe", slug: "john-doe", type: AttributeValueType.STRING }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI1", name: "Milionare Pirate", slug: "milionare-pirate", type: AttributeValueType.STRING } ], visibleInStorefront: true }; export const attributes: Array = [ { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: true, filterableInStorefront: false, id: "UHJvZHVjdEF0dHJpYnV0ZTo5", name: "Author", slug: "author", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI0", name: "John Doe", slug: "john-doe", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI1", name: "Milionare Pirate", slug: "milionare-pirate", sortOrder: 1, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: true } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: true, filterableInStorefront: false, id: "UHJvZHVjdEF0dHJpYnV0ZTo2", name: "Box Size", slug: "box-size", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjE1", name: "100g", slug: "100g", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjE2", name: "250g", slug: "250g", sortOrder: 1, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjE3", name: "500g", slug: "500g", sortOrder: 2, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjE4", name: "1kg", slug: "1kg", sortOrder: 3, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: false } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: false, filterableInStorefront: true, id: "UHJvZHVjdEF0dHJpYnV0ZToz", name: "Brand", slug: "brand", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjY=", name: "Saleor", slug: "saleor", sortOrder: 0, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: false } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: true, filterableInStorefront: true, id: "UHJvZHVjdEF0dHJpYnV0ZTo4", name: "Candy Box Size", slug: "candy-box-size", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjIx", name: "100g", slug: "100g", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjIy", name: "250g", slug: "250g", sortOrder: 1, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjIz", name: "500g", slug: "500g", sortOrder: 2, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: false } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: true, filterableInStorefront: true, id: "UHJvZHVjdEF0dHJpYnV0ZTo1", name: "Coffee Genre", slug: "coffee-genre", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjEz", name: "Arabica", slug: "arabica", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjE0", name: "Robusta", slug: "robusta", sortOrder: 1, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: true } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: false, filterableInStorefront: true, id: "UHJvZHVjdEF0dHJpYnV0ZToy", name: "Collar", slug: "collar", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjM=", name: "Round", slug: "round", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjQ=", name: "V-Neck", slug: "v-neck", sortOrder: 1, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjU=", name: "Polo", slug: "polo", sortOrder: 2, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: true } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: false, filterableInStorefront: false, id: "UHJvZHVjdEF0dHJpYnV0ZTox", name: "Color", slug: "color", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjE=", name: "Blue", slug: "blue", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI=", name: "White", slug: "white", sortOrder: 1, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: true } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: true, filterableInStorefront: false, id: "UHJvZHVjdEF0dHJpYnV0ZToxMg==", name: "Cover", slug: "cover", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjMw", name: "Soft", slug: "soft", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjMx", name: "Hard", slug: "hard", sortOrder: 1, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjMy", name: "Middle soft", slug: "middle-soft", sortOrder: 2, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjMz", name: "Middle hard", slug: "middle-hard", sortOrder: 3, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjM0", name: "Middle", slug: "middle", sortOrder: 4, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjM1", name: "Very hard", slug: "very-hard", sortOrder: 5, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: false } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: true, filterableInStorefront: true, id: "UHJvZHVjdEF0dHJpYnV0ZTo3", name: "Flavor", slug: "flavor", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjE5", name: "Sour", slug: "sour", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjIw", name: "Sweet", slug: "sweet", sortOrder: 1, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: true } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: false, filterableInStorefront: true, id: "UHJvZHVjdEF0dHJpYnV0ZToxMQ==", name: "Language", slug: "language", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI4", name: "English", slug: "english", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI5", name: "Pirate", slug: "pirate", sortOrder: 1, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: true } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: true, filterableInStorefront: true, id: "UHJvZHVjdEF0dHJpYnV0ZToxMA==", name: "Publisher", slug: "publisher", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI2", name: "Mirumee Press", slug: "mirumee-press", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjI3", name: "Saleor Publishing", slug: "saleor-publishing", sortOrder: 1, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: true } }, { node: { __typename: "Attribute" as "Attribute", filterableInDashboard: true, filterableInStorefront: true, id: "UHJvZHVjdEF0dHJpYnV0ZTo0", name: "Size", slug: "size", type: AttributeTypeEnum.PRODUCT_TYPE, values: [ { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjc=", name: "XS", slug: "xs", sortOrder: 0, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjg=", name: "S", slug: "s", sortOrder: 1, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjk=", name: "M", slug: "m", sortOrder: 2, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjEw", name: "L", slug: "l", sortOrder: 3, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjEx", name: "XL", slug: "xl", sortOrder: 4, type: AttributeValueType.STRING, value: "" }, { __typename: "AttributeValue" as "AttributeValue", id: "UHJvZHVjdEF0dHJpYnV0ZVZhbHVlOjEy", name: "XXL", slug: "xxl", sortOrder: 5, type: AttributeValueType.STRING, value: "" } ], visibleInStorefront: true } } ].map(edge => edge.node);