mirror of
https://github.com/PretendoNetwork/website.git
synced 2026-09-09 17:37:06 -05:00
feat: add progress endpoint
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
export interface GetApiAuthMe {
|
||||
export type GetApiAuthMe = {
|
||||
pid: number;
|
||||
username: string;
|
||||
mii: {
|
||||
@@ -9,6 +9,25 @@ export interface GetApiAuthMe {
|
||||
} | null;
|
||||
}
|
||||
|
||||
export type ProgressItem = {
|
||||
title: string,
|
||||
githubUrl?: string,
|
||||
completion: number,
|
||||
tasks: Array<{
|
||||
status: 'completed' | 'inprogress' | 'notstarted',
|
||||
title: string,
|
||||
}>
|
||||
}
|
||||
|
||||
export type GetProgress = {
|
||||
donations: {
|
||||
currentCents: number,
|
||||
goalCents: number,
|
||||
},
|
||||
completion: number;
|
||||
items: ProgressItem[];
|
||||
}
|
||||
|
||||
export type ApiAuthLogin = {
|
||||
accessToken: string;
|
||||
refreshToken: string;
|
||||
|
||||
Reference in New Issue
Block a user