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