@timardex/cluemart-server-shared 1.0.156 → 1.0.158

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.
@@ -9964,6 +9964,12 @@ var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
9964
9964
  }
9965
9965
  ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
9966
9966
  `;
9967
+ var MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT = gql`
9968
+ fragment MiniQuizAnsweredQuestionFields on MiniQuizAnsweredQuestionType {
9969
+ questionId
9970
+ selectedAnswerId
9971
+ }
9972
+ `;
9967
9973
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
9968
9974
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
9969
9975
  questions {
@@ -9977,14 +9983,14 @@ var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
9977
9983
  gameFields {
9978
9984
  ...MiniQuizBaseGameFields
9979
9985
  }
9980
- quizInfo {
9981
- ...MiniQuizQuestionFields
9986
+ answeredQuestions {
9987
+ ...MiniQuizAnsweredQuestionFields
9982
9988
  }
9983
9989
  points
9984
9990
  streak
9985
9991
  }
9986
9992
  ${MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT}
9987
- ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
9993
+ ${MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT}
9988
9994
  `;
9989
9995
  var GAME_HISTORY_FIELDS_FRAGMENT = gql`
9990
9996
  fragment GameHistoryFields on GameHistoryType {
@@ -10022,6 +10028,7 @@ var GAME_FIELDS_FRAGMENT = gql`
10022
10028
  ...GameHistoryFields
10023
10029
  }
10024
10030
  gameType
10031
+ gameTypeId
10025
10032
  updatedAt
10026
10033
  }
10027
10034
  ${GAME_DATA_FIELDS_FRAGMENT}
@@ -10078,6 +10085,7 @@ var GET_GAME_LEADERBOARD = gql`
10078
10085
  `;
10079
10086
  var BASE_GAME_FIELDS_FRAGMENT = gql`
10080
10087
  fragment BaseGameFields on BaseGameType {
10088
+ gameTypeId
10081
10089
  gameType
10082
10090
  dailyClue {
10083
10091
  ...DailyClueBaseGameFields
@@ -10257,9 +10265,9 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10257
10265
  var UPDATE_MINI_QUIZ_MUTATION = gql`
10258
10266
  mutation updateMiniQuizGame(
10259
10267
  $_id: ID!
10260
- $questions: [MiniQuizQuestionInputType!]!
10268
+ $answeredQuestions: [MiniQuizAnsweredQuestionInputType!]!
10261
10269
  ) {
10262
- updateMiniQuizGame(_id: $_id, questions: $questions) {
10270
+ updateMiniQuizGame(_id: $_id, answeredQuestions: $answeredQuestions) {
10263
10271
  ...GameDocFields
10264
10272
  }
10265
10273
  }
@@ -12413,15 +12421,22 @@ var schemaMiniQuizBaseGame = new MongooseSchema21(
12413
12421
  },
12414
12422
  { _id: false }
12415
12423
  );
12424
+ var schemaMiniQuizAnsweredQuestion = new MongooseSchema21(
12425
+ {
12426
+ questionId: { required: true, type: String },
12427
+ selectedAnswerId: { required: true, type: String }
12428
+ },
12429
+ { _id: false }
12430
+ );
12416
12431
  var schemaMiniQuizGameData = new MongooseSchema21(
12417
12432
  {
12418
- gameFields: { required: true, type: schemaMiniQuizBaseGame },
12419
- points: { default: 0, required: true, type: Number },
12420
- quizInfo: {
12433
+ answeredQuestions: {
12421
12434
  default: null,
12422
12435
  required: false,
12423
- type: [schemaMiniQuizQuestion]
12436
+ type: [schemaMiniQuizAnsweredQuestion]
12424
12437
  },
12438
+ gameFields: { required: true, type: schemaMiniQuizBaseGame },
12439
+ points: { default: 0, required: true, type: Number },
12425
12440
  streak: { default: 0, required: true, type: Number }
12426
12441
  },
12427
12442
  { _id: false }
@@ -12466,7 +12481,8 @@ var gameTypeSchema = new MongooseSchema22(
12466
12481
  enum: Object.values(EnumGameType),
12467
12482
  required: true,
12468
12483
  type: String
12469
- }
12484
+ },
12485
+ gameTypeId: { required: true, type: String }
12470
12486
  },
12471
12487
  { timestamps: true }
12472
12488
  );
@@ -12582,4 +12598,4 @@ react/cjs/react.development.js:
12582
12598
  * LICENSE file in the root directory of this source tree.
12583
12599
  *)
12584
12600
  */
12585
- //# sourceMappingURL=chunk-JDTOVJED.mjs.map
12601
+ //# sourceMappingURL=chunk-BIIAHQ4Y.mjs.map