"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fqdn = void 0;
exports.getEntity = getEntity;
exports.queryEntities = queryEntities;
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");
var rpc_impl_js_5 = require("../rpc.impl.js");
function getEntity(payload) {
    var opts = auto_crud_1.rpc.toGetEntity(rpc_impl_js_1.getTag, payload, {
        request: { id: 'tagId' },
        response: { entity: 'tag' },
    });
    return opts;
}
function queryEntities(payload) {
    var opts = auto_crud_1.rpc.toQueryEntities(rpc_impl_js_2.queryTags, payload, {
        request: { query: 'query' },
        response: { entities: 'tags', metadata: 'pagingMetadata' },
    });
    return opts;
}
function createEntity(payload) {
    var opts = auto_crud_1.rpc.toCreateEntity(rpc_impl_js_3.createTag, payload, {
        request: { entity: 'tag' },
        response: { entity: 'tag' },
    });
    return opts;
}
function updateEntity(payload) {
    var opts = auto_crud_1.rpc.toUpdateEntity(rpc_impl_js_4.updateTag, payload, {
        request: { entity: 'tag' },
        response: { entity: 'tag' },
    });
    return opts;
}
function deleteEntity(payload) {
    var opts = auto_crud_1.rpc.toDeleteEntity(rpc_impl_js_5.deleteTag, payload, {
        request: { entityId: 'tagId' },
    });
    return opts;
}
exports.fqdn = 'wix.os.tags.v1.tag';
//# sourceMappingURL=rpc.impl.js.map