"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fields = void 0;
const fb_capi_properties_1 = require("../fb-capi-properties");
const fb_capi_user_data_1 = require("../fb-capi-user-data");
const fb_capi_app_data_1 = require("../fb-capi-app-data");
exports.fields = {
    action_source: { ...fb_capi_properties_1.action_source, required: true },
    currency: { ...fb_capi_properties_1.currency, required: true },
    event_time: { ...fb_capi_properties_1.event_time, required: true },
    user_data: fb_capi_user_data_1.user_data_field,
    app_data_field: fb_capi_app_data_1.app_data_field,
    value: {
        ...fb_capi_properties_1.value,
        required: true,
        default: { '@path': '$.properties.revenue' }
    },
    net_revenue: fb_capi_properties_1.net_revenue,
    content_ids: fb_capi_properties_1.content_ids,
    content_name: fb_capi_properties_1.content_name,
    content_type: fb_capi_properties_1.content_type,
    contents: {
        ...fb_capi_properties_1.contents,
        default: {
            '@arrayPath': [
                '$.properties.products',
                {
                    id: {
                        '@path': '$.product_id'
                    },
                    quantity: {
                        '@path': '$.quantity'
                    },
                    item_price: {
                        '@path': '$.price'
                    }
                }
            ]
        }
    },
    event_id: fb_capi_properties_1.event_id,
    event_source_url: fb_capi_properties_1.event_source_url,
    num_items: fb_capi_properties_1.num_items,
    custom_data: fb_capi_properties_1.custom_data,
    data_processing_options: fb_capi_properties_1.data_processing_options,
    data_processing_options_country: fb_capi_properties_1.data_processing_options_country,
    data_processing_options_state: fb_capi_properties_1.data_processing_options_state,
    test_event_code: fb_capi_properties_1.test_event_code
};
//# sourceMappingURL=fields.js.map