feat: add progress endpoint

This commit is contained in:
mrjvs
2026-08-08 22:10:13 +02:00
parent a41fc8c8a0
commit f3ad06c650
9 changed files with 1002 additions and 1 deletions

View File

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