heartraite 1.0.124 → 1.0.126
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.
|
@@ -10,7 +10,6 @@ import { CA } from "./ca.types";
|
|
|
10
10
|
import { SelfAwareness } from "./sa.types";
|
|
11
11
|
import { PLSScore } from "./pls.types";
|
|
12
12
|
import { AdvancedMatch } from "./am.types";
|
|
13
|
-
import { EventParticipation } from "./event.types";
|
|
14
13
|
export type SyncAffiliateResponse = void;
|
|
15
14
|
export type RegisterUserResponse = {
|
|
16
15
|
success: boolean;
|
|
@@ -33,7 +32,7 @@ export type SubmitAnswerResponse = {
|
|
|
33
32
|
categoryEvaluation?: CategoryEvaluation;
|
|
34
33
|
};
|
|
35
34
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
36
|
-
export type GetUserEventsResponse =
|
|
35
|
+
export type GetUserEventsResponse = Event[];
|
|
37
36
|
export type JoinEventResponse = Event;
|
|
38
37
|
export type GetEventResponse = Event;
|
|
39
38
|
export type SubmitFeedbackResponse = undefined;
|
package/package.json
CHANGED
package/src/types/event.types.ts
CHANGED
|
@@ -12,7 +12,7 @@ export type Event = {
|
|
|
12
12
|
description?: string;
|
|
13
13
|
createdBy: string;
|
|
14
14
|
createdByRole: "operator" | "partner";
|
|
15
|
-
eventDateTime: string;
|
|
15
|
+
eventDateTime: string; // should not be updated, see EventParticipation
|
|
16
16
|
location?: string;
|
|
17
17
|
isCancelled?: boolean;
|
|
18
18
|
maxParticipants?: number;
|
|
@@ -26,6 +26,7 @@ export type EventParticipation = {
|
|
|
26
26
|
eventId: string;
|
|
27
27
|
userId: string;
|
|
28
28
|
joinedAt: string;
|
|
29
|
+
eventDateTime: string;
|
|
29
30
|
gender: Gender;
|
|
30
31
|
interestedIn: Gender[];
|
|
31
32
|
role: "attendee" | "host" | "admin";
|
|
@@ -44,7 +44,7 @@ export type SubmitAnswerResponse = {
|
|
|
44
44
|
export type SubmitCategoryFeedbackResponse = CategoryEvaluation;
|
|
45
45
|
|
|
46
46
|
// event
|
|
47
|
-
export type GetUserEventsResponse =
|
|
47
|
+
export type GetUserEventsResponse = Event[];
|
|
48
48
|
export type JoinEventResponse = Event;
|
|
49
49
|
export type GetEventResponse = Event;
|
|
50
50
|
|