think/packages/domains/lib/api/wiki.js

166 lines
4.2 KiB
TypeScript
Raw Normal View History

2022-05-23 05:05:59 +00:00
"use strict";
exports.__esModule = true;
exports.WikiApiDefinition = void 0;
exports.WikiApiDefinition = {
/**
*
*/
getAllWikis: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-06-29 16:03:02 +00:00
server: 'list/all/:organizationId',
client: function (organizationId) { return "/wiki/list/all/".concat(organizationId); }
2022-05-23 05:05:59 +00:00
},
/**
*
*/
getOwnWikis: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-06-29 16:03:02 +00:00
server: 'list/own/:organizationId',
client: function (organizationId) { return "/wiki/list/own/".concat(organizationId); }
2022-05-23 05:05:59 +00:00
},
/**
*
*/
getJoinWikis: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-06-29 16:03:02 +00:00
server: 'list/join/:organizationId',
client: function (organizationId) { return "/wiki/list/join/".concat(organizationId); }
2022-05-23 05:05:59 +00:00
},
/**
*
*/
add: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'add',
client: function () { return '/wiki/add'; }
},
/**
*
*/
getHomeDocumentById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'homedoc/:id',
client: function (id) { return "/wiki/homedoc/".concat(id); }
},
/**
*
*/
getTocsById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'tocs/:id',
client: function (id) { return "/wiki/tocs/".concat(id); }
},
/**
*
*/
updateTocsById: {
2022-05-23 08:20:56 +00:00
method: 'patch',
2022-05-23 05:05:59 +00:00
server: 'tocs/:id/update',
client: function (id) { return "/wiki/tocs/".concat(id, "/update"); }
},
/**
*
*/
getDocumentsById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'documents/:id',
client: function (id) { return "/wiki/documents/".concat(id); }
},
/**
*
*/
getDetailById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'detail/:id',
client: function (id) { return "/wiki/detail/".concat(id); }
},
/**
*
*/
updateById: {
2022-05-23 08:20:56 +00:00
method: 'patch',
2022-05-23 05:05:59 +00:00
server: 'update/:id',
client: function (id) { return "/wiki/update/".concat(id); }
},
/**
*
*/
deleteById: {
2022-05-23 08:20:56 +00:00
method: 'delete',
2022-05-23 05:05:59 +00:00
server: 'delet/:id',
client: function (id) { return "/wiki/delet/".concat(id); }
},
/**
*
*/
getMemberById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: 'member/:id',
client: function (id) { return "/wiki/member/".concat(id); }
},
/**
*
*/
addMemberById: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'member/:id/add',
client: function (id) { return "/wiki/member/".concat(id, "/add"); }
},
/**
*
*/
updateMemberById: {
2022-05-23 08:20:56 +00:00
method: 'patch',
2022-05-23 05:05:59 +00:00
server: 'member/:id/update',
client: function (id) { return "/wiki/member/".concat(id, "/update"); }
},
/**
*
*/
deleteMemberById: {
2022-05-23 08:20:56 +00:00
method: 'delete',
2022-05-23 05:05:59 +00:00
server: 'member/:id/delete',
client: function (id) { return "/wiki/member/".concat(id, "/delete"); }
},
/**
*
*/
shareById: {
2022-05-23 08:20:56 +00:00
method: 'post',
2022-05-23 05:05:59 +00:00
server: 'share/:id',
client: function (id) { return "/wiki/share/".concat(id); }
},
/**
*
*/
getPublicHomeDocumentById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: '/public/homedoc/:id',
client: function (id) { return "/wiki/public/homedoc/".concat(id); }
},
/**
*
*/
getPublicTocsById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: '/public/tocs/:id',
client: function (id) { return "/wiki/public/tocs/".concat(id); }
},
/**
*
*/
getPublicDetailById: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: '/public/detail/:id',
client: function (id) { return "/wiki/public/detail/".concat(id); }
},
/**
*
*/
getPublicWikis: {
2022-05-23 08:20:56 +00:00
method: 'get',
2022-05-23 05:05:59 +00:00
server: '/public/wikis',
2022-05-23 08:20:56 +00:00
client: function () { return "/wiki/public/wikis"; }
2022-05-23 05:05:59 +00:00
}
};