@timardex/cluemart-shared 1.5.794 → 1.5.796
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-kAjUceeE.d.mts → ad-CnXQqP4h.d.mts} +1 -1
- package/dist/{ad-BmDOVKmE.d.ts → ad-jTYE2A1Z.d.ts} +1 -1
- package/dist/{affiliate-ISt4ujwI.d.mts → affiliate-BDoo69JY.d.mts} +1 -1
- package/dist/{affiliate-C09PnHJx.d.ts → affiliate-BY-BlC9i.d.ts} +1 -1
- package/dist/{chunk-XY5XRXR3.mjs → chunk-6UP53CPG.mjs} +1 -1
- package/dist/chunk-6UP53CPG.mjs.map +1 -0
- package/dist/{chunk-S7C3MFZF.mjs → chunk-E7ZEBZ3O.mjs} +104 -241
- package/dist/chunk-E7ZEBZ3O.mjs.map +1 -0
- package/dist/{chunk-CID7QC75.mjs → chunk-JD7CKX4S.mjs} +2 -2
- package/dist/{chunk-KKPVTN4B.mjs → chunk-KSFDYCSS.mjs} +2 -2
- package/dist/{chunk-HO7KOQ6F.mjs → chunk-LHT6WAM2.mjs} +147 -5
- package/dist/chunk-LHT6WAM2.mjs.map +1 -0
- package/dist/{chunk-2US6BYNF.mjs → chunk-R2XNULRY.mjs} +2 -1
- package/dist/chunk-R2XNULRY.mjs.map +1 -0
- package/dist/{contactUs-DGrDzJaM.d.mts → contactUs-Dr-IbmG5.d.mts} +1 -1
- package/dist/{contactUs-H7799pWe.d.ts → contactUs-RKkIL-nI.d.ts} +1 -1
- package/dist/formFields/index.cjs +20 -18
- 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 +4 -4
- package/dist/{global-fKbMmluy.d.ts → global-BeBuHWbg.d.ts} +1 -0
- package/dist/{global-BUUfmCo7.d.mts → global-C8npu_7P.d.mts} +1 -0
- package/dist/graphql/index.cjs +1 -0
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +4 -4
- package/dist/graphql/index.d.ts +4 -4
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +23 -20
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -4
- package/dist/hooks/index.d.ts +4 -4
- package/dist/hooks/index.mjs +12 -12
- package/dist/index.cjs +158 -155
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +6 -6
- package/dist/index.d.ts +6 -6
- package/dist/index.mjs +158 -155
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-BL_12IAo.d.ts → resourceActivities-CJrM2qDC.d.ts} +1 -1
- package/dist/{resourceActivities-zczOntNk.d.mts → resourceActivities-lFB7B-Y9.d.mts} +1 -1
- package/dist/sharing/index.cjs +104 -317
- 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 +2 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +6 -6
- package/dist/types/index.d.ts +6 -6
- package/dist/types/index.mjs +1 -1
- package/dist/utils/index.cjs +157 -155
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +7 -8
- package/dist/utils/index.d.ts +7 -8
- package/dist/utils/index.mjs +25 -25
- package/package.json +1 -1
- package/dist/chunk-2US6BYNF.mjs.map +0 -1
- package/dist/chunk-HO7KOQ6F.mjs.map +0 -1
- package/dist/chunk-S7C3MFZF.mjs.map +0 -1
- package/dist/chunk-XY5XRXR3.mjs.map +0 -1
- /package/dist/{chunk-CID7QC75.mjs.map → chunk-JD7CKX4S.mjs.map} +0 -0
- /package/dist/{chunk-KKPVTN4B.mjs.map → chunk-KSFDYCSS.mjs.map} +0 -0
package/dist/graphql/index.d.mts
CHANGED
|
@@ -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, 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-
|
|
5
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
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-
|
|
7
|
-
import { A as AffiliateType } from '../affiliate-
|
|
4
|
+
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-CnXQqP4h.mjs';
|
|
5
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-lFB7B-Y9.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-C8npu_7P.mjs';
|
|
7
|
+
import { A as AffiliateType } from '../affiliate-BDoo69JY.mjs';
|
|
8
8
|
import '../images/index.mjs';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -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, 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-
|
|
5
|
-
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-
|
|
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-
|
|
7
|
-
import { A as AffiliateType } from '../affiliate-
|
|
4
|
+
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-jTYE2A1Z.js';
|
|
5
|
+
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CJrM2qDC.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-BeBuHWbg.js';
|
|
7
|
+
import { A as AffiliateType } from '../affiliate-BY-BlC9i.js';
|
|
8
8
|
import '../images/index.js';
|
|
9
9
|
import 'react-hook-form';
|
|
10
10
|
|
package/dist/graphql/index.mjs
CHANGED
package/dist/hooks/index.cjs
CHANGED
|
@@ -396,6 +396,28 @@ var import_isSameOrAfter = __toESM(require("dayjs/plugin/isSameOrAfter.js"));
|
|
|
396
396
|
var import_timezone = __toESM(require("dayjs/plugin/timezone.js"));
|
|
397
397
|
var import_utc = __toESM(require("dayjs/plugin/utc.js"));
|
|
398
398
|
|
|
399
|
+
// src/utils/mapArrayToOptions.ts
|
|
400
|
+
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
401
|
+
label: item,
|
|
402
|
+
value: item
|
|
403
|
+
}));
|
|
404
|
+
|
|
405
|
+
// src/utils/date.ts
|
|
406
|
+
var dateFormat = "DD-MM-YYYY";
|
|
407
|
+
var timeFormat = "HH:mm";
|
|
408
|
+
import_dayjs.default.extend(import_customParseFormat.default);
|
|
409
|
+
import_dayjs.default.extend(import_utc.default);
|
|
410
|
+
import_dayjs.default.extend(import_timezone.default);
|
|
411
|
+
import_dayjs.default.extend(import_isSameOrAfter.default);
|
|
412
|
+
var futureTimePeriods = mapArrayToOptions(
|
|
413
|
+
Object.values(EnumEventDateStatus)
|
|
414
|
+
).filter(
|
|
415
|
+
(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 */
|
|
416
|
+
).map((period) => ({
|
|
417
|
+
label: period.value.replaceAll("_", " "),
|
|
418
|
+
value: period.value
|
|
419
|
+
}));
|
|
420
|
+
|
|
399
421
|
// src/sharing/relationShareTypes.ts
|
|
400
422
|
var RELATION_SHARE_INVITATION = "invitation";
|
|
401
423
|
var RELATION_SHARE_APPLICATION = "application";
|
|
@@ -501,10 +523,6 @@ var TIER_FROM_LICENCE = {
|
|
|
501
523
|
};
|
|
502
524
|
|
|
503
525
|
// src/utils/utils.ts
|
|
504
|
-
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
505
|
-
label: item,
|
|
506
|
-
value: item
|
|
507
|
-
}));
|
|
508
526
|
var statusOptions = [
|
|
509
527
|
...Object.values(EnumInviteStatus).map((status) => ({
|
|
510
528
|
label: status,
|
|
@@ -574,22 +592,6 @@ var PostTypeLabels = {
|
|
|
574
592
|
var CM_SCHOOL_PROMO_CODE = `${PROMO_CODE_PREFIX}SCHOOL`;
|
|
575
593
|
var CM_AFFILIATE_PROMO_CODE = `${PROMO_CODE_PREFIX}AFFILIATE`;
|
|
576
594
|
|
|
577
|
-
// src/utils/date.ts
|
|
578
|
-
var dateFormat = "DD-MM-YYYY";
|
|
579
|
-
var timeFormat = "HH:mm";
|
|
580
|
-
import_dayjs.default.extend(import_customParseFormat.default);
|
|
581
|
-
import_dayjs.default.extend(import_utc.default);
|
|
582
|
-
import_dayjs.default.extend(import_timezone.default);
|
|
583
|
-
import_dayjs.default.extend(import_isSameOrAfter.default);
|
|
584
|
-
var futureTimePeriods = mapArrayToOptions(
|
|
585
|
-
Object.values(EnumEventDateStatus)
|
|
586
|
-
).filter(
|
|
587
|
-
(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 */
|
|
588
|
-
).map((period) => ({
|
|
589
|
-
label: period.value.replaceAll("_", " "),
|
|
590
|
-
value: period.value
|
|
591
|
-
}));
|
|
592
|
-
|
|
593
595
|
// src/utils/affiliate.ts
|
|
594
596
|
var AFFILIATE_REWARDS = {
|
|
595
597
|
["NEW_EVENT_REGISTRATION" /* NEW_EVENT_REGISTRATION */]: {
|
|
@@ -2708,6 +2710,7 @@ var EVENT_LIST_ITEM = import_client.gql`
|
|
|
2708
2710
|
`;
|
|
2709
2711
|
var RELATED_POST_FIELDS_FRAGMENT = import_client.gql`
|
|
2710
2712
|
fragment RelatedPostFields on RelatedPostType {
|
|
2713
|
+
postActive
|
|
2711
2714
|
postId
|
|
2712
2715
|
postSlug
|
|
2713
2716
|
postType
|