@timardex/cluemart-shared 1.5.510 → 1.5.512

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 (38) hide show
  1. package/dist/{chunk-WYYQSPAX.mjs → chunk-TZBKOYFM.mjs} +1 -1
  2. package/dist/{chunk-WYYQSPAX.mjs.map → chunk-TZBKOYFM.mjs.map} +1 -1
  3. package/dist/{chunk-RY7AILFK.mjs → chunk-U3RFZUPB.mjs} +2 -2
  4. package/dist/{chunk-RQDZX76B.mjs → chunk-YHE6M5DD.mjs} +34 -17
  5. package/dist/{chunk-RQDZX76B.mjs.map → chunk-YHE6M5DD.mjs.map} +1 -1
  6. package/dist/{chunk-3SFKWCTZ.mjs → chunk-Z6YIR3MO.mjs} +2 -2
  7. package/dist/formFields/index.mjs +3 -3
  8. package/dist/{game-MJqjbMLC.d.ts → game-BkJDVMMI.d.ts} +16 -9
  9. package/dist/{game-DuJpk6t2.d.mts → game-BunlgBR3.d.mts} +16 -9
  10. package/dist/graphql/index.cjs +33 -16
  11. package/dist/graphql/index.cjs.map +1 -1
  12. package/dist/graphql/index.d.mts +10 -10
  13. package/dist/graphql/index.d.ts +10 -10
  14. package/dist/graphql/index.mjs +1 -1
  15. package/dist/hooks/index.cjs +33 -16
  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 +4 -4
  20. package/dist/index.cjs +33 -16
  21. package/dist/index.cjs.map +1 -1
  22. package/dist/index.d.mts +24 -17
  23. package/dist/index.d.ts +24 -17
  24. package/dist/index.mjs +33 -16
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/{post-CZ1sHnKx.d.ts → post-CdBp2FwH.d.ts} +1 -1
  27. package/dist/{post-D3uHp75N.d.mts → post-DHlHtpG9.d.mts} +1 -1
  28. package/dist/types/index.cjs.map +1 -1
  29. package/dist/types/index.d.mts +2 -2
  30. package/dist/types/index.d.ts +2 -2
  31. package/dist/types/index.mjs +1 -1
  32. package/dist/utils/index.cjs.map +1 -1
  33. package/dist/utils/index.d.mts +1 -1
  34. package/dist/utils/index.d.ts +1 -1
  35. package/dist/utils/index.mjs +2 -2
  36. package/package.json +1 -1
  37. /package/dist/{chunk-RY7AILFK.mjs.map → chunk-U3RFZUPB.mjs.map} +0 -0
  38. /package/dist/{chunk-3SFKWCTZ.mjs.map → chunk-Z6YIR3MO.mjs.map} +0 -0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  mapArrayToOptions
3
- } from "./chunk-RY7AILFK.mjs";
3
+ } from "./chunk-U3RFZUPB.mjs";
4
4
  import {
5
5
  EnumFoodFlavor
6
6
  } from "./chunk-534WN2SR.mjs";
@@ -1952,4 +1952,4 @@ export {
1952
1952
  contactUsFields,
1953
1953
  partnerBasicInfoFields
1954
1954
  };
1955
- //# sourceMappingURL=chunk-3SFKWCTZ.mjs.map
1955
+ //# sourceMappingURL=chunk-Z6YIR3MO.mjs.map
@@ -43,10 +43,10 @@ import {
43
43
  vendorStallSize,
44
44
  vendorStartDateFields,
45
45
  vendorTable
46
- } from "../chunk-3SFKWCTZ.mjs";
47
- import "../chunk-RY7AILFK.mjs";
46
+ } from "../chunk-Z6YIR3MO.mjs";
47
+ import "../chunk-U3RFZUPB.mjs";
48
48
  import "../chunk-534WN2SR.mjs";
49
- import "../chunk-WYYQSPAX.mjs";
49
+ import "../chunk-TZBKOYFM.mjs";
50
50
  export {
51
51
  availableCategories,
52
52
  availableTagTypes,
@@ -105,12 +105,6 @@ type DailyClueGameData = {
105
105
  };
106
106
  streak: number;
107
107
  };
108
- type GameDataMap = {
109
- [EnumGameType.DAILY_CLUE]: DailyClueGameData;
110
- };
111
- type GameData = {
112
- [K in keyof GameDataMap]?: GameDataMap[K] | null;
113
- };
114
108
  declare enum EnumGameStatus {
115
109
  GAME_COMPLETED = "GAME_COMPLETED",
116
110
  GAME_IN_PROGRESS = "GAME_IN_PROGRESS",
@@ -123,13 +117,26 @@ type GameHistory = {
123
117
  gameType: EnumGameType;
124
118
  pointsEarned: number;
125
119
  };
120
+ type GameDataMap = {
121
+ [EnumGameType.DAILY_CLUE]: DailyClueGameData;
122
+ };
123
+ type GameDataType = {
124
+ [K in keyof GameDataMap]?: GameDataMap[K] | null;
125
+ };
126
126
  type GameType = {
127
+ active: boolean;
128
+ createdAt: Date;
129
+ gameData: GameDataType;
130
+ gameHistory: GameHistory[] | null;
131
+ gameType: EnumGameType;
132
+ updatedAt: Date | null;
133
+ };
134
+ type GameDocType = {
127
135
  _id: string;
128
136
  active: boolean;
129
137
  createdAt: Date;
130
138
  deletedAt: Date | null;
131
- gameData: GameData | null;
132
- gameHistory: GameHistory[] | null;
139
+ games: GameType[] | null;
133
140
  owner: OwnerType;
134
141
  points: number;
135
142
  updatedAt: Date | null;
@@ -140,4 +147,4 @@ type GameLeaderboard = {
140
147
  owner: OwnerType;
141
148
  };
142
149
 
143
- export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameType as G, type GameLeaderboard as a, EnumGameType as b, type GameData as c, type GameDate as d, type GameHistory as e, type GamePlacement as f, type GamePlacementClue as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
150
+ export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameDocType as G, type GameLeaderboard as a, EnumGameType as b, type GameDate as c, type GameHistory as d, type GamePlacement as e, type GamePlacementClue as f, type GameType as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
@@ -105,12 +105,6 @@ type DailyClueGameData = {
105
105
  };
106
106
  streak: number;
107
107
  };
108
- type GameDataMap = {
109
- [EnumGameType.DAILY_CLUE]: DailyClueGameData;
110
- };
111
- type GameData = {
112
- [K in keyof GameDataMap]?: GameDataMap[K] | null;
113
- };
114
108
  declare enum EnumGameStatus {
115
109
  GAME_COMPLETED = "GAME_COMPLETED",
116
110
  GAME_IN_PROGRESS = "GAME_IN_PROGRESS",
@@ -123,13 +117,26 @@ type GameHistory = {
123
117
  gameType: EnumGameType;
124
118
  pointsEarned: number;
125
119
  };
120
+ type GameDataMap = {
121
+ [EnumGameType.DAILY_CLUE]: DailyClueGameData;
122
+ };
123
+ type GameDataType = {
124
+ [K in keyof GameDataMap]?: GameDataMap[K] | null;
125
+ };
126
126
  type GameType = {
127
+ active: boolean;
128
+ createdAt: Date;
129
+ gameData: GameDataType;
130
+ gameHistory: GameHistory[] | null;
131
+ gameType: EnumGameType;
132
+ updatedAt: Date | null;
133
+ };
134
+ type GameDocType = {
127
135
  _id: string;
128
136
  active: boolean;
129
137
  createdAt: Date;
130
138
  deletedAt: Date | null;
131
- gameData: GameData | null;
132
- gameHistory: GameHistory[] | null;
139
+ games: GameType[] | null;
133
140
  owner: OwnerType;
134
141
  points: number;
135
142
  updatedAt: Date | null;
@@ -140,4 +147,4 @@ type GameLeaderboard = {
140
147
  owner: OwnerType;
141
148
  };
142
149
 
143
- export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameType as G, type GameLeaderboard as a, EnumGameType as b, type GameData as c, type GameDate as d, type GameHistory as e, type GamePlacement as f, type GamePlacementClue as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
150
+ export { type BaseGame as B, type DailyClueGameData as D, EnumGameStatus as E, type GameDocType as G, type GameLeaderboard as a, EnumGameType as b, type GameDate as c, type GameHistory as d, type GamePlacement as e, type GamePlacementClue as f, type GameType as g, gameScreenIdentifierList as h, gameTypeToDisplayName as i };
@@ -3391,46 +3391,63 @@ var GAME_HISTORY_FIELDS_FRAGMENT = import_client55.gql`
3391
3391
  }
3392
3392
  ${GAME_DATE_FIELDS_FRAGMENT}
3393
3393
  `;
3394
+ var GAME_DATA_FIELDS_FRAGMENT = import_client55.gql`
3395
+ fragment GameDataFields on GameDataType {
3396
+ dailyClue {
3397
+ ...DailyClueGameDataFields
3398
+ }
3399
+ }
3400
+ ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
3401
+ `;
3394
3402
  var GAME_FIELDS_FRAGMENT = import_client55.gql`
3395
3403
  fragment GameFields on GameType {
3396
- _id
3397
3404
  active
3398
3405
  createdAt
3399
- deletedAt
3400
3406
  gameData {
3401
- dailyClue {
3402
- ...DailyClueGameDataFields
3403
- }
3407
+ ...GameDataFields
3404
3408
  }
3405
3409
  gameHistory {
3406
3410
  ...GameHistoryFields
3407
3411
  }
3412
+ gameType
3408
3413
  updatedAt
3414
+ }
3415
+ ${GAME_DATA_FIELDS_FRAGMENT}
3416
+ ${GAME_HISTORY_FIELDS_FRAGMENT}
3417
+ `;
3418
+ var GAME_DOC_FIELDS_FRAGMENT = import_client55.gql`
3419
+ fragment GameDocFields on GameDocType {
3420
+ _id
3421
+ active
3422
+ createdAt
3423
+ deletedAt
3424
+ games {
3425
+ ...GameFields
3426
+ }
3409
3427
  owner {
3410
3428
  ...OwnerFields
3411
3429
  }
3412
3430
  points
3431
+ updatedAt
3413
3432
  }
3414
- ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
3415
3433
  ${OWNER_FIELDS_FRAGMENT}
3416
- ${GAME_DATE_FIELDS_FRAGMENT}
3417
- ${GAME_HISTORY_FIELDS_FRAGMENT}
3434
+ ${GAME_FIELDS_FRAGMENT}
3418
3435
  `;
3419
3436
  var GET_GAMES = import_client55.gql`
3420
3437
  query getGames {
3421
3438
  games {
3422
- ...GameFields
3439
+ ...GameDocFields
3423
3440
  }
3424
3441
  }
3425
- ${GAME_FIELDS_FRAGMENT}
3442
+ ${GAME_DOC_FIELDS_FRAGMENT}
3426
3443
  `;
3427
3444
  var GET_GAME = import_client55.gql`
3428
3445
  query getGame($_id: ID!) {
3429
3446
  game(_id: $_id) {
3430
- ...GameFields
3447
+ ...GameDocFields
3431
3448
  }
3432
3449
  }
3433
- ${GAME_FIELDS_FRAGMENT}
3450
+ ${GAME_DOC_FIELDS_FRAGMENT}
3434
3451
  `;
3435
3452
  var GET_GAME_LEADERBOARD = import_client55.gql`
3436
3453
  query getGameLeaderboard {
@@ -3690,10 +3707,10 @@ var import_client64 = require("@apollo/client");
3690
3707
  var START_GAME_MUTATION = import_client64.gql`
3691
3708
  mutation startGame($input: BaseGameInputType!) {
3692
3709
  startGame(input: $input) {
3693
- ...GameFields
3710
+ ...GameDocFields
3694
3711
  }
3695
3712
  }
3696
- ${GAME_FIELDS_FRAGMENT}
3713
+ ${GAME_DOC_FIELDS_FRAGMENT}
3697
3714
  `;
3698
3715
  var LEAVE_GAME_MUTATION = import_client64.gql`
3699
3716
  mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
@@ -3703,10 +3720,10 @@ var LEAVE_GAME_MUTATION = import_client64.gql`
3703
3720
  var UPDATE_DAILY_CLUE_MUTATION = import_client64.gql`
3704
3721
  mutation updateDailyClueGame($_id: ID!, $foundLetter: String!) {
3705
3722
  updateDailyClueGame(_id: $_id, foundLetter: $foundLetter) {
3706
- ...GameFields
3723
+ ...GameDocFields
3707
3724
  }
3708
3725
  }
3709
- ${GAME_FIELDS_FRAGMENT}
3726
+ ${GAME_DOC_FIELDS_FRAGMENT}
3710
3727
  `;
3711
3728
 
3712
3729
  // src/graphql/hooks/game/hooksMutation.ts