"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.compare = exports.promote = exports.consumeAppDomainEvents = exports.consumePlanDomainEvent = exports.queryMarketListing = exports.consumeAppVersionStateChanged = exports.consumeOldListingChanged = exports.updateMarketListing = exports.getMarketListing = exports.createMarketListing = void 0;
var wrapper = __importStar(require("./proto/proto-generated"));
var MarketListingService = wrapper.com.wixpress.devcenter.appmarketlisting.MarketListingService;
/** create a new market listing */
function createMarketListing(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'createMarketListing';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.createMarketListing = createMarketListing;
/** retrieve an existing market listing */
function getMarketListing(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'getMarketListing';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.getMarketListing = getMarketListing;
/** update an existing market listing */
function updateMarketListing(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'updateMarketListing';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.updateMarketListing = updateMarketListing;
/** consume old listing changed event */
function consumeOldListingChanged(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'consumeOldListingChanged';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.consumeOldListingChanged = consumeOldListingChanged;
/** consume app version state changed event */
function consumeAppVersionStateChanged(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'consumeAppVersionStateChanged';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.consumeAppVersionStateChanged = consumeAppVersionStateChanged;
/** query market listings */
function queryMarketListing(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'queryMarketListing';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.queryMarketListing = queryMarketListing;
/** consume plan domain event */
function consumePlanDomainEvent(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'consumePlanDomainEvent';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.consumePlanDomainEvent = consumePlanDomainEvent;
function consumeAppDomainEvents(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'consumeAppDomainEvents';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.consumeAppDomainEvents = consumeAppDomainEvents;
/** promote version */
function promote(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'promote';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.promote = promote;
/** compare versions */
function compare(payload) {
    var serviceArtifactId = 'com.wixpress.devcenter.appmarketlisting.app-market-listing';
    var serviceProtoClass = MarketListingService;
    var methodName = 'compare';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.compare = compare;
//# sourceMappingURL=rpc.impl.js.map