@jealous-robot-dev/shared-types-responses 1.22.9 → 1.23.1

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.
@@ -98,17 +98,6 @@ export interface ConciseEventData {
98
98
  event_type: EventTypes;
99
99
  event_organizer?: string;
100
100
  }
101
- export interface EventEditableFields {
102
- event_media: boolean;
103
- event_language: Language;
104
- event_name: boolean;
105
- event_description: boolean;
106
- event_time: boolean;
107
- event_type: boolean;
108
- event_tags: boolean;
109
- mentioned_users: boolean;
110
- event_price: boolean;
111
- }
112
101
  export interface PhrasedEventType {
113
102
  type: EventTypes;
114
103
  label: string;
@@ -1,3 +1,6 @@
1
+ import { Language } from "../common";
2
+ import { SharerProps } from "../forms";
3
+ import { EventTypes, FormEventFields, PhrasesExplainedEventType } from "./events";
1
4
  export declare enum EventReschedulingPeriod {
2
5
  WEEK = "week",
3
6
  MONTH = "month"
@@ -17,3 +20,214 @@ export interface HostEventPics {
17
20
  src: string;
18
21
  index: number;
19
22
  }
23
+ export interface HEFAQ {
24
+ question: string;
25
+ answer: string;
26
+ }
27
+ export interface HEHelp {
28
+ recomendation: string;
29
+ faq: HEFAQ[];
30
+ }
31
+ export interface HECommonPhrases {
32
+ labels: {
33
+ exit: string;
34
+ help: string;
35
+ back: string;
36
+ next: string;
37
+ skip: string;
38
+ tip: string;
39
+ start: string;
40
+ finish: string;
41
+ preview: string;
42
+ create_new: string;
43
+ wait: string;
44
+ };
45
+ }
46
+ export interface HEIntroPhrases {
47
+ page_title: string;
48
+ title: string;
49
+ description: string;
50
+ drafts: {
51
+ title: string;
52
+ last_modified: string;
53
+ delete: string;
54
+ };
55
+ }
56
+ export interface HETypePhrases {
57
+ page_title: string;
58
+ question: string;
59
+ types: PhrasesExplainedEventType[];
60
+ }
61
+ export interface HENamePhrases {
62
+ page_title: string;
63
+ question: string;
64
+ input: {
65
+ placeholder: string;
66
+ warnings: {
67
+ enter: string;
68
+ invalid: string;
69
+ };
70
+ };
71
+ help: HEHelp;
72
+ }
73
+ export interface HEDescriptionPhrases {
74
+ page_title: string;
75
+ question: string;
76
+ input: {
77
+ placeholder: string;
78
+ warnings: {
79
+ enter: string;
80
+ };
81
+ };
82
+ help: HEHelp;
83
+ }
84
+ export interface HELangPhrases {
85
+ page_title: string;
86
+ question: string;
87
+ languages: Language[];
88
+ }
89
+ export interface HETimePhrases {
90
+ page_title: string;
91
+ question: string;
92
+ pick_a_date: string;
93
+ pick_a_time: string;
94
+ pick_weekdays: string;
95
+ enter_duration: string;
96
+ pick_the_schedule: string;
97
+ pick_start_date: string;
98
+ period_is_taken: string;
99
+ delete_day: string;
100
+ add_time: string;
101
+ starts_at: string;
102
+ ends_at: string;
103
+ hours: string;
104
+ minutes: string;
105
+ time_mode: {
106
+ single_session: string;
107
+ multiple_sessions: string;
108
+ };
109
+ repeat_weekly: string;
110
+ reschedule: {
111
+ title: string;
112
+ terms: {
113
+ week: string;
114
+ month: string;
115
+ };
116
+ };
117
+ help: HEHelp;
118
+ }
119
+ export interface HECapacityPhrases {
120
+ page_title: string;
121
+ question: string;
122
+ visitors: string;
123
+ }
124
+ export interface HETagsPhrases {
125
+ page_title: string;
126
+ question: string;
127
+ input: {
128
+ placeholder: string;
129
+ add: string;
130
+ };
131
+ tags: string;
132
+ help: HEHelp;
133
+ }
134
+ export interface HEPicturesPhrases {
135
+ page_title: string;
136
+ description: string;
137
+ question: string;
138
+ pick_images: string;
139
+ images: string;
140
+ help: HEHelp;
141
+ }
142
+ export interface HEFeePhrases {
143
+ page_title: string;
144
+ price_limit: {
145
+ min: number;
146
+ max: number;
147
+ };
148
+ question: string;
149
+ input: {
150
+ placeholder: string;
151
+ };
152
+ help: HEHelp;
153
+ }
154
+ export interface HEPrerequisitesPhrases {
155
+ page_title: string;
156
+ question: string;
157
+ descripion: string;
158
+ input: {
159
+ placeholder: string;
160
+ add: string;
161
+ };
162
+ }
163
+ export interface HESuccessPhrases {
164
+ page_title: string;
165
+ title: string;
166
+ description: string;
167
+ view_event: string;
168
+ share: string;
169
+ event_type_duration: string;
170
+ event_langauge: string;
171
+ sharer: SharerProps;
172
+ }
173
+ export interface ShortDraft {
174
+ id: string;
175
+ lm: string;
176
+ }
177
+ export interface HEIntroResponse {
178
+ drafts: ShortDraft;
179
+ }
180
+ export interface HEDraft {
181
+ id: string;
182
+ latest_step: FormEventFields;
183
+ [FormEventFields.NAME]?: string;
184
+ [FormEventFields.DESCRIPTION]?: string;
185
+ [FormEventFields.PICTURES]?: HostEventPics[];
186
+ [FormEventFields.LANG]?: string;
187
+ [FormEventFields.FEE]?: HostEventFee;
188
+ [FormEventFields.TYPE]?: EventTypes;
189
+ [FormEventFields.TIME]?: HostEventTime;
190
+ [FormEventFields.TAGS]?: string[];
191
+ [FormEventFields.PREREQUISITES]?: string[];
192
+ [FormEventFields.CAPACITY]?: number;
193
+ }
194
+ export interface HEPhrases {
195
+ common: HECommonPhrases | null;
196
+ intro: HEIntroPhrases | null;
197
+ [FormEventFields.TYPE]: HETypePhrases | null;
198
+ [FormEventFields.NAME]: HENamePhrases | null;
199
+ [FormEventFields.DESCRIPTION]: HEDescriptionPhrases | null;
200
+ [FormEventFields.TIME]: HETimePhrases | null;
201
+ [FormEventFields.LANG]: HELangPhrases | null;
202
+ [FormEventFields.CAPACITY]: HECapacityPhrases | null;
203
+ [FormEventFields.TAGS]: HETagsPhrases | null;
204
+ [FormEventFields.PICTURES]: HEPicturesPhrases | null;
205
+ [FormEventFields.FEE]: HEFeePhrases | null;
206
+ [FormEventFields.PREREQUISITES]: HEPrerequisitesPhrases | null;
207
+ }
208
+ export interface HEShortcut {
209
+ id: string;
210
+ name: string;
211
+ fee: number;
212
+ pic: string;
213
+ lang: string;
214
+ type: EventTypes;
215
+ duration: number;
216
+ }
217
+ export declare enum HostEventCategories {
218
+ INTRO = "intro",
219
+ TYPE = "type",
220
+ NAME = "name",
221
+ DESCRIPTION = "description",
222
+ TIME = "time",
223
+ LANG = "lang",
224
+ CAPACITY = "capacity",
225
+ TAGS = "tags",
226
+ PICS = "pictures",
227
+ VIDEO = "video",
228
+ FEE = "fee",
229
+ PREREQUISITES = "prerequisites",
230
+ SUCCESS = "success"
231
+ }
232
+ export declare const HECListed: HostEventCategories[];
233
+ export declare type DraftUpdatableValue = HostEventFee | EventTypes | HostEventTime | HostEventPics[] | string | string[] | number;
@@ -1,8 +1,33 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventReschedulingPeriod = void 0;
3
+ exports.HECListed = exports.HostEventCategories = exports.EventReschedulingPeriod = void 0;
4
+ var events_1 = require("./events");
4
5
  var EventReschedulingPeriod;
5
6
  (function (EventReschedulingPeriod) {
6
7
  EventReschedulingPeriod["WEEK"] = "week";
7
8
  EventReschedulingPeriod["MONTH"] = "month";
8
9
  })(EventReschedulingPeriod = exports.EventReschedulingPeriod || (exports.EventReschedulingPeriod = {}));
10
+ var HostEventCategories;
11
+ (function (HostEventCategories) {
12
+ HostEventCategories["INTRO"] = "intro";
13
+ HostEventCategories["TYPE"] = "type";
14
+ HostEventCategories["NAME"] = "name";
15
+ HostEventCategories["DESCRIPTION"] = "description";
16
+ HostEventCategories["TIME"] = "time";
17
+ HostEventCategories["LANG"] = "lang";
18
+ HostEventCategories["CAPACITY"] = "capacity";
19
+ HostEventCategories["TAGS"] = "tags";
20
+ HostEventCategories["PICS"] = "pictures";
21
+ HostEventCategories["VIDEO"] = "video";
22
+ HostEventCategories["FEE"] = "fee";
23
+ HostEventCategories["PREREQUISITES"] = "prerequisites";
24
+ HostEventCategories["SUCCESS"] = "success";
25
+ })(HostEventCategories = exports.HostEventCategories || (exports.HostEventCategories = {}));
26
+ exports.HECListed = [
27
+ HostEventCategories.INTRO, HostEventCategories.DESCRIPTION,
28
+ HostEventCategories.LANG, HostEventCategories.NAME,
29
+ HostEventCategories.PICS, HostEventCategories.PREREQUISITES,
30
+ HostEventCategories.FEE, HostEventCategories.SUCCESS,
31
+ HostEventCategories.TAGS, HostEventCategories.TIME,
32
+ HostEventCategories.TYPE, HostEventCategories.CAPACITY,
33
+ ];
@@ -3,7 +3,6 @@ export * from './event';
3
3
  export * from './host';
4
4
  export * from './reviews';
5
5
  export * from './visitor-event-page';
6
- export * from './schedule-an-event';
7
6
  export * from './manage-events';
8
7
  export * from './event-search';
9
8
  export * from './host-an-event';
@@ -15,7 +15,6 @@ __exportStar(require("./event"), exports);
15
15
  __exportStar(require("./host"), exports);
16
16
  __exportStar(require("./reviews"), exports);
17
17
  __exportStar(require("./visitor-event-page"), exports);
18
- __exportStar(require("./schedule-an-event"), exports);
19
18
  __exportStar(require("./manage-events"), exports);
20
19
  __exportStar(require("./event-search"), exports);
21
20
  __exportStar(require("./host-an-event"), exports);
@@ -86,6 +86,16 @@ export interface EventManagerPhrases {
86
86
  };
87
87
  };
88
88
  }
89
+ export declare enum EventEditableFields {
90
+ FEE = "fee",
91
+ NAME = "name",
92
+ DESCRIPTION = "description",
93
+ CAPACIRY = "capacity",
94
+ TIME = "time",
95
+ PICS = "pics",
96
+ PREREQUISITES = "prerequisites",
97
+ TAGS = "tags"
98
+ }
89
99
  export interface EventManagerFromsCommonPassword {
90
100
  enter_pw: string;
91
101
  pw_is_invalid: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EventManagerSortFields = void 0;
3
+ exports.EventEditableFields = exports.EventManagerSortFields = void 0;
4
4
  var EventManagerSortFields;
5
5
  (function (EventManagerSortFields) {
6
6
  EventManagerSortFields["LANGUAGE"] = "lang";
@@ -8,3 +8,14 @@ var EventManagerSortFields;
8
8
  EventManagerSortFields["CAPACITY"] = "capacity";
9
9
  EventManagerSortFields["TIMING_MODE"] = "timing_mode";
10
10
  })(EventManagerSortFields = exports.EventManagerSortFields || (exports.EventManagerSortFields = {}));
11
+ var EventEditableFields;
12
+ (function (EventEditableFields) {
13
+ EventEditableFields["FEE"] = "fee";
14
+ EventEditableFields["NAME"] = "name";
15
+ EventEditableFields["DESCRIPTION"] = "description";
16
+ EventEditableFields["CAPACIRY"] = "capacity";
17
+ EventEditableFields["TIME"] = "time";
18
+ EventEditableFields["PICS"] = "pics";
19
+ EventEditableFields["PREREQUISITES"] = "prerequisites";
20
+ EventEditableFields["TAGS"] = "tags";
21
+ })(EventEditableFields = exports.EventEditableFields || (exports.EventEditableFields = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jealous-robot-dev/shared-types-responses",
3
- "version": "1.22.9",
3
+ "version": "1.23.1",
4
4
  "description": "",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -1,191 +0,0 @@
1
- import { PhrasesExplainedEventType, EventTypes, EventTime } from './events';
2
- import { Language, QueryResponse } from '../common';
3
- import { SharerProps } from '../forms';
4
- export interface SEFAQ {
5
- question: string;
6
- answer: string;
7
- }
8
- export interface SEHelp {
9
- recomendation: string;
10
- faq: SEFAQ[];
11
- }
12
- export interface SECommonPhrases {
13
- labels: {
14
- exit: string;
15
- help: string;
16
- back: string;
17
- next: string;
18
- skip: string;
19
- tip: string;
20
- start: string;
21
- finish: string;
22
- wait: string;
23
- };
24
- }
25
- export interface SEIntroPhrases {
26
- page_title: string;
27
- title: string;
28
- description: string;
29
- }
30
- export interface SETypePhrases {
31
- page_title: string;
32
- question: string;
33
- types: PhrasesExplainedEventType[];
34
- }
35
- export interface SENamePhrases {
36
- page_title: string;
37
- question: string;
38
- input: {
39
- placeholder: string;
40
- warnings: {
41
- enter: string;
42
- invalid: string;
43
- };
44
- };
45
- help: SEHelp;
46
- }
47
- export interface SEDescriptionPhrases {
48
- page_title: string;
49
- question: string;
50
- review: string;
51
- input: {
52
- placeholder: string;
53
- warnings: {
54
- enter: string;
55
- };
56
- };
57
- help: SEHelp;
58
- }
59
- export interface SELangPhrases {
60
- page_title: string;
61
- question: string;
62
- languages: Language[];
63
- }
64
- export interface SETimePhrases {
65
- page_title: string;
66
- question: string;
67
- pick_a_date: string;
68
- pick_a_time: string;
69
- pick_weekdays: string;
70
- enter_duration: string;
71
- pick_the_schedule: string;
72
- pick_start_date: string;
73
- period_is_taken: string;
74
- delete_day: string;
75
- add_time: string;
76
- starts_at: string;
77
- ends_at: string;
78
- hours: string;
79
- minutes: string;
80
- time_mode: {
81
- single_session: string;
82
- multiple_sessions: string;
83
- };
84
- repeat_weekly: string;
85
- }
86
- export interface SEDesiredVisitorsPhrases {
87
- page_title: string;
88
- question: string;
89
- visitors: string;
90
- }
91
- export interface SETagsPhrases {
92
- page_title: string;
93
- question: string;
94
- input: {
95
- placeholder: string;
96
- add: string;
97
- };
98
- tags: string;
99
- help: SEHelp;
100
- }
101
- export interface SEPicturesPhrases {
102
- page_title: string;
103
- preview: string;
104
- description: string;
105
- question: string;
106
- pick_images: string;
107
- images: string;
108
- help: SEHelp;
109
- }
110
- export interface SEVideoPhrases {
111
- page_title: string;
112
- question: string;
113
- pick_a_video: string;
114
- video: string;
115
- help: SEHelp;
116
- }
117
- export interface SEPricePhrases {
118
- page_title: string;
119
- price_limit: {
120
- min: number;
121
- max: number;
122
- };
123
- question: string;
124
- input: {
125
- placeholder: string;
126
- };
127
- help: SEHelp;
128
- }
129
- export interface SESuccessPhrases {
130
- page_title: string;
131
- title: string;
132
- description: string;
133
- view_event: string;
134
- share: string;
135
- event_type_duration: string;
136
- event_langauge: string;
137
- sharer: SharerProps;
138
- }
139
- export interface SEData {
140
- event_id: string | null;
141
- event_type: EventTypes | null;
142
- event_name: string | null;
143
- event_description: string | null;
144
- event_language: string | null;
145
- event_time: EventTime | null;
146
- event_visitors_count: number | null;
147
- event_tags: string[] | null;
148
- event_pictures: string[] | null;
149
- event_video: string | null;
150
- event_price: number | null;
151
- }
152
- export interface HostedEventData {
153
- event_id: string;
154
- event_name: string;
155
- event_pic: string;
156
- event_type: EventTypes;
157
- event_duration: number;
158
- event_language: string;
159
- event_fee: number;
160
- }
161
- export interface SEPhrases {
162
- common: SECommonPhrases;
163
- intro: SEIntroPhrases;
164
- type: SETypePhrases | null;
165
- name: SENamePhrases | null;
166
- description: SEDescriptionPhrases | null;
167
- time: SETimePhrases | null;
168
- lang: SELangPhrases | null;
169
- visitors: SEDesiredVisitorsPhrases | null;
170
- tags: SETagsPhrases | null;
171
- pics: SEPicturesPhrases | null;
172
- video: SEVideoPhrases | null;
173
- price: SEPricePhrases | null;
174
- success: SESuccessPhrases | null;
175
- }
176
- export declare enum ScheduleAnEventCategories {
177
- INTRO = "intro",
178
- TYPE = "type",
179
- NAME = "name",
180
- DESCRIPTION = "description",
181
- TIME = "time",
182
- LANG = "language",
183
- VISITORS = "desired-visitors-count",
184
- TAGS = "tags",
185
- PICS = "pictures",
186
- VIDEO = "video",
187
- PRICE = "price",
188
- SUCCESS = "success"
189
- }
190
- export interface ScheduleAnEventResponse extends QueryResponse<SEData, SEPhrases> {
191
- }
@@ -1,18 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ScheduleAnEventCategories = void 0;
4
- var ScheduleAnEventCategories;
5
- (function (ScheduleAnEventCategories) {
6
- ScheduleAnEventCategories["INTRO"] = "intro";
7
- ScheduleAnEventCategories["TYPE"] = "type";
8
- ScheduleAnEventCategories["NAME"] = "name";
9
- ScheduleAnEventCategories["DESCRIPTION"] = "description";
10
- ScheduleAnEventCategories["TIME"] = "time";
11
- ScheduleAnEventCategories["LANG"] = "language";
12
- ScheduleAnEventCategories["VISITORS"] = "desired-visitors-count";
13
- ScheduleAnEventCategories["TAGS"] = "tags";
14
- ScheduleAnEventCategories["PICS"] = "pictures";
15
- ScheduleAnEventCategories["VIDEO"] = "video";
16
- ScheduleAnEventCategories["PRICE"] = "price";
17
- ScheduleAnEventCategories["SUCCESS"] = "success";
18
- })(ScheduleAnEventCategories = exports.ScheduleAnEventCategories || (exports.ScheduleAnEventCategories = {}));