@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.
@@ -10034,6 +10034,12 @@ var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
10034
10034
  }
10035
10035
  ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
10036
10036
  `;
10037
+ var MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT = gql`
10038
+ fragment MiniQuizAnsweredQuestionFields on MiniQuizAnsweredQuestionType {
10039
+ questionId
10040
+ selectedAnswerId
10041
+ }
10042
+ `;
10037
10043
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
10038
10044
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
10039
10045
  questions {
@@ -10047,14 +10053,14 @@ var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
10047
10053
  gameFields {
10048
10054
  ...MiniQuizBaseGameFields
10049
10055
  }
10050
- quizInfo {
10051
- ...MiniQuizQuestionFields
10056
+ answeredQuestions {
10057
+ ...MiniQuizAnsweredQuestionFields
10052
10058
  }
10053
10059
  points
10054
10060
  streak
10055
10061
  }
10056
10062
  ${MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT}
10057
- ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
10063
+ ${MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT}
10058
10064
  `;
10059
10065
  var GAME_HISTORY_FIELDS_FRAGMENT = gql`
10060
10066
  fragment GameHistoryFields on GameHistoryType {
@@ -12483,15 +12489,22 @@ var schemaMiniQuizBaseGame = new MongooseSchema21(
12483
12489
  },
12484
12490
  { _id: false }
12485
12491
  );
12492
+ var schemaMiniQuizAnsweredQuestion = new MongooseSchema21(
12493
+ {
12494
+ questionId: { required: true, type: String },
12495
+ selectedAnswerId: { required: true, type: String }
12496
+ },
12497
+ { _id: false }
12498
+ );
12486
12499
  var schemaMiniQuizGameData = new MongooseSchema21(
12487
12500
  {
12488
- gameFields: { required: true, type: schemaMiniQuizBaseGame },
12489
- points: { default: 0, required: true, type: Number },
12490
- quizInfo: {
12501
+ answeredQuestions: {
12491
12502
  default: null,
12492
12503
  required: false,
12493
- type: [schemaMiniQuizQuestion]
12504
+ type: [schemaMiniQuizAnsweredQuestion]
12494
12505
  },
12506
+ gameFields: { required: true, type: schemaMiniQuizBaseGame },
12507
+ points: { default: 0, required: true, type: Number },
12495
12508
  streak: { default: 0, required: true, type: Number }
12496
12509
  },
12497
12510
  { _id: false }