import { rpc } from '@wix/auto-crud';
import { getTag } from '../rpc.impl.js';
import { queryTags } from '../rpc.impl.js';
import { createTag } from '../rpc.impl.js';
import { updateTag } from '../rpc.impl.js';
import { deleteTag } from '../rpc.impl.js';
export function getEntity(payload) {
    var opts = rpc.toGetEntity(getTag, payload, {
        request: { id: 'tagId' },
        response: { entity: 'tag' },
    });
    return opts;
}
export function queryEntities(payload) {
    var opts = rpc.toQueryEntities(queryTags, payload, {
        request: { query: 'query' },
        response: { entities: 'tags', metadata: 'pagingMetadata' },
    });
    return opts;
}
export function createEntity(payload) {
    var opts = rpc.toCreateEntity(createTag, payload, {
        request: { entity: 'tag' },
        response: { entity: 'tag' },
    });
    return opts;
}
export function updateEntity(payload) {
    var opts = rpc.toUpdateEntity(updateTag, payload, {
        request: { entity: 'tag' },
        response: { entity: 'tag' },
    });
    return opts;
}
export function deleteEntity(payload) {
    var opts = rpc.toDeleteEntity(deleteTag, payload, {
        request: { entityId: 'tagId' },
    });
    return opts;
}
export var fqdn = 'wix.os.tags.v1.tag';
//# sourceMappingURL=rpc.impl.js.map