halo-theme-dream
Version:
梦之城,童话梦境,动漫类型博客主题。
1,686 lines (1,603 loc) • 634 kB
JavaScript
/******/ (function() { // webpackBootstrap
/******/ var __webpack_modules__ = ({
/***/ 6587:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.AdminApiClient = void 0;
const url_1 = __webpack_require__(6998);
const clients_1 = __webpack_require__(6904);
class AdminApiClient {
constructor(client) {
this.client = client.buildHttpClient();
this._attachment = new clients_1.AttachmentClient(this.client);
this._backup = new clients_1.BackupClient(this.client);
this._category = new clients_1.CategoryClient(this.client);
this._installation = new clients_1.InstallationClient(this.client);
this._journalComment = new clients_1.JournalCommentClient(this.client);
this._journal = new clients_1.JournalClient(this.client);
this._link = new clients_1.LinkClient(this.client);
this._log = new clients_1.LogClient(this.client);
this._mail = new clients_1.MailClient(this.client);
this._menu = new clients_1.MenuClient(this.client);
this._migration = new clients_1.MigrationClient(this.client);
this._option = new clients_1.OptionClient(this.client);
this._photo = new clients_1.PhotoClient(this.client);
this._postComment = new clients_1.PostCommentClient(this.client);
this._post = new clients_1.PostClient(this.client);
this._sheetComment = new clients_1.SheetCommentClient(this.client);
this._sheet = new clients_1.SheetClient(this.client);
this._statistic = new clients_1.StatisticClient(this.client);
this._tag = new clients_1.TagClient(this.client);
this._theme = new clients_1.ThemeClient(this.client);
this._user = new clients_1.UserClient(this.client);
this._staticStorage = new clients_1.StaticStorageClient(this.client);
this._comment = new clients_1.CommentClient(this.client);
this._actuator = new clients_1.ActuatorClient(this.client);
}
get attachment() {
return this._attachment;
}
get backup() {
return this._backup;
}
get category() {
return this._category;
}
get installation() {
return this._installation;
}
get journalComment() {
return this._journalComment;
}
get journal() {
return this._journal;
}
get link() {
return this._link;
}
get log() {
return this._log;
}
get mail() {
return this._mail;
}
get menu() {
return this._menu;
}
get migration() {
return this._migration;
}
get option() {
return this._option;
}
get photo() {
return this._photo;
}
get postComment() {
return this._postComment;
}
get post() {
return this._post;
}
get sheetComment() {
return this._sheetComment;
}
get sheet() {
return this._sheet;
}
get statistic() {
return this._statistic;
}
get tag() {
return this._tag;
}
get theme() {
return this._theme;
}
get user() {
return this._user;
}
get staticStorage() {
return this._staticStorage;
}
get comment() {
return this._comment;
}
get actuator() {
return this._actuator;
}
getEnvironment() {
const path = (0, url_1.buildPath)({
endpointName: 'environments',
});
return this.client.get(path, {});
}
getLogFile(lines) {
const path = (0, url_1.buildPath)({
endpointName: 'halo/logfile',
});
return this.client.get(path, { lines });
}
isInstalled() {
const path = (0, url_1.buildPath)({
endpointName: 'is_installed',
});
return this.client.get(path, {});
}
logout() {
const path = (0, url_1.buildPath)({
endpointName: 'logout',
});
return this.client.post(path, {});
}
sendResetPasswordCode(params) {
const path = (0, url_1.buildPath)({
endpointName: 'password/code',
});
return this.client.post(path, params);
}
resetPassword(params) {
const path = (0, url_1.buildPath)({
endpointName: 'password/reset',
});
return this.client.put(path, params);
}
refreshToken(refreshToken) {
const path = (0, url_1.buildPath)({
endpointName: `refresh/${refreshToken}`,
});
return this.client.post(path, {});
}
needMFACode(params) {
const path = (0, url_1.buildPath)({
endpointName: 'login/precheck',
});
return this.client.post(path, Object.assign({}, params));
}
login(params) {
const path = (0, url_1.buildPath)({
endpointName: 'login',
});
return this.client.post(path, Object.assign({}, params));
}
}
exports.AdminApiClient = AdminApiClient;
//# sourceMappingURL=AdminApiClient.js.map
/***/ }),
/***/ 6710:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.AuthorizedClient = void 0;
const url_1 = __webpack_require__(6998);
const rest_api_client_1 = __webpack_require__(5040);
class AuthorizedClient {
constructor(baseUrl) {
const requestConfigBuilder = new rest_api_client_1.HaloRequestConfigBuilder({
baseUrl: baseUrl,
});
const responseHandler = new rest_api_client_1.HaloResponseHandler();
this.client = new rest_api_client_1.DefaultHttpClient({
responseHandler,
requestConfigBuilder,
});
}
isInstalled() {
const path = (0, url_1.buildPath)({
endpointName: 'is_installed',
});
return this.client.get(path, {});
}
sendResetPasswordCode(params) {
const path = (0, url_1.buildPath)({
endpointName: 'password/code',
});
return this.client.post(path, params);
}
resetPassword(params) {
const path = (0, url_1.buildPath)({
endpointName: 'password/reset',
});
return this.client.post(path, params);
}
refreshToken(refreshToken) {
const path = (0, url_1.buildPath)({
endpointName: `refresh/${refreshToken}`,
});
return this.client.post(path, {});
}
login(params) {
const path = (0, url_1.buildPath)({
endpointName: 'login',
});
return this.client.post(path, Object.assign({}, params));
}
needMFACode(params) {
const path = (0, url_1.buildPath)({
endpointName: 'login/precheck',
});
return this.client.post(path, Object.assign({}, params));
}
}
exports.AuthorizedClient = AuthorizedClient;
//# sourceMappingURL=AuthorizedClient.js.map
/***/ }),
/***/ 6618:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.ActuatorClient = void 0;
const url_1 = __webpack_require__(6998);
class ActuatorClient {
constructor(client) {
this.client = client;
}
getLogfile() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/logfile',
});
return this.client.get(path, {});
}
getEnv() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/env',
});
return this.client.get(path, {});
}
getSystemCpuCount() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/metrics/system.cpu.count',
});
return this.client.get(path, {});
}
getSystemCpuUsage() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/metrics/system.cpu.usage',
});
return this.client.get(path, {});
}
getProcessUptime() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/metrics/process.uptime',
});
return this.client.get(path, {});
}
getProcessStartTime() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/metrics/process.start.time',
});
return this.client.get(path, {});
}
getProcessCpuUsage() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/metrics/process.cpu.usage',
});
return this.client.get(path, {});
}
getJvmMemoryMax() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/metrics/jvm.memory.max',
});
return this.client.get(path, {});
}
getJvmMemoryCommitted() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/metrics/jvm.memory.committed',
});
return this.client.get(path, {});
}
getJvmMemoryUsed() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/metrics/jvm.memory.used',
});
return this.client.get(path, {});
}
getJvmGcPause() {
const path = (0, url_1.buildPath)({
endpointName: 'actuator/metrics/jvm.gc.pause',
});
return this.client.get(path, {});
}
}
exports.ActuatorClient = ActuatorClient;
//# sourceMappingURL=ActuatorClient.js.map
/***/ }),
/***/ 399:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.AttachmentClient = void 0;
const rest_api_client_1 = __webpack_require__(5040);
const url_1 = __webpack_require__(6998);
class AttachmentClient {
constructor(client) {
this.client = client;
}
/**
* Gets attachment detail by id.
*
* @param attachmentId attachment id
* @returns Returns attachment detail response.
*/
get(attachmentId) {
const path = (0, url_1.buildPath)({
endpointName: `attachments/${attachmentId}`,
});
return this.client.get(path, {});
}
/**
* Page query attachment list.
*
* @param params attachment query parameter
* @returns Returns attachment page response.
*/
list(params) {
const path = (0, url_1.buildPath)({
endpointName: 'attachments',
});
return this.client.get(path, Object.assign({}, params));
}
/**
* Batch delete attachment permanently by attachment ids.
*
* @param attachmentIds a collection of attachment id
* @returns Returns attachments of deleted
*/
deleteInBatch(attachmentIds) {
const path = (0, url_1.buildPath)({
endpointName: 'attachments',
});
return this.client.delete(path, attachmentIds);
}
/**
* Delete attachment permanently by attachment id.
*
* @param attachmentId attachment id
* @returns Returns attachment detail of deleted
*/
delete(attachmentId) {
const path = (0, url_1.buildPath)({
endpointName: `attachments/${attachmentId}`,
});
return this.client.delete(path, {});
}
/**
* Update attachment name by id.
*
* @param attachmentId attachment id
* @param name a new attachment name
* @returns Returns an updated attachment response.
*/
update(attachmentId, name) {
const path = (0, url_1.buildPath)({
endpointName: `attachments/${attachmentId}`,
});
return this.client.put(path, { name });
}
/**
* List all of attachment media types.
*
* @returns Returns attachment media types response.
*/
listMediaTypes() {
const path = (0, url_1.buildPath)({
endpointName: 'attachments/media_types',
});
return this.client.get(path, {});
}
/**
* List all of attachment types.
*
* @returns Returns a response of attachment types.
*/
listTypes() {
const path = (0, url_1.buildPath)({
endpointName: 'attachments/types',
});
return this.client.get(path, {});
}
/**
* Upload a single attachment file.
*
* @param data attachment file object.
* @param options other upload options.
* @returns Returns a response of uploaded attachment
*/
upload(data, options) {
const path = (0, url_1.buildPath)({
endpointName: 'attachments/upload',
});
const formData = new rest_api_client_1.FormData();
formData.append('file', data);
return this.client.post(path, formData, Object.assign({}, options));
}
/**
* Batch upload attachments.
*
* @param data attachment file object.
* @param options other upload options.
* @returns Returns a response of uploaded attachments.
*/
uploadInBatch(data, options) {
const path = (0, url_1.buildPath)({
endpointName: 'attachments/uploads',
});
const formData = new rest_api_client_1.FormData();
data.forEach((fileStream) => {
formData.append('files', fileStream);
});
return this.client.post(path, formData, Object.assign({}, options));
}
}
exports.AttachmentClient = AttachmentClient;
//# sourceMappingURL=AttachmentClient.js.map
/***/ }),
/***/ 5260:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.BackupClient = void 0;
const url_1 = __webpack_require__(6998);
class BackupClient {
constructor(client) {
this.client = client;
}
getWorkdirBackup(filename) {
const path = (0, url_1.buildPath)({
endpointName: `backups/work-dir/fetch?filename=${filename}`,
});
return this.client.get(path, {});
}
getDataBackup(filename) {
const path = (0, url_1.buildPath)({
endpointName: `backups/data/fetch?filename=${filename}`,
});
return this.client.get(path, {});
}
getMarkdownBackup(filename) {
const path = (0, url_1.buildPath)({
endpointName: `backups/markdown/fetch?filename=${filename}`,
});
return this.client.get(path, {});
}
backupWorkdir(options) {
const path = (0, url_1.buildPath)({
endpointName: 'backups/work-dir',
});
return this.client.post(path, options);
}
getWorkdirBackupOptions() {
const path = (0, url_1.buildPath)({
endpointName: 'backups/work-dir/options',
});
return this.client.get(path, {});
}
listWorkdirBackups() {
const path = (0, url_1.buildPath)({
endpointName: 'backups/work-dir',
});
return this.client.get(path, {});
}
deleteWorkdirBackup(filename) {
const path = (0, url_1.buildPath)({
endpointName: `backups/work-dir`,
});
return this.client.delete(path, { filename });
}
backupData() {
const path = (0, url_1.buildPath)({
endpointName: 'backups/data',
});
return this.client.post(path, {});
}
listDataBackups() {
const path = (0, url_1.buildPath)({
endpointName: 'backups/data',
});
return this.client.get(path, {});
}
deleteDataBackup(filename) {
const path = (0, url_1.buildPath)({
endpointName: `backups/data`,
});
return this.client.delete(path, { filename });
}
backupMarkdown(params) {
const path = (0, url_1.buildPath)({
endpointName: 'backups/markdown/export',
});
return this.client.post(path, params);
}
listMarkdownBackups() {
const path = (0, url_1.buildPath)({
endpointName: 'backups/markdown/export',
});
return this.client.get(path, {});
}
deleteMarkdownBackup(filename) {
const path = (0, url_1.buildPath)({
endpointName: `backups/markdown/export`,
});
return this.client.delete(path, { filename });
}
importMarkdown(data, options) {
const path = (0, url_1.buildPath)({
endpointName: 'backups/markdown/import',
});
const formData = new FormData();
formData.append('file', data);
return this.client.post(path, formData, Object.assign({}, options));
}
}
exports.BackupClient = BackupClient;
//# sourceMappingURL=BackupClient.js.map
/***/ }),
/***/ 6774:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.CategoryClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class CategoryClient {
constructor(client) {
this.client = client;
}
/**
* Lists all categories.
*
* @param params parameter for queries
* @returns A response of all categories.
*/
list(params) {
const path = (0, url_1.buildPath)({
endpointName: 'categories',
});
return this.client.get(path, Object.assign({}, params));
}
/**
* List all categories as tree.
*
* @param sort sort option for queries, value is category field
* @returns A response of all categories.
*/
listAsTree(sort) {
const path = (0, url_1.buildPath)({
endpointName: 'categories/tree_view',
});
return this.client.get(path, { sort });
}
/**
* Gets category detail by id.
*
* @param categoryId category id
* @returns A response of category detail.
*/
get(categoryId) {
const path = (0, url_1.buildPath)({
endpointName: `categories/${categoryId}`,
});
return this.client.get(path, {});
}
/**
* Creates a category.
*
* @param params category parameter to create
* @returns A response of created category.
*/
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'categories',
});
return this.client.post(path, Object.assign({}, params));
}
/**
* Updates category by id
*
* @param categoryId category id
* @param params category update parameter
* @returns A response of updated category.
*/
update(categoryId, params) {
const path = (0, url_1.buildPath)({
endpointName: `categories/${categoryId}`,
});
return this.client.put(path, Object.assign({}, params));
}
/**
* Updates category in batch
*
* @param params
*/
updateInBatch(params) {
const path = (0, url_1.buildPath)({
endpointName: 'categories/batch',
});
return this.client.put(path, [...params]);
}
/**
* Deletes a category by id.
*
* @param categoryId category id
*/
delete(categoryId) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: `categories/${categoryId}`,
});
yield this.client.delete(path, {});
});
}
}
exports.CategoryClient = CategoryClient;
//# sourceMappingURL=CategoryClient.js.map
/***/ }),
/***/ 8666:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.CommentClient = void 0;
const url_1 = __webpack_require__(6998);
class CommentClient {
constructor(client) {
this.client = client;
}
list(target, params) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments`,
});
return this.client.get(path, params);
}
latest(target, top, status) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments/latest`,
});
return this.client.get(path, { top, status });
}
listAsView(target, targetId, params) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments/${targetId}/list_view`,
});
return this.client.get(path, params);
}
listAsTreeView(target, targetId, params) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments/${targetId}/tree_view`,
});
return this.client.get(path, params);
}
get(target, commentId) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments/${commentId}`,
});
return this.client.get(path, {});
}
create(target, params) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments`,
});
return this.client.post(path, params);
}
update(target, commentId, params) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments/${commentId}`,
});
return this.client.get(path, params);
}
updateStatusById(target, commentId, status) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments/${commentId}/status/${status}`,
});
return this.client.put(path, {});
}
updateStatusInBatch(target, commentIds, status) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments/status/${status}`,
});
return this.client.put(path, commentIds);
}
delete(target, commentId) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments/${commentId}`,
});
return this.client.delete(path, {});
}
deleteInBatch(target, postCommentIds) {
const path = (0, url_1.buildPath)({
endpointName: `${target}/comments`,
});
return this.client.delete(path, postCommentIds);
}
}
exports.CommentClient = CommentClient;
//# sourceMappingURL=CommentClient.js.map
/***/ }),
/***/ 8400:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.InstallationClient = void 0;
const url_1 = __webpack_require__(6998);
class InstallationClient {
constructor(client) {
this.client = client;
}
/**
* Initializes the blog.
*
* @param params installation parameter
* @returns A response of installation status message.
*/
install(params) {
const path = (0, url_1.buildPath)({
endpointName: 'installations',
});
return this.client.post(path, Object.assign({}, params));
}
}
exports.InstallationClient = InstallationClient;
//# sourceMappingURL=InstallationClient.js.map
/***/ }),
/***/ 173:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.JournalClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class JournalClient {
constructor(client) {
this.client = client;
}
/**
* Lists journals.
*
* @param params parameter for queries
* @returns A page response of journals.
*/
list(params) {
const path = (0, url_1.buildPath)({
endpointName: 'journals',
});
return this.client.get(path, Object.assign({}, params));
}
/**
* Gets latest journals.
*
* @param top top option for queries
* @returns A response of lastes journals.
*/
latest(top) {
const path = (0, url_1.buildPath)({
endpointName: 'journals/latest',
});
return this.client.get(path, { top });
}
/**
* Creates a journal.
*
* @param params parameter for creates
* @returns A response of created journal.
*/
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'journals',
});
return this.client.post(path, Object.assign({}, params));
}
/**
* Updates a journal by id.
*
* @param journalId journal id
* @param params parameter for updates
* @returns A response of updated journal.
*/
update(journalId, params) {
const path = (0, url_1.buildPath)({
endpointName: `journals/${journalId}`,
});
return this.client.put(path, Object.assign({}, params));
}
/**
* Deletes a journal by id.
* @param journalId journal id
*/
delete(journalId) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: `journals/${journalId}`,
});
yield this.client.delete(path, {});
});
}
}
exports.JournalClient = JournalClient;
//# sourceMappingURL=JournalClient.js.map
/***/ }),
/***/ 5503:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.JournalCommentClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class JournalCommentClient {
constructor(client) {
this.client = client;
}
/**
* Lists journal comments.
*
* @param params parameter for queries
* @returns A page response of journals.
*/
list(params) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: 'journals/comments',
});
return this.client.get(path, Object.assign({}, params));
});
}
/**
* Creates a journal comment.
*
* @param params comment parameter for creates
* @returns A response of created journal comment.
*/
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'journals/comments',
});
return this.client.post(path, Object.assign({}, params));
}
/**
* Deletes a journal comment by id.
*
* @param commentId journal comment id.
* @returns A response of deleted journal comment.
*/
delete(commentId) {
const path = (0, url_1.buildPath)({
endpointName: `journals/comments/${commentId}`,
});
return this.client.delete(path, {});
}
/**
* Updates journal comment status by id.
*
* @param commentId journal comment id
* @param status comment status
* @returns A response of updated journal comment.
*/
update(commentId, status) {
const path = (0, url_1.buildPath)({
endpointName: `journals/comments/${commentId}/status/${status}`,
});
return this.client.put(path, {});
}
/**
* Lists comment with list view.
*
* @param params parameter for queries
* @returns A page response of journal comments.
*/
listAsView(params) {
const path = (0, url_1.buildPath)({
endpointName: `journals/comments/${params.journalId}/list_view`,
});
return this.client.get(path, Object.assign({}, params));
}
/**
* Lists comment with tree view.
*
* @param params parameter for queries
* @returns A page response of journal comments tree.
*/
listAsTree(params) {
const path = (0, url_1.buildPath)({
endpointName: `journals/comments/${params.journalId}/tree_view`,
});
return this.client.get(path, Object.assign({}, params));
}
/**
* Lists latest journal comments.
*
* @param params parameter for queries
* @returns A response of latest journal comments.
*/
latest(params) {
const path = (0, url_1.buildPath)({
endpointName: 'journals/comments/latest',
});
return this.client.get(path, Object.assign({}, params));
}
}
exports.JournalCommentClient = JournalCommentClient;
//# sourceMappingURL=JournalCommentClient.js.map
/***/ }),
/***/ 9207:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.LinkClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class LinkClient {
constructor(client) {
this.client = client;
}
list(sort) {
const path = (0, url_1.buildPath)({
endpointName: 'links',
});
return this.client.get(path, { sort });
}
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'links',
});
return this.client.post(path, Object.assign({}, params));
}
get(id) {
const path = (0, url_1.buildPath)({
endpointName: `links/${id}`,
});
return this.client.get(path, {});
}
update(linkId, params) {
const path = (0, url_1.buildPath)({
endpointName: `links/${linkId}`,
});
return this.client.put(path, Object.assign({}, params));
}
updateInBatch(params) {
const path = (0, url_1.buildPath)({
endpointName: 'links/batch',
});
return this.client.put(path, [...params]);
}
delete(id) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: `links/${id}`,
});
yield this.client.delete(path, {});
});
}
listTeams() {
const path = (0, url_1.buildPath)({
endpointName: 'links/teams',
});
return this.client.get(path, {});
}
}
exports.LinkClient = LinkClient;
//# sourceMappingURL=LinkClient.js.map
/***/ }),
/***/ 9842:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.LogClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class LogClient {
constructor(client) {
this.client = client;
}
/**
* List action logs by params.
*
* @param params
*/
list(params) {
const path = (0, url_1.buildPath)({
endpointName: 'logs',
});
return this.client.get(path, Object.assign({}, params));
}
/**
* Clear action logs
*/
clear() {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: 'logs/clear',
});
yield this.client.get(path, {});
});
}
/**
* Get latest action logs
*
* @param top the number of logs to get
*/
latest(top) {
const path = (0, url_1.buildPath)({
endpointName: 'logs/latest',
});
return this.client.get(path, { top });
}
}
exports.LogClient = LogClient;
//# sourceMappingURL=LogClient.js.map
/***/ }),
/***/ 7206:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MailClient = void 0;
const url_1 = __webpack_require__(6998);
class MailClient {
constructor(client) {
this.client = client;
}
testSmtpService(params) {
const path = (0, url_1.buildPath)({
endpointName: 'mails/test',
});
return this.client.post(path, Object.assign({}, params));
}
testConnect() {
const path = (0, url_1.buildPath)({
endpointName: 'mails/test/connection',
});
return this.client.post(path, {});
}
}
exports.MailClient = MailClient;
//# sourceMappingURL=MailClient.js.map
/***/ }),
/***/ 7530:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MenuClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class MenuClient {
constructor(client) {
this.client = client;
}
list() {
const path = (0, url_1.buildPath)({
endpointName: 'menus',
});
return this.client.get(path, {});
}
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'menus',
});
return this.client.post(path, Object.assign({}, params));
}
createInBatch(params) {
const path = (0, url_1.buildPath)({
endpointName: 'menus/batch',
});
return this.client.post(path, [...params]);
}
get(menuId) {
const path = (0, url_1.buildPath)({
endpointName: `menus/${menuId}`,
});
return this.client.post(path, {});
}
update(menuId, params) {
const path = (0, url_1.buildPath)({
endpointName: `menus/${menuId}`,
});
return this.client.put(path, Object.assign({}, params));
}
updateInBatch(params) {
const path = (0, url_1.buildPath)({
endpointName: 'menus/batch',
});
return this.client.put(path, [...params]);
}
delete(menuId) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: `menus/${menuId}`,
});
yield this.client.delete(path, {});
});
}
deleteInBatch(menuIds) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: 'menus/batch',
});
yield this.client.delete(path, [...menuIds]);
});
}
listTreeViewByTeam(team, sort) {
const path = (0, url_1.buildPath)({
endpointName: 'menus/team/tree_view',
});
return this.client.get(path, { team, sort });
}
listTeams() {
const path = (0, url_1.buildPath)({
endpointName: 'menus/teams',
});
return this.client.get(path, {});
}
listTreeView(sort) {
const path = (0, url_1.buildPath)({
endpointName: 'menus/tree_view',
});
return this.client.get(path, { sort });
}
}
exports.MenuClient = MenuClient;
//# sourceMappingURL=MenuClient.js.map
/***/ }),
/***/ 9644:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.MigrationClient = void 0;
const tslib_1 = __webpack_require__(655);
const rest_api_client_1 = __webpack_require__(5040);
const url_1 = __webpack_require__(6998);
class MigrationClient {
constructor(client) {
this.client = client;
}
migrate(data, options) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: 'migrations/halo',
});
const formData = new rest_api_client_1.FormData();
formData.append('file', data);
yield this.client.post(path, formData, Object.assign({}, options));
});
}
}
exports.MigrationClient = MigrationClient;
//# sourceMappingURL=MigrationClient.js.map
/***/ }),
/***/ 3913:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.OptionClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class OptionClient {
constructor(client) {
this.client = client;
}
list() {
const path = (0, url_1.buildPath)({
endpointName: 'options',
});
return this.client.get(path, {});
}
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'options',
});
return this.client.post(path, Object.assign({}, params));
}
get(id) {
const path = (0, url_1.buildPath)({
endpointName: `options/${id}`,
});
return this.client.get(path, {});
}
update(optionId, params) {
const path = (0, url_1.buildPath)({
endpointName: `options/${optionId}`,
});
return this.client.put(path, Object.assign({}, params));
}
delete(optionId) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: `options/${optionId}`,
});
yield this.client.delete(path, {});
});
}
listAsView(params) {
const path = (0, url_1.buildPath)({
endpointName: 'options/list_view',
});
return this.client.get(path, Object.assign({}, params));
}
listAsMapView() {
const path = (0, url_1.buildPath)({
endpointName: 'options/map_view',
});
return this.client.get(path, {});
}
listAsMapViewByKeys(params) {
const path = (0, url_1.buildPath)({
endpointName: 'options/map_view/keys',
});
return this.client.post(path, params);
}
saveMapView(params) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: 'options/map_view/saving',
});
yield this.client.post(path, Object.assign({}, params));
});
}
save(params) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: 'options/saving',
});
yield this.client.post(path, [...params]);
});
}
}
exports.OptionClient = OptionClient;
//# sourceMappingURL=OptionClient.js.map
/***/ }),
/***/ 402:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.PhotoClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class PhotoClient {
constructor(client) {
this.client = client;
}
list(params) {
const path = (0, url_1.buildPath)({
endpointName: 'photos',
});
return this.client.get(path, Object.assign({}, params));
}
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'photos',
});
return this.client.post(path, Object.assign({}, params));
}
createInBatch(params) {
const path = (0, url_1.buildPath)({
endpointName: 'photos/batch',
});
return this.client.post(path, [...params]);
}
get(photoId) {
const path = (0, url_1.buildPath)({
endpointName: `photos/${photoId}`,
});
return this.client.get(path, {});
}
update(photoId, params) {
const path = (0, url_1.buildPath)({
endpointName: `photos/${photoId}`,
});
return this.client.put(path, Object.assign({}, params));
}
updateInBatch(params) {
const path = (0, url_1.buildPath)({
endpointName: 'photos/batch',
});
return this.client.put(path, [...params]);
}
delete(photoId) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: `photos/${photoId}`,
});
yield this.client.delete(path, {});
});
}
deleteInBatch(photoIds) {
const path = (0, url_1.buildPath)({
endpointName: 'photos/batch',
});
return this.client.delete(path, photoIds);
}
latest(sort) {
const path = (0, url_1.buildPath)({
endpointName: 'photos/latest',
});
return this.client.get(path, { sort });
}
listTeams() {
const path = (0, url_1.buildPath)({
endpointName: 'photos/teams',
});
return this.client.get(path, {});
}
}
exports.PhotoClient = PhotoClient;
//# sourceMappingURL=PhotoClient.js.map
/***/ }),
/***/ 4682:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.PostClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class PostClient {
constructor(client) {
this.client = client;
}
list(params) {
const path = (0, url_1.buildPath)({
endpointName: 'posts',
});
return this.client.get(path, Object.assign({}, params));
}
get(postId) {
const path = (0, url_1.buildPath)({
endpointName: `posts/${postId}`,
});
return this.client.get(path, {});
}
getPreviewLinkById(postId) {
const path = (0, url_1.buildPath)({
endpointName: `posts/${postId}/preview`,
});
return this.client.get(path, {});
}
latest(top) {
const path = (0, url_1.buildPath)({
endpointName: 'posts/latest',
});
return this.client.get(path, { top });
}
listByStatus(status, query) {
const path = (0, url_1.buildPath)({
endpointName: `posts/status/${status}`,
});
return this.client.get(path, Object.assign({}, query));
}
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'posts',
});
return this.client.post(path, Object.assign({}, params));
}
update(postId, params) {
const path = (0, url_1.buildPath)({
endpointName: `posts/${postId}`,
});
return this.client.put(path, Object.assign({}, params));
}
updateStatusById(postId, status) {
const path = (0, url_1.buildPath)({
endpointName: `posts/${postId}/status/${status}`,
});
return this.client.put(path, {});
}
updateStatusInBatch(postIds, status) {
const path = (0, url_1.buildPath)({
endpointName: `posts/status/${status}`,
});
return this.client.put(path, postIds);
}
updateDraftById(postId, originalContent, content, keepRaw) {
const path = (0, url_1.buildPath)({
endpointName: `posts/${postId}/status/draft/content`,
});
return this.client.put(path, { originalContent, content, keepRaw });
}
like(postId) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: `posts/${postId}/likes`,
});
yield this.client.put(path, {});
});
}
delete(postId) {
const path = (0, url_1.buildPath)({
endpointName: `posts/${postId}`,
});
return this.client.delete(path, {});
}
deleteInBatch(postIds) {
const path = (0, url_1.buildPath)({
endpointName: 'posts',
});
return this.client.delete(path, postIds);
}
}
exports.PostClient = PostClient;
//# sourceMappingURL=PostClient.js.map
/***/ }),
/***/ 6494:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.PostCommentClient = void 0;
const url_1 = __webpack_require__(6998);
class PostCommentClient {
constructor(client) {
this.client = client;
}
list(params) {
const path = (0, url_1.buildPath)({
endpointName: 'posts/comments',
});
return this.client.get(path, Object.assign({}, params));
}
listAsView(params) {
const path = (0, url_1.buildPath)({
endpointName: `posts/comments/${params.postId}/list_view`,
});
return this.client.get(path, Object.assign({}, params));
}
listAsTreeView(params) {
const path = (0, url_1.buildPath)({
endpointName: `posts/comments/${params.postId}/tree_view`,
});
return this.client.get(path, Object.assign({}, params));
}
latest(params) {
const path = (0, url_1.buildPath)({
endpointName: 'posts/comments/latest',
});
return this.client.get(path, Object.assign({}, params));
}
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'posts/comments',
});
return this.client.post(path, Object.assign({}, params));
}
update(commentId, params) {
const path = (0, url_1.buildPath)({
endpointName: `posts/comments/${commentId}`,
});
return this.client.get(path, Object.assign({}, params));
}
updateStatusById(commentId, status) {
const path = (0, url_1.buildPath)({
endpointName: `posts/comments/${commentId}/status/${status}`,
});
return this.client.put(path, {});
}
updateStatusInBatch(commentIds, status) {
const path = (0, url_1.buildPath)({
endpointName: `posts/comments/status/${status}`,
});
return this.client.put(path, commentIds);
}
delete(commentId) {
const path = (0, url_1.buildPath)({
endpointName: `posts/comments/${commentId}`,
});
return this.client.delete(path, {});
}
deleteInBatch(postCommentIds) {
const path = (0, url_1.buildPath)({
endpointName: 'posts/comments',
});
return this.client.delete(path, postCommentIds);
}
}
exports.PostCommentClient = PostCommentClient;
//# sourceMappingURL=PostCommentClient.js.map
/***/ }),
/***/ 771:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.SheetClient = void 0;
const tslib_1 = __webpack_require__(655);
const url_1 = __webpack_require__(6998);
class SheetClient {
constructor(client) {
this.client = client;
}
list(params) {
const path = (0, url_1.buildPath)({
endpointName: 'sheets',
});
return this.client.get(path, Object.assign({}, params));
}
listIndependents() {
const path = (0, url_1.buildPath)({
endpointName: 'sheets/independent',
});
return this.client.get(path, {});
}
create(params) {
const path = (0, url_1.buildPath)({
endpointName: 'sheets',
});
return this.client.post(path, Object.assign({}, params));
}
get(sheetId) {
const path = (0, url_1.buildPath)({
endpointName: `sheets/${sheetId}`,
});
return this.client.get(path, {});
}
getPreviewLinkById(sheetId) {
const path = (0, url_1.buildPath)({
endpointName: `sheets/preview/${sheetId}`,
});
return this.client.get(path, {});
}
update(sheetId, params) {
const path = (0, url_1.buildPath)({
endpointName: `sheets/${sheetId}`,
});
return this.client.put(path, Object.assign({}, params));
}
updateStatusById(sheetId, status) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const path = (0, url_1.buildPath)({
endpointName: `sheets/${sheetId}/${status}`,
});
yield this.client.put(path, {});
});
}
updateDraftById(sheetId, originalContent, content, keepRaw) {
const path = (0, url_1.buildPath)({
endpointName: `sheets/${sheetId}/status/draft/content`,
});
return this.client.put(path, { originalContent, content, keepRaw });
}
delete(sheetId) {
const path = (0, url_1.buildPath)({
endpointName: `sheets/${sheetId}`,
});
return this.client.delete(path, {});
}
}
exports.SheetClient = SheetClient;
//# sourceMappingURL=SheetClient.js.map
/***/ }),
/***/ 6094:
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", ({ value: true }));
exports.SheetCommentClient = void 0;
const url_1 = __webpack_require__(6998);
class SheetCommentClient {
constructor(client) {
this.client = client;
}
list(params) {
const path = (0, url_1.buildPath)({
endpointName: 'sheets/comments',
});
return this.client.get(path, Object.assign({}, params));
}
get(commentId) {
const path = (0, url_1.buildPath)({
endpointName: `sheets/comments/${commentId}`,
});
return this.client.get(path, {});
}
listAsView(params) {
const path = (0, url_1.buildPath)({
endpointName: `sheets/comments/${params.sheetId}/list_view`,
});
return this.client.get(path, Object.assign({}, params));
}
listAsTreeView(params) {
const path = (0, url_1.buildPath)({
endpointName: `sheets/comments/${params.sheetId}/tree_view`,
});
return this.client.get(path, Object.assign({}, params));
}
latest(params) {
const path = (0, url_1.buildPath)({
endpointName: 'sheets/comments/latest',
});
return this.client.get(path, Object.assign({}, params));
}
create(params) {
const path = (0,