UNPKG

@zohodesk/haas-api-creator

Version:

This is used to call server side api call as js api call in client side - hc -api javascript es6

448 lines (445 loc) 12.9 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _jsApiCreator = require("@zohodesk/js-api-creator"); var _default = { "communityCategory": { url: "communityCategory", method: _jsApiCreator.constants.get }, "communityCategory.follow": { url: "communityCategory/:id/follow", method: _jsApiCreator.constants.post }, "communityCategory.unfollow": { url: "communityCategory/:id/unfollow", method: _jsApiCreator.constants.post }, "communityCategory.followers": { url: "communityCategory/:id/followers", method: _jsApiCreator.constants.get }, "communityAddTopic": { url: "communityTopics", method: _jsApiCreator.constants.post }, "communityDraftTopic": { url: "communityTopics/saveDraft", method: _jsApiCreator.constants.post }, "communityUpdateDraft": { url: "communityTopics/:id/updateDraft", method: _jsApiCreator.constants.put }, "communityPublishDraft": { url: "communityTopics/:id/publishDraft", method: _jsApiCreator.constants.post }, "communityDeleteDraft": { url: "communityTopics/:id/deleteDraft", method: _jsApiCreator.constants.deleteIt }, "communityTopics": { url: "communityTopics", method: _jsApiCreator.constants.get }, "communityTopContributors": { url: "community/topContributors", method: _jsApiCreator.constants.get }, "communityModerationTopics": { url: "communityModeration/topics", method: _jsApiCreator.constants.get }, "communityModerationComments": { url: "communityModeration/comments", method: _jsApiCreator.constants.get }, "communityModerationStats": { url: "communityModeration/counts", method: _jsApiCreator.constants.get }, "communityModeratedTopics": { url: "communityModeratedTopics", method: _jsApiCreator.constants.get }, "communityApproveAllAwaitingTopics": { url: "community/approveAllAwaitingTopics", method: _jsApiCreator.constants.post }, "communityApproveAllSpamTopics": { url: "community/approveAllSpamTopics", method: _jsApiCreator.constants.post }, "communityApproveAllAwaitingComments": { url: "community/approveAllAwaitingComments", method: _jsApiCreator.constants.post }, "communityApproveAllSpamComments": { url: "community/approveAllSpamComments", method: _jsApiCreator.constants.post }, "communityTrashAllAwaitingTopics": { url: "community/trashAllAwaitingTopics", method: _jsApiCreator.constants.post }, "communityTrashAllSpamTopics": { url: "community/trashAllSpamTopics", method: _jsApiCreator.constants.post }, "communityTrashAllAwaitingComments": { url: "community/trashAllAwaitingComments", method: _jsApiCreator.constants.post }, "communityTrashAllSpamComments": { url: "community/trashAllSpamComments", method: _jsApiCreator.constants.post }, "communityUnModerateTopics": { url: "communityTopics/unmoderate", method: _jsApiCreator.constants.post }, "communityTopicAddAsTicket": { url: "communityTopics/:id/addAsTicket", method: _jsApiCreator.constants.post }, "communityTopicsApprove": { url: "communityTopics/approve", method: _jsApiCreator.constants.post }, "communityCommentsApprove": { url: "communityComments/approve", method: _jsApiCreator.constants.post }, "communityTopicsRestore": { url: "communityTopics/restore", method: _jsApiCreator.constants.post }, "communityTopicsMoveToTrash": { url: "communityTopics/moveToTrash", method: _jsApiCreator.constants.post }, "communityTopicsDelete": { url: "communityTopics", method: _jsApiCreator.constants.deleteIt }, "communityCommentsRestore": { url: "communityComments/restore", method: _jsApiCreator.constants.post }, "communityCommentsMoveToTrash": { url: "communityComments/moveToTrash", method: _jsApiCreator.constants.post }, "communityCommentsDelete": { url: "communityComments", method: _jsApiCreator.constants.deleteIt }, "communityModeratedUsers": { url: "communityModeratedUsers", method: _jsApiCreator.constants.get }, "communityTopic": { url: "communityTopics/:id", method: _jsApiCreator.constants.get }, "communityTopicByPermalink": { url: "communityTopicByPermalink", method: _jsApiCreator.constants.get }, "communityUpdateTopic": { url: "communityTopics/:id", method: _jsApiCreator.constants.patch }, "communityTopicComments": { url: "communityTopics/:id/comments", method: _jsApiCreator.constants.get }, "communityComments.create": { url: "communityTopics/:id/comments", method: _jsApiCreator.constants.post }, "communityReply.create": { url: "communityTopics/:id/comments/:commentId/replies", method: _jsApiCreator.constants.post }, "communityUpdateComment": { url: "communityTopics/:id/comments/:commentId", method: _jsApiCreator.constants.patch }, "communityUpdateReply": { url: "communityTopics/:id/comments/:commentId/replies/:replyId", method: _jsApiCreator.constants.patch }, "communityCommentList": { url: "communityTopics/:id/comments", method: _jsApiCreator.constants.post }, "communityGetSingleComment": { url: "communityTopics/:id/comments/:commentId", method: _jsApiCreator.constants.get }, "communityDeleteComment": { url: "communityTopics/:id/comments/:commentId/moveToTrash", method: _jsApiCreator.constants.post }, "communityDeleteReply": { url: "communityTopics/:id/comments/:commentId/replies/:replyId/moveToTrash", method: _jsApiCreator.constants.post }, "communityAddAttachement": { url: "communityAttachments", method: _jsApiCreator.constants.post }, "communityGetTopicAttachment": { url: "communityTopics/:id/attachments/:attachementId/content", method: _jsApiCreator.constants.get }, "communityGetCommentAttachment": { url: "communityTopics/:id/comments/:commentId/attachments/:attachmentId/content", method: _jsApiCreator.constants.get }, "communityGetReplyAttachment": { url: "communityTopics/:id/replies/:replyId/attachments/:attachmentId/content", method: _jsApiCreator.constants.get }, "communityGetTicketAssociated": { url: "communityTopics/:id/ticket", method: _jsApiCreator.constants.get }, "communityTopicMarkSpam": { url: "communityTopics/:id/markSpam", method: _jsApiCreator.constants.post }, "communityMultipleTopicMarkSpam": { url: "community/markAllTopicsAsSpam", method: _jsApiCreator.constants.post }, "communityCommentMarkSpam": { url: "communityTopics/:id/comments/:commentId/markSpam", method: _jsApiCreator.constants.post }, "communityMultipleCommentMarkSpam": { url: "community/markAllCommentsAsSpam", method: _jsApiCreator.constants.post }, "communityLockTopic": { url: "communityTopics/:id/lock", method: _jsApiCreator.constants.post }, "communityUnlockTopic": { url: "communityTopics/:id/unlock", method: _jsApiCreator.constants.post }, "communityTopicLike": { url: "communityTopics/:id/like", method: _jsApiCreator.constants.post }, "communityTopicUnLike": { url: "communityTopics/:id/unlike", method: _jsApiCreator.constants.post }, "communityFollowTopic": { url: "communityTopics/:id/follow", method: _jsApiCreator.constants.post }, "communityUnFollowTopic": { url: "communityTopics/:id/unfollow", method: _jsApiCreator.constants.post }, "communityModerateTopic": { url: "communityTopics/:id/moderate", method: _jsApiCreator.constants.post }, "communityUnModerateTopic": { url: "communityTopics/:id/unmoderate", method: _jsApiCreator.constants.post }, "communityTrashTopic": { url: "communityTopics/:id/moveToTrash", method: _jsApiCreator.constants.post }, "communityMoveTopic": { url: "communityTopics/:id/move", method: _jsApiCreator.constants.post }, "communityAssociateTags": { url: "communityTopics/:id/associateTags", method: _jsApiCreator.constants.post }, "communityDeleteTags": { url: "communityTopics/:id/dissociateTags", method: _jsApiCreator.constants.post }, "communityTopicFollowers": { url: "communityTopics/:id/followers", method: _jsApiCreator.constants.get }, "communityTopicParticipants": { url: "communityTopics/:id/participants", method: _jsApiCreator.constants.get }, "communityTopicVoters": { url: "communityTopics/:id/voters", method: _jsApiCreator.constants.get }, "communityTopicVotersTrend": { url: "communityTopics/:id/voters/trend", method: _jsApiCreator.constants.get }, "allCommunityCategories": { url: "allCommunityCategory", method: _jsApiCreator.constants.get }, "topicTypeTrend": { url: "community/topicTypeTrend", method: _jsApiCreator.constants.get }, "uniqueUsersParticipationTrend": { url: "community/uniqueUsersParticipationTrend", method: _jsApiCreator.constants.get }, "forums.sort": { url: "communityCategory/:id/sort", method: _jsApiCreator.constants.post }, "category.create": { url: "communityCategory", method: _jsApiCreator.constants.post }, "category.update": { url: "communityCategory/:id", method: _jsApiCreator.constants.patch }, "forum.create": { url: "communityCategory", method: _jsApiCreator.constants.post }, "category.get": { url: "communityCategory/:id", method: _jsApiCreator.constants.get }, "category.lock": { url: "communityCategory/:id/lock", method: _jsApiCreator.constants.post }, "category.enable": { url: "communityCategory/:id/enable", method: _jsApiCreator.constants.post }, "category.disable": { url: "communityCategory/:id/disable", method: _jsApiCreator.constants.post }, "categories.sort": { url: "communityCategory/sort", method: _jsApiCreator.constants.post }, "category.delete": { url: "communityCategory/:id", method: _jsApiCreator.constants.deleteIt }, "category.move": { url: "communityCategory/:id/move", method: _jsApiCreator.constants.post }, "communityUsersUnmoderate": { url: "communityUsers/unmoderate", method: _jsApiCreator.constants.post }, "topicType": { url: "communityTopicTypes", method: _jsApiCreator.constants.get }, "user": { url: "communityUsers/:id", method: _jsApiCreator.constants.get }, "user.stats": { url: "communityUsers/:id/stats", method: _jsApiCreator.constants.get }, "user.updateModeration": { url: "communityUsers/:id", method: _jsApiCreator.constants.patch }, "user.follow": { url: "communityUsers/:id/follow", method: _jsApiCreator.constants.post }, "user.unfollow": { url: "communityUsers/:id/unfollow", method: _jsApiCreator.constants.post }, "user.updateBlocking": { url: "users/:id", method: _jsApiCreator.constants.patch }, "user.topics.moveToTrash": { url: "communityUsers/:id/topics/moveToTrash", method: _jsApiCreator.constants.post }, "user.comments.moveToTrash": { url: "communityUsers/:id/comments/moveToTrash", method: _jsApiCreator.constants.post }, "category.add.logo": { url: "communityCategoryLogo", method: _jsApiCreator.constants.post }, "category.get.logo": { url: "communityCategory/:categoryId/logo/:logoId", method: _jsApiCreator.constants.get }, "community.licenseInfo": { url: "community/licenseInfo", method: _jsApiCreator.constants.get }, "communityMyDraftedTopics": { url: "communityMyDraftedTopics", method: _jsApiCreator.constants.get }, "searchTags": { url: "communityTags", method: _jsApiCreator.constants.get }, "mentions": { url: "mentions", method: _jsApiCreator.constants.get }, "communityTopicPermalink": { url: "communityTopics/:topicId/permalinks", method: _jsApiCreator.constants.get }, "communityUpdateTopicPermalink": { url: "communityTopics/:topicId/permalinks", method: _jsApiCreator.constants.patch }, "communityInitPermissions": { url: "communityInitPermissions", method: _jsApiCreator.constants.get }, "communityTopicsSearch": { url: "communityTopics/search", method: _jsApiCreator.constants.get }, "communityTopicsCount": { url: "communityTopics/count", method: _jsApiCreator.constants.get }, "communityCommentsCount": { url: "communityComments/count", method: _jsApiCreator.constants.get }, "topicInsightsCount": { url: "communityTopicsInsights/count", method: _jsApiCreator.constants.get }, "topicInsightsUsers": { url: "communityTopicsInsights/interactedUsers", method: _jsApiCreator.constants.get } }; exports["default"] = _default;