"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const properties_1 = require("../properties");
const functions_1 = require("../functions");
const action = {
    title: 'Remove Customer Match Members - Mobile Device Id List',
    description: 'Remove customer match members in Google Display & Video 360 Mobile Device Id List Audience.',
    defaultSubscription: 'event = "Audience Entered"',
    fields: {
        mobileDeviceIds: { ...properties_1.mobileDeviceIds, required: true },
        external_id: { ...properties_1.external_id, required: true },
        advertiser_id: { ...properties_1.advertiser_id, required: true },
        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.editDeviceMobileIds)(request, [payload], 'remove', statsContext, features);
    },
    performBatch: async (request, { payload, statsContext, features }) => {
        statsContext?.statsClient?.incr('editCustomerMatchMembers.batch', 1, statsContext?.tags);
        return (0, functions_1.editDeviceMobileIds)(request, payload, 'remove', statsContext, features);
    }
};
exports.default = action;
//# sourceMappingURL=index.js.map