"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function table(body) {
    return {
        _id: body._id,
        name: body.name,
        schema: body.schema,
        primaryDisplay: body.primaryDisplay,
    };
}
function mapTable(ctx) {
    return {
        data: table(ctx.body),
    };
}
function mapTables(ctx) {
    const tables = ctx.body.map((body) => table(body));
    return { data: tables };
}
exports.default = {
    mapTable,
    mapTables,
};
