@timardex/cluemart-shared 1.5.549 → 1.5.551

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 (48) hide show
  1. package/dist/{chunk-LOABFNIJ.mjs → chunk-5LODYRBR.mjs} +10 -16
  2. package/dist/chunk-5LODYRBR.mjs.map +1 -0
  3. package/dist/{chunk-Z3JWNX2U.mjs → chunk-DYUATO2Z.mjs} +12 -6
  4. package/dist/chunk-DYUATO2Z.mjs.map +1 -0
  5. package/dist/{chunk-L47NQHZ6.mjs → chunk-OVEYADVZ.mjs} +2 -2
  6. package/dist/{chunk-UBAAAYJY.mjs → chunk-SUCEE4LU.mjs} +15 -7
  7. package/dist/{chunk-UBAAAYJY.mjs.map → chunk-SUCEE4LU.mjs.map} +1 -1
  8. package/dist/{chunk-FICQ3PR5.mjs → chunk-ZOPHRV6M.mjs} +12 -2
  9. package/dist/chunk-ZOPHRV6M.mjs.map +1 -0
  10. package/dist/{game-1CSiEjlf.d.ts → dailyClue-CvOPk6am.d.mts} +12 -56
  11. package/dist/{game-BPtE3yaQ.d.mts → dailyClue-CvOPk6am.d.ts} +12 -56
  12. package/dist/formFields/index.cjs +4 -1
  13. package/dist/formFields/index.cjs.map +1 -1
  14. package/dist/formFields/index.mjs +3 -3
  15. package/dist/graphql/index.cjs +14 -6
  16. package/dist/graphql/index.cjs.map +1 -1
  17. package/dist/graphql/index.d.mts +2 -2
  18. package/dist/graphql/index.d.ts +2 -2
  19. package/dist/graphql/index.mjs +1 -1
  20. package/dist/hooks/index.cjs +25 -8
  21. package/dist/hooks/index.cjs.map +1 -1
  22. package/dist/hooks/index.d.mts +2 -2
  23. package/dist/hooks/index.d.ts +2 -2
  24. package/dist/hooks/index.mjs +10 -6
  25. package/dist/hooks/index.mjs.map +1 -1
  26. package/dist/index.cjs +45 -22
  27. package/dist/index.cjs.map +1 -1
  28. package/dist/index.d.mts +24 -13
  29. package/dist/index.d.ts +24 -13
  30. package/dist/index.mjs +43 -22
  31. package/dist/index.mjs.map +1 -1
  32. package/dist/{post-Lc5PrxY6.d.ts → post-B941IgWP.d.ts} +54 -4
  33. package/dist/{post-CY53UsA7.d.mts → post-C3L-bejc.d.mts} +54 -4
  34. package/dist/types/index.cjs +16 -12
  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 +3 -3
  39. package/dist/utils/index.cjs +15 -4
  40. package/dist/utils/index.cjs.map +1 -1
  41. package/dist/utils/index.d.mts +5 -2
  42. package/dist/utils/index.d.ts +5 -2
  43. package/dist/utils/index.mjs +6 -2
  44. package/package.json +1 -1
  45. package/dist/chunk-FICQ3PR5.mjs.map +0 -1
  46. package/dist/chunk-LOABFNIJ.mjs.map +0 -1
  47. package/dist/chunk-Z3JWNX2U.mjs.map +0 -1
  48. /package/dist/{chunk-L47NQHZ6.mjs.map → chunk-OVEYADVZ.mjs.map} +0 -0
@@ -2,10 +2,10 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.mjs';
3
3
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-B8dshdq5.mjs';
4
4
  import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-ClbRuePq.mjs';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, e as SchoolReturnType, f as SchoolType } from '../post-CY53UsA7.mjs';
6
- import { G as GameDocType, a as GameLeaderboard } from '../game-BPtE3yaQ.mjs';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-C3L-bejc.mjs';
7
6
  import 'react-hook-form';
8
7
  import '../images/index.mjs';
8
+ import '../dailyClue-CvOPk6am.mjs';
9
9
 
10
10
  declare const useAdminUpdateResourceType: () => {
11
11
  adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<{
@@ -2,10 +2,10 @@ import * as _apollo_client from '@apollo/client';
2
2
  import { EnumResourceType } from '../enums/index.js';
3
3
  import { C as ChatType, R as ReportChatUser, N as NotificationCount, a as NotificationType, b as ResourceActivityType } from '../resourceActivities-BXsZrzFC.js';
4
4
  import { E as EventType, c as EventListItemType, d as EventInfoType, e as RelationType, f as ResourceConnectionsType, U as UnregisteredVendorType, V as VendorType, g as VendorInfoType, h as UserLicenceType } from '../global-CDqmjLH1.js';
5
- import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, e as SchoolReturnType, f as SchoolType } from '../post-Lc5PrxY6.js';
6
- import { G as GameDocType, a as GameLeaderboard } from '../game-1CSiEjlf.js';
5
+ import { U as UserType, P as PartnerType, R as ResourceByUser, A as AdType, E as EnumAdStatus, S as SubscriptionPlansResponse, a as SubscriptionStatusData, b as PostType, c as EnumPostType, d as AppSettingsType, G as GameDocType, e as GameLeaderboard, f as SchoolReturnType, g as SchoolType } from '../post-B941IgWP.js';
7
6
  import 'react-hook-form';
8
7
  import '../images/index.js';
8
+ import '../dailyClue-CvOPk6am.js';
9
9
 
10
10
  declare const useAdminUpdateResourceType: () => {
11
11
  adminUpdateResourceType: (options?: _apollo_client.MutationFunctionOptions<{
@@ -132,7 +132,7 @@ import {
132
132
  useUpdateVendor,
133
133
  useUpdateVendorInfo,
134
134
  useValidateVerificationToken
135
- } from "../chunk-UBAAAYJY.mjs";
135
+ } from "../chunk-SUCEE4LU.mjs";
136
136
  import "../chunk-ZR4TGWTS.mjs";
137
137
  export {
138
138
  useAddParticipantToChat,
@@ -278,7 +278,7 @@ var EnumEventDateStatus = /* @__PURE__ */ ((EnumEventDateStatus2) => {
278
278
  return EnumEventDateStatus2;
279
279
  })(EnumEventDateStatus || {});
280
280
 
281
- // src/types/game.ts
281
+ // src/types/game/dailyClue.ts
282
282
  var OBJECT_ID_PATH_SEGMENT = "[a-f0-9]{24}";
283
283
  var OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;
284
284
  var gameScreenIdentifierList = [
@@ -373,6 +373,9 @@ var gameScreenIdentifierList = [
373
373
  match: "/visitors"
374
374
  }
375
375
  ];
376
+ var gameTypeToDisplayName = {
377
+ ["dailyClue" /* DAILY_CLUE */]: "Daily Clue"
378
+ };
376
379
 
377
380
  // src/utils/date.ts
378
381
  var import_dayjs = __toESM(require("dayjs"));
@@ -438,6 +441,9 @@ var cluemartSocialMedia = [
438
441
  }
439
442
  ];
440
443
 
444
+ // src/utils/school.ts
445
+ var SCHOOL_MIN_STUDENT_COUNT = 300;
446
+
441
447
  // src/yupSchema/global.ts
442
448
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
443
449
  var nzbnRegex = /^94\d{11}$/;
@@ -4156,8 +4162,8 @@ var GAME_DATE_FIELDS_FRAGMENT = import_client55.gql`
4156
4162
  endDate
4157
4163
  }
4158
4164
  `;
4159
- var BASE_GAME_FIELDS_FRAGMENT = import_client55.gql`
4160
- fragment BaseGameFields on BaseGameType {
4165
+ var DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT = import_client55.gql`
4166
+ fragment DailyClueBaseGameFields on DailyClueBaseGameType {
4161
4167
  gameDate {
4162
4168
  ...GameDateFields
4163
4169
  }
@@ -4169,20 +4175,20 @@ var BASE_GAME_FIELDS_FRAGMENT = import_client55.gql`
4169
4175
  var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
4170
4176
  fragment DailyClueGameDataFields on DailyClueGameDataType {
4171
4177
  gameFields {
4172
- ...BaseGameFields
4178
+ ...DailyClueBaseGameFields
4173
4179
  }
4174
4180
  lastFoundDate
4175
4181
  points
4176
4182
  letterInfo {
4177
4183
  collected
4178
- shuffled
4179
- todaysLetter
4184
+ solutionShuffled
4180
4185
  todaysClue
4186
+ todaysLetter
4181
4187
  todaysPlacement
4182
4188
  }
4183
4189
  streak
4184
4190
  }
4185
- ${BASE_GAME_FIELDS_FRAGMENT}
4191
+ ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
4186
4192
  `;
4187
4193
  var GAME_HISTORY_FIELDS_FRAGMENT = import_client55.gql`
4188
4194
  fragment GameHistoryFields on GameHistoryType {
@@ -4272,6 +4278,14 @@ var GET_GAME_LEADERBOARD = import_client55.gql`
4272
4278
  `;
4273
4279
 
4274
4280
  // src/graphql/queries/post.ts
4281
+ var BASE_GAME_FIELDS_FRAGMENT = import_client56.gql`
4282
+ fragment BaseGameFields on BaseGameType {
4283
+ dailyClue {
4284
+ ...DailyClueBaseGameFields
4285
+ }
4286
+ }
4287
+ ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
4288
+ `;
4275
4289
  var POST_CONTENT_DATA_FIELDS_FRAGMENT = import_client56.gql`
4276
4290
  fragment PostContentDataFields on PostContentData {
4277
4291
  game {
@@ -5802,7 +5816,10 @@ var schoolSchema = yup11.object().shape({
5802
5816
  name: yup11.string().trim().required("Name is required"),
5803
5817
  region: yup11.string().trim().required("Region is required"),
5804
5818
  socialMedia: yup11.array().of(socialMediaSchema).nullable().default(null),
5805
- studentCount: yup11.number().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(350, "Student count must be at least 350").required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
5819
+ studentCount: yup11.number().label("Student Count").nullable().transform((value, originalValue) => originalValue === "" ? null : value).typeError("Student count must be a number").min(
5820
+ SCHOOL_MIN_STUDENT_COUNT,
5821
+ `Student count must be at least ${SCHOOL_MIN_STUDENT_COUNT}`
5822
+ ).required("Student count is required").test("no-leading-zeros", "", noLeadingZeros("Student Count"))
5806
5823
  });
5807
5824
 
5808
5825
  // src/hooks/useSchoolForm.ts