import { InventoryLevelTypeName, LocationTypeName, ProductVariantTypeName } from '../../models/shopify';
import * as AirtableFields from '../airtable/AirtableFieldDefaultConfigs';
import { getRecordLinkAirtableField } from './getCreateTablePropsUtil';
const { singleLineText, datetime, checkbox, integer, multiLineText, } = AirtableFields;
export const getInventoryLevelAirtableFields = ({ airtableTableLinks, baseSyncConfig, }) => {
    const LocationAirtableFields = {
        type: InventoryLevelTypeName,
        fields: {
            id: singleLineText,
            available: integer,
            incoming: integer,
            'product.title': singleLineText,
            'productVariant.title': singleLineText,
            'location.name': singleLineText,
            createdAt: datetime,
            updatedAt: datetime,
            productVariant: getRecordLinkAirtableField({
                shopifyObjectType: ProductVariantTypeName,
                airtableTableLinks,
                baseSyncConfig,
            }),
            location: getRecordLinkAirtableField({
                shopifyObjectType: LocationTypeName,
                airtableTableLinks,
                baseSyncConfig,
            }),
            'inventoryItem.id': singleLineText,
            'location.id': singleLineText,
            'location.isActive': checkbox,
            'productVariant.id': singleLineText,
            'productVariant.sku': singleLineText,
            'product.id': singleLineText,
            'product.handle': singleLineText,
            canDeactivate: checkbox,
            deactivationAlert: singleLineText,
            deactivationAlertHtml: multiLineText,
        }
    };
    return LocationAirtableFields;
};
//# sourceMappingURL=getInventoryLevelAirtableFields.js.map