"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default_permission_status = exports.batch_size = exports.use_responsys_async_api = exports.retry = exports.recipient_data = exports.folder_name = void 0;
exports.folder_name = {
    label: 'Folder Name',
    description: 'The name of the folder where the new Profile Extension Table will be created. Overrides the default folder name in Settings.',
    type: 'string',
    required: false,
    default: 'Segment'
};
exports.recipient_data = {
    label: 'Recipient Data',
    description: 'Record data that represents field names and corresponding values for each profile.',
    type: 'object',
    defaultObjectUI: 'keyvalue',
    required: true,
    additionalProperties: false,
    properties: {
        EMAIL_ADDRESS_: {
            label: 'Email address',
            description: "The user's email address.",
            type: 'string',
            format: 'email',
            required: false
        },
        CUSTOMER_ID_: {
            label: 'Customer ID',
            description: 'Responsys Customer ID.',
            type: 'string',
            required: false
        },
        RIID_: {
            label: 'Recipient ID',
            description: 'Recipient ID (RIID). RIID is required if Email Address and Customer ID are empty. Only use it if the corresponding profile already exists in Responsys.',
            type: 'string',
            required: false
        }
    },
    default: {
        EMAIL_ADDRESS_: {
            '@if': {
                exists: { '@path': '$.traits.email' },
                then: { '@path': '$.traits.email' },
                else: { '@path': '$.context.traits.email' }
            }
        },
        CUSTOMER_ID_: { '@path': '$.userId' }
    }
};
exports.retry = {
    label: 'Delay (seconds)',
    description: `A delay of the selected seconds will be added before retrying a failed request.
                Max delay allowed is 600 secs (10 mins). The default is 0 seconds.`,
    type: 'number',
    choices: [
        { label: '0 secs', value: 0 },
        { label: '30 secs', value: 30 },
        { label: '120 secs', value: 120 },
        { label: '300 secs', value: 300 },
        { label: '480 secs', value: 480 },
        { label: '600 secs', value: 600 }
    ],
    required: false,
    unsafe_hidden: true,
    default: 0
};
exports.use_responsys_async_api = {
    label: 'Use Responsys Async API',
    description: 'Once enabled, Segment will collect events into batches of 200 before sending to Responsys.',
    type: 'boolean',
    default: true,
    unsafe_hidden: true
};
exports.batch_size = {
    label: 'Batch Size',
    description: 'Maximum number of events to include in each batch. Actual batch sizes may be lower.',
    type: 'number',
    required: false,
    unsafe_hidden: true,
    default: 200
};
exports.default_permission_status = {
    label: 'Default Permission Status',
    description: 'This value must be specified as either OPTIN or OPTOUT. It defaults to the value defined in this destination settings.',
    type: 'string',
    required: false,
    choices: [
        { label: 'Opt In', value: 'OPTIN' },
        { label: 'Opt Out', value: 'OPTOUT' }
    ]
};
//# sourceMappingURL=shared-properties.js.map