@timardex/cluemart-server-shared 1.0.152 → 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,14 +10017,22 @@ 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 {
@@ -10316,6 +10324,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10316
10324
  }
10317
10325
  ${GAME_DOC_FIELDS_FRAGMENT}
10318
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
+ `;
10319
10338
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10320
10339
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10321
10340
  _id
@@ -12442,23 +12461,17 @@ var schemaDailyClueGameData = new MongooseSchema20(
12442
12461
  // src/mongoose/game/MiniQuiz.ts
12443
12462
  var import_mongoose21 = __toESM(require("mongoose"));
12444
12463
  var MongooseSchema21 = import_mongoose21.default.Schema;
12445
- var schemaMiniQuizAnswers = new MongooseSchema21(
12446
- {
12447
- answer: { required: true, type: String },
12448
- correct: { required: true, type: Boolean }
12449
- },
12450
- { _id: false }
12451
- );
12452
- var schemaMiniQuizQuestions = new MongooseSchema21(
12453
- {
12454
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12455
- question: { required: true, type: String }
12456
- },
12457
- { _id: false }
12458
- );
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
+ });
12459
12472
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12460
12473
  {
12461
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12474
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12462
12475
  },
12463
12476
  { _id: false }
12464
12477
  );
@@ -12469,7 +12482,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12469
12482
  quizInfo: {
12470
12483
  default: null,
12471
12484
  required: false,
12472
- type: [schemaMiniQuizQuestions]
12485
+ type: [schemaMiniQuizQuestion]
12473
12486
  },
12474
12487
  streak: { default: 0, required: true, type: Number }
12475
12488
  },