1
0
Fork 0
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:
James Cook 2023-09-24 21:17:15 +01:00 committed by GitHub
parent c8f7ab4fb0
commit 40c370c151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 41 additions and 1 deletions

View file

@ -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
>;