@timardex/cluemart-server-shared 1.0.156 → 1.0.157

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 {
@@ -12413,15 +12419,22 @@ var schemaMiniQuizBaseGame = new MongooseSchema21(
12413
12419
  },
12414
12420
  { _id: false }
12415
12421
  );
12422
+ var schemaMiniQuizAnsweredQuestion = new MongooseSchema21(
12423
+ {
12424
+ questionId: { required: true, type: String },
12425
+ selectedAnswerId: { required: true, type: String }
12426
+ },
12427
+ { _id: false }
12428
+ );
12416
12429
  var schemaMiniQuizGameData = new MongooseSchema21(
12417
12430
  {
12418
- gameFields: { required: true, type: schemaMiniQuizBaseGame },
12419
- points: { default: 0, required: true, type: Number },
12420
- quizInfo: {
12431
+ answeredQuestions: {
12421
12432
  default: null,
12422
12433
  required: false,
12423
- type: [schemaMiniQuizQuestion]
12434
+ type: [schemaMiniQuizAnsweredQuestion]
12424
12435
  },
12436
+ gameFields: { required: true, type: schemaMiniQuizBaseGame },
12437
+ points: { default: 0, required: true, type: Number },
12425
12438
  streak: { default: 0, required: true, type: Number }
12426
12439
  },
12427
12440
  { _id: false }
@@ -12582,4 +12595,4 @@ react/cjs/react.development.js:
12582
12595
  * LICENSE file in the root directory of this source tree.
12583
12596
  *)
12584
12597
  */
12585
- //# sourceMappingURL=chunk-JDTOVJED.mjs.map
12598
+ //# sourceMappingURL=chunk-UG4QCIIG.mjs.map