import { LineItemTypeName, OrderTypeName, ProductVariantTypeName } from '../../models/shopify';
import * as AirtableFields from '../airtable/AirtableFieldDefaultConfigs';
import { getRecordLinkAirtableField } from './getCreateTablePropsUtil';
const { singleLineText, datetime, singleSelect, currency, checkbox, float, multipleRecordLinks, integer, json } = AirtableFields;
export const getLineItemAirtableFields = ({ airtableTableLinks, baseSyncConfig, }) => {
    const LineItemAirtableFields = {
        type: LineItemTypeName,
        fields: {
            id: singleLineText,
            order_id: singleLineText,
            quantity: integer,
            name: singleLineText,
            sku: singleLineText,
            taxable: checkbox,
            title: singleLineText,
            discount_allocations_json: json,
            duties_json: json,
            gift_card: checkbox,
            total_grams: float,
            total_item_price: currency,
            variant_id: singleLineText,
            variant_title: singleLineText,
            order: getRecordLinkAirtableField({
                shopifyObjectType: OrderTypeName,
                airtableTableLinks,
                baseSyncConfig
            }),
            grams: float,
            price: currency,
            product_id: singleLineText,
            properties: json,
            requires_shipping: checkbox,
            tax_lines_json: json,
            total_discount: currency,
            variant: getRecordLinkAirtableField({
                shopifyObjectType: ProductVariantTypeName,
                airtableTableLinks,
                baseSyncConfig
            }),
            vendor: singleLineText,
        }
    };
    return LineItemAirtableFields;
};
//# sourceMappingURL=getLineItemAirtableFields.js.map