@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.
@@ -36,7 +36,7 @@ import {
36
36
  resourceRelationsSchema,
37
37
  termsAgreementSchema,
38
38
  userLicenseSchema
39
- } from "../chunk-TTG3LJVZ.mjs";
39
+ } from "../chunk-UG4QCIIG.mjs";
40
40
  import "../chunk-3QS3WKRC.mjs";
41
41
  export {
42
42
  APP_SETTINGS_ID,
@@ -10014,21 +10014,27 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
10014
10014
  `;
10015
10015
  var MINI_QUIZ_ANSWER_FIELDS_FRAGMENT = gql`
10016
10016
  fragment MiniQuizAnswerFields on MiniQuizAnswerType {
10017
- id
10018
10017
  answer
10018
+ answerId
10019
10019
  correct
10020
10020
  }
10021
10021
  `;
10022
10022
  var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
10023
10023
  fragment MiniQuizQuestionFields on MiniQuizQuestionType {
10024
- id
10025
10024
  answers {
10026
10025
  ...MiniQuizAnswerFields
10027
10026
  }
10028
10027
  question
10028
+ questionId
10029
10029
  }
10030
10030
  ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
10031
10031
  `;
10032
+ var MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT = gql`
10033
+ fragment MiniQuizAnsweredQuestionFields on MiniQuizAnsweredQuestionType {
10034
+ questionId
10035
+ selectedAnswerId
10036
+ }
10037
+ `;
10032
10038
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
10033
10039
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
10034
10040
  questions {
@@ -10042,14 +10048,14 @@ var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
10042
10048
  gameFields {
10043
10049
  ...MiniQuizBaseGameFields
10044
10050
  }
10045
- quizInfo {
10046
- ...MiniQuizQuestionFields
10051
+ answeredQuestions {
10052
+ ...MiniQuizAnsweredQuestionFields
10047
10053
  }
10048
10054
  points
10049
10055
  streak
10050
10056
  }
10051
10057
  ${MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT}
10052
- ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
10058
+ ${MINI_QUIZ_ANSWERED_QUESTION_FIELDS_FRAGMENT}
10053
10059
  `;
10054
10060
  var GAME_HISTORY_FIELDS_FRAGMENT = gql`
10055
10061
  fragment GameHistoryFields on GameHistoryType {
@@ -10874,15 +10880,15 @@ var EnumAdStatus = /* @__PURE__ */ ((EnumAdStatus2) => {
10874
10880
  EnumAdStatus2["EXPIRED"] = "Expired";
10875
10881
  return EnumAdStatus2;
10876
10882
  })(EnumAdStatus || {});
10877
- var EnumAdType = /* @__PURE__ */ ((EnumAdType3) => {
10878
- EnumAdType3["SPONSORED"] = "Sponsored";
10879
- EnumAdType3["FREE"] = "Free";
10880
- return EnumAdType3;
10883
+ var EnumAdType = /* @__PURE__ */ ((EnumAdType2) => {
10884
+ EnumAdType2["SPONSORED"] = "Sponsored";
10885
+ EnumAdType2["FREE"] = "Free";
10886
+ return EnumAdType2;
10881
10887
  })(EnumAdType || {});
10882
- var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle3) => {
10883
- EnumAdStyle3["BLOOM"] = "Bloom";
10884
- EnumAdStyle3["RISE"] = "Rise";
10885
- return EnumAdStyle3;
10888
+ var EnumAdStyle = /* @__PURE__ */ ((EnumAdStyle2) => {
10889
+ EnumAdStyle2["BLOOM"] = "Bloom";
10890
+ EnumAdStyle2["RISE"] = "Rise";
10891
+ return EnumAdStyle2;
10886
10892
  })(EnumAdStyle || {});
10887
10893
  var adResourceSchema = create$3({
10888
10894
  adDescription: create$6().nullable().trim().required("Ad description is required").max(150, "Ad description must be at most 150 characters"),
@@ -12593,16 +12599,16 @@ var MongooseSchema21 = import_mongoose22.default.Schema;
12593
12599
  var schemaMiniQuizAnswer = new MongooseSchema21(
12594
12600
  {
12595
12601
  answer: { required: true, type: String },
12596
- correct: { required: true, type: Boolean },
12597
- id: { required: true, type: String }
12602
+ answerId: { required: true, type: String },
12603
+ correct: { required: true, type: Boolean }
12598
12604
  },
12599
12605
  { _id: false }
12600
12606
  );
12601
12607
  var schemaMiniQuizQuestion = new MongooseSchema21(
12602
12608
  {
12603
12609
  answers: { required: true, type: [schemaMiniQuizAnswer] },
12604
- id: { required: true, type: String },
12605
- question: { required: true, type: String }
12610
+ question: { required: true, type: String },
12611
+ questionId: { required: true, type: String }
12606
12612
  },
12607
12613
  { _id: false }
12608
12614
  );
@@ -12612,15 +12618,22 @@ var schemaMiniQuizBaseGame = new MongooseSchema21(
12612
12618
  },
12613
12619
  { _id: false }
12614
12620
  );
12621
+ var schemaMiniQuizAnsweredQuestion = new MongooseSchema21(
12622
+ {
12623
+ questionId: { required: true, type: String },
12624
+ selectedAnswerId: { required: true, type: String }
12625
+ },
12626
+ { _id: false }
12627
+ );
12615
12628
  var schemaMiniQuizGameData = new MongooseSchema21(
12616
12629
  {
12617
- gameFields: { required: true, type: schemaMiniQuizBaseGame },
12618
- points: { default: 0, required: true, type: Number },
12619
- quizInfo: {
12630
+ answeredQuestions: {
12620
12631
  default: null,
12621
12632
  required: false,
12622
- type: [schemaMiniQuizQuestion]
12633
+ type: [schemaMiniQuizAnsweredQuestion]
12623
12634
  },
12635
+ gameFields: { required: true, type: schemaMiniQuizBaseGame },
12636
+ points: { default: 0, required: true, type: Number },
12624
12637
  streak: { default: 0, required: true, type: Number }
12625
12638
  },
12626
12639
  { _id: false }