@timardex/cluemart-server-shared 1.0.121 → 1.0.123

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/index.cjs CHANGED
@@ -9897,7 +9897,6 @@ var BASE_GAME_FIELDS_FRAGMENT = gql`
9897
9897
  }
9898
9898
  gameSolution
9899
9899
  gameType
9900
- title
9901
9900
  }
9902
9901
  `;
9903
9902
  var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
@@ -9905,9 +9904,13 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
9905
9904
  gameFields {
9906
9905
  ...BaseGameFields
9907
9906
  }
9908
- collectedLetters
9909
9907
  lastFoundDate
9910
9908
  points
9909
+ letters {
9910
+ collected
9911
+ shuffled
9912
+ todaysLetter
9913
+ }
9911
9914
  streak
9912
9915
  }
9913
9916
  ${BASE_GAME_FIELDS_FRAGMENT}
@@ -9933,8 +9936,8 @@ var GAME_FIELDS_FRAGMENT = gql`
9933
9936
  ${OWNER_FIELDS_FRAGMENT}
9934
9937
  `;
9935
9938
  var GET_GAMES = gql`
9936
- query getGames($userId: ID) {
9937
- games(userId: $userId) {
9939
+ query getGames {
9940
+ games {
9938
9941
  ...GameFields
9939
9942
  }
9940
9943
  }
@@ -10101,10 +10104,16 @@ var START_GAME_MUTATION = gql`
10101
10104
  `;
10102
10105
  var LEAVE_GAME_MUTATION = gql`
10103
10106
  mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
10104
- leaveGame(_id: $_id, gameType: $gameType) {
10105
- userId
10107
+ leaveGame(_id: $_id, gameType: $gameType)
10108
+ }
10109
+ `;
10110
+ var UPDATE_DAILY_CLUE_MUTATION = gql`
10111
+ mutation updateDailyClueGame($_id: ID!, $foundLetter: String!) {
10112
+ updateDailyClueGame(_id: $_id, foundLetter: $foundLetter) {
10113
+ ...GameFields
10106
10114
  }
10107
10115
  }
10116
+ ${GAME_FIELDS_FRAGMENT}
10108
10117
  `;
10109
10118
  var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
10110
10119
  var nzbnRegex = /^94\d{11}$/;
@@ -11986,16 +11995,26 @@ var schemaBaseGame = new MongooseSchema19(
11986
11995
  enum: Object.values(EnumGameType),
11987
11996
  required: false,
11988
11997
  type: String
11989
- },
11990
- title: { required: false, type: String }
11998
+ }
11999
+ },
12000
+ { _id: false }
12001
+ );
12002
+ var schemaLetters = new MongooseSchema19(
12003
+ {
12004
+ collected: { required: false, type: [String] },
12005
+ shuffled: { required: true, type: [String] },
12006
+ todaysLetter: { required: true, type: String }
11991
12007
  },
11992
12008
  { _id: false }
11993
12009
  );
11994
12010
  var schemaDailyClue = new MongooseSchema19(
11995
12011
  {
11996
- collectedLetters: { default: null, required: false, type: [String] },
11997
12012
  gameFields: { required: true, type: schemaBaseGame },
11998
12013
  lastFoundDate: { default: null, required: false, type: Date },
12014
+ letters: {
12015
+ required: true,
12016
+ type: schemaLetters
12017
+ },
11999
12018
  points: { default: 0, required: true, type: Number },
12000
12019
  streak: { default: 0, required: true, type: Number }
12001
12020
  },