"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.commonFields = void 0;
exports.commonFields = {
    enable_batching: {
        required: true,
        type: 'boolean',
        label: 'Send data in batch to Canvas',
        description: 'Sends events in bulk to Canvas. Highly recommended.',
        default: true
    },
    context: {
        label: 'Event context',
        description: 'Event context as it appears in Segment',
        type: 'object',
        required: false,
        default: { '@path': '$.context' }
    },
    anonymous_id: {
        label: 'Anonymous ID',
        description: 'The anonymous ID associated with the user',
        type: 'string',
        required: false,
        default: { '@path': '$.anonymousId' }
    },
    message_id: {
        label: 'Message ID',
        description: 'The Segment messageId',
        type: 'string',
        required: false,
        default: { '@path': '$.messageId' }
    },
    timestamp: {
        label: 'Timestamp',
        description: 'A timestamp of when the event took place. Default is current date and time.',
        type: 'string',
        default: {
            '@path': '$.timestamp'
        }
    },
    received_at: {
        label: 'Received at',
        description: 'When the event was received.',
        type: 'datetime',
        required: true,
        default: {
            '@path': '$.receivedAt'
        }
    },
    sent_at: {
        label: 'Sent at',
        description: 'Device-time when the event was sent.',
        type: 'datetime',
        required: true,
        default: {
            '@path': '$.sentAt'
        }
    },
    user_id: {
        type: 'string',
        required: false,
        description: "The user's id",
        label: 'User ID',
        default: {
            '@path': '$.userId'
        }
    }
};
//# sourceMappingURL=common-fields.js.map