@jealous-robot-dev/shared-types-responses 1.28.2 → 1.28.6
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,4 +1,3 @@
|
|
|
1
|
-
import { QueryResponse } from "../common";
|
|
2
1
|
import { ShortEventVisitor } from "../stats";
|
|
3
2
|
import { EventTypes, PhrasedEventType } from "./events";
|
|
4
3
|
export interface HostPhrases {
|
|
@@ -33,46 +32,42 @@ export interface HostPhrases {
|
|
|
33
32
|
};
|
|
34
33
|
};
|
|
35
34
|
}
|
|
36
|
-
export interface
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
event_duration: number;
|
|
44
|
-
event_pic: string;
|
|
45
|
-
}
|
|
46
|
-
export interface EventHostedTodaySession {
|
|
35
|
+
export interface HostHubEventData {
|
|
36
|
+
id: string;
|
|
37
|
+
pic: string;
|
|
38
|
+
name: string;
|
|
39
|
+
lang: string;
|
|
40
|
+
duration: number;
|
|
41
|
+
type: EventTypes;
|
|
47
42
|
starts_at: string;
|
|
48
|
-
session_id: string;
|
|
49
|
-
is_able_to_host: boolean;
|
|
50
|
-
}
|
|
51
|
-
export interface EventHostedToday extends EventForGuests {
|
|
52
|
-
event_sessions: EventHostedTodaySession[];
|
|
53
43
|
}
|
|
54
|
-
export interface
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
total_guests: number;
|
|
44
|
+
export interface HostHubHostingEventData extends HostHubEventData {
|
|
45
|
+
can_host: boolean;
|
|
46
|
+
sid: string;
|
|
58
47
|
}
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
sessions: EventSession[];
|
|
48
|
+
export interface HostHubBookingEventData extends HostHubEventData {
|
|
49
|
+
guests: number;
|
|
62
50
|
}
|
|
63
|
-
export interface
|
|
64
|
-
has_events_today: boolean;
|
|
51
|
+
export interface HostHubData {
|
|
65
52
|
has_active_events: boolean;
|
|
66
|
-
|
|
53
|
+
total_events_today: number;
|
|
54
|
+
events_today: HostHubHostingEventData[];
|
|
55
|
+
bookings: {
|
|
56
|
+
total: number;
|
|
57
|
+
events: HostHubBookingEventData[];
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
export interface EventSession {
|
|
61
|
+
sid: string;
|
|
62
|
+
duration: number;
|
|
63
|
+
starts_at: string;
|
|
67
64
|
total_guests: number;
|
|
68
65
|
}
|
|
69
66
|
export interface SessionGuests {
|
|
70
|
-
|
|
67
|
+
sid: string;
|
|
71
68
|
guests: ShortEventVisitor[];
|
|
72
69
|
}
|
|
73
70
|
export interface EventGuests {
|
|
74
71
|
event_id: string;
|
|
75
72
|
guests: SessionGuests[];
|
|
76
73
|
}
|
|
77
|
-
export interface HostResponse extends QueryResponse<HostData, HostPhrases> {
|
|
78
|
-
}
|