@jealous-robot-dev/shared-types-responses 1.28.3 → 1.28.7

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,44 @@ export interface HostPhrases {
33
32
  };
34
33
  };
35
34
  }
36
- export interface EventForGuests {
37
- event_id: string;
38
- event_name: string;
39
- event_language: string;
40
- event_duration_type_stringified: string;
41
- event_lang_stringified: string;
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 EventHostedTodaySession {
42
+ export interface HostHubHostingEventData extends HostHubEventData {
43
+ can_host: boolean;
47
44
  starts_at: string;
48
- session_id: string;
49
- is_able_to_host: boolean;
50
- }
51
- export interface EventHostedToday extends EventForGuests {
52
- event_sessions: EventHostedTodaySession[];
45
+ duration: number;
46
+ sid: string;
53
47
  }
54
- export interface EventSession {
48
+ export interface EventSeanceWithBookings {
49
+ sid: string;
50
+ duration: number;
55
51
  starts_at: string;
56
- session_id: string;
57
52
  total_guests: number;
58
53
  }
59
- export interface EventSessions {
60
- event_id: string;
61
- sessions: EventSession[];
54
+ export interface HostHubBookingEventData extends HostHubEventData {
55
+ guests: number;
56
+ duration: number;
57
+ seances: EventSeanceWithBookings[];
62
58
  }
63
- export interface HostData {
64
- has_events_today: boolean;
59
+ export interface HostHubData {
65
60
  has_active_events: boolean;
66
- total_sessions_today: number;
67
- total_guests: number;
61
+ total_events_today: number;
62
+ events_today: HostHubHostingEventData[];
63
+ bookings: {
64
+ total: number;
65
+ events: HostHubBookingEventData[];
66
+ };
68
67
  }
69
68
  export interface SessionGuests {
70
- session_id: string;
69
+ sid: string;
71
70
  guests: ShortEventVisitor[];
72
71
  }
73
72
  export interface EventGuests {
74
73
  event_id: string;
75
74
  guests: SessionGuests[];
76
75
  }
77
- export interface HostResponse extends QueryResponse<HostData, HostPhrases> {
78
- }
@@ -16,7 +16,7 @@ export interface EventInCollection {
16
16
  name: string;
17
17
  type: EventTypes;
18
18
  raiting: number;
19
- reviews: null;
19
+ reviews: number;
20
20
  organizer: UserInEvent;
21
21
  }
22
22
  export interface EventCollectionData {
@@ -30,6 +30,7 @@ export interface UserProfileData {
30
30
  website?: string;
31
31
  average_raiting?: number;
32
32
  birthday?: PersonalInfoBirthday;
33
+ has_gold_badge?: boolean;
33
34
  review_count?: number;
34
35
  languagesSpoken: string[];
35
36
  joinedIn: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.28.3",
3
+ "version": "1.28.7",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",