UNPKG

@pubby/sdk

Version:
36 lines (33 loc) 1.38 kB
import { __extends } from 'tslib'; import { PubbyModule } from '../../module.js'; import '../auth/index.js'; import PlaylistService from './services/playlist.js'; import RoomService from './services/room.js'; import UserService from './services/user.js'; import EnumService from './services/enum.js'; import FriendshipsService from './services/friendships.js'; import MediaService from './services/media.js'; import RecoveryService from './services/recovery.js'; import RolesService from './services/roles.js'; import { AuthModule } from '../auth/module.js'; var ApiModule = /** @class */ (function (_super) { __extends(ApiModule, _super); function ApiModule(client) { var _this = _super.call(this, client) || this; _this.playlist = new PlaylistService(_this); _this.room = new RoomService(_this); _this.user = new UserService(_this); _this.enum = new EnumService(_this); _this.friendships = new FriendshipsService(_this); _this.media = new MediaService(_this); _this.recovery = new RecoveryService(_this); _this.roles = new RolesService(_this); client.api = _this; // Requer o módulo de Auth client.require(AuthModule); return _this; } ApiModule.prototype.init = function () { }; return ApiModule; }(PubbyModule)); export { ApiModule };