Skip to content
Snippets Groups Projects
Commit d8458830 authored by Santiago González's avatar Santiago González
Browse files

Last commit types

parent bdf4f265
No related branches found
No related tags found
No related merge requests found
Showing
with 150 additions and 0 deletions
import { State } from "./State";
export declare class AppState extends State {
history: any;
location: any;
setHistory(history: any): void;
setLocation(location: any): void;
}
import * as Models from "../models";
import { Loadable, State } from "./State";
import { FetchCourseRequest, FetchCourseResponse, FetchCoursesResponse } from "./static/Course";
export declare class CourseState extends State {
courses: Loadable<Models.Course[] | undefined>;
currentCourse: Loadable<Models.Course | undefined>;
currentClass: Loadable<Models.CourseClass | undefined>;
setCurrentClass(currentClass: Partial<Loadable<Models.CourseClass | undefined>>): void;
setCourses(courses: Partial<Loadable<Models.Course[] | undefined>>): void;
setCurrentCourse(course: Partial<Loadable<Models.Course | undefined>>): void;
fetchCourses(): Promise<FetchCoursesResponse>;
fetchCourse(request: FetchCourseRequest): Promise<FetchCourseResponse>;
protected compare(c1: Models.Course, c2: Models.Course): number;
}
import * as Models from "../models";
import { Loadable, State } from "./State";
import { FetchFAQsResponse } from "./static/FAQ";
export declare class FAQState extends State {
faqs: Loadable<Models.FAQ[] | undefined>;
setFAQs(faqs: Partial<Loadable<Models.FAQ[] | undefined>>): void;
fetchFAQs(): Promise<FetchFAQsResponse>;
}
export interface Loadable<T> {
isLoading: boolean;
value: T;
}
export declare class State {
}
import { AppState } from "./AppState";
import { CourseState } from "./CourseState";
import { FAQState } from "./FAQState";
import { UpdateState } from "./UpdateState";
export declare class Store {
static INSTANCE: Store;
appState: AppState;
courseState: CourseState;
updateState: UpdateState;
faqsState: FAQState;
}
import * as Models from "../models";
import { Loadable, State } from "./State";
import { FetchUpdatesRequest, FetchUpdatesResponse } from "./static/Update";
export declare class UpdateState extends State {
updates: Loadable<Models.Update[] | undefined>;
setUpdates(updates: Partial<Loadable<Models.Update[] | undefined>>): void;
fetchUpdates(request: FetchUpdatesRequest): Promise<FetchUpdatesResponse>;
}
export { AppState } from "./AppState";
export { Base, BaseRequest, BaseResponse } from "./static/Base";
export { Course, FetchCoursesResponse, FetchCourseRequest, FetchCourseResponse } from "./static/Course";
export { CourseState } from "./CourseState";
export { State } from "./State";
export { Store } from "./Store";
import { AxiosResponse } from "axios";
export interface BaseRequest {
options?: any;
}
export interface BaseResponse extends AxiosResponse {
success: boolean;
}
export declare class Base {
protected static axios: import("axios").AxiosStatic;
protected static processResponse<T extends BaseResponse>(request: BaseRequest, result: AxiosResponse): T;
}
import * as Models from "../../models";
import { Base, BaseRequest, BaseResponse } from "./Base";
export declare class Course extends Base {
static fetchCourses(): Promise<FetchCoursesResponse>;
static fetchCourse(request: FetchCourseRequest): Promise<FetchCourseResponse>;
}
export interface FetchCoursesResponse extends BaseResponse {
courses: Models.Course[];
}
export interface FetchCourseRequest extends BaseRequest {
course: Models.Course | string;
}
export interface FetchCourseResponse extends BaseResponse {
course: Models.Course;
}
import * as Models from "../../models";
import { Base, BaseResponse } from "./Base";
export declare class FAQ extends Base {
static fetchFAQs(): Promise<FetchFAQsResponse>;
}
export interface FetchFAQsResponse extends BaseResponse {
faqs: Models.FAQ[];
}
import * as Models from "../../models";
import { Base, BaseRequest, BaseResponse } from "./Base";
export declare class Update extends Base {
static fetchUpdates(request: FetchUpdatesRequest): Promise<FetchUpdatesResponse>;
}
export interface FetchUpdatesRequest extends BaseRequest {
}
export interface FetchUpdatesResponse extends BaseResponse {
updates: Models.Update[];
}
import * as Models from "./models";
export { Models };
import * as Data from "./data";
export { Data };
export declare class BaseModel {
static fromJSON(json: any): BaseModel;
}
import { BaseModel } from "./BaseModel";
import { CourseClass } from "./CourseClass";
export declare class Course extends BaseModel {
static fromJSON(json: any): Course;
code: string;
eva: string;
name: string;
classes: CourseClass[];
iconURL: string;
}
import { BaseModel } from "./BaseModel";
import { Course } from "./Course";
export declare class CourseClass extends BaseModel {
static fillWithZeros(classNo: number, length: number): string;
static arrayFromJSON(json: any, course: Course): CourseClass[];
code: number;
title: string;
videoURLs: string[];
}
import { BaseModel } from "./BaseModel";
export declare class FAQ extends BaseModel {
static fromJSON(json: any): FAQ;
content: string;
title: string;
}
import { BaseModel } from "./BaseModel";
export declare class Update extends BaseModel {
static fromJSON(json: any): Update;
code: string;
name: string;
number: number;
title: string;
}
export { BaseModel } from "./BaseModel";
export { Course } from "./Course";
export { CourseClass } from "./CourseClass";
export { FAQ } from "./FAQ";
export { Update } from "./Update";
......@@ -2,6 +2,7 @@
"compilerOptions": {
"allowJs": true,
"baseUrl": ".",
"declaration": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"jsx": "react",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment