@timardex/cluemart-shared 1.4.41 → 1.4.42

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 (41) hide show
  1. package/dist/{auth-C4rFM8ym.d.mts → auth-CMAZK-Pw.d.mts} +1 -2
  2. package/dist/{auth-Z7ZalBiX.d.ts → auth-CYgZKLvY.d.ts} +1 -2
  3. package/dist/{chunk-JRDILNPH.mjs → chunk-CGXCKZ4G.mjs} +21 -34
  4. package/dist/chunk-CGXCKZ4G.mjs.map +1 -0
  5. package/dist/{chunk-B5HXAEH4.mjs → chunk-END7A5PN.mjs} +1 -28
  6. package/dist/chunk-END7A5PN.mjs.map +1 -0
  7. package/dist/{chunk-UCRSD3WR.mjs → chunk-NZTJYWGA.mjs} +221 -456
  8. package/dist/chunk-NZTJYWGA.mjs.map +1 -0
  9. package/dist/formFields/index.cjs +20 -34
  10. package/dist/formFields/index.cjs.map +1 -1
  11. package/dist/formFields/index.d.mts +1 -3
  12. package/dist/formFields/index.d.ts +1 -3
  13. package/dist/formFields/index.mjs +1 -3
  14. package/dist/graphql/index.cjs +304 -546
  15. package/dist/graphql/index.cjs.map +1 -1
  16. package/dist/graphql/index.d.mts +2 -57
  17. package/dist/graphql/index.d.ts +2 -57
  18. package/dist/graphql/index.mjs +1 -15
  19. package/dist/hooks/index.cjs +275 -664
  20. package/dist/hooks/index.cjs.map +1 -1
  21. package/dist/hooks/index.d.mts +3 -5
  22. package/dist/hooks/index.d.ts +3 -5
  23. package/dist/hooks/index.mjs +92 -280
  24. package/dist/hooks/index.mjs.map +1 -1
  25. package/dist/index.cjs +412 -885
  26. package/dist/index.cjs.map +1 -1
  27. package/dist/index.d.mts +2 -149
  28. package/dist/index.d.ts +2 -149
  29. package/dist/index.mjs +328 -789
  30. package/dist/index.mjs.map +1 -1
  31. package/dist/{post-B0L3Oaoy.d.mts → post-CY04DycR.d.mts} +3 -90
  32. package/dist/{post-D4h3XD7G.d.ts → post-DIezKPg1.d.ts} +3 -90
  33. package/dist/types/index.cjs +2 -32
  34. package/dist/types/index.cjs.map +1 -1
  35. package/dist/types/index.d.mts +2 -2
  36. package/dist/types/index.d.ts +2 -2
  37. package/dist/types/index.mjs +3 -9
  38. package/package.json +1 -1
  39. package/dist/chunk-B5HXAEH4.mjs.map +0 -1
  40. package/dist/chunk-JRDILNPH.mjs.map +0 -1
  41. package/dist/chunk-UCRSD3WR.mjs.map +0 -1
@@ -50,7 +50,6 @@ __export(hooks_exports, {
50
50
  useRegisterForm: () => useRegisterForm,
51
51
  useRequestPasswordResetForm: () => useRequestPasswordResetForm,
52
52
  useResetPasswordForm: () => useResetPasswordForm,
53
- useTesterForm: () => useTesterForm,
54
53
  useUserForm: () => useUserForm,
55
54
  useValidateVerificationTokenForm: () => useValidateVerificationTokenForm,
56
55
  useVendorForm: () => useVendorForm,
@@ -222,12 +221,6 @@ var EnumPartnerType = /* @__PURE__ */ ((EnumPartnerType3) => {
222
221
  EnumPartnerType3["SUPPORTING_PARTNER"] = "Supporting_Partner";
223
222
  return EnumPartnerType3;
224
223
  })(EnumPartnerType || {});
225
- var EnumOSPlatform = /* @__PURE__ */ ((EnumOSPlatform2) => {
226
- EnumOSPlatform2["ANDROID"] = "android";
227
- EnumOSPlatform2["IOS"] = "ios";
228
- EnumOSPlatform2["WEB"] = "web";
229
- return EnumOSPlatform2;
230
- })(EnumOSPlatform || {});
231
224
  var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
232
225
  EnumRegions2["All"] = "All Regions";
233
226
  EnumRegions2["Auckland"] = "Auckland";
@@ -816,128 +809,8 @@ var validateVerificationTokenSchema = yup5.object().shape({
816
809
  verificationToken: yup5.string().required("Verification code is required").matches(/^\d{6}$/, "Verification code must be exactly 6 digits")
817
810
  });
818
811
 
819
- // src/yupSchema/tester.ts
820
- var yup6 = __toESM(require("yup"));
821
-
822
- // src/types/tester.ts
823
- var OrganizedMarketCount = /* @__PURE__ */ ((OrganizedMarketCount2) => {
824
- OrganizedMarketCount2["ONE"] = "One";
825
- OrganizedMarketCount2["TWO_TO_THREE"] = "Two_to_Three";
826
- OrganizedMarketCount2["FOUR_TO_FIVE"] = "Four_to_Five";
827
- OrganizedMarketCount2["MORE_THAN_FIVE"] = "More_than_Five";
828
- return OrganizedMarketCount2;
829
- })(OrganizedMarketCount || {});
830
- var VendorSellingFrequency = /* @__PURE__ */ ((VendorSellingFrequency2) => {
831
- VendorSellingFrequency2["TWICE_A_WEEK"] = "Two_to_Three_times_a_week";
832
- VendorSellingFrequency2["ONCE_A_WEEK"] = "Once_a_week";
833
- VendorSellingFrequency2["ONE_TO_TWO_TIMES_A_MONTH"] = "One_to_Two_times_a_month";
834
- VendorSellingFrequency2["LESS_OFTEN"] = "Less_often";
835
- return VendorSellingFrequency2;
836
- })(VendorSellingFrequency || {});
837
- var OrganizerMarketFrequency = /* @__PURE__ */ ((OrganizerMarketFrequency2) => {
838
- OrganizerMarketFrequency2["WEEKLY"] = "Weekly";
839
- OrganizerMarketFrequency2["FORTNIGHTLY"] = "Fortnightly";
840
- OrganizerMarketFrequency2["MONTHLY"] = "Monthly";
841
- OrganizerMarketFrequency2["SEASONAL"] = "Seasonal";
842
- return OrganizerMarketFrequency2;
843
- })(OrganizerMarketFrequency || {});
844
-
845
- // src/yupSchema/tester.ts
846
- var testerVendorSchema = yup6.object().shape({
847
- categories: categorySchema.min(1, "Category list must contain at least one item").required("Categories are required"),
848
- marketsAttended: yup6.array().of(
849
- yup6.object().shape({
850
- city: yup6.string().trim().required("City is required"),
851
- name: yup6.string().trim().required("Market name is required")
852
- })
853
- ).min(1, "At least one market must be provided").required("Markets attended are required"),
854
- productsOrServices: yup6.string().trim().required("Products or services description is required"),
855
- questionary: yup6.object().shape({
856
- appearInVideoIntroduction: yup6.boolean().optional(),
857
- applyToAtLeastOneMarket: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
858
- completeFeedbackQuestionnaire: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
859
- excitementAboutApp: yup6.string().trim().optional(),
860
- sendPhotoForSocialMedia: yup6.boolean().optional(),
861
- socialMediaFeatureReason: yup6.string().trim().optional(),
862
- testingPeriodConcerns: yup6.string().trim().optional(),
863
- tryVisitorFeatures: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
864
- uploadStallProfileFirstWeek: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
865
- usefulnessExpectations: yup6.string().trim().optional()
866
- }).required("Questionary is required"),
867
- sellingFrequency: yup6.mixed().oneOf(
868
- Object.values(VendorSellingFrequency),
869
- "Please select a valid selling frequency"
870
- ).required("Required field"),
871
- yearlySellingApprox: yup6.number().nonNullable().transform(
872
- (value, originalValue) => originalValue === "" ? void 0 : value
873
- ).label("Yearly Selling Approx").min(1, "Yearly selling approximate must be at least 1").integer("Yearly selling approximate must be a whole number").required("Yearly selling approximate is required").test("no-leading-zeros", "", noLeadingZeros("Yearly selling approximate"))
874
- });
875
- var testerEventSchema = yup6.object().shape({
876
- markets: yup6.array().of(
877
- yup6.object().shape({
878
- averageStallCount: yup6.number().nonNullable().transform(
879
- (value, originalValue) => originalValue === "" ? void 0 : value
880
- ).label("Average Stall Count").min(1, "Average stall count must be at least 1").integer("Average stall count must be a whole number").required("Average stall count is required").test("no-leading-zeros", "", noLeadingZeros("Average stall count")),
881
- cityOrVenue: yup6.string().trim().required("City or venue is required"),
882
- frequency: yup6.mixed().oneOf(
883
- Object.values(OrganizerMarketFrequency),
884
- "Please select a valid frequency"
885
- ).required("Frequency is required"),
886
- name: yup6.string().trim().required("Market name is required")
887
- })
888
- ).min(1, "At least one market must be provided").required("Markets are required"),
889
- organizedMarketCount: yup6.mixed().oneOf(
890
- Object.values(OrganizedMarketCount),
891
- "Please select a valid market count"
892
- ).required("Organized market count is required"),
893
- questionary: yup6.object().shape({
894
- allowMarketingAppearance: yup6.boolean().optional(),
895
- completeFinalQuestionnaire: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
896
- completeMarketProfileFirstWeek: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
897
- dailyCoordinationNeeds: yup6.string().trim().optional(),
898
- interestedInCharityInitiative: yup6.boolean().optional(),
899
- inviteStallholders: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
900
- manageApplicationsAndCommunication: yup6.boolean().required("This field is required").oneOf([true], "This field is required"),
901
- organizerExpectations: yup6.string().trim().optional(),
902
- spaceForClueMart: yup6.boolean().optional(),
903
- uploadStallList: yup6.boolean().required("This field is required").oneOf([true], "This field is required")
904
- }).required("Questionary is required")
905
- });
906
- var testerSchema = yup6.object().shape({
907
- businessName: yup6.string().required("Business name is required"),
908
- consents: yup6.object().shape({
909
- betaTestConsent: yup6.boolean().oneOf([true], "You must consent to beta testing").required("Beta test consent is required"),
910
- privacyConsent: yup6.boolean().oneOf([true], "You must accept the Privacy Policy").required("Privacy consent is required")
911
- }),
912
- email: emailRequiredSchema,
913
- event: yup6.object().when("resourceType", {
914
- is: (resourceType) => resourceType === "event" /* EVENT */,
915
- otherwise: (schema) => schema.nullable().optional(),
916
- then: (schema) => schema.required("Event information is required").shape(testerEventSchema.fields)
917
- }),
918
- firstName: yup6.string().required("First name is required"),
919
- lastName: yup6.string().required("Last name is required"),
920
- mobilePhone: yup6.string().label("Mobile Phone").required("Mobile phone is required").test(
921
- "mobile-phone",
922
- "Mobile must start with 02 and be 9\u201311 digits",
923
- (value) => !value || mobileRegex.test(value)
924
- // skip empty values
925
- ),
926
- osType: yup6.mixed().oneOf(Object.values(EnumOSPlatform), "Please select Android or iOS").required("OS Type is required"),
927
- region: yup6.string().required("Region is required"),
928
- resourceType: yup6.mixed().oneOf(
929
- Object.values(EnumResourceType),
930
- "Please select Event or Stallholder"
931
- ).required("Resource Type is required"),
932
- vendor: yup6.object().when("resourceType", {
933
- is: (resourceType) => resourceType === "vendor" /* VENDOR */,
934
- otherwise: (schema) => schema.nullable().optional(),
935
- then: (schema) => schema.required("Vendor information is required").shape(testerVendorSchema.fields)
936
- })
937
- });
938
-
939
812
  // src/yupSchema/ad.ts
940
- var yup7 = __toESM(require("yup"));
813
+ var yup6 = __toESM(require("yup"));
941
814
 
942
815
  // src/types/ad.ts
943
816
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -965,12 +838,12 @@ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
965
838
  })(EnumAdStyle || {});
966
839
 
967
840
  // src/yupSchema/ad.ts
968
- var adSchema = yup7.object().shape({
969
- active: yup7.boolean().required("Active status is required"),
970
- adStyle: yup7.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
971
- adType: yup7.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
972
- clui: yup7.string().nullable().notRequired(),
973
- end: yup7.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
841
+ var adSchema = yup6.object().shape({
842
+ active: yup6.boolean().required("Active status is required"),
843
+ adStyle: yup6.mixed().oneOf(Object.values(EnumAdStyle), "Please select a valid ad style").required("Ad style is required"),
844
+ adType: yup6.mixed().oneOf(Object.values(EnumAdType), "Please select a valid ad type").required("Ad type is required"),
845
+ clui: yup6.string().nullable().notRequired(),
846
+ end: yup6.date().required("End date is required").test("is-future-date", "End date must be in the future", (value) => {
974
847
  if (!value) return false;
975
848
  const endDate = new Date(value);
976
849
  const now = /* @__PURE__ */ new Date();
@@ -987,40 +860,40 @@ var adSchema = yup7.object().shape({
987
860
  }
988
861
  )
989
862
  }),
990
- resourceCover: yup7.string().url("Resource cover must be a valid URL").required("Resource cover is required"),
991
- resourceDescription: yup7.string().required("Resource description is required"),
992
- resourceId: yup7.string().required("Resource ID is required"),
993
- resourceLogo: yup7.string().url("Resource logo must be a valid URL").nullable().notRequired(),
994
- resourceName: yup7.string().required("Resource name is required"),
995
- resourceRegion: yup7.string().required("Resource region is required"),
996
- resourceType: yup7.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required"),
997
- showOn: yup7.mixed().oneOf(
863
+ resourceCover: yup6.string().url("Resource cover must be a valid URL").required("Resource cover is required"),
864
+ resourceDescription: yup6.string().required("Resource description is required"),
865
+ resourceId: yup6.string().required("Resource ID is required"),
866
+ resourceLogo: yup6.string().url("Resource logo must be a valid URL").nullable().notRequired(),
867
+ resourceName: yup6.string().required("Resource name is required"),
868
+ resourceRegion: yup6.string().required("Resource region is required"),
869
+ resourceType: yup6.mixed().oneOf(Object.values(EnumResourceType), "Please select Event or Vendor").required("Resource Type is required"),
870
+ showOn: yup6.mixed().oneOf(
998
871
  Object.values(EnumAdShowOn),
999
872
  "Please select a valid display location"
1000
873
  ).required("Display location is required"),
1001
- socialMedia: yup7.array().of(socialMediaSchema).nullable().optional(),
1002
- status: yup7.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
1003
- start: yup7.date().when("status", {
874
+ socialMedia: yup6.array().of(socialMediaSchema).nullable().optional(),
875
+ status: yup6.mixed().oneOf(Object.values(EnumAdStatus)).required("Ad status is required"),
876
+ start: yup6.date().when("status", {
1004
877
  is: (status) => status !== "Active" /* ACTIVE */,
1005
- then: () => yup7.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
878
+ then: () => yup6.date().required("Start date is required").test("is-future-date", "Start date must be in the future", (value) => {
1006
879
  if (!value) return false;
1007
880
  return value > /* @__PURE__ */ new Date();
1008
881
  }),
1009
- otherwise: () => yup7.date().nullable().notRequired()
882
+ otherwise: () => yup6.date().nullable().notRequired()
1010
883
  }),
1011
- targetRegion: yup7.string().nullable().notRequired()
884
+ targetRegion: yup6.string().nullable().notRequired()
1012
885
  });
1013
886
 
1014
887
  // src/yupSchema/partner.ts
1015
- var yup8 = __toESM(require("yup"));
888
+ var yup7 = __toESM(require("yup"));
1016
889
  var partnerSchema = globalResourceSchema.shape({
1017
890
  location: locationSchema,
1018
- nzbn: yup8.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
1019
- partnerType: yup8.mixed().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
891
+ nzbn: yup7.string().required("NZBN is required").matches(nzbnRegex, "NZBN must be 13 digits and start with 94"),
892
+ partnerType: yup7.mixed().oneOf(Object.values(EnumPartnerType), "Please select a valid Partner type").required("Please select a Partner type")
1020
893
  });
1021
894
 
1022
895
  // src/yupSchema/post.ts
1023
- var yup9 = __toESM(require("yup"));
896
+ var yup8 = __toESM(require("yup"));
1024
897
 
1025
898
  // src/formFields/vendor/vendorInfo.ts
1026
899
  var packagingTypes = [
@@ -2258,38 +2131,6 @@ var socialMediaFields = socialMedia.map((link) => ({
2258
2131
  placeholder: link.placeholder
2259
2132
  }));
2260
2133
 
2261
- // src/formFields/testers.ts
2262
- var testersFields = [
2263
- {
2264
- helperText: "Enter your business name *",
2265
- keyboardType: "default",
2266
- name: "businessName",
2267
- placeholder: "Business Name *"
2268
- },
2269
- {
2270
- helperText: "Enter first name *",
2271
- keyboardType: "default",
2272
- name: "firstName",
2273
- placeholder: "First Name *"
2274
- },
2275
- {
2276
- helperText: "Enter last name *",
2277
- keyboardType: "default",
2278
- name: "lastName",
2279
- placeholder: "Last Name *"
2280
- },
2281
- {
2282
- ...emailField,
2283
- helperText: "Enter email address *"
2284
- },
2285
- {
2286
- helperText: "Enter your mobile phone number *",
2287
- keyboardType: "phone-pad",
2288
- name: "mobilePhone",
2289
- placeholder: "Mobile Phone Number *"
2290
- }
2291
- ];
2292
-
2293
2134
  // src/formFields/contactUs.ts
2294
2135
  var contactUsFields = [
2295
2136
  {
@@ -2318,7 +2159,7 @@ var contactUsFields = [
2318
2159
  ];
2319
2160
 
2320
2161
  // src/graphql/hooks/admin/hooksMutation.ts
2321
- var import_client6 = require("@apollo/client");
2162
+ var import_client5 = require("@apollo/client");
2322
2163
 
2323
2164
  // src/graphql/mutations/admin.ts
2324
2165
  var import_client = require("@apollo/client");
@@ -2331,19 +2172,6 @@ var ADMIN_UPDATE_RESOURCE_TYPE_MUTATION = import_client.gql`
2331
2172
  }
2332
2173
  }
2333
2174
  `;
2334
- var ADMIN_UPDATE_TESTER_MUTATION = import_client.gql`
2335
- mutation adminUpdateTester($input: AdminUpdateTesterInputType!) {
2336
- adminUpdateTester(input: $input) {
2337
- _id
2338
- approved
2339
- }
2340
- }
2341
- `;
2342
- var ADMIN_RESEND_TESTER_VERIFICATION_EMAIL_MUTATION = import_client.gql`
2343
- mutation adminResendTesterVerificationEmail($testerId: ID!) {
2344
- adminResendTesterVerificationEmail(testerId: $testerId)
2345
- }
2346
- `;
2347
2175
  var ADMIN_RESEND_USER_VERIFICATION_EMAIL_MUTATION = import_client.gql`
2348
2176
  mutation adminResendUserVerificationEmail($userId: ID!) {
2349
2177
  adminResendUserVerificationEmail(userId: $userId)
@@ -2780,107 +2608,9 @@ var GET_EVENT_INFO = import_client3.gql`
2780
2608
  ${EVENT_INFO}
2781
2609
  `;
2782
2610
 
2783
- // src/graphql/queries/tester.ts
2784
- var import_client4 = require("@apollo/client");
2785
- var TESTER_VENDOR_FIELDS_FRAGMENT = import_client4.gql`
2786
- fragment TesterVendorFields on TesterVendorType {
2787
- categories {
2788
- ...CategoryFields
2789
- }
2790
- productsOrServices
2791
- marketsAttended {
2792
- name
2793
- city
2794
- }
2795
- sellingFrequency
2796
- yearlySellingApprox
2797
- questionary {
2798
- uploadStallProfileFirstWeek
2799
- applyToAtLeastOneMarket
2800
- tryVisitorFeatures
2801
- completeFeedbackQuestionnaire
2802
- sendPhotoForSocialMedia
2803
- appearInVideoIntroduction
2804
- socialMediaFeatureReason
2805
- excitementAboutApp
2806
- usefulnessExpectations
2807
- testingPeriodConcerns
2808
- }
2809
- }
2810
- ${CATEGORY_FIELDS_FRAGMENT}
2811
- `;
2812
- var TESTER_EVENT_FIELDS_FRAGMENT = import_client4.gql`
2813
- fragment TesterEventFields on TesterEventType {
2814
- organizedMarketCount
2815
- markets {
2816
- name
2817
- cityOrVenue
2818
- frequency
2819
- averageStallCount
2820
- }
2821
- questionary {
2822
- allowMarketingAppearance
2823
- completeFinalQuestionnaire
2824
- dailyCoordinationNeeds
2825
- interestedInCharityInitiative
2826
- inviteStallholders
2827
- manageApplicationsAndCommunication
2828
- organizerExpectations
2829
- completeMarketProfileFirstWeek
2830
- spaceForClueMart
2831
- uploadStallList
2832
- }
2833
- }
2834
- `;
2835
- var TESTER_FIELDS_FRAGMENT = import_client4.gql`
2836
- fragment TesterFields on TesterType {
2837
- _id
2838
- active
2839
- approved
2840
- businessName
2841
- consents {
2842
- betaTestConsent
2843
- privacyConsent
2844
- }
2845
- createdAt
2846
- email
2847
- firstName
2848
- lastName
2849
- mobilePhone
2850
- osType
2851
- region
2852
- resourceType
2853
- updatedAt
2854
- vendor {
2855
- ...TesterVendorFields
2856
- }
2857
- event {
2858
- ...TesterEventFields
2859
- }
2860
- }
2861
- ${TESTER_VENDOR_FIELDS_FRAGMENT}
2862
- ${TESTER_EVENT_FIELDS_FRAGMENT}
2863
- `;
2864
- var GET_TESTERS = import_client4.gql`
2865
- query getTesters {
2866
- testers {
2867
- ...TesterFields
2868
- }
2869
- }
2870
- ${TESTER_FIELDS_FRAGMENT}
2871
- `;
2872
- var GET_TESTER = import_client4.gql`
2873
- query getTester($_id: ID!) {
2874
- tester(_id: $_id) {
2875
- ...TesterFields
2876
- }
2877
- }
2878
- ${TESTER_FIELDS_FRAGMENT}
2879
- `;
2880
-
2881
2611
  // src/graphql/queries/vendor.ts
2882
- var import_client5 = require("@apollo/client");
2883
- var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
2612
+ var import_client4 = require("@apollo/client");
2613
+ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client4.gql`
2884
2614
  fragment VendorDateTimeFields on VendorDateTimeType {
2885
2615
  dateStatus
2886
2616
  endDate
@@ -2889,7 +2619,7 @@ var VENDOR_DATETIME_FIELDS_FRAGMENT = import_client5.gql`
2889
2619
  startTime
2890
2620
  }
2891
2621
  `;
2892
- var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
2622
+ var VENDOR_MENU_FIELDS_FRAGMENT = import_client4.gql`
2893
2623
  fragment VendorMenuFields on VendorMenuType {
2894
2624
  description
2895
2625
  name
@@ -2897,7 +2627,7 @@ var VENDOR_MENU_FIELDS_FRAGMENT = import_client5.gql`
2897
2627
  productGroups
2898
2628
  }
2899
2629
  `;
2900
- var VENDOR = import_client5.gql`
2630
+ var VENDOR = import_client4.gql`
2901
2631
  fragment VendorFields on VendorType {
2902
2632
  _id
2903
2633
  active
@@ -2982,13 +2712,13 @@ var VENDOR = import_client5.gql`
2982
2712
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2983
2713
  ${RELATION_DATES_FRAGMENT}
2984
2714
  `;
2985
- var VENDOR_ATTRIBUTES_FRAGMENT = import_client5.gql`
2715
+ var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
2986
2716
  fragment VendorAttributesFields on VendorAttributesType {
2987
2717
  details
2988
2718
  isRequired
2989
2719
  }
2990
2720
  `;
2991
- var VENDOR_INFO = import_client5.gql`
2721
+ var VENDOR_INFO = import_client4.gql`
2992
2722
  fragment VendorInfoFields on VendorInfoType {
2993
2723
  _id
2994
2724
  compliance {
@@ -3029,7 +2759,7 @@ var VENDOR_INFO = import_client5.gql`
3029
2759
  ${VENDOR_ATTRIBUTES_FRAGMENT}
3030
2760
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3031
2761
  `;
3032
- var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client5.gql`
2762
+ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client4.gql`
3033
2763
  fragment UnregisteredVendorInvitationFields on UnregisteredVendorInvitationType {
3034
2764
  dateTime {
3035
2765
  ...EventDateTimeFields
@@ -3042,7 +2772,7 @@ var UNREGISTERED_VENDOR_INVITATION_FRAGMENT = import_client5.gql`
3042
2772
  ${EVENT_DATETIME_FIELDS_FRAGMENT}
3043
2773
  ${LOCATION_FIELDS_FRAGMENT}
3044
2774
  `;
3045
- var UNREGISTERED_VENDOR = import_client5.gql`
2775
+ var UNREGISTERED_VENDOR = import_client4.gql`
3046
2776
  fragment UnregisteredVendorFields on UnregisteredVendorType {
3047
2777
  _id
3048
2778
  categories {
@@ -3061,7 +2791,7 @@ var UNREGISTERED_VENDOR = import_client5.gql`
3061
2791
  ${CATEGORY_FIELDS_FRAGMENT}
3062
2792
  ${UNREGISTERED_VENDOR_INVITATION_FRAGMENT}
3063
2793
  `;
3064
- var GET_VENDORS = import_client5.gql`
2794
+ var GET_VENDORS = import_client4.gql`
3065
2795
  query getVendors {
3066
2796
  vendors {
3067
2797
  ...VendorFields
@@ -3069,7 +2799,7 @@ var GET_VENDORS = import_client5.gql`
3069
2799
  }
3070
2800
  ${VENDOR}
3071
2801
  `;
3072
- var GET_VENDOR = import_client5.gql`
2802
+ var GET_VENDOR = import_client4.gql`
3073
2803
  query getVendor($_id: ID!) {
3074
2804
  vendor(_id: $_id) {
3075
2805
  ...VendorFields
@@ -3077,7 +2807,7 @@ var GET_VENDOR = import_client5.gql`
3077
2807
  }
3078
2808
  ${VENDOR}
3079
2809
  `;
3080
- var GET_VENDORS_BY_REGION = import_client5.gql`
2810
+ var GET_VENDORS_BY_REGION = import_client4.gql`
3081
2811
  query getVendorsByRegion($region: String!) {
3082
2812
  vendorsByRegion(region: $region) {
3083
2813
  ...VendorFields
@@ -3085,7 +2815,7 @@ var GET_VENDORS_BY_REGION = import_client5.gql`
3085
2815
  }
3086
2816
  ${VENDOR}
3087
2817
  `;
3088
- var SEARCH_VENDORS = import_client5.gql`
2818
+ var SEARCH_VENDORS = import_client4.gql`
3089
2819
  query searchVendors($search: String!, $region: String) {
3090
2820
  vendorSearch(search: $search, region: $region) {
3091
2821
  ...VendorFields
@@ -3093,7 +2823,7 @@ var SEARCH_VENDORS = import_client5.gql`
3093
2823
  }
3094
2824
  ${VENDOR}
3095
2825
  `;
3096
- var GET_VENDOR_INFO = import_client5.gql`
2826
+ var GET_VENDOR_INFO = import_client4.gql`
3097
2827
  query getVendorInfo($vendorId: ID!) {
3098
2828
  vendorInfo(vendorId: $vendorId) {
3099
2829
  ...VendorInfoFields
@@ -3101,7 +2831,7 @@ var GET_VENDOR_INFO = import_client5.gql`
3101
2831
  }
3102
2832
  ${VENDOR_INFO}
3103
2833
  `;
3104
- var GET_UNREGISTERED_VENDORS = import_client5.gql`
2834
+ var GET_UNREGISTERED_VENDORS = import_client4.gql`
3105
2835
  query getUnregisteredVendors {
3106
2836
  unregisteredVendors {
3107
2837
  ...UnregisteredVendorFields
@@ -3109,7 +2839,7 @@ var GET_UNREGISTERED_VENDORS = import_client5.gql`
3109
2839
  }
3110
2840
  ${UNREGISTERED_VENDOR}
3111
2841
  `;
3112
- var GET_UNREGISTERED_VENDOR = import_client5.gql`
2842
+ var GET_UNREGISTERED_VENDOR = import_client4.gql`
3113
2843
  query getUnregisteredVendor($_id: ID!) {
3114
2844
  unregisteredVendor(_id: $_id) {
3115
2845
  ...UnregisteredVendorFields
@@ -3119,11 +2849,11 @@ var GET_UNREGISTERED_VENDOR = import_client5.gql`
3119
2849
  `;
3120
2850
 
3121
2851
  // src/graphql/hooks/auth.ts
3122
- var import_client8 = require("@apollo/client");
2852
+ var import_client7 = require("@apollo/client");
3123
2853
 
3124
2854
  // src/graphql/mutations/auth.ts
3125
- var import_client7 = require("@apollo/client");
3126
- var REGISTER_MUTATION = import_client7.gql`
2855
+ var import_client6 = require("@apollo/client");
2856
+ var REGISTER_MUTATION = import_client6.gql`
3127
2857
  mutation register($input: RegisterInputType!) {
3128
2858
  register(input: $input) {
3129
2859
  message
@@ -3136,7 +2866,7 @@ var REGISTER_MUTATION = import_client7.gql`
3136
2866
  }
3137
2867
  ${USER_FIELDS_FRAGMENT}
3138
2868
  `;
3139
- var LOGIN_MUTATION = import_client7.gql`
2869
+ var LOGIN_MUTATION = import_client6.gql`
3140
2870
  mutation login($input: LoginInputType!) {
3141
2871
  login(input: $input) {
3142
2872
  message
@@ -3149,14 +2879,14 @@ var LOGIN_MUTATION = import_client7.gql`
3149
2879
  }
3150
2880
  ${USER_FIELDS_FRAGMENT}
3151
2881
  `;
3152
- var LOGOUT_MUTATION = import_client7.gql`
2882
+ var LOGOUT_MUTATION = import_client6.gql`
3153
2883
  mutation logout {
3154
2884
  logout {
3155
2885
  message
3156
2886
  }
3157
2887
  }
3158
2888
  `;
3159
- var REFRESH_TOKEN_MUTATION = import_client7.gql`
2889
+ var REFRESH_TOKEN_MUTATION = import_client6.gql`
3160
2890
  mutation refreshToken($input: RefreshTokenInputType!) {
3161
2891
  refreshToken(input: $input) {
3162
2892
  refreshToken
@@ -3164,21 +2894,21 @@ var REFRESH_TOKEN_MUTATION = import_client7.gql`
3164
2894
  }
3165
2895
  }
3166
2896
  `;
3167
- var RESET_PASSWORD_MUTATION = import_client7.gql`
2897
+ var RESET_PASSWORD_MUTATION = import_client6.gql`
3168
2898
  mutation resetPassword($input: ResetPasswordInputType!) {
3169
2899
  resetPassword(input: $input) {
3170
2900
  message
3171
2901
  }
3172
2902
  }
3173
2903
  `;
3174
- var REQUEST_PASSWORD_RESET_MUTATION = import_client7.gql`
2904
+ var REQUEST_PASSWORD_RESET_MUTATION = import_client6.gql`
3175
2905
  mutation requestPasswordReset($input: RequestPasswordResetInputType!) {
3176
2906
  requestPasswordReset(input: $input) {
3177
2907
  message
3178
2908
  }
3179
2909
  }
3180
2910
  `;
3181
- var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
2911
+ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client6.gql`
3182
2912
  mutation validateVerificationToken(
3183
2913
  $input: ValidateVerificationTokenInputType!
3184
2914
  ) {
@@ -3189,14 +2919,14 @@ var VALIDATE_VERIFICATION_TOKEN_MUTATION = import_client7.gql`
3189
2919
  `;
3190
2920
 
3191
2921
  // src/graphql/hooks/chat/hooksMutation.ts
3192
- var import_client11 = require("@apollo/client");
2922
+ var import_client10 = require("@apollo/client");
3193
2923
 
3194
2924
  // src/graphql/mutations/chat.ts
3195
- var import_client10 = require("@apollo/client");
2925
+ var import_client9 = require("@apollo/client");
3196
2926
 
3197
2927
  // src/graphql/queries/chat.ts
3198
- var import_client9 = require("@apollo/client");
3199
- var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
2928
+ var import_client8 = require("@apollo/client");
2929
+ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client8.gql`
3200
2930
  fragment ChatMessageFields on ChatMessageType {
3201
2931
  _id
3202
2932
  content
@@ -3219,7 +2949,7 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client9.gql`
3219
2949
  updatedAt
3220
2950
  }
3221
2951
  `;
3222
- var CHAT_PARTICIPANT = import_client9.gql`
2952
+ var CHAT_PARTICIPANT = import_client8.gql`
3223
2953
  fragment ChatParticipantFields on ChatParticipantType {
3224
2954
  active
3225
2955
  userAvatar
@@ -3228,7 +2958,7 @@ var CHAT_PARTICIPANT = import_client9.gql`
3228
2958
  userName
3229
2959
  }
3230
2960
  `;
3231
- var CHAT_FIELDS_FRAGMENT = import_client9.gql`
2961
+ var CHAT_FIELDS_FRAGMENT = import_client8.gql`
3232
2962
  fragment ChatFields on ChatType {
3233
2963
  _id
3234
2964
  active
@@ -3249,7 +2979,7 @@ var CHAT_FIELDS_FRAGMENT = import_client9.gql`
3249
2979
  ${CHAT_MESSAGE_FIELDS_FRAGMENT}
3250
2980
  ${CHAT_PARTICIPANT}
3251
2981
  `;
3252
- var CHAT = import_client9.gql`
2982
+ var CHAT = import_client8.gql`
3253
2983
  query chat($_id: ID!) {
3254
2984
  chat(_id: $_id) {
3255
2985
  ...ChatFields
@@ -3257,7 +2987,7 @@ var CHAT = import_client9.gql`
3257
2987
  }
3258
2988
  ${CHAT_FIELDS_FRAGMENT}
3259
2989
  `;
3260
- var USER_CHATS = import_client9.gql`
2990
+ var USER_CHATS = import_client8.gql`
3261
2991
  query userChats {
3262
2992
  userChats {
3263
2993
  ...ChatFields
@@ -3265,7 +2995,7 @@ var USER_CHATS = import_client9.gql`
3265
2995
  }
3266
2996
  ${CHAT_FIELDS_FRAGMENT}
3267
2997
  `;
3268
- var GET_CHATS_BY_REGION = import_client9.gql`
2998
+ var GET_CHATS_BY_REGION = import_client8.gql`
3269
2999
  query getChatsByRegion($region: String!) {
3270
3000
  chatsByRegion(region: $region) {
3271
3001
  ...ChatFields
@@ -3273,7 +3003,7 @@ var GET_CHATS_BY_REGION = import_client9.gql`
3273
3003
  }
3274
3004
  ${CHAT_FIELDS_FRAGMENT}
3275
3005
  `;
3276
- var CHAT_REPORT_FIELDS_FRAGMENT = import_client9.gql`
3006
+ var CHAT_REPORT_FIELDS_FRAGMENT = import_client8.gql`
3277
3007
  fragment ChatReportFields on ReportChatUserType {
3278
3008
  _id
3279
3009
  chatId
@@ -3288,7 +3018,7 @@ var CHAT_REPORT_FIELDS_FRAGMENT = import_client9.gql`
3288
3018
  updatedAt
3289
3019
  }
3290
3020
  `;
3291
- var GET_REPORTED_CHAT_USERS = import_client9.gql`
3021
+ var GET_REPORTED_CHAT_USERS = import_client8.gql`
3292
3022
  query getReportedChatUsers {
3293
3023
  reportedChatUsers {
3294
3024
  ...ChatReportFields
@@ -3298,7 +3028,7 @@ var GET_REPORTED_CHAT_USERS = import_client9.gql`
3298
3028
  `;
3299
3029
 
3300
3030
  // src/graphql/mutations/chat.ts
3301
- var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
3031
+ var SEND_CHAT_MESSAGE_MUTATION = import_client9.gql`
3302
3032
  mutation sendChatMessage($_id: ID!, $input: ChatMessageInputType!) {
3303
3033
  sendChatMessage(_id: $_id, input: $input) {
3304
3034
  ...ChatFields
@@ -3306,12 +3036,12 @@ var SEND_CHAT_MESSAGE_MUTATION = import_client10.gql`
3306
3036
  }
3307
3037
  ${CHAT_FIELDS_FRAGMENT}
3308
3038
  `;
3309
- var DELETE_CHAT_MUTATION = import_client10.gql`
3039
+ var DELETE_CHAT_MUTATION = import_client9.gql`
3310
3040
  mutation deleteChat($_id: ID!) {
3311
3041
  deleteChat(_id: $_id)
3312
3042
  }
3313
3043
  `;
3314
- var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
3044
+ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client9.gql`
3315
3045
  mutation addParticipantToChat($chatId: ID!, $userId: ID!) {
3316
3046
  addParticipantToChat(chatId: $chatId, userId: $userId) {
3317
3047
  ...ChatFields
@@ -3319,7 +3049,7 @@ var ADD_PARTICIPANT_TO_CHAT_MUTATION = import_client10.gql`
3319
3049
  }
3320
3050
  ${CHAT_FIELDS_FRAGMENT}
3321
3051
  `;
3322
- var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
3052
+ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client9.gql`
3323
3053
  mutation removeParticipantFromChat($chatId: ID!, $userId: ID!) {
3324
3054
  removeParticipantFromChat(chatId: $chatId, userId: $userId) {
3325
3055
  success
@@ -3327,7 +3057,7 @@ var REMOVE_PARTICIPANT_FROM_CHAT_MUTATION = import_client10.gql`
3327
3057
  }
3328
3058
  }
3329
3059
  `;
3330
- var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client10.gql`
3060
+ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client9.gql`
3331
3061
  mutation toggleChatMessageLike($chatId: ID!, $messageId: ID!) {
3332
3062
  toggleChatMessageLike(chatId: $chatId, messageId: $messageId) {
3333
3063
  ...ChatFields
@@ -3335,7 +3065,7 @@ var TOGGLE_CHAT_MESSAGE_LIKE_MUTATION = import_client10.gql`
3335
3065
  }
3336
3066
  ${CHAT_FIELDS_FRAGMENT}
3337
3067
  `;
3338
- var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client10.gql`
3068
+ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client9.gql`
3339
3069
  mutation markChatMessagesSeen($chatId: ID!, $messageIds: [ID!]!) {
3340
3070
  markChatMessagesSeen(chatId: $chatId, messageIds: $messageIds) {
3341
3071
  ...ChatFields
@@ -3343,7 +3073,7 @@ var MARK_CHAT_MESSAGES_SEEN_MUTATION = import_client10.gql`
3343
3073
  }
3344
3074
  ${CHAT_FIELDS_FRAGMENT}
3345
3075
  `;
3346
- var REPORT_CHAT_USER_MUTATION = import_client10.gql`
3076
+ var REPORT_CHAT_USER_MUTATION = import_client9.gql`
3347
3077
  mutation reportChatUser($input: ReportChatUserInputType!) {
3348
3078
  reportChatUser(input: $input) {
3349
3079
  ...ChatReportFields
@@ -3353,11 +3083,11 @@ var REPORT_CHAT_USER_MUTATION = import_client10.gql`
3353
3083
  `;
3354
3084
 
3355
3085
  // src/graphql/hooks/chat/hooksQuery.ts
3356
- var import_client13 = require("@apollo/client");
3086
+ var import_client12 = require("@apollo/client");
3357
3087
 
3358
3088
  // src/graphql/subscriptions/chat.ts
3359
- var import_client12 = require("@apollo/client");
3360
- var GET_CHAT_MESSAGE = import_client12.gql`
3089
+ var import_client11 = require("@apollo/client");
3090
+ var GET_CHAT_MESSAGE = import_client11.gql`
3361
3091
  subscription {
3362
3092
  getChatMessage {
3363
3093
  ...ChatFields
@@ -3367,11 +3097,11 @@ var GET_CHAT_MESSAGE = import_client12.gql`
3367
3097
  `;
3368
3098
 
3369
3099
  // src/graphql/hooks/contactUs.ts
3370
- var import_client15 = require("@apollo/client");
3100
+ var import_client14 = require("@apollo/client");
3371
3101
 
3372
3102
  // src/graphql/mutations/contactUs.ts
3373
- var import_client14 = require("@apollo/client");
3374
- var CONTACT_US_MUTATION = import_client14.gql`
3103
+ var import_client13 = require("@apollo/client");
3104
+ var CONTACT_US_MUTATION = import_client13.gql`
3375
3105
  mutation contactUs($input: ContactUsInputType!) {
3376
3106
  contactUs(input: $input) {
3377
3107
  message
@@ -3380,11 +3110,11 @@ var CONTACT_US_MUTATION = import_client14.gql`
3380
3110
  `;
3381
3111
 
3382
3112
  // src/graphql/hooks/event/hooksMutation.ts
3383
- var import_client19 = require("@apollo/client");
3113
+ var import_client18 = require("@apollo/client");
3384
3114
 
3385
3115
  // src/graphql/mutations/event.ts
3386
- var import_client16 = require("@apollo/client");
3387
- var CREATE_EVENT_MUTATION = import_client16.gql`
3116
+ var import_client15 = require("@apollo/client");
3117
+ var CREATE_EVENT_MUTATION = import_client15.gql`
3388
3118
  mutation createEvent($input: EventInputType!) {
3389
3119
  createEvent(input: $input) {
3390
3120
  ...EventFields
@@ -3392,7 +3122,7 @@ var CREATE_EVENT_MUTATION = import_client16.gql`
3392
3122
  }
3393
3123
  ${EVENT}
3394
3124
  `;
3395
- var UPDATE_EVENT_MUTATION = import_client16.gql`
3125
+ var UPDATE_EVENT_MUTATION = import_client15.gql`
3396
3126
  mutation updateEvent($_id: ID!, $input: EventInputType!) {
3397
3127
  updateEvent(_id: $_id, input: $input) {
3398
3128
  ...EventFields
@@ -3400,12 +3130,12 @@ var UPDATE_EVENT_MUTATION = import_client16.gql`
3400
3130
  }
3401
3131
  ${EVENT}
3402
3132
  `;
3403
- var DELETE_EVENT_MUTATION = import_client16.gql`
3133
+ var DELETE_EVENT_MUTATION = import_client15.gql`
3404
3134
  mutation deleteEvent($_id: ID!) {
3405
3135
  deleteEvent(_id: $_id)
3406
3136
  }
3407
3137
  `;
3408
- var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3138
+ var CREATE_EVENT_INFO_MUTATION = import_client15.gql`
3409
3139
  mutation createEventInfo($input: EventInfoInputType!) {
3410
3140
  createEventInfo(input: $input) {
3411
3141
  ...EventInfoFields
@@ -3413,7 +3143,7 @@ var CREATE_EVENT_INFO_MUTATION = import_client16.gql`
3413
3143
  }
3414
3144
  ${EVENT_INFO}
3415
3145
  `;
3416
- var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3146
+ var UPDATE_EVENT_INFO_MUTATION = import_client15.gql`
3417
3147
  mutation updateEventInfo($_id: ID!, $input: EventInfoInputType!) {
3418
3148
  updateEventInfo(_id: $_id, input: $input) {
3419
3149
  ...EventInfoFields
@@ -3423,11 +3153,11 @@ var UPDATE_EVENT_INFO_MUTATION = import_client16.gql`
3423
3153
  `;
3424
3154
 
3425
3155
  // src/graphql/queries/user.ts
3426
- var import_client18 = require("@apollo/client");
3156
+ var import_client17 = require("@apollo/client");
3427
3157
 
3428
3158
  // src/graphql/queries/partner.ts
3429
- var import_client17 = require("@apollo/client");
3430
- var PARTNER = import_client17.gql`
3159
+ var import_client16 = require("@apollo/client");
3160
+ var PARTNER = import_client16.gql`
3431
3161
  fragment PartnerFields on PartnerType {
3432
3162
  _id
3433
3163
  active
@@ -3482,7 +3212,7 @@ var PARTNER = import_client17.gql`
3482
3212
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3483
3213
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3484
3214
  `;
3485
- var GET_PARTNERS = import_client17.gql`
3215
+ var GET_PARTNERS = import_client16.gql`
3486
3216
  query getPartners {
3487
3217
  partners {
3488
3218
  ...PartnerFields
@@ -3490,7 +3220,7 @@ var GET_PARTNERS = import_client17.gql`
3490
3220
  }
3491
3221
  ${PARTNER}
3492
3222
  `;
3493
- var GET_PARTNER = import_client17.gql`
3223
+ var GET_PARTNER = import_client16.gql`
3494
3224
  query getPartner($_id: ID!) {
3495
3225
  partner(_id: $_id) {
3496
3226
  ...PartnerFields
@@ -3498,7 +3228,7 @@ var GET_PARTNER = import_client17.gql`
3498
3228
  }
3499
3229
  ${PARTNER}
3500
3230
  `;
3501
- var GET_PARTNERS_BY_REGION = import_client17.gql`
3231
+ var GET_PARTNERS_BY_REGION = import_client16.gql`
3502
3232
  query getPartnersByRegion($region: String!) {
3503
3233
  partnersByRegion(region: $region) {
3504
3234
  ...PartnerFields
@@ -3506,7 +3236,7 @@ var GET_PARTNERS_BY_REGION = import_client17.gql`
3506
3236
  }
3507
3237
  ${PARTNER}
3508
3238
  `;
3509
- var SEARCH_PARTNERS = import_client17.gql`
3239
+ var SEARCH_PARTNERS = import_client16.gql`
3510
3240
  query searchPartners($search: String!, $region: String) {
3511
3241
  partnersSearch(search: $search, region: $region) {
3512
3242
  ...PartnerFields
@@ -3516,7 +3246,7 @@ var SEARCH_PARTNERS = import_client17.gql`
3516
3246
  `;
3517
3247
 
3518
3248
  // src/graphql/queries/user.ts
3519
- var GET_USERS = import_client18.gql`
3249
+ var GET_USERS = import_client17.gql`
3520
3250
  query getUsers {
3521
3251
  users {
3522
3252
  ...UserFields
@@ -3524,7 +3254,7 @@ var GET_USERS = import_client18.gql`
3524
3254
  }
3525
3255
  ${USER_FIELDS_FRAGMENT}
3526
3256
  `;
3527
- var GET_USER = import_client18.gql`
3257
+ var GET_USER = import_client17.gql`
3528
3258
  query getUser($_id: ID!) {
3529
3259
  user(_id: $_id) {
3530
3260
  ...UserFields
@@ -3532,7 +3262,7 @@ var GET_USER = import_client18.gql`
3532
3262
  }
3533
3263
  ${USER_FIELDS_FRAGMENT}
3534
3264
  `;
3535
- var GET_USER_EVENTS = import_client18.gql`
3265
+ var GET_USER_EVENTS = import_client17.gql`
3536
3266
  query getUserEvents {
3537
3267
  userEvents {
3538
3268
  ...EventFields
@@ -3540,7 +3270,7 @@ var GET_USER_EVENTS = import_client18.gql`
3540
3270
  }
3541
3271
  ${EVENT}
3542
3272
  `;
3543
- var GET_USER_VENDORS = import_client18.gql`
3273
+ var GET_USER_VENDORS = import_client17.gql`
3544
3274
  query getUserVendors {
3545
3275
  userVendors {
3546
3276
  ...VendorFields
@@ -3548,7 +3278,7 @@ var GET_USER_VENDORS = import_client18.gql`
3548
3278
  }
3549
3279
  ${VENDOR}
3550
3280
  `;
3551
- var GET_USER_PARTNERS = import_client18.gql`
3281
+ var GET_USER_PARTNERS = import_client17.gql`
3552
3282
  query getUserPartners {
3553
3283
  userPartners {
3554
3284
  ...PartnerFields
@@ -3556,7 +3286,7 @@ var GET_USER_PARTNERS = import_client18.gql`
3556
3286
  }
3557
3287
  ${PARTNER}
3558
3288
  `;
3559
- var GET_USER_ACTIVITIES = import_client18.gql`
3289
+ var GET_USER_ACTIVITIES = import_client17.gql`
3560
3290
  query getUserActivities {
3561
3291
  userActivities {
3562
3292
  favourites {
@@ -3589,17 +3319,17 @@ var GET_USER_ACTIVITIES = import_client18.gql`
3589
3319
  `;
3590
3320
 
3591
3321
  // src/graphql/hooks/event/hooksQuery.ts
3592
- var import_client20 = require("@apollo/client");
3322
+ var import_client19 = require("@apollo/client");
3593
3323
 
3594
3324
  // src/graphql/hooks/notifications/hooksMutation.ts
3595
- var import_client23 = require("@apollo/client");
3325
+ var import_client22 = require("@apollo/client");
3596
3326
 
3597
3327
  // src/graphql/mutations/notification.ts
3598
- var import_client22 = require("@apollo/client");
3328
+ var import_client21 = require("@apollo/client");
3599
3329
 
3600
3330
  // src/graphql/queries/notification.ts
3601
- var import_client21 = require("@apollo/client");
3602
- var NOTIFICATION_FRAGMENT = import_client21.gql`
3331
+ var import_client20 = require("@apollo/client");
3332
+ var NOTIFICATION_FRAGMENT = import_client20.gql`
3603
3333
  fragment NotificationFields on Notification {
3604
3334
  _id
3605
3335
  userId
@@ -3616,7 +3346,7 @@ var NOTIFICATION_FRAGMENT = import_client21.gql`
3616
3346
  updatedAt
3617
3347
  }
3618
3348
  `;
3619
- var GET_USER_NOTIFICATIONS = import_client21.gql`
3349
+ var GET_USER_NOTIFICATIONS = import_client20.gql`
3620
3350
  query getUserNotifications($limit: Int, $offset: Int) {
3621
3351
  userNotifications(limit: $limit, offset: $offset) {
3622
3352
  ...NotificationFields
@@ -3624,7 +3354,7 @@ var GET_USER_NOTIFICATIONS = import_client21.gql`
3624
3354
  }
3625
3355
  ${NOTIFICATION_FRAGMENT}
3626
3356
  `;
3627
- var GET_NOTIFICATION_COUNT = import_client21.gql`
3357
+ var GET_NOTIFICATION_COUNT = import_client20.gql`
3628
3358
  query getNotificationCount {
3629
3359
  notificationCount {
3630
3360
  total
@@ -3634,7 +3364,7 @@ var GET_NOTIFICATION_COUNT = import_client21.gql`
3634
3364
  `;
3635
3365
 
3636
3366
  // src/graphql/mutations/notification.ts
3637
- var CREATE_BULK_NOTIFICATIONS = import_client22.gql`
3367
+ var CREATE_BULK_NOTIFICATIONS = import_client21.gql`
3638
3368
  mutation createBulkNotifications($input: CreateBulkNotificationInput!) {
3639
3369
  createBulkNotifications(input: $input) {
3640
3370
  ...NotificationFields
@@ -3642,7 +3372,7 @@ var CREATE_BULK_NOTIFICATIONS = import_client22.gql`
3642
3372
  }
3643
3373
  ${NOTIFICATION_FRAGMENT}
3644
3374
  `;
3645
- var MARK_NOTIFICATION_READ = import_client22.gql`
3375
+ var MARK_NOTIFICATION_READ = import_client21.gql`
3646
3376
  mutation markNotificationRead($_id: ID!) {
3647
3377
  markNotificationRead(_id: $_id) {
3648
3378
  ...NotificationFields
@@ -3650,31 +3380,31 @@ var MARK_NOTIFICATION_READ = import_client22.gql`
3650
3380
  }
3651
3381
  ${NOTIFICATION_FRAGMENT}
3652
3382
  `;
3653
- var MARK_ALL_NOTIFICATIONS_READ = import_client22.gql`
3383
+ var MARK_ALL_NOTIFICATIONS_READ = import_client21.gql`
3654
3384
  mutation markAllNotificationsRead {
3655
3385
  markAllNotificationsRead
3656
3386
  }
3657
3387
  `;
3658
- var DELETE_NOTIFICATION = import_client22.gql`
3388
+ var DELETE_NOTIFICATION = import_client21.gql`
3659
3389
  mutation deleteNotification($_id: ID!) {
3660
3390
  deleteNotification(_id: $_id)
3661
3391
  }
3662
3392
  `;
3663
- var DELETE_ALL_NOTIFICATIONS = import_client22.gql`
3393
+ var DELETE_ALL_NOTIFICATIONS = import_client21.gql`
3664
3394
  mutation deleteAllNotifications {
3665
3395
  deleteAllNotifications
3666
3396
  }
3667
3397
  `;
3668
3398
 
3669
3399
  // src/graphql/hooks/notifications/hooksQuery.ts
3670
- var import_client24 = require("@apollo/client");
3400
+ var import_client23 = require("@apollo/client");
3671
3401
 
3672
3402
  // src/graphql/hooks/notifications/hooksSubscription.ts
3673
- var import_client26 = require("@apollo/client");
3403
+ var import_client25 = require("@apollo/client");
3674
3404
 
3675
3405
  // src/graphql/subscriptions/notification.ts
3676
- var import_client25 = require("@apollo/client");
3677
- var GET_NOTIFICATIONS_SUBSCRIPTION = import_client25.gql`
3406
+ var import_client24 = require("@apollo/client");
3407
+ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client24.gql`
3678
3408
  subscription {
3679
3409
  getUserNotifications {
3680
3410
  ...NotificationFields
@@ -3682,7 +3412,7 @@ var GET_NOTIFICATIONS_SUBSCRIPTION = import_client25.gql`
3682
3412
  }
3683
3413
  ${NOTIFICATION_FRAGMENT}
3684
3414
  `;
3685
- var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client25.gql`
3415
+ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client24.gql`
3686
3416
  subscription {
3687
3417
  getNotificationCount {
3688
3418
  total
@@ -3692,11 +3422,11 @@ var GET_NOTIFICATION_COUNT_SUBSCRIPTION = import_client25.gql`
3692
3422
  `;
3693
3423
 
3694
3424
  // src/graphql/hooks/poster.ts
3695
- var import_client28 = require("@apollo/client");
3425
+ var import_client27 = require("@apollo/client");
3696
3426
 
3697
3427
  // src/graphql/mutations/poster.ts
3698
- var import_client27 = require("@apollo/client");
3699
- var CREATE_POSTER_MUTATION = import_client27.gql`
3428
+ var import_client26 = require("@apollo/client");
3429
+ var CREATE_POSTER_MUTATION = import_client26.gql`
3700
3430
  mutation createPoster($input: PosterInputType!) {
3701
3431
  createPoster(input: $input) {
3702
3432
  message
@@ -3709,11 +3439,11 @@ var CREATE_POSTER_MUTATION = import_client27.gql`
3709
3439
  `;
3710
3440
 
3711
3441
  // src/graphql/hooks/pushToken.ts
3712
- var import_client30 = require("@apollo/client");
3442
+ var import_client29 = require("@apollo/client");
3713
3443
 
3714
3444
  // src/graphql/mutations/pushToken.ts
3715
- var import_client29 = require("@apollo/client");
3716
- var CREATE_PUSH_TOKEN_MUTATION = import_client29.gql`
3445
+ var import_client28 = require("@apollo/client");
3446
+ var CREATE_PUSH_TOKEN_MUTATION = import_client28.gql`
3717
3447
  mutation createPushToken($input: PushTokenInput!) {
3718
3448
  createPushToken(input: $input) {
3719
3449
  success
@@ -3722,14 +3452,14 @@ var CREATE_PUSH_TOKEN_MUTATION = import_client29.gql`
3722
3452
  `;
3723
3453
 
3724
3454
  // src/graphql/hooks/relation/hooksMutation.ts
3725
- var import_client33 = require("@apollo/client");
3455
+ var import_client32 = require("@apollo/client");
3726
3456
 
3727
3457
  // src/graphql/mutations/relation.ts
3728
- var import_client32 = require("@apollo/client");
3458
+ var import_client31 = require("@apollo/client");
3729
3459
 
3730
3460
  // src/graphql/queries/relation.ts
3731
- var import_client31 = require("@apollo/client");
3732
- var RELATION_FIELDS_FRAGMENT = import_client31.gql`
3461
+ var import_client30 = require("@apollo/client");
3462
+ var RELATION_FIELDS_FRAGMENT = import_client30.gql`
3733
3463
  fragment RelationFields on RelationType {
3734
3464
  _id
3735
3465
  active
@@ -3747,7 +3477,7 @@ var RELATION_FIELDS_FRAGMENT = import_client31.gql`
3747
3477
  }
3748
3478
  ${RELATION_DATES_FRAGMENT}
3749
3479
  `;
3750
- var GET_RELATION = import_client31.gql`
3480
+ var GET_RELATION = import_client30.gql`
3751
3481
  query getRelation($_id: ID!) {
3752
3482
  relation(_id: $_id) {
3753
3483
  ...RelationFields
@@ -3755,7 +3485,7 @@ var GET_RELATION = import_client31.gql`
3755
3485
  }
3756
3486
  ${RELATION_FIELDS_FRAGMENT}
3757
3487
  `;
3758
- var GET_RELATION_BY_EVENT_AND_VENDOR = import_client31.gql`
3488
+ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client30.gql`
3759
3489
  query getRelationByEventAndVendor($eventId: ID!, $vendorId: ID!) {
3760
3490
  relationByEventAndVendor(eventId: $eventId, vendorId: $vendorId) {
3761
3491
  ...RelationFields
@@ -3763,7 +3493,7 @@ var GET_RELATION_BY_EVENT_AND_VENDOR = import_client31.gql`
3763
3493
  }
3764
3494
  ${RELATION_FIELDS_FRAGMENT}
3765
3495
  `;
3766
- var GET_EVENT_RELATIONS = import_client31.gql`
3496
+ var GET_EVENT_RELATIONS = import_client30.gql`
3767
3497
  query getEventRelations($eventId: ID!) {
3768
3498
  eventRelations(eventId: $eventId) {
3769
3499
  ...RelationFields
@@ -3771,7 +3501,7 @@ var GET_EVENT_RELATIONS = import_client31.gql`
3771
3501
  }
3772
3502
  ${RELATION_FIELDS_FRAGMENT}
3773
3503
  `;
3774
- var GET_VENDOR_RELATIONS = import_client31.gql`
3504
+ var GET_VENDOR_RELATIONS = import_client30.gql`
3775
3505
  query getVendorRelations($vendorId: ID!) {
3776
3506
  vendorRelations(vendorId: $vendorId) {
3777
3507
  ...RelationFields
@@ -3779,7 +3509,7 @@ var GET_VENDOR_RELATIONS = import_client31.gql`
3779
3509
  }
3780
3510
  ${RELATION_FIELDS_FRAGMENT}
3781
3511
  `;
3782
- var GET_RESOURCE_CONNECTIONS = import_client31.gql`
3512
+ var GET_RESOURCE_CONNECTIONS = import_client30.gql`
3783
3513
  query getResourceConnections(
3784
3514
  $resourceId: ID!
3785
3515
  $resourceType: ResourceTypeEnum!
@@ -3798,7 +3528,7 @@ var GET_RESOURCE_CONNECTIONS = import_client31.gql`
3798
3528
  `;
3799
3529
 
3800
3530
  // src/graphql/mutations/relation.ts
3801
- var CREATE_RELATION_MUTATION = import_client32.gql`
3531
+ var CREATE_RELATION_MUTATION = import_client31.gql`
3802
3532
  mutation createRelation($input: RelationInputType!) {
3803
3533
  createRelation(input: $input) {
3804
3534
  ...RelationFields
@@ -3806,7 +3536,7 @@ var CREATE_RELATION_MUTATION = import_client32.gql`
3806
3536
  }
3807
3537
  ${RELATION_FIELDS_FRAGMENT}
3808
3538
  `;
3809
- var UPDATE_RELATION_MUTATION = import_client32.gql`
3539
+ var UPDATE_RELATION_MUTATION = import_client31.gql`
3810
3540
  mutation updateRelation($_id: ID!, $input: RelationInputType!) {
3811
3541
  updateRelation(_id: $_id, input: $input) {
3812
3542
  ...RelationFields
@@ -3814,7 +3544,7 @@ var UPDATE_RELATION_MUTATION = import_client32.gql`
3814
3544
  }
3815
3545
  ${RELATION_FIELDS_FRAGMENT}
3816
3546
  `;
3817
- var DELETE_RELATION_MUTATION = import_client32.gql`
3547
+ var DELETE_RELATION_MUTATION = import_client31.gql`
3818
3548
  mutation deleteRelation($_id: ID!) {
3819
3549
  deleteRelation(_id: $_id) {
3820
3550
  ...RelationFields
@@ -3824,14 +3554,14 @@ var DELETE_RELATION_MUTATION = import_client32.gql`
3824
3554
  `;
3825
3555
 
3826
3556
  // src/graphql/hooks/relation/hooksQuery.ts
3827
- var import_client34 = require("@apollo/client");
3557
+ var import_client33 = require("@apollo/client");
3828
3558
 
3829
3559
  // src/graphql/hooks/vendor/hooksMutation.ts
3830
- var import_client36 = require("@apollo/client");
3560
+ var import_client35 = require("@apollo/client");
3831
3561
 
3832
3562
  // src/graphql/mutations/vendor.ts
3833
- var import_client35 = require("@apollo/client");
3834
- var CREATE_VENDOR_MUTATION = import_client35.gql`
3563
+ var import_client34 = require("@apollo/client");
3564
+ var CREATE_VENDOR_MUTATION = import_client34.gql`
3835
3565
  mutation createVendor($input: VendorInputType!) {
3836
3566
  createVendor(input: $input) {
3837
3567
  ...VendorFields
@@ -3839,7 +3569,7 @@ var CREATE_VENDOR_MUTATION = import_client35.gql`
3839
3569
  }
3840
3570
  ${VENDOR}
3841
3571
  `;
3842
- var UPDATE_VENDOR_MUTATION = import_client35.gql`
3572
+ var UPDATE_VENDOR_MUTATION = import_client34.gql`
3843
3573
  mutation updateVendor($_id: ID!, $input: VendorInputType!) {
3844
3574
  updateVendor(_id: $_id, input: $input) {
3845
3575
  ...VendorFields
@@ -3847,12 +3577,12 @@ var UPDATE_VENDOR_MUTATION = import_client35.gql`
3847
3577
  }
3848
3578
  ${VENDOR}
3849
3579
  `;
3850
- var DELETE_VENDOR_MUTATION = import_client35.gql`
3580
+ var DELETE_VENDOR_MUTATION = import_client34.gql`
3851
3581
  mutation deleteVendor($_id: ID!) {
3852
3582
  deleteVendor(_id: $_id)
3853
3583
  }
3854
3584
  `;
3855
- var CREATE_VENDOR_INFO_MUTATION = import_client35.gql`
3585
+ var CREATE_VENDOR_INFO_MUTATION = import_client34.gql`
3856
3586
  mutation createVendorInfo($input: VendorInfoInputType!) {
3857
3587
  createVendorInfo(input: $input) {
3858
3588
  ...VendorInfoFields
@@ -3860,7 +3590,7 @@ var CREATE_VENDOR_INFO_MUTATION = import_client35.gql`
3860
3590
  }
3861
3591
  ${VENDOR_INFO}
3862
3592
  `;
3863
- var UPDATE_VENDOR_INFO_MUTATION = import_client35.gql`
3593
+ var UPDATE_VENDOR_INFO_MUTATION = import_client34.gql`
3864
3594
  mutation updateVendorInfo($_id: ID!, $input: VendorInfoInputType!) {
3865
3595
  updateVendorInfo(_id: $_id, input: $input) {
3866
3596
  ...VendorInfoFields
@@ -3868,7 +3598,7 @@ var UPDATE_VENDOR_INFO_MUTATION = import_client35.gql`
3868
3598
  }
3869
3599
  ${VENDOR_INFO}
3870
3600
  `;
3871
- var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
3601
+ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
3872
3602
  mutation createUnregisteredVendor($input: UnregisteredVendorInputType!) {
3873
3603
  createUnregisteredVendor(input: $input) {
3874
3604
  ...UnregisteredVendorFields
@@ -3876,7 +3606,7 @@ var CREATE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
3876
3606
  }
3877
3607
  ${UNREGISTERED_VENDOR}
3878
3608
  `;
3879
- var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
3609
+ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
3880
3610
  mutation updateUnregisteredVendor(
3881
3611
  $_id: ID!
3882
3612
  $input: UnregisteredVendorInputType!
@@ -3887,51 +3617,21 @@ var UPDATE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
3887
3617
  }
3888
3618
  ${UNREGISTERED_VENDOR}
3889
3619
  `;
3890
- var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client35.gql`
3620
+ var DELETE_UNREGISTERED_VENDOR_MUTATION = import_client34.gql`
3891
3621
  mutation deleteUnregisteredVendor($_id: ID!) {
3892
3622
  deleteUnregisteredVendor(_id: $_id)
3893
3623
  }
3894
3624
  `;
3895
3625
 
3896
3626
  // src/graphql/hooks/vendor/hooksQuery.ts
3897
- var import_client37 = require("@apollo/client");
3898
-
3899
- // src/graphql/hooks/tester/hooksMutation.ts
3900
- var import_client39 = require("@apollo/client");
3901
-
3902
- // src/graphql/mutations/tester.ts
3903
- var import_client38 = require("@apollo/client");
3904
- var CREATE_TESTER_MUTATION = import_client38.gql`
3905
- mutation createTester($input: TesterInputType!) {
3906
- createTester(input: $input) {
3907
- ...TesterFields
3908
- }
3909
- }
3910
- ${TESTER_FIELDS_FRAGMENT}
3911
- `;
3912
- var UPDATE_TESTER_MUTATION = import_client38.gql`
3913
- mutation updateTester($_id: ID!, $input: TesterInputType!) {
3914
- updateTester(_id: $_id, input: $input) {
3915
- ...TesterFields
3916
- }
3917
- }
3918
- ${TESTER_FIELDS_FRAGMENT}
3919
- `;
3920
- var DELETE_TESTER_MUTATION = import_client38.gql`
3921
- mutation deleteTester($_id: ID!) {
3922
- deleteTester(_id: $_id)
3923
- }
3924
- `;
3925
-
3926
- // src/graphql/hooks/tester/hooksQuery.ts
3927
- var import_client40 = require("@apollo/client");
3627
+ var import_client36 = require("@apollo/client");
3928
3628
 
3929
3629
  // src/graphql/hooks/user/hooksMutation.ts
3930
- var import_client42 = require("@apollo/client");
3630
+ var import_client38 = require("@apollo/client");
3931
3631
 
3932
3632
  // src/graphql/mutations/user.ts
3933
- var import_client41 = require("@apollo/client");
3934
- var CREATE_USER_MUTATION = import_client41.gql`
3633
+ var import_client37 = require("@apollo/client");
3634
+ var CREATE_USER_MUTATION = import_client37.gql`
3935
3635
  mutation createUser($input: UserInputType!) {
3936
3636
  createUser(input: $input) {
3937
3637
  ...UserFields
@@ -3939,7 +3639,7 @@ var CREATE_USER_MUTATION = import_client41.gql`
3939
3639
  }
3940
3640
  ${USER_FIELDS_FRAGMENT}
3941
3641
  `;
3942
- var UPDATE_USER_MUTATION = import_client41.gql`
3642
+ var UPDATE_USER_MUTATION = import_client37.gql`
3943
3643
  mutation updateUser($_id: ID!, $input: UserInputType!) {
3944
3644
  updateUser(_id: $_id, input: $input) {
3945
3645
  ...UserFields
@@ -3947,12 +3647,12 @@ var UPDATE_USER_MUTATION = import_client41.gql`
3947
3647
  }
3948
3648
  ${USER_FIELDS_FRAGMENT}
3949
3649
  `;
3950
- var DELETE_USER_MUTATION = import_client41.gql`
3650
+ var DELETE_USER_MUTATION = import_client37.gql`
3951
3651
  mutation deleteUser($email: String!) {
3952
3652
  deleteUser(email: $email)
3953
3653
  }
3954
3654
  `;
3955
- var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3655
+ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
3956
3656
  mutation addUserFavouriteResource(
3957
3657
  $resourceId: ID!
3958
3658
  $resourceType: ResourceTypeEnum!
@@ -3966,7 +3666,7 @@ var ADD_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3966
3666
  }
3967
3667
  ${USER_FIELDS_FRAGMENT}
3968
3668
  `;
3969
- var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3669
+ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client37.gql`
3970
3670
  mutation removeUserFavouriteResource(
3971
3671
  $resourceId: ID!
3972
3672
  $resourceType: ResourceTypeEnum!
@@ -3980,7 +3680,7 @@ var REMOVE_USER_FAVOURITE_RESOURCE_MUTATION = import_client41.gql`
3980
3680
  }
3981
3681
  ${USER_FIELDS_FRAGMENT}
3982
3682
  `;
3983
- var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3683
+ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
3984
3684
  mutation addUserInterestResource($input: UserActivityInputType!) {
3985
3685
  addUserInterestResource(input: $input) {
3986
3686
  ...UserFields
@@ -3988,7 +3688,7 @@ var ADD_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3988
3688
  }
3989
3689
  ${USER_FIELDS_FRAGMENT}
3990
3690
  `;
3991
- var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3691
+ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client37.gql`
3992
3692
  mutation removeUserInterestResource($input: UserActivityInputType!) {
3993
3693
  removeUserInterestResource(input: $input) {
3994
3694
  ...UserFields
@@ -3996,7 +3696,7 @@ var REMOVE_USER_INTEREST_RESOURCE_MUTATION = import_client41.gql`
3996
3696
  }
3997
3697
  ${USER_FIELDS_FRAGMENT}
3998
3698
  `;
3999
- var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3699
+ var ADD_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
4000
3700
  mutation addUserGoingResource($input: UserActivityInputType!) {
4001
3701
  addUserGoingResource(input: $input) {
4002
3702
  ...UserFields
@@ -4004,7 +3704,7 @@ var ADD_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
4004
3704
  }
4005
3705
  ${USER_FIELDS_FRAGMENT}
4006
3706
  `;
4007
- var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
3707
+ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client37.gql`
4008
3708
  mutation removeUserGoingResource($input: UserActivityInputType!) {
4009
3709
  removeUserGoingResource(input: $input) {
4010
3710
  ...UserFields
@@ -4012,7 +3712,7 @@ var REMOVE_USER_GOING_RESOURCE_MUTATION = import_client41.gql`
4012
3712
  }
4013
3713
  ${USER_FIELDS_FRAGMENT}
4014
3714
  `;
4015
- var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3715
+ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
4016
3716
  mutation addUserPresentResource($input: UserActivityInputType!) {
4017
3717
  addUserPresentResource(input: $input) {
4018
3718
  ...UserFields
@@ -4020,7 +3720,7 @@ var ADD_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
4020
3720
  }
4021
3721
  ${USER_FIELDS_FRAGMENT}
4022
3722
  `;
4023
- var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
3723
+ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client37.gql`
4024
3724
  mutation removeUserPresentResource($input: UserActivityInputType!) {
4025
3725
  removeUserPresentResource(input: $input) {
4026
3726
  ...UserFields
@@ -4028,7 +3728,7 @@ var REMOVE_USER_PRESENT_RESOURCE_MUTATION = import_client41.gql`
4028
3728
  }
4029
3729
  ${USER_FIELDS_FRAGMENT}
4030
3730
  `;
4031
- var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
3731
+ var SELECT_STANDARD_PACKAGE_MUTATION = import_client37.gql`
4032
3732
  mutation selectStandardPackage($selectedLicence: LicencesEnumType!) {
4033
3733
  selectStandardPackage(selectedLicence: $selectedLicence) {
4034
3734
  licences {
@@ -4042,17 +3742,17 @@ var SELECT_STANDARD_PACKAGE_MUTATION = import_client41.gql`
4042
3742
  `;
4043
3743
 
4044
3744
  // src/graphql/hooks/user/hooksQuery.ts
4045
- var import_client43 = require("@apollo/client");
3745
+ var import_client39 = require("@apollo/client");
4046
3746
 
4047
3747
  // src/graphql/hooks/ad/hooksMutation.ts
4048
- var import_client46 = require("@apollo/client");
3748
+ var import_client42 = require("@apollo/client");
4049
3749
 
4050
3750
  // src/graphql/mutations/ad.ts
4051
- var import_client45 = require("@apollo/client");
3751
+ var import_client41 = require("@apollo/client");
4052
3752
 
4053
3753
  // src/graphql/queries/ad.ts
4054
- var import_client44 = require("@apollo/client");
4055
- var AD_FIELDS_FRAGMENT = import_client44.gql`
3754
+ var import_client40 = require("@apollo/client");
3755
+ var AD_FIELDS_FRAGMENT = import_client40.gql`
4056
3756
  fragment AdFields on AdType {
4057
3757
  _id
4058
3758
  active
@@ -4080,7 +3780,7 @@ var AD_FIELDS_FRAGMENT = import_client44.gql`
4080
3780
  }
4081
3781
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
4082
3782
  `;
4083
- var GET_ADS = import_client44.gql`
3783
+ var GET_ADS = import_client40.gql`
4084
3784
  query getAds {
4085
3785
  ads {
4086
3786
  ...AdFields
@@ -4088,7 +3788,7 @@ var GET_ADS = import_client44.gql`
4088
3788
  }
4089
3789
  ${AD_FIELDS_FRAGMENT}
4090
3790
  `;
4091
- var GET_AD = import_client44.gql`
3791
+ var GET_AD = import_client40.gql`
4092
3792
  query getAd($_id: ID!) {
4093
3793
  ad(_id: $_id) {
4094
3794
  ...AdFields
@@ -4096,7 +3796,7 @@ var GET_AD = import_client44.gql`
4096
3796
  }
4097
3797
  ${AD_FIELDS_FRAGMENT}
4098
3798
  `;
4099
- var GET_ADS_BY_REGION = import_client44.gql`
3799
+ var GET_ADS_BY_REGION = import_client40.gql`
4100
3800
  query getAdsByRegion($region: String!, $status: AdStatusTypeEnum) {
4101
3801
  adsByRegion(region: $region, status: $status) {
4102
3802
  ...AdFields
@@ -4106,7 +3806,7 @@ var GET_ADS_BY_REGION = import_client44.gql`
4106
3806
  `;
4107
3807
 
4108
3808
  // src/graphql/mutations/ad.ts
4109
- var CREATE_AD_MUTATION = import_client45.gql`
3809
+ var CREATE_AD_MUTATION = import_client41.gql`
4110
3810
  mutation createAd($input: AdInputType!) {
4111
3811
  createAd(input: $input) {
4112
3812
  ...AdFields
@@ -4114,7 +3814,7 @@ var CREATE_AD_MUTATION = import_client45.gql`
4114
3814
  }
4115
3815
  ${AD_FIELDS_FRAGMENT}
4116
3816
  `;
4117
- var UPDATE_AD_MUTATION = import_client45.gql`
3817
+ var UPDATE_AD_MUTATION = import_client41.gql`
4118
3818
  mutation updateAd($_id: ID!, $input: AdInputType!) {
4119
3819
  updateAd(_id: $_id, input: $input) {
4120
3820
  ...AdFields
@@ -4122,32 +3822,32 @@ var UPDATE_AD_MUTATION = import_client45.gql`
4122
3822
  }
4123
3823
  ${AD_FIELDS_FRAGMENT}
4124
3824
  `;
4125
- var DELETE_AD_MUTATION = import_client45.gql`
3825
+ var DELETE_AD_MUTATION = import_client41.gql`
4126
3826
  mutation deleteAd($_id: ID!) {
4127
3827
  deleteAd(_id: $_id)
4128
3828
  }
4129
3829
  `;
4130
3830
 
4131
3831
  // src/graphql/hooks/ad/hooksQuery.ts
4132
- var import_client47 = require("@apollo/client");
3832
+ var import_client43 = require("@apollo/client");
4133
3833
 
4134
3834
  // src/graphql/hooks/resourceActivities/hooksMutation.ts
4135
- var import_client49 = require("@apollo/client");
3835
+ var import_client45 = require("@apollo/client");
4136
3836
 
4137
3837
  // src/graphql/mutations/resourceActivities.ts
4138
- var import_client48 = require("@apollo/client");
4139
- var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client48.gql`
3838
+ var import_client44 = require("@apollo/client");
3839
+ var CREATE_RESOURCE_ACTIVITY_MUTATION = import_client44.gql`
4140
3840
  mutation createResourceActivity($input: ResourceActivityInputType!) {
4141
3841
  createResourceActivity(input: $input)
4142
3842
  }
4143
3843
  `;
4144
3844
 
4145
3845
  // src/graphql/hooks/resourceActivities/hooksQuery.ts
4146
- var import_client51 = require("@apollo/client");
3846
+ var import_client47 = require("@apollo/client");
4147
3847
 
4148
3848
  // src/graphql/queries/resourceActivities.ts
4149
- var import_client50 = require("@apollo/client");
4150
- var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
3849
+ var import_client46 = require("@apollo/client");
3850
+ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client46.gql`
4151
3851
  fragment ResourceActivityFields on ResourceActivityType {
4152
3852
  resourceId
4153
3853
  resourceType
@@ -4166,7 +3866,7 @@ var RESOURCE_ACTIVITY_FIELDS_FRAGMENT = import_client50.gql`
4166
3866
  }
4167
3867
  ${LOCATION_GEO_FIELDS_FRAGMENT}
4168
3868
  `;
4169
- var GET_RESOURCE_ACTIVITY = import_client50.gql`
3869
+ var GET_RESOURCE_ACTIVITY = import_client46.gql`
4170
3870
  query getResourceActivity(
4171
3871
  $resourceType: ResourceTypeEnum!
4172
3872
  $resourceId: ID!
@@ -4179,11 +3879,11 @@ var GET_RESOURCE_ACTIVITY = import_client50.gql`
4179
3879
  `;
4180
3880
 
4181
3881
  // src/graphql/hooks/stripe/hooksMutation.ts
4182
- var import_client53 = require("@apollo/client");
3882
+ var import_client49 = require("@apollo/client");
4183
3883
 
4184
3884
  // src/graphql/mutations/stripe.ts
4185
- var import_client52 = require("@apollo/client");
4186
- var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
3885
+ var import_client48 = require("@apollo/client");
3886
+ var CREATE_CHECKOUT_SESSION_MUTATION = import_client48.gql`
4187
3887
  mutation createCheckoutSession(
4188
3888
  $planId: LicencesEnumType!
4189
3889
  $billingPeriod: BillingPeriodEnumType
@@ -4194,12 +3894,12 @@ var CREATE_CHECKOUT_SESSION_MUTATION = import_client52.gql`
4194
3894
  }
4195
3895
  }
4196
3896
  `;
4197
- var CANCEL_SUBSCRIPTION_MUTATION = import_client52.gql`
3897
+ var CANCEL_SUBSCRIPTION_MUTATION = import_client48.gql`
4198
3898
  mutation cancelSubscription {
4199
3899
  cancelSubscription
4200
3900
  }
4201
3901
  `;
4202
- var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
3902
+ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client48.gql`
4203
3903
  mutation updateSubscriptionPlan(
4204
3904
  $newPlanId: LicencesEnumType!
4205
3905
  $billingPeriod: BillingPeriodEnumType
@@ -4215,14 +3915,14 @@ var UPDATE_SUBSCRIPTION_PLAN_MUTATION = import_client52.gql`
4215
3915
  }
4216
3916
  }
4217
3917
  `;
4218
- var CREATE_CUSTOMER_PORTAL = import_client52.gql`
3918
+ var CREATE_CUSTOMER_PORTAL = import_client48.gql`
4219
3919
  mutation createCustomerPortal($returnUrl: String) {
4220
3920
  createCustomerPortal(returnUrl: $returnUrl) {
4221
3921
  portalUrl
4222
3922
  }
4223
3923
  }
4224
3924
  `;
4225
- var SELECT_PACKAGE_MUTATION = import_client52.gql`
3925
+ var SELECT_PACKAGE_MUTATION = import_client48.gql`
4226
3926
  mutation selectPackage(
4227
3927
  $billingPeriod: BillingPeriodEnumType
4228
3928
  $selectedLicence: LicencesEnumType!
@@ -4245,11 +3945,11 @@ var SELECT_PACKAGE_MUTATION = import_client52.gql`
4245
3945
  `;
4246
3946
 
4247
3947
  // src/graphql/hooks/stripe/hooksQuery.ts
4248
- var import_client55 = require("@apollo/client");
3948
+ var import_client51 = require("@apollo/client");
4249
3949
 
4250
3950
  // src/graphql/queries/stripe.ts
4251
- var import_client54 = require("@apollo/client");
4252
- var GET_SUBSCRIPTION_STATUS = import_client54.gql`
3951
+ var import_client50 = require("@apollo/client");
3952
+ var GET_SUBSCRIPTION_STATUS = import_client50.gql`
4253
3953
  query getSubscriptionStatus {
4254
3954
  getSubscriptionStatus {
4255
3955
  subscriptionId
@@ -4259,7 +3959,7 @@ var GET_SUBSCRIPTION_STATUS = import_client54.gql`
4259
3959
  }
4260
3960
  }
4261
3961
  `;
4262
- var GET_SUBSCRIPTION_PLANS = import_client54.gql`
3962
+ var GET_SUBSCRIPTION_PLANS = import_client50.gql`
4263
3963
  query getSubscriptionPlans {
4264
3964
  getSubscriptionPlans {
4265
3965
  plans {
@@ -4289,11 +3989,11 @@ var GET_SUBSCRIPTION_PLANS = import_client54.gql`
4289
3989
  `;
4290
3990
 
4291
3991
  // src/graphql/hooks/partner/hooksMutation.ts
4292
- var import_client57 = require("@apollo/client");
3992
+ var import_client53 = require("@apollo/client");
4293
3993
 
4294
3994
  // src/graphql/mutations/partner.ts
4295
- var import_client56 = require("@apollo/client");
4296
- var CREATE_PARTNER_MUTATION = import_client56.gql`
3995
+ var import_client52 = require("@apollo/client");
3996
+ var CREATE_PARTNER_MUTATION = import_client52.gql`
4297
3997
  mutation createPartner($input: PartnerInputType!) {
4298
3998
  createPartner(input: $input) {
4299
3999
  ...PartnerFields
@@ -4301,7 +4001,7 @@ var CREATE_PARTNER_MUTATION = import_client56.gql`
4301
4001
  }
4302
4002
  ${PARTNER}
4303
4003
  `;
4304
- var UPDATE_PARTNER_MUTATION = import_client56.gql`
4004
+ var UPDATE_PARTNER_MUTATION = import_client52.gql`
4305
4005
  mutation updatePartner($_id: ID!, $input: PartnerInputType!) {
4306
4006
  updatePartner(_id: $_id, input: $input) {
4307
4007
  ...PartnerFields
@@ -4309,24 +4009,24 @@ var UPDATE_PARTNER_MUTATION = import_client56.gql`
4309
4009
  }
4310
4010
  ${PARTNER}
4311
4011
  `;
4312
- var DELETE_PARTNER_MUTATION = import_client56.gql`
4012
+ var DELETE_PARTNER_MUTATION = import_client52.gql`
4313
4013
  mutation deletePartner($_id: ID!) {
4314
4014
  deletePartner(_id: $_id)
4315
4015
  }
4316
4016
  `;
4317
4017
 
4318
4018
  // src/graphql/hooks/partner/hooksQuery.ts
4319
- var import_client58 = require("@apollo/client");
4019
+ var import_client54 = require("@apollo/client");
4320
4020
 
4321
4021
  // src/graphql/hooks/post/hooksMutation.ts
4322
- var import_client61 = require("@apollo/client");
4022
+ var import_client57 = require("@apollo/client");
4323
4023
 
4324
4024
  // src/graphql/mutations/post.ts
4325
- var import_client60 = require("@apollo/client");
4025
+ var import_client56 = require("@apollo/client");
4326
4026
 
4327
4027
  // src/graphql/queries/post.ts
4328
- var import_client59 = require("@apollo/client");
4329
- var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client59.gql`
4028
+ var import_client55 = require("@apollo/client");
4029
+ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client55.gql`
4330
4030
  fragment PostContentDataFields on PostContentData {
4331
4031
  textarea {
4332
4032
  title
@@ -4348,7 +4048,7 @@ var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client59.gql`
4348
4048
  }
4349
4049
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4350
4050
  `;
4351
- var POST_CONTENT_FIELDS_FRAGMENT = import_client59.gql`
4051
+ var POST_CONTENT_FIELDS_FRAGMENT = import_client55.gql`
4352
4052
  fragment PostContentFields on PostContentType {
4353
4053
  contentData {
4354
4054
  ...PostContentDataFields
@@ -4358,7 +4058,7 @@ var POST_CONTENT_FIELDS_FRAGMENT = import_client59.gql`
4358
4058
  }
4359
4059
  ${POST_CONTENT_DATA_FIELDS_FRAGMENT}
4360
4060
  `;
4361
- var POST_FIELDS_FRAGMENT = import_client59.gql`
4061
+ var POST_FIELDS_FRAGMENT = import_client55.gql`
4362
4062
  fragment PostFields on PostType {
4363
4063
  _id
4364
4064
  active
@@ -4383,7 +4083,7 @@ var POST_FIELDS_FRAGMENT = import_client59.gql`
4383
4083
  ${POST_CONTENT_FIELDS_FRAGMENT}
4384
4084
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
4385
4085
  `;
4386
- var GET_POSTS = import_client59.gql`
4086
+ var GET_POSTS = import_client55.gql`
4387
4087
  query getPosts {
4388
4088
  posts {
4389
4089
  ...PostFields
@@ -4391,7 +4091,7 @@ var GET_POSTS = import_client59.gql`
4391
4091
  }
4392
4092
  ${POST_FIELDS_FRAGMENT}
4393
4093
  `;
4394
- var GET_POST = import_client59.gql`
4094
+ var GET_POST = import_client55.gql`
4395
4095
  query getPost($_id: ID!) {
4396
4096
  post(_id: $_id) {
4397
4097
  ...PostFields
@@ -4399,7 +4099,7 @@ var GET_POST = import_client59.gql`
4399
4099
  }
4400
4100
  ${POST_FIELDS_FRAGMENT}
4401
4101
  `;
4402
- var GET_POSTS_BY_TYPE = import_client59.gql`
4102
+ var GET_POSTS_BY_TYPE = import_client55.gql`
4403
4103
  query getPostsByType($postType: PostTypeEnum!) {
4404
4104
  postsByType(postType: $postType) {
4405
4105
  ...PostFields
@@ -4409,7 +4109,7 @@ var GET_POSTS_BY_TYPE = import_client59.gql`
4409
4109
  `;
4410
4110
 
4411
4111
  // src/graphql/mutations/post.ts
4412
- var CREATE_POST_MUTATION = import_client60.gql`
4112
+ var CREATE_POST_MUTATION = import_client56.gql`
4413
4113
  mutation createPost($input: PostInputType!) {
4414
4114
  createPost(input: $input) {
4415
4115
  ...PostFields
@@ -4417,7 +4117,7 @@ var CREATE_POST_MUTATION = import_client60.gql`
4417
4117
  }
4418
4118
  ${POST_FIELDS_FRAGMENT}
4419
4119
  `;
4420
- var UPDATE_POST_MUTATION = import_client60.gql`
4120
+ var UPDATE_POST_MUTATION = import_client56.gql`
4421
4121
  mutation updatePost($_id: ID!, $input: PostInputType!) {
4422
4122
  updatePost(_id: $_id, input: $input) {
4423
4123
  ...PostFields
@@ -4425,26 +4125,26 @@ var UPDATE_POST_MUTATION = import_client60.gql`
4425
4125
  }
4426
4126
  ${POST_FIELDS_FRAGMENT}
4427
4127
  `;
4428
- var DELETE_POST_MUTATION = import_client60.gql`
4128
+ var DELETE_POST_MUTATION = import_client56.gql`
4429
4129
  mutation deletePost($_id: ID!) {
4430
4130
  deletePost(_id: $_id)
4431
4131
  }
4432
4132
  `;
4433
4133
 
4434
4134
  // src/graphql/hooks/post/hooksQuery.ts
4435
- var import_client62 = require("@apollo/client");
4135
+ var import_client58 = require("@apollo/client");
4436
4136
 
4437
4137
  // src/graphql/hooks/appSettings/hooksMutation.ts
4438
- var import_client65 = require("@apollo/client");
4138
+ var import_client61 = require("@apollo/client");
4439
4139
 
4440
4140
  // src/graphql/mutations/appSettings.ts
4441
- var import_client63 = require("@apollo/client");
4442
- var UPDATE_APP_SETTINGS_MUTATION = import_client63.gql`
4141
+ var import_client59 = require("@apollo/client");
4142
+ var UPDATE_APP_SETTINGS_MUTATION = import_client59.gql`
4443
4143
  mutation updateAppSettings($input: AppSettingsInputType!) {
4444
4144
  updateAppSettings(input: $input)
4445
4145
  }
4446
4146
  `;
4447
- var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
4147
+ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client59.gql`
4448
4148
  mutation crawlGoogleMarkets {
4449
4149
  crawlGoogleMarkets {
4450
4150
  message
@@ -4453,8 +4153,8 @@ var CRAWL_GOOGLE_MARKETS_MUTATION = import_client63.gql`
4453
4153
  `;
4454
4154
 
4455
4155
  // src/graphql/queries/appSettings.ts
4456
- var import_client64 = require("@apollo/client");
4457
- var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
4156
+ var import_client60 = require("@apollo/client");
4157
+ var APP_SETTINGS_FIELDS_FRAGMENT = import_client60.gql`
4458
4158
  fragment AppSettingsFields on AppSettingsType {
4459
4159
  _id
4460
4160
  appVersion
@@ -4464,7 +4164,7 @@ var APP_SETTINGS_FIELDS_FRAGMENT = import_client64.gql`
4464
4164
  updatedAt
4465
4165
  }
4466
4166
  `;
4467
- var GET_APP_SETTINGS = import_client64.gql`
4167
+ var GET_APP_SETTINGS = import_client60.gql`
4468
4168
  query getAppSettings {
4469
4169
  appSettings {
4470
4170
  ...AppSettingsFields
@@ -4474,7 +4174,7 @@ var GET_APP_SETTINGS = import_client64.gql`
4474
4174
  `;
4475
4175
 
4476
4176
  // src/graphql/hooks/appSettings/hooksQuery.ts
4477
- var import_client66 = require("@apollo/client");
4177
+ var import_client62 = require("@apollo/client");
4478
4178
 
4479
4179
  // src/types/post.ts
4480
4180
  var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
@@ -4492,32 +4192,32 @@ var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
4492
4192
  })(EnumPostContentType || {});
4493
4193
 
4494
4194
  // src/yupSchema/post.ts
4495
- var postContentSchema = yup9.object().shape({
4496
- contentData: yup9.mixed().optional().nullable(),
4497
- contentOrder: yup9.number().nullable(),
4498
- contentType: yup9.mixed().oneOf(Object.values(EnumPostContentType)).nullable()
4195
+ var postContentSchema = yup8.object().shape({
4196
+ contentData: yup8.mixed().optional().nullable(),
4197
+ contentOrder: yup8.number().nullable(),
4198
+ contentType: yup8.mixed().oneOf(Object.values(EnumPostContentType)).nullable()
4499
4199
  });
4500
- var postSchema = yup9.object().shape({
4501
- active: yup9.boolean().required(),
4502
- caption: yup9.string().required(),
4503
- content: yup9.array().of(postContentSchema).required(),
4504
- postType: yup9.mixed().oneOf(Object.values(EnumPostType)).required(),
4505
- resource: yup9.object({
4506
- resourceId: yup9.string().required(),
4507
- resourceType: yup9.mixed().oneOf(Object.values(EnumResourceType)).required()
4200
+ var postSchema = yup8.object().shape({
4201
+ active: yup8.boolean().required(),
4202
+ caption: yup8.string().required(),
4203
+ content: yup8.array().of(postContentSchema).required(),
4204
+ postType: yup8.mixed().oneOf(Object.values(EnumPostType)).required(),
4205
+ resource: yup8.object({
4206
+ resourceId: yup8.string().required(),
4207
+ resourceType: yup8.mixed().oneOf(Object.values(EnumResourceType)).required()
4508
4208
  }).nullable().optional(),
4509
- tags: yup9.array().of(yup9.string().required()).nullable().optional(),
4510
- title: yup9.string().required()
4209
+ tags: yup8.array().of(yup8.string().required()).nullable().optional(),
4210
+ title: yup8.string().required()
4511
4211
  });
4512
4212
 
4513
4213
  // src/yupSchema/appSettings.ts
4514
- var yup10 = __toESM(require("yup"));
4515
- var appSettingsSchema = yup10.object({
4516
- appVersion: yup10.string().trim().label("App Version").matches(
4214
+ var yup9 = __toESM(require("yup"));
4215
+ var appSettingsSchema = yup9.object({
4216
+ appVersion: yup9.string().trim().label("App Version").matches(
4517
4217
  /^\d+\.\d+\.\d+$/,
4518
4218
  "App Version must be in the format X.Y.Z (e.g. 1.12.50)"
4519
4219
  ).required("App Version is required"),
4520
- isOfflineMode: yup10.boolean().label("Is Offline Mode").required("Is Offline Mode is required")
4220
+ isOfflineMode: yup9.boolean().label("Is Offline Mode").required("Is Offline Mode is required")
4521
4221
  });
4522
4222
 
4523
4223
  // src/hooks/utils.ts
@@ -5243,110 +4943,22 @@ function useResetPasswordForm() {
5243
4943
  };
5244
4944
  }
5245
4945
 
5246
- // src/hooks/useTesterForm.ts
4946
+ // src/hooks/useContactUsForm.ts
5247
4947
  var import_yup11 = require("@hookform/resolvers/yup");
5248
4948
  var import_react = __toESM(require("react"));
5249
4949
  var import_react_hook_form11 = require("react-hook-form");
5250
- var defaultValues7 = {
5251
- businessName: "",
5252
- consents: {
5253
- betaTestConsent: false,
5254
- privacyConsent: false
5255
- },
5256
- email: "",
5257
- event: {},
5258
- firstName: "",
5259
- lastName: "",
5260
- mobilePhone: "",
5261
- osType: "",
5262
- region: "",
5263
- resourceType: "",
5264
- vendor: {}
5265
- };
5266
- function useTesterForm(data) {
5267
- const {
5268
- control,
5269
- formState,
5270
- getValues,
5271
- handleSubmit,
5272
- reset,
5273
- setValue,
5274
- watch
5275
- } = (0, import_react_hook_form11.useForm)({
5276
- defaultValues: defaultValues7,
5277
- resolver: (0, import_yup11.yupResolver)(testerSchema)
5278
- });
5279
- import_react.default.useEffect(() => {
5280
- if (data) {
5281
- reset({
5282
- businessName: data.businessName,
5283
- consents: data.consents,
5284
- email: data.email,
5285
- event: data.event,
5286
- firstName: data.firstName,
5287
- lastName: data.lastName,
5288
- mobilePhone: data.mobilePhone,
5289
- osType: data.osType,
5290
- region: data.region,
5291
- resourceType: data.resourceType,
5292
- vendor: data.vendor
5293
- });
5294
- } else {
5295
- reset(defaultValues7);
5296
- }
5297
- }, [data]);
5298
- const {
5299
- businessName,
5300
- consents,
5301
- email,
5302
- event,
5303
- firstName,
5304
- lastName,
5305
- mobilePhone,
5306
- osType,
5307
- region,
5308
- resourceType,
5309
- vendor
5310
- } = getValues();
5311
- return {
5312
- control,
5313
- fields: {
5314
- businessName,
5315
- consents,
5316
- email,
5317
- event,
5318
- firstName,
5319
- lastName,
5320
- mobilePhone,
5321
- osType,
5322
- region,
5323
- resourceType,
5324
- vendor
5325
- },
5326
- formState,
5327
- handleSubmit,
5328
- reset,
5329
- setValue,
5330
- watch
5331
- };
5332
- }
5333
-
5334
- // src/hooks/useContactUsForm.ts
5335
- var import_yup12 = require("@hookform/resolvers/yup");
5336
- var import_react2 = __toESM(require("react"));
5337
- var import_react_hook_form12 = require("react-hook-form");
5338
4950
 
5339
4951
  // src/yupSchema/contactUs.ts
5340
- var yup11 = __toESM(require("yup"));
5341
- var contactUsSchema = yup11.object().shape({
4952
+ var yup10 = __toESM(require("yup"));
4953
+ var contactUsSchema = yup10.object().shape({
5342
4954
  email: emailRequiredSchema,
5343
- firstName: yup11.string().label("First Name").required("First name is required"),
5344
- lastName: yup11.string().label("Last Name").required("Last name is required"),
5345
- message: yup11.string().label("Message").required("Message is required")
4955
+ firstName: yup10.string().label("First Name").required("First name is required"),
4956
+ lastName: yup10.string().label("Last Name").required("Last name is required"),
4957
+ message: yup10.string().label("Message").required("Message is required")
5346
4958
  });
5347
4959
 
5348
4960
  // src/hooks/useContactUsForm.ts
5349
- var defaultValues8 = {
4961
+ var defaultValues7 = {
5350
4962
  email: "",
5351
4963
  firstName: "",
5352
4964
  lastName: "",
@@ -5361,11 +4973,11 @@ function useContactUsForm(data) {
5361
4973
  reset,
5362
4974
  setValue,
5363
4975
  watch
5364
- } = (0, import_react_hook_form12.useForm)({
5365
- defaultValues: defaultValues8,
5366
- resolver: (0, import_yup12.yupResolver)(contactUsSchema)
4976
+ } = (0, import_react_hook_form11.useForm)({
4977
+ defaultValues: defaultValues7,
4978
+ resolver: (0, import_yup11.yupResolver)(contactUsSchema)
5367
4979
  });
5368
- import_react2.default.useEffect(() => {
4980
+ import_react.default.useEffect(() => {
5369
4981
  if (data) {
5370
4982
  reset({
5371
4983
  email: data.email,
@@ -5374,7 +4986,7 @@ function useContactUsForm(data) {
5374
4986
  message: data.message
5375
4987
  });
5376
4988
  } else {
5377
- reset(defaultValues8);
4989
+ reset(defaultValues7);
5378
4990
  }
5379
4991
  }, [data]);
5380
4992
  const { email, firstName, lastName, message } = getValues();
@@ -5395,10 +5007,10 @@ function useContactUsForm(data) {
5395
5007
  }
5396
5008
 
5397
5009
  // src/hooks/useAdForm.ts
5398
- var import_yup13 = require("@hookform/resolvers/yup");
5399
- var import_react3 = __toESM(require("react"));
5400
- var import_react_hook_form13 = require("react-hook-form");
5401
- var defaultValues9 = {
5010
+ var import_yup12 = require("@hookform/resolvers/yup");
5011
+ var import_react2 = __toESM(require("react"));
5012
+ var import_react_hook_form12 = require("react-hook-form");
5013
+ var defaultValues8 = {
5402
5014
  active: true,
5403
5015
  adStyle: "Bloom" /* BLOOM */,
5404
5016
  // default to bloom
@@ -5431,11 +5043,11 @@ function useAdForm(data) {
5431
5043
  reset,
5432
5044
  setValue,
5433
5045
  watch
5434
- } = (0, import_react_hook_form13.useForm)({
5435
- defaultValues: defaultValues9,
5436
- resolver: (0, import_yup13.yupResolver)(adSchema)
5046
+ } = (0, import_react_hook_form12.useForm)({
5047
+ defaultValues: defaultValues8,
5048
+ resolver: (0, import_yup12.yupResolver)(adSchema)
5437
5049
  });
5438
- import_react3.default.useEffect(() => {
5050
+ import_react2.default.useEffect(() => {
5439
5051
  if (data) {
5440
5052
  reset({
5441
5053
  active: data.active,
@@ -5456,7 +5068,7 @@ function useAdForm(data) {
5456
5068
  targetRegion: data.targetRegion
5457
5069
  });
5458
5070
  } else {
5459
- reset(defaultValues9);
5071
+ reset(defaultValues8);
5460
5072
  }
5461
5073
  }, [data]);
5462
5074
  const {
@@ -5508,9 +5120,9 @@ function useAdForm(data) {
5508
5120
  }
5509
5121
 
5510
5122
  // src/hooks/partner/usePartnerForm.ts
5511
- var import_yup14 = require("@hookform/resolvers/yup");
5512
- var React9 = __toESM(require("react"));
5513
- var import_react_hook_form14 = require("react-hook-form");
5123
+ var import_yup13 = require("@hookform/resolvers/yup");
5124
+ var React8 = __toESM(require("react"));
5125
+ var import_react_hook_form13 = require("react-hook-form");
5514
5126
  function usePartnerForm(data) {
5515
5127
  const {
5516
5128
  control,
@@ -5520,11 +5132,11 @@ function usePartnerForm(data) {
5520
5132
  reset,
5521
5133
  setValue,
5522
5134
  watch
5523
- } = (0, import_react_hook_form14.useForm)({
5135
+ } = (0, import_react_hook_form13.useForm)({
5524
5136
  defaultValues: defaultPartnerFormValues,
5525
- resolver: (0, import_yup14.yupResolver)(partnerSchema)
5137
+ resolver: (0, import_yup13.yupResolver)(partnerSchema)
5526
5138
  });
5527
- React9.useEffect(() => {
5139
+ React8.useEffect(() => {
5528
5140
  if (data) {
5529
5141
  reset({
5530
5142
  ...mapBaseResourceTypeToFormData(data),
@@ -5591,10 +5203,10 @@ function usePartnerForm(data) {
5591
5203
  }
5592
5204
 
5593
5205
  // src/hooks/usePostForm.ts
5594
- var import_yup15 = require("@hookform/resolvers/yup");
5595
- var import_react4 = __toESM(require("react"));
5596
- var import_react_hook_form15 = require("react-hook-form");
5597
- var defaultValues10 = {
5206
+ var import_yup14 = require("@hookform/resolvers/yup");
5207
+ var import_react3 = __toESM(require("react"));
5208
+ var import_react_hook_form14 = require("react-hook-form");
5209
+ var defaultValues9 = {
5598
5210
  active: true,
5599
5211
  caption: "",
5600
5212
  content: [],
@@ -5614,11 +5226,11 @@ function usePostForm(data) {
5614
5226
  reset,
5615
5227
  setValue,
5616
5228
  watch
5617
- } = (0, import_react_hook_form15.useForm)({
5618
- defaultValues: defaultValues10,
5619
- resolver: (0, import_yup15.yupResolver)(postSchema)
5229
+ } = (0, import_react_hook_form14.useForm)({
5230
+ defaultValues: defaultValues9,
5231
+ resolver: (0, import_yup14.yupResolver)(postSchema)
5620
5232
  });
5621
- import_react4.default.useEffect(() => {
5233
+ import_react3.default.useEffect(() => {
5622
5234
  if (data) {
5623
5235
  reset({
5624
5236
  active: data.active,
@@ -5632,7 +5244,7 @@ function usePostForm(data) {
5632
5244
  title: data.title
5633
5245
  });
5634
5246
  } else {
5635
- reset(defaultValues10);
5247
+ reset(defaultValues9);
5636
5248
  }
5637
5249
  }, [data]);
5638
5250
  const {
@@ -5668,10 +5280,10 @@ function usePostForm(data) {
5668
5280
  }
5669
5281
 
5670
5282
  // src/hooks/useAppSettingsForm.ts
5671
- var import_yup16 = require("@hookform/resolvers/yup");
5672
- var import_react5 = __toESM(require("react"));
5673
- var import_react_hook_form16 = require("react-hook-form");
5674
- var defaultValues11 = {
5283
+ var import_yup15 = require("@hookform/resolvers/yup");
5284
+ var import_react4 = __toESM(require("react"));
5285
+ var import_react_hook_form15 = require("react-hook-form");
5286
+ var defaultValues10 = {
5675
5287
  appVersion: "",
5676
5288
  isOfflineMode: false
5677
5289
  };
@@ -5684,18 +5296,18 @@ function useAppSettingsForm(data) {
5684
5296
  reset,
5685
5297
  setValue,
5686
5298
  watch
5687
- } = (0, import_react_hook_form16.useForm)({
5688
- defaultValues: defaultValues11,
5689
- resolver: (0, import_yup16.yupResolver)(appSettingsSchema)
5299
+ } = (0, import_react_hook_form15.useForm)({
5300
+ defaultValues: defaultValues10,
5301
+ resolver: (0, import_yup15.yupResolver)(appSettingsSchema)
5690
5302
  });
5691
- import_react5.default.useEffect(() => {
5303
+ import_react4.default.useEffect(() => {
5692
5304
  if (data) {
5693
5305
  reset({
5694
5306
  appVersion: data.appVersion,
5695
5307
  isOfflineMode: data.isOfflineMode
5696
5308
  });
5697
5309
  } else {
5698
- reset(defaultValues11);
5310
+ reset(defaultValues10);
5699
5311
  }
5700
5312
  }, [data]);
5701
5313
  const { appVersion, isOfflineMode } = getValues();
@@ -5734,7 +5346,6 @@ function useAppSettingsForm(data) {
5734
5346
  useRegisterForm,
5735
5347
  useRequestPasswordResetForm,
5736
5348
  useResetPasswordForm,
5737
- useTesterForm,
5738
5349
  useUserForm,
5739
5350
  useValidateVerificationTokenForm,
5740
5351
  useVendorForm,