canvas-api-ts
Version:
Strongly typed canvas lms api
11 lines (10 loc) • 1.03 kB
TypeScript
import * as A from '../api/accountAPITypes';
import * as C from '../api/courseAPITypes';
import { Match } from '../request/requestBuidler';
import { Selector } from '../utils';
export declare function getAccount(): Promise<import("../api/responseTypes").Account[]>;
export declare function getAccountId(): Promise<number[]>;
export declare function getSubAccount(accountId: Match<A.SubAccount, "uriParams">["account_id"]): Promise<import("../api/responseTypes").Account[]>;
export declare function getCoursesInAccount(accountId: Match<A.SubAccount, "uriParams">["account_id"], courseOption: Match<C.ListCoursesByAUser, "param">): Promise<import("../api/responseTypes").Course[]>;
export declare function getCourseSyllabus<T>(courseId: Match<C.GetACourse, "uriParams">["id"], selector: Selector<Match<C.GetACourse, "response">, T>): Promise<T>;
export declare function getCourseSyllabusInAccount<T>(accountId: Match<A.SubAccount, "uriParams">["account_id"], selector: Selector<Match<C.GetACourse, "response">, T>): Promise<T[]>;