@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
756 lines (753 loc) • 23.1 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports["default"] = void 0;
var _jsApiCreator = require("@zohodesk/js-api-creator");
var _default = {
'articles': {
url: 'articles',
method: _jsApiCreator.constants.get
},
'articles.get': {
url: 'articles/:articleId',
method: _jsApiCreator.constants.get
},
'articles.preview': {
url: 'articles/preview',
method: _jsApiCreator.constants.post
},
'articles.versionList': {
url: 'articles/:articleId/versionList',
method: _jsApiCreator.constants.get
},
'articles.create': {
url: 'articles',
method: _jsApiCreator.constants.post
},
'articles.update': {
url: 'articles/:articleId',
method: _jsApiCreator.constants.patch
},
'articles.quickEdit': {
url: 'articles/:articleId/quickEdit',
method: _jsApiCreator.constants.post
},
'articles.restore': {
url: 'articles/:articleId/restore',
method: _jsApiCreator.constants.post
},
'articles.permalinks': {
url: 'articles/:articleId/permalinks',
method: _jsApiCreator.constants.get
},
'articles.permalinks.update': {
url: 'articles/:articleId/permalinks',
method: _jsApiCreator.constants.post
},
'articles.permalinks.removeSecondaryPermalink': {
url: 'articles/:articleId/permalinks/removeSecondaryPermalink',
method: _jsApiCreator.constants.post
},
'articles.checkPermalinkAvailability': {
url: 'articles/checkPermalinkAvailability',
method: _jsApiCreator.constants.post
},
'articles.history': {
url: 'articles/:articleId/history',
method: _jsApiCreator.constants.get
},
'articles.attachments': {
url: 'articles/:articleId/attachments',
method: _jsApiCreator.constants.get
},
'articles.attachments.create': {
url: 'articles/:articleId/attachments',
method: _jsApiCreator.constants.post
},
'articles.associateAttachments': {
url: 'articles/:articleId/associateAttachments',
method: _jsApiCreator.constants.post
},
'articles.dissociateAttachments': {
url: 'articles/:articleId/dissociateAttachments',
method: _jsApiCreator.constants.post
},
'articles.getDocsResourcesInfo': {
url: 'articles/docsResourcesInfo',
method: _jsApiCreator.constants.get
},
'articleAttachments.create': {
url: 'articleAttachments',
method: _jsApiCreator.constants.post
},
'articles.discardMany': {
url: 'articles/discardMany',
method: _jsApiCreator.constants.post
},
'articles.moveToTrash': {
url: 'articles/moveToTrash',
method: _jsApiCreator.constants.post
},
'articleTranslations': {
url: 'articleTranslations',
method: _jsApiCreator.constants.get
},
'articleTranslations.search': {
url: 'articleTranslations/search',
method: _jsApiCreator.constants.get
},
'articleTranslations.moveToTrash': {
url: 'articleTranslations/moveToTrash',
method: _jsApiCreator.constants.post
},
'articleTranslations.updateMany': {
url: 'articleTranslations/updateMany',
method: _jsApiCreator.constants.post
},
'articles.updateMany': {
url: 'articles/updateMany',
method: _jsApiCreator.constants.post
},
'articles.count': {
url: 'articles/count',
method: _jsApiCreator.constants.get
},
'translation.count': {
url: 'articleTranslations/count',
method: _jsApiCreator.constants.get
},
'articlesDashboard': {
url: 'articlesDashboard',
method: _jsApiCreator.constants.get
},
'articleDashboard.statistics': {
url: 'articleDashboard/statistics',
method: _jsApiCreator.constants.get
},
'articleDashboard.reports': {
url: 'articleDashboard/reports',
method: _jsApiCreator.constants.get
},
'articleDashboard.counts': {
url: 'articleDashboard/counts',
method: _jsApiCreator.constants.get
},
'articles.trends': {
url: 'articles/trends',
method: _jsApiCreator.constants.get
},
'articles.search': {
url: 'articles/search',
method: _jsApiCreator.constants.get
},
'articles.searchKeywords': {
url: 'articles/searchKeywords',
method: _jsApiCreator.constants.get
},
'articles.usedTickets': {
url: 'articles/:articleId/usedTickets',
method: _jsApiCreator.constants.get
},
'convertFileContentToHtml': {
url: 'convertFileContentToHtml',
method: _jsApiCreator.constants.post
},
'articles.translations.create': {
url: 'articles/:articleId/translations',
method: _jsApiCreator.constants.post
},
'articles.translations.update': {
url: 'articles/:articleId/translations/:locale',
method: _jsApiCreator.constants.patch
},
'articles.translations.quickEdit': {
url: 'articles/:articleId/translations/:locale/quickEdit',
method: _jsApiCreator.constants.post
},
'articles.translations.autoDraft': {
url: 'articles/:articleId/translations/:locale/autoDraft',
method: _jsApiCreator.constants.post
},
'articles.translations.restoreVersion': {
url: 'articles/:articleId/translations/:locale/restoreVersion',
method: _jsApiCreator.constants.post
},
'articles.translations.discardDrafts': {
url: 'articles/:articleId/translations/:locale/discardDrafts',
method: _jsApiCreator.constants.post
},
'articles.translations.discardMany': {
url: 'articleTranslations/discardDrafts',
method: _jsApiCreator.constants.post
},
'articles.translations.get': {
url: 'articles/:articleId/translations/:locale',
method: _jsApiCreator.constants.get
},
'articles.translations': {
url: 'articles/:articleId/translations',
method: _jsApiCreator.constants.get
},
'articles.translations.versions': {
url: 'articles/:articleId/translations/:locale/versions',
method: _jsApiCreator.constants.get
},
'articles.translations.versionDiff': {
url: 'articles/:articleId/translations/:locale/versionDiff',
method: _jsApiCreator.constants.get
},
'articles.translations.updateVersionNotes': {
url: 'articles/:articleId/translations/:locale/updateVersionNotes',
method: _jsApiCreator.constants.post
},
'articles.outdateTranslations': {
url: 'articles/:articleId/outdateTranslations',
method: _jsApiCreator.constants.post
},
'articles.translation.attachments': {
url: 'articles/:articleId/translations/:locale/attachments',
method: _jsApiCreator.constants.get
},
'articles.translation.attachments.uploadAndAssociate': {
url: 'articles/:articleId/translations/:locale/attachments',
method: _jsApiCreator.constants.post
},
'articles.translation.attachFiles': {
url: 'articles/:articleId/translations/:locale/associateAttachments',
method: _jsApiCreator.constants.post
},
'articles.translations.dissociateAttachments': {
url: 'articles/:articleId/translations/:locale/dissociateAttachments',
method: _jsApiCreator.constants.post
},
'articles.translations.like': {
url: 'articles/:articleId/translations/:locale/like',
method: _jsApiCreator.constants.post
},
'articles.translations.disLike': {
url: 'articles/:articleId/translations/:locale/dislike',
method: _jsApiCreator.constants.post
},
'articles.translations.history': {
url: 'articles/:articleId/translations/:locale/history',
method: _jsApiCreator.constants.get
},
'articles.insights': {
url: 'articles/:articleId/insights',
method: _jsApiCreator.constants.get
},
'articles.translations.insights': {
url: 'articles/:articleId/translations/:locale/insights',
method: _jsApiCreator.constants.get
},
'articles.translations.permalinks': {
url: 'articles/:articleId/translations/:locale/permalinks',
method: _jsApiCreator.constants.get
},
'articles.translations.permalinks.update': {
url: 'articles/:articleId/translations/:locale/permalinks',
method: _jsApiCreator.constants.post
},
'articles.translations.permalinks.removeSecondaryPermalink': {
url: 'articles/:articleId/translations/:locale/permalinks/removeSecondaryPermalink',
method: _jsApiCreator.constants.post
},
'articles.translations.delete': {
url: 'articles/:articleId/translations/:locale',
method: _jsApiCreator.constants.deleteIt
},
'articles.comments.create': {
url: 'articles/:articleId/comments',
method: _jsApiCreator.constants.post
},
'articles.translationsComments.create': {
url: 'articles/:articleId/translations/:locale/comments',
method: _jsApiCreator.constants.post
},
'articles.comments.update': {
url: 'articles/:articleId/comments/:commentId',
method: _jsApiCreator.constants.patch
},
'articles.translationsComments.update': {
url: 'articles/:articleId/translations/:locale/comments/:commentId',
method: _jsApiCreator.constants.patch
},
'articles.comments.delete': {
url: 'articles/:articleId/comments/:commentId',
method: _jsApiCreator.constants.deleteIt
},
'articles.translationsComments.delete': {
url: 'articles/:articleId/translations/:locale/comments/:commentId',
method: _jsApiCreator.constants.deleteIt
},
'articles.comments.get': {
url: 'articles/:articleId/comments/commentId',
method: _jsApiCreator.constants.get
},
'articles.translationsComments.get': {
url: 'articles/:articleId/translations/:locale/comments/:commentId',
method: _jsApiCreator.constants.get
},
'articles.comments.getall': {
url: 'articles/:articleId/comments',
method: _jsApiCreator.constants.get
},
'articles.translationsComments.getall': {
url: 'articles/:articleId/translations/:locale/comments',
method: _jsApiCreator.constants.get
},
'articles.updateTranslationState': {
url: 'articles/:articleId/updateTranslationState',
method: _jsApiCreator.constants.post
},
'kbCategory': {
url: 'kbCategory',
method: _jsApiCreator.constants.get
},
'kbCategory.create': {
url: 'kbCategory',
method: _jsApiCreator.constants.post
},
'kbCategory.update': {
url: 'kbCategory/:categoryId',
method: _jsApiCreator.constants.patch
},
'kbCategory.delete': {
url: 'kbCategory/:categoryId',
method: _jsApiCreator.constants.deleteIt
},
'kbCategory.moveAndDelete': {
url: 'kbCategory/:categoryId/moveAndDelete',
method: _jsApiCreator.constants.post
},
'kbCategory.restore': {
url: 'kbCategory/trashedCategories/restore',
method: _jsApiCreator.constants.post
},
'kbCategory.repositionArticles': {
url: 'kbCategory/:articleId/repositionArticles',
method: _jsApiCreator.constants.get
},
'reviewConfiguration': {
url: 'kbCategory/reviewConfiguration',
method: _jsApiCreator.constants.get
},
'kbCategoryLogo.create': {
url: 'kbCategoryLogo',
method: _jsApiCreator.constants.post
},
'kbCategory.permalinks': {
url: 'kbCategory/:categoryId/permalinks',
method: _jsApiCreator.constants.get
},
'kbCategory.permalinks.update': {
url: 'kbCategory/:categoryId/permalinks/add',
method: _jsApiCreator.constants.post
},
'kbCategory.permalinks.removeSecondaryPermalink': {
url: 'kbCategory/:categoryId/permalinks/removeSecondaryPermalink',
method: _jsApiCreator.constants.post
},
'articles.feedbacks.list': {
url: 'articles/:articleId/feedbacks',
method: _jsApiCreator.constants.get
},
'articles.feedbacks.listAll': {
url: 'articleFeedbacks',
method: _jsApiCreator.constants.get
},
'articles.translations.feedbacks': {
url: 'articles/:articleId/translations/:locale/feedbacks',
method: _jsApiCreator.constants.get
},
'articles.feedbacks.get': {
url: 'articleFeedbacks/:feedbackId',
method: _jsApiCreator.constants.get
},
'articles.feedbacks.patch': {
url: 'articleFeedbacks/:feedbackId',
method: _jsApiCreator.constants.patch
},
'articles.feedbacks.delete': {
url: 'articleFeedbacks/:feedbackId',
method: _jsApiCreator.constants.deleteIt
},
'articles.feedbacks.addAsTicket': {
url: 'articleFeedbacks/:feedbackId/addAsTicket',
method: _jsApiCreator.constants.post
},
'articles.feedbacks.resolution.save': {
url: 'articleFeedbacks/:feedbackId/resolution',
method: _jsApiCreator.constants.post
},
'kbPreferences': {
url: 'kbPreferences',
method: _jsApiCreator.constants.get
},
'kbPreferences.update': {
url: 'kbPreferences',
method: _jsApiCreator.constants.patch
},
'repositionArticles.get': {
url: 'kbCategory/:categoryId/repositionArticles',
method: _jsApiCreator.constants.get
},
'repositionArticles.update': {
url: 'kbCategory/:categoryId/repositionArticles',
method: _jsApiCreator.constants.post
},
'moveCategory': {
url: 'kbCategory/:categoryId/moveCategory',
method: _jsApiCreator.constants.post
},
'languages': {
url: 'languages',
method: _jsApiCreator.constants.get
},
'displayPreferences.save': {
url: 'displayPreferences',
method: _jsApiCreator.constants.post
},
'displayPreferences.get': {
url: 'displayPreferences',
method: _jsApiCreator.constants.get
},
'displayPreferences.articlePresence': {
url: 'displayPreferences/articlePresence',
method: _jsApiCreator.constants.get
},
'agents': {
url: 'agents',
method: _jsApiCreator.constants.get
},
'agentById': {
url: 'agent/:agentId',
method: _jsApiCreator.constants.get
},
'tags': {
url: 'tags/search',
method: _jsApiCreator.constants.get
},
'rootCategories.get': {
url: 'kbRootCategories',
method: _jsApiCreator.constants.get
},
'trashedTranslations.get': {
url: 'articleTranslations/trashedTranslations',
method: _jsApiCreator.constants.get
},
'trashedTranslations.count': {
url: 'articleTranslations/trashedTranslations/count',
method: _jsApiCreator.constants.get
},
'trashedTranslations.restore': {
url: 'articleTranslations/trashedTranslations/restore',
method: _jsApiCreator.constants.post
},
'trashedTranslations.delete': {
url: 'articleTranslations/trashedTranslations/delete',
method: _jsApiCreator.constants.post
},
'trashedCategories.get': {
url: 'kbCategory/trashedCategories',
method: _jsApiCreator.constants.get
},
'trashedCategories.count': {
url: 'kbCategory/trashedCategories/count',
method: _jsApiCreator.constants.get
},
'trashedCategories.restore': {
url: 'kbCategory/trashedCategories/restore',
method: _jsApiCreator.constants.post
},
'trashedCategories.delete': {
url: 'kbCategory/trashedCategories/delete',
method: _jsApiCreator.constants.post
},
'kbRootCategory.add': {
url: 'kbRootCategories',
method: _jsApiCreator.constants.post
},
'kbRootCategory.get': {
url: 'kbRootCategories/:categoryId',
method: _jsApiCreator.constants.get
},
'kbRootCategory.update': {
url: 'kbRootCategories/:categoryId',
method: _jsApiCreator.constants.patch
},
'kbRootCategories.reorder': {
url: 'kbRootCategories/reorder',
method: _jsApiCreator.constants.post
},
'categoryTree.get': {
url: 'kbRootCategories/:categoryId/categoryTree',
method: _jsApiCreator.constants.get
},
'kbRootCategory.moveArticlesAndTrash': {
url: 'kbRootCategories/:categoryId/moveArticlesAndTrash',
method: _jsApiCreator.constants.post
},
'kbSections.add': {
url: 'kbRootCategories/:categoryId/kbSections',
method: _jsApiCreator.constants.post
},
'kbSections.get': {
url: 'kbSections/:categoryId',
method: _jsApiCreator.constants.get
},
'kbSections.reorder': {
url: 'kbSections/reorder',
method: _jsApiCreator.constants.post
},
'kbSection.move': {
url: 'kbSections/:categoryId/move',
method: _jsApiCreator.constants.post
},
'kbSection.moveArticlesAndTrash': {
url: 'kbSections/:categoryId/moveArticlesAndTrash',
method: _jsApiCreator.constants.post
},
'categoryReviewOwners.get': {
url: 'kbRootCategories/:categoryId/reviewOwners',
method: _jsApiCreator.constants.get
},
'categoryReviewOwners.add': {
url: 'kbRootCategories/:categoryId/reviewOwners/add',
method: _jsApiCreator.constants.post
},
'categoryReviewOwners.remove': {
url: 'kbRootCategories/:categoryId/reviewOwners/remove',
method: _jsApiCreator.constants.post
},
'articles.countByCategoryIds': {
url: 'articles/countByCategoryIds',
method: _jsApiCreator.constants.get
},
'uploadCloudAttachment': {
url: 'docsWorkspace/:workspaceId/uploadCloudAttachment',
method: _jsApiCreator.constants.post
},
'kbRootCategory.reviewOwners': {
url: 'kbRootCategories/:categoryId/reviewOwners',
method: 'get'
},
'kbRootCategory.reviewOwners.add': {
url: 'kbRootCategories/:categoryId/reviewOwners/add',
method: 'post'
},
'kbRootCategory.reviewOwners.remove': {
url: 'kbRootCategories/:categoryId/reviewOwners/remove',
method: 'post'
},
'groups.get': {
url: 'groups',
method: 'get'
},
'kbRootCategory.users': {
url: 'kbRootCategories/:categoryId/users',
method: 'get'
},
'kbRootCategory.userDetail': {
url: 'kbRootCategories/:categoryId/users/:userId',
method: 'get'
},
'kbSection.get': {
url: 'kbSections/:categoryId',
method: 'get'
},
'kbSection.update': {
url: 'kbSections/:categoryId',
method: 'patch'
},
'kbSection.add': {
url: 'kbSections',
method: 'post'
},
'kbRootCategory.permalinks.add': {
url: 'kbRootCategories/:categoryId/translations/:locale/permalinks/add',
method: 'post'
},
'kbRootCategory.permalinks.get': {
url: 'kbRootCategories/:categoryId/translations/:locale/permalinks',
method: 'get'
},
'kbRootCategory.permalinks.remove': {
url: 'kbRootCategories/:categoryId/translations/:locale/permalinks/remove',
method: 'post'
},
'kbRootCategory.permalinks.update': {
url: 'kbRootCategories/:categoryId/translations/:locale/permalinks',
method: _jsApiCreator.constants.post
},
'kbSection.permalinks.update': {
url: 'kbSections/:categoryId/translations/:locale/permalinks',
method: _jsApiCreator.constants.post
},
'kbSection.permalinks.add': {
url: 'kbSections/:categoryId/translations/:locale/permalinks/add',
method: 'post'
},
'kbSection.permalinks.get': {
url: 'kbSections/:categoryId/translations/:locale/permalinks',
method: 'get'
},
'kbSection.permalinks.remove': {
url: 'kbSections/:categoryId/translations/:locale/permalinks/remove',
method: 'post'
},
'shareDocsWorkspace': {
url: 'articles/shareDocsWorkspace',
method: 'post'
},
'helpCenter.get': {
url: 'helpCenters/:helpCenterId',
method: 'get'
},
'scheduleAutoTranslate': {
url: 'articles/:articleId/scheduleAutoTranslate',
method: 'post'
},
'articleTranslations.concurrentEditStatus': {
url: 'articleTranslations/:articleId/concurrentEditStatus',
method: 'get'
},
'translations.concurrentEditStatus': {
url: 'articles/:articleId/translations/:locale/concurrentEditStatus',
method: 'get'
},
'convertCloudDocumentToHtml': {
url: 'convertCloudDocumentToHtml',
method: 'post'
},
'articles.interactedUsers': {
url: 'articles/:articleId/translations/:locale/interactedUsers',
method: _jsApiCreator.constants.get
},
'articles.interactedUsers.count': {
url: 'articles/:articleId/translations/:locale/interactedUsers/count',
method: _jsApiCreator.constants.get
},
'articles.clone': {
url: 'articles/:articleId/translations/:locale/clone',
method: _jsApiCreator.constants.post
},
'googleAnalyticsReports': {
url: 'ganalytics/reports',
method: 'get'
},
'articleTags': {
url: 'articleTags',
method: 'get'
},
'articles.translations.usedTickets': {
url: 'articles/:articleId/translations/:locale/usedTickets',
method: 'get'
},
'articles.translations.undo': {
url: 'articles/:articleId/translations/:locale/undoVote',
method: _jsApiCreator.constants.post
},
'articles.translations.feedback': {
url: 'articles/:articleId/translations/:locale/feedbacks',
method: _jsApiCreator.constants.post
},
'comments.uploadAttachment': {
url: 'uploads',
method: _jsApiCreator.constants.post
},
'comments.uploadCloudAttachment': {
url: 'uploadCloudAttachment',
method: _jsApiCreator.constants.post
},
'articles.insights.viewsCount': {
url: 'articleInsights/count',
method: _jsApiCreator.constants.get
},
'articles.insights.viewsList': {
url: 'articleInsights/interactedUsers',
method: _jsApiCreator.constants.get
},
'articles.comments.addAsTicket': {
url: 'articles/:articleId/translations/:locale/comments/:commentId/convertAsTicket',
method: _jsApiCreator.constants.post
},
'comments.deleteTempAttach': {
url: 'uploads/:id',
method: _jsApiCreator.constants.deleteIt
},
'articles.translations.resetMetrics': {
url: 'articles/:articleId/translations/:locale/insights/reset',
method: _jsApiCreator.constants.post
},
'articles.translations.followArticle': {
url: ':moduleAPIName/:entityId/follow',
method: _jsApiCreator.constants.post
},
'articles.translations.unfollowArticle': {
url: ':moduleAPIName/:entityId/unfollow',
method: _jsApiCreator.constants.post
},
'articles.translations.followersCount': {
url: ':moduleAPIName/:entityId/followersCount',
method: _jsApiCreator.constants.get
},
'articles.translations.followersDetails': {
url: ':moduleAPIName/:entityId/followers',
method: _jsApiCreator.constants.get
},
'file.export': {
url: 'fileExport',
method: _jsApiCreator.constants.post
},
'file.export.status': {
url: 'fileExport/status',
method: _jsApiCreator.constants.get
},
'comments.trashed': {
url: 'kbComments/trashedComments',
method: _jsApiCreator.constants.get
},
'comments.restore': {
url: 'kbComments/trashedComments/restore',
method: _jsApiCreator.constants.post
},
'comments.delete': {
url: 'kbComments/trashedComments/delete',
method: _jsApiCreator.constants.post
},
'comments.trashed.count': {
url: 'kbComments/trashedComments/count',
method: _jsApiCreator.constants.get
},
'comments.moveToTrash': {
url: 'kbComments/moveToTrash',
method: _jsApiCreator.constants.post
},
'comments.approve': {
url: 'kbComments/approve',
method: _jsApiCreator.constants.post
},
'comments.moderated': {
url: 'kbComments/moderatedComments',
method: _jsApiCreator.constants.get
},
'comments.moderated.count': {
url: 'kbComments/moderatedComments/count',
method: _jsApiCreator.constants.get
},
'articles.translations.answer': {
url: 'articles/:articleId/translations/:locale/answer',
method: _jsApiCreator.constants.get
},
'kbRootCategory.moderators.add': {
url: 'kbRootCategories/:categoryId/moderators/add',
method: _jsApiCreator.constants.post
},
'kbRootCategory.moderators.remove': {
url: 'kbRootCategories/:categoryId/moderators/remove',
method: _jsApiCreator.constants.post
}
};
exports["default"] = _default;