@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.mjs CHANGED
@@ -9985,6 +9985,12 @@ var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
9985
9985
  }
9986
9986
  ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
9987
9987
  `;
9988
+ var MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT = gql`
9989
+ fragment MiniQuizAnsweredQuestionFields on MiniQuizAnsweredQuestionType {
9990
+ questionId
9991
+ selectedAnswerId
9992
+ }
9993
+ `;
9988
9994
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
9989
9995
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
9990
9996
  questions {
@@ -9998,14 +10004,14 @@ var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
9998
10004
  gameFields {
9999
10005
  ...MiniQuizBaseGameFields
10000
10006
  }
10001
- quizInfo {
10002
- ...MiniQuizQuestionFields
10007
+ answeredQuestions {
10008
+ ...MiniQuizAnsweredQuestionFields
10003
10009
  }
10004
10010
  points
10005
10011
  streak
10006
10012
  }
10007
10013
  ${MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT}
10008
- ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
10014
+ ${MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT}
10009
10015
  `;
10010
10016
  var GAME_HISTORY_FIELDS_FRAGMENT = gql`
10011
10017
  fragment GameHistoryFields on GameHistoryType {
@@ -12434,15 +12440,22 @@ var schemaMiniQuizBaseGame = new MongooseSchema21(
12434
12440
  },
12435
12441
  { _id: false }
12436
12442
  );
12443
+ var schemaMiniQuizAnsweredQuestion = new MongooseSchema21(
12444
+ {
12445
+ questionId: { required: true, type: String },
12446
+ selectedAnswerId: { required: true, type: String }
12447
+ },
12448
+ { _id: false }
12449
+ );
12437
12450
  var schemaMiniQuizGameData = new MongooseSchema21(
12438
12451
  {
12439
- gameFields: { required: true, type: schemaMiniQuizBaseGame },
12440
- points: { default: 0, required: true, type: Number },
12441
- quizInfo: {
12452
+ answeredQuestions: {
12442
12453
  default: null,
12443
12454
  required: false,
12444
- type: [schemaMiniQuizQuestion]
12455
+ type: [schemaMiniQuizAnsweredQuestion]
12445
12456
  },
12457
+ gameFields: { required: true, type: schemaMiniQuizBaseGame },
12458
+ points: { default: 0, required: true, type: Number },
12446
12459
  streak: { default: 0, required: true, type: Number }
12447
12460
  },
12448
12461
  { _id: false }