"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const fs_1 = __importDefault(require("fs"));
const simulator_1 = require("./simulator");
const snapshotsDiffer_1 = require("./snapshotsDiffer");
const dry = {
    version: "1",
    tables: {},
    enums: {}
};
const simulatedTablesResolver = async (input) => {
    return simulator_1.resolveTables(input.created, input.deleted);
};
const simulatedColumnsResolver = async (input) => {
    return simulator_1.resolveColumns(input.tableName, input.created, input.deleted);
};
// const j1 = dry
const j1 = JSON.parse(fs_1.default.readFileSync('./out/leha1.json', 'utf8'));
const j2 = JSON.parse(fs_1.default.readFileSync('./out/leha2.json', 'utf8'));
// const j3 = JSON.parse(fs.readFileSync('./out/1634215063491.json', 'utf8'))
const main = async () => {
    console.log(await snapshotsDiffer_1.applySnapshotsDiff(j1, j2, simulatedTablesResolver, simulatedColumnsResolver));
};
main();
//# sourceMappingURL=diff.js.map