heartraite 1.0.146 → 1.0.148
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CAStatus, Gender } from "../enum";
|
|
2
2
|
import { CompatibilitySummary } from "./matchmaking.types";
|
|
3
|
+
type UserId = string;
|
|
3
4
|
export declare enum EventAccess {
|
|
4
5
|
PUBLIC = "public",
|
|
5
6
|
INVITE_ONLY = "invite_only"
|
|
@@ -22,6 +23,7 @@ export type Event = {
|
|
|
22
23
|
created: string;
|
|
23
24
|
lastUpdated: string;
|
|
24
25
|
access: EventAccess;
|
|
26
|
+
lastCAReminderAt?: string;
|
|
25
27
|
};
|
|
26
28
|
export type EventParticipation = {
|
|
27
29
|
eventId: string;
|
|
@@ -62,5 +64,6 @@ export type EventMatchStats = {
|
|
|
62
64
|
export type FullEvent = Omit<Event, "participants"> & {
|
|
63
65
|
participants: FullParticipant[];
|
|
64
66
|
matchStats?: EventMatchStats;
|
|
65
|
-
summaries: CompatibilitySummary
|
|
67
|
+
summaries: Record<UserId, CompatibilitySummary>;
|
|
66
68
|
};
|
|
69
|
+
export {};
|
package/package.json
CHANGED
package/src/types/event.types.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { CAStatus, Gender } from "../enum";
|
|
2
2
|
import { CompatibilitySummary } from "./matchmaking.types";
|
|
3
3
|
|
|
4
|
+
type UserId = string;
|
|
5
|
+
|
|
4
6
|
export enum EventAccess {
|
|
5
7
|
PUBLIC = "public",
|
|
6
8
|
INVITE_ONLY = "invite_only",
|
|
@@ -24,6 +26,7 @@ export type Event = {
|
|
|
24
26
|
created: string;
|
|
25
27
|
lastUpdated: string;
|
|
26
28
|
access: EventAccess;
|
|
29
|
+
lastCAReminderAt?: string;
|
|
27
30
|
};
|
|
28
31
|
|
|
29
32
|
export type EventParticipation = {
|
|
@@ -70,5 +73,5 @@ export type EventMatchStats = {
|
|
|
70
73
|
export type FullEvent = Omit<Event, "participants"> & {
|
|
71
74
|
participants: FullParticipant[];
|
|
72
75
|
matchStats?: EventMatchStats;
|
|
73
|
-
summaries: CompatibilitySummary
|
|
76
|
+
summaries: Record<UserId, CompatibilitySummary>;
|
|
74
77
|
};
|