"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.external_audience_id = exports.enable_batching = exports.event_name = exports.send_advertising_id = exports.advertising_id = exports.send_phone = exports.phone = exports.send_email = exports.email = exports.custom_audience_name = exports.audience_id = exports.selected_advertiser_id = void 0;
exports.selected_advertiser_id = {
    label: 'Advertiser ID',
    description: 'The advertiser ID to use when syncing audiences.',
    type: 'string',
    dynamic: true,
    required: true
};
exports.audience_id = {
    label: 'Audience ID',
    description: 'Audience ID for the TikTok Audience you want to sync your Engage audience to. This is returned after you create an audience and can also be found in the TikTok Audiences dashboard.',
    type: 'string',
    dynamic: true,
    required: true
};
exports.custom_audience_name = {
    label: 'Custom Audience Name',
    description: 'Custom audience name of audience to be created. Please note that names over 70 characters will be truncated to 67 characters with "..." appended.',
    type: 'string',
    required: true
};
exports.email = {
    label: 'User Email',
    description: "The user's email address to send to TikTok.",
    type: 'string',
    default: {
        '@if': {
            exists: { '@path': '$.context.traits.email' },
            then: { '@path': '$.context.traits.email' },
            else: { '@path': '$.properties.email' }
        }
    },
    category: 'hashedPII'
};
exports.send_email = {
    label: 'Send Email?',
    description: 'Send email to TikTok. Segment will hash this value before sending',
    type: 'boolean',
    default: true
};
exports.phone = {
    label: 'User Phone Number',
    description: "The user's phone number to send to TikTok.",
    type: 'string',
    default: {
        '@if': {
            exists: { '@path': '$.context.traits.phone' },
            then: { '@path': '$.context.traits.phone' },
            else: { '@path': '$.properties.phone' }
        }
    },
    category: 'hashedPII'
};
exports.send_phone = {
    label: 'Send Phone Number?',
    description: 'Send phone number to TikTok. Segment will hash this value before sending',
    type: 'boolean',
    default: true
};
exports.advertising_id = {
    label: 'User Advertising ID',
    description: "The user's mobile advertising ID to send to TikTok. This could be a GAID, IDFA, or AAID",
    type: 'string',
    default: {
        '@path': '$.context.device.advertisingId'
    },
    category: 'hashedPII'
};
exports.send_advertising_id = {
    label: 'Send Mobile Advertising ID?',
    description: 'Send mobile advertising ID (IDFA, AAID or GAID) to TikTok. Segment will hash this value before sending.',
    type: 'boolean',
    default: true
};
exports.event_name = {
    label: 'Event Name',
    description: 'The name of the current Segment event.',
    type: 'string',
    unsafe_hidden: true,
    default: {
        '@path': '$.event'
    }
};
exports.enable_batching = {
    label: 'Enable Batching',
    description: 'Enable batching of requests to the TikTok Audiences.',
    type: 'boolean',
    default: true,
    unsafe_hidden: true
};
exports.external_audience_id = {
    label: 'External Audience ID',
    description: "The Audience ID in TikTok's DB.",
    type: 'string',
    unsafe_hidden: true,
    default: {
        '@path': '$.context.personas.external_audience_id'
    }
};
//# sourceMappingURL=properties.js.map