"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.productFields = exports.productDefaultProperties = void 0;
exports.productDefaultProperties = {
    quantity: {
        '@path': '$.properties.quantity'
    },
    id: {
        '@path': '$.properties.product_id'
    },
    variantId: {
        '@path': '$.properties.variant'
    },
    imageSrc: {
        '@path': '$.properties.image_url'
    },
    priceAmount: {
        '@path': '$.properties.price'
    },
    sku: {
        '@path': '$.properties.sku'
    },
    title: {
        '@path': '$.properties.name'
    },
    untranslatedTitle: {
        '@if': {
            exists: [{ '@path': '$.properties.variant' }],
            then: { '@path': '$.properties.variant' },
            else: { '@path': '$.properties.title' }
        }
    },
    vendor: {
        '@path': '$.properties.vendor'
    },
    type: {
        '@path': '$.properties.category'
    },
    url: {
        '@path': '$.properties.url'
    }
};
exports.productFields = {
    label: '',
    type: 'object',
    description: '',
    properties: {
        id: {
            label: 'Product Id',
            type: 'string',
            description: 'A globally unique identifier for the item.'
        },
        variantId: {
            label: 'Variant Id',
            type: 'string',
            description: 'Identifier for the variant of the product'
        },
        imageSrc: {
            label: 'Image Source URL',
            type: 'string',
            description: 'The location of the image as a URL.'
        },
        priceAmount: {
            label: 'Price Amount',
            type: 'number',
            description: 'The price of the product variant.'
        },
        sku: {
            label: 'SKU',
            type: 'string',
            description: 'The SKU (stock keeping unit) associated with the variant.'
        },
        title: {
            label: 'Title',
            type: 'string',
            description: "The product variant's title."
        },
        untranslatedTitle: {
            label: 'Untranslated Title',
            type: 'string',
            description: "The product variant's untranslated title."
        },
        vendor: {
            label: 'Vendor',
            type: 'string',
            description: "The product's vendor name."
        },
        type: {
            label: 'Type',
            type: 'string',
            description: 'The product type specified by the merchant.'
        },
        url: {
            label: 'URL',
            type: 'string',
            description: 'The relative URL of the product.'
        }
    },
    default: exports.productDefaultProperties
};
//# sourceMappingURL=productFields.js.map