"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fqdn = exports.updateEntity = exports.getEntity = void 0;
var auto_crud_1 = require("@wix/auto-crud");
var rpc_impl_1 = require("../rpc.impl");
var rpc_impl_2 = require("../rpc.impl");
function getEntity(payload) {
    var opts = auto_crud_1.rpc.toGetEntity(rpc_impl_1.getFileDescriptor, payload, {
        request: { id: 'fileId' },
        response: { entity: 'file' },
    });
    return opts;
}
exports.getEntity = getEntity;
function updateEntity(payload) {
    var opts = auto_crud_1.rpc.toUpdateEntity(rpc_impl_2.updateFileDescriptor, payload, {
        request: { entity: 'file', fieldmaskField: 'fieldMask' },
        response: { entity: 'file' },
    });
    return opts;
}
exports.updateEntity = updateEntity;
exports.fqdn = 'wix.media.site_media.v1.file_descriptor';
//# sourceMappingURL=rpc.impl.js.map