"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.fqdn = exports.deleteEntity = exports.updateEntity = exports.createEntity = 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");
var rpc_impl_3 = require("../rpc.impl");
var rpc_impl_4 = require("../rpc.impl");
function getEntity(payload) {
    var opts = auto_crud_1.rpc.toGetEntity(rpc_impl_1.getAsyncJob, payload, {
        request: { id: 'jobId' },
        response: { entity: 'job' },
    });
    return opts;
}
exports.getEntity = getEntity;
function createEntity(payload) {
    var opts = auto_crud_1.rpc.toCreateEntity(rpc_impl_2.createAsyncJob, payload, {
        request: { entity: 'job' },
        response: { entity: 'job' },
    });
    return opts;
}
exports.createEntity = createEntity;
function updateEntity(payload) {
    var opts = auto_crud_1.rpc.toUpdateEntity(rpc_impl_3.updateAsyncJob, payload, {
        request: { entity: 'job', fieldmaskField: 'mask' },
        response: { entity: 'job' },
    });
    return opts;
}
exports.updateEntity = updateEntity;
function deleteEntity(payload) {
    var opts = auto_crud_1.rpc.toDeleteEntity(rpc_impl_4.deleteAsyncJob, payload, {
        request: { entityId: 'jobId' },
    });
    return opts;
}
exports.deleteEntity = deleteEntity;
exports.fqdn = 'wix.infra.asyncjobs.v1.async_job';
//# sourceMappingURL=rpc.impl.js.map