@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.
package/dist/index.cjs CHANGED
@@ -10029,21 +10029,27 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
10029
10029
  `;
10030
10030
  var MINI_QUIZ_ANSWER_FIELDS_FRAGMENT = gql`
10031
10031
  fragment MiniQuizAnswerFields on MiniQuizAnswerType {
10032
- id
10033
10032
  answer
10033
+ answerId
10034
10034
  correct
10035
10035
  }
10036
10036
  `;
10037
10037
  var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
10038
10038
  fragment MiniQuizQuestionFields on MiniQuizQuestionType {
10039
- id
10040
10039
  answers {
10041
10040
  ...MiniQuizAnswerFields
10042
10041
  }
10043
10042
  question
10043
+ questionId
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 {
@@ -10889,15 +10895,15 @@ var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
10889
10895
  EnumAdStatus2["EXPIRED"] = "Expired";
10890
10896
  return EnumAdStatus2;
10891
10897
  })(EnumAdStatus || {});
10892
- var EnumAdType = /* @__PURE__ */ ((EnumAdType3) => {
10893
- EnumAdType3["SPONSORED"] = "Sponsored";
10894
- EnumAdType3["FREE"] = "Free";
10895
- return EnumAdType3;
10898
+ var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
10899
+ EnumAdType2["SPONSORED"] = "Sponsored";
10900
+ EnumAdType2["FREE"] = "Free";
10901
+ return EnumAdType2;
10896
10902
  })(EnumAdType || {});
10897
- var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle3) => {
10898
- EnumAdStyle3["BLOOM"] = "Bloom";
10899
- EnumAdStyle3["RISE"] = "Rise";
10900
- return EnumAdStyle3;
10903
+ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
10904
+ EnumAdStyle2["BLOOM"] = "Bloom";
10905
+ EnumAdStyle2["RISE"] = "Rise";
10906
+ return EnumAdStyle2;
10901
10907
  })(EnumAdStyle || {});
10902
10908
  var adResourceSchema = create$3({
10903
10909
  adDescription: create$6().nullable().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
@@ -12474,16 +12480,16 @@ var MongooseSchema21 = import_mongoose21.default.Schema;
12474
12480
  var schemaMiniQuizAnswer = new MongooseSchema21(
12475
12481
  {
12476
12482
  answer: { required: true, type: String },
12477
- correct: { required: true, type: Boolean },
12478
- id: { required: true, type: String }
12483
+ answerId: { required: true, type: String },
12484
+ correct: { required: true, type: Boolean }
12479
12485
  },
12480
12486
  { _id: false }
12481
12487
  );
12482
12488
  var schemaMiniQuizQuestion = new MongooseSchema21(
12483
12489
  {
12484
12490
  answers: { required: true, type: [schemaMiniQuizAnswer] },
12485
- id: { required: true, type: String },
12486
- question: { required: true, type: String }
12491
+ question: { required: true, type: String },
12492
+ questionId: { required: true, type: String }
12487
12493
  },
12488
12494
  { _id: false }
12489
12495
  );
@@ -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 }