import { ProductTypeName } from '../../models/shopify';
import { ProductStatus } from '../../types/ShopifyGraphQLAdminAPI';
import * as AirtableFields from '../airtable/AirtableFieldDefaultConfigs';
const { id, url, singleLineText, datetime, checkbox, singleSelect, multipleSelects, multiLineText, } = AirtableFields;
export const getProductAirtableFields = () => {
    const ProductAirtableFields = {
        type: ProductTypeName,
        fields: {
            title: singleLineText,
            id: id,
            createdAt: datetime,
            updatedAt: datetime,
            descriptionHtml: multiLineText,
            status: {
                ...singleSelect,
                options: {
                    choices: Object.values(ProductStatus)
                        .map(ps => ({ name: ps }))
                }
            },
            'options.1': singleLineText,
            'options.2': singleLineText,
            'options.3': singleLineText,
            tags: multipleSelects,
            'seo.title': singleLineText,
            'seo.description': singleLineText,
            handle: singleLineText,
            productType: singleLineText,
            featuredImage: url,
            legacyResourceId: singleLineText,
            isGiftCard: checkbox,
            onlineStoreUrl: url,
            publishedAt: datetime,
            requiresSellingPlan: checkbox,
            vendor: singleLineText,
            storefrontId: singleLineText,
            description: singleLineText,
            // Modified Props
        }
    };
    return ProductAirtableFields;
};
//# sourceMappingURL=getProductAirtableFields.js.map