@martymarron/cliff
Version:
19 lines (18 loc) • 715 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.ListCommandProcessor = void 0;
const liff_server_api_1 = require("liff-server-api");
const liff_app_command_processor_1 = require("./liff-app-command-processor");
class ListCommandProcessor extends liff_app_command_processor_1.LiffAppCommandProcessorBase {
constructor(options) {
super(options.baseUrl);
this.request = new liff_server_api_1.LiffAppGetRequest({
channelAccessToken: options.accessToken,
});
}
async process() {
const response = await this.client.getAll(this.request);
return response.apps;
}
}
exports.ListCommandProcessor = ListCommandProcessor;