@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.
@@ -10019,21 +10019,27 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
10019
10019
  `;
10020
10020
  var MINI_QUIZ_ANSWER_FIELDS_FRAGMENT = gql`
10021
10021
  fragment MiniQuizAnswerFields on MiniQuizAnswerType {
10022
- id
10023
10022
  answer
10023
+ answerId
10024
10024
  correct
10025
10025
  }
10026
10026
  `;
10027
10027
  var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
10028
10028
  fragment MiniQuizQuestionFields on MiniQuizQuestionType {
10029
- id
10030
10029
  answers {
10031
10030
  ...MiniQuizAnswerFields
10032
10031
  }
10033
10032
  question
10033
+ questionId
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 {
@@ -10879,15 +10885,15 @@ var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
10879
10885
  EnumAdStatus2["EXPIRED"] = "Expired";
10880
10886
  return EnumAdStatus2;
10881
10887
  })(EnumAdStatus || {});
10882
- var EnumAdType = /* @__PURE__ */ ((EnumAdType3) => {
10883
- EnumAdType3["SPONSORED"] = "Sponsored";
10884
- EnumAdType3["FREE"] = "Free";
10885
- return EnumAdType3;
10888
+ var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
10889
+ EnumAdType2["SPONSORED"] = "Sponsored";
10890
+ EnumAdType2["FREE"] = "Free";
10891
+ return EnumAdType2;
10886
10892
  })(EnumAdType || {});
10887
- var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle3) => {
10888
- EnumAdStyle3["BLOOM"] = "Bloom";
10889
- EnumAdStyle3["RISE"] = "Rise";
10890
- return EnumAdStyle3;
10893
+ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
10894
+ EnumAdStyle2["BLOOM"] = "Bloom";
10895
+ EnumAdStyle2["RISE"] = "Rise";
10896
+ return EnumAdStyle2;
10891
10897
  })(EnumAdStyle || {});
10892
10898
  var adResourceSchema = create$3({
10893
10899
  adDescription: create$6().nullable().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
@@ -12464,16 +12470,16 @@ var MongooseSchema21 = import_mongoose21.default.Schema;
12464
12470
  var schemaMiniQuizAnswer = new MongooseSchema21(
12465
12471
  {
12466
12472
  answer: { required: true, type: String },
12467
- correct: { required: true, type: Boolean },
12468
- id: { required: true, type: String }
12473
+ answerId: { required: true, type: String },
12474
+ correct: { required: true, type: Boolean }
12469
12475
  },
12470
12476
  { _id: false }
12471
12477
  );
12472
12478
  var schemaMiniQuizQuestion = new MongooseSchema21(
12473
12479
  {
12474
12480
  answers: { required: true, type: [schemaMiniQuizAnswer] },
12475
- id: { required: true, type: String },
12476
- question: { required: true, type: String }
12481
+ question: { required: true, type: String },
12482
+ questionId: { required: true, type: String }
12477
12483
  },
12478
12484
  { _id: false }
12479
12485
  );
@@ -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 }