@timardex/cluemart-server-shared 1.0.155 → 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.
@@ -9949,21 +9949,27 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
9949
9949
  `;
9950
9950
  var MINI_QUIZ_ANSWER_FIELDS_FRAGMENT = gql`
9951
9951
  fragment MiniQuizAnswerFields on MiniQuizAnswerType {
9952
- id
9953
9952
  answer
9953
+ answerId
9954
9954
  correct
9955
9955
  }
9956
9956
  `;
9957
9957
  var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
9958
9958
  fragment MiniQuizQuestionFields on MiniQuizQuestionType {
9959
- id
9960
9959
  answers {
9961
9960
  ...MiniQuizAnswerFields
9962
9961
  }
9963
9962
  question
9963
+ questionId
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 {
@@ -10809,15 +10815,15 @@ var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
10809
10815
  EnumAdStatus2["EXPIRED"] = "Expired";
10810
10816
  return EnumAdStatus2;
10811
10817
  })(EnumAdStatus || {});
10812
- var EnumAdType = /* @__PURE__ */ ((EnumAdType3) => {
10813
- EnumAdType3["SPONSORED"] = "Sponsored";
10814
- EnumAdType3["FREE"] = "Free";
10815
- return EnumAdType3;
10818
+ var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
10819
+ EnumAdType2["SPONSORED"] = "Sponsored";
10820
+ EnumAdType2["FREE"] = "Free";
10821
+ return EnumAdType2;
10816
10822
  })(EnumAdType || {});
10817
- var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle3) => {
10818
- EnumAdStyle3["BLOOM"] = "Bloom";
10819
- EnumAdStyle3["RISE"] = "Rise";
10820
- return EnumAdStyle3;
10823
+ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
10824
+ EnumAdStyle2["BLOOM"] = "Bloom";
10825
+ EnumAdStyle2["RISE"] = "Rise";
10826
+ return EnumAdStyle2;
10821
10827
  })(EnumAdStyle || {});
10822
10828
  var adResourceSchema = create$3({
10823
10829
  adDescription: create$6().nullable().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
@@ -12394,16 +12400,16 @@ var MongooseSchema21 = mongoose21.Schema;
12394
12400
  var schemaMiniQuizAnswer = new MongooseSchema21(
12395
12401
  {
12396
12402
  answer: { required: true, type: String },
12397
- correct: { required: true, type: Boolean },
12398
- id: { required: true, type: String }
12403
+ answerId: { required: true, type: String },
12404
+ correct: { required: true, type: Boolean }
12399
12405
  },
12400
12406
  { _id: false }
12401
12407
  );
12402
12408
  var schemaMiniQuizQuestion = new MongooseSchema21(
12403
12409
  {
12404
12410
  answers: { required: true, type: [schemaMiniQuizAnswer] },
12405
- id: { required: true, type: String },
12406
- question: { required: true, type: String }
12411
+ question: { required: true, type: String },
12412
+ questionId: { required: true, type: String }
12407
12413
  },
12408
12414
  { _id: false }
12409
12415
  );
@@ -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-TTG3LJVZ.mjs.map
12598
+ //# sourceMappingURL=chunk-UG4QCIIG.mjs.map