"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.mockCustomersExplore = exports.mockOrdersExplore = void 0;
const dbt_1 = require("../types/dbt");
const field_1 = require("../types/field");
exports.mockOrdersExplore = {
    name: 'orders',
    label: 'Orders',
    tags: [],
    baseTable: 'orders',
    targetDatabase: dbt_1.SupportedDbtAdapter.POSTGRES,
    tables: {
        orders: {
            name: 'orders',
            label: 'Orders',
            database: 'test',
            schema: 'public',
            sqlTable: 'orders',
            lineageGraph: {},
            dimensions: {
                order_date_year: {
                    name: 'order_date_year',
                    label: 'Order Date Year',
                    table: 'orders',
                    tableLabel: 'Orders',
                    compiledSql: 'order_date_year',
                    tablesReferences: [],
                    sql: 'order_date_year',
                    hidden: false,
                    fieldType: field_1.FieldType.DIMENSION,
                    type: field_1.DimensionType.DATE,
                    timeIntervalBaseDimensionName: 'order_date',
                },
                order_date_month: {
                    name: 'order_date_month',
                    label: '',
                    table: 'orders',
                    tableLabel: 'Orders',
                    compiledSql: 'order_date_month',
                    tablesReferences: [],
                    sql: 'order_date_month',
                    hidden: false,
                    fieldType: field_1.FieldType.DIMENSION,
                    type: field_1.DimensionType.DATE,
                    timeIntervalBaseDimensionName: 'order_date',
                },
                order_date_week: {
                    name: 'order_date_week',
                    label: 'Order Date Week',
                    table: 'orders',
                    tableLabel: 'Orders',
                    compiledSql: 'order_date_week',
                    sql: 'order_date_week',
                    hidden: false,
                    tablesReferences: [],
                    fieldType: field_1.FieldType.DIMENSION,
                    type: field_1.DimensionType.DATE,
                    timeIntervalBaseDimensionName: 'order_date',
                },
                status: {
                    name: 'status',
                    label: 'Status',
                    description: 'Status of the order',
                    table: 'orders',
                    tableLabel: 'Orders',
                    compiledSql: 'status',
                    sql: 'status',
                    hidden: false,
                    tablesReferences: [],
                    fieldType: field_1.FieldType.DIMENSION,
                    type: field_1.DimensionType.BOOLEAN,
                },
            },
            metrics: {
                total_orders: {
                    name: 'total_orders',
                    label: 'Total Orders',
                    table: 'orders',
                    tableLabel: 'Orders',
                    compiledSql: 'total_orders',
                    tablesReferences: [],
                    fieldType: field_1.FieldType.METRIC,
                    type: field_1.MetricType.COUNT,
                    sql: 'total_orders',
                    hidden: false,
                    description: 'Total orders',
                },
            },
        },
        customers: {
            name: 'customers',
            label: 'Customers',
            database: 'test',
            schema: 'public',
            sqlTable: 'customers',
            metrics: {},
            lineageGraph: {},
            dimensions: {
                id: {
                    name: 'id',
                    label: 'ID',
                    table: 'customers',
                    tableLabel: 'Customers',
                    compiledSql: 'id',
                    tablesReferences: [],
                    fieldType: field_1.FieldType.DIMENSION,
                    type: field_1.DimensionType.STRING,
                    sql: 'id',
                    hidden: false,
                },
                created_at_week: {
                    name: 'created_at_week',
                    label: 'Created At Week',
                    table: 'customers',
                    tableLabel: 'Customers',
                    compiledSql: 'created_at_week',
                    sql: 'created_at_week',
                    hidden: false,
                    tablesReferences: [],
                    fieldType: field_1.FieldType.DIMENSION,
                    type: field_1.DimensionType.DATE,
                    timeIntervalBaseDimensionName: 'created_at',
                },
            },
        },
    },
    joinedTables: [
        {
            table: 'customers',
            sqlOn: '${orders.customer_id} = ${customers.id}',
            compiledSqlOn: '(orders.customer_id) = (customers.id)',
            type: undefined,
        },
    ],
};
exports.mockCustomersExplore = {
    name: 'customers',
    label: 'Customers',
    tags: [],
    baseTable: 'customers',
    targetDatabase: dbt_1.SupportedDbtAdapter.POSTGRES,
    joinedTables: [],
    tables: {
        customers: {
            ...exports.mockOrdersExplore.tables.customers,
        },
    },
};
//# sourceMappingURL=changeset.mock.js.map