UNPKG

@khodorkovskyalexey/rasp-omgtu-sdk

Version:
17 lines (16 loc) 1.1 kB
import { HttpService } from '@nestjs/common'; import { RaspOmgtuScheduleFor, ScheduleResponse, SearchResponse } from '../rasp-omgtu-sdk.types'; export declare class RaspOmgtuSdkService { private readonly httpService; constructor(httpService: HttpService); static readonly baseApiUrl = "https://rasp.omgtu.ru/api"; private readonly searchUrl; private readonly baseScheduleUrlMapper; search(type: RaspOmgtuScheduleFor, filter: string): Promise<SearchResponse>; schedulesForGroup(groupId: number, start: string, finish: string, lng?: number): Promise<ScheduleResponse[]>; schedulesForAuditorium(auditoriumId: number, start: string, finish: string, lng?: number): Promise<ScheduleResponse[]>; schedulesForPerson(personId: number, start: string, finish: string, lng?: number): Promise<ScheduleResponse[]>; schedulesForLecturer(lecturerId: number, start: string, finish: string, lng?: number): Promise<ScheduleResponse[]>; schedulesForStudent(studentId: number, start: string, finish: string, lng?: number): Promise<ScheduleResponse[]>; private fetch; }