@jealous-robot-dev/shared-types-responses 1.13.8 → 1.13.12

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,4 @@
1
- import { LND, Month, QueryResponse, Weekday } from "../common";
1
+ import { LND } from "../common";
2
2
  import { EventTimeModes, EventTypes } from "./events";
3
3
  import { SharerProps } from '../forms/sharer';
4
4
  export interface EventSessionTime {
@@ -15,57 +15,65 @@ export interface ShowEventReview {
15
15
  comment: string;
16
16
  id: string;
17
17
  }
18
- export interface ViewEventData {
18
+ export interface ViewEventCommonData {
19
+ event_id: string;
20
+ event_language: string;
21
+ event_time_mode: EventTimeModes;
19
22
  event_type: EventTypes;
20
23
  event_name: string;
21
24
  event_description: string;
22
- event_id: string;
23
- event_time_mode: EventTimeModes;
24
- event_language: string;
25
- event_raiting: number | null;
26
- event_review_count: number | null;
27
- event_pictures: string[] | null;
28
- event_video: string | null;
25
+ event_fee: number;
29
26
  event_duration: string;
30
27
  event_capacity: number;
31
28
  event_prerequisites: string[] | null;
32
- event_fee: number;
33
- event_dates: EventSessionTime[];
29
+ event_video: string | null;
34
30
  event_special_session?: boolean;
35
31
  event_tags: string[];
36
32
  event_saved?: boolean;
37
- event_host: {
38
- UID: string;
39
- member_since: string;
40
- about: string;
41
- ppu?: string;
42
- firstname: string;
43
- lastname: string;
44
- username: string;
45
- };
46
- event_reviews: ShowEventReview[];
47
33
  }
48
- export interface ViewEventPhrases {
49
- common: {
50
- months: Month[];
51
- shortMonths: Month[];
52
- read_more: string;
53
- load_more: string;
54
- go_back: string;
55
- weekdays: Weekday[];
56
- reviews: string;
57
- show_all_photos: string;
58
- show_more: string;
59
- show_less: string;
60
- share: string;
61
- close: string;
62
- save: string;
63
- unsave: string;
64
- };
34
+ export interface ViewEventPicture {
35
+ id: string;
36
+ index: number;
37
+ }
38
+ export interface ViewEventPictures {
39
+ total: number;
40
+ entries: ViewEventPicture[];
41
+ }
42
+ export interface ViewEventReviews {
43
+ count: number;
44
+ event_raiting: number | null;
45
+ entries: ShowEventReview[];
46
+ }
47
+ export interface ViewEventDates {
48
+ count: number;
49
+ entries: EventSessionTime[];
50
+ }
51
+ export interface ViewEventHostData {
52
+ UID: string;
53
+ member_since: string;
54
+ about: string;
55
+ ppu?: string;
56
+ firstname: string;
57
+ lastname: string;
58
+ username: string;
59
+ }
60
+ export interface ViewEventSharedPhrases {
61
+ read_more: string;
62
+ load_more: string;
63
+ go_back: string;
64
+ reviews: string;
65
+ show_all_photos: string;
66
+ show_more: string;
67
+ show_less: string;
68
+ share: string;
69
+ close: string;
70
+ save: string;
71
+ unsave: string;
72
+ }
73
+ export interface ViewEventMainPhrases {
65
74
  main_info: {
66
- mins: string;
67
75
  label: string;
68
- language: string;
76
+ duration_and_language: string;
69
77
  event_type: string;
70
78
  time_mode: string;
71
79
  };
@@ -74,6 +82,7 @@ export interface ViewEventPhrases {
74
82
  capacity: LND;
75
83
  };
76
84
  description: string;
85
+ video_from_host?: string;
77
86
  prerequisites?: LND;
78
87
  how_to_get_into: {
79
88
  label: string;
@@ -84,38 +93,13 @@ export interface ViewEventPhrases {
84
93
  };
85
94
  private_consultation?: LND;
86
95
  };
87
- about_host: {
88
- meet: string;
89
- member_since: string;
90
- ask_a_question: string;
91
- reviews: string;
92
- };
93
- video_from_host?: string;
94
96
  reviews?: {
95
97
  show_more: string;
96
98
  label: string;
97
99
  };
98
- dates: {
99
- choose: string;
100
- show_more_dates: string;
101
- clear_calendar: string;
102
- pick_a_date: string;
103
- no_available_places: LND;
104
- select_a_date: string;
105
- date: string;
106
- contact_host: LND;
107
- sharer: SharerProps;
108
- };
109
100
  price: {
110
101
  person: string;
111
- currency: string;
112
- };
113
- nav: {
114
- show_dates: string;
115
- overview: string;
116
- host_info: string;
117
- reviews: string;
118
- availability: string;
102
+ price: string;
119
103
  };
120
104
  tips: {
121
105
  label: string;
@@ -124,5 +108,27 @@ export interface ViewEventPhrases {
124
108
  };
125
109
  sharer: SharerProps;
126
110
  }
127
- export interface EventViewResponse extends QueryResponse<ViewEventData, ViewEventPhrases> {
111
+ export interface ViewEventHostPhrases {
112
+ meet: string;
113
+ member_since: string;
114
+ ask_a_question: string;
115
+ reviews: string;
116
+ }
117
+ export interface ViewEventDatesPhrases {
118
+ choose: string;
119
+ show_more_dates: string;
120
+ clear_calendar: string;
121
+ pick_a_date: string;
122
+ no_available_places: LND;
123
+ select_a_date: string;
124
+ date: string;
125
+ contact_host: LND;
126
+ sharer: SharerProps;
127
+ }
128
+ export interface ViewEventNavigationPhrases {
129
+ show_dates: string;
130
+ overview: string;
131
+ host_info: string;
132
+ reviews: string;
133
+ availability: string;
128
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.13.8",
3
+ "version": "1.13.12",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",