UNPKG

@rocket.chat/apps-engine

Version:

The engine code for the Rocket.Chat Apps which manages, runs, translates, coordinates and all of that.

27 lines 853 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AppAccessors = void 0; class AppAccessors { constructor(manager, appId) { this.appId = appId; this.accessorManager = manager.getAccessorManager(); this.apiManager = manager.getApiManager(); } get environmentReader() { return this.accessorManager.getEnvironmentRead(this.appId); } get environmentWriter() { return this.accessorManager.getEnvironmentWrite(this.appId); } get reader() { return this.accessorManager.getReader(this.appId); } get http() { return this.accessorManager.getHttp(this.appId); } get providedApiEndpoints() { return this.apiManager.listApis(this.appId); } } exports.AppAccessors = AppAccessors; //# sourceMappingURL=AppAccessors.js.map