@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.
package/dist/index.cjs CHANGED
@@ -10044,6 +10044,12 @@ var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
10044
10044
  }
10045
10045
  ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
10046
10046
  `;
10047
+ var MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT = gql`
10048
+ fragment MiniQuizAnsweredQuestionFields on MiniQuizAnsweredQuestionType {
10049
+ questionId
10050
+ selectedAnswerId
10051
+ }
10052
+ `;
10047
10053
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
10048
10054
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
10049
10055
  questions {
@@ -10057,14 +10063,14 @@ var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
10057
10063
  gameFields {
10058
10064
  ...MiniQuizBaseGameFields
10059
10065
  }
10060
- quizInfo {
10061
- ...MiniQuizQuestionFields
10066
+ answeredQuestions {
10067
+ ...MiniQuizAnsweredQuestionFields
10062
10068
  }
10063
10069
  points
10064
10070
  streak
10065
10071
  }
10066
10072
  ${MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT}
10067
- ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
10073
+ ${MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT}
10068
10074
  `;
10069
10075
  var GAME_HISTORY_FIELDS_FRAGMENT = gql`
10070
10076
  fragment GameHistoryFields on GameHistoryType {
@@ -12493,15 +12499,22 @@ var schemaMiniQuizBaseGame = new MongooseSchema21(
12493
12499
  },
12494
12500
  { _id: false }
12495
12501
  );
12502
+ var schemaMiniQuizAnsweredQuestion = new MongooseSchema21(
12503
+ {
12504
+ questionId: { required: true, type: String },
12505
+ selectedAnswerId: { required: true, type: String }
12506
+ },
12507
+ { _id: false }
12508
+ );
12496
12509
  var schemaMiniQuizGameData = new MongooseSchema21(
12497
12510
  {
12498
- gameFields: { required: true, type: schemaMiniQuizBaseGame },
12499
- points: { default: 0, required: true, type: Number },
12500
- quizInfo: {
12511
+ answeredQuestions: {
12501
12512
  default: null,
12502
12513
  required: false,
12503
- type: [schemaMiniQuizQuestion]
12514
+ type: [schemaMiniQuizAnsweredQuestion]
12504
12515
  },
12516
+ gameFields: { required: true, type: schemaMiniQuizBaseGame },
12517
+ points: { default: 0, required: true, type: Number },
12505
12518
  streak: { default: 0, required: true, type: Number }
12506
12519
  },
12507
12520
  { _id: false }