import * as wrapper from './proto/proto-generated';
var AsyncJobService = wrapper.wix.infra.asyncjobs.v1.AsyncJobService;
/** Creates an async job. */
export function createAsyncJob(payload) {
    var serviceArtifactId = 'com.wixpress.asyncinfra.async-job-service';
    var serviceProtoClass = AsyncJobService;
    var methodName = 'createAsyncJob';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a job. */
export function getAsyncJob(payload) {
    var serviceArtifactId = 'com.wixpress.asyncinfra.async-job-service';
    var serviceProtoClass = AsyncJobService;
    var methodName = 'getAsyncJob';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Updates a job. */
export function updateAsyncJob(payload) {
    var serviceArtifactId = 'com.wixpress.asyncinfra.async-job-service';
    var serviceProtoClass = AsyncJobService;
    var methodName = 'updateAsyncJob';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Deletes a job. */
export function deleteAsyncJob(payload) {
    var serviceArtifactId = 'com.wixpress.asyncinfra.async-job-service';
    var serviceProtoClass = AsyncJobService;
    var methodName = 'deleteAsyncJob';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Completes a job. */
export function completeAsyncJob(payload) {
    var serviceArtifactId = 'com.wixpress.asyncinfra.async-job-service';
    var serviceProtoClass = AsyncJobService;
    var methodName = 'completeAsyncJob';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Reports job progress. */
export function reportAsyncJobProgress(payload) {
    var serviceArtifactId = 'com.wixpress.asyncinfra.async-job-service';
    var serviceProtoClass = AsyncJobService;
    var methodName = 'reportAsyncJobProgress';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a list of job items. */
export function listAsyncJobItems(payload) {
    var serviceArtifactId = 'com.wixpress.asyncinfra.async-job-service';
    var serviceProtoClass = AsyncJobService;
    var methodName = 'listAsyncJobItems';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
//# sourceMappingURL=rpc.impl.js.map