@timardex/cluemart-shared 1.5.739 → 1.5.741
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/{post-DmsQS24-.d.ts → ad-CqfSmtG_.d.ts} +2 -168
- package/dist/{post-C3-IUdTA.d.mts → ad-sgD-lSbO.d.mts} +2 -168
- package/dist/{chunk-XWOFIZ5F.mjs → chunk-7JDAKGGH.mjs} +8 -8
- package/dist/chunk-7JDAKGGH.mjs.map +1 -0
- package/dist/{chunk-5SCGH7UX.mjs → chunk-7VNXO63T.mjs} +108 -6
- package/dist/chunk-7VNXO63T.mjs.map +1 -0
- package/dist/{chunk-6IEQBYEB.mjs → chunk-L5BYCXXP.mjs} +2 -2
- package/dist/{chunk-HGS6TJTA.mjs → chunk-VPYYAF3L.mjs} +131 -113
- package/dist/chunk-VPYYAF3L.mjs.map +1 -0
- package/dist/formFields/index.cjs +44 -4
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.mjs +3 -3
- package/dist/graphql/index.d.mts +2 -2
- package/dist/graphql/index.d.ts +2 -2
- package/dist/hooks/index.cjs +79 -66
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +2 -2
- package/dist/hooks/index.d.ts +2 -2
- package/dist/hooks/index.mjs +11 -12
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +225 -206
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +11 -6
- package/dist/index.d.ts +11 -6
- package/dist/index.mjs +223 -206
- package/dist/index.mjs.map +1 -1
- package/dist/post-CdLrXuH1.d.mts +279 -0
- package/dist/post-D6n4Vszs.d.ts +279 -0
- package/dist/sharing/index.cjs +103 -63
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +2 -2
- package/dist/sharing/index.d.ts +2 -2
- package/dist/sharing/index.mjs +3 -3
- package/dist/types/index.cjs +3 -3
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.mjs +2 -4
- package/dist/utils/index.cjs +179 -135
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +7 -2
- package/dist/utils/index.d.ts +7 -2
- package/dist/utils/index.mjs +6 -2
- package/package.json +1 -1
- package/dist/chunk-5SCGH7UX.mjs.map +0 -1
- package/dist/chunk-HGS6TJTA.mjs.map +0 -1
- package/dist/chunk-HV5AID7P.mjs +0 -105
- package/dist/chunk-HV5AID7P.mjs.map +0 -1
- package/dist/chunk-XWOFIZ5F.mjs.map +0 -1
- package/dist/dailyClue-CvhLv9hJ.d.mts +0 -111
- package/dist/dailyClue-CvhLv9hJ.d.ts +0 -111
- /package/dist/{chunk-6IEQBYEB.mjs.map → chunk-L5BYCXXP.mjs.map} +0 -0
|
@@ -43,9 +43,9 @@ import {
|
|
|
43
43
|
vendorStallSize,
|
|
44
44
|
vendorStartDateFields,
|
|
45
45
|
vendorTable
|
|
46
|
-
} from "../chunk-
|
|
47
|
-
import "../chunk-
|
|
48
|
-
import "../chunk-
|
|
46
|
+
} from "../chunk-L5BYCXXP.mjs";
|
|
47
|
+
import "../chunk-VPYYAF3L.mjs";
|
|
48
|
+
import "../chunk-7VNXO63T.mjs";
|
|
49
49
|
import "../chunk-4SNW63TJ.mjs";
|
|
50
50
|
export {
|
|
51
51
|
availableCategories,
|
package/dist/graphql/index.d.mts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
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
4
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CZqXBve8.mjs';
|
|
5
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';
|
|
6
7
|
import '../images/index.mjs';
|
|
7
|
-
import '../dailyClue-CvhLv9hJ.mjs';
|
|
8
8
|
import 'react-hook-form';
|
|
9
9
|
|
|
10
10
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/graphql/index.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
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
4
|
import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-CjJdhVR7.js';
|
|
5
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';
|
|
6
7
|
import '../images/index.js';
|
|
7
|
-
import '../dailyClue-CvhLv9hJ.js';
|
|
8
8
|
import 'react-hook-form';
|
|
9
9
|
|
|
10
10
|
declare const useAdminUpdateResourceType: () => {
|
package/dist/hooks/index.cjs
CHANGED
|
@@ -387,12 +387,58 @@ 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
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
390
|
+
|
|
391
|
+
// src/types/ad.ts
|
|
392
|
+
var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
|
|
393
|
+
EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
|
|
394
|
+
EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
|
|
395
|
+
EnumAdShowOn2["PARTNERS_PAGE"] = "Partners_page";
|
|
396
|
+
EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
|
|
397
|
+
return EnumAdShowOn2;
|
|
398
|
+
})(EnumAdShowOn || {});
|
|
399
|
+
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
400
|
+
EnumAdStatus2["ACTIVE"] = "Active";
|
|
401
|
+
EnumAdStatus2["PAUSED"] = "Paused";
|
|
402
|
+
EnumAdStatus2["EXPIRED"] = "Expired";
|
|
403
|
+
return EnumAdStatus2;
|
|
404
|
+
})(EnumAdStatus || {});
|
|
405
|
+
var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
|
|
406
|
+
EnumAdType2["SPONSORED"] = "Sponsored";
|
|
407
|
+
EnumAdType2["FREE"] = "Free";
|
|
408
|
+
return EnumAdType2;
|
|
409
|
+
})(EnumAdType || {});
|
|
410
|
+
var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
|
|
411
|
+
EnumAdStyle2["BLOOM"] = "Bloom";
|
|
412
|
+
EnumAdStyle2["RISE"] = "Rise";
|
|
413
|
+
return EnumAdStyle2;
|
|
414
|
+
})(EnumAdStyle || {});
|
|
415
|
+
|
|
416
|
+
// src/types/post.ts
|
|
417
|
+
var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
418
|
+
EnumPostType2["MARKET_FACES"] = "market_faces";
|
|
419
|
+
EnumPostType2["CLUE_BITES"] = "clue_bites";
|
|
420
|
+
EnumPostType2["PLAY_AND_WIN"] = "play_and_win";
|
|
421
|
+
return EnumPostType2;
|
|
422
|
+
})(EnumPostType || {});
|
|
423
|
+
var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
|
|
424
|
+
EnumPostContentType2["GAME"] = "game";
|
|
425
|
+
EnumPostContentType2["IMAGE"] = "image";
|
|
426
|
+
EnumPostContentType2["LIST"] = "list";
|
|
427
|
+
EnumPostContentType2["TEXTAREA"] = "textarea";
|
|
428
|
+
EnumPostContentType2["VIDEO"] = "video";
|
|
429
|
+
return EnumPostContentType2;
|
|
430
|
+
})(EnumPostContentType || {});
|
|
431
|
+
|
|
432
|
+
// src/types/subscription.ts
|
|
433
|
+
var TIER_FROM_LICENCE = {
|
|
434
|
+
["pro_event" /* PRO_EVENT */]: "pro",
|
|
435
|
+
["pro_plus_event" /* PRO_PLUS_EVENT */]: "pro_plus",
|
|
436
|
+
["pro_plus_vendor" /* PRO_PLUS_VENDOR */]: "pro_plus",
|
|
437
|
+
["pro_vendor" /* PRO_VENDOR */]: "pro",
|
|
438
|
+
["standard_event" /* STANDARD_EVENT */]: "standard",
|
|
439
|
+
["standard_partner" /* STANDARD_PARTNER */]: "standard",
|
|
440
|
+
["standard_vendor" /* STANDARD_VENDOR */]: "standard"
|
|
441
|
+
};
|
|
396
442
|
|
|
397
443
|
// src/utils/utils.ts
|
|
398
444
|
var mapArrayToOptions = (items) => items.map((item) => ({
|
|
@@ -459,6 +505,27 @@ var rewardNiceNames = {
|
|
|
459
505
|
points: 500
|
|
460
506
|
}
|
|
461
507
|
};
|
|
508
|
+
var PostTypeLabels = {
|
|
509
|
+
["market_faces" /* MARKET_FACES */]: "Market Faces",
|
|
510
|
+
["clue_bites" /* CLUE_BITES */]: "Clue Bites",
|
|
511
|
+
["play_and_win" /* PLAY_AND_WIN */]: "Play & Win"
|
|
512
|
+
};
|
|
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
|
+
}));
|
|
462
529
|
|
|
463
530
|
// src/utils/school.ts
|
|
464
531
|
var SCHOOL_MIN_STUDENT_COUNT = 300;
|
|
@@ -932,33 +999,6 @@ var validateVerificationTokenSchema = yup5.object().shape({
|
|
|
932
999
|
|
|
933
1000
|
// src/yupSchema/ad.ts
|
|
934
1001
|
var yup6 = __toESM(require("yup"));
|
|
935
|
-
|
|
936
|
-
// src/types/ad.ts
|
|
937
|
-
var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
|
|
938
|
-
EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
|
|
939
|
-
EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
|
|
940
|
-
EnumAdShowOn2["PARTNERS_PAGE"] = "Partners_page";
|
|
941
|
-
EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
|
|
942
|
-
return EnumAdShowOn2;
|
|
943
|
-
})(EnumAdShowOn || {});
|
|
944
|
-
var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
|
|
945
|
-
EnumAdStatus2["ACTIVE"] = "Active";
|
|
946
|
-
EnumAdStatus2["PAUSED"] = "Paused";
|
|
947
|
-
EnumAdStatus2["EXPIRED"] = "Expired";
|
|
948
|
-
return EnumAdStatus2;
|
|
949
|
-
})(EnumAdStatus || {});
|
|
950
|
-
var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
|
|
951
|
-
EnumAdType2["SPONSORED"] = "Sponsored";
|
|
952
|
-
EnumAdType2["FREE"] = "Free";
|
|
953
|
-
return EnumAdType2;
|
|
954
|
-
})(EnumAdType || {});
|
|
955
|
-
var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
|
|
956
|
-
EnumAdStyle2["BLOOM"] = "Bloom";
|
|
957
|
-
EnumAdStyle2["RISE"] = "Rise";
|
|
958
|
-
return EnumAdStyle2;
|
|
959
|
-
})(EnumAdStyle || {});
|
|
960
|
-
|
|
961
|
-
// src/yupSchema/ad.ts
|
|
962
1002
|
var adResourceSchema = yup6.object({
|
|
963
1003
|
adDescription: yup6.string().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
|
|
964
1004
|
adImage: yup6.string().required("Ad image is required"),
|
|
@@ -4939,16 +4979,16 @@ var RESOURCE_SHARE_TYPES = [
|
|
|
4939
4979
|
"partner"
|
|
4940
4980
|
];
|
|
4941
4981
|
var POST_SHARE_RESOURCE_TYPES = [
|
|
4942
|
-
"
|
|
4943
|
-
"
|
|
4944
|
-
"
|
|
4982
|
+
"market_faces",
|
|
4983
|
+
"clue_bites",
|
|
4984
|
+
"play_and_win"
|
|
4945
4985
|
];
|
|
4946
4986
|
var SHARE_RESOURCE_LABEL = {
|
|
4947
4987
|
[RELATION_SHARE_APPLICATION]: "Application",
|
|
4948
4988
|
[RELATION_SHARE_INVITATION]: "Invitation",
|
|
4949
|
-
|
|
4950
|
-
|
|
4951
|
-
|
|
4989
|
+
clue_bites: "Clue Bites",
|
|
4990
|
+
market_faces: "Market Faces",
|
|
4991
|
+
play_and_win: "Play & Win",
|
|
4952
4992
|
market: "Market",
|
|
4953
4993
|
partner: "Partner",
|
|
4954
4994
|
stallholder: "Stallholder"
|
|
@@ -4965,33 +5005,6 @@ var SHARE_TYPE_PATH_REGEX = [
|
|
|
4965
5005
|
RELATION_SHARE_INVITATION
|
|
4966
5006
|
].join("|");
|
|
4967
5007
|
|
|
4968
|
-
// src/types/post.ts
|
|
4969
|
-
var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
|
|
4970
|
-
EnumPostType2["DAILY_MEETS"] = "daily_meets";
|
|
4971
|
-
EnumPostType2["DAILY_TIPS"] = "daily_tips";
|
|
4972
|
-
EnumPostType2["DAILY_GAMES"] = "daily_games";
|
|
4973
|
-
return EnumPostType2;
|
|
4974
|
-
})(EnumPostType || {});
|
|
4975
|
-
var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
|
|
4976
|
-
EnumPostContentType2["GAME"] = "game";
|
|
4977
|
-
EnumPostContentType2["IMAGE"] = "image";
|
|
4978
|
-
EnumPostContentType2["LIST"] = "list";
|
|
4979
|
-
EnumPostContentType2["TEXTAREA"] = "textarea";
|
|
4980
|
-
EnumPostContentType2["VIDEO"] = "video";
|
|
4981
|
-
return EnumPostContentType2;
|
|
4982
|
-
})(EnumPostContentType || {});
|
|
4983
|
-
|
|
4984
|
-
// src/types/subscription.ts
|
|
4985
|
-
var TIER_FROM_LICENCE = {
|
|
4986
|
-
["pro_event" /* PRO_EVENT */]: "pro",
|
|
4987
|
-
["pro_plus_event" /* PRO_PLUS_EVENT */]: "pro_plus",
|
|
4988
|
-
["pro_plus_vendor" /* PRO_PLUS_VENDOR */]: "pro_plus",
|
|
4989
|
-
["pro_vendor" /* PRO_VENDOR */]: "pro",
|
|
4990
|
-
["standard_event" /* STANDARD_EVENT */]: "standard",
|
|
4991
|
-
["standard_partner" /* STANDARD_PARTNER */]: "standard",
|
|
4992
|
-
["standard_vendor" /* STANDARD_VENDOR */]: "standard"
|
|
4993
|
-
};
|
|
4994
|
-
|
|
4995
5008
|
// src/yupSchema/post.ts
|
|
4996
5009
|
var postContentSchema = yup8.object().shape({
|
|
4997
5010
|
contentData: yup8.mixed().optional().nullable(),
|