-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.d.ts
70 lines (62 loc) · 1.28 KB
/
index.d.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
declare module '*.png'
declare module '*.jpg'
declare module '*.jpeg'
declare module '*.svg'
declare module '*.gif'
type ColumnData = {
id: string
Header: string
accessor: string
title: string
sortDescFirst: boolean
}
type Card = {
_id: string
approved: boolean
currentRotation: boolean
imageUrl: string
playerName: string
playerTeam: string
rarity: string
submissionDate: string
submissionUsername: string
}
type CardWithCount = Card & {
quantity: number
}
type DottsAccount = {
_id: string
isflUsername: string
ownedCards: string[]
newestCards: string[]
email: string
password: string
ownedRegularPacks: number
ownedUltimusPacks: number
isSubscribe?: boolean
isAdmin?: boolean
isProcessor?: boolean
isPackIssuer?: boolean
isSubmitter?: boolean
}
type DottsAccountWithCards = DottsAccount & {
cards: CardWithCount[]
}
type TradeStatus = 'declined' | 'completed' | 'pending'
type DottsTrade = {
_id: string
offeringUserId: string
receivingUserId: string
offeringUserCardIds: DottsCard[]
receivingUserCardIds: DottsCard[]
tradeStatus: TradeStatus
tradeOfferDate: any
tradeResolvedDate: any
offeringUsername?: string
receivingUsername?: string
}
type CollectionTableButtons = {
id: string
text: string
onClick: Function
}