@timardex/cluemart-server-shared 1.0.152 → 1.0.154

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.
@@ -9947,14 +9947,22 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
9947
9947
  }
9948
9948
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
9949
9949
  `;
9950
+ var MINI_QUIZ_ANSWER_FIELDS_FRAGMENT = gql`
9951
+ fragment MiniQuizAnswerFields on MiniQuizAnswerType {
9952
+ _id
9953
+ answer
9954
+ correct
9955
+ }
9956
+ `;
9950
9957
  var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
9951
9958
  fragment MiniQuizQuestionFields on MiniQuizQuestionType {
9959
+ _id
9952
9960
  answers {
9953
- answer
9954
- correct
9961
+ ...MiniQuizAnswerFields
9955
9962
  }
9956
9963
  question
9957
9964
  }
9965
+ ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
9958
9966
  `;
9959
9967
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
9960
9968
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
@@ -10246,6 +10254,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10246
10254
  }
10247
10255
  ${GAME_DOC_FIELDS_FRAGMENT}
10248
10256
  `;
10257
+ var UPDATE_MINI_QUIZ_MUTATION = gql`
10258
+ mutation updateMiniQuizGame(
10259
+ $_id: ID!
10260
+ $questions: [MiniQuizQuestionInputType!]!
10261
+ ) {
10262
+ updateMiniQuizGame(_id: $_id, questions: $questions) {
10263
+ ...GameDocFields
10264
+ }
10265
+ }
10266
+ ${GAME_DOC_FIELDS_FRAGMENT}
10267
+ `;
10249
10268
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10250
10269
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10251
10270
  _id
@@ -12372,23 +12391,23 @@ var schemaDailyClueGameData = new MongooseSchema20(
12372
12391
  // src/mongoose/game/MiniQuiz.ts
12373
12392
  import mongoose21 from "mongoose";
12374
12393
  var MongooseSchema21 = mongoose21.Schema;
12375
- var schemaMiniQuizAnswers = new MongooseSchema21(
12394
+ var schemaMiniQuizAnswer = new MongooseSchema21(
12376
12395
  {
12377
12396
  answer: { required: true, type: String },
12378
12397
  correct: { required: true, type: Boolean }
12379
12398
  },
12380
12399
  { _id: false }
12381
12400
  );
12382
- var schemaMiniQuizQuestions = new MongooseSchema21(
12401
+ var schemaMiniQuizQuestion = new MongooseSchema21(
12383
12402
  {
12384
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12403
+ answers: { required: true, type: [schemaMiniQuizAnswer] },
12385
12404
  question: { required: true, type: String }
12386
12405
  },
12387
12406
  { _id: false }
12388
12407
  );
12389
12408
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12390
12409
  {
12391
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12410
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12392
12411
  },
12393
12412
  { _id: false }
12394
12413
  );
@@ -12399,7 +12418,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12399
12418
  quizInfo: {
12400
12419
  default: null,
12401
12420
  required: false,
12402
- type: [schemaMiniQuizQuestions]
12421
+ type: [schemaMiniQuizQuestion]
12403
12422
  },
12404
12423
  streak: { default: 0, required: true, type: Number }
12405
12424
  },
@@ -12561,4 +12580,4 @@ react/cjs/react.development.js:
12561
12580
  * LICENSE file in the root directory of this source tree.
12562
12581
  *)
12563
12582
  */
12564
- //# sourceMappingURL=chunk-KM44V4EU.mjs.map
12583
+ //# sourceMappingURL=chunk-CDK2GKWF.mjs.map