mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
fix: reward shop typing upon testing
This commit is contained in:
parent
4d6c676376
commit
e2f3b21ee5
1 changed files with 6 additions and 5 deletions
|
|
@ -436,23 +436,24 @@ export type AttendanceResponse = ClassChartsResponse<
|
|||
AttendanceMeta
|
||||
>;
|
||||
|
||||
export interface RewardsData {
|
||||
export type RewardsData = {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
photo: string;
|
||||
price: number;
|
||||
stock_control: boolean;
|
||||
stock: number;
|
||||
can_purchase: boolean;
|
||||
unable_to_purchase_reason: string;
|
||||
once_per_pupil: boolean;
|
||||
purchased: boolean;
|
||||
purchase_count: string;
|
||||
price_balence_difference: number;
|
||||
purchased_count: string;
|
||||
price_balance_difference: number;
|
||||
}[]
|
||||
|
||||
export interface RewardsMeta {
|
||||
pupil_score_balence: number;
|
||||
pupil_score_balance: number;
|
||||
}
|
||||
|
||||
export type RewardsResponse = ClassChartsResponse<RewardsData, RewardsMeta>;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue