mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix: add meta for getDetentions
This commit is contained in:
parent
c0e869e2fe
commit
c279d9120f
2 changed files with 9 additions and 3 deletions
|
|
@ -279,7 +279,7 @@ export class BaseClient {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
).data;
|
);
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Gets the current student's attendance
|
* Gets the current student's attendance
|
||||||
|
|
|
||||||
10
src/types.ts
10
src/types.ts
|
|
@ -335,8 +335,14 @@ export interface Detention {
|
||||||
name: string;
|
name: string;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// TODO: Update typings to include meta response. Currently not possible since I don't have access
|
|
||||||
export type DetentionsResponse = Array<Detention>;
|
export type DetentionsData = Array<Detention>
|
||||||
|
|
||||||
|
export interface DetentionsMeta {
|
||||||
|
detention_alias_plural: string
|
||||||
|
}
|
||||||
|
|
||||||
|
export type DetentionsResponse = ClassChartsResponse<DetentionsData, DetentionsMeta>;
|
||||||
|
|
||||||
export interface Announcement {
|
export interface Announcement {
|
||||||
id: number;
|
id: number;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue