@timardex/cluemart-shared 1.2.48 → 1.2.50

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 (45) hide show
  1. package/dist/{ad-BkTdN8xM.d.mts → ad-BO5cMy3b.d.mts} +5 -4
  2. package/dist/{ad-STgnIJ8B.d.ts → ad-Dcmq74_b.d.ts} +5 -4
  3. package/dist/{auth-CQPRj4DB.d.mts → auth-D636FFnJ.d.mts} +1 -1
  4. package/dist/{auth-OLWCR6Zr.d.ts → auth-D6Rg-cEc.d.ts} +1 -1
  5. package/dist/{chunk-HL4SAT7R.mjs → chunk-S6RE75SK.mjs} +4 -3
  6. package/dist/chunk-S6RE75SK.mjs.map +1 -0
  7. package/dist/{chunk-KZ2VLPYF.mjs → chunk-VYFOKMRP.mjs} +2 -2
  8. package/dist/enums/index.cjs +3 -2
  9. package/dist/enums/index.cjs.map +1 -1
  10. package/dist/enums/index.d.mts +4 -3
  11. package/dist/enums/index.d.ts +4 -3
  12. package/dist/enums/index.mjs +1 -1
  13. package/dist/formFields/index.cjs.map +1 -1
  14. package/dist/formFields/index.d.mts +1 -1
  15. package/dist/formFields/index.d.ts +1 -1
  16. package/dist/formFields/index.mjs +2 -2
  17. package/dist/{global-qg1lwtYo.d.mts → global-Czf4z7aN.d.mts} +3 -3
  18. package/dist/{global-Be5v6emI.d.ts → global-dQyePynY.d.ts} +3 -3
  19. package/dist/graphql/index.cjs +16 -16
  20. package/dist/graphql/index.cjs.map +1 -1
  21. package/dist/graphql/index.d.mts +2 -2
  22. package/dist/graphql/index.d.ts +2 -2
  23. package/dist/graphql/index.mjs +17 -17
  24. package/dist/graphql/index.mjs.map +1 -1
  25. package/dist/hooks/index.cjs +12 -7
  26. package/dist/hooks/index.cjs.map +1 -1
  27. package/dist/hooks/index.d.mts +3 -3
  28. package/dist/hooks/index.d.ts +3 -3
  29. package/dist/hooks/index.mjs +14 -9
  30. package/dist/hooks/index.mjs.map +1 -1
  31. package/dist/index.cjs +31 -25
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.mts +10 -8
  34. package/dist/index.d.ts +10 -8
  35. package/dist/index.mjs +31 -25
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/types/index.d.mts +3 -3
  38. package/dist/types/index.d.ts +3 -3
  39. package/dist/utils/index.cjs.map +1 -1
  40. package/dist/utils/index.d.mts +1 -1
  41. package/dist/utils/index.d.ts +1 -1
  42. package/dist/utils/index.mjs +2 -2
  43. package/package.json +1 -1
  44. package/dist/chunk-HL4SAT7R.mjs.map +0 -1
  45. /package/dist/{chunk-KZ2VLPYF.mjs.map → chunk-VYFOKMRP.mjs.map} +0 -0
package/dist/index.cjs CHANGED
@@ -338,8 +338,8 @@ var EnumRelationResource = /* @__PURE__ */ ((EnumRelationResource2) => {
338
338
  return EnumRelationResource2;
339
339
  })(EnumRelationResource || {});
340
340
  var EnumNotificationResourceType = /* @__PURE__ */ ((EnumNotificationResourceType2) => {
341
- EnumNotificationResourceType2["ADDED_AS_PARTNER_EVENT"] = "added_as_partner_event";
342
- EnumNotificationResourceType2["ADDED_AS_PARTNER_VENDOR"] = "added_as_partner_vendor";
341
+ EnumNotificationResourceType2["ADDED_AS_ASSOCIATE_EVENT"] = "added_as_associate_event";
342
+ EnumNotificationResourceType2["ADDED_AS_ASSOCIATE_VENDOR"] = "added_as_associate_vendor";
343
343
  EnumNotificationResourceType2["APPROVED_EVENT"] = "approved_event";
344
344
  EnumNotificationResourceType2["APPROVED_VENDOR"] = "approved_vendor";
345
345
  EnumNotificationResourceType2["CREATED_EVENT"] = "created_event";
@@ -425,6 +425,7 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus2) => {
425
425
  EnumSubscriptionStatus2["INACTIVE"] = "inactive";
426
426
  EnumSubscriptionStatus2["CANCELLED"] = "cancelled";
427
427
  EnumSubscriptionStatus2["NO_SUBSCRIPTION"] = "no_subscription";
428
+ EnumSubscriptionStatus2["PAST_DUE"] = "past_due";
428
429
  return EnumSubscriptionStatus2;
429
430
  })(EnumSubscriptionStatus || {});
430
431
 
@@ -2289,8 +2290,8 @@ var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
2289
2290
  }
2290
2291
  }
2291
2292
  `;
2292
- var PARTNER_FIELDS_FRAGMENT = import_client2.gql`
2293
- fragment PartnerFields on PartnerType {
2293
+ var ASSOCIATES_FIELDS_FRAGMENT = import_client2.gql`
2294
+ fragment AssociatesFields on AssociateType {
2294
2295
  email
2295
2296
  resourceId
2296
2297
  resourceType
@@ -2349,22 +2350,22 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2349
2350
  fragment UserFields on UserType {
2350
2351
  _id
2351
2352
  active
2353
+ associates {
2354
+ ...AssociatesFields
2355
+ }
2352
2356
  avatar {
2353
2357
  ...ResourceImageFields
2354
2358
  }
2355
2359
  createdAt
2356
2360
  deletedAt
2357
2361
  email
2358
- isTester
2362
+ events
2359
2363
  firstName
2364
+ isTester
2360
2365
  lastName
2361
2366
  licences
2362
- events
2363
2367
  platform
2364
2368
  preferredRegion
2365
- partners {
2366
- ...PartnerFields
2367
- }
2368
2369
  refreshToken
2369
2370
  role
2370
2371
  termsAgreement {
@@ -2377,7 +2378,7 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2377
2378
  updatedAt
2378
2379
  }
2379
2380
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2380
- ${PARTNER_FIELDS_FRAGMENT}
2381
+ ${ASSOCIATES_FIELDS_FRAGMENT}
2381
2382
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2382
2383
  ${USER_ACTIVITY_FIELDS_FRAGMENT}
2383
2384
  `;
@@ -2478,6 +2479,9 @@ var EVENT = import_client3.gql`
2478
2479
  fragment EventFields on EventType {
2479
2480
  _id
2480
2481
  active
2482
+ associates {
2483
+ ...AssociatesFields
2484
+ }
2481
2485
  adIds
2482
2486
  cover {
2483
2487
  ...ResourceImageFields
@@ -2507,9 +2511,6 @@ var EVENT = import_client3.gql`
2507
2511
  owner {
2508
2512
  ...OwnerFields
2509
2513
  }
2510
- partners {
2511
- ...PartnerFields
2512
- }
2513
2514
  promoCodes
2514
2515
  provider
2515
2516
  posterUsage {
@@ -2538,7 +2539,7 @@ var EVENT = import_client3.gql`
2538
2539
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2539
2540
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2540
2541
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2541
- ${PARTNER_FIELDS_FRAGMENT}
2542
+ ${ASSOCIATES_FIELDS_FRAGMENT}
2542
2543
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2543
2544
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2544
2545
  ${RELATION_DATES_FRAGMENT}
@@ -2627,6 +2628,9 @@ var VENDOR = import_client4.gql`
2627
2628
  fragment VendorFields on VendorType {
2628
2629
  _id
2629
2630
  active
2631
+ associates {
2632
+ ...AssociatesFields
2633
+ }
2630
2634
  adIds
2631
2635
  availability {
2632
2636
  corporate
@@ -2666,9 +2670,6 @@ var VENDOR = import_client4.gql`
2666
2670
  owner {
2667
2671
  ...OwnerFields
2668
2672
  }
2669
- partners {
2670
- ...PartnerFields
2671
- }
2672
2673
  products {
2673
2674
  ...VendorMenuFields
2674
2675
  }
@@ -2699,7 +2700,7 @@ var VENDOR = import_client4.gql`
2699
2700
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2700
2701
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2701
2702
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2702
- ${PARTNER_FIELDS_FRAGMENT}
2703
+ ${ASSOCIATES_FIELDS_FRAGMENT}
2703
2704
  ${VENDOR_MENU_FIELDS_FRAGMENT}
2704
2705
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2705
2706
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
@@ -5091,7 +5092,7 @@ var globalResourceSchema = yup.object().shape({
5091
5092
  name: yup.string().label("Name").trim().min(3).max(40).required("Name is required"),
5092
5093
  region: yup.string().label("Region").required("Region is required"),
5093
5094
  socialMedia: yup.array().of(socialMediaSchema).nullable().optional(),
5094
- partners: yup.array().of(
5095
+ associates: yup.array().of(
5095
5096
  yup.object().shape({
5096
5097
  email: emailRequiredSchema,
5097
5098
  resourceId: yup.string().required(),
@@ -5252,6 +5253,7 @@ var userSchema = yup4.object().shape({
5252
5253
  email: emailRequiredSchema,
5253
5254
  firstName: yup4.string().label("First Name").required("First name is required"),
5254
5255
  lastName: yup4.string().label("Last Name").required("Last name is required"),
5256
+ isTester: yup4.boolean().required("Tester status is required"),
5255
5257
  password: yup4.string().nullable().trim().label("Password").min(8, "Password must be at least 8 characters long").notRequired(),
5256
5258
  preferredRegion: yup4.string().label("Preferred Region").required("Preferred region is required"),
5257
5259
  confirmPassword: yup4.string().nullable().trim().label("Confirm Password").when("password", {
@@ -5385,6 +5387,7 @@ var adSchema = yup7.object().shape({
5385
5387
  // src/hooks/utils.ts
5386
5388
  var globalDefaultValues = {
5387
5389
  active: false,
5390
+ associates: null,
5388
5391
  contactDetails: {
5389
5392
  email: null,
5390
5393
  landlinePhone: null,
@@ -5404,7 +5407,6 @@ var globalDefaultValues = {
5404
5407
  logo: null,
5405
5408
  logoUpload: null,
5406
5409
  name: "",
5407
- partners: null,
5408
5410
  promoCodes: [],
5409
5411
  region: "",
5410
5412
  socialMedia: []
@@ -5477,6 +5479,7 @@ function mapBaseResourceTypeToFormData(data) {
5477
5479
  return {
5478
5480
  _id: data._id,
5479
5481
  active: data.active,
5482
+ associates: data.associates,
5480
5483
  contactDetails: data.contactDetails,
5481
5484
  cover: data.cover,
5482
5485
  coverUpload: data.coverUpload,
@@ -5487,7 +5490,6 @@ function mapBaseResourceTypeToFormData(data) {
5487
5490
  logoUpload: data.logoUpload,
5488
5491
  name: data.name,
5489
5492
  owner: data.owner,
5490
- partners: data.partners,
5491
5493
  promoCodes: data.promoCodes,
5492
5494
  region: data.region,
5493
5495
  socialMedia: data.socialMedia,
@@ -5527,6 +5529,7 @@ function useVendorForm(data) {
5527
5529
  const {
5528
5530
  _id,
5529
5531
  active,
5532
+ associates,
5530
5533
  availability,
5531
5534
  categories,
5532
5535
  cover,
@@ -5540,7 +5543,6 @@ function useVendorForm(data) {
5540
5543
  multiLocation,
5541
5544
  name,
5542
5545
  owner,
5543
- partners,
5544
5546
  products,
5545
5547
  promoCodes,
5546
5548
  region,
@@ -5553,6 +5555,7 @@ function useVendorForm(data) {
5553
5555
  fields: {
5554
5556
  _id,
5555
5557
  active,
5558
+ associates,
5556
5559
  availability,
5557
5560
  categories,
5558
5561
  cover,
@@ -5566,7 +5569,6 @@ function useVendorForm(data) {
5566
5569
  multiLocation,
5567
5570
  name,
5568
5571
  owner,
5569
- partners,
5570
5572
  products,
5571
5573
  promoCodes,
5572
5574
  region,
@@ -5681,6 +5683,7 @@ function useEventForm(data) {
5681
5683
  const {
5682
5684
  _id,
5683
5685
  active,
5686
+ associates,
5684
5687
  cover,
5685
5688
  coverUpload,
5686
5689
  dateTime,
@@ -5694,7 +5697,6 @@ function useEventForm(data) {
5694
5697
  name,
5695
5698
  nzbn,
5696
5699
  owner,
5697
- partners,
5698
5700
  promoCodes,
5699
5701
  provider,
5700
5702
  rainOrShine,
@@ -5708,6 +5710,7 @@ function useEventForm(data) {
5708
5710
  fields: {
5709
5711
  _id,
5710
5712
  active,
5713
+ associates,
5711
5714
  cover,
5712
5715
  coverUpload,
5713
5716
  dateTime,
@@ -5721,7 +5724,6 @@ function useEventForm(data) {
5721
5724
  name,
5722
5725
  nzbn,
5723
5726
  owner,
5724
- partners,
5725
5727
  promoCodes,
5726
5728
  provider,
5727
5729
  rainOrShine,
@@ -5812,6 +5814,7 @@ var defaultValues = {
5812
5814
  confirmPassword: "",
5813
5815
  email: "",
5814
5816
  firstName: "",
5817
+ isTester: false,
5815
5818
  lastName: "",
5816
5819
  password: null,
5817
5820
  preferredRegion: "",
@@ -5839,6 +5842,7 @@ function useUserForm(data) {
5839
5842
  avatarUpload: data.avatarUpload,
5840
5843
  email: data.email,
5841
5844
  firstName: data.firstName,
5845
+ isTester: data.isTester,
5842
5846
  lastName: data.lastName,
5843
5847
  password: data.password,
5844
5848
  preferredRegion: data.preferredRegion,
@@ -5856,6 +5860,7 @@ function useUserForm(data) {
5856
5860
  avatarUpload,
5857
5861
  email,
5858
5862
  firstName,
5863
+ isTester,
5859
5864
  lastName,
5860
5865
  password,
5861
5866
  preferredRegion,
@@ -5871,6 +5876,7 @@ function useUserForm(data) {
5871
5876
  avatarUpload,
5872
5877
  email,
5873
5878
  firstName,
5879
+ isTester,
5874
5880
  lastName,
5875
5881
  password,
5876
5882
  preferredRegion,