import * as wrapper from './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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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. */
export 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