@timardex/cluemart-shared 1.1.78 → 1.1.80

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.
Files changed (55) hide show
  1. package/dist/{ad-BoyPTKzO.d.mts → ad-5mNvL58V.d.mts} +4 -4
  2. package/dist/{ad-ByaFgKCJ.d.ts → ad-DrHJhh2M.d.ts} +4 -4
  3. package/dist/{auth-CsMldwsP.d.mts → auth-C0eE66vz.d.mts} +1 -1
  4. package/dist/{auth-CatvNkT_.d.ts → auth-Csul8lXc.d.ts} +1 -1
  5. package/dist/{chunk-ERBPRUAF.mjs → chunk-AXCOUPK2.mjs} +20 -12
  6. package/dist/chunk-AXCOUPK2.mjs.map +1 -0
  7. package/dist/{chunk-JZMSWUO5.mjs → chunk-CCBDLLRT.mjs} +2 -2
  8. package/dist/{chunk-JFIG6CV2.mjs → chunk-YOGSPGDV.mjs} +2 -2
  9. package/dist/chunk-YOGSPGDV.mjs.map +1 -0
  10. package/dist/enums/index.cjs +20 -11
  11. package/dist/enums/index.cjs.map +1 -1
  12. package/dist/enums/index.d.mts +18 -12
  13. package/dist/enums/index.d.ts +18 -12
  14. package/dist/enums/index.mjs +3 -1
  15. package/dist/formFields/index.cjs +26 -26
  16. package/dist/formFields/index.cjs.map +1 -1
  17. package/dist/formFields/index.d.mts +7 -7
  18. package/dist/formFields/index.d.ts +7 -7
  19. package/dist/formFields/index.mjs +23 -23
  20. package/dist/formFields/index.mjs.map +1 -1
  21. package/dist/{global-Dt-vAIF9.d.mts → global-2SIDtEJn.d.ts} +17 -15
  22. package/dist/{global-BsANkXhj.d.ts → global-CNtWgZW4.d.mts} +17 -15
  23. package/dist/graphql/index.cjs +251 -248
  24. package/dist/graphql/index.cjs.map +1 -1
  25. package/dist/graphql/index.d.mts +33 -33
  26. package/dist/graphql/index.d.ts +33 -33
  27. package/dist/graphql/index.mjs +238 -235
  28. package/dist/graphql/index.mjs.map +1 -1
  29. package/dist/hooks/index.cjs +48 -36
  30. package/dist/hooks/index.cjs.map +1 -1
  31. package/dist/hooks/index.d.mts +15 -15
  32. package/dist/hooks/index.d.ts +15 -15
  33. package/dist/hooks/index.mjs +39 -33
  34. package/dist/hooks/index.mjs.map +1 -1
  35. package/dist/index.cjs +337 -320
  36. package/dist/index.cjs.map +1 -1
  37. package/dist/index.d.mts +82 -74
  38. package/dist/index.d.ts +82 -74
  39. package/dist/index.mjs +313 -297
  40. package/dist/index.mjs.map +1 -1
  41. package/dist/{resourceViews-ja9Qif1X.d.mts → resourceViews-COYpf0aX.d.mts} +2 -2
  42. package/dist/{resourceViews-C2CYUMC0.d.ts → resourceViews-DEKze3fc.d.ts} +2 -2
  43. package/dist/types/index.cjs +1 -1
  44. package/dist/types/index.cjs.map +1 -1
  45. package/dist/types/index.d.mts +4 -4
  46. package/dist/types/index.d.ts +4 -4
  47. package/dist/types/index.mjs +1 -1
  48. package/dist/utils/index.cjs.map +1 -1
  49. package/dist/utils/index.d.mts +1 -1
  50. package/dist/utils/index.d.ts +1 -1
  51. package/dist/utils/index.mjs +2 -2
  52. package/package.json +1 -1
  53. package/dist/chunk-ERBPRUAF.mjs.map +0 -1
  54. package/dist/chunk-JFIG6CV2.mjs.map +0 -1
  55. /package/dist/{chunk-JZMSWUO5.mjs.map → chunk-CCBDLLRT.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -35,6 +35,7 @@ __export(index_exports, {
35
35
  EnumAdStyle: () => EnumAdStyle,
36
36
  EnumAdType: () => EnumAdType,
37
37
  EnumChatType: () => EnumChatType,
38
+ EnumEventType: () => EnumEventType,
38
39
  EnumInviteStatus: () => EnumInviteStatus,
39
40
  EnumNotificationResourceType: () => EnumNotificationResourceType,
40
41
  EnumNotificationType: () => EnumNotificationType,
@@ -63,11 +64,16 @@ __export(index_exports, {
63
64
  contactUsFields: () => contactUsFields,
64
65
  darkColors: () => darkColors,
65
66
  dateFormat: () => dateFormat,
66
- defaultMarketFormValues: () => defaultMarketFormValues,
67
- defaultMarketInfoFormValues: () => defaultMarketInfoFormValues,
67
+ defaultEventFormValues: () => defaultEventFormValues,
68
+ defaultEventInfoFormValues: () => defaultEventInfoFormValues,
68
69
  defaultRegion: () => defaultRegion,
69
70
  defaultStallholderFormValues: () => defaultStallholderFormValues,
70
71
  defaultStallholderInfoFormValues: () => defaultStallholderInfoFormValues,
72
+ eventBasicInfoFields: () => eventBasicInfoFields,
73
+ eventEndDateFields: () => eventEndDateFields,
74
+ eventInfo: () => eventInfo,
75
+ eventInfoPaymentInfo: () => eventInfoPaymentInfo,
76
+ eventStartDateFields: () => eventStartDateFields,
71
77
  fonts: () => fonts,
72
78
  formatDate: () => formatDate,
73
79
  formatTimestamp: () => formatTimestamp,
@@ -78,11 +84,6 @@ __export(index_exports, {
78
84
  loginFields: () => loginFields,
79
85
  mapArrayToOptions: () => mapArrayToOptions,
80
86
  mapBaseResourceTypeToFormData: () => mapBaseResourceTypeToFormData,
81
- marketBasicInfoFields: () => marketBasicInfoFields,
82
- marketEndDateFields: () => marketEndDateFields,
83
- marketInfo: () => marketInfo,
84
- marketInfoPaymentInfo: () => marketInfoPaymentInfo,
85
- marketStartDateFields: () => marketStartDateFields,
86
87
  normalizeUrl: () => normalizeUrl,
87
88
  packagingOptions: () => packagingOptions,
88
89
  paymentMethodOptions: () => paymentMethodOptions,
@@ -122,8 +123,8 @@ __export(index_exports, {
122
123
  useContactUsForm: () => useContactUsForm,
123
124
  useCreateAd: () => useCreateAd,
124
125
  useCreateBulkNotifications: () => useCreateBulkNotifications,
125
- useCreateMarket: () => useCreateMarket,
126
- useCreateMarketInfo: () => useCreateMarketInfo,
126
+ useCreateEvent: () => useCreateEvent,
127
+ useCreateEventInfo: () => useCreateEventInfo,
127
128
  useCreatePoster: () => useCreatePoster,
128
129
  useCreatePushToken: () => useCreatePushToken,
129
130
  useCreateRelation: () => useCreateRelation,
@@ -135,27 +136,29 @@ __export(index_exports, {
135
136
  useDeleteAd: () => useDeleteAd,
136
137
  useDeleteAllNotifications: () => useDeleteAllNotifications,
137
138
  useDeleteChat: () => useDeleteChat,
138
- useDeleteMarket: () => useDeleteMarket,
139
+ useDeleteEvent: () => useDeleteEvent,
139
140
  useDeleteNotification: () => useDeleteNotification,
140
141
  useDeleteRelation: () => useDeleteRelation,
141
142
  useDeleteStallholder: () => useDeleteStallholder,
142
143
  useDeleteTester: () => useDeleteTester,
143
144
  useDeleteUser: () => useDeleteUser,
145
+ useEventForm: () => useEventForm,
146
+ useEventInfoForm: () => useEventInfoForm,
144
147
  useGetAd: () => useGetAd,
145
148
  useGetAds: () => useGetAds,
146
149
  useGetAdsByRegion: () => useGetAdsByRegion,
147
150
  useGetChat: () => useGetChat,
148
151
  useGetChatSubscription: () => useGetChatSubscription,
149
- useGetMarket: () => useGetMarket,
150
- useGetMarketInfo: () => useGetMarketInfo,
151
- useGetMarketRelations: () => useGetMarketRelations,
152
- useGetMarkets: () => useGetMarkets,
153
- useGetMarketsByRegion: () => useGetMarketsByRegion,
154
- useGetMarketsNearMe: () => useGetMarketsNearMe,
152
+ useGetEvent: () => useGetEvent,
153
+ useGetEventInfo: () => useGetEventInfo,
154
+ useGetEventRelations: () => useGetEventRelations,
155
+ useGetEvents: () => useGetEvents,
156
+ useGetEventsByRegion: () => useGetEventsByRegion,
157
+ useGetEventsNearMe: () => useGetEventsNearMe,
155
158
  useGetNotificationCount: () => useGetNotificationCount,
156
159
  useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
157
160
  useGetRelation: () => useGetRelation,
158
- useGetRelationByMarketAndStallholder: () => useGetRelationByMarketAndStallholder,
161
+ useGetRelationByEventAndStallholder: () => useGetRelationByEventAndStallholder,
159
162
  useGetResourceConnections: () => useGetResourceConnections,
160
163
  useGetResourceViews: () => useGetResourceViews,
161
164
  useGetStallholder: () => useGetStallholder,
@@ -167,8 +170,8 @@ __export(index_exports, {
167
170
  useGetTesters: () => useGetTesters,
168
171
  useGetUser: () => useGetUser,
169
172
  useGetUserChats: () => useGetUserChats,
173
+ useGetUserEvents: () => useGetUserEvents,
170
174
  useGetUserFavourites: () => useGetUserFavourites,
171
- useGetUserMarkets: () => useGetUserMarkets,
172
175
  useGetUserNotifications: () => useGetUserNotifications,
173
176
  useGetUserNotificationsSubscription: () => useGetUserNotificationsSubscription,
174
177
  useGetUserStallholder: () => useGetUserStallholder,
@@ -179,8 +182,6 @@ __export(index_exports, {
179
182
  useLogout: () => useLogout,
180
183
  useMarkAllNotificationsRead: () => useMarkAllNotificationsRead,
181
184
  useMarkNotificationRead: () => useMarkNotificationRead,
182
- useMarketForm: () => useMarketForm,
183
- useMarketInfoForm: () => useMarketInfoForm,
184
185
  useRefreshToken: () => useRefreshToken,
185
186
  useRegister: () => useRegister,
186
187
  useRegisterForm: () => useRegisterForm,
@@ -190,7 +191,7 @@ __export(index_exports, {
190
191
  useRequestPasswordResetForm: () => useRequestPasswordResetForm,
191
192
  useResetPassword: () => useResetPassword,
192
193
  useResetPasswordForm: () => useResetPasswordForm,
193
- useSearchMarkets: () => useSearchMarkets,
194
+ useSearchEvents: () => useSearchEvents,
194
195
  useSearchStallholders: () => useSearchStallholders,
195
196
  useSelectPackage: () => useSelectPackage,
196
197
  useSendChatMessage: () => useSendChatMessage,
@@ -198,8 +199,8 @@ __export(index_exports, {
198
199
  useStallholderInfoForm: () => useStallholderInfoForm,
199
200
  useTestersForm: () => useTestersForm,
200
201
  useUpdateAd: () => useUpdateAd,
201
- useUpdateMarket: () => useUpdateMarket,
202
- useUpdateMarketInfo: () => useUpdateMarketInfo,
202
+ useUpdateEvent: () => useUpdateEvent,
203
+ useUpdateEventInfo: () => useUpdateEventInfo,
203
204
  useUpdateRelation: () => useUpdateRelation,
204
205
  useUpdateStallholder: () => useUpdateStallholder,
205
206
  useUpdateStallholderInfo: () => useUpdateStallholderInfo,
@@ -240,10 +241,17 @@ var EnumPaymentMethod = /* @__PURE__ */ ((EnumPaymentMethod2) => {
240
241
  return EnumPaymentMethod2;
241
242
  })(EnumPaymentMethod || {});
242
243
  var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
243
- EnumResourceType2["MARKET"] = "market";
244
+ EnumResourceType2["EVENT"] = "event";
244
245
  EnumResourceType2["STALLHOLDER"] = "stallholder";
245
246
  return EnumResourceType2;
246
247
  })(EnumResourceType || {});
248
+ var EnumEventType = /* @__PURE__ */ ((EnumEventType2) => {
249
+ EnumEventType2["EXPO"] = "expo";
250
+ EnumEventType2["FAIR"] = "fair";
251
+ EnumEventType2["FESTIVAL"] = "festival";
252
+ EnumEventType2["MARKET"] = "market";
253
+ return EnumEventType2;
254
+ })(EnumEventType || {});
247
255
  var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform2) => {
248
256
  EnumOSPlatform2["ANDROID"] = "android";
249
257
  EnumOSPlatform2["IOS"] = "ios";
@@ -251,22 +259,22 @@ var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform2) => {
251
259
  return EnumOSPlatform2;
252
260
  })(EnumOSPlatform || {});
253
261
  var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource2) => {
254
- EnumRelationResource2["MARKET_INVITE_STALLHOLDER"] = "market_invite_stallholder";
255
- EnumRelationResource2["STALLHOLDER_APPLICATION_TO_MARKET"] = "stallholder_application_to_market";
262
+ EnumRelationResource2["EVENT_INVITE_STALLHOLDER"] = "event_invite_stallholder";
263
+ EnumRelationResource2["STALLHOLDER_APPLICATION_TO_EVENT"] = "stallholder_application_to_event";
256
264
  return EnumRelationResource2;
257
265
  })(EnumRelationResource || {});
258
266
  var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceType2) => {
259
- EnumNotificationResourceType2["CREATED_MARKET"] = "created_market";
267
+ EnumNotificationResourceType2["CREATED_EVENT"] = "created_event";
260
268
  EnumNotificationResourceType2["CREATED_STALLHOLDER"] = "created_stallholder";
261
- EnumNotificationResourceType2["APPROVED_MARKET"] = "approved_market";
269
+ EnumNotificationResourceType2["APPROVED_EVENT"] = "approved_event";
262
270
  EnumNotificationResourceType2["APPROVED_STALLHOLDER"] = "approved_stallholder";
263
271
  EnumNotificationResourceType2["NEW_CHAT_MESSAGE"] = "new_chat_message";
264
- EnumNotificationResourceType2["MARKET_INVITE_STALLHOLDER"] = "market_invite_stallholder" /* MARKET_INVITE_STALLHOLDER */;
265
- EnumNotificationResourceType2["STALLHOLDER_APPLICATION_TO_MARKET"] = "stallholder_application_to_market" /* STALLHOLDER_APPLICATION_TO_MARKET */;
272
+ EnumNotificationResourceType2["EVENT_INVITE_STALLHOLDER"] = "event_invite_stallholder" /* EVENT_INVITE_STALLHOLDER */;
273
+ EnumNotificationResourceType2["STALLHOLDER_APPLICATION_TO_EVENT"] = "stallholder_application_to_event" /* STALLHOLDER_APPLICATION_TO_EVENT */;
266
274
  return EnumNotificationResourceType2;
267
275
  })(EnumNotificationResourceType || {});
268
276
  var EnumNotificationType = /* @__PURE__ */ ((EnumNotificationType2) => {
269
- EnumNotificationType2["MARKET"] = "market" /* MARKET */;
277
+ EnumNotificationType2["EVENT"] = "event" /* EVENT */;
270
278
  EnumNotificationType2["STALLHOLDER"] = "stallholder" /* STALLHOLDER */;
271
279
  EnumNotificationType2["RELATION"] = "relation";
272
280
  EnumNotificationType2["CHAT"] = "chat";
@@ -296,11 +304,11 @@ var ImageTypeEnum = /* @__PURE__ */ ((ImageTypeEnum2) => {
296
304
  return ImageTypeEnum2;
297
305
  })(ImageTypeEnum || {});
298
306
  var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence2) => {
299
- EnumUserLicence2["PRO_MARKET"] = "pro_market";
300
- EnumUserLicence2["PRO_PLUS_MARKET"] = "pro_plus_market";
307
+ EnumUserLicence2["PRO_EVENT"] = "pro_event";
308
+ EnumUserLicence2["PRO_PLUS_EVENT"] = "pro_plus_event";
301
309
  EnumUserLicence2["PRO_PLUS_STALLHOLDER"] = "pro_plus_stallholder";
302
310
  EnumUserLicence2["PRO_STALLHOLDER"] = "pro_stallholder";
303
- EnumUserLicence2["STANDARD_MARKET"] = "standard_market";
311
+ EnumUserLicence2["STANDARD_EVENT"] = "standard_event";
304
312
  EnumUserLicence2["STANDARD_STALLHOLDER"] = "standard_stallholder";
305
313
  return EnumUserLicence2;
306
314
  })(EnumUserLicence || {});
@@ -452,7 +460,7 @@ var stallholderBasicInfoFields = [
452
460
  }
453
461
  ];
454
462
  var stallholderMultiLocation = {
455
- helperText: "Usefull when you are not only selling products on Markets but also providing services at other locations.",
463
+ helperText: "Usefull when you are not only selling products on Events but also providing services at other locations.",
456
464
  name: "multiLocation",
457
465
  placeholder: "Enable multi location"
458
466
  };
@@ -596,10 +604,10 @@ var producedIngTypes = [
596
604
  var packagingOptions = mapArrayToOptions(packagingTypes);
597
605
  var producedIngOptions = mapArrayToOptions(producedIngTypes);
598
606
 
599
- // src/formFields/market/market.ts
600
- var marketBasicInfoFields = [
607
+ // src/formFields/event/event.ts
608
+ var eventBasicInfoFields = [
601
609
  {
602
- helperText: "Name of the Market *",
610
+ helperText: "Name of the Event *",
603
611
  name: "name",
604
612
  placeholder: "Name"
605
613
  },
@@ -609,7 +617,7 @@ var marketBasicInfoFields = [
609
617
  placeholder: "Provider"
610
618
  },
611
619
  {
612
- helperText: "Description of the Market *",
620
+ helperText: "Description of the Event *",
613
621
  isTextArea: true,
614
622
  name: "description",
615
623
  placeholder: "Description"
@@ -620,30 +628,30 @@ var marketBasicInfoFields = [
620
628
  placeholder: "Promo code"
621
629
  }
622
630
  ];
623
- var marketStartDateFields = [
631
+ var eventStartDateFields = [
624
632
  {
625
633
  dateMode: "date",
626
- helperText: "Start Date of the Market *",
634
+ helperText: "Start Date of the Event *",
627
635
  name: "startDate",
628
636
  placeholder: "Start Date"
629
637
  },
630
638
  {
631
639
  dateMode: "time",
632
- helperText: "Start Time of the Market *",
640
+ helperText: "Start Time of the Event *",
633
641
  name: "startTime",
634
642
  placeholder: "Start Time"
635
643
  }
636
644
  ];
637
- var marketEndDateFields = [
645
+ var eventEndDateFields = [
638
646
  {
639
647
  dateMode: "date",
640
- helperText: "End Date of the Market *",
648
+ helperText: "End Date of the Event *",
641
649
  name: "endDate",
642
650
  placeholder: "End Date"
643
651
  },
644
652
  {
645
653
  dateMode: "time",
646
- helperText: "End Time of the Market *",
654
+ helperText: "End Time of the Event *",
647
655
  name: "endTime",
648
656
  placeholder: "End Time"
649
657
  }
@@ -671,10 +679,10 @@ var tagOptions = availableTagTypes.map((tag) => ({
671
679
  value: tag.label
672
680
  }));
673
681
 
674
- // src/formFields/market/marketInfo.ts
675
- var marketInfo = [
682
+ // src/formFields/event/eventInfo.ts
683
+ var eventInfo = [
676
684
  {
677
- helperText: "Application Deadline (hours before market start) \u2013 Stallholders cannot apply after this time. *",
685
+ helperText: "Application Deadline (hours before event start) \u2013 Stallholders cannot apply after this time. *",
678
686
  keyboardType: "number-pad",
679
687
  name: "applicationDeadlineHours",
680
688
  placeholder: "Application Deadline (in hours)"
@@ -686,13 +694,13 @@ var marketInfo = [
686
694
  placeholder: "Payment Due (in hours)"
687
695
  },
688
696
  {
689
- helperText: "Pack-In Time (hours before market start) \u2013 Stallholders can set up before the market begins. *",
697
+ helperText: "Pack-In Time (hours before event start) \u2013 Stallholders can set up before the event begins. *",
690
698
  keyboardType: "number-pad",
691
699
  name: "packInTime",
692
700
  placeholder: "Pack In Time (in hours)"
693
701
  }
694
702
  ];
695
- var marketInfoPaymentInfo = [
703
+ var eventInfoPaymentInfo = [
696
704
  {
697
705
  helperText: "Account holder name *",
698
706
  name: "accountHolderName",
@@ -2027,7 +2035,7 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
2027
2035
  }
2028
2036
  `;
2029
2037
 
2030
- // src/graphql/queries/market.ts
2038
+ // src/graphql/queries/event.ts
2031
2039
  var import_client3 = require("@apollo/client");
2032
2040
 
2033
2041
  // src/graphql/queries/global.ts
@@ -2083,13 +2091,13 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2083
2091
  email
2084
2092
  isTester
2085
2093
  favourites {
2086
- markets
2094
+ events
2087
2095
  stallholders
2088
2096
  }
2089
2097
  firstName
2090
2098
  lastName
2091
2099
  licences
2092
- markets
2100
+ events
2093
2101
  platform
2094
2102
  preferredRegion
2095
2103
  refreshToken
@@ -2111,17 +2119,17 @@ var STALL_TYPE_FIELDS_FRAGMENT = import_client2.gql`
2111
2119
  }
2112
2120
  `;
2113
2121
 
2114
- // src/graphql/queries/market.ts
2115
- var MARKET_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
2116
- fragment MarketDateTimeFields on MarketDateTimeType {
2122
+ // src/graphql/queries/event.ts
2123
+ var EVENT_DATETIME_FIELDS_FRAGMENT = import_client3.gql`
2124
+ fragment EventDateTimeFields on EventDateTimeType {
2117
2125
  endDate
2118
2126
  endTime
2119
2127
  startDate
2120
2128
  startTime
2121
2129
  }
2122
2130
  `;
2123
- var MARKET_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
2124
- fragment MarketLocationFields on MarketLocationType {
2131
+ var EVENT_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
2132
+ fragment EventLocationFields on EventLocationType {
2125
2133
  city
2126
2134
  coordinates
2127
2135
  country
@@ -2132,8 +2140,8 @@ var MARKET_LOCATION_FIELDS_FRAGMENT = import_client3.gql`
2132
2140
  type
2133
2141
  }
2134
2142
  `;
2135
- var MARKET_INFO = import_client3.gql`
2136
- fragment MarketInfoFields on MarketInfoType {
2143
+ var EVENT_INFO = import_client3.gql`
2144
+ fragment EventInfoFields on EventInfoType {
2137
2145
  _id
2138
2146
  applicationDeadlineHours
2139
2147
  contactDetails {
@@ -2150,7 +2158,7 @@ var MARKET_INFO = import_client3.gql`
2150
2158
  startDate
2151
2159
  startTime
2152
2160
  }
2153
- marketId
2161
+ eventId
2154
2162
  packInTime
2155
2163
  paymentDueHours
2156
2164
  paymentInfo {
@@ -2167,8 +2175,8 @@ var MARKET_INFO = import_client3.gql`
2167
2175
  }
2168
2176
  ${STALL_TYPE_FIELDS_FRAGMENT}
2169
2177
  `;
2170
- var MARKET = import_client3.gql`
2171
- fragment MarketFields on MarketType {
2178
+ var EVENT = import_client3.gql`
2179
+ fragment EventFields on EventType {
2172
2180
  _id
2173
2181
  active
2174
2182
  adIds
@@ -2177,20 +2185,21 @@ var MARKET = import_client3.gql`
2177
2185
  }
2178
2186
  createdAt
2179
2187
  dateTime {
2180
- ...MarketDateTimeFields
2188
+ ...EventDateTimeFields
2181
2189
  }
2182
2190
  description
2183
2191
  deletedAt
2184
2192
  images {
2185
2193
  ...ResourceImageFields
2186
2194
  }
2195
+ eventType
2187
2196
  location {
2188
- ...MarketLocationFields
2197
+ ...EventLocationFields
2189
2198
  }
2190
2199
  logo {
2191
2200
  ...ResourceImageFields
2192
2201
  }
2193
- marketInfoId
2202
+ eventInfoId
2194
2203
  name
2195
2204
  owner {
2196
2205
  ...OwnerFields
@@ -2209,60 +2218,60 @@ var MARKET = import_client3.gql`
2209
2218
  tags
2210
2219
  updatedAt
2211
2220
  }
2212
- ${MARKET_DATETIME_FIELDS_FRAGMENT}
2213
- ${MARKET_LOCATION_FIELDS_FRAGMENT}
2221
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
2222
+ ${EVENT_LOCATION_FIELDS_FRAGMENT}
2214
2223
  ${OWNER_FIELDS_FRAGMENT}
2215
2224
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2216
2225
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2217
2226
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2218
2227
  `;
2219
- var GET_MARKETS = import_client3.gql`
2220
- query getMarkets {
2221
- markets {
2222
- ...MarketFields
2228
+ var GET_EVENTS = import_client3.gql`
2229
+ query getEvents {
2230
+ events {
2231
+ ...EventFields
2223
2232
  }
2224
2233
  }
2225
- ${MARKET}
2234
+ ${EVENT}
2226
2235
  `;
2227
- var GET_MARKET = import_client3.gql`
2228
- query getMarket($_id: ID!) {
2229
- market(_id: $_id) {
2230
- ...MarketFields
2236
+ var GET_EVENT = import_client3.gql`
2237
+ query getEvent($_id: ID!) {
2238
+ event(_id: $_id) {
2239
+ ...EventFields
2231
2240
  }
2232
2241
  }
2233
- ${MARKET}
2242
+ ${EVENT}
2234
2243
  `;
2235
- var GET_MARKETS_BY_REGION = import_client3.gql`
2236
- query getMarketsByRegion($region: String!) {
2237
- marketsByRegion(region: $region) {
2238
- ...MarketFields
2244
+ var GET_EVENTS_BY_REGION = import_client3.gql`
2245
+ query getEventsByRegion($region: String!) {
2246
+ eventsByRegion(region: $region) {
2247
+ ...EventFields
2239
2248
  }
2240
2249
  }
2241
- ${MARKET}
2250
+ ${EVENT}
2242
2251
  `;
2243
- var SEARCH_MARKETS = import_client3.gql`
2244
- query searchMarkets($search: String!, $region: String) {
2245
- marketSearch(search: $search, region: $region) {
2246
- ...MarketFields
2252
+ var SEARCH_EVENTS = import_client3.gql`
2253
+ query searchEvents($search: String!, $region: String) {
2254
+ eventSearch(search: $search, region: $region) {
2255
+ ...EventFields
2247
2256
  }
2248
2257
  }
2249
- ${MARKET}
2258
+ ${EVENT}
2250
2259
  `;
2251
- var GET_MARKETS_NEAR_ME = import_client3.gql`
2252
- query getMarketsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
2253
- marketsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
2254
- ...MarketFields
2260
+ var GET_EVENTS_NEAR_ME = import_client3.gql`
2261
+ query getEventsNearMe($latitude: Float!, $longitude: Float!, $radius: Int) {
2262
+ eventsNearMe(latitude: $latitude, longitude: $longitude, radius: $radius) {
2263
+ ...EventFields
2255
2264
  }
2256
2265
  }
2257
- ${MARKET}
2266
+ ${EVENT}
2258
2267
  `;
2259
- var GET_MARKET_INFO = import_client3.gql`
2260
- query getMarketInfo($marketId: ID!) {
2261
- marketInfo(marketId: $marketId) {
2262
- ...MarketInfoFields
2268
+ var GET_EVENT_INFO = import_client3.gql`
2269
+ query getEventInfo($eventId: ID!) {
2270
+ eventInfo(eventId: $eventId) {
2271
+ ...EventInfoFields
2263
2272
  }
2264
2273
  }
2265
- ${MARKET_INFO}
2274
+ ${EVENT_INFO}
2266
2275
  `;
2267
2276
 
2268
2277
  // src/graphql/queries/stallholder.ts
@@ -2429,7 +2438,7 @@ var useAdminUpdateResourceType = () => {
2429
2438
  const resourceId = adminUpdateResourceType2?.resourceId;
2430
2439
  const resourceType = adminUpdateResourceType2?.resourceType;
2431
2440
  if (!resourceId) return [];
2432
- const detectQuery = resourceType === "market" /* MARKET */ ? GET_MARKET : GET_STALLHOLDER;
2441
+ const detectQuery = resourceType === "event" /* EVENT */ ? GET_EVENT : GET_STALLHOLDER;
2433
2442
  return [
2434
2443
  {
2435
2444
  query: detectQuery,
@@ -2595,7 +2604,7 @@ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
2595
2604
  ...ChatParticipantFields
2596
2605
  }
2597
2606
  resourceInfo {
2598
- marketId
2607
+ eventId
2599
2608
  stallholderId
2600
2609
  }
2601
2610
  updatedAt
@@ -2776,47 +2785,47 @@ var useContactUs = () => {
2776
2785
  return { contactUs, error, loading };
2777
2786
  };
2778
2787
 
2779
- // src/graphql/hooks/market/hooksMutation.ts
2788
+ // src/graphql/hooks/event/hooksMutation.ts
2780
2789
  var import_client17 = require("@apollo/client");
2781
2790
 
2782
- // src/graphql/mutations/market.ts
2791
+ // src/graphql/mutations/event.ts
2783
2792
  var import_client15 = require("@apollo/client");
2784
- var CREATE_MARKET_MUTATION = import_client15.gql`
2785
- mutation createMarket($input: MarketInputType!) {
2786
- createMarket(input: $input) {
2787
- ...MarketFields
2793
+ var CREATE_EVENT_MUTATION = import_client15.gql`
2794
+ mutation createEvent($input: EventInputType!) {
2795
+ createEvent(input: $input) {
2796
+ ...EventFields
2788
2797
  }
2789
2798
  }
2790
- ${MARKET}
2799
+ ${EVENT}
2791
2800
  `;
2792
- var UPDATE_MARKET_MUTATION = import_client15.gql`
2793
- mutation updateMarket($_id: ID!, $input: MarketInputType!) {
2794
- updateMarket(_id: $_id, input: $input) {
2795
- ...MarketFields
2801
+ var UPDATE_EVENT_MUTATION = import_client15.gql`
2802
+ mutation updateEvent($_id: ID!, $input: EventInputType!) {
2803
+ updateEvent(_id: $_id, input: $input) {
2804
+ ...EventFields
2796
2805
  }
2797
2806
  }
2798
- ${MARKET}
2807
+ ${EVENT}
2799
2808
  `;
2800
- var DELETE_MARKET_MUTATION = import_client15.gql`
2801
- mutation deleteMarket($_id: ID!) {
2802
- deleteMarket(_id: $_id)
2809
+ var DELETE_EVENT_MUTATION = import_client15.gql`
2810
+ mutation deleteEvent($_id: ID!) {
2811
+ deleteEvent(_id: $_id)
2803
2812
  }
2804
2813
  `;
2805
- var CREATE_MARKET_INFO_MUTATION = import_client15.gql`
2806
- mutation createMarketInfo($input: MarketInfoInputType!) {
2807
- createMarketInfo(input: $input) {
2808
- ...MarketInfoFields
2814
+ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
2815
+ mutation createEventInfo($input: EventInfoInputType!) {
2816
+ createEventInfo(input: $input) {
2817
+ ...EventInfoFields
2809
2818
  }
2810
2819
  }
2811
- ${MARKET_INFO}
2820
+ ${EVENT_INFO}
2812
2821
  `;
2813
- var UPDATE_MARKET_INFO_MUTATION = import_client15.gql`
2814
- mutation updateMarketInfo($_id: ID!, $input: MarketInfoInputType!) {
2815
- updateMarketInfo(_id: $_id, input: $input) {
2816
- ...MarketInfoFields
2822
+ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
2823
+ mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
2824
+ updateEventInfo(_id: $_id, input: $input) {
2825
+ ...EventInfoFields
2817
2826
  }
2818
2827
  }
2819
- ${MARKET_INFO}
2828
+ ${EVENT_INFO}
2820
2829
  `;
2821
2830
 
2822
2831
  // src/graphql/queries/user.ts
@@ -2837,13 +2846,13 @@ var GET_USER = import_client16.gql`
2837
2846
  }
2838
2847
  ${USER_FIELDS_FRAGMENT}
2839
2848
  `;
2840
- var GET_USER_MARKETS = import_client16.gql`
2841
- query getUserMarkets {
2842
- userMarkets {
2843
- ...MarketFields
2849
+ var GET_USER_EVENTS = import_client16.gql`
2850
+ query getUserEvents {
2851
+ userEvents {
2852
+ ...EventFields
2844
2853
  }
2845
2854
  }
2846
- ${MARKET}
2855
+ ${EVENT}
2847
2856
  `;
2848
2857
  var GET_USER_STALLHOLDER = import_client16.gql`
2849
2858
  query getUserStallholder {
@@ -2856,139 +2865,130 @@ var GET_USER_STALLHOLDER = import_client16.gql`
2856
2865
  var GET_USER_FAVOURITES = import_client16.gql`
2857
2866
  query getUserFavourites {
2858
2867
  userFavourites {
2859
- markets {
2860
- ...MarketFields
2868
+ events {
2869
+ ...EventFields
2861
2870
  }
2862
2871
  stallholders {
2863
2872
  ...StallholderFields
2864
2873
  }
2865
2874
  }
2866
2875
  }
2867
- ${MARKET}
2876
+ ${EVENT}
2868
2877
  ${STALLHOLDER}
2869
2878
  `;
2870
2879
 
2871
- // src/graphql/hooks/market/hooksMutation.ts
2872
- var useCreateMarket = () => {
2873
- const [createMarket, { loading, error }] = (0, import_client17.useMutation)(
2874
- CREATE_MARKET_MUTATION,
2875
- {
2876
- awaitRefetchQueries: true,
2877
- refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_MARKETS }]
2878
- }
2879
- );
2880
- return { createMarket, error, loading };
2880
+ // src/graphql/hooks/event/hooksMutation.ts
2881
+ var useCreateEvent = () => {
2882
+ const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
2883
+ awaitRefetchQueries: true,
2884
+ refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
2885
+ });
2886
+ return { createEvent, error, loading };
2881
2887
  };
2882
- var useUpdateMarket = () => {
2883
- const [updateMarket, { loading, error }] = (0, import_client17.useMutation)(
2884
- UPDATE_MARKET_MUTATION,
2885
- {
2886
- awaitRefetchQueries: true,
2887
- refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_MARKETS }]
2888
- }
2889
- );
2890
- return { error, loading, updateMarket };
2888
+ var useUpdateEvent = () => {
2889
+ const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
2890
+ awaitRefetchQueries: true,
2891
+ refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
2892
+ });
2893
+ return { error, loading, updateEvent };
2891
2894
  };
2892
- var useDeleteMarket = () => {
2893
- const [deleteMarket, { loading, error }] = (0, import_client17.useMutation)(
2894
- DELETE_MARKET_MUTATION,
2895
- {
2896
- awaitRefetchQueries: true,
2897
- refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_MARKETS }]
2898
- }
2899
- );
2900
- return { deleteMarket, error, loading };
2895
+ var useDeleteEvent = () => {
2896
+ const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
2897
+ awaitRefetchQueries: true,
2898
+ refetchQueries: [{ fetchPolicy: "no-cache", query: GET_USER_EVENTS }]
2899
+ });
2900
+ return { deleteEvent, error, loading };
2901
2901
  };
2902
- var useCreateMarketInfo = () => {
2903
- const [createMarketInfo, { loading, error }] = (0, import_client17.useMutation)(
2904
- CREATE_MARKET_INFO_MUTATION,
2902
+ var useCreateEventInfo = () => {
2903
+ const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
2904
+ CREATE_EVENT_INFO_MUTATION,
2905
2905
  {
2906
2906
  awaitRefetchQueries: true,
2907
2907
  refetchQueries: (mutationResult) => {
2908
- const marketId = mutationResult?.data?.createMarketInfo?.marketId;
2909
- if (!marketId) return [];
2908
+ const eventId = mutationResult?.data?.createEventInfo?.eventId;
2909
+ if (!eventId) return [];
2910
2910
  return [
2911
2911
  {
2912
- query: GET_MARKET_INFO,
2913
- variables: { marketId }
2914
- // Pass the marketId for refetching
2912
+ query: GET_EVENT_INFO,
2913
+ variables: { eventId }
2914
+ // Pass the eventId for refetching
2915
2915
  },
2916
2916
  {
2917
2917
  fetchPolicy: "no-cache",
2918
- query: GET_MARKET,
2919
- variables: { _id: marketId }
2920
- // Pass the marketId for refetching
2918
+ query: GET_EVENT,
2919
+ variables: { _id: eventId }
2920
+ // Pass the eventId for refetching
2921
2921
  }
2922
2922
  ];
2923
2923
  }
2924
2924
  }
2925
2925
  );
2926
- return { createMarketInfo, error, loading };
2926
+ return { createEventInfo, error, loading };
2927
2927
  };
2928
- var useUpdateMarketInfo = () => {
2929
- const [updateMarketInfo, { loading, error }] = (0, import_client17.useMutation)(
2930
- UPDATE_MARKET_INFO_MUTATION,
2928
+ var useUpdateEventInfo = () => {
2929
+ const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
2930
+ UPDATE_EVENT_INFO_MUTATION,
2931
2931
  {
2932
2932
  awaitRefetchQueries: true,
2933
2933
  refetchQueries: (mutationResult) => {
2934
- const marketId = mutationResult?.data?.updateMarketInfo?.marketId;
2935
- if (!marketId) return [];
2934
+ const eventId = mutationResult?.data?.updateEventInfo?.eventId;
2935
+ if (!eventId) return [];
2936
2936
  return [
2937
2937
  {
2938
- query: GET_MARKET_INFO,
2939
- variables: { marketId }
2940
- // Pass the marketId for refetching
2938
+ query: GET_EVENT_INFO,
2939
+ variables: { eventId }
2940
+ // Pass the eventId for refetching
2941
2941
  },
2942
2942
  {
2943
- query: GET_MARKET,
2944
- variables: { _id: marketId }
2945
- // Pass the marketId for refetching
2943
+ query: GET_EVENT,
2944
+ variables: { _id: eventId }
2945
+ // Pass the eventId for refetching
2946
2946
  }
2947
2947
  ];
2948
2948
  }
2949
2949
  }
2950
2950
  );
2951
- return { error, loading, updateMarketInfo };
2951
+ return { error, loading, updateEventInfo };
2952
2952
  };
2953
2953
 
2954
- // src/graphql/hooks/market/hooksQuery.ts
2954
+ // src/graphql/hooks/event/hooksQuery.ts
2955
2955
  var import_client18 = require("@apollo/client");
2956
- var useGetMarkets = () => {
2957
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKETS, {
2956
+ var useGetEvents = () => {
2957
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
2958
2958
  fetchPolicy: "network-only"
2959
2959
  });
2960
- const markets = data?.markets;
2961
- return { error, loading, markets, refetch };
2960
+ const events = data?.events;
2961
+ return { error, events, loading, refetch };
2962
2962
  };
2963
- var useGetMarket = (_id) => {
2964
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKET, {
2963
+ var useGetEvent = (_id) => {
2964
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
2965
2965
  fetchPolicy: "network-only",
2966
2966
  skip: !_id,
2967
2967
  variables: { _id }
2968
2968
  });
2969
- const market = data?.market;
2970
- return { error, loading, market, refetch };
2969
+ const event = data?.event;
2970
+ return { error, event, loading, refetch };
2971
2971
  };
2972
- var useGetMarketsByRegion = (region) => {
2973
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKETS_BY_REGION, {
2972
+ var useGetEventsByRegion = (region) => {
2973
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_BY_REGION, {
2974
2974
  fetchPolicy: "no-cache",
2975
2975
  skip: !region,
2976
2976
  variables: { region }
2977
2977
  });
2978
- const marketsByRegion = data?.marketsByRegion;
2979
- return { error, loading, marketsByRegion, refetch };
2978
+ const eventsByRegion = data?.eventsByRegion;
2979
+ return { error, eventsByRegion, loading, refetch };
2980
2980
  };
2981
- var useSearchMarkets = (search, region) => {
2982
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_MARKETS, {
2981
+ var useSearchEvents = (search, region) => {
2982
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
2983
2983
  fetchPolicy: "network-only",
2984
2984
  skip: search.length < 3,
2985
2985
  variables: { region, search }
2986
2986
  });
2987
- const marketsSearch = data?.marketSearch;
2988
- return { error, loading, marketsSearch, refetch };
2987
+ const eventsSearch = data?.eventsSearch;
2988
+ return { error, eventsSearch, loading, refetch };
2989
2989
  };
2990
- var useGetMarketsNearMe = (location) => {
2991
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKETS_NEAR_ME, {
2990
+ var useGetEventsNearMe = (location) => {
2991
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_NEAR_ME, {
2992
2992
  fetchPolicy: "network-only",
2993
2993
  skip: !location.latitude || !location.longitude,
2994
2994
  variables: {
@@ -2998,17 +2998,17 @@ var useGetMarketsNearMe = (location) => {
2998
2998
  // Default to 10km if no radius is provided
2999
2999
  }
3000
3000
  });
3001
- const marketsNearMe = data?.marketsNearMe;
3002
- return { error, loading, marketsNearMe, refetch };
3001
+ const eventsNearMe = data?.eventsNearMe;
3002
+ return { error, eventsNearMe, loading, refetch };
3003
3003
  };
3004
- var useGetMarketInfo = (marketId) => {
3005
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_MARKET_INFO, {
3004
+ var useGetEventInfo = (eventId) => {
3005
+ const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT_INFO, {
3006
3006
  fetchPolicy: "network-only",
3007
- skip: !marketId,
3008
- variables: { marketId }
3007
+ skip: !eventId,
3008
+ variables: { eventId }
3009
3009
  });
3010
- const marketInfo2 = data?.marketInfo;
3011
- return { error, loading, marketInfo: marketInfo2, refetch };
3010
+ const eventInfo2 = data?.eventInfo;
3011
+ return { error, eventInfo: eventInfo2, loading, refetch };
3012
3012
  };
3013
3013
 
3014
3014
  // src/graphql/hooks/notifications/hooksMutation.ts
@@ -3258,7 +3258,7 @@ var useCreatePoster = () => {
3258
3258
  {
3259
3259
  fetchPolicy: "no-cache",
3260
3260
  refetchQueries: [
3261
- { query: GET_USER_MARKETS },
3261
+ { query: GET_USER_EVENTS },
3262
3262
  { query: GET_USER_STALLHOLDER }
3263
3263
  ]
3264
3264
  }
@@ -3316,7 +3316,7 @@ var RELATION_FIELDS_FRAGMENT = import_client29.gql`
3316
3316
  chatId
3317
3317
  createdAt
3318
3318
  lastUpdateBy
3319
- marketId
3319
+ eventId
3320
3320
  relationDates {
3321
3321
  ...RelationDates
3322
3322
  }
@@ -3334,10 +3334,10 @@ var GET_RELATION = import_client29.gql`
3334
3334
  }
3335
3335
  ${RELATION_FIELDS_FRAGMENT}
3336
3336
  `;
3337
- var GET_RELATION_BY_MARKET_AND_STALLHOLDER = import_client29.gql`
3338
- query getRelationByMarketAndStallholder($marketId: ID!, $stallholderId: ID!) {
3339
- relationByMarketAndStallholder(
3340
- marketId: $marketId
3337
+ var GET_RELATION_BY_EVENT_AND_STALLHOLDER = import_client29.gql`
3338
+ query getRelationByEventAndStallholder($eventId: ID!, $stallholderId: ID!) {
3339
+ relationByEventAndStallholder(
3340
+ eventId: $eventId
3341
3341
  stallholderId: $stallholderId
3342
3342
  ) {
3343
3343
  ...RelationFields
@@ -3345,9 +3345,9 @@ var GET_RELATION_BY_MARKET_AND_STALLHOLDER = import_client29.gql`
3345
3345
  }
3346
3346
  ${RELATION_FIELDS_FRAGMENT}
3347
3347
  `;
3348
- var GET_MARKET_RELATIONS = import_client29.gql`
3349
- query getMarketRelations($marketId: ID!) {
3350
- marketRelations(marketId: $marketId) {
3348
+ var GET_EVENT_RELATIONS = import_client29.gql`
3349
+ query getEventRelations($eventId: ID!) {
3350
+ eventRelations(eventId: $eventId) {
3351
3351
  ...RelationFields
3352
3352
  }
3353
3353
  }
@@ -3367,7 +3367,7 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
3367
3367
  $resourceType: ResourceTypeEnum!
3368
3368
  ) {
3369
3369
  resourceConnections(resourceId: $resourceId, resourceType: $resourceType) {
3370
- markets {
3370
+ events {
3371
3371
  _id
3372
3372
  active
3373
3373
  adIds
@@ -3376,20 +3376,21 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
3376
3376
  }
3377
3377
  createdAt
3378
3378
  dateTime {
3379
- ...MarketDateTimeFields
3379
+ ...EventDateTimeFields
3380
3380
  }
3381
3381
  description
3382
3382
  deletedAt
3383
3383
  images {
3384
3384
  ...ResourceImageFields
3385
3385
  }
3386
+ eventType
3386
3387
  location {
3387
- ...MarketLocationFields
3388
+ ...EventLocationFields
3388
3389
  }
3389
3390
  logo {
3390
3391
  ...ResourceImageFields
3391
3392
  }
3392
- marketInfoId
3393
+ eventInfoId
3393
3394
  name
3394
3395
  owner {
3395
3396
  ...OwnerFields
@@ -3463,8 +3464,8 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
3463
3464
  }
3464
3465
  }
3465
3466
  }
3466
- ${MARKET_DATETIME_FIELDS_FRAGMENT}
3467
- ${MARKET_LOCATION_FIELDS_FRAGMENT}
3467
+ ${EVENT_DATETIME_FIELDS_FRAGMENT}
3468
+ ${EVENT_LOCATION_FIELDS_FRAGMENT}
3468
3469
  ${OWNER_FIELDS_FRAGMENT}
3469
3470
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3470
3471
  ${CATEGORY_FIELDS_FRAGMENT}
@@ -3510,20 +3511,25 @@ var useCreateRelation = () => {
3510
3511
  awaitRefetchQueries: true,
3511
3512
  refetchQueries: (mutationResult) => {
3512
3513
  const createRelation2 = mutationResult?.data?.createRelation;
3513
- const marketId = createRelation2?.marketId;
3514
+ const eventId = createRelation2?.eventId;
3514
3515
  const stallholderId = createRelation2?.stallholderId;
3515
3516
  const resourceType = createRelation2?.lastUpdateBy;
3516
- const resourceId = resourceType === "market" /* MARKET */ ? marketId : stallholderId;
3517
+ const resourceId = resourceType === "event" /* EVENT */ ? eventId : stallholderId;
3517
3518
  return [
3518
3519
  {
3519
3520
  fetchPolicy,
3520
- query: GET_MARKET_RELATIONS,
3521
- variables: { marketId }
3521
+ query: GET_EVENT_RELATIONS,
3522
+ variables: { eventId }
3522
3523
  },
3523
3524
  {
3524
3525
  fetchPolicy,
3525
- query: GET_MARKET,
3526
- variables: { _id: marketId }
3526
+ query: GET_EVENT,
3527
+ variables: { _id: eventId }
3528
+ },
3529
+ {
3530
+ fetchPolicy,
3531
+ query: GET_EVENT_INFO,
3532
+ variables: { eventId }
3527
3533
  },
3528
3534
  {
3529
3535
  fetchPolicy,
@@ -3537,8 +3543,8 @@ var useCreateRelation = () => {
3537
3543
  },
3538
3544
  {
3539
3545
  fetchPolicy,
3540
- query: GET_RELATION_BY_MARKET_AND_STALLHOLDER,
3541
- variables: { marketId, stallholderId }
3546
+ query: GET_RELATION_BY_EVENT_AND_STALLHOLDER,
3547
+ variables: { eventId, stallholderId }
3542
3548
  },
3543
3549
  {
3544
3550
  fetchPolicy,
@@ -3562,20 +3568,25 @@ var useUpdateRelation = () => {
3562
3568
  awaitRefetchQueries: true,
3563
3569
  refetchQueries: (mutationResult) => {
3564
3570
  const updateRelation2 = mutationResult?.data?.updateRelation;
3565
- const marketId = updateRelation2?.marketId;
3571
+ const eventId = updateRelation2?.eventId;
3566
3572
  const stallholderId = updateRelation2?.stallholderId;
3567
3573
  const resourceType = updateRelation2?.lastUpdateBy;
3568
- const resourceId = resourceType === "market" /* MARKET */ ? marketId : stallholderId;
3574
+ const resourceId = resourceType === "event" /* EVENT */ ? eventId : stallholderId;
3569
3575
  return [
3570
3576
  {
3571
3577
  fetchPolicy,
3572
- query: GET_MARKET_RELATIONS,
3573
- variables: { marketId }
3578
+ query: GET_EVENT_RELATIONS,
3579
+ variables: { eventId }
3580
+ },
3581
+ {
3582
+ fetchPolicy,
3583
+ query: GET_EVENT,
3584
+ variables: { _id: eventId }
3574
3585
  },
3575
3586
  {
3576
3587
  fetchPolicy,
3577
- query: GET_MARKET,
3578
- variables: { _id: marketId }
3588
+ query: GET_EVENT_INFO,
3589
+ variables: { eventId }
3579
3590
  },
3580
3591
  {
3581
3592
  fetchPolicy,
@@ -3589,8 +3600,8 @@ var useUpdateRelation = () => {
3589
3600
  },
3590
3601
  {
3591
3602
  fetchPolicy,
3592
- query: GET_RELATION_BY_MARKET_AND_STALLHOLDER,
3593
- variables: { marketId, stallholderId }
3603
+ query: GET_RELATION_BY_EVENT_AND_STALLHOLDER,
3604
+ variables: { eventId, stallholderId }
3594
3605
  },
3595
3606
  {
3596
3607
  fetchPolicy,
@@ -3610,20 +3621,20 @@ var useDeleteRelation = () => {
3610
3621
  awaitRefetchQueries: true,
3611
3622
  refetchQueries: (mutationResult) => {
3612
3623
  const deleteRelation2 = mutationResult?.data?.deleteRelation;
3613
- const marketId = deleteRelation2?.marketId;
3624
+ const eventId = deleteRelation2?.eventId;
3614
3625
  const stallholderId = deleteRelation2?.stallholderId;
3615
3626
  const resourceType = deleteRelation2?.lastUpdateBy;
3616
- const resourceId = resourceType === "market" /* MARKET */ ? marketId : stallholderId;
3627
+ const resourceId = resourceType === "event" /* EVENT */ ? eventId : stallholderId;
3617
3628
  return [
3618
3629
  {
3619
3630
  fetchPolicy,
3620
- query: GET_MARKET_INFO,
3621
- variables: { marketId }
3631
+ query: GET_EVENT_INFO,
3632
+ variables: { eventId }
3622
3633
  },
3623
3634
  {
3624
3635
  fetchPolicy,
3625
- query: GET_MARKET_RELATIONS,
3626
- variables: { marketId }
3636
+ query: GET_EVENT_RELATIONS,
3637
+ variables: { eventId }
3627
3638
  },
3628
3639
  {
3629
3640
  fetchPolicy,
@@ -3632,8 +3643,8 @@ var useDeleteRelation = () => {
3632
3643
  },
3633
3644
  {
3634
3645
  fetchPolicy,
3635
- query: GET_RELATION_BY_MARKET_AND_STALLHOLDER,
3636
- variables: { marketId, stallholderId }
3646
+ query: GET_RELATION_BY_EVENT_AND_STALLHOLDER,
3647
+ variables: { eventId, stallholderId }
3637
3648
  },
3638
3649
  {
3639
3650
  fetchPolicy,
@@ -3662,26 +3673,26 @@ var useGetRelation = (_id) => {
3662
3673
  const relation = data?.relation;
3663
3674
  return { error, loading, refetch, relation };
3664
3675
  };
3665
- var useGetRelationByMarketAndStallholder = (marketId, stallholderId) => {
3676
+ var useGetRelationByEventAndStallholder = (eventId, stallholderId) => {
3666
3677
  const { loading, error, data, refetch } = (0, import_client32.useQuery)(
3667
- GET_RELATION_BY_MARKET_AND_STALLHOLDER,
3678
+ GET_RELATION_BY_EVENT_AND_STALLHOLDER,
3668
3679
  {
3669
3680
  fetchPolicy: "network-only",
3670
- skip: !marketId || !stallholderId,
3671
- variables: { marketId, stallholderId }
3681
+ skip: !eventId || !stallholderId,
3682
+ variables: { eventId, stallholderId }
3672
3683
  }
3673
3684
  );
3674
- const relationByMarketAndStallholder = data?.relationByMarketAndStallholder;
3675
- return { error, loading, refetch, relationByMarketAndStallholder };
3685
+ const relationByEventAndStallholder = data?.relationByEventAndStallholder;
3686
+ return { error, loading, refetch, relationByEventAndStallholder };
3676
3687
  };
3677
- var useGetMarketRelations = (marketId) => {
3678
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_MARKET_RELATIONS, {
3688
+ var useGetEventRelations = (eventId) => {
3689
+ const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_EVENT_RELATIONS, {
3679
3690
  fetchPolicy: "network-only",
3680
- skip: !marketId,
3681
- variables: { marketId }
3691
+ skip: !eventId,
3692
+ variables: { eventId }
3682
3693
  });
3683
- const marketRelations = data?.marketRelations;
3684
- return { error, loading, marketRelations, refetch };
3694
+ const eventRelations = data?.eventRelations;
3695
+ return { error, eventRelations, loading, refetch };
3685
3696
  };
3686
3697
  var useGetStallholderRelations = (stallholderId) => {
3687
3698
  const { loading, error, data, refetch } = (0, import_client32.useQuery)(
@@ -4131,7 +4142,7 @@ var useSelectPackage = () => {
4131
4142
  if (!userId) return [];
4132
4143
  return [
4133
4144
  { query: GET_USER, variables: { _id: userId } },
4134
- { query: GET_USER_MARKETS },
4145
+ { query: GET_USER_EVENTS },
4135
4146
  { query: GET_USER_STALLHOLDER }
4136
4147
  ];
4137
4148
  }
@@ -4156,12 +4167,12 @@ var useGetUser = (_id) => {
4156
4167
  const user = data?.user;
4157
4168
  return { error, loading, refetch, user };
4158
4169
  };
4159
- var useGetUserMarkets = () => {
4160
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_MARKETS, {
4170
+ var useGetUserEvents = () => {
4171
+ const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_EVENTS, {
4161
4172
  fetchPolicy: "network-only"
4162
4173
  });
4163
- const userMarkets = data?.userMarkets;
4164
- return { error, loading, refetch, userMarkets };
4174
+ const userEvents = data?.userEvents;
4175
+ return { error, loading, refetch, userEvents };
4165
4176
  };
4166
4177
  var useGetUserStallholder = () => {
4167
4178
  const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_STALLHOLDER, {
@@ -4174,10 +4185,10 @@ var useGetUserFavourites = () => {
4174
4185
  const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_FAVOURITES, {
4175
4186
  fetchPolicy: "network-only"
4176
4187
  });
4177
- const markets = data?.userFavourites.markets;
4188
+ const events = data?.userFavourites.events;
4178
4189
  const stallholders = data?.userFavourites.stallholders;
4179
4190
  const userFavourites = {
4180
- markets,
4191
+ events,
4181
4192
  stallholders
4182
4193
  };
4183
4194
  return { error, loading, refetch, userFavourites };
@@ -4670,11 +4681,11 @@ var contactDetailsSchema = yup.object({
4670
4681
  )
4671
4682
  }).nullable().optional().label("Contact Details");
4672
4683
 
4673
- // src/yupSchema/market.ts
4684
+ // src/yupSchema/event.ts
4674
4685
  var yup2 = __toESM(require("yup"));
4675
4686
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
4676
- var marketSchema = globalResourceSchema.shape({
4677
- dateTime: yup2.array().of(dateTimeSchema).min(1, "At least one Market date required").max(50, "You can only add up to 50 Market dates").required("DateTime is required").test(
4687
+ var eventSchema = globalResourceSchema.shape({
4688
+ dateTime: yup2.array().of(dateTimeSchema).min(1, "At least one Event date required").max(50, "You can only add up to 50 Event dates").required("DateTime is required").test(
4678
4689
  "unique-start-date-time",
4679
4690
  "Start Date and Time must be unique",
4680
4691
  function(value) {
@@ -4691,8 +4702,9 @@ var marketSchema = globalResourceSchema.shape({
4691
4702
  return true;
4692
4703
  }
4693
4704
  ),
4705
+ eventType: yup2.mixed().oneOf(Object.values(EnumEventType)).required("Please select an Event type"),
4694
4706
  location: locationSchema,
4695
- rainOrShine: yup2.boolean().label("Rain or Shine").required("Please specify if the market is rain or shine"),
4707
+ rainOrShine: yup2.boolean().label("Rain or Shine").required("Please specify if the event is rain or shine"),
4696
4708
  tags: yup2.array().of(yup2.string().defined()).min(1, "Tags are required").required("Tags are required")
4697
4709
  });
4698
4710
  var paymentInfoSchema = yup2.object({
@@ -4716,11 +4728,11 @@ var paymentInfoSchema = yup2.object({
4716
4728
  otherwise: (schema) => schema.notRequired()
4717
4729
  })
4718
4730
  });
4719
- var marketInfoSchema = yup2.object().shape({
4731
+ var eventInfoSchema = yup2.object().shape({
4720
4732
  contactDetails: contactDetailsSchema,
4721
4733
  applicationDeadlineHours: yup2.number().label("Application Deadline Hours").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Application deadline hours must be a number").min(1, "Application deadline hours must be at least 1").required("Application deadline hours is required").test("no-leading-zeros", "", noLeadingZeros("Application deadline hours")),
4722
4734
  dateTime: yup2.array().of(dateTimeWithPriceSchema).required("DateTime is required"),
4723
- marketId: yup2.string().trim().required("Market ID is required"),
4735
+ eventId: yup2.string().trim().required("Event ID is required"),
4724
4736
  packInTime: yup2.number().label("Pack In Time").typeError("Pack in time must be a number").min(1, "Pack in time must be at least 1").required("Pack in time is required").test("no-leading-zeros", "", noLeadingZeros("Pack in time")),
4725
4737
  paymentDueHours: yup2.number().label("Payment Due Hours").typeError("Payment due hours must be a number").min(1, "Payment due hours must be at least 1").required("Payment due hours is required").test("no-leading-zeros", "", noLeadingZeros("Payment due hours")),
4726
4738
  paymentInfo: yup2.array().of(paymentInfoSchema).min(1, "At least one payment info is required").required("Payment info is required")
@@ -4830,7 +4842,7 @@ var testersSchema = yup6.object().shape({
4830
4842
  osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS device").required("OS Type is required"),
4831
4843
  resourceType: yup6.mixed().oneOf(
4832
4844
  Object.values(EnumResourceType),
4833
- "Please select Market or Stallholder"
4845
+ "Please select Event or Stallholder"
4834
4846
  ).required("Resource Type is required")
4835
4847
  });
4836
4848
 
@@ -4840,7 +4852,7 @@ var yup7 = __toESM(require("yup"));
4840
4852
  // src/types/ad.ts
4841
4853
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
4842
4854
  EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
4843
- EnumAdShowOn2["MARKETS_PAGE"] = "Markets_page";
4855
+ EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
4844
4856
  EnumAdShowOn2["STALLHOLDERS_PAGE"] = "Stallholders_page";
4845
4857
  return EnumAdShowOn2;
4846
4858
  })(EnumAdShowOn || {});
@@ -4892,7 +4904,7 @@ var adSchema = yup7.object().shape({
4892
4904
  resourceRegion: yup7.string().required("Resource region is required"),
4893
4905
  resourceType: yup7.mixed().oneOf(
4894
4906
  Object.values(EnumResourceType),
4895
- "Please select Market or Stallholder"
4907
+ "Please select Event or Stallholder"
4896
4908
  ).required("Resource Type is required"),
4897
4909
  showOn: yup7.mixed().oneOf(
4898
4910
  Object.values(EnumAdShowOn),
@@ -4932,7 +4944,7 @@ var globalDefaultValues = {
4932
4944
  region: "",
4933
4945
  socialMedia: []
4934
4946
  };
4935
- var defaultMarketFormValues = {
4947
+ var defaultEventFormValues = {
4936
4948
  ...globalDefaultValues,
4937
4949
  dateTime: [
4938
4950
  {
@@ -4942,6 +4954,7 @@ var defaultMarketFormValues = {
4942
4954
  startTime: ""
4943
4955
  }
4944
4956
  ],
4957
+ eventType: "market" /* MARKET */,
4945
4958
  location: {
4946
4959
  city: "",
4947
4960
  coordinates: [0, 0],
@@ -4958,7 +4971,7 @@ var defaultMarketFormValues = {
4958
4971
  rainOrShine: false,
4959
4972
  tags: []
4960
4973
  };
4961
- var defaultMarketInfoFormValues = {
4974
+ var defaultEventInfoFormValues = {
4962
4975
  applicationDeadlineHours: 48,
4963
4976
  contactDetails: {
4964
4977
  email: null,
@@ -4974,9 +4987,9 @@ var defaultMarketInfoFormValues = {
4974
4987
  startTime: ""
4975
4988
  }
4976
4989
  ],
4977
- marketId: "",
4990
+ eventId: "",
4978
4991
  packInTime: 2,
4979
- // e.g., 2 hours before market opens
4992
+ // e.g., 2 hours before event opens
4980
4993
  paymentDueHours: 24,
4981
4994
  paymentInfo: [],
4982
4995
  requirements: []
@@ -5177,11 +5190,11 @@ function useStallholderInfoForm(data) {
5177
5190
  };
5178
5191
  }
5179
5192
 
5180
- // src/hooks/market/useMarketForm.ts
5193
+ // src/hooks/event/useEventForm.ts
5181
5194
  var import_yup3 = require("@hookform/resolvers/yup");
5182
5195
  var React3 = __toESM(require("react"));
5183
5196
  var import_react_hook_form3 = require("react-hook-form");
5184
- function useMarketForm(data) {
5197
+ function useEventForm(data) {
5185
5198
  const {
5186
5199
  control,
5187
5200
  formState: { errors },
@@ -5191,21 +5204,22 @@ function useMarketForm(data) {
5191
5204
  setValue,
5192
5205
  watch
5193
5206
  } = (0, import_react_hook_form3.useForm)({
5194
- defaultValues: defaultMarketFormValues,
5195
- resolver: (0, import_yup3.yupResolver)(marketSchema)
5207
+ defaultValues: defaultEventFormValues,
5208
+ resolver: (0, import_yup3.yupResolver)(eventSchema)
5196
5209
  });
5197
5210
  React3.useEffect(() => {
5198
5211
  if (data) {
5199
5212
  reset({
5200
5213
  ...mapBaseResourceTypeToFormData(data),
5201
5214
  dateTime: data.dateTime,
5215
+ eventType: data.eventType,
5202
5216
  location: data.location,
5203
5217
  provider: data.provider,
5204
5218
  rainOrShine: data.rainOrShine,
5205
5219
  tags: data.tags
5206
5220
  });
5207
5221
  } else {
5208
- reset(defaultMarketFormValues);
5222
+ reset(defaultEventFormValues);
5209
5223
  }
5210
5224
  }, [data]);
5211
5225
  const {
@@ -5215,6 +5229,7 @@ function useMarketForm(data) {
5215
5229
  coverUpload,
5216
5230
  dateTime,
5217
5231
  description,
5232
+ eventType,
5218
5233
  images,
5219
5234
  imagesUpload,
5220
5235
  location,
@@ -5237,6 +5252,7 @@ function useMarketForm(data) {
5237
5252
  coverUpload,
5238
5253
  dateTime,
5239
5254
  description,
5255
+ eventType,
5240
5256
  images,
5241
5257
  imagesUpload,
5242
5258
  location,
@@ -5258,11 +5274,11 @@ function useMarketForm(data) {
5258
5274
  };
5259
5275
  }
5260
5276
 
5261
- // src/hooks/market/useMarketInfoForm.ts
5277
+ // src/hooks/event/useEventInfoForm.ts
5262
5278
  var import_yup4 = require("@hookform/resolvers/yup");
5263
5279
  var React4 = __toESM(require("react"));
5264
5280
  var import_react_hook_form4 = require("react-hook-form");
5265
- function useMarketInfoForm(data) {
5281
+ function useEventInfoForm(data) {
5266
5282
  const {
5267
5283
  control,
5268
5284
  formState: { errors },
@@ -5272,8 +5288,8 @@ function useMarketInfoForm(data) {
5272
5288
  setValue,
5273
5289
  watch
5274
5290
  } = (0, import_react_hook_form4.useForm)({
5275
- defaultValues: defaultMarketInfoFormValues,
5276
- resolver: (0, import_yup4.yupResolver)(marketInfoSchema)
5291
+ defaultValues: defaultEventInfoFormValues,
5292
+ resolver: (0, import_yup4.yupResolver)(eventInfoSchema)
5277
5293
  });
5278
5294
  React4.useEffect(() => {
5279
5295
  if (data) {
@@ -5282,14 +5298,14 @@ function useMarketInfoForm(data) {
5282
5298
  applicationDeadlineHours: data.applicationDeadlineHours,
5283
5299
  contactDetails: data.contactDetails,
5284
5300
  dateTime: data.dateTime,
5285
- marketId: data.marketId,
5301
+ eventId: data.eventId,
5286
5302
  packInTime: data.packInTime,
5287
5303
  paymentDueHours: data.paymentDueHours,
5288
5304
  paymentInfo: data.paymentInfo,
5289
5305
  requirements: data.requirements
5290
5306
  });
5291
5307
  } else {
5292
- reset(defaultMarketInfoFormValues);
5308
+ reset(defaultEventInfoFormValues);
5293
5309
  }
5294
5310
  }, [data]);
5295
5311
  const {
@@ -5297,7 +5313,7 @@ function useMarketInfoForm(data) {
5297
5313
  applicationDeadlineHours,
5298
5314
  contactDetails,
5299
5315
  dateTime,
5300
- marketId,
5316
+ eventId,
5301
5317
  packInTime,
5302
5318
  paymentDueHours,
5303
5319
  paymentInfo,
@@ -5310,7 +5326,7 @@ function useMarketInfoForm(data) {
5310
5326
  applicationDeadlineHours,
5311
5327
  contactDetails,
5312
5328
  dateTime,
5313
- marketId,
5329
+ eventId,
5314
5330
  packInTime,
5315
5331
  paymentDueHours,
5316
5332
  paymentInfo,
@@ -5740,7 +5756,7 @@ var defaultValues9 = {
5740
5756
  resourceName: "",
5741
5757
  resourceRegion: "",
5742
5758
  resourceType: "",
5743
- // default to market
5759
+ // default to event
5744
5760
  showOn: "Front_page" /* FRONT_PAGE */,
5745
5761
  // default to front page
5746
5762
  socialMedia: [],
@@ -5885,6 +5901,7 @@ var fonts = {
5885
5901
  EnumAdStyle,
5886
5902
  EnumAdType,
5887
5903
  EnumChatType,
5904
+ EnumEventType,
5888
5905
  EnumInviteStatus,
5889
5906
  EnumNotificationResourceType,
5890
5907
  EnumNotificationType,
@@ -5913,11 +5930,16 @@ var fonts = {
5913
5930
  contactUsFields,
5914
5931
  darkColors,
5915
5932
  dateFormat,
5916
- defaultMarketFormValues,
5917
- defaultMarketInfoFormValues,
5933
+ defaultEventFormValues,
5934
+ defaultEventInfoFormValues,
5918
5935
  defaultRegion,
5919
5936
  defaultStallholderFormValues,
5920
5937
  defaultStallholderInfoFormValues,
5938
+ eventBasicInfoFields,
5939
+ eventEndDateFields,
5940
+ eventInfo,
5941
+ eventInfoPaymentInfo,
5942
+ eventStartDateFields,
5921
5943
  fonts,
5922
5944
  formatDate,
5923
5945
  formatTimestamp,
@@ -5928,11 +5950,6 @@ var fonts = {
5928
5950
  loginFields,
5929
5951
  mapArrayToOptions,
5930
5952
  mapBaseResourceTypeToFormData,
5931
- marketBasicInfoFields,
5932
- marketEndDateFields,
5933
- marketInfo,
5934
- marketInfoPaymentInfo,
5935
- marketStartDateFields,
5936
5953
  normalizeUrl,
5937
5954
  packagingOptions,
5938
5955
  paymentMethodOptions,
@@ -5972,8 +5989,8 @@ var fonts = {
5972
5989
  useContactUsForm,
5973
5990
  useCreateAd,
5974
5991
  useCreateBulkNotifications,
5975
- useCreateMarket,
5976
- useCreateMarketInfo,
5992
+ useCreateEvent,
5993
+ useCreateEventInfo,
5977
5994
  useCreatePoster,
5978
5995
  useCreatePushToken,
5979
5996
  useCreateRelation,
@@ -5985,27 +6002,29 @@ var fonts = {
5985
6002
  useDeleteAd,
5986
6003
  useDeleteAllNotifications,
5987
6004
  useDeleteChat,
5988
- useDeleteMarket,
6005
+ useDeleteEvent,
5989
6006
  useDeleteNotification,
5990
6007
  useDeleteRelation,
5991
6008
  useDeleteStallholder,
5992
6009
  useDeleteTester,
5993
6010
  useDeleteUser,
6011
+ useEventForm,
6012
+ useEventInfoForm,
5994
6013
  useGetAd,
5995
6014
  useGetAds,
5996
6015
  useGetAdsByRegion,
5997
6016
  useGetChat,
5998
6017
  useGetChatSubscription,
5999
- useGetMarket,
6000
- useGetMarketInfo,
6001
- useGetMarketRelations,
6002
- useGetMarkets,
6003
- useGetMarketsByRegion,
6004
- useGetMarketsNearMe,
6018
+ useGetEvent,
6019
+ useGetEventInfo,
6020
+ useGetEventRelations,
6021
+ useGetEvents,
6022
+ useGetEventsByRegion,
6023
+ useGetEventsNearMe,
6005
6024
  useGetNotificationCount,
6006
6025
  useGetNotificationCountSubscription,
6007
6026
  useGetRelation,
6008
- useGetRelationByMarketAndStallholder,
6027
+ useGetRelationByEventAndStallholder,
6009
6028
  useGetResourceConnections,
6010
6029
  useGetResourceViews,
6011
6030
  useGetStallholder,
@@ -6017,8 +6036,8 @@ var fonts = {
6017
6036
  useGetTesters,
6018
6037
  useGetUser,
6019
6038
  useGetUserChats,
6039
+ useGetUserEvents,
6020
6040
  useGetUserFavourites,
6021
- useGetUserMarkets,
6022
6041
  useGetUserNotifications,
6023
6042
  useGetUserNotificationsSubscription,
6024
6043
  useGetUserStallholder,
@@ -6029,8 +6048,6 @@ var fonts = {
6029
6048
  useLogout,
6030
6049
  useMarkAllNotificationsRead,
6031
6050
  useMarkNotificationRead,
6032
- useMarketForm,
6033
- useMarketInfoForm,
6034
6051
  useRefreshToken,
6035
6052
  useRegister,
6036
6053
  useRegisterForm,
@@ -6040,7 +6057,7 @@ var fonts = {
6040
6057
  useRequestPasswordResetForm,
6041
6058
  useResetPassword,
6042
6059
  useResetPasswordForm,
6043
- useSearchMarkets,
6060
+ useSearchEvents,
6044
6061
  useSearchStallholders,
6045
6062
  useSelectPackage,
6046
6063
  useSendChatMessage,
@@ -6048,8 +6065,8 @@ var fonts = {
6048
6065
  useStallholderInfoForm,
6049
6066
  useTestersForm,
6050
6067
  useUpdateAd,
6051
- useUpdateMarket,
6052
- useUpdateMarketInfo,
6068
+ useUpdateEvent,
6069
+ useUpdateEventInfo,
6053
6070
  useUpdateRelation,
6054
6071
  useUpdateStallholder,
6055
6072
  useUpdateStallholderInfo,