@timardex/cluemart-shared 1.2.49 → 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-DPP5n_ZS.d.mts → ad-BO5cMy3b.d.mts} +4 -4
  2. package/dist/{ad-BBJMdfCl.d.ts → ad-Dcmq74_b.d.ts} +4 -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-WNRV4DSZ.mjs → chunk-S6RE75SK.mjs} +3 -3
  6. package/dist/chunk-S6RE75SK.mjs.map +1 -0
  7. package/dist/{chunk-HFYQRL77.mjs → chunk-VYFOKMRP.mjs} +2 -2
  8. package/dist/enums/index.cjs +2 -2
  9. package/dist/enums/index.cjs.map +1 -1
  10. package/dist/enums/index.d.mts +2 -2
  11. package/dist/enums/index.d.ts +2 -2
  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 +14 -14
  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 +15 -15
  24. package/dist/graphql/index.mjs.map +1 -1
  25. package/dist/hooks/index.cjs +7 -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 +9 -9
  30. package/dist/hooks/index.mjs.map +1 -1
  31. package/dist/index.cjs +23 -23
  32. package/dist/index.cjs.map +1 -1
  33. package/dist/index.d.mts +7 -7
  34. package/dist/index.d.ts +7 -7
  35. package/dist/index.mjs +23 -23
  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-WNRV4DSZ.mjs.map +0 -1
  45. /package/dist/{chunk-HFYQRL77.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";
@@ -2290,8 +2290,8 @@ var CATEGORY_FIELDS_FRAGMENT = import_client2.gql`
2290
2290
  }
2291
2291
  }
2292
2292
  `;
2293
- var PARTNER_FIELDS_FRAGMENT = import_client2.gql`
2294
- fragment PartnerFields on PartnerType {
2293
+ var ASSOCIATES_FIELDS_FRAGMENT = import_client2.gql`
2294
+ fragment AssociatesFields on AssociateType {
2295
2295
  email
2296
2296
  resourceId
2297
2297
  resourceType
@@ -2350,6 +2350,9 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2350
2350
  fragment UserFields on UserType {
2351
2351
  _id
2352
2352
  active
2353
+ associates {
2354
+ ...AssociatesFields
2355
+ }
2353
2356
  avatar {
2354
2357
  ...ResourceImageFields
2355
2358
  }
@@ -2363,9 +2366,6 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2363
2366
  licences
2364
2367
  platform
2365
2368
  preferredRegion
2366
- partners {
2367
- ...PartnerFields
2368
- }
2369
2369
  refreshToken
2370
2370
  role
2371
2371
  termsAgreement {
@@ -2378,7 +2378,7 @@ var USER_FIELDS_FRAGMENT = import_client2.gql`
2378
2378
  updatedAt
2379
2379
  }
2380
2380
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2381
- ${PARTNER_FIELDS_FRAGMENT}
2381
+ ${ASSOCIATES_FIELDS_FRAGMENT}
2382
2382
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2383
2383
  ${USER_ACTIVITY_FIELDS_FRAGMENT}
2384
2384
  `;
@@ -2479,6 +2479,9 @@ var EVENT = import_client3.gql`
2479
2479
  fragment EventFields on EventType {
2480
2480
  _id
2481
2481
  active
2482
+ associates {
2483
+ ...AssociatesFields
2484
+ }
2482
2485
  adIds
2483
2486
  cover {
2484
2487
  ...ResourceImageFields
@@ -2508,9 +2511,6 @@ var EVENT = import_client3.gql`
2508
2511
  owner {
2509
2512
  ...OwnerFields
2510
2513
  }
2511
- partners {
2512
- ...PartnerFields
2513
- }
2514
2514
  promoCodes
2515
2515
  provider
2516
2516
  posterUsage {
@@ -2539,7 +2539,7 @@ var EVENT = import_client3.gql`
2539
2539
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2540
2540
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2541
2541
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2542
- ${PARTNER_FIELDS_FRAGMENT}
2542
+ ${ASSOCIATES_FIELDS_FRAGMENT}
2543
2543
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2544
2544
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2545
2545
  ${RELATION_DATES_FRAGMENT}
@@ -2628,6 +2628,9 @@ var VENDOR = import_client4.gql`
2628
2628
  fragment VendorFields on VendorType {
2629
2629
  _id
2630
2630
  active
2631
+ associates {
2632
+ ...AssociatesFields
2633
+ }
2631
2634
  adIds
2632
2635
  availability {
2633
2636
  corporate
@@ -2667,9 +2670,6 @@ var VENDOR = import_client4.gql`
2667
2670
  owner {
2668
2671
  ...OwnerFields
2669
2672
  }
2670
- partners {
2671
- ...PartnerFields
2672
- }
2673
2673
  products {
2674
2674
  ...VendorMenuFields
2675
2675
  }
@@ -2700,7 +2700,7 @@ var VENDOR = import_client4.gql`
2700
2700
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2701
2701
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
2702
2702
  ${POSTER_USAGE_FIELDS_FRAGMENT}
2703
- ${PARTNER_FIELDS_FRAGMENT}
2703
+ ${ASSOCIATES_FIELDS_FRAGMENT}
2704
2704
  ${VENDOR_MENU_FIELDS_FRAGMENT}
2705
2705
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2706
2706
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
@@ -5092,7 +5092,7 @@ var globalResourceSchema = yup.object().shape({
5092
5092
  name: yup.string().label("Name").trim().min(3).max(40).required("Name is required"),
5093
5093
  region: yup.string().label("Region").required("Region is required"),
5094
5094
  socialMedia: yup.array().of(socialMediaSchema).nullable().optional(),
5095
- partners: yup.array().of(
5095
+ associates: yup.array().of(
5096
5096
  yup.object().shape({
5097
5097
  email: emailRequiredSchema,
5098
5098
  resourceId: yup.string().required(),
@@ -5387,6 +5387,7 @@ var adSchema = yup7.object().shape({
5387
5387
  // src/hooks/utils.ts
5388
5388
  var globalDefaultValues = {
5389
5389
  active: false,
5390
+ associates: null,
5390
5391
  contactDetails: {
5391
5392
  email: null,
5392
5393
  landlinePhone: null,
@@ -5406,7 +5407,6 @@ var globalDefaultValues = {
5406
5407
  logo: null,
5407
5408
  logoUpload: null,
5408
5409
  name: "",
5409
- partners: null,
5410
5410
  promoCodes: [],
5411
5411
  region: "",
5412
5412
  socialMedia: []
@@ -5479,6 +5479,7 @@ function mapBaseResourceTypeToFormData(data) {
5479
5479
  return {
5480
5480
  _id: data._id,
5481
5481
  active: data.active,
5482
+ associates: data.associates,
5482
5483
  contactDetails: data.contactDetails,
5483
5484
  cover: data.cover,
5484
5485
  coverUpload: data.coverUpload,
@@ -5489,7 +5490,6 @@ function mapBaseResourceTypeToFormData(data) {
5489
5490
  logoUpload: data.logoUpload,
5490
5491
  name: data.name,
5491
5492
  owner: data.owner,
5492
- partners: data.partners,
5493
5493
  promoCodes: data.promoCodes,
5494
5494
  region: data.region,
5495
5495
  socialMedia: data.socialMedia,
@@ -5529,6 +5529,7 @@ function useVendorForm(data) {
5529
5529
  const {
5530
5530
  _id,
5531
5531
  active,
5532
+ associates,
5532
5533
  availability,
5533
5534
  categories,
5534
5535
  cover,
@@ -5542,7 +5543,6 @@ function useVendorForm(data) {
5542
5543
  multiLocation,
5543
5544
  name,
5544
5545
  owner,
5545
- partners,
5546
5546
  products,
5547
5547
  promoCodes,
5548
5548
  region,
@@ -5555,6 +5555,7 @@ function useVendorForm(data) {
5555
5555
  fields: {
5556
5556
  _id,
5557
5557
  active,
5558
+ associates,
5558
5559
  availability,
5559
5560
  categories,
5560
5561
  cover,
@@ -5568,7 +5569,6 @@ function useVendorForm(data) {
5568
5569
  multiLocation,
5569
5570
  name,
5570
5571
  owner,
5571
- partners,
5572
5572
  products,
5573
5573
  promoCodes,
5574
5574
  region,
@@ -5683,6 +5683,7 @@ function useEventForm(data) {
5683
5683
  const {
5684
5684
  _id,
5685
5685
  active,
5686
+ associates,
5686
5687
  cover,
5687
5688
  coverUpload,
5688
5689
  dateTime,
@@ -5696,7 +5697,6 @@ function useEventForm(data) {
5696
5697
  name,
5697
5698
  nzbn,
5698
5699
  owner,
5699
- partners,
5700
5700
  promoCodes,
5701
5701
  provider,
5702
5702
  rainOrShine,
@@ -5710,6 +5710,7 @@ function useEventForm(data) {
5710
5710
  fields: {
5711
5711
  _id,
5712
5712
  active,
5713
+ associates,
5713
5714
  cover,
5714
5715
  coverUpload,
5715
5716
  dateTime,
@@ -5723,7 +5724,6 @@ function useEventForm(data) {
5723
5724
  name,
5724
5725
  nzbn,
5725
5726
  owner,
5726
- partners,
5727
5727
  promoCodes,
5728
5728
  provider,
5729
5729
  rainOrShine,