forked from a2br/ecoledirecte-api-types
/
documents.ts
43 lines (38 loc) · 830 Bytes
/
documents.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
import { failureRes } from "../failure";
import { role } from "../login/accounts";
export type studentDocsRes = studentDocsResSuccess | failureRes;
export type studentDocsResSuccess = {
code: 200;
token: string;
host: string;
data: studentDocsResData
};
export type studentDocsResData = {
administratifs: Array<studentDoc>;
factures: Array<studentDoc>;
viescolaire: Array<studentDoc>;
notes: Array<studentDoc>;
listesPiecesAVerser: {
listesPieces: unknown[];
personnes: Array<{
id: number;
nom: string;
prenom: string;
type: role;
}>;
pieces: unknown[];
televersements: unknown[];
};
};
export type studentDoc<type = string> = {
/**
* @example 2021-10-30
*/
date: string;
id: number;
idEleve: number;
libelle: string;
signature: unknown;
signatureDemandee: boolean;
type: type;
};