@jealous-robot-dev/shared-types-responses 1.28.4 → 1.28.8
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,63 @@ export interface HostPhrases {
|
|
|
33
32
|
};
|
|
34
33
|
};
|
|
35
34
|
}
|
|
36
|
-
export interface
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
event_type: EventTypes;
|
|
43
|
-
event_duration: number;
|
|
44
|
-
event_pic: string;
|
|
35
|
+
export interface HostHubEventData {
|
|
36
|
+
id: string;
|
|
37
|
+
pic: string;
|
|
38
|
+
name: string;
|
|
39
|
+
lang: string;
|
|
40
|
+
type: EventTypes;
|
|
45
41
|
}
|
|
46
|
-
export interface
|
|
42
|
+
export interface HostHubHostingEventData {
|
|
43
|
+
id: string;
|
|
44
|
+
pic: string;
|
|
45
|
+
sid: string;
|
|
46
|
+
lang: string;
|
|
47
|
+
data: string;
|
|
48
|
+
name: string;
|
|
49
|
+
can_host: boolean;
|
|
50
|
+
duration: number;
|
|
47
51
|
starts_at: string;
|
|
48
|
-
session_id: string;
|
|
49
|
-
is_able_to_host: boolean;
|
|
50
52
|
}
|
|
51
|
-
export interface
|
|
52
|
-
|
|
53
|
+
export interface HostHubBookingEventData {
|
|
54
|
+
id: string;
|
|
55
|
+
pic: string;
|
|
56
|
+
data: string;
|
|
57
|
+
name: string;
|
|
58
|
+
lang: string;
|
|
59
|
+
duration: number;
|
|
53
60
|
}
|
|
54
|
-
export interface
|
|
61
|
+
export interface EventSeanceWithBookings {
|
|
62
|
+
sid: string;
|
|
63
|
+
duration: number;
|
|
55
64
|
starts_at: string;
|
|
56
|
-
session_id: string;
|
|
57
65
|
total_guests: number;
|
|
58
66
|
}
|
|
59
|
-
export interface
|
|
60
|
-
|
|
61
|
-
|
|
67
|
+
export interface HostHubClientHostingEvent extends HostHubEventData {
|
|
68
|
+
can_host: boolean;
|
|
69
|
+
starts_at: string;
|
|
70
|
+
duration: number;
|
|
71
|
+
sid: string;
|
|
72
|
+
}
|
|
73
|
+
export interface HostHubBookingEventData extends HostHubEventData {
|
|
74
|
+
guests: number;
|
|
75
|
+
duration: number;
|
|
76
|
+
seances: EventSeanceWithBookings[];
|
|
62
77
|
}
|
|
63
|
-
export interface
|
|
64
|
-
has_events_today: boolean;
|
|
78
|
+
export interface HostHubData {
|
|
65
79
|
has_active_events: boolean;
|
|
66
|
-
|
|
67
|
-
|
|
80
|
+
total_events_today: number;
|
|
81
|
+
events_today: HostHubHostingEventData[];
|
|
82
|
+
bookings: {
|
|
83
|
+
total: number;
|
|
84
|
+
events: HostHubBookingEventData[];
|
|
85
|
+
};
|
|
68
86
|
}
|
|
69
87
|
export interface SessionGuests {
|
|
70
|
-
|
|
88
|
+
sid: string;
|
|
71
89
|
guests: ShortEventVisitor[];
|
|
72
90
|
}
|
|
73
91
|
export interface EventGuests {
|
|
74
92
|
event_id: string;
|
|
75
93
|
guests: SessionGuests[];
|
|
76
94
|
}
|
|
77
|
-
export interface HostResponse extends QueryResponse<HostData, HostPhrases> {
|
|
78
|
-
}
|