"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fqdn = void 0;
exports.getEntity = getEntity;
exports.createEntity = createEntity;
exports.updateEntity = updateEntity;
exports.deleteEntity = deleteEntity;
var auto_crud_1 = require("@wix/auto-crud");
var rpc_impl_js_1 = require("../rpc.impl.js");
var rpc_impl_js_2 = require("../rpc.impl.js");
var rpc_impl_js_3 = require("../rpc.impl.js");
var rpc_impl_js_4 = require("../rpc.impl.js");
function getEntity(payload) {
    var opts = auto_crud_1.rpc.toGetEntity(rpc_impl_js_1.getExternalDatabaseConnection, payload, {
        request: { id: 'name' },
        response: { entity: 'externalDatabaseConnection' },
    });
    return opts;
}
function createEntity(payload) {
    var opts = auto_crud_1.rpc.toCreateEntity(rpc_impl_js_2.createExternalDatabaseConnection, payload, {
        request: { entity: 'externalDatabaseConnection' },
        response: { entity: 'externalDatabaseConnection' },
    });
    return opts;
}
function updateEntity(payload) {
    var opts = auto_crud_1.rpc.toUpdateEntity(rpc_impl_js_3.updateExternalDatabaseConnection, payload, {
        request: { entity: 'externalDatabaseConnection' },
        response: { entity: 'externalDatabaseConnection' },
    });
    return opts;
}
function deleteEntity(payload) {
    var opts = auto_crud_1.rpc.toDeleteEntity(rpc_impl_js_4.deleteExternalDatabaseConnection, payload, {
        request: { entityId: 'name' },
    });
    return opts;
}
exports.fqdn = 'wix.data.v1.external_database_connection';
//# sourceMappingURL=rpc.impl.js.map