-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.ts
65 lines (63 loc) · 1.83 KB
/
types.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
export type contactType = {
uh_id: number;
email: string;
first_name: string;
last_name?: string;
phone_number?: number;
shirt_size_id?: string;
};
export type oldDataType =
| {
Item: {
PSID: { S: string };
"Contact Added": { S: string };
"Shirt Size": { S: string };
"Phone Number": { S: string };
"Last Name": { S: string };
"Membership End": { M: { Year: { S: string }; Term: { S: string } } };
"Membership Start": {
M: { Year: { S: string }; Term: { S: string } };
NULL?: undefined;
};
"First Name": { S: string };
"Transaction History": { L: { S: string }[] };
Email: { S: string };
};
}
| {
Item: {
PSID: { S: string };
"Contact Added": { S: string };
"Shirt Size": { S: string };
"Phone Number": { S: string };
"Last Name": { S: string };
"Membership End": { M: { Year: { S: string }; Term: { S: string } } };
"Membership Start": { NULL: boolean; M?: undefined };
"First Name": { S: string };
"Transaction History": { L: { S: string }[] };
Email: { S: string };
};
}
| {
Item: {
PSID: { S: string };
"Contact Added": { S: string };
"Shirt Size": { S: string };
"Phone Number": { S: string };
"Last Name": { S: string };
"Membership End": { M: { Year?: undefined; Term?: undefined } };
"Membership Start": {
M: { Year?: undefined; Term?: undefined };
NULL?: undefined;
};
"First Name": { S: string };
Email: { S: string };
"Transaction History": { L: { S: string }[] };
};
};
export type membershipType = {
contact_id: string;
start_date: string;
end_date: string;
membership_code_id: string;
};