@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.
@@ -107,6 +107,7 @@ export interface ViewEventHostData {
107
107
  lastname?: string;
108
108
  username?: string;
109
109
  has_gold_badge?: boolean;
110
+ cancellation_rate?: number;
110
111
  }
111
112
  export interface EventSessionTime {
112
113
  sid: string;
@@ -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 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;
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 EventSession {
55
- starts_at: string;
56
- session_id: string;
57
- total_guests: number;
44
+ export interface HostHubHostingEventData extends HostHubEventData {
45
+ can_host: boolean;
46
+ sid: string;
58
47
  }
59
- export interface EventSessions {
60
- event_id: string;
61
- sessions: EventSession[];
48
+ export interface HostHubBookingEventData extends HostHubEventData {
49
+ guests: number;
62
50
  }
63
- export interface HostData {
64
- has_events_today: boolean;
51
+ export interface HostHubData {
65
52
  has_active_events: boolean;
66
- total_sessions_today: number;
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
- session_id: string;
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
- }
@@ -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.2",
3
+ "version": "1.28.6",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",