import { rpc } from '@wix/auto-crud';
import { getAsyncJob } from '../rpc.impl';
import { createAsyncJob } from '../rpc.impl';
import { updateAsyncJob } from '../rpc.impl';
import { deleteAsyncJob } from '../rpc.impl';
export function getEntity(payload) {
    var opts = rpc.toGetEntity(getAsyncJob, payload, {
        request: { id: 'jobId' },
        response: { entity: 'job' },
    });
    return opts;
}
export function createEntity(payload) {
    var opts = rpc.toCreateEntity(createAsyncJob, payload, {
        request: { entity: 'job' },
        response: { entity: 'job' },
    });
    return opts;
}
export function updateEntity(payload) {
    var opts = rpc.toUpdateEntity(updateAsyncJob, payload, {
        request: { entity: 'job', fieldmaskField: 'mask' },
        response: { entity: 'job' },
    });
    return opts;
}
export function deleteEntity(payload) {
    var opts = rpc.toDeleteEntity(deleteAsyncJob, payload, {
        request: { entityId: 'jobId' },
    });
    return opts;
}
export var fqdn = 'wix.infra.asyncjobs.v1.async_job';
//# sourceMappingURL=rpc.impl.js.map