@timardex/cluemart-server-shared 1.0.128 → 1.0.129

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.
@@ -35,7 +35,7 @@ import {
35
35
  resourceRelationsSchema,
36
36
  termsAgreementSchema,
37
37
  userLicenseSchema
38
- } from "../chunk-BBLLCZKM.mjs";
38
+ } from "../chunk-KML6ZNTU.mjs";
39
39
  import "../chunk-3QS3WKRC.mjs";
40
40
  export {
41
41
  APP_SETTINGS_ID,
@@ -9902,12 +9902,23 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
9902
9902
  collected
9903
9903
  shuffled
9904
9904
  todaysLetter
9905
+ todaysClue
9905
9906
  todaysPlacement
9906
9907
  }
9907
9908
  streak
9908
9909
  }
9909
9910
  ${BASE_GAME_FIELDS_FRAGMENT}
9910
9911
  `;
9912
+ var GAME_HISTORY_FIELDS_FRAGMENT = gql`
9913
+ fragment GameHistoryFields on GameHistoryType {
9914
+ gameDate {
9915
+ ...GameDateFields
9916
+ }
9917
+ gameType
9918
+ pointsEarned
9919
+ }
9920
+ ${GAME_DATE_FIELDS_FRAGMENT}
9921
+ `;
9911
9922
  var GAME_FIELDS_FRAGMENT = gql`
9912
9923
  fragment GameFields on GameType {
9913
9924
  _id
@@ -9920,11 +9931,7 @@ var GAME_FIELDS_FRAGMENT = gql`
9920
9931
  }
9921
9932
  }
9922
9933
  gameHistory {
9923
- gameDate {
9924
- ...GameDateFields
9925
- }
9926
- gameType
9927
- pointsEarned
9934
+ ...GameHistoryFields
9928
9935
  }
9929
9936
  updatedAt
9930
9937
  owner {
@@ -9935,6 +9942,7 @@ var GAME_FIELDS_FRAGMENT = gql`
9935
9942
  ${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
9936
9943
  ${OWNER_FIELDS_FRAGMENT}
9937
9944
  ${GAME_DATE_FIELDS_FRAGMENT}
9945
+ ${GAME_HISTORY_FIELDS_FRAGMENT}
9938
9946
  `;
9939
9947
  var GET_GAMES = gql`
9940
9948
  query getGames {
@@ -9952,6 +9960,21 @@ var GET_GAME = gql`
9952
9960
  }
9953
9961
  ${GAME_FIELDS_FRAGMENT}
9954
9962
  `;
9963
+ var GET_GAME_LEADERBOARD = gql`
9964
+ query getGameLeaderboard {
9965
+ gameLeaderboard {
9966
+ gameHistory {
9967
+ ...GameHistoryFields
9968
+ }
9969
+ overallPoints
9970
+ owner {
9971
+ ...OwnerFields
9972
+ }
9973
+ }
9974
+ }
9975
+ ${OWNER_FIELDS_FRAGMENT}
9976
+ ${GAME_HISTORY_FIELDS_FRAGMENT}
9977
+ `;
9955
9978
  var POST_CONTENT_DATA_FIELDS_FRAGMENT = gql`
9956
9979
  fragment PostContentDataFields on PostContentData {
9957
9980
  game {
@@ -12228,7 +12251,7 @@ async function updateAdStatuses() {
12228
12251
  }
12229
12252
 
12230
12253
  // src/service/vendor.ts
12231
- async function updateVendorBasedOnUserLicense(userId, licenceObject) {
12254
+ async function updateVendorBasedOnUserLicense(userId, licenceType) {
12232
12255
  try {
12233
12256
  const user = await UserModel.findById(userId).exec();
12234
12257
  if (!user) {
@@ -12238,7 +12261,7 @@ async function updateVendorBasedOnUserLicense(userId, licenceObject) {
12238
12261
  if (!userVendor) {
12239
12262
  return;
12240
12263
  }
12241
- const selectedLicence = licenceObject.licenceType;
12264
+ const selectedLicence = licenceType;
12242
12265
  if (selectedLicence === void 0) {
12243
12266
  return;
12244
12267
  }