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
71export const blankClub: IClub = {
id: "",
startDate: new Date(),
updateDate: new Date(),
name: "",
address: { city: "Porto Alegre", country: "", number: "", state: "", street: "", unit: "" },
location: {
type: "",
coordinates:
["30.0346", "51.2177"]
}
}
export const blankUser: ILoggedUser = {
_id: "",
name: "",
clubId: "",
clubPercentTicket: 0,
mail: "",
token: "",
profile: "",
clubs: [blankClub],
clubName: ""
}
export const blankVoucher = (id): IVoucher => ({
id,
startDate: new Date(),
creationDate: new Date(),
updateDate: new Date(),
partyId: "",
clubId: "",
customerId: "",
invoiceId: "",
partyProductId: "",
clubName: "",
customer: {
birthDate: new Date(),
creationDate: new Date(),
firstName: "",
id: "",
lastName: "",
mail: "",
password: "",
updateDate: new Date()
},
partyName: "",
customerName: "",
endDate: new Date(),
voucherUseDate: "",
voucherUseUserClubId: "",
responsibleUserClubId: "",
voucherUseUserClubName: "",
status: "",
price: {
value: 0,
currencyIsoCode: "BRL"
},
product: {
id: "",
name: "",
nameSort: "",
type: "",
category: "",
creationDate: new Date(),
updateDate: new Date(),
image: { fileId: "", mimeType: "", creationDate: new Date() }
},
type: ""
})