"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.update = exports.set = exports.get = exports.getGlobalSettingsForMigration = exports.setGlobalSettingsForMigration = exports.getGlobalSettings = exports.setGlobalSettings = exports.bulkGetComponentSettings = exports.getComponentSettings = exports.setComponentSettingsForMigration = exports.setComponentSettings = void 0;
var wrapper = __importStar(require("./proto/proto-generated"));
var AppSettingsService = wrapper.com.wix.fed.settings.AppSettingsService;
/** Set component settings by componentId */
function setComponentSettings(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'setComponentSettings';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.setComponentSettings = setComponentSettings;
/** Set component settings by componentId */
function setComponentSettingsForMigration(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'setComponentSettingsForMigration';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.setComponentSettingsForMigration = setComponentSettingsForMigration;
/** Get component settings by componentId */
function getComponentSettings(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'getComponentSettings';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.getComponentSettings = getComponentSettings;
/** Get component settings by componentId */
function bulkGetComponentSettings(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'bulkGetComponentSettings';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.bulkGetComponentSettings = bulkGetComponentSettings;
/** Set global settings by instanceId (extracted from Authorization) */
function setGlobalSettings(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'setGlobalSettings';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.setGlobalSettings = setGlobalSettings;
/** Get global settings by instanceId (extracted from Authorization) */
function getGlobalSettings(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'getGlobalSettings';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.getGlobalSettings = getGlobalSettings;
/** Set global settings for migration */
function setGlobalSettingsForMigration(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'setGlobalSettingsForMigration';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.setGlobalSettingsForMigration = setGlobalSettingsForMigration;
/** Get global settings for migration */
function getGlobalSettingsForMigration(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'getGlobalSettingsForMigration';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.getGlobalSettingsForMigration = getGlobalSettingsForMigration;
/**
 * retrieve settings for site. app and component-scoped settings ids can be provided.
 * looks-up settings for one or both ids provided.
 * @deprecated
 */
function get(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'get';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.get = get;
/**
 * store new snapshot of settings on server
 * @deprecated
 */
function set(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'set';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.set = set;
/**
 * create new snapshot of settings (patch)
 * @deprecated
 */
function update(payload) {
    var serviceArtifactId = 'com.wixpress.fed.app-settings-service';
    var serviceProtoClass = AppSettingsService;
    var methodName = 'update';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
exports.update = update;
//# sourceMappingURL=rpc.impl.js.map