"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.templateWithRowReferenceAndInvalidReference = exports.templateWithInvalidReference = exports.templateWithMultipleRowReferences = exports.templateWithRowReference = exports.templateWithFormattedValueReference = exports.templateWithRawValueReference = exports.rowMock = exports.valueMock = void 0;
exports.valueMock = {
    raw: 'raw',
    formatted: 'formatted',
};
exports.rowMock = {
    customers: {
        customer_id: {
            raw: 'id',
            formatted: 'id',
        },
        last_name: {
            raw: 'last name',
            formatted: 'last name',
        },
    },
};
exports.templateWithRawValueReference = {
    template: 'https://example.com/company/${value.raw | url_encode }',
    expectedUrl: 'https://example.com/company/raw',
    expectedRowReferences: [],
};
exports.templateWithFormattedValueReference = {
    template: 'https://example.com/company/${value.formatted | url_encode }',
    expectedUrl: 'https://example.com/company/formatted',
    expectedRowReferences: [],
};
exports.templateWithRowReference = {
    template: 'https://example.com/company/${row.customers.customer_id.raw | url_encode }',
    expectedUrl: 'https://example.com/company/id',
    expectedRowReferences: ['customers_customer_id'],
};
exports.templateWithMultipleRowReferences = {
    template: 'https://example.com/company/${row.customers.customer_id.raw | url_encode }/${row.customers.last_name.raw | url_encode }',
    expectedUrl: 'https://example.com/company/id/last+name',
    expectedRowReferences: ['customers_customer_id', 'customers_last_name'],
};
exports.templateWithInvalidReference = {
    template: 'https://example.com/company/${row.customer_id.raw | url_encode }',
    expectedError: 'Found invalid reference "${row.customer_id.raw | url_encode }" in your url template',
};
exports.templateWithRowReferenceAndInvalidReference = {
    template: 'https://example.com/company/${row.customers.customer_id.raw | url_encode }/${row.customer_id.raw | url_encode }',
    expectedError: 'Found invalid reference "${row.customer_id.raw | url_encode }" in your url template',
};
//# sourceMappingURL=template.mock.js.map