@timardex/cluemart-shared 1.5.740 → 1.5.742

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 (59) hide show
  1. package/dist/{ad-CqfSmtG_.d.ts → ad-DTOtubs3.d.ts} +1 -1
  2. package/dist/{ad-sgD-lSbO.d.mts → ad-DpwV6VZX.d.mts} +1 -1
  3. package/dist/{chunk-6OBMKN7F.mjs → chunk-64ZADXXH.mjs} +2 -2
  4. package/dist/{chunk-XWFE6U3E.mjs → chunk-K5OWNJY5.mjs} +131 -119
  5. package/dist/chunk-K5OWNJY5.mjs.map +1 -0
  6. package/dist/{chunk-6YISZ3OD.mjs → chunk-KXQLOILF.mjs} +2 -2
  7. package/dist/{chunk-7VNXO63T.mjs → chunk-LNIT5OS3.mjs} +1 -1
  8. package/dist/chunk-LNIT5OS3.mjs.map +1 -0
  9. package/dist/{chunk-3AI2ROPT.mjs → chunk-TIXEG66V.mjs} +19 -1
  10. package/dist/chunk-TIXEG66V.mjs.map +1 -0
  11. package/dist/{contactUs-DA3p41Uq.d.ts → contactUs-BK5MKYPx.d.ts} +1 -1
  12. package/dist/{contactUs-B6lQQq-x.d.mts → contactUs-CRypzI-A.d.mts} +1 -1
  13. package/dist/formFields/index.cjs +28 -4
  14. package/dist/formFields/index.cjs.map +1 -1
  15. package/dist/formFields/index.d.mts +1 -1
  16. package/dist/formFields/index.d.ts +1 -1
  17. package/dist/formFields/index.mjs +3 -3
  18. package/dist/{global-BEUzBSyY.d.mts → global-q9JjONd1.d.mts} +280 -1
  19. package/dist/{global-585slmSH.d.ts → global-vWzQNI8w.d.ts} +280 -1
  20. package/dist/graphql/index.cjs +18 -0
  21. package/dist/graphql/index.cjs.map +1 -1
  22. package/dist/graphql/index.d.mts +3 -4
  23. package/dist/graphql/index.d.ts +3 -4
  24. package/dist/graphql/index.mjs +1 -1
  25. package/dist/hooks/index.cjs +34 -6
  26. package/dist/hooks/index.cjs.map +1 -1
  27. package/dist/hooks/index.d.mts +3 -4
  28. package/dist/hooks/index.d.ts +3 -4
  29. package/dist/hooks/index.mjs +5 -5
  30. package/dist/index.cjs +171 -141
  31. package/dist/index.cjs.map +1 -1
  32. package/dist/index.d.mts +922 -914
  33. package/dist/index.d.ts +922 -914
  34. package/dist/index.mjs +170 -141
  35. package/dist/index.mjs.map +1 -1
  36. package/dist/{resourceActivities-CZqXBve8.d.mts → resourceActivities-CpjJeH23.d.mts} +1 -1
  37. package/dist/{resourceActivities-CjJdhVR7.d.ts → resourceActivities-DtxRUlrT.d.ts} +1 -1
  38. package/dist/sharing/index.cjs +82 -58
  39. package/dist/sharing/index.cjs.map +1 -1
  40. package/dist/sharing/index.d.mts +1 -1
  41. package/dist/sharing/index.d.ts +1 -1
  42. package/dist/sharing/index.mjs +3 -3
  43. package/dist/types/index.cjs.map +1 -1
  44. package/dist/types/index.d.mts +5 -6
  45. package/dist/types/index.d.ts +5 -6
  46. package/dist/types/index.mjs +1 -1
  47. package/dist/utils/index.cjs +167 -141
  48. package/dist/utils/index.cjs.map +1 -1
  49. package/dist/utils/index.d.mts +6 -3
  50. package/dist/utils/index.d.ts +6 -3
  51. package/dist/utils/index.mjs +4 -2
  52. package/package.json +1 -1
  53. package/dist/chunk-3AI2ROPT.mjs.map +0 -1
  54. package/dist/chunk-7VNXO63T.mjs.map +0 -1
  55. package/dist/chunk-XWFE6U3E.mjs.map +0 -1
  56. package/dist/post-CdLrXuH1.d.mts +0 -279
  57. package/dist/post-D6n4Vszs.d.ts +0 -279
  58. /package/dist/{chunk-6OBMKN7F.mjs.map → chunk-64ZADXXH.mjs.map} +0 -0
  59. /package/dist/{chunk-6YISZ3OD.mjs.map → chunk-KXQLOILF.mjs.map} +0 -0
@@ -1,9 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.mjs';
3
- import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-sgD-lSbO.mjs';
4
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CZqXBve8.mjs';
5
- 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 } from '../global-BEUzBSyY.mjs';
6
- import { P as PostType, E as EnumPostType, G as GameDocType, a as GameLeaderboard } from '../post-CdLrXuH1.mjs';
3
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-DpwV6VZX.mjs';
4
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CpjJeH23.mjs';
5
+ 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-q9JjONd1.mjs';
7
6
  import '../images/index.mjs';
8
7
  import 'react-hook-form';
9
8
 
@@ -1,9 +1,8 @@
1
1
  import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType, EnumEventDateStatus } from '../enums/index.js';
3
- import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-CqfSmtG_.js';
4
- import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CjJdhVR7.js';
5
- 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 } from '../global-585slmSH.js';
6
- import { P as PostType, E as EnumPostType, G as GameDocType, a as GameLeaderboard } from '../post-D6n4Vszs.js';
3
+ import { A as AuthPayloadType, R as RefreshTokenPayloadType, S as SafeUserType, a as RedeemRewardResponse, P as PartnerType, b as ResourceByUser, c as AdType, E as EnumAdStatus, d as SubscriptionPlansResponse, e as SubscriptionStatusData, f as AppSettingsType, g as SchoolReturnType, h as SchoolType } from '../ad-DTOtubs3.js';
4
+ import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-DtxRUlrT.js';
5
+ 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-vWzQNI8w.js';
7
6
  import '../images/index.js';
8
7
  import 'react-hook-form';
9
8
 
@@ -136,7 +136,7 @@ import {
136
136
  useUpdateVendor,
137
137
  useUpdateVendorInfo,
138
138
  useValidateVerificationToken
139
- } from "../chunk-3AI2ROPT.mjs";
139
+ } from "../chunk-TIXEG66V.mjs";
140
140
  import "../chunk-4SNW63TJ.mjs";
141
141
  export {
142
142
  useAddParticipantToChat,
@@ -387,12 +387,6 @@ var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.j
387
387
  var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
388
388
  var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
389
389
  var import_utc = __toESM(require("dayjs/plugin/utc.js"));
390
- var dateFormat = "DD-MM-YYYY";
391
- var timeFormat = "HH:mm";
392
- import_dayjs.default.extend(import_customParseFormat.default);
393
- import_dayjs.default.extend(import_utc.default);
394
- import_dayjs.default.extend(import_timezone.default);
395
- import_dayjs.default.extend(import_isSameOrAfter.default);
396
390
 
397
391
  // src/types/ad.ts
398
392
  var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
@@ -517,6 +511,22 @@ var PostTypeLabels = {
517
511
  ["play_and_win" /* PLAY_AND_WIN */]: "Play & Win"
518
512
  };
519
513
 
514
+ // src/utils/date.ts
515
+ var dateFormat = "DD-MM-YYYY";
516
+ var timeFormat = "HH:mm";
517
+ import_dayjs.default.extend(import_customParseFormat.default);
518
+ import_dayjs.default.extend(import_utc.default);
519
+ import_dayjs.default.extend(import_timezone.default);
520
+ import_dayjs.default.extend(import_isSameOrAfter.default);
521
+ var futureTimePeriods = mapArrayToOptions(
522
+ Object.values(EnumEventDateStatus)
523
+ ).filter(
524
+ (period) => period.value !== "Starting_Soon" /* STARTING_SOON */ && period.value !== "Canceled" /* CANCELED */ && period.value !== "Rescheduled" /* RE_SCHEDULED */ && period.value !== "Started" /* STARTED */ && period.value !== "Ended" /* ENDED */ && period.value !== "Invalid" /* INVALID */
525
+ ).map((period) => ({
526
+ label: period.value.replaceAll("_", " "),
527
+ value: period.value
528
+ }));
529
+
520
530
  // src/utils/school.ts
521
531
  var SCHOOL_MIN_STUDENT_COUNT = 300;
522
532
 
@@ -2628,6 +2638,12 @@ var EVENT_LIST_ITEM = import_client2.gql`
2628
2638
  ${RESOURCE_IMAGE_FIELDS_FRAGMENT}
2629
2639
  ${RELATION_DATES_FRAGMENT}
2630
2640
  `;
2641
+ var RELATED_POST_FIELDS_FRAGMENT = import_client2.gql`
2642
+ fragment RelatedPostFields on RelatedPostType {
2643
+ postId
2644
+ postType
2645
+ }
2646
+ `;
2631
2647
 
2632
2648
  // src/graphql/queries/event.ts
2633
2649
  var EVENT_INFO = import_client3.gql`
@@ -2719,6 +2735,9 @@ var EVENT = import_client3.gql`
2719
2735
  rating
2720
2736
  reviewCount
2721
2737
  rainOrShine
2738
+ relatedPost {
2739
+ ...RelatedPostFields
2740
+ }
2722
2741
  socialMedia {
2723
2742
  ...SocialMediaFields
2724
2743
  }
@@ -2738,6 +2757,7 @@ var EVENT = import_client3.gql`
2738
2757
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2739
2758
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2740
2759
  ${RELATION_DATES_FRAGMENT}
2760
+ ${RELATED_POST_FIELDS_FRAGMENT}
2741
2761
  `;
2742
2762
  var GET_EVENTS = import_client3.gql`
2743
2763
  query getEvents($dateStatus: EventDateStatusEnumType) {
@@ -2907,6 +2927,9 @@ var VENDOR = import_client4.gql`
2907
2927
  rating
2908
2928
  region
2909
2929
  reviewCount
2930
+ relatedPost {
2931
+ ...RelatedPostFields
2932
+ }
2910
2933
  relations {
2911
2934
  relationId
2912
2935
  relationDates {
@@ -2935,6 +2958,7 @@ var VENDOR = import_client4.gql`
2935
2958
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
2936
2959
  ${TERMS_AGREEMENT_FIELDS_FRAGMENT}
2937
2960
  ${RELATION_DATES_FRAGMENT}
2961
+ ${RELATED_POST_FIELDS_FRAGMENT}
2938
2962
  `;
2939
2963
  var VENDOR_ATTRIBUTES_FRAGMENT = import_client4.gql`
2940
2964
  fragment VendorAttributesFields on VendorAttributesType {
@@ -3434,6 +3458,9 @@ var PARTNER = import_client16.gql`
3434
3458
  rating
3435
3459
  region
3436
3460
  reviewCount
3461
+ relatedPost {
3462
+ ...RelatedPostFields
3463
+ }
3437
3464
  socialMedia {
3438
3465
  ...SocialMediaFields
3439
3466
  }
@@ -3450,6 +3477,7 @@ var PARTNER = import_client16.gql`
3450
3477
  ${POSTER_USAGE_FIELDS_FRAGMENT}
3451
3478
  ${SOCIAL_MEDIA_FIELDS_FRAGMENT}
3452
3479
  ${CONTACT_DETAILS_FIELDS_FRAGMENT}
3480
+ ${RELATED_POST_FIELDS_FRAGMENT}
3453
3481
  `;
3454
3482
  var GET_PARTNERS = import_client16.gql`
3455
3483
  query getPartners {