mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
feat: add getcode endpoint (#26)
This commit is contained in:
parent
c8f7ab4fb0
commit
40c370c151
2 changed files with 41 additions and 1 deletions
17
src/types.ts
17
src/types.ts
|
|
@ -489,3 +489,20 @@ export interface PupilFieldsData {
|
|||
}
|
||||
|
||||
export type PupilFieldsResponse = ClassChartsResponse<PupilFieldsData, []>;
|
||||
|
||||
export interface GetStudentCodeOptions {
|
||||
/**
|
||||
* Date of birth, in format YYYY-MM-DD
|
||||
*/
|
||||
dateOfBirth: string;
|
||||
}
|
||||
|
||||
export interface GetStudentCodeResponseData {
|
||||
code: string;
|
||||
}
|
||||
|
||||
export type GetStudentCodeResponseMeta = [];
|
||||
export type GetStudentCodeResponse = ClassChartsResponse<
|
||||
GetStudentCodeResponseData,
|
||||
GetStudentCodeResponseMeta
|
||||
>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue