@timardex/cluemart-server-shared 1.0.151 → 1.0.153

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.
@@ -10017,25 +10017,29 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
10017
10017
  }
10018
10018
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
10019
10019
  `;
10020
+ var MINI_QUIZ_ANSWER_FIELDS_FRAGMENT = gql`
10021
+ fragment MiniQuizAnswerFields on MiniQuizAnswerType {
10022
+ _id
10023
+ answer
10024
+ correct
10025
+ }
10026
+ `;
10020
10027
  var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
10021
10028
  fragment MiniQuizQuestionFields on MiniQuizQuestionType {
10029
+ _id
10022
10030
  answers {
10023
- answer
10024
- correct
10031
+ ...MiniQuizAnswerFields
10025
10032
  }
10026
10033
  question
10027
10034
  }
10035
+ ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
10028
10036
  `;
10029
10037
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
10030
10038
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
10031
- gameDate {
10032
- ...GameDateFields
10033
- }
10034
10039
  questions {
10035
10040
  ...MiniQuizQuestionFields
10036
10041
  }
10037
10042
  }
10038
- ${GAME_DATE_FIELDS_FRAGMENT}
10039
10043
  ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
10040
10044
  `;
10041
10045
  var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
@@ -10320,6 +10324,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10320
10324
  }
10321
10325
  ${GAME_DOC_FIELDS_FRAGMENT}
10322
10326
  `;
10327
+ var UPDATE_MINI_QUIZ_MUTATION = gql`
10328
+ mutation updateMiniQuizGame(
10329
+ $_id: ID!
10330
+ $questions: [MiniQuizQuestionInputType!]!
10331
+ ) {
10332
+ updateMiniQuizGame(_id: $_id, questions: $questions) {
10333
+ ...GameDocFields
10334
+ }
10335
+ }
10336
+ ${GAME_DOC_FIELDS_FRAGMENT}
10337
+ `;
10323
10338
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10324
10339
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10325
10340
  _id
@@ -12446,24 +12461,17 @@ var schemaDailyClueGameData = new MongooseSchema20(
12446
12461
  // src/mongoose/game/MiniQuiz.ts
12447
12462
  var import_mongoose21 = __toESM(require("mongoose"));
12448
12463
  var MongooseSchema21 = import_mongoose21.default.Schema;
12449
- var schemaMiniQuizAnswers = new MongooseSchema21(
12450
- {
12451
- answer: { required: true, type: String },
12452
- correct: { required: true, type: Boolean }
12453
- },
12454
- { _id: false }
12455
- );
12456
- var schemaMiniQuizQuestions = new MongooseSchema21(
12457
- {
12458
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12459
- question: { required: true, type: String }
12460
- },
12461
- { _id: false }
12462
- );
12464
+ var schemaMiniQuizAnswer = new MongooseSchema21({
12465
+ answer: { required: true, type: String },
12466
+ correct: { required: true, type: Boolean }
12467
+ });
12468
+ var schemaMiniQuizQuestion = new MongooseSchema21({
12469
+ answers: { required: true, type: [schemaMiniQuizAnswer] },
12470
+ question: { required: true, type: String }
12471
+ });
12463
12472
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12464
12473
  {
12465
- gameDate: { required: true, type: Date },
12466
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12474
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12467
12475
  },
12468
12476
  { _id: false }
12469
12477
  );
@@ -12474,7 +12482,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12474
12482
  quizInfo: {
12475
12483
  default: null,
12476
12484
  required: false,
12477
- type: [schemaMiniQuizQuestions]
12485
+ type: [schemaMiniQuizQuestion]
12478
12486
  },
12479
12487
  streak: { default: 0, required: true, type: Number }
12480
12488
  },