@timardex/cluemart-shared 1.2.50 → 1.2.52

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 (47) hide show
  1. package/dist/{ad-Dcmq74_b.d.ts → ad-Bo9PwPRD.d.mts} +19 -4
  2. package/dist/{ad-BO5cMy3b.d.mts → ad-CBsFDjHz.d.ts} +19 -4
  3. package/dist/{chunk-VYFOKMRP.mjs → chunk-IRQ365TO.mjs} +2 -2
  4. package/dist/{chunk-XXZPSRMS.mjs → chunk-N625BZKR.mjs} +3 -2
  5. package/dist/chunk-N625BZKR.mjs.map +1 -0
  6. package/dist/{chunk-S6RE75SK.mjs → chunk-V3BTJQHJ.mjs} +9 -2
  7. package/dist/chunk-V3BTJQHJ.mjs.map +1 -0
  8. package/dist/enums/index.cjs +9 -1
  9. package/dist/enums/index.cjs.map +1 -1
  10. package/dist/enums/index.d.mts +9 -4
  11. package/dist/enums/index.d.ts +9 -4
  12. package/dist/enums/index.mjs +3 -1
  13. package/dist/formFields/index.cjs +94 -82
  14. package/dist/formFields/index.cjs.map +1 -1
  15. package/dist/formFields/index.d.mts +3 -2
  16. package/dist/formFields/index.d.ts +3 -2
  17. package/dist/formFields/index.mjs +24 -10
  18. package/dist/formFields/index.mjs.map +1 -1
  19. package/dist/graphql/index.cjs +379 -175
  20. package/dist/graphql/index.cjs.map +1 -1
  21. package/dist/graphql/index.d.mts +43 -2
  22. package/dist/graphql/index.d.ts +43 -2
  23. package/dist/graphql/index.mjs +278 -81
  24. package/dist/graphql/index.mjs.map +1 -1
  25. package/dist/hooks/index.cjs +128 -21
  26. package/dist/hooks/index.cjs.map +1 -1
  27. package/dist/hooks/index.d.mts +11 -2
  28. package/dist/hooks/index.d.ts +11 -2
  29. package/dist/hooks/index.mjs +121 -22
  30. package/dist/hooks/index.mjs.map +1 -1
  31. package/dist/index.cjs +682 -355
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.mts +77 -6
  34. package/dist/index.d.ts +77 -6
  35. package/dist/index.mjs +539 -222
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/types/index.cjs +2 -1
  38. package/dist/types/index.cjs.map +1 -1
  39. package/dist/types/index.d.mts +1 -1
  40. package/dist/types/index.d.ts +1 -1
  41. package/dist/types/index.mjs +1 -1
  42. package/dist/utils/index.cjs.map +1 -1
  43. package/dist/utils/index.mjs +2 -2
  44. package/package.json +1 -1
  45. package/dist/chunk-S6RE75SK.mjs.map +0 -1
  46. package/dist/chunk-XXZPSRMS.mjs.map +0 -1
  47. /package/dist/{chunk-VYFOKMRP.mjs.map → chunk-IRQ365TO.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -44,6 +44,7 @@ __export(index_exports, {
44
44
  EnumNotificationResourceType: () => EnumNotificationResourceType,
45
45
  EnumNotificationType: () => EnumNotificationType,
46
46
  EnumOSPlatform: () => EnumOSPlatform,
47
+ EnumPartnerType: () => EnumPartnerType,
47
48
  EnumPaymentMethod: () => EnumPaymentMethod,
48
49
  EnumRegions: () => EnumRegions,
49
50
  EnumRelationResource: () => EnumRelationResource,
@@ -60,7 +61,6 @@ __export(index_exports, {
60
61
  SAVED_TOKEN_KEY: () => SAVED_TOKEN_KEY,
61
62
  USER_STORAGE_KEY: () => USER_STORAGE_KEY,
62
63
  availableCategories: () => availableCategories,
63
- availableCityOptions: () => availableCityOptions,
64
64
  availableRegionOptions: () => availableRegionOptions,
65
65
  availableRegionTypes: () => availableRegionTypes,
66
66
  availableTagTypes: () => availableTagTypes,
@@ -72,6 +72,7 @@ __export(index_exports, {
72
72
  dateFormat: () => dateFormat,
73
73
  defaultEventFormValues: () => defaultEventFormValues,
74
74
  defaultEventInfoFormValues: () => defaultEventInfoFormValues,
75
+ defaultPartnerFormValues: () => defaultPartnerFormValues,
75
76
  defaultRegion: () => defaultRegion,
76
77
  defaultVendorFormValues: () => defaultVendorFormValues,
77
78
  defaultVendorInfoFormValues: () => defaultVendorInfoFormValues,
@@ -94,6 +95,7 @@ __export(index_exports, {
94
95
  mapBaseResourceTypeToFormData: () => mapBaseResourceTypeToFormData,
95
96
  normalizeUrl: () => normalizeUrl,
96
97
  packagingOptions: () => packagingOptions,
98
+ partnerBasicInfoFields: () => partnerBasicInfoFields,
97
99
  paymentMethodOptions: () => paymentMethodOptions,
98
100
  producedIngOptions: () => producedIngOptions,
99
101
  productLabelGroups: () => productLabelGroups,
@@ -126,6 +128,7 @@ __export(index_exports, {
126
128
  useCreateCheckoutSession: () => useCreateCheckoutSession,
127
129
  useCreateEvent: () => useCreateEvent,
128
130
  useCreateEventInfo: () => useCreateEventInfo,
131
+ useCreatePartner: () => useCreatePartner,
129
132
  useCreatePoster: () => useCreatePoster,
130
133
  useCreatePushToken: () => useCreatePushToken,
131
134
  useCreateRelation: () => useCreateRelation,
@@ -139,6 +142,7 @@ __export(index_exports, {
139
142
  useDeleteChat: () => useDeleteChat,
140
143
  useDeleteEvent: () => useDeleteEvent,
141
144
  useDeleteNotification: () => useDeleteNotification,
145
+ useDeletePartner: () => useDeletePartner,
142
146
  useDeleteRelation: () => useDeleteRelation,
143
147
  useDeleteTester: () => useDeleteTester,
144
148
  useDeleteUser: () => useDeleteUser,
@@ -158,6 +162,9 @@ __export(index_exports, {
158
162
  useGetEventsNearMe: () => useGetEventsNearMe,
159
163
  useGetNotificationCount: () => useGetNotificationCount,
160
164
  useGetNotificationCountSubscription: () => useGetNotificationCountSubscription,
165
+ useGetPartner: () => useGetPartner,
166
+ useGetPartners: () => useGetPartners,
167
+ useGetPartnersByRegion: () => useGetPartnersByRegion,
161
168
  useGetRelation: () => useGetRelation,
162
169
  useGetRelationByEventAndVendor: () => useGetRelationByEventAndVendor,
163
170
  useGetResourceActivities: () => useGetResourceActivities,
@@ -184,6 +191,7 @@ __export(index_exports, {
184
191
  useLogout: () => useLogout,
185
192
  useMarkAllNotificationsRead: () => useMarkAllNotificationsRead,
186
193
  useMarkNotificationRead: () => useMarkNotificationRead,
194
+ usePartnerForm: () => usePartnerForm,
187
195
  useRefreshToken: () => useRefreshToken,
188
196
  useRegister: () => useRegister,
189
197
  useRegisterForm: () => useRegisterForm,
@@ -197,6 +205,7 @@ __export(index_exports, {
197
205
  useResetPassword: () => useResetPassword,
198
206
  useResetPasswordForm: () => useResetPasswordForm,
199
207
  useSearchEvents: () => useSearchEvents,
208
+ useSearchPartners: () => useSearchPartners,
200
209
  useSearchVendors: () => useSearchVendors,
201
210
  useSelectPackage: () => useSelectPackage,
202
211
  useSendChatMessage: () => useSendChatMessage,
@@ -204,6 +213,7 @@ __export(index_exports, {
204
213
  useUpdateAd: () => useUpdateAd,
205
214
  useUpdateEvent: () => useUpdateEvent,
206
215
  useUpdateEventInfo: () => useUpdateEventInfo,
216
+ useUpdatePartner: () => useUpdatePartner,
207
217
  useUpdateRelation: () => useUpdateRelation,
208
218
  useUpdateSubscriptionPlan: () => useUpdateSubscriptionPlan,
209
219
  useUpdateTester: () => useUpdateTester,
@@ -311,6 +321,7 @@ var EnumFoodType = /* @__PURE__ */ ((EnumFoodType2) => {
311
321
  var EnumResourceType = /* @__PURE__ */ ((EnumResourceType2) => {
312
322
  EnumResourceType2["EVENT"] = "event";
313
323
  EnumResourceType2["VENDOR"] = "vendor";
324
+ EnumResourceType2["PARTNER"] = "partner";
314
325
  return EnumResourceType2;
315
326
  })(EnumResourceType || {});
316
327
  var EnumEventType = /* @__PURE__ */ ((EnumEventType2) => {
@@ -323,9 +334,14 @@ var EnumEventType = /* @__PURE__ */ ((EnumEventType2) => {
323
334
  var EnumVendorType = /* @__PURE__ */ ((EnumVendorType2) => {
324
335
  EnumVendorType2["STALLHOLDER"] = "Stallholder";
325
336
  EnumVendorType2["SHOP"] = "Shop";
326
- EnumVendorType2["CHARITY"] = "Charity";
327
337
  return EnumVendorType2;
328
338
  })(EnumVendorType || {});
339
+ var EnumPartnerType = /* @__PURE__ */ ((EnumPartnerType2) => {
340
+ EnumPartnerType2["CHARITY_PARTNER"] = "Charity_Partner";
341
+ EnumPartnerType2["MEDIA_PARTNER"] = "Media_Partner";
342
+ EnumPartnerType2["SUPPORTING_PARTNER"] = "Supporting_Partner";
343
+ return EnumPartnerType2;
344
+ })(EnumPartnerType || {});
329
345
  var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform2) => {
330
346
  EnumOSPlatform2["ANDROID"] = "android";
331
347
  EnumOSPlatform2["IOS"] = "ios";
@@ -429,119 +445,6 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus2) => {
429
445
  return EnumSubscriptionStatus2;
430
446
  })(EnumSubscriptionStatus || {});
431
447
 
432
- // src/utils/index.ts
433
- var import_dayjs = __toESM(require("dayjs"));
434
- var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
435
- var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
436
- var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
437
- var import_utc = __toESM(require("dayjs/plugin/utc.js"));
438
- var dateFormat = "DD-MM-YYYY";
439
- var timeFormat = "HH:mm";
440
- import_dayjs.default.extend(import_customParseFormat.default);
441
- import_dayjs.default.extend(import_utc.default);
442
- import_dayjs.default.extend(import_timezone.default);
443
- import_dayjs.default.extend(import_isSameOrAfter.default);
444
- var formatDate = (dateStr, display = "datetime", timeStr) => {
445
- const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;
446
- const dateTime = timeStr ? (0, import_dayjs.default)(dateTimeStr, `${dateFormat} ${timeFormat}`) : (0, import_dayjs.default)(dateStr, dateFormat);
447
- const formattedDate = dateTime.format("dddd, D MMMM, YYYY");
448
- const formattedTime = dateTime.format("h:mm a");
449
- switch (display) {
450
- case "date":
451
- return formattedDate;
452
- case "time":
453
- return formattedTime;
454
- case "datetime":
455
- return `${formattedDate} at ${formattedTime}`;
456
- default:
457
- return formattedDate;
458
- }
459
- };
460
- var getCurrentAndFutureDates = (dates) => {
461
- const now = (0, import_dayjs.default)();
462
- return dates.filter((dateObj) => {
463
- const dateTime = (0, import_dayjs.default)(
464
- `${dateObj.startDate} ${dateObj.startTime}`,
465
- `${dateFormat} ${timeFormat}`
466
- );
467
- return dateTime.isSameOrAfter(now);
468
- });
469
- };
470
- var isFutureDatesBeforeThreshold = (date2, minHoursFromNow) => {
471
- const threshold = minHoursFromNow ? (0, import_dayjs.default)().add(minHoursFromNow, "hour") : (0, import_dayjs.default)().startOf("day");
472
- const dateTime = (0, import_dayjs.default)(
473
- `${date2.startDate} ${date2.startTime}`,
474
- `${dateFormat} ${timeFormat}`
475
- );
476
- return dateTime.isSameOrAfter(threshold);
477
- };
478
- var formatTimestamp = (timestamp) => {
479
- const formattedDate = (0, import_dayjs.default)(timestamp).tz("Pacific/Auckland").format(dateFormat);
480
- const formattedTime = (0, import_dayjs.default)(timestamp).tz("Pacific/Auckland").format(timeFormat);
481
- return formatDate(formattedDate, "date");
482
- };
483
- var defaultRegion = {
484
- latitude: -36.8624942,
485
- // Default: New Zealand
486
- latitudeDelta: 5,
487
- longitude: 174.7450494,
488
- longitudeDelta: 5
489
- };
490
- var removeTypename = (obj) => {
491
- if (Array.isArray(obj)) {
492
- return obj.map((item) => removeTypename(item));
493
- } else if (obj !== null && typeof obj === "object") {
494
- const { __typename, ...cleanedObj } = obj;
495
- return Object.keys(cleanedObj).reduce(
496
- (acc, key) => {
497
- acc[key] = removeTypename(cleanedObj[key]);
498
- return acc;
499
- },
500
- {}
501
- );
502
- }
503
- return obj;
504
- };
505
- var truncateText = (text, maxLength = 30) => {
506
- return text.length > maxLength ? text.substring(0, maxLength) + "..." : text;
507
- };
508
- var mapArrayToOptions = (items) => items.map((item) => ({
509
- label: item,
510
- value: item
511
- }));
512
- var capitalizeFirstLetter = (str) => {
513
- return str.split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
514
- };
515
- var statusOptions = [
516
- ...Object.values(EnumInviteStatus).map((status) => ({
517
- label: status,
518
- value: status
519
- })).sort((a, b) => a.label.localeCompare(b.label))
520
- // Sort the options alphabetically
521
- ];
522
- function sortDatesChronologically(dates) {
523
- if (!dates || !dates.length) {
524
- return [];
525
- }
526
- return [...dates].sort((a, b) => {
527
- const dateTimeFormat = `${dateFormat} ${timeFormat}`;
528
- const dateA = (0, import_dayjs.default)(`${a.startDate} ${a.startTime}`, dateTimeFormat);
529
- const dateB = (0, import_dayjs.default)(`${b.startDate} ${b.startTime}`, dateTimeFormat);
530
- return dateA.valueOf() - dateB.valueOf();
531
- });
532
- }
533
- var availableRegionTypes = Object.values(EnumRegions);
534
- var availableRegionOptions = mapArrayToOptions(availableRegionTypes);
535
- var paymentMethodOptions = mapArrayToOptions(
536
- Object.values(EnumPaymentMethod)
537
- );
538
- function normalizeUrl(url) {
539
- if (!url.startsWith("http://") && !url.startsWith("https://")) {
540
- return `https://${url}`;
541
- }
542
- return url;
543
- }
544
-
545
448
  // src/formFields/vendor/vendor.ts
546
449
  var vendorBasicInfoFields = [
547
450
  {
@@ -633,13 +536,6 @@ var vendorMenuFields = [
633
536
  placeholder: "Price"
634
537
  }
635
538
  ];
636
- var availableCityTypes = [
637
- "Auckland",
638
- "Christchurch",
639
- "Hamilton",
640
- "Wellington"
641
- ];
642
- var availableCityOptions = mapArrayToOptions(availableCityTypes);
643
539
  var productLabelGroups = [
644
540
  {
645
541
  category: "Food Sensitivity",
@@ -708,6 +604,119 @@ var productLabelGroups = [
708
604
  }
709
605
  ];
710
606
 
607
+ // src/utils/index.ts
608
+ var import_dayjs = __toESM(require("dayjs"));
609
+ var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"));
610
+ var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
611
+ var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
612
+ var import_utc = __toESM(require("dayjs/plugin/utc.js"));
613
+ var dateFormat = "DD-MM-YYYY";
614
+ var timeFormat = "HH:mm";
615
+ import_dayjs.default.extend(import_customParseFormat.default);
616
+ import_dayjs.default.extend(import_utc.default);
617
+ import_dayjs.default.extend(import_timezone.default);
618
+ import_dayjs.default.extend(import_isSameOrAfter.default);
619
+ var formatDate = (dateStr, display = "datetime", timeStr) => {
620
+ const dateTimeStr = timeStr ? `${dateStr} ${timeStr}` : dateStr;
621
+ const dateTime = timeStr ? (0, import_dayjs.default)(dateTimeStr, `${dateFormat} ${timeFormat}`) : (0, import_dayjs.default)(dateStr, dateFormat);
622
+ const formattedDate = dateTime.format("dddd, D MMMM, YYYY");
623
+ const formattedTime = dateTime.format("h:mm a");
624
+ switch (display) {
625
+ case "date":
626
+ return formattedDate;
627
+ case "time":
628
+ return formattedTime;
629
+ case "datetime":
630
+ return `${formattedDate} at ${formattedTime}`;
631
+ default:
632
+ return formattedDate;
633
+ }
634
+ };
635
+ var getCurrentAndFutureDates = (dates) => {
636
+ const now = (0, import_dayjs.default)();
637
+ return dates.filter((dateObj) => {
638
+ const dateTime = (0, import_dayjs.default)(
639
+ `${dateObj.startDate} ${dateObj.startTime}`,
640
+ `${dateFormat} ${timeFormat}`
641
+ );
642
+ return dateTime.isSameOrAfter(now);
643
+ });
644
+ };
645
+ var isFutureDatesBeforeThreshold = (date2, minHoursFromNow) => {
646
+ const threshold = minHoursFromNow ? (0, import_dayjs.default)().add(minHoursFromNow, "hour") : (0, import_dayjs.default)().startOf("day");
647
+ const dateTime = (0, import_dayjs.default)(
648
+ `${date2.startDate} ${date2.startTime}`,
649
+ `${dateFormat} ${timeFormat}`
650
+ );
651
+ return dateTime.isSameOrAfter(threshold);
652
+ };
653
+ var formatTimestamp = (timestamp) => {
654
+ const formattedDate = (0, import_dayjs.default)(timestamp).tz("Pacific/Auckland").format(dateFormat);
655
+ const formattedTime = (0, import_dayjs.default)(timestamp).tz("Pacific/Auckland").format(timeFormat);
656
+ return formatDate(formattedDate, "date");
657
+ };
658
+ var defaultRegion = {
659
+ latitude: -36.8624942,
660
+ // Default: New Zealand
661
+ latitudeDelta: 5,
662
+ longitude: 174.7450494,
663
+ longitudeDelta: 5
664
+ };
665
+ var removeTypename = (obj) => {
666
+ if (Array.isArray(obj)) {
667
+ return obj.map((item) => removeTypename(item));
668
+ } else if (obj !== null && typeof obj === "object") {
669
+ const { __typename, ...cleanedObj } = obj;
670
+ return Object.keys(cleanedObj).reduce(
671
+ (acc, key) => {
672
+ acc[key] = removeTypename(cleanedObj[key]);
673
+ return acc;
674
+ },
675
+ {}
676
+ );
677
+ }
678
+ return obj;
679
+ };
680
+ var truncateText = (text, maxLength = 30) => {
681
+ return text.length > maxLength ? text.substring(0, maxLength) + "..." : text;
682
+ };
683
+ var mapArrayToOptions = (items) => items.map((item) => ({
684
+ label: item,
685
+ value: item
686
+ }));
687
+ var capitalizeFirstLetter = (str) => {
688
+ return str.split(" ").map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase()).join(" ");
689
+ };
690
+ var statusOptions = [
691
+ ...Object.values(EnumInviteStatus).map((status) => ({
692
+ label: status,
693
+ value: status
694
+ })).sort((a, b) => a.label.localeCompare(b.label))
695
+ // Sort the options alphabetically
696
+ ];
697
+ function sortDatesChronologically(dates) {
698
+ if (!dates || !dates.length) {
699
+ return [];
700
+ }
701
+ return [...dates].sort((a, b) => {
702
+ const dateTimeFormat = `${dateFormat} ${timeFormat}`;
703
+ const dateA = (0, import_dayjs.default)(`${a.startDate} ${a.startTime}`, dateTimeFormat);
704
+ const dateB = (0, import_dayjs.default)(`${b.startDate} ${b.startTime}`, dateTimeFormat);
705
+ return dateA.valueOf() - dateB.valueOf();
706
+ });
707
+ }
708
+ var availableRegionTypes = Object.values(EnumRegions);
709
+ var availableRegionOptions = mapArrayToOptions(availableRegionTypes);
710
+ var paymentMethodOptions = mapArrayToOptions(
711
+ Object.values(EnumPaymentMethod)
712
+ );
713
+ function normalizeUrl(url) {
714
+ if (!url.startsWith("http://") && !url.startsWith("https://")) {
715
+ return `https://${url}`;
716
+ }
717
+ return url;
718
+ }
719
+
711
720
  // src/formFields/vendor/vendorInfo.ts
712
721
  var vendorElectricity = {
713
722
  details: {
@@ -2232,6 +2241,27 @@ var contactUsFields = [
2232
2241
  }
2233
2242
  ];
2234
2243
 
2244
+ // src/formFields/partner.ts
2245
+ var partnerBasicInfoFields = [
2246
+ {
2247
+ helperText: "Business Name *",
2248
+ name: "name",
2249
+ placeholder: "Business Name"
2250
+ },
2251
+ {
2252
+ helperText: "NZBN number (required \u2013 ClueMart only accepts events with valid NZBN number) *",
2253
+ keyboardType: "number-pad",
2254
+ name: "nzbn",
2255
+ placeholder: "NZBN number"
2256
+ },
2257
+ {
2258
+ helperText: "Description *",
2259
+ isTextArea: true,
2260
+ name: "description",
2261
+ placeholder: "Description"
2262
+ }
2263
+ ];
2264
+
2235
2265
  // src/graphql/hooks/admin/hooksMutation.ts
2236
2266
  var import_client5 = require("@apollo/client");
2237
2267
 
@@ -3143,61 +3173,142 @@ var CONTACT_US_MUTATION = import_client13.gql`
3143
3173
  contactUs(input: $input) {
3144
3174
  message
3145
3175
  }
3146
- }
3147
- `;
3148
-
3149
- // src/graphql/hooks/contactUs.ts
3150
- var useContactUs = () => {
3151
- const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
3152
- return { contactUs, error, loading };
3153
- };
3154
-
3155
- // src/graphql/hooks/event/hooksMutation.ts
3156
- var import_client17 = require("@apollo/client");
3157
-
3158
- // src/graphql/mutations/event.ts
3159
- var import_client15 = require("@apollo/client");
3160
- var CREATE_EVENT_MUTATION = import_client15.gql`
3161
- mutation createEvent($input: EventInputType!) {
3162
- createEvent(input: $input) {
3163
- ...EventFields
3176
+ }
3177
+ `;
3178
+
3179
+ // src/graphql/hooks/contactUs.ts
3180
+ var useContactUs = () => {
3181
+ const [contactUs, { loading, error }] = (0, import_client14.useMutation)(CONTACT_US_MUTATION);
3182
+ return { contactUs, error, loading };
3183
+ };
3184
+
3185
+ // src/graphql/hooks/event/hooksMutation.ts
3186
+ var import_client18 = require("@apollo/client");
3187
+
3188
+ // src/graphql/mutations/event.ts
3189
+ var import_client15 = require("@apollo/client");
3190
+ var CREATE_EVENT_MUTATION = import_client15.gql`
3191
+ mutation createEvent($input: EventInputType!) {
3192
+ createEvent(input: $input) {
3193
+ ...EventFields
3194
+ }
3195
+ }
3196
+ ${EVENT}
3197
+ `;
3198
+ var UPDATE_EVENT_MUTATION = import_client15.gql`
3199
+ mutation updateEvent($_id: ID!, $input: EventInputType!) {
3200
+ updateEvent(_id: $_id, input: $input) {
3201
+ ...EventFields
3202
+ }
3203
+ }
3204
+ ${EVENT}
3205
+ `;
3206
+ var DELETE_EVENT_MUTATION = import_client15.gql`
3207
+ mutation deleteEvent($_id: ID!) {
3208
+ deleteEvent(_id: $_id)
3209
+ }
3210
+ `;
3211
+ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3212
+ mutation createEventInfo($input: EventInfoInputType!) {
3213
+ createEventInfo(input: $input) {
3214
+ ...EventInfoFields
3215
+ }
3216
+ }
3217
+ ${EVENT_INFO}
3218
+ `;
3219
+ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3220
+ mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3221
+ updateEventInfo(_id: $_id, input: $input) {
3222
+ ...EventInfoFields
3223
+ }
3224
+ }
3225
+ ${EVENT_INFO}
3226
+ `;
3227
+
3228
+ // src/graphql/queries/user.ts
3229
+ var import_client17 = require("@apollo/client");
3230
+
3231
+ // src/graphql/queries/partner.ts
3232
+ var import_client16 = require("@apollo/client");
3233
+ var PARTNER = import_client16.gql`
3234
+ fragment PartnerFields on PartnerType {
3235
+ _id
3236
+ active
3237
+ associates {
3238
+ ...AssociatesFields
3239
+ }
3240
+ adIds
3241
+ cover {
3242
+ ...ResourceImageFields
3243
+ }
3244
+ createdAt
3245
+ contactDetails {
3246
+ ...ContactDetailsFields
3247
+ }
3248
+ description
3249
+ deletedAt
3250
+ images {
3251
+ ...ResourceImageFields
3252
+ }
3253
+ location {
3254
+ ...EventLocationFields
3255
+ }
3256
+ logo {
3257
+ ...ResourceImageFields
3258
+ }
3259
+ name
3260
+ nzbn
3261
+ owner {
3262
+ ...OwnerFields
3263
+ }
3264
+ partnerType
3265
+ region
3266
+ socialMedia {
3267
+ ...SocialMediaFields
3268
+ }
3269
+ termsAgreement {
3270
+ ...TermsAgreementFields
3164
3271
  }
3272
+ updatedAt
3165
3273
  }
3166
- ${EVENT}
3274
+ ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
3275
+ ${EVENT_LOCATION_FIELDS_FRAGMENT}
3167
3276
  `;
3168
- var UPDATE_EVENT_MUTATION = import_client15.gql`
3169
- mutation updateEvent($_id: ID!, $input: EventInputType!) {
3170
- updateEvent(_id: $_id, input: $input) {
3171
- ...EventFields
3277
+ var GET_PARTNERS = import_client16.gql`
3278
+ query getPartners {
3279
+ partners {
3280
+ ...PartnerFields
3172
3281
  }
3173
3282
  }
3174
- ${EVENT}
3283
+ ${PARTNER}
3175
3284
  `;
3176
- var DELETE_EVENT_MUTATION = import_client15.gql`
3177
- mutation deleteEvent($_id: ID!) {
3178
- deleteEvent(_id: $_id)
3285
+ var GET_PARTNER = import_client16.gql`
3286
+ query getPartner($_id: ID!) {
3287
+ partner(_id: $_id) {
3288
+ ...PartnerFields
3289
+ }
3179
3290
  }
3291
+ ${PARTNER}
3180
3292
  `;
3181
- var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3182
- mutation createEventInfo($input: EventInfoInputType!) {
3183
- createEventInfo(input: $input) {
3184
- ...EventInfoFields
3293
+ var GET_PARTNERS_BY_REGION = import_client16.gql`
3294
+ query getPartnersByRegion($region: String!) {
3295
+ partnersByRegion(region: $region) {
3296
+ ...PartnerFields
3185
3297
  }
3186
3298
  }
3187
- ${EVENT_INFO}
3299
+ ${PARTNER}
3188
3300
  `;
3189
- var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3190
- mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3191
- updateEventInfo(_id: $_id, input: $input) {
3192
- ...EventInfoFields
3301
+ var SEARCH_PARTNERS = import_client16.gql`
3302
+ query searchPartners($search: String!, $region: String) {
3303
+ searchPartners(search: $search, region: $region) {
3304
+ ...PartnerFields
3193
3305
  }
3194
3306
  }
3195
- ${EVENT_INFO}
3307
+ ${PARTNER}
3196
3308
  `;
3197
3309
 
3198
3310
  // src/graphql/queries/user.ts
3199
- var import_client16 = require("@apollo/client");
3200
- var GET_USERS = import_client16.gql`
3311
+ var GET_USERS = import_client17.gql`
3201
3312
  query getUsers {
3202
3313
  users {
3203
3314
  ...UserFields
@@ -3205,7 +3316,7 @@ var GET_USERS = import_client16.gql`
3205
3316
  }
3206
3317
  ${USER_FIELDS_FRAGMENT}
3207
3318
  `;
3208
- var GET_USER = import_client16.gql`
3319
+ var GET_USER = import_client17.gql`
3209
3320
  query getUser($_id: ID!) {
3210
3321
  user(_id: $_id) {
3211
3322
  ...UserFields
@@ -3213,7 +3324,7 @@ var GET_USER = import_client16.gql`
3213
3324
  }
3214
3325
  ${USER_FIELDS_FRAGMENT}
3215
3326
  `;
3216
- var GET_USER_EVENTS = import_client16.gql`
3327
+ var GET_USER_EVENTS = import_client17.gql`
3217
3328
  query getUserEvents {
3218
3329
  userEvents {
3219
3330
  ...EventFields
@@ -3221,7 +3332,7 @@ var GET_USER_EVENTS = import_client16.gql`
3221
3332
  }
3222
3333
  ${EVENT}
3223
3334
  `;
3224
- var GET_USER_VENDORS = import_client16.gql`
3335
+ var GET_USER_VENDORS = import_client17.gql`
3225
3336
  query getUserVendors {
3226
3337
  userVendors {
3227
3338
  ...VendorFields
@@ -3229,7 +3340,15 @@ var GET_USER_VENDORS = import_client16.gql`
3229
3340
  }
3230
3341
  ${VENDOR}
3231
3342
  `;
3232
- var GET_USER_ACTIVITIES = import_client16.gql`
3343
+ var GET_USER_PARTNERS = import_client17.gql`
3344
+ query getUserPartners {
3345
+ userPartners {
3346
+ ...PartnerFields
3347
+ }
3348
+ }
3349
+ ${PARTNER}
3350
+ `;
3351
+ var GET_USER_ACTIVITIES = import_client17.gql`
3233
3352
  query getUserActivities {
3234
3353
  userActivities {
3235
3354
  favourites {
@@ -3263,28 +3382,28 @@ var GET_USER_ACTIVITIES = import_client16.gql`
3263
3382
 
3264
3383
  // src/graphql/hooks/event/hooksMutation.ts
3265
3384
  var useCreateEvent = () => {
3266
- const [createEvent, { loading, error }] = (0, import_client17.useMutation)(CREATE_EVENT_MUTATION, {
3385
+ const [createEvent, { loading, error }] = (0, import_client18.useMutation)(CREATE_EVENT_MUTATION, {
3267
3386
  awaitRefetchQueries: true,
3268
3387
  refetchQueries: [{ query: GET_USER_EVENTS }]
3269
3388
  });
3270
3389
  return { createEvent, error, loading };
3271
3390
  };
3272
3391
  var useUpdateEvent = () => {
3273
- const [updateEvent, { loading, error }] = (0, import_client17.useMutation)(UPDATE_EVENT_MUTATION, {
3392
+ const [updateEvent, { loading, error }] = (0, import_client18.useMutation)(UPDATE_EVENT_MUTATION, {
3274
3393
  awaitRefetchQueries: true,
3275
3394
  refetchQueries: [{ query: GET_USER_EVENTS }]
3276
3395
  });
3277
3396
  return { error, loading, updateEvent };
3278
3397
  };
3279
3398
  var useDeleteEvent = () => {
3280
- const [deleteEvent, { loading, error }] = (0, import_client17.useMutation)(DELETE_EVENT_MUTATION, {
3399
+ const [deleteEvent, { loading, error }] = (0, import_client18.useMutation)(DELETE_EVENT_MUTATION, {
3281
3400
  awaitRefetchQueries: true,
3282
3401
  refetchQueries: [{ query: GET_USER_EVENTS }]
3283
3402
  });
3284
3403
  return { deleteEvent, error, loading };
3285
3404
  };
3286
3405
  var useCreateEventInfo = () => {
3287
- const [createEventInfo, { loading, error }] = (0, import_client17.useMutation)(
3406
+ const [createEventInfo, { loading, error }] = (0, import_client18.useMutation)(
3288
3407
  CREATE_EVENT_INFO_MUTATION,
3289
3408
  {
3290
3409
  awaitRefetchQueries: true,
@@ -3311,7 +3430,7 @@ var useCreateEventInfo = () => {
3311
3430
  return { createEventInfo, error, loading };
3312
3431
  };
3313
3432
  var useUpdateEventInfo = () => {
3314
- const [updateEventInfo, { loading, error }] = (0, import_client17.useMutation)(
3433
+ const [updateEventInfo, { loading, error }] = (0, import_client18.useMutation)(
3315
3434
  UPDATE_EVENT_INFO_MUTATION,
3316
3435
  {
3317
3436
  awaitRefetchQueries: true,
@@ -3337,16 +3456,16 @@ var useUpdateEventInfo = () => {
3337
3456
  };
3338
3457
 
3339
3458
  // src/graphql/hooks/event/hooksQuery.ts
3340
- var import_client18 = require("@apollo/client");
3459
+ var import_client19 = require("@apollo/client");
3341
3460
  var useGetEvents = () => {
3342
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS, {
3461
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS, {
3343
3462
  fetchPolicy: "network-only"
3344
3463
  });
3345
3464
  const events = data?.events;
3346
3465
  return { error, events, loading, refetch };
3347
3466
  };
3348
3467
  var useGetEvent = (_id) => {
3349
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT, {
3468
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT, {
3350
3469
  fetchPolicy: "network-only",
3351
3470
  skip: !_id,
3352
3471
  variables: { _id }
@@ -3355,7 +3474,7 @@ var useGetEvent = (_id) => {
3355
3474
  return { error, event, loading, refetch };
3356
3475
  };
3357
3476
  var useGetEventsByRegion = (region) => {
3358
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_BY_REGION, {
3477
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_BY_REGION, {
3359
3478
  fetchPolicy: "no-cache",
3360
3479
  skip: !region,
3361
3480
  variables: { region }
@@ -3364,7 +3483,7 @@ var useGetEventsByRegion = (region) => {
3364
3483
  return { error, eventsByRegion, loading, refetch };
3365
3484
  };
3366
3485
  var useSearchEvents = (search, region) => {
3367
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(SEARCH_EVENTS, {
3486
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(SEARCH_EVENTS, {
3368
3487
  fetchPolicy: "network-only",
3369
3488
  skip: search.length < 3,
3370
3489
  variables: { region, search }
@@ -3373,7 +3492,7 @@ var useSearchEvents = (search, region) => {
3373
3492
  return { error, eventsSearch, loading, refetch };
3374
3493
  };
3375
3494
  var useGetEventsNearMe = (location) => {
3376
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENTS_NEAR_ME, {
3495
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENTS_NEAR_ME, {
3377
3496
  fetchPolicy: "network-only",
3378
3497
  skip: !location.latitude || !location.longitude,
3379
3498
  variables: {
@@ -3387,7 +3506,7 @@ var useGetEventsNearMe = (location) => {
3387
3506
  return { error, eventsNearMe, loading, refetch };
3388
3507
  };
3389
3508
  var useGetEventInfo = (eventId) => {
3390
- const { loading, error, data, refetch } = (0, import_client18.useQuery)(GET_EVENT_INFO, {
3509
+ const { loading, error, data, refetch } = (0, import_client19.useQuery)(GET_EVENT_INFO, {
3391
3510
  fetchPolicy: "network-only",
3392
3511
  skip: !eventId,
3393
3512
  variables: { eventId }
@@ -3397,14 +3516,14 @@ var useGetEventInfo = (eventId) => {
3397
3516
  };
3398
3517
 
3399
3518
  // src/graphql/hooks/notifications/hooksMutation.ts
3400
- var import_client21 = require("@apollo/client");
3519
+ var import_client22 = require("@apollo/client");
3401
3520
 
3402
3521
  // src/graphql/mutations/notification.ts
3403
- var import_client20 = require("@apollo/client");
3522
+ var import_client21 = require("@apollo/client");
3404
3523
 
3405
3524
  // src/graphql/queries/notification.ts
3406
- var import_client19 = require("@apollo/client");
3407
- var NOTIFICATION_FRAGMENT = import_client19.gql`
3525
+ var import_client20 = require("@apollo/client");
3526
+ var NOTIFICATION_FRAGMENT = import_client20.gql`
3408
3527
  fragment NotificationFields on Notification {
3409
3528
  _id
3410
3529
  userId
@@ -3421,7 +3540,7 @@ var NOTIFICATION_FRAGMENT = import_client19.gql`
3421
3540
  updatedAt
3422
3541
  }
3423
3542
  `;
3424
- var GET_USER_NOTIFICATIONS = import_client19.gql`
3543
+ var GET_USER_NOTIFICATIONS = import_client20.gql`
3425
3544
  query getUserNotifications($limit: Int, $offset: Int) {
3426
3545
  userNotifications(limit: $limit, offset: $offset) {
3427
3546
  ...NotificationFields
@@ -3429,7 +3548,7 @@ var GET_USER_NOTIFICATIONS = import_client19.gql`
3429
3548
  }
3430
3549
  ${NOTIFICATION_FRAGMENT}
3431
3550
  `;
3432
- var GET_NOTIFICATION_COUNT = import_client19.gql`
3551
+ var GET_NOTIFICATION_COUNT = import_client20.gql`
3433
3552
  query getNotificationCount {
3434
3553
  notificationCount {
3435
3554
  total
@@ -3439,7 +3558,7 @@ var GET_NOTIFICATION_COUNT = import_client19.gql`
3439
3558
  `;
3440
3559
 
3441
3560
  // src/graphql/mutations/notification.ts
3442
- var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
3561
+ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3443
3562
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3444
3563
  createBulkNotifications(input: $input) {
3445
3564
  ...NotificationFields
@@ -3447,7 +3566,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client20.gql`
3447
3566
  }
3448
3567
  ${NOTIFICATION_FRAGMENT}
3449
3568
  `;
3450
- var MARK_NOTIFICATION_READ = import_client20.gql`
3569
+ var MARK_NOTIFICATION_READ = import_client21.gql`
3451
3570
  mutation markNotificationRead($_id: ID!) {
3452
3571
  markNotificationRead(_id: $_id) {
3453
3572
  ...NotificationFields
@@ -3455,17 +3574,17 @@ var MARK_NOTIFICATION_READ = import_client20.gql`
3455
3574
  }
3456
3575
  ${NOTIFICATION_FRAGMENT}
3457
3576
  `;
3458
- var MARK_ALL_NOTIFICATIONS_READ = import_client20.gql`
3577
+ var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
3459
3578
  mutation markAllNotificationsRead {
3460
3579
  markAllNotificationsRead
3461
3580
  }
3462
3581
  `;
3463
- var DELETE_NOTIFICATION = import_client20.gql`
3582
+ var DELETE_NOTIFICATION = import_client21.gql`
3464
3583
  mutation deleteNotification($_id: ID!) {
3465
3584
  deleteNotification(_id: $_id)
3466
3585
  }
3467
3586
  `;
3468
- var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
3587
+ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3469
3588
  mutation deleteAllNotifications {
3470
3589
  deleteAllNotifications
3471
3590
  }
@@ -3473,13 +3592,13 @@ var DELETE_ALL_NOTIFICATIONS = import_client20.gql`
3473
3592
 
3474
3593
  // src/graphql/hooks/notifications/hooksMutation.ts
3475
3594
  var useCreateBulkNotifications = () => {
3476
- const [createBulkNotifications, { loading, error }] = (0, import_client21.useMutation)(
3595
+ const [createBulkNotifications, { loading, error }] = (0, import_client22.useMutation)(
3477
3596
  CREATE_BULK_NOTIFICATIONS
3478
3597
  );
3479
3598
  return { createBulkNotifications, error, loading };
3480
3599
  };
3481
3600
  var useMarkNotificationRead = () => {
3482
- const [markNotificationRead, { loading, error }] = (0, import_client21.useMutation)(
3601
+ const [markNotificationRead, { loading, error }] = (0, import_client22.useMutation)(
3483
3602
  MARK_NOTIFICATION_READ,
3484
3603
  {
3485
3604
  refetchQueries: [
@@ -3495,7 +3614,7 @@ var useMarkNotificationRead = () => {
3495
3614
  return { error, loading, markNotificationRead };
3496
3615
  };
3497
3616
  var useMarkAllNotificationsRead = () => {
3498
- const [markAllNotificationsRead, { loading, error }] = (0, import_client21.useMutation)(
3617
+ const [markAllNotificationsRead, { loading, error }] = (0, import_client22.useMutation)(
3499
3618
  MARK_ALL_NOTIFICATIONS_READ,
3500
3619
  {
3501
3620
  refetchQueries: [
@@ -3511,7 +3630,7 @@ var useMarkAllNotificationsRead = () => {
3511
3630
  return { error, loading, markAllNotificationsRead };
3512
3631
  };
3513
3632
  var useDeleteNotification = () => {
3514
- const [deleteNotification, { loading, error }] = (0, import_client21.useMutation)(
3633
+ const [deleteNotification, { loading, error }] = (0, import_client22.useMutation)(
3515
3634
  DELETE_NOTIFICATION,
3516
3635
  {
3517
3636
  refetchQueries: [
@@ -3527,7 +3646,7 @@ var useDeleteNotification = () => {
3527
3646
  return { deleteNotification, error, loading };
3528
3647
  };
3529
3648
  var useDeleteAllNotifications = () => {
3530
- const [deleteAllNotifications, { loading, error }] = (0, import_client21.useMutation)(
3649
+ const [deleteAllNotifications, { loading, error }] = (0, import_client22.useMutation)(
3531
3650
  DELETE_ALL_NOTIFICATIONS,
3532
3651
  {
3533
3652
  refetchQueries: [
@@ -3544,9 +3663,9 @@ var useDeleteAllNotifications = () => {
3544
3663
  };
3545
3664
 
3546
3665
  // src/graphql/hooks/notifications/hooksQuery.ts
3547
- var import_client22 = require("@apollo/client");
3666
+ var import_client23 = require("@apollo/client");
3548
3667
  var useGetUserNotifications = (limit, offset) => {
3549
- const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_USER_NOTIFICATIONS, {
3668
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_USER_NOTIFICATIONS, {
3550
3669
  fetchPolicy: "no-cache",
3551
3670
  variables: { limit, offset }
3552
3671
  });
@@ -3558,7 +3677,7 @@ var useGetUserNotifications = (limit, offset) => {
3558
3677
  };
3559
3678
  };
3560
3679
  var useGetNotificationCount = () => {
3561
- const { data, loading, error, refetch } = (0, import_client22.useQuery)(GET_NOTIFICATION_COUNT, {
3680
+ const { data, loading, error, refetch } = (0, import_client23.useQuery)(GET_NOTIFICATION_COUNT, {
3562
3681
  fetchPolicy: "no-cache"
3563
3682
  });
3564
3683
  return {
@@ -3570,11 +3689,11 @@ var useGetNotificationCount = () => {
3570
3689
  };
3571
3690
 
3572
3691
  // src/graphql/hooks/notifications/hooksSubscription.ts
3573
- var import_client24 = require("@apollo/client");
3692
+ var import_client25 = require("@apollo/client");
3574
3693
 
3575
3694
  // src/graphql/subscriptions/notification.ts
3576
- var import_client23 = require("@apollo/client");
3577
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
3695
+ var import_client24 = require("@apollo/client");
3696
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3578
3697
  subscription {
3579
3698
  getUserNotifications {
3580
3699
  ...NotificationFields
@@ -3582,7 +3701,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client23.gql`
3582
3701
  }
3583
3702
  ${NOTIFICATION_FRAGMENT}
3584
3703
  `;
3585
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
3704
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3586
3705
  subscription {
3587
3706
  getNotificationCount {
3588
3707
  total
@@ -3593,7 +3712,7 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client23.gql`
3593
3712
 
3594
3713
  // src/graphql/hooks/notifications/hooksSubscription.ts
3595
3714
  var useGetUserNotificationsSubscription = () => {
3596
- const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3715
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATIONS_SUBSCRIPTION, {
3597
3716
  fetchPolicy: "no-cache",
3598
3717
  shouldResubscribe: true
3599
3718
  });
@@ -3604,7 +3723,7 @@ var useGetUserNotificationsSubscription = () => {
3604
3723
  };
3605
3724
  };
3606
3725
  var useGetNotificationCountSubscription = () => {
3607
- const { data, loading, error } = (0, import_client24.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3726
+ const { data, loading, error } = (0, import_client25.useSubscription)(GET_NOTIFICATION_COUNT_SUBSCRIPTION, {
3608
3727
  fetchPolicy: "no-cache",
3609
3728
  shouldResubscribe: true
3610
3729
  });
@@ -3616,11 +3735,11 @@ var useGetNotificationCountSubscription = () => {
3616
3735
  };
3617
3736
 
3618
3737
  // src/graphql/hooks/poster.ts
3619
- var import_client26 = require("@apollo/client");
3738
+ var import_client27 = require("@apollo/client");
3620
3739
 
3621
3740
  // src/graphql/mutations/poster.ts
3622
- var import_client25 = require("@apollo/client");
3623
- var CREATE_POSTER_MUTATION = import_client25.gql`
3741
+ var import_client26 = require("@apollo/client");
3742
+ var CREATE_POSTER_MUTATION = import_client26.gql`
3624
3743
  mutation createPoster($input: PosterInputType!) {
3625
3744
  createPoster(input: $input) {
3626
3745
  message
@@ -3634,7 +3753,7 @@ var CREATE_POSTER_MUTATION = import_client25.gql`
3634
3753
 
3635
3754
  // src/graphql/hooks/poster.ts
3636
3755
  var useCreatePoster = () => {
3637
- const [createPoster, { loading, error }] = (0, import_client26.useMutation)(
3756
+ const [createPoster, { loading, error }] = (0, import_client27.useMutation)(
3638
3757
  CREATE_POSTER_MUTATION,
3639
3758
  {
3640
3759
  refetchQueries: [{ query: GET_USER_EVENTS }, { query: GET_USER_VENDORS }]
@@ -3644,11 +3763,11 @@ var useCreatePoster = () => {
3644
3763
  };
3645
3764
 
3646
3765
  // src/graphql/hooks/pushToken.ts
3647
- var import_client28 = require("@apollo/client");
3766
+ var import_client29 = require("@apollo/client");
3648
3767
 
3649
3768
  // src/graphql/mutations/pushToken.ts
3650
- var import_client27 = require("@apollo/client");
3651
- var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
3769
+ var import_client28 = require("@apollo/client");
3770
+ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
3652
3771
  mutation createPushToken($input: PushTokenInput!) {
3653
3772
  createPushToken(input: $input) {
3654
3773
  success
@@ -3658,21 +3777,21 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client27.gql`
3658
3777
 
3659
3778
  // src/graphql/hooks/pushToken.ts
3660
3779
  var useCreatePushToken = () => {
3661
- const [createPushToken, { loading, error }] = (0, import_client28.useMutation)(
3780
+ const [createPushToken, { loading, error }] = (0, import_client29.useMutation)(
3662
3781
  CREATE_PUSH_TOKEN_MUTATION
3663
3782
  );
3664
3783
  return { createPushToken, error, loading };
3665
3784
  };
3666
3785
 
3667
3786
  // src/graphql/hooks/relation/hooksMutation.ts
3668
- var import_client31 = require("@apollo/client");
3787
+ var import_client32 = require("@apollo/client");
3669
3788
 
3670
3789
  // src/graphql/mutations/relation.ts
3671
- var import_client30 = require("@apollo/client");
3790
+ var import_client31 = require("@apollo/client");
3672
3791
 
3673
3792
  // src/graphql/queries/relation.ts
3674
- var import_client29 = require("@apollo/client");
3675
- var RELATION_FIELDS_FRAGMENT = import_client29.gql`
3793
+ var import_client30 = require("@apollo/client");
3794
+ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
3676
3795
  fragment RelationFields on RelationType {
3677
3796
  _id
3678
3797
  active
@@ -3690,7 +3809,7 @@ var RELATION_FIELDS_FRAGMENT = import_client29.gql`
3690
3809
  }
3691
3810
  ${RELATION_DATES_FRAGMENT}
3692
3811
  `;
3693
- var GET_RELATION = import_client29.gql`
3812
+ var GET_RELATION = import_client30.gql`
3694
3813
  query getRelation($_id: ID!) {
3695
3814
  relation(_id: $_id) {
3696
3815
  ...RelationFields
@@ -3698,7 +3817,7 @@ var GET_RELATION = import_client29.gql`
3698
3817
  }
3699
3818
  ${RELATION_FIELDS_FRAGMENT}
3700
3819
  `;
3701
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
3820
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
3702
3821
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3703
3822
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3704
3823
  ...RelationFields
@@ -3706,7 +3825,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client29.gql`
3706
3825
  }
3707
3826
  ${RELATION_FIELDS_FRAGMENT}
3708
3827
  `;
3709
- var GET_EVENT_RELATIONS = import_client29.gql`
3828
+ var GET_EVENT_RELATIONS = import_client30.gql`
3710
3829
  query getEventRelations($eventId: ID!) {
3711
3830
  eventRelations(eventId: $eventId) {
3712
3831
  ...RelationFields
@@ -3714,7 +3833,7 @@ var GET_EVENT_RELATIONS = import_client29.gql`
3714
3833
  }
3715
3834
  ${RELATION_FIELDS_FRAGMENT}
3716
3835
  `;
3717
- var GET_VENDOR_RELATIONS = import_client29.gql`
3836
+ var GET_VENDOR_RELATIONS = import_client30.gql`
3718
3837
  query getVendorRelations($vendorId: ID!) {
3719
3838
  vendorRelations(vendorId: $vendorId) {
3720
3839
  ...RelationFields
@@ -3722,7 +3841,7 @@ var GET_VENDOR_RELATIONS = import_client29.gql`
3722
3841
  }
3723
3842
  ${RELATION_FIELDS_FRAGMENT}
3724
3843
  `;
3725
- var GET_RESOURCE_CONNECTIONS = import_client29.gql`
3844
+ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
3726
3845
  query getResourceConnections(
3727
3846
  $resourceId: ID!
3728
3847
  $resourceType: ResourceTypeEnum!
@@ -3741,7 +3860,7 @@ var GET_RESOURCE_CONNECTIONS = import_client29.gql`
3741
3860
  `;
3742
3861
 
3743
3862
  // src/graphql/mutations/relation.ts
3744
- var CREATE_RELATION_MUTATION = import_client30.gql`
3863
+ var CREATE_RELATION_MUTATION = import_client31.gql`
3745
3864
  mutation createRelation($input: RelationInputType!) {
3746
3865
  createRelation(input: $input) {
3747
3866
  ...RelationFields
@@ -3749,7 +3868,7 @@ var CREATE_RELATION_MUTATION = import_client30.gql`
3749
3868
  }
3750
3869
  ${RELATION_FIELDS_FRAGMENT}
3751
3870
  `;
3752
- var UPDATE_RELATION_MUTATION = import_client30.gql`
3871
+ var UPDATE_RELATION_MUTATION = import_client31.gql`
3753
3872
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
3754
3873
  updateRelation(_id: $_id, input: $input) {
3755
3874
  ...RelationFields
@@ -3757,7 +3876,7 @@ var UPDATE_RELATION_MUTATION = import_client30.gql`
3757
3876
  }
3758
3877
  ${RELATION_FIELDS_FRAGMENT}
3759
3878
  `;
3760
- var DELETE_RELATION_MUTATION = import_client30.gql`
3879
+ var DELETE_RELATION_MUTATION = import_client31.gql`
3761
3880
  mutation deleteRelation($_id: ID!) {
3762
3881
  deleteRelation(_id: $_id) {
3763
3882
  ...RelationFields
@@ -3768,7 +3887,7 @@ var DELETE_RELATION_MUTATION = import_client30.gql`
3768
3887
 
3769
3888
  // src/graphql/hooks/relation/hooksMutation.ts
3770
3889
  var useCreateRelation = () => {
3771
- const [createRelation, { loading, error }] = (0, import_client31.useMutation)(
3890
+ const [createRelation, { loading, error }] = (0, import_client32.useMutation)(
3772
3891
  CREATE_RELATION_MUTATION,
3773
3892
  {
3774
3893
  awaitRefetchQueries: true,
@@ -3817,7 +3936,7 @@ var useCreateRelation = () => {
3817
3936
  return { createRelation, error, loading };
3818
3937
  };
3819
3938
  var useUpdateRelation = () => {
3820
- const [updateRelation, { loading, error }] = (0, import_client31.useMutation)(
3939
+ const [updateRelation, { loading, error }] = (0, import_client32.useMutation)(
3821
3940
  UPDATE_RELATION_MUTATION,
3822
3941
  {
3823
3942
  awaitRefetchQueries: true,
@@ -3863,7 +3982,7 @@ var useUpdateRelation = () => {
3863
3982
  return { error, loading, updateRelation };
3864
3983
  };
3865
3984
  var useDeleteRelation = () => {
3866
- const [deleteRelation, { loading, error }] = (0, import_client31.useMutation)(
3985
+ const [deleteRelation, { loading, error }] = (0, import_client32.useMutation)(
3867
3986
  DELETE_RELATION_MUTATION,
3868
3987
  {
3869
3988
  awaitRefetchQueries: true,
@@ -3905,9 +4024,9 @@ var useDeleteRelation = () => {
3905
4024
  };
3906
4025
 
3907
4026
  // src/graphql/hooks/relation/hooksQuery.ts
3908
- var import_client32 = require("@apollo/client");
4027
+ var import_client33 = require("@apollo/client");
3909
4028
  var useGetRelation = (_id) => {
3910
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_RELATION, {
4029
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RELATION, {
3911
4030
  fetchPolicy: "network-only",
3912
4031
  skip: !_id,
3913
4032
  variables: { _id }
@@ -3916,7 +4035,7 @@ var useGetRelation = (_id) => {
3916
4035
  return { error, loading, refetch, relation };
3917
4036
  };
3918
4037
  var useGetRelationByEventAndVendor = (eventId, vendorId) => {
3919
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(
4038
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(
3920
4039
  GET_RELATION_BY_EVENT_AND_VENDOR,
3921
4040
  {
3922
4041
  fetchPolicy: "network-only",
@@ -3928,7 +4047,7 @@ var useGetRelationByEventAndVendor = (eventId, vendorId) => {
3928
4047
  return { error, loading, refetch, relationByEventAndVendor };
3929
4048
  };
3930
4049
  var useGetEventRelations = (eventId) => {
3931
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_EVENT_RELATIONS, {
4050
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_EVENT_RELATIONS, {
3932
4051
  fetchPolicy: "network-only",
3933
4052
  skip: !eventId,
3934
4053
  variables: { eventId }
@@ -3937,7 +4056,7 @@ var useGetEventRelations = (eventId) => {
3937
4056
  return { error, eventRelations, loading, refetch };
3938
4057
  };
3939
4058
  var useGetVendorRelations = (vendorId) => {
3940
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_VENDOR_RELATIONS, {
4059
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_VENDOR_RELATIONS, {
3941
4060
  fetchPolicy: "network-only",
3942
4061
  skip: !vendorId,
3943
4062
  variables: { vendorId }
@@ -3946,7 +4065,7 @@ var useGetVendorRelations = (vendorId) => {
3946
4065
  return { error, loading, refetch, vendorRelations };
3947
4066
  };
3948
4067
  var useGetResourceConnections = (resourceId, resourceType) => {
3949
- const { loading, error, data, refetch } = (0, import_client32.useQuery)(GET_RESOURCE_CONNECTIONS, {
4068
+ const { loading, error, data, refetch } = (0, import_client33.useQuery)(GET_RESOURCE_CONNECTIONS, {
3950
4069
  fetchPolicy: "network-only",
3951
4070
  variables: { resourceId, resourceType }
3952
4071
  });
@@ -3955,11 +4074,11 @@ var useGetResourceConnections = (resourceId, resourceType) => {
3955
4074
  };
3956
4075
 
3957
4076
  // src/graphql/hooks/vendor/hooksMutation.ts
3958
- var import_client34 = require("@apollo/client");
4077
+ var import_client35 = require("@apollo/client");
3959
4078
 
3960
4079
  // src/graphql/mutations/vendor.ts
3961
- var import_client33 = require("@apollo/client");
3962
- var CREATE_VENDOR_MUTATION = import_client33.gql`
4080
+ var import_client34 = require("@apollo/client");
4081
+ var CREATE_VENDOR_MUTATION = import_client34.gql`
3963
4082
  mutation createVendor($input: VendorInputType!) {
3964
4083
  createVendor(input: $input) {
3965
4084
  ...VendorFields
@@ -3967,7 +4086,7 @@ var CREATE_VENDOR_MUTATION = import_client33.gql`
3967
4086
  }
3968
4087
  ${VENDOR}
3969
4088
  `;
3970
- var UPDATE_VENDOR_MUTATION = import_client33.gql`
4089
+ var UPDATE_VENDOR_MUTATION = import_client34.gql`
3971
4090
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
3972
4091
  updateVendor(_id: $_id, input: $input) {
3973
4092
  ...VendorFields
@@ -3975,12 +4094,12 @@ var UPDATE_VENDOR_MUTATION = import_client33.gql`
3975
4094
  }
3976
4095
  ${VENDOR}
3977
4096
  `;
3978
- var DELETE_VENDOR_MUTATION = import_client33.gql`
4097
+ var DELETE_VENDOR_MUTATION = import_client34.gql`
3979
4098
  mutation deleteVendor($_id: ID!) {
3980
4099
  deleteVendor(_id: $_id)
3981
4100
  }
3982
4101
  `;
3983
- var CREATE_VENDOR_INFO_MUTATION = import_client33.gql`
4102
+ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
3984
4103
  mutation createVendorInfo($input: VendorInfoInputType!) {
3985
4104
  createVendorInfo(input: $input) {
3986
4105
  ...VendorInfoFields
@@ -3988,7 +4107,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client33.gql`
3988
4107
  }
3989
4108
  ${VENDOR_INFO}
3990
4109
  `;
3991
- var UPDATE_VENDOR_INFO_MUTATION = import_client33.gql`
4110
+ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
3992
4111
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
3993
4112
  updateVendorInfo(_id: $_id, input: $input) {
3994
4113
  ...VendorInfoFields
@@ -3999,7 +4118,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client33.gql`
3999
4118
 
4000
4119
  // src/graphql/hooks/vendor/hooksMutation.ts
4001
4120
  var useCreateVendor = () => {
4002
- const [createVendor, { loading, error }] = (0, import_client34.useMutation)(
4121
+ const [createVendor, { loading, error }] = (0, import_client35.useMutation)(
4003
4122
  CREATE_VENDOR_MUTATION,
4004
4123
  {
4005
4124
  awaitRefetchQueries: true,
@@ -4009,7 +4128,7 @@ var useCreateVendor = () => {
4009
4128
  return { createVendor, error, loading };
4010
4129
  };
4011
4130
  var useUpdateVendor = () => {
4012
- const [updateVendor, { loading, error }] = (0, import_client34.useMutation)(
4131
+ const [updateVendor, { loading, error }] = (0, import_client35.useMutation)(
4013
4132
  UPDATE_VENDOR_MUTATION,
4014
4133
  {
4015
4134
  awaitRefetchQueries: true,
@@ -4019,7 +4138,7 @@ var useUpdateVendor = () => {
4019
4138
  return { error, loading, updateVendor };
4020
4139
  };
4021
4140
  var useDeleteVendor = () => {
4022
- const [deleteVendor, { loading, error }] = (0, import_client34.useMutation)(
4141
+ const [deleteVendor, { loading, error }] = (0, import_client35.useMutation)(
4023
4142
  DELETE_VENDOR_MUTATION,
4024
4143
  {
4025
4144
  awaitRefetchQueries: true,
@@ -4029,7 +4148,7 @@ var useDeleteVendor = () => {
4029
4148
  return { deleteVendor, error, loading };
4030
4149
  };
4031
4150
  var useCreateVendorInfo = () => {
4032
- const [createVendorInfo, { loading, error }] = (0, import_client34.useMutation)(
4151
+ const [createVendorInfo, { loading, error }] = (0, import_client35.useMutation)(
4033
4152
  CREATE_VENDOR_INFO_MUTATION,
4034
4153
  {
4035
4154
  awaitRefetchQueries: true,
@@ -4056,7 +4175,7 @@ var useCreateVendorInfo = () => {
4056
4175
  return { createVendorInfo, error, loading };
4057
4176
  };
4058
4177
  var useUpdateVendorInfo = () => {
4059
- const [updateVendorInfo, { loading, error }] = (0, import_client34.useMutation)(
4178
+ const [updateVendorInfo, { loading, error }] = (0, import_client35.useMutation)(
4060
4179
  UPDATE_VENDOR_INFO_MUTATION,
4061
4180
  {
4062
4181
  awaitRefetchQueries: true,
@@ -4077,9 +4196,9 @@ var useUpdateVendorInfo = () => {
4077
4196
  };
4078
4197
 
4079
4198
  // src/graphql/hooks/vendor/hooksQuery.ts
4080
- var import_client35 = require("@apollo/client");
4199
+ var import_client36 = require("@apollo/client");
4081
4200
  var useGetVendors = () => {
4082
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(GET_VENDORS, {
4201
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS, {
4083
4202
  fetchPolicy: "network-only"
4084
4203
  });
4085
4204
  const vendors = data?.vendors;
@@ -4091,7 +4210,7 @@ var useGetVendors = () => {
4091
4210
  };
4092
4211
  };
4093
4212
  var useGetVendor = (_id) => {
4094
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(GET_VENDOR, {
4213
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR, {
4095
4214
  fetchPolicy: "network-only",
4096
4215
  skip: !_id,
4097
4216
  variables: { _id }
@@ -4100,7 +4219,7 @@ var useGetVendor = (_id) => {
4100
4219
  return { error, loading, refetch, vendor };
4101
4220
  };
4102
4221
  var useGetVendorsByRegion = (region) => {
4103
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(GET_VENDORS_BY_REGION, {
4222
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDORS_BY_REGION, {
4104
4223
  fetchPolicy: "no-cache",
4105
4224
  skip: !region,
4106
4225
  variables: { region }
@@ -4109,7 +4228,7 @@ var useGetVendorsByRegion = (region) => {
4109
4228
  return { error, loading, refetch, vendorsByRegion };
4110
4229
  };
4111
4230
  var useSearchVendors = (search, region) => {
4112
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(SEARCH_VENDORS, {
4231
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(SEARCH_VENDORS, {
4113
4232
  fetchPolicy: "network-only",
4114
4233
  skip: search.length < 3,
4115
4234
  variables: { region, search }
@@ -4118,7 +4237,7 @@ var useSearchVendors = (search, region) => {
4118
4237
  return { error, loading, refetch, vendorSearch };
4119
4238
  };
4120
4239
  var useGetVendorInfo = (vendorId) => {
4121
- const { loading, error, data, refetch } = (0, import_client35.useQuery)(GET_VENDOR_INFO, {
4240
+ const { loading, error, data, refetch } = (0, import_client36.useQuery)(GET_VENDOR_INFO, {
4122
4241
  fetchPolicy: "network-only",
4123
4242
  skip: !vendorId,
4124
4243
  variables: { vendorId }
@@ -4133,14 +4252,14 @@ var useGetVendorInfo = (vendorId) => {
4133
4252
  };
4134
4253
 
4135
4254
  // src/graphql/hooks/testers/hooksMutation.ts
4136
- var import_client38 = require("@apollo/client");
4255
+ var import_client39 = require("@apollo/client");
4137
4256
 
4138
4257
  // src/graphql/mutations/testers.ts
4139
- var import_client37 = require("@apollo/client");
4258
+ var import_client38 = require("@apollo/client");
4140
4259
 
4141
4260
  // src/graphql/queries/testers.ts
4142
- var import_client36 = require("@apollo/client");
4143
- var TESTER_FIELDS_FRAGMENT = import_client36.gql`
4261
+ var import_client37 = require("@apollo/client");
4262
+ var TESTER_FIELDS_FRAGMENT = import_client37.gql`
4144
4263
  fragment TesterFields on TesterType {
4145
4264
  _id
4146
4265
  categories {
@@ -4159,7 +4278,7 @@ var TESTER_FIELDS_FRAGMENT = import_client36.gql`
4159
4278
  }
4160
4279
  ${CATEGORY_FIELDS_FRAGMENT}
4161
4280
  `;
4162
- var GET_TESTERS = import_client36.gql`
4281
+ var GET_TESTERS = import_client37.gql`
4163
4282
  query getTesters {
4164
4283
  testers {
4165
4284
  ...TesterFields
@@ -4167,7 +4286,7 @@ var GET_TESTERS = import_client36.gql`
4167
4286
  }
4168
4287
  ${TESTER_FIELDS_FRAGMENT}
4169
4288
  `;
4170
- var GET_TESTER = import_client36.gql`
4289
+ var GET_TESTER = import_client37.gql`
4171
4290
  query getTester($_id: ID!) {
4172
4291
  tester(_id: $_id) {
4173
4292
  ...TesterFields
@@ -4177,7 +4296,7 @@ var GET_TESTER = import_client36.gql`
4177
4296
  `;
4178
4297
 
4179
4298
  // src/graphql/mutations/testers.ts
4180
- var CREATE_TESTER_MUTATION = import_client37.gql`
4299
+ var CREATE_TESTER_MUTATION = import_client38.gql`
4181
4300
  mutation createTester($input: TesterInputType!) {
4182
4301
  createTester(input: $input) {
4183
4302
  ...TesterFields
@@ -4185,7 +4304,7 @@ var CREATE_TESTER_MUTATION = import_client37.gql`
4185
4304
  }
4186
4305
  ${TESTER_FIELDS_FRAGMENT}
4187
4306
  `;
4188
- var UPDATE_TESTER_MUTATION = import_client37.gql`
4307
+ var UPDATE_TESTER_MUTATION = import_client38.gql`
4189
4308
  mutation updateTester($_id: ID!, $input: TesterInputType!) {
4190
4309
  updateTester(_id: $_id, input: $input) {
4191
4310
  ...TesterFields
@@ -4193,7 +4312,7 @@ var UPDATE_TESTER_MUTATION = import_client37.gql`
4193
4312
  }
4194
4313
  ${TESTER_FIELDS_FRAGMENT}
4195
4314
  `;
4196
- var DELETE_TESTER_MUTATION = import_client37.gql`
4315
+ var DELETE_TESTER_MUTATION = import_client38.gql`
4197
4316
  mutation deleteTester($_id: ID!) {
4198
4317
  deleteTester(_id: $_id)
4199
4318
  }
@@ -4201,7 +4320,7 @@ var DELETE_TESTER_MUTATION = import_client37.gql`
4201
4320
 
4202
4321
  // src/graphql/hooks/testers/hooksMutation.ts
4203
4322
  var useCreateTester = () => {
4204
- const [createTester, { data, loading, error }] = (0, import_client38.useMutation)(
4323
+ const [createTester, { data, loading, error }] = (0, import_client39.useMutation)(
4205
4324
  CREATE_TESTER_MUTATION
4206
4325
  );
4207
4326
  return {
@@ -4212,7 +4331,7 @@ var useCreateTester = () => {
4212
4331
  };
4213
4332
  };
4214
4333
  var useUpdateTester = () => {
4215
- const [updateTester, { data, loading, error }] = (0, import_client38.useMutation)(
4334
+ const [updateTester, { data, loading, error }] = (0, import_client39.useMutation)(
4216
4335
  UPDATE_TESTER_MUTATION
4217
4336
  );
4218
4337
  return {
@@ -4223,16 +4342,16 @@ var useUpdateTester = () => {
4223
4342
  };
4224
4343
  };
4225
4344
  var useDeleteTester = () => {
4226
- const [deleteTester, { loading, error }] = (0, import_client38.useMutation)(
4345
+ const [deleteTester, { loading, error }] = (0, import_client39.useMutation)(
4227
4346
  DELETE_TESTER_MUTATION
4228
4347
  );
4229
4348
  return { deleteTester, error, loading };
4230
4349
  };
4231
4350
 
4232
4351
  // src/graphql/hooks/testers/hooksQuery.ts
4233
- var import_client39 = require("@apollo/client");
4352
+ var import_client40 = require("@apollo/client");
4234
4353
  var useGetTesters = () => {
4235
- const { data, loading, error, refetch } = (0, import_client39.useQuery)(GET_TESTERS);
4354
+ const { data, loading, error, refetch } = (0, import_client40.useQuery)(GET_TESTERS);
4236
4355
  const testers = data?.testers;
4237
4356
  return {
4238
4357
  error,
@@ -4242,7 +4361,7 @@ var useGetTesters = () => {
4242
4361
  };
4243
4362
  };
4244
4363
  var useGetTester = (_id) => {
4245
- const { data, loading, error, refetch } = (0, import_client39.useQuery)(GET_TESTER, {
4364
+ const { data, loading, error, refetch } = (0, import_client40.useQuery)(GET_TESTER, {
4246
4365
  skip: !_id,
4247
4366
  variables: { _id }
4248
4367
  });
@@ -4251,11 +4370,11 @@ var useGetTester = (_id) => {
4251
4370
  };
4252
4371
 
4253
4372
  // src/graphql/hooks/user/hooksMutation.ts
4254
- var import_client41 = require("@apollo/client");
4373
+ var import_client42 = require("@apollo/client");
4255
4374
 
4256
4375
  // src/graphql/mutations/user.ts
4257
- var import_client40 = require("@apollo/client");
4258
- var CREATE_USER_MUTATION = import_client40.gql`
4376
+ var import_client41 = require("@apollo/client");
4377
+ var CREATE_USER_MUTATION = import_client41.gql`
4259
4378
  mutation createUser($input: UserInputType!) {
4260
4379
  createUser(input: $input) {
4261
4380
  ...UserFields
@@ -4263,7 +4382,7 @@ var CREATE_USER_MUTATION = import_client40.gql`
4263
4382
  }
4264
4383
  ${USER_FIELDS_FRAGMENT}
4265
4384
  `;
4266
- var UPDATE_USER_MUTATION = import_client40.gql`
4385
+ var UPDATE_USER_MUTATION = import_client41.gql`
4267
4386
  mutation updateUser($_id: ID!, $input: UserInputType!) {
4268
4387
  updateUser(_id: $_id, input: $input) {
4269
4388
  ...UserFields
@@ -4271,12 +4390,12 @@ var UPDATE_USER_MUTATION = import_client40.gql`
4271
4390
  }
4272
4391
  ${USER_FIELDS_FRAGMENT}
4273
4392
  `;
4274
- var DELETE_USER_MUTATION = import_client40.gql`
4393
+ var DELETE_USER_MUTATION = import_client41.gql`
4275
4394
  mutation deleteUser($email: String!) {
4276
4395
  deleteUser(email: $email)
4277
4396
  }
4278
4397
  `;
4279
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
4398
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
4280
4399
  mutation addUserFavouriteResource(
4281
4400
  $resourceId: ID!
4282
4401
  $resourceType: ResourceTypeEnum!
@@ -4290,7 +4409,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
4290
4409
  }
4291
4410
  ${USER_FIELDS_FRAGMENT}
4292
4411
  `;
4293
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
4412
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
4294
4413
  mutation removeUserFavouriteResource(
4295
4414
  $resourceId: ID!
4296
4415
  $resourceType: ResourceTypeEnum!
@@ -4304,7 +4423,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client40.gql`
4304
4423
  }
4305
4424
  ${USER_FIELDS_FRAGMENT}
4306
4425
  `;
4307
- var SELECT_PACKAGE_MUTATION = import_client40.gql`
4426
+ var SELECT_PACKAGE_MUTATION = import_client41.gql`
4308
4427
  mutation selectPackage(
4309
4428
  $selectedLicence: LicencesEnumType!
4310
4429
  $removedLicence: LicencesEnumType
@@ -4318,7 +4437,7 @@ var SELECT_PACKAGE_MUTATION = import_client40.gql`
4318
4437
  }
4319
4438
  }
4320
4439
  `;
4321
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
4440
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
4322
4441
  mutation addUserInterestResource($input: UserActivityInputType!) {
4323
4442
  addUserInterestResource(input: $input) {
4324
4443
  ...UserFields
@@ -4326,7 +4445,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
4326
4445
  }
4327
4446
  ${USER_FIELDS_FRAGMENT}
4328
4447
  `;
4329
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
4448
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
4330
4449
  mutation removeUserInterestResource($input: UserActivityInputType!) {
4331
4450
  removeUserInterestResource(input: $input) {
4332
4451
  ...UserFields
@@ -4334,7 +4453,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client40.gql`
4334
4453
  }
4335
4454
  ${USER_FIELDS_FRAGMENT}
4336
4455
  `;
4337
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
4456
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
4338
4457
  mutation addUserGoingResource($input: UserActivityInputType!) {
4339
4458
  addUserGoingResource(input: $input) {
4340
4459
  ...UserFields
@@ -4342,7 +4461,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
4342
4461
  }
4343
4462
  ${USER_FIELDS_FRAGMENT}
4344
4463
  `;
4345
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
4464
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
4346
4465
  mutation removeUserGoingResource($input: UserActivityInputType!) {
4347
4466
  removeUserGoingResource(input: $input) {
4348
4467
  ...UserFields
@@ -4350,7 +4469,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client40.gql`
4350
4469
  }
4351
4470
  ${USER_FIELDS_FRAGMENT}
4352
4471
  `;
4353
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
4472
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
4354
4473
  mutation addUserPresentResource($input: UserActivityInputType!) {
4355
4474
  addUserPresentResource(input: $input) {
4356
4475
  ...UserFields
@@ -4358,7 +4477,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
4358
4477
  }
4359
4478
  ${USER_FIELDS_FRAGMENT}
4360
4479
  `;
4361
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
4480
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
4362
4481
  mutation removeUserPresentResource($input: UserActivityInputType!) {
4363
4482
  removeUserPresentResource(input: $input) {
4364
4483
  ...UserFields
@@ -4369,11 +4488,11 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client40.gql`
4369
4488
 
4370
4489
  // src/graphql/hooks/user/hooksMutation.ts
4371
4490
  var useCreateUser = () => {
4372
- const [createUser, { loading, error }] = (0, import_client41.useMutation)(CREATE_USER_MUTATION);
4491
+ const [createUser, { loading, error }] = (0, import_client42.useMutation)(CREATE_USER_MUTATION);
4373
4492
  return { createUser, error, loading };
4374
4493
  };
4375
4494
  var useUpdateUser = () => {
4376
- const [updateUser, { loading, error }] = (0, import_client41.useMutation)(UPDATE_USER_MUTATION, {
4495
+ const [updateUser, { loading, error }] = (0, import_client42.useMutation)(UPDATE_USER_MUTATION, {
4377
4496
  awaitRefetchQueries: true,
4378
4497
  refetchQueries: (mutationResult) => {
4379
4498
  const userId = mutationResult?.data?.updateUser?._id;
@@ -4384,11 +4503,11 @@ var useUpdateUser = () => {
4384
4503
  return { error, loading, updateUser };
4385
4504
  };
4386
4505
  var useDeleteUser = () => {
4387
- const [deleteUser, { loading, error }] = (0, import_client41.useMutation)(DELETE_USER_MUTATION);
4506
+ const [deleteUser, { loading, error }] = (0, import_client42.useMutation)(DELETE_USER_MUTATION);
4388
4507
  return { deleteUser, error, loading };
4389
4508
  };
4390
4509
  var useAddUserFavouriteResource = () => {
4391
- const [addUserFavouriteResource, { loading, error }] = (0, import_client41.useMutation)(
4510
+ const [addUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(
4392
4511
  ADD_USER_FAVOURITE_RESOURCE_MUTATION,
4393
4512
  {
4394
4513
  awaitRefetchQueries: true,
@@ -4398,7 +4517,7 @@ var useAddUserFavouriteResource = () => {
4398
4517
  return { addUserFavouriteResource, error, loading };
4399
4518
  };
4400
4519
  var useRemoveUserFavouriteResource = () => {
4401
- const [removeUserFavouriteResource, { loading, error }] = (0, import_client41.useMutation)(
4520
+ const [removeUserFavouriteResource, { loading, error }] = (0, import_client42.useMutation)(
4402
4521
  REMOVE_USER_FAVOURITE_RESOURCE_MUTATION,
4403
4522
  {
4404
4523
  awaitRefetchQueries: true,
@@ -4408,7 +4527,7 @@ var useRemoveUserFavouriteResource = () => {
4408
4527
  return { error, loading, removeUserFavouriteResource };
4409
4528
  };
4410
4529
  var useSelectPackage = () => {
4411
- const [selectPackage, { loading, error }] = (0, import_client41.useMutation)(
4530
+ const [selectPackage, { loading, error }] = (0, import_client42.useMutation)(
4412
4531
  SELECT_PACKAGE_MUTATION,
4413
4532
  {
4414
4533
  awaitRefetchQueries: true,
@@ -4426,7 +4545,7 @@ var useSelectPackage = () => {
4426
4545
  return { error, loading, selectPackage };
4427
4546
  };
4428
4547
  var useAddUserInterestResource = () => {
4429
- const [addUserInterestResource, { loading, error }] = (0, import_client41.useMutation)(
4548
+ const [addUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(
4430
4549
  ADD_USER_INTEREST_RESOURCE_MUTATION,
4431
4550
  {
4432
4551
  awaitRefetchQueries: true,
@@ -4436,7 +4555,7 @@ var useAddUserInterestResource = () => {
4436
4555
  return { addUserInterestResource, error, loading };
4437
4556
  };
4438
4557
  var useRemoveUserInterestResource = () => {
4439
- const [removeUserInterestResource, { loading, error }] = (0, import_client41.useMutation)(
4558
+ const [removeUserInterestResource, { loading, error }] = (0, import_client42.useMutation)(
4440
4559
  REMOVE_USER_INTEREST_RESOURCE_MUTATION,
4441
4560
  {
4442
4561
  awaitRefetchQueries: true,
@@ -4446,7 +4565,7 @@ var useRemoveUserInterestResource = () => {
4446
4565
  return { error, loading, removeUserInterestResource };
4447
4566
  };
4448
4567
  var useAddUserGoingResource = () => {
4449
- const [addUserGoingResource, { loading, error }] = (0, import_client41.useMutation)(
4568
+ const [addUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(
4450
4569
  ADD_USER_GOING_RESOURCE_MUTATION,
4451
4570
  {
4452
4571
  awaitRefetchQueries: true,
@@ -4456,7 +4575,7 @@ var useAddUserGoingResource = () => {
4456
4575
  return { addUserGoingResource, error, loading };
4457
4576
  };
4458
4577
  var useRemoveUserGoingResource = () => {
4459
- const [removeUserGoingResource, { loading, error }] = (0, import_client41.useMutation)(
4578
+ const [removeUserGoingResource, { loading, error }] = (0, import_client42.useMutation)(
4460
4579
  REMOVE_USER_GOING_RESOURCE_MUTATION,
4461
4580
  {
4462
4581
  awaitRefetchQueries: true,
@@ -4466,7 +4585,7 @@ var useRemoveUserGoingResource = () => {
4466
4585
  return { error, loading, removeUserGoingResource };
4467
4586
  };
4468
4587
  var useAddUserPresentResource = () => {
4469
- const [addUserPresentResource, { loading, error }] = (0, import_client41.useMutation)(
4588
+ const [addUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(
4470
4589
  ADD_USER_PRESENT_RESOURCE_MUTATION,
4471
4590
  {
4472
4591
  awaitRefetchQueries: true,
@@ -4476,7 +4595,7 @@ var useAddUserPresentResource = () => {
4476
4595
  return { addUserPresentResource, error, loading };
4477
4596
  };
4478
4597
  var useRemoveUserPresentResource = () => {
4479
- const [removeUserPresentResource, { loading, error }] = (0, import_client41.useMutation)(
4598
+ const [removeUserPresentResource, { loading, error }] = (0, import_client42.useMutation)(
4480
4599
  REMOVE_USER_PRESENT_RESOURCE_MUTATION,
4481
4600
  {
4482
4601
  awaitRefetchQueries: true,
@@ -4487,37 +4606,37 @@ var useRemoveUserPresentResource = () => {
4487
4606
  };
4488
4607
 
4489
4608
  // src/graphql/hooks/user/hooksQuery.ts
4490
- var import_client42 = require("@apollo/client");
4609
+ var import_client43 = require("@apollo/client");
4491
4610
  var useGetUsers = () => {
4492
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USERS, {
4611
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USERS, {
4493
4612
  fetchPolicy: "network-only"
4494
4613
  });
4495
4614
  const users = data?.users;
4496
4615
  return { error, loading, refetch, users };
4497
4616
  };
4498
4617
  var useGetUser = (_id) => {
4499
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER, {
4618
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER, {
4500
4619
  variables: { _id }
4501
4620
  });
4502
4621
  const user = data?.user;
4503
4622
  return { error, loading, refetch, user };
4504
4623
  };
4505
4624
  var useGetUserEvents = () => {
4506
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_EVENTS, {
4625
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_EVENTS, {
4507
4626
  fetchPolicy: "network-only"
4508
4627
  });
4509
4628
  const userEvents = data?.userEvents;
4510
4629
  return { error, loading, refetch, userEvents };
4511
4630
  };
4512
4631
  var useGetUserVendors = () => {
4513
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_VENDORS, {
4632
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_VENDORS, {
4514
4633
  fetchPolicy: "network-only"
4515
4634
  });
4516
4635
  const userVendors = data?.userVendors;
4517
4636
  return { error, loading, refetch, userVendors };
4518
4637
  };
4519
4638
  var useGetUserActivities = () => {
4520
- const { loading, error, data, refetch } = (0, import_client42.useQuery)(GET_USER_ACTIVITIES, {
4639
+ const { loading, error, data, refetch } = (0, import_client43.useQuery)(GET_USER_ACTIVITIES, {
4521
4640
  fetchPolicy: "network-only"
4522
4641
  });
4523
4642
  const userActivities = {
@@ -4539,14 +4658,14 @@ var useGetUserActivities = () => {
4539
4658
  };
4540
4659
 
4541
4660
  // src/graphql/hooks/ad/hooksMutation.ts
4542
- var import_client45 = require("@apollo/client");
4661
+ var import_client46 = require("@apollo/client");
4543
4662
 
4544
4663
  // src/graphql/mutations/ad.ts
4545
- var import_client44 = require("@apollo/client");
4664
+ var import_client45 = require("@apollo/client");
4546
4665
 
4547
4666
  // src/graphql/queries/ad.ts
4548
- var import_client43 = require("@apollo/client");
4549
- var AD_FIELDS_FRAGMENT = import_client43.gql`
4667
+ var import_client44 = require("@apollo/client");
4668
+ var AD_FIELDS_FRAGMENT = import_client44.gql`
4550
4669
  fragment AdFields on AdType {
4551
4670
  _id
4552
4671
  active
@@ -4574,7 +4693,7 @@ var AD_FIELDS_FRAGMENT = import_client43.gql`
4574
4693
  }
4575
4694
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4576
4695
  `;
4577
- var GET_ADS = import_client43.gql`
4696
+ var GET_ADS = import_client44.gql`
4578
4697
  query getAds {
4579
4698
  ads {
4580
4699
  ...AdFields
@@ -4582,7 +4701,7 @@ var GET_ADS = import_client43.gql`
4582
4701
  }
4583
4702
  ${AD_FIELDS_FRAGMENT}
4584
4703
  `;
4585
- var GET_AD = import_client43.gql`
4704
+ var GET_AD = import_client44.gql`
4586
4705
  query getAd($_id: ID!) {
4587
4706
  ad(_id: $_id) {
4588
4707
  ...AdFields
@@ -4590,7 +4709,7 @@ var GET_AD = import_client43.gql`
4590
4709
  }
4591
4710
  ${AD_FIELDS_FRAGMENT}
4592
4711
  `;
4593
- var GET_ADS_BY_REGION = import_client43.gql`
4712
+ var GET_ADS_BY_REGION = import_client44.gql`
4594
4713
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
4595
4714
  adsByRegion(region: $region, status: $status) {
4596
4715
  ...AdFields
@@ -4600,7 +4719,7 @@ var GET_ADS_BY_REGION = import_client43.gql`
4600
4719
  `;
4601
4720
 
4602
4721
  // src/graphql/mutations/ad.ts
4603
- var CREATE_AD_MUTATION = import_client44.gql`
4722
+ var CREATE_AD_MUTATION = import_client45.gql`
4604
4723
  mutation createAd($input: AdInputType!) {
4605
4724
  createAd(input: $input) {
4606
4725
  ...AdFields
@@ -4608,7 +4727,7 @@ var CREATE_AD_MUTATION = import_client44.gql`
4608
4727
  }
4609
4728
  ${AD_FIELDS_FRAGMENT}
4610
4729
  `;
4611
- var UPDATE_AD_MUTATION = import_client44.gql`
4730
+ var UPDATE_AD_MUTATION = import_client45.gql`
4612
4731
  mutation updateAd($_id: ID!, $input: AdInputType!) {
4613
4732
  updateAd(_id: $_id, input: $input) {
4614
4733
  ...AdFields
@@ -4616,7 +4735,7 @@ var UPDATE_AD_MUTATION = import_client44.gql`
4616
4735
  }
4617
4736
  ${AD_FIELDS_FRAGMENT}
4618
4737
  `;
4619
- var DELETE_AD_MUTATION = import_client44.gql`
4738
+ var DELETE_AD_MUTATION = import_client45.gql`
4620
4739
  mutation deleteAd($_id: ID!) {
4621
4740
  deleteAd(_id: $_id)
4622
4741
  }
@@ -4624,7 +4743,7 @@ var DELETE_AD_MUTATION = import_client44.gql`
4624
4743
 
4625
4744
  // src/graphql/hooks/ad/hooksMutation.ts
4626
4745
  var useCreateAd = () => {
4627
- const [createAd, { loading, error }] = (0, import_client45.useMutation)(CREATE_AD_MUTATION, {
4746
+ const [createAd, { loading, error }] = (0, import_client46.useMutation)(CREATE_AD_MUTATION, {
4628
4747
  awaitRefetchQueries: true,
4629
4748
  refetchQueries: [{ query: GET_ADS }]
4630
4749
  });
@@ -4635,7 +4754,7 @@ var useCreateAd = () => {
4635
4754
  };
4636
4755
  };
4637
4756
  var useUpdateAd = () => {
4638
- const [updateAd, { loading, error }] = (0, import_client45.useMutation)(UPDATE_AD_MUTATION, {
4757
+ const [updateAd, { loading, error }] = (0, import_client46.useMutation)(UPDATE_AD_MUTATION, {
4639
4758
  awaitRefetchQueries: true,
4640
4759
  refetchQueries: [{ query: GET_ADS }]
4641
4760
  });
@@ -4646,7 +4765,7 @@ var useUpdateAd = () => {
4646
4765
  };
4647
4766
  };
4648
4767
  var useDeleteAd = () => {
4649
- const [deleteAd, { loading, error }] = (0, import_client45.useMutation)(DELETE_AD_MUTATION, {
4768
+ const [deleteAd, { loading, error }] = (0, import_client46.useMutation)(DELETE_AD_MUTATION, {
4650
4769
  awaitRefetchQueries: true,
4651
4770
  refetchQueries: [{ query: GET_ADS }]
4652
4771
  });
@@ -4658,9 +4777,9 @@ var useDeleteAd = () => {
4658
4777
  };
4659
4778
 
4660
4779
  // src/graphql/hooks/ad/hooksQuery.ts
4661
- var import_client46 = require("@apollo/client");
4780
+ var import_client47 = require("@apollo/client");
4662
4781
  var useGetAds = () => {
4663
- const { data, loading, error, refetch } = (0, import_client46.useQuery)(
4782
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(
4664
4783
  GET_ADS,
4665
4784
  {
4666
4785
  fetchPolicy: "no-cache"
@@ -4674,7 +4793,7 @@ var useGetAds = () => {
4674
4793
  };
4675
4794
  };
4676
4795
  var useGetAd = (_id) => {
4677
- const { data, loading, error, refetch } = (0, import_client46.useQuery)(GET_AD, {
4796
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_AD, {
4678
4797
  fetchPolicy: "no-cache",
4679
4798
  skip: !_id,
4680
4799
  variables: { _id }
@@ -4687,7 +4806,7 @@ var useGetAd = (_id) => {
4687
4806
  };
4688
4807
  };
4689
4808
  var useGetAdsByRegion = (region, status) => {
4690
- const { data, loading, error, refetch } = (0, import_client46.useQuery)(GET_ADS_BY_REGION, {
4809
+ const { data, loading, error, refetch } = (0, import_client47.useQuery)(GET_ADS_BY_REGION, {
4691
4810
  fetchPolicy: "no-cache",
4692
4811
  skip: !region,
4693
4812
  variables: { region, status }
@@ -4701,11 +4820,11 @@ var useGetAdsByRegion = (region, status) => {
4701
4820
  };
4702
4821
 
4703
4822
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
4704
- var import_client48 = require("@apollo/client");
4823
+ var import_client49 = require("@apollo/client");
4705
4824
 
4706
4825
  // src/graphql/mutations/resourceActivities.ts
4707
- var import_client47 = require("@apollo/client");
4708
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client47.gql`
4826
+ var import_client48 = require("@apollo/client");
4827
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
4709
4828
  mutation createResourceActivity($input: ResourceActivityInputType!) {
4710
4829
  createResourceActivity(input: $input)
4711
4830
  }
@@ -4713,18 +4832,18 @@ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client47.gql`
4713
4832
 
4714
4833
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
4715
4834
  var useCreateResourceActivity = () => {
4716
- const [createResourceActivity, { loading, error }] = (0, import_client48.useMutation)(
4835
+ const [createResourceActivity, { loading, error }] = (0, import_client49.useMutation)(
4717
4836
  CREATE_RESOURCE_ACTIVITY_MUTATION
4718
4837
  );
4719
4838
  return { createResourceActivity, error, loading };
4720
4839
  };
4721
4840
 
4722
4841
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
4723
- var import_client50 = require("@apollo/client");
4842
+ var import_client51 = require("@apollo/client");
4724
4843
 
4725
4844
  // src/graphql/queries/resourceActivities.ts
4726
- var import_client49 = require("@apollo/client");
4727
- var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = import_client49.gql`
4845
+ var import_client50 = require("@apollo/client");
4846
+ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = import_client50.gql`
4728
4847
  fragment ResourceActivitiesFields on ResourceActivitiesType {
4729
4848
  resourceId
4730
4849
  resourceType
@@ -4743,7 +4862,7 @@ var RESOURCE_ACTIVITIES_FIELDS_FRAGMENT = import_client49.gql`
4743
4862
  }
4744
4863
  }
4745
4864
  `;
4746
- var GET_RESOURCE_ACTIVITIES = import_client49.gql`
4865
+ var GET_RESOURCE_ACTIVITIES = import_client50.gql`
4747
4866
  query getResourceActivities(
4748
4867
  $resourceType: ResourceTypeEnum!
4749
4868
  $resourceId: ID!
@@ -4757,7 +4876,7 @@ var GET_RESOURCE_ACTIVITIES = import_client49.gql`
4757
4876
 
4758
4877
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
4759
4878
  var useGetResourceActivities = (resourceId, resourceType) => {
4760
- const { data, loading, error, refetch } = (0, import_client50.useQuery)(GET_RESOURCE_ACTIVITIES, {
4879
+ const { data, loading, error, refetch } = (0, import_client51.useQuery)(GET_RESOURCE_ACTIVITIES, {
4761
4880
  fetchPolicy: "network-only",
4762
4881
  variables: { resourceId, resourceType }
4763
4882
  });
@@ -4770,11 +4889,11 @@ var useGetResourceActivities = (resourceId, resourceType) => {
4770
4889
  };
4771
4890
 
4772
4891
  // src/graphql/hooks/stripe/hooksMutation.ts
4773
- var import_client52 = require("@apollo/client");
4892
+ var import_client53 = require("@apollo/client");
4774
4893
 
4775
4894
  // src/graphql/mutations/stripe.ts
4776
- var import_client51 = require("@apollo/client");
4777
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client51.gql`
4895
+ var import_client52 = require("@apollo/client");
4896
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
4778
4897
  mutation createCheckoutSession($planId: LicencesEnumType!) {
4779
4898
  createCheckoutSession(planId: $planId) {
4780
4899
  sessionId
@@ -4782,12 +4901,12 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client51.gql`
4782
4901
  }
4783
4902
  }
4784
4903
  `;
4785
- var CANCEL_SUBSCRIPTION_MUTATION = import_client51.gql`
4904
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
4786
4905
  mutation cancelSubscription {
4787
4906
  cancelSubscription
4788
4907
  }
4789
4908
  `;
4790
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client51.gql`
4909
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
4791
4910
  mutation updateSubscriptionPlan($newPlanId: LicencesEnumType!) {
4792
4911
  updateSubscriptionPlan(newPlanId: $newPlanId) {
4793
4912
  subscriptionId
@@ -4800,30 +4919,30 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client51.gql`
4800
4919
 
4801
4920
  // src/graphql/hooks/stripe/hooksMutation.ts
4802
4921
  var useCreateCheckoutSession = () => {
4803
- const [createCheckoutSession, { loading, error }] = (0, import_client52.useMutation)(
4922
+ const [createCheckoutSession, { loading, error }] = (0, import_client53.useMutation)(
4804
4923
  CREATE_CHECKOUT_SESSION_MUTATION
4805
4924
  );
4806
4925
  return { createCheckoutSession, error, loading };
4807
4926
  };
4808
4927
  var useCancelSubscription = () => {
4809
- const [cancelSubscription, { loading, error }] = (0, import_client52.useMutation)(
4928
+ const [cancelSubscription, { loading, error }] = (0, import_client53.useMutation)(
4810
4929
  CANCEL_SUBSCRIPTION_MUTATION
4811
4930
  );
4812
4931
  return { cancelSubscription, error, loading };
4813
4932
  };
4814
4933
  var useUpdateSubscriptionPlan = () => {
4815
- const [updateSubscriptionPlan, { loading, error }] = (0, import_client52.useMutation)(
4934
+ const [updateSubscriptionPlan, { loading, error }] = (0, import_client53.useMutation)(
4816
4935
  UPDATE_SUBSCRIPTION_PLAN_MUTATION
4817
4936
  );
4818
4937
  return { error, loading, updateSubscriptionPlan };
4819
4938
  };
4820
4939
 
4821
4940
  // src/graphql/hooks/stripe/hooksQuery.ts
4822
- var import_client54 = require("@apollo/client");
4941
+ var import_client55 = require("@apollo/client");
4823
4942
 
4824
4943
  // src/graphql/queries/stripe.ts
4825
- var import_client53 = require("@apollo/client");
4826
- var GET_SUBSCRIPTION_STATUS = import_client53.gql`
4944
+ var import_client54 = require("@apollo/client");
4945
+ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
4827
4946
  query getSubscriptionStatus {
4828
4947
  getSubscriptionStatus {
4829
4948
  subscriptionId
@@ -4836,7 +4955,7 @@ var GET_SUBSCRIPTION_STATUS = import_client53.gql`
4836
4955
 
4837
4956
  // src/graphql/hooks/stripe/hooksQuery.ts
4838
4957
  var useGetSubscriptionStatus = () => {
4839
- const { data, loading, error, refetch } = (0, import_client54.useQuery)(GET_SUBSCRIPTION_STATUS);
4958
+ const { data, loading, error, refetch } = (0, import_client55.useQuery)(GET_SUBSCRIPTION_STATUS);
4840
4959
  return {
4841
4960
  data: data?.getSubscriptionStatus,
4842
4961
  error,
@@ -4845,6 +4964,107 @@ var useGetSubscriptionStatus = () => {
4845
4964
  };
4846
4965
  };
4847
4966
 
4967
+ // src/graphql/hooks/partner/hooksMutation.ts
4968
+ var import_client57 = require("@apollo/client");
4969
+
4970
+ // src/graphql/mutations/partner.ts
4971
+ var import_client56 = require("@apollo/client");
4972
+ var CREATE_PARTNER_MUTATION = import_client56.gql`
4973
+ mutation createPartner($input: PartnerInputType!) {
4974
+ createPartner(input: $input) {
4975
+ ...PartnerFields
4976
+ }
4977
+ }
4978
+ ${PARTNER}
4979
+ `;
4980
+ var UPDATE_PARTNER_MUTATION = import_client56.gql`
4981
+ mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
4982
+ updatePartner(_id: $_id, input: $input) {
4983
+ ...PartnerFields
4984
+ }
4985
+ }
4986
+ ${PARTNER}
4987
+ `;
4988
+ var DELETE_PARTNER_MUTATION = import_client56.gql`
4989
+ mutation deletePartner($_id: ID!) {
4990
+ deletePartner(_id: $_id)
4991
+ }
4992
+ `;
4993
+
4994
+ // src/graphql/hooks/partner/hooksMutation.ts
4995
+ var useCreatePartner = () => {
4996
+ const [createPartner, { loading, error }] = (0, import_client57.useMutation)(
4997
+ CREATE_PARTNER_MUTATION,
4998
+ {
4999
+ awaitRefetchQueries: true,
5000
+ refetchQueries: [{ query: GET_USER_PARTNERS }]
5001
+ }
5002
+ );
5003
+ return { createPartner, error, loading };
5004
+ };
5005
+ var useUpdatePartner = () => {
5006
+ const [updatePartner, { loading, error }] = (0, import_client57.useMutation)(
5007
+ UPDATE_PARTNER_MUTATION,
5008
+ {
5009
+ awaitRefetchQueries: true,
5010
+ refetchQueries: [{ query: GET_USER_PARTNERS }]
5011
+ }
5012
+ );
5013
+ return { error, loading, updatePartner };
5014
+ };
5015
+ var useDeletePartner = () => {
5016
+ const [deletePartner, { loading, error }] = (0, import_client57.useMutation)(
5017
+ DELETE_PARTNER_MUTATION,
5018
+ {
5019
+ awaitRefetchQueries: true,
5020
+ refetchQueries: [{ query: GET_USER_PARTNERS }]
5021
+ }
5022
+ );
5023
+ return { deletePartner, error, loading };
5024
+ };
5025
+
5026
+ // src/graphql/hooks/partner/hooksQuery.ts
5027
+ var import_client58 = require("@apollo/client");
5028
+ var useGetPartners = () => {
5029
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS, {
5030
+ fetchPolicy: "network-only"
5031
+ });
5032
+ const partners = data?.partners;
5033
+ return {
5034
+ error,
5035
+ loading,
5036
+ partners,
5037
+ refetch
5038
+ };
5039
+ };
5040
+ var useGetPartner = (_id) => {
5041
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNER, {
5042
+ fetchPolicy: "network-only",
5043
+ skip: !_id,
5044
+ variables: { _id }
5045
+ });
5046
+ const partner = data?.partner;
5047
+ return { error, loading, partner, refetch };
5048
+ };
5049
+ var useGetPartnersByRegion = (region) => {
5050
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(GET_PARTNERS_BY_REGION, {
5051
+ fetchPolicy: "no-cache",
5052
+ skip: !region,
5053
+ variables: { region }
5054
+ });
5055
+ const partnersByRegion = data?.partnersByRegion;
5056
+ return { error, loading, partnersByRegion, refetch };
5057
+ };
5058
+ var useSearchPartners = (search, region) => {
5059
+ const { loading, error, data, refetch } = (0, import_client58.useQuery)(SEARCH_PARTNERS, {
5060
+ fetchPolicy: "network-only",
5061
+ skip: search.length < 3,
5062
+ variables: { region, search }
5063
+ });
5064
+ const partnerSearch = data?.partnerSearch;
5065
+ return { error, loading, partnerSearch, refetch };
5066
+ };
5067
+
4848
5068
  // src/hooks/useLocationSearch.ts
4849
5069
  var handleApiError = (error, message) => {
4850
5070
  console.error(message, error);
@@ -4929,6 +5149,8 @@ var import_dayjs2 = __toESM(require("dayjs"));
4929
5149
  var import_customParseFormat2 = __toESM(require("dayjs/plugin/customParseFormat.js"));
4930
5150
  var import_isSameOrAfter2 = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
4931
5151
  var yup = __toESM(require("yup"));
5152
+ var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
5153
+ var nzbnRegex = /^94\d{11}$/;
4932
5154
  var normalizedUrlTransform = () => yup.string().trim().transform(
4933
5155
  (value) => typeof value === "string" ? value.toLowerCase() : value
4934
5156
  ).transform(
@@ -5122,8 +5344,6 @@ var categorySchema = yup.array().of(
5122
5344
 
5123
5345
  // src/yupSchema/event.ts
5124
5346
  var yup2 = __toESM(require("yup"));
5125
- var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
5126
- var nzbnRegex = /^94\d{11}$/;
5127
5347
  var eventSchema = globalResourceSchema.shape({
5128
5348
  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(
5129
5349
  "unique-start-date-time",
@@ -5315,8 +5535,9 @@ var yup7 = __toESM(require("yup"));
5315
5535
 
5316
5536
  // src/types/ad.ts
5317
5537
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
5318
- EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
5319
5538
  EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
5539
+ EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
5540
+ EnumAdShowOn2["PARTNERS_PAGE"] = "Partners_page";
5320
5541
  EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
5321
5542
  return EnumAdShowOn2;
5322
5543
  })(EnumAdShowOn || {});
@@ -5384,7 +5605,27 @@ var adSchema = yup7.object().shape({
5384
5605
  targetRegion: yup7.string().nullable().notRequired()
5385
5606
  });
5386
5607
 
5608
+ // src/yupSchema/partner.ts
5609
+ var yup8 = __toESM(require("yup"));
5610
+ var partnerSchema = globalResourceSchema.shape({
5611
+ location: locationSchema,
5612
+ nzbn: yup8.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
5613
+ partnerType: yup8.mixed().oneOf(Object.values(EnumPartnerType)).required("Please select a Partner type")
5614
+ });
5615
+
5387
5616
  // src/hooks/utils.ts
5617
+ var defaultLocation = {
5618
+ city: "",
5619
+ coordinates: [0, 0],
5620
+ // [longitude, latitude]
5621
+ country: "",
5622
+ fullAddress: "",
5623
+ latitude: 0,
5624
+ longitude: 0,
5625
+ region: "",
5626
+ type: "Point"
5627
+ // Default type for GeoJSON
5628
+ };
5388
5629
  var globalDefaultValues = {
5389
5630
  active: false,
5390
5631
  associates: null,
@@ -5411,22 +5652,17 @@ var globalDefaultValues = {
5411
5652
  region: "",
5412
5653
  socialMedia: []
5413
5654
  };
5655
+ var defaultPartnerFormValues = {
5656
+ ...globalDefaultValues,
5657
+ location: defaultLocation,
5658
+ nzbn: "",
5659
+ partnerType: "Charity_Partner" /* CHARITY_PARTNER */
5660
+ };
5414
5661
  var defaultEventFormValues = {
5415
5662
  ...globalDefaultValues,
5416
5663
  dateTime: [],
5417
5664
  eventType: "Market" /* MARKET */,
5418
- location: {
5419
- city: "",
5420
- coordinates: [0, 0],
5421
- // [longitude, latitude]
5422
- country: "",
5423
- fullAddress: "",
5424
- latitude: 0,
5425
- longitude: 0,
5426
- region: "",
5427
- type: "Point"
5428
- // Default type for GeoJSON
5429
- },
5665
+ location: defaultLocation,
5430
5666
  nzbn: "",
5431
5667
  provider: null,
5432
5668
  rainOrShine: false,
@@ -6151,12 +6387,12 @@ var import_react2 = __toESM(require("react"));
6151
6387
  var import_react_hook_form12 = require("react-hook-form");
6152
6388
 
6153
6389
  // src/yupSchema/contactUs.ts
6154
- var yup8 = __toESM(require("yup"));
6155
- var contactUsSchema = yup8.object().shape({
6390
+ var yup9 = __toESM(require("yup"));
6391
+ var contactUsSchema = yup9.object().shape({
6156
6392
  email: emailRequiredSchema,
6157
- firstName: yup8.string().label("First Name").required("First name is required"),
6158
- lastName: yup8.string().label("Last Name").required("Last name is required"),
6159
- message: yup8.string().label("Message").required("Message is required")
6393
+ firstName: yup9.string().label("First Name").required("First name is required"),
6394
+ lastName: yup9.string().label("Last Name").required("Last name is required"),
6395
+ message: yup9.string().label("Message").required("Message is required")
6160
6396
  });
6161
6397
 
6162
6398
  // src/hooks/useContactUsForm.ts
@@ -6321,6 +6557,87 @@ function useAdForm(data) {
6321
6557
  };
6322
6558
  }
6323
6559
 
6560
+ // src/hooks/partner/usePartnerForm.ts
6561
+ var import_yup14 = require("@hookform/resolvers/yup");
6562
+ var React9 = __toESM(require("react"));
6563
+ var import_react_hook_form14 = require("react-hook-form");
6564
+ function usePartnerForm(data) {
6565
+ const {
6566
+ control,
6567
+ formState: { errors },
6568
+ getValues,
6569
+ handleSubmit,
6570
+ reset,
6571
+ setValue,
6572
+ watch
6573
+ } = (0, import_react_hook_form14.useForm)({
6574
+ defaultValues: defaultPartnerFormValues,
6575
+ resolver: (0, import_yup14.yupResolver)(partnerSchema)
6576
+ });
6577
+ React9.useEffect(() => {
6578
+ if (data) {
6579
+ reset({
6580
+ ...mapBaseResourceTypeToFormData(data),
6581
+ location: data.location,
6582
+ nzbn: data.nzbn,
6583
+ partnerType: data.partnerType
6584
+ });
6585
+ } else {
6586
+ reset(defaultPartnerFormValues);
6587
+ }
6588
+ }, [data]);
6589
+ const {
6590
+ _id,
6591
+ active,
6592
+ associates,
6593
+ cover,
6594
+ coverUpload,
6595
+ description,
6596
+ images,
6597
+ imagesUpload,
6598
+ location,
6599
+ logo,
6600
+ logoUpload,
6601
+ name,
6602
+ nzbn,
6603
+ owner,
6604
+ partnerType,
6605
+ promoCodes,
6606
+ region,
6607
+ socialMedia: socialMedia2,
6608
+ termsAgreement
6609
+ } = getValues();
6610
+ return {
6611
+ control,
6612
+ fields: {
6613
+ _id,
6614
+ active,
6615
+ associates,
6616
+ cover,
6617
+ coverUpload,
6618
+ description,
6619
+ images,
6620
+ imagesUpload,
6621
+ location,
6622
+ logo,
6623
+ logoUpload,
6624
+ name,
6625
+ nzbn,
6626
+ owner,
6627
+ partnerType,
6628
+ promoCodes,
6629
+ region,
6630
+ socialMedia: socialMedia2,
6631
+ termsAgreement
6632
+ },
6633
+ formState: { errors },
6634
+ handleSubmit,
6635
+ reset,
6636
+ setValue,
6637
+ watch
6638
+ };
6639
+ }
6640
+
6324
6641
  // src/storage/index.ts
6325
6642
  var SAVED_PASSWORD_KEY = "savedPassword";
6326
6643
  var SAVED_EMAIL_KEY = "savedEmail";
@@ -6391,6 +6708,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6391
6708
  EnumNotificationResourceType,
6392
6709
  EnumNotificationType,
6393
6710
  EnumOSPlatform,
6711
+ EnumPartnerType,
6394
6712
  EnumPaymentMethod,
6395
6713
  EnumRegions,
6396
6714
  EnumRelationResource,
@@ -6407,7 +6725,6 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6407
6725
  SAVED_TOKEN_KEY,
6408
6726
  USER_STORAGE_KEY,
6409
6727
  availableCategories,
6410
- availableCityOptions,
6411
6728
  availableRegionOptions,
6412
6729
  availableRegionTypes,
6413
6730
  availableTagTypes,
@@ -6419,6 +6736,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6419
6736
  dateFormat,
6420
6737
  defaultEventFormValues,
6421
6738
  defaultEventInfoFormValues,
6739
+ defaultPartnerFormValues,
6422
6740
  defaultRegion,
6423
6741
  defaultVendorFormValues,
6424
6742
  defaultVendorInfoFormValues,
@@ -6441,6 +6759,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6441
6759
  mapBaseResourceTypeToFormData,
6442
6760
  normalizeUrl,
6443
6761
  packagingOptions,
6762
+ partnerBasicInfoFields,
6444
6763
  paymentMethodOptions,
6445
6764
  producedIngOptions,
6446
6765
  productLabelGroups,
@@ -6473,6 +6792,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6473
6792
  useCreateCheckoutSession,
6474
6793
  useCreateEvent,
6475
6794
  useCreateEventInfo,
6795
+ useCreatePartner,
6476
6796
  useCreatePoster,
6477
6797
  useCreatePushToken,
6478
6798
  useCreateRelation,
@@ -6486,6 +6806,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6486
6806
  useDeleteChat,
6487
6807
  useDeleteEvent,
6488
6808
  useDeleteNotification,
6809
+ useDeletePartner,
6489
6810
  useDeleteRelation,
6490
6811
  useDeleteTester,
6491
6812
  useDeleteUser,
@@ -6505,6 +6826,9 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6505
6826
  useGetEventsNearMe,
6506
6827
  useGetNotificationCount,
6507
6828
  useGetNotificationCountSubscription,
6829
+ useGetPartner,
6830
+ useGetPartners,
6831
+ useGetPartnersByRegion,
6508
6832
  useGetRelation,
6509
6833
  useGetRelationByEventAndVendor,
6510
6834
  useGetResourceActivities,
@@ -6531,6 +6855,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6531
6855
  useLogout,
6532
6856
  useMarkAllNotificationsRead,
6533
6857
  useMarkNotificationRead,
6858
+ usePartnerForm,
6534
6859
  useRefreshToken,
6535
6860
  useRegister,
6536
6861
  useRegisterForm,
@@ -6544,6 +6869,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6544
6869
  useResetPassword,
6545
6870
  useResetPasswordForm,
6546
6871
  useSearchEvents,
6872
+ useSearchPartners,
6547
6873
  useSearchVendors,
6548
6874
  useSelectPackage,
6549
6875
  useSendChatMessage,
@@ -6551,6 +6877,7 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
6551
6877
  useUpdateAd,
6552
6878
  useUpdateEvent,
6553
6879
  useUpdateEventInfo,
6880
+ useUpdatePartner,
6554
6881
  useUpdateRelation,
6555
6882
  useUpdateSubscriptionPlan,
6556
6883
  useUpdateTester,