"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const properties_1 = require("../properties");
const functions_1 = require("../functions");
const action = {
    title: 'Edit Customer Match Members - Contact Info List',
    description: 'Add or update customer match members in Google Display & Video 360 Contact Info List Audience.',
    defaultSubscription: 'event = "Audience Entered"',
    fields: {
        emails: { ...properties_1.emails },
        phoneNumbers: { ...properties_1.phoneNumbers },
        zipCodes: { ...properties_1.zipCodes },
        firstName: { ...properties_1.firstName },
        lastName: { ...properties_1.lastName },
        countryCode: { ...properties_1.countryCode },
        external_id: { ...properties_1.external_id },
        advertiser_id: { ...properties_1.advertiser_id },
        enable_batching: { ...properties_1.enable_batching },
        batch_size: { ...properties_1.batch_size }
    },
    perform: async (request, { payload, statsContext, features }) => {
        statsContext?.statsClient?.incr('editCustomerMatchMembers', 1, statsContext?.tags);
        return (0, functions_1.editContactInfo)(request, [payload], 'add', statsContext, features);
    },
    performBatch: async (request, { payload, statsContext, features }) => {
        statsContext?.statsClient?.incr('editCustomerMatchMembers.batch', 1, statsContext?.tags);
        return (0, functions_1.editContactInfo)(request, payload, 'add', statsContext, features);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map