heartraite 1.0.120 → 1.0.122
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/types/event.types.d.ts +24 -12
- package/package.json +1 -1
- package/src/types/event.types.ts +27 -12
|
@@ -28,16 +28,28 @@ export type EventParticipation = {
|
|
|
28
28
|
role: "attendee" | "host" | "admin";
|
|
29
29
|
status: "confirmed" | "pending" | "cancelled";
|
|
30
30
|
};
|
|
31
|
-
export type
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
31
|
+
export type FullParticipant = EventParticipation & {
|
|
32
|
+
firstName: string;
|
|
33
|
+
image: string;
|
|
34
|
+
age: number;
|
|
35
|
+
minAge: number;
|
|
36
|
+
maxAge: number;
|
|
37
|
+
state: string;
|
|
38
|
+
birth: string;
|
|
39
|
+
gender: Gender;
|
|
40
|
+
};
|
|
41
|
+
export type EventMatchPair = {
|
|
42
|
+
userA: string;
|
|
43
|
+
userB: string;
|
|
44
|
+
score: number;
|
|
45
|
+
};
|
|
46
|
+
export type EventMatchStats = {
|
|
47
|
+
lastCalculated: string;
|
|
48
|
+
totalPairs: number;
|
|
49
|
+
topMatches: EventMatchPair[];
|
|
50
|
+
averageCompatibility: number;
|
|
51
|
+
};
|
|
52
|
+
export type FullEvent = Omit<Event, "participants"> & {
|
|
53
|
+
participants: FullParticipant[];
|
|
54
|
+
matchStats?: EventMatchStats;
|
|
43
55
|
};
|
package/package.json
CHANGED
package/src/types/event.types.ts
CHANGED
|
@@ -32,16 +32,31 @@ export type EventParticipation = {
|
|
|
32
32
|
status: "confirmed" | "pending" | "cancelled";
|
|
33
33
|
};
|
|
34
34
|
|
|
35
|
-
export type
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
35
|
+
export type FullParticipant = EventParticipation & {
|
|
36
|
+
firstName: string;
|
|
37
|
+
image: string;
|
|
38
|
+
age: number;
|
|
39
|
+
minAge: number;
|
|
40
|
+
maxAge: number;
|
|
41
|
+
state: string;
|
|
42
|
+
birth: string;
|
|
43
|
+
gender: Gender;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
export type EventMatchPair = {
|
|
47
|
+
userA: string;
|
|
48
|
+
userB: string;
|
|
49
|
+
score: number;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export type EventMatchStats = {
|
|
53
|
+
lastCalculated: string;
|
|
54
|
+
totalPairs: number;
|
|
55
|
+
topMatches: EventMatchPair[];
|
|
56
|
+
averageCompatibility: number;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export type FullEvent = Omit<Event, "participants"> & {
|
|
60
|
+
participants: FullParticipant[];
|
|
61
|
+
matchStats?: EventMatchStats;
|
|
47
62
|
};
|