import * as wrapper from './proto/proto-generated';
var ExportService = wrapper.wix.fedinfra.exportservice.v1.ExportService;
/** Creates a new Export */
export function createExportAsyncJob(payload) {
    var serviceArtifactId = 'com.wixpress.fedinfra.exportservice.export-service';
    var serviceProtoClass = ExportService;
    var methodName = 'createExportAsyncJob';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Get a Export by id */
export function getExportAsyncJob(payload) {
    var serviceArtifactId = 'com.wixpress.fedinfra.exportservice.export-service';
    var serviceProtoClass = ExportService;
    var methodName = 'getExportAsyncJob';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
export function cancelExportAsyncJob(payload) {
    var serviceArtifactId = 'com.wixpress.fedinfra.exportservice.export-service';
    var serviceProtoClass = ExportService;
    var methodName = 'cancelExportAsyncJob';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
export function generateExportAsyncJobDownloadUrl(payload) {
    var serviceArtifactId = 'com.wixpress.fedinfra.exportservice.export-service';
    var serviceProtoClass = ExportService;
    var methodName = 'generateExportAsyncJobDownloadUrl';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
export function queryVariantsExportSpi(payload) {
    var serviceArtifactId = 'com.wixpress.fedinfra.exportservice.export-service';
    var serviceProtoClass = ExportService;
    var methodName = 'queryVariantsExportSpi';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
export function queryProductsExportSpi(payload) {
    var serviceArtifactId = 'com.wixpress.fedinfra.exportservice.export-service';
    var serviceProtoClass = ExportService;
    var methodName = 'queryProductsExportSpi';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
//# sourceMappingURL=rpc.impl.js.map