@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.
- package/dist/{ad-CqfSmtG_.d.ts → ad-DTOtubs3.d.ts} +1 -1
- package/dist/{ad-sgD-lSbO.d.mts → ad-DpwV6VZX.d.mts} +1 -1
- package/dist/{chunk-6OBMKN7F.mjs → chunk-64ZADXXH.mjs} +2 -2
- package/dist/{chunk-XWFE6U3E.mjs → chunk-K5OWNJY5.mjs} +131 -119
- package/dist/chunk-K5OWNJY5.mjs.map +1 -0
- package/dist/{chunk-6YISZ3OD.mjs → chunk-KXQLOILF.mjs} +2 -2
- package/dist/{chunk-7VNXO63T.mjs → chunk-LNIT5OS3.mjs} +1 -1
- package/dist/chunk-LNIT5OS3.mjs.map +1 -0
- package/dist/{chunk-3AI2ROPT.mjs → chunk-TIXEG66V.mjs} +19 -1
- package/dist/chunk-TIXEG66V.mjs.map +1 -0
- package/dist/{contactUs-DA3p41Uq.d.ts → contactUs-BK5MKYPx.d.ts} +1 -1
- package/dist/{contactUs-B6lQQq-x.d.mts → contactUs-CRypzI-A.d.mts} +1 -1
- package/dist/formFields/index.cjs +28 -4
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/{global-BEUzBSyY.d.mts → global-q9JjONd1.d.mts} +280 -1
- package/dist/{global-585slmSH.d.ts → global-vWzQNI8w.d.ts} +280 -1
- package/dist/graphql/index.cjs +18 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +3 -4
- package/dist/graphql/index.d.ts +3 -4
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +34 -6
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +3 -4
- package/dist/hooks/index.d.ts +3 -4
- package/dist/hooks/index.mjs +5 -5
- package/dist/index.cjs +171 -141
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +922 -914
- package/dist/index.d.ts +922 -914
- package/dist/index.mjs +170 -141
- package/dist/index.mjs.map +1 -1
- package/dist/{resourceActivities-CZqXBve8.d.mts → resourceActivities-CpjJeH23.d.mts} +1 -1
- package/dist/{resourceActivities-CjJdhVR7.d.ts → resourceActivities-DtxRUlrT.d.ts} +1 -1
- package/dist/sharing/index.cjs +82 -58
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +5 -6
- package/dist/types/index.d.ts +5 -6
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +167 -141
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +6 -3
- package/dist/utils/index.d.ts +6 -3
- package/dist/utils/index.mjs +4 -2
- package/package.json +1 -1
- package/dist/chunk-3AI2ROPT.mjs.map +0 -1
- package/dist/chunk-7VNXO63T.mjs.map +0 -1
- package/dist/chunk-XWFE6U3E.mjs.map +0 -1
- package/dist/post-CdLrXuH1.d.mts +0 -279
- package/dist/post-D6n4Vszs.d.ts +0 -279
- /package/dist/{chunk-6OBMKN7F.mjs.map → chunk-64ZADXXH.mjs.map} +0 -0
- /package/dist/{chunk-6YISZ3OD.mjs.map → chunk-KXQLOILF.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -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-
|
|
4
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
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-
|
|
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
|
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -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-
|
|
4
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
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-
|
|
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
|
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -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 {
|