cb10-sdk
Version:
Cybozu Office 10 SDK for Node.js
24 lines • 916 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const parser_1 = __importDefault(require("./parser"));
const reqests_1 = __importDefault(require("./reqests"));
/**
* Cybozu Office 10 のスケジュール機能にアクセスするためのクライアントクラス
*
* このクラスはスケジュール情報の取得などの機能を提供します。
*/
class ScheduleClient {
constructor(transport) {
this.transport = transport;
}
async getEvents(options) {
const query = reqests_1.default.getEvents(options);
const html = await this.transport.get({ query });
return parser_1.default.parseUserMonth(html);
}
}
exports.default = ScheduleClient;
//# sourceMappingURL=ScheduleClient.js.map