-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.tsx
50 lines (45 loc) · 920 Bytes
/
types.tsx
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
44
45
46
47
48
49
50
import { Dispatch, SetStateAction } from "react";
export interface Distribution {
title: string,
providerName: string,
resourceName: string,
dataType: string,
updatedTime: string,
description: string,
caddecProviderId: string,
caddecDatasetIdForDetail: string,
url: string
}
export interface Dataset {
title: string,
distributions: Array<Distribution>
}
export interface Catalog {
result: {
results: Array<{
title: string,
organization: {
name: string
},
resources: Array<{
name: string,
format: string,
last_modified: string,
created: string,
url: string
}>
}>
}
}
export interface LoginAuthResponse {
access_token: string,
refresh_token: string
}
export interface User {
token: string,
userID: string
}
export interface UserContext {
user: User,
setUser: Dispatch<SetStateAction<User>>
}