@timardex/cluemart-shared 1.5.830 → 1.5.832

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 (77) hide show
  1. package/dist/{ad-CZBOdoLr.d.mts → ad-Cu-M8Xzf.d.mts} +2 -2
  2. package/dist/{ad-CCm6QYXb.d.ts → ad-DfqgAPOk.d.ts} +2 -2
  3. package/dist/auth/index.cjs +27 -36
  4. package/dist/auth/index.cjs.map +1 -1
  5. package/dist/auth/index.d.mts +8 -6
  6. package/dist/auth/index.d.ts +8 -6
  7. package/dist/auth/index.mjs +28 -11
  8. package/dist/auth/index.mjs.map +1 -1
  9. package/dist/{chunk-KMLUQVNM.mjs → chunk-43SLZVBF.mjs} +1 -1
  10. package/dist/chunk-43SLZVBF.mjs.map +1 -0
  11. package/dist/{chunk-MOB5R5BF.mjs → chunk-G3CMTXQV.mjs} +2 -3
  12. package/dist/chunk-G3CMTXQV.mjs.map +1 -0
  13. package/dist/{chunk-AQR53ECY.mjs → chunk-LN5LS2GJ.mjs} +3 -3
  14. package/dist/{chunk-Y62E7JLT.mjs → chunk-NU7IZZQY.mjs} +2 -2
  15. package/dist/{chunk-UOFI3LKZ.mjs → chunk-P4XULG5P.mjs} +1 -28
  16. package/dist/chunk-P4XULG5P.mjs.map +1 -0
  17. package/dist/{chunk-VNF22ITY.mjs → chunk-SWWVD4J5.mjs} +2 -2
  18. package/dist/{chunk-VR3TDBJL.mjs → chunk-X3OLM35T.mjs} +1 -4
  19. package/dist/chunk-X3OLM35T.mjs.map +1 -0
  20. package/dist/{chunk-4NGXTQWT.mjs → chunk-YKJUZUAP.mjs} +4 -4
  21. package/dist/{contactUs-b5SfvqmJ.d.mts → contactUs-09e9ThN0.d.mts} +1 -1
  22. package/dist/{contactUs-Bwxzw-cB.d.ts → contactUs-DI70VJ9T.d.ts} +1 -1
  23. package/dist/enums/index.cjs +0 -3
  24. package/dist/enums/index.cjs.map +1 -1
  25. package/dist/enums/index.d.mts +0 -3
  26. package/dist/enums/index.d.ts +0 -3
  27. package/dist/enums/index.mjs +1 -1
  28. package/dist/formFields/index.cjs.map +1 -1
  29. package/dist/formFields/index.d.mts +1 -1
  30. package/dist/formFields/index.d.ts +1 -1
  31. package/dist/formFields/index.mjs +5 -5
  32. package/dist/{global-wVC9VaCx.d.ts → global--iSLy2cE.d.ts} +2 -9
  33. package/dist/{global-959zf6qy.d.mts → global-BHwZPjT8.d.mts} +2 -9
  34. package/dist/graphql/index.cjs +0 -28
  35. package/dist/graphql/index.cjs.map +1 -1
  36. package/dist/graphql/index.d.mts +4 -4
  37. package/dist/graphql/index.d.ts +4 -4
  38. package/dist/graphql/index.mjs +3 -3
  39. package/dist/hooks/index.cjs +1 -61
  40. package/dist/hooks/index.cjs.map +1 -1
  41. package/dist/hooks/index.d.mts +4 -4
  42. package/dist/hooks/index.d.ts +4 -4
  43. package/dist/hooks/index.mjs +9 -30
  44. package/dist/hooks/index.mjs.map +1 -1
  45. package/dist/index.cjs +0 -31
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.d.mts +2 -14
  48. package/dist/index.d.ts +2 -14
  49. package/dist/index.mjs +0 -31
  50. package/dist/index.mjs.map +1 -1
  51. package/dist/map/index.d.mts +1 -1
  52. package/dist/map/index.d.ts +1 -1
  53. package/dist/{resourceActivities-ZPT9JlfH.d.mts → resourceActivities-BDIjVrI4.d.mts} +1 -2
  54. package/dist/{resourceActivities-ChZcl5wJ.d.ts → resourceActivities-JNcJxpTh.d.ts} +1 -2
  55. package/dist/sharing/index.cjs.map +1 -1
  56. package/dist/sharing/index.d.mts +1 -1
  57. package/dist/sharing/index.d.ts +1 -1
  58. package/dist/sharing/index.mjs +3 -3
  59. package/dist/types/index.cjs.map +1 -1
  60. package/dist/types/index.d.mts +6 -6
  61. package/dist/types/index.d.ts +6 -6
  62. package/dist/types/index.mjs +2 -2
  63. package/dist/{user-duZdr5Nn.d.mts → user-Bhkd3l06.d.mts} +1 -2
  64. package/dist/{user-IVhCYYTM.d.ts → user-C_kCo0Fm.d.ts} +1 -2
  65. package/dist/utils/index.cjs.map +1 -1
  66. package/dist/utils/index.d.mts +1 -1
  67. package/dist/utils/index.d.ts +1 -1
  68. package/dist/utils/index.mjs +4 -4
  69. package/package.json +1 -1
  70. package/dist/chunk-KMLUQVNM.mjs.map +0 -1
  71. package/dist/chunk-MOB5R5BF.mjs.map +0 -1
  72. package/dist/chunk-UOFI3LKZ.mjs.map +0 -1
  73. package/dist/chunk-VR3TDBJL.mjs.map +0 -1
  74. /package/dist/{chunk-AQR53ECY.mjs.map → chunk-LN5LS2GJ.mjs.map} +0 -0
  75. /package/dist/{chunk-Y62E7JLT.mjs.map → chunk-NU7IZZQY.mjs.map} +0 -0
  76. /package/dist/{chunk-VNF22ITY.mjs.map → chunk-SWWVD4J5.mjs.map} +0 -0
  77. /package/dist/{chunk-4NGXTQWT.mjs.map → chunk-YKJUZUAP.mjs.map} +0 -0
@@ -1,10 +1,10 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.mjs';
4
- import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolReturnType, c as SchoolType, d as AffiliateType } from '../ad-CZBOdoLr.mjs';
5
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-ZPT9JlfH.mjs';
6
- import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-959zf6qy.mjs';
7
- import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-duZdr5Nn.mjs';
4
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolReturnType, c as SchoolType, d as AffiliateType } from '../ad-Cu-M8Xzf.mjs';
5
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BDIjVrI4.mjs';
6
+ import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-BHwZPjT8.mjs';
7
+ import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-Bhkd3l06.mjs';
8
8
  import '../images/index.mjs';
9
9
  import 'react-hook-form';
10
10
 
@@ -1,10 +1,10 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { DocumentNode } from 'graphql';
3
3
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.js';
4
- import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolReturnType, c as SchoolType, d as AffiliateType } from '../ad-CCm6QYXb.js';
5
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-ChZcl5wJ.js';
6
- import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global-wVC9VaCx.js';
7
- import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-IVhCYYTM.js';
4
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, P as PartnerType, a as AdType, E as EnumAdStatus, b as AppSettingsType, S as SchoolReturnType, c as SchoolType, d as AffiliateType } from '../ad-DfqgAPOk.js';
5
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-JNcJxpTh.js';
6
+ import { E as EventType, c as EventListItemType, d as EventInfoType, U as UseGetResourcesByRegionOptions, e as RelationType, f as ResourceConnectionsType, g as UnregisteredVendorType, V as VendorType, h as VendorInfoType, i as UserLicenceType, P as PostType, j as EnumPostType, G as GameDocType, k as GameLeaderboard } from '../global--iSLy2cE.js';
7
+ import { S as SafeUserType, R as RedeemRewardResponse, b as ResourceByUser, c as SubscriptionPlansResponse, d as SubscriptionStatusData } from '../user-C_kCo0Fm.js';
8
8
  import '../images/index.js';
9
9
  import 'react-hook-form';
10
10
 
@@ -134,7 +134,7 @@ import {
134
134
  useUpdateUser,
135
135
  useUpdateVendor,
136
136
  useUpdateVendorInfo
137
- } from "../chunk-MOB5R5BF.mjs";
137
+ } from "../chunk-G3CMTXQV.mjs";
138
138
  import {
139
139
  GET_EVENT,
140
140
  GET_EVENT_INFO,
@@ -155,8 +155,8 @@ import {
155
155
  useRequestPasswordReset,
156
156
  useResetPassword,
157
157
  useValidateVerificationToken
158
- } from "../chunk-UOFI3LKZ.mjs";
159
- import "../chunk-VR3TDBJL.mjs";
158
+ } from "../chunk-P4XULG5P.mjs";
159
+ import "../chunk-X3OLM35T.mjs";
160
160
  export {
161
161
  GET_EVENT,
162
162
  GET_EVENT_BY_SLUG,
@@ -243,18 +243,6 @@ var EnumRegions = /* @__PURE__ */ ((EnumRegions2) => {
243
243
  EnumRegions2["Wellington"] = "Wellington";
244
244
  return EnumRegions2;
245
245
  })(EnumRegions || {});
246
- var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence2) => {
247
- EnumUserLicence2["PRO_EVENT"] = "pro_event";
248
- EnumUserLicence2["PRO_PLUS_EVENT"] = "pro_plus_event";
249
- EnumUserLicence2["PRO_PLUS_VENDOR"] = "pro_plus_vendor";
250
- EnumUserLicence2["PRO_VENDOR"] = "pro_vendor";
251
- EnumUserLicence2["STANDARD_EVENT"] = "standard_event";
252
- EnumUserLicence2["STANDARD_VENDOR"] = "standard_vendor";
253
- EnumUserLicence2["STANDARD_PARTNER"] = "standard_partner";
254
- EnumUserLicence2["STANDARD_AFFILIATE"] = "standard_affiliate";
255
- EnumUserLicence2["STANDARD_SCHOOL"] = "standard_school";
256
- return EnumUserLicence2;
257
- })(EnumUserLicence || {});
258
246
  var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
259
247
  EnumSocialMedia2["FACEBOOK"] = "facebook";
260
248
  EnumSocialMedia2["INSTAGRAM"] = "instagram";
@@ -1835,19 +1823,7 @@ var globalResourceSchema = yup.object().shape({
1835
1823
  description: yup.string().label("Description").trim().min(50).required("Description is required"),
1836
1824
  name: yup.string().label("Name").trim().min(3).required("Name is required"),
1837
1825
  region: yup.string().label("Region").required("Region is required"),
1838
- socialMedia: yup.array().of(socialMediaSchema).nullable().default(null),
1839
- associates: yup.array().of(
1840
- yup.object().shape({
1841
- email: emailRequiredSchema,
1842
- resourceId: yup.string().label("Resource ID").required("Resource ID is required"),
1843
- resourceType: yup.mixed().oneOf(Object.values(EnumResourceType)).label("Resource Type").required("Resource Type is required"),
1844
- licence: yup.object({
1845
- expiryDate: yup.date().required("Expiry Date is required"),
1846
- issuedDate: yup.date().required("Issued Date is required"),
1847
- licenceType: yup.mixed().oneOf(Object.values(EnumUserLicence)).label("Licence Type").required("Licence Type is required")
1848
- })
1849
- })
1850
- ).nullable().default(null)
1826
+ socialMedia: yup.array().of(socialMediaSchema).nullable().default(null)
1851
1827
  });
1852
1828
  var categorySchema = yup.array().of(
1853
1829
  yup.object().shape({
@@ -2518,17 +2494,6 @@ var LICENCE_FIELDS_FRAGMENT = import_client.gql`
2518
2494
  prevLicenceType
2519
2495
  }
2520
2496
  `;
2521
- var ASSOCIATES_FIELDS_FRAGMENT = import_client.gql`
2522
- fragment AssociatesFields on AssociateType {
2523
- email
2524
- resourceId
2525
- resourceType
2526
- licence {
2527
- ...LicenceFields
2528
- }
2529
- }
2530
- ${LICENCE_FIELDS_FRAGMENT}
2531
- `;
2532
2497
  var TERMS_AGREEMENT_FIELDS_FRAGMENT = import_client.gql`
2533
2498
  fragment TermsAgreementFields on TermsAgreementType {
2534
2499
  appBuildNumber
@@ -2619,9 +2584,6 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
2619
2584
  fragment UserFields on UserType {
2620
2585
  _id
2621
2586
  active
2622
- associates {
2623
- ...AssociatesFields
2624
- }
2625
2587
  affiliate
2626
2588
  avatar {
2627
2589
  ...ResourceImageFields
@@ -2661,7 +2623,6 @@ var USER_FIELDS_FRAGMENT = import_client.gql`
2661
2623
  updatedAt
2662
2624
  }
2663
2625
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2664
- ${ASSOCIATES_FIELDS_FRAGMENT}
2665
2626
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2666
2627
  ${USER_ACTIVITY_FIELDS_FRAGMENT}
2667
2628
  ${LICENCE_FIELDS_FRAGMENT}
@@ -2809,9 +2770,6 @@ var EVENT = import_client2.gql`
2809
2770
  fragment EventFields on EventType {
2810
2771
  _id
2811
2772
  active
2812
- associates {
2813
- ...AssociatesFields
2814
- }
2815
2773
  adIds
2816
2774
  approvedAt
2817
2775
  cover {
@@ -2884,7 +2842,6 @@ var EVENT = import_client2.gql`
2884
2842
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2885
2843
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2886
2844
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2887
- ${ASSOCIATES_FIELDS_FRAGMENT}
2888
2845
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2889
2846
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2890
2847
  ${RELATION_DATES_FRAGMENT}
@@ -3000,9 +2957,6 @@ var VENDOR = import_client3.gql`
3000
2957
  fragment VendorFields on VendorType {
3001
2958
  _id
3002
2959
  active
3003
- associates {
3004
- ...AssociatesFields
3005
- }
3006
2960
  adIds
3007
2961
  approvedAt
3008
2962
  availability {
@@ -3093,7 +3047,6 @@ var VENDOR = import_client3.gql`
3093
3047
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3094
3048
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3095
3049
  ${POSTER_USAGE_FIELDS_FRAGMENT}
3096
- ${ASSOCIATES_FIELDS_FRAGMENT}
3097
3050
  ${VENDOR_PRODUCT_LIST_FIELDS_FRAGMENT}
3098
3051
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3099
3052
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
@@ -3249,9 +3202,6 @@ var PARTNER = import_client4.gql`
3249
3202
  fragment PartnerFields on PartnerType {
3250
3203
  _id
3251
3204
  active
3252
- associates {
3253
- ...AssociatesFields
3254
- }
3255
3205
  adIds
3256
3206
  approvedAt
3257
3207
  cover {
@@ -3302,7 +3252,6 @@ var PARTNER = import_client4.gql`
3302
3252
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
3303
3253
  ${LOCATION_FIELDS_FRAGMENT}
3304
3254
  ${OWNER_FIELDS_FRAGMENT}
3305
- ${ASSOCIATES_FIELDS_FRAGMENT}
3306
3255
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
3307
3256
  ${POSTER_USAGE_FIELDS_FRAGMENT}
3308
3257
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
@@ -3790,7 +3739,6 @@ var CHAT_MESSAGE_FIELDS_FRAGMENT = import_client14.gql`
3790
3739
  var CHAT_PARTICIPANT = import_client14.gql`
3791
3740
  fragment ChatParticipantFields on ChatParticipantType {
3792
3741
  active
3793
- isAssociate
3794
3742
  userAvatar
3795
3743
  userEmail
3796
3744
  userId
@@ -5486,7 +5434,6 @@ var defaultLocation = {
5486
5434
  };
5487
5435
  var globalDefaultValues = {
5488
5436
  active: false,
5489
- associates: null,
5490
5437
  contactDetails: {
5491
5438
  email: null,
5492
5439
  landlinePhone: null,
@@ -5627,7 +5574,6 @@ function mapBaseResourceTypeToFormData(data) {
5627
5574
  return {
5628
5575
  _id: data._id,
5629
5576
  active: data.active,
5630
- associates: data.associates,
5631
5577
  contactDetails: data.contactDetails,
5632
5578
  cover: data.cover,
5633
5579
  coverUpload: data.coverUpload ?? null,
@@ -5679,7 +5625,6 @@ function useVendorForm(data) {
5679
5625
  const {
5680
5626
  _id,
5681
5627
  active,
5682
- associates,
5683
5628
  availability,
5684
5629
  calendar,
5685
5630
  categories,
@@ -5708,7 +5653,6 @@ function useVendorForm(data) {
5708
5653
  fields: {
5709
5654
  _id,
5710
5655
  active,
5711
- associates,
5712
5656
  availability,
5713
5657
  calendar,
5714
5658
  categories,
@@ -5894,7 +5838,6 @@ function useEventForm(data) {
5894
5838
  const {
5895
5839
  _id,
5896
5840
  active,
5897
- associates,
5898
5841
  claimed,
5899
5842
  contactDetails,
5900
5843
  cover,
@@ -5924,7 +5867,6 @@ function useEventForm(data) {
5924
5867
  fields: {
5925
5868
  _id,
5926
5869
  active,
5927
- associates,
5928
5870
  claimed,
5929
5871
  contactDetails,
5930
5872
  cover,
@@ -6483,7 +6425,6 @@ function usePartnerForm(data) {
6483
6425
  const {
6484
6426
  _id,
6485
6427
  active,
6486
- associates,
6487
6428
  contactDetails,
6488
6429
  cover,
6489
6430
  coverUpload,
@@ -6507,7 +6448,6 @@ function usePartnerForm(data) {
6507
6448
  fields: {
6508
6449
  _id,
6509
6450
  active,
6510
- associates,
6511
6451
  contactDetails,
6512
6452
  cover,
6513
6453
  coverUpload,