"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (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 () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.createGlobalTag = createGlobalTag;
exports.getGlobalTag = getGlobalTag;
exports.updateGlobalTag = updateGlobalTag;
exports.deleteGlobalTag = deleteGlobalTag;
exports.listGlobalTags = listGlobalTags;
exports.createTagForAccount = createTagForAccount;
exports.getTagForAccount = getTagForAccount;
exports.updateTagForAccount = updateTagForAccount;
exports.deleteTagForAccount = deleteTagForAccount;
exports.listTagsForAccount = listTagsForAccount;
exports.queryTagsForAccount = queryTagsForAccount;
exports.createTag = createTag;
exports.getTag = getTag;
exports.updateTag = updateTag;
exports.deleteTag = deleteTag;
exports.listTags = listTags;
exports.queryTags = queryTags;
exports.migrateTag = migrateTag;
var wrapper = __importStar(require("./proto/proto-generated.js"));
var TagsGlobalService = wrapper.wix.os.v1.TagsGlobalService;
var TagsAccountService = wrapper.wix.os.v1.TagsAccountService;
var TagsService = wrapper.wix.os.v1.TagsService;
/** Creates a global tag. */
function createGlobalTag(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsGlobalService;
    var methodName = 'createGlobalTag';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a global tag. */
function getGlobalTag(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsGlobalService;
    var methodName = 'getGlobalTag';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Updates a global tag. */
function updateGlobalTag(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsGlobalService;
    var methodName = 'updateGlobalTag';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Deletes a global tag. */
function deleteGlobalTag(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsGlobalService;
    var methodName = 'deleteGlobalTag';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a list of global tags. */
function listGlobalTags(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsGlobalService;
    var methodName = 'listGlobalTags';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Creates a tag. */
function createTagForAccount(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsAccountService;
    var methodName = 'createTagForAccount';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a tag. */
function getTagForAccount(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsAccountService;
    var methodName = 'getTagForAccount';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Updates a tag. */
function updateTagForAccount(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsAccountService;
    var methodName = 'updateTagForAccount';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Deletes a tag. */
function deleteTagForAccount(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsAccountService;
    var methodName = 'deleteTagForAccount';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a list of tags. */
function listTagsForAccount(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsAccountService;
    var methodName = 'listTagsForAccount';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a list of tags. */
function queryTagsForAccount(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsAccountService;
    var methodName = 'queryTagsForAccount';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Creates a tag. */
function createTag(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsService;
    var methodName = 'createTag';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a tag. */
function getTag(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsService;
    var methodName = 'getTag';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Updates a tag. */
function updateTag(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsService;
    var methodName = 'updateTag';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Deletes a tag. */
function deleteTag(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsService;
    var methodName = 'deleteTag';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a list of tags. */
function listTags(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsService;
    var methodName = 'listTags';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Retrieves a list of tags. */
function queryTags(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsService;
    var methodName = 'queryTags';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
/** Creates a tag with a custom createdDate for migration purposes. */
function migrateTag(payload) {
    var serviceArtifactId = 'com.wixpress.os.tags-service';
    var serviceProtoClass = TagsService;
    var methodName = 'migrateTag';
    var requestData = payload;
    return {
        serviceProtoClass: serviceProtoClass,
        serviceArtifactId: serviceArtifactId,
        methodName: methodName,
        requestData: requestData,
    };
}
//# sourceMappingURL=rpc.impl.js.map