@timardex/cluemart-shared 1.5.738 → 1.5.740

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 (52) hide show
  1. package/dist/{post-DmsQS24-.d.ts → ad-CqfSmtG_.d.ts} +2 -168
  2. package/dist/{post-C3-IUdTA.d.mts → ad-sgD-lSbO.d.mts} +2 -168
  3. package/dist/{chunk-KINIHSDW.mjs → chunk-6OBMKN7F.mjs} +9 -9
  4. package/dist/chunk-6OBMKN7F.mjs.map +1 -0
  5. package/dist/{chunk-6IEQBYEB.mjs → chunk-6YISZ3OD.mjs} +2 -2
  6. package/dist/{chunk-5SCGH7UX.mjs → chunk-7VNXO63T.mjs} +108 -6
  7. package/dist/chunk-7VNXO63T.mjs.map +1 -0
  8. package/dist/{chunk-HGS6TJTA.mjs → chunk-XWFE6U3E.mjs} +8 -2
  9. package/dist/chunk-XWFE6U3E.mjs.map +1 -0
  10. package/dist/formFields/index.cjs +16 -0
  11. package/dist/formFields/index.cjs.map +1 -1
  12. package/dist/formFields/index.mjs +3 -3
  13. package/dist/graphql/index.d.mts +2 -2
  14. package/dist/graphql/index.d.ts +2 -2
  15. package/dist/hooks/index.cjs +63 -60
  16. package/dist/hooks/index.cjs.map +1 -1
  17. package/dist/hooks/index.d.mts +2 -2
  18. package/dist/hooks/index.d.ts +2 -2
  19. package/dist/hooks/index.mjs +11 -12
  20. package/dist/hooks/index.mjs.map +1 -1
  21. package/dist/index.cjs +115 -108
  22. package/dist/index.cjs.map +1 -1
  23. package/dist/index.d.mts +8 -7
  24. package/dist/index.d.ts +8 -7
  25. package/dist/index.mjs +114 -108
  26. package/dist/index.mjs.map +1 -1
  27. package/dist/post-CdLrXuH1.d.mts +279 -0
  28. package/dist/post-D6n4Vszs.d.ts +279 -0
  29. package/dist/sharing/index.cjs +23 -7
  30. package/dist/sharing/index.cjs.map +1 -1
  31. package/dist/sharing/index.d.mts +3 -3
  32. package/dist/sharing/index.d.ts +3 -3
  33. package/dist/sharing/index.mjs +3 -3
  34. package/dist/types/index.cjs +3 -3
  35. package/dist/types/index.cjs.map +1 -1
  36. package/dist/types/index.d.mts +2 -2
  37. package/dist/types/index.d.ts +2 -2
  38. package/dist/types/index.mjs +2 -4
  39. package/dist/utils/index.cjs +18 -0
  40. package/dist/utils/index.cjs.map +1 -1
  41. package/dist/utils/index.d.mts +3 -2
  42. package/dist/utils/index.d.ts +3 -2
  43. package/dist/utils/index.mjs +4 -2
  44. package/package.json +1 -1
  45. package/dist/chunk-5SCGH7UX.mjs.map +0 -1
  46. package/dist/chunk-HGS6TJTA.mjs.map +0 -1
  47. package/dist/chunk-HV5AID7P.mjs +0 -105
  48. package/dist/chunk-HV5AID7P.mjs.map +0 -1
  49. package/dist/chunk-KINIHSDW.mjs.map +0 -1
  50. package/dist/dailyClue-CvhLv9hJ.d.mts +0 -111
  51. package/dist/dailyClue-CvhLv9hJ.d.ts +0 -111
  52. /package/dist/{chunk-6IEQBYEB.mjs.map → chunk-6YISZ3OD.mjs.map} +0 -0
@@ -43,9 +43,9 @@ import {
43
43
  vendorStallSize,
44
44
  vendorStartDateFields,
45
45
  vendorTable
46
- } from "../chunk-6IEQBYEB.mjs";
47
- import "../chunk-HGS6TJTA.mjs";
48
- import "../chunk-HV5AID7P.mjs";
46
+ } from "../chunk-6YISZ3OD.mjs";
47
+ import "../chunk-XWFE6U3E.mjs";
48
+ import "../chunk-7VNXO63T.mjs";
49
49
  import "../chunk-4SNW63TJ.mjs";
50
50
  export {
51
51
  availableCategories,
@@ -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 PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-C3-IUdTA.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
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: () => {
@@ -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 PostType, g as EnumPostType, h as AppSettingsType, G as GameDocType, i as GameLeaderboard, j as SchoolReturnType, k as SchoolType } from '../post-DmsQS24-.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
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: () => {
@@ -394,6 +394,58 @@ import_dayjs.default.extend(import_utc.default);
394
394
  import_dayjs.default.extend(import_timezone.default);
395
395
  import_dayjs.default.extend(import_isSameOrAfter.default);
396
396
 
397
+ // src/types/ad.ts
398
+ var EnumAdShowOn = /* @__PURE__ */ ((EnumAdShowOn2) => {
399
+ EnumAdShowOn2["EVENTS_PAGE"] = "Events_page";
400
+ EnumAdShowOn2["FRONT_PAGE"] = "Front_page";
401
+ EnumAdShowOn2["PARTNERS_PAGE"] = "Partners_page";
402
+ EnumAdShowOn2["VENDORS_PAGE"] = "Vendors_page";
403
+ return EnumAdShowOn2;
404
+ })(EnumAdShowOn || {});
405
+ var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
406
+ EnumAdStatus2["ACTIVE"] = "Active";
407
+ EnumAdStatus2["PAUSED"] = "Paused";
408
+ EnumAdStatus2["EXPIRED"] = "Expired";
409
+ return EnumAdStatus2;
410
+ })(EnumAdStatus || {});
411
+ var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
412
+ EnumAdType2["SPONSORED"] = "Sponsored";
413
+ EnumAdType2["FREE"] = "Free";
414
+ return EnumAdType2;
415
+ })(EnumAdType || {});
416
+ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
417
+ EnumAdStyle2["BLOOM"] = "Bloom";
418
+ EnumAdStyle2["RISE"] = "Rise";
419
+ return EnumAdStyle2;
420
+ })(EnumAdStyle || {});
421
+
422
+ // src/types/post.ts
423
+ var EnumPostType = /* @__PURE__ */ ((EnumPostType2) => {
424
+ EnumPostType2["MARKET_FACES"] = "market_faces";
425
+ EnumPostType2["CLUE_BITES"] = "clue_bites";
426
+ EnumPostType2["PLAY_AND_WIN"] = "play_and_win";
427
+ return EnumPostType2;
428
+ })(EnumPostType || {});
429
+ var EnumPostContentType = /* @__PURE__ */ ((EnumPostContentType2) => {
430
+ EnumPostContentType2["GAME"] = "game";
431
+ EnumPostContentType2["IMAGE"] = "image";
432
+ EnumPostContentType2["LIST"] = "list";
433
+ EnumPostContentType2["TEXTAREA"] = "textarea";
434
+ EnumPostContentType2["VIDEO"] = "video";
435
+ return EnumPostContentType2;
436
+ })(EnumPostContentType || {});
437
+
438
+ // src/types/subscription.ts
439
+ var TIER_FROM_LICENCE = {
440
+ ["pro_event" /* PRO_EVENT */]: "pro",
441
+ ["pro_plus_event" /* PRO_PLUS_EVENT */]: "pro_plus",
442
+ ["pro_plus_vendor" /* PRO_PLUS_VENDOR */]: "pro_plus",
443
+ ["pro_vendor" /* PRO_VENDOR */]: "pro",
444
+ ["standard_event" /* STANDARD_EVENT */]: "standard",
445
+ ["standard_partner" /* STANDARD_PARTNER */]: "standard",
446
+ ["standard_vendor" /* STANDARD_VENDOR */]: "standard"
447
+ };
448
+
397
449
  // src/utils/utils.ts
398
450
  var mapArrayToOptions = (items) => items.map((item) => ({
399
451
  label: item,
@@ -459,6 +511,11 @@ var rewardNiceNames = {
459
511
  points: 500
460
512
  }
461
513
  };
514
+ var PostTypeLabels = {
515
+ ["market_faces" /* MARKET_FACES */]: "Market Faces",
516
+ ["clue_bites" /* CLUE_BITES */]: "Clue Bites",
517
+ ["play_and_win" /* PLAY_AND_WIN */]: "Play & Win"
518
+ };
462
519
 
463
520
  // src/utils/school.ts
464
521
  var SCHOOL_MIN_STUDENT_COUNT = 300;
@@ -932,33 +989,6 @@ var validateVerificationTokenSchema = yup5.object().shape({
932
989
 
933
990
  // src/yupSchema/ad.ts
934
991
  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
992
  var adResourceSchema = yup6.object({
963
993
  adDescription: yup6.string().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
964
994
  adImage: yup6.string().required("Ad image is required"),
@@ -4939,16 +4969,16 @@ var RESOURCE_SHARE_TYPES = [
4939
4969
  "partner"
4940
4970
  ];
4941
4971
  var POST_SHARE_RESOURCE_TYPES = [
4942
- "daily_meets",
4943
- "daily_tips",
4944
- "daily_games"
4972
+ "market_faces",
4973
+ "clue_bites",
4974
+ "play_and_win"
4945
4975
  ];
4946
4976
  var SHARE_RESOURCE_LABEL = {
4947
4977
  [RELATION_SHARE_APPLICATION]: "Application",
4948
4978
  [RELATION_SHARE_INVITATION]: "Invitation",
4949
- daily_games: "Daily Game",
4950
- daily_meets: "Daily Meet",
4951
- daily_tips: "Daily Tip",
4979
+ clue_bites: "Clue Bites",
4980
+ market_faces: "Market Faces",
4981
+ play_and_win: "Play & Win",
4952
4982
  market: "Market",
4953
4983
  partner: "Partner",
4954
4984
  stallholder: "Stallholder"
@@ -4965,33 +4995,6 @@ var SHARE_TYPE_PATH_REGEX = [
4965
4995
  RELATION_SHARE_INVITATION
4966
4996
  ].join("|");
4967
4997
 
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
4998
  // src/yupSchema/post.ts
4996
4999
  var postContentSchema = yup8.object().shape({
4997
5000
  contentData: yup8.mixed().optional().nullable(),