@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.
@@ -9947,25 +9947,29 @@ 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 {
9961
- gameDate {
9962
- ...GameDateFields
9963
- }
9964
9969
  questions {
9965
9970
  ...MiniQuizQuestionFields
9966
9971
  }
9967
9972
  }
9968
- ${GAME_DATE_FIELDS_FRAGMENT}
9969
9973
  ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
9970
9974
  `;
9971
9975
  var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
@@ -10250,6 +10254,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10250
10254
  }
10251
10255
  ${GAME_DOC_FIELDS_FRAGMENT}
10252
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
+ `;
10253
10268
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10254
10269
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10255
10270
  _id
@@ -12376,24 +12391,17 @@ var schemaDailyClueGameData = new MongooseSchema20(
12376
12391
  // src/mongoose/game/MiniQuiz.ts
12377
12392
  import mongoose21 from "mongoose";
12378
12393
  var MongooseSchema21 = mongoose21.Schema;
12379
- var schemaMiniQuizAnswers = new MongooseSchema21(
12380
- {
12381
- answer: { required: true, type: String },
12382
- correct: { required: true, type: Boolean }
12383
- },
12384
- { _id: false }
12385
- );
12386
- var schemaMiniQuizQuestions = new MongooseSchema21(
12387
- {
12388
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12389
- question: { required: true, type: String }
12390
- },
12391
- { _id: false }
12392
- );
12394
+ var schemaMiniQuizAnswer = new MongooseSchema21({
12395
+ answer: { required: true, type: String },
12396
+ correct: { required: true, type: Boolean }
12397
+ });
12398
+ var schemaMiniQuizQuestion = new MongooseSchema21({
12399
+ answers: { required: true, type: [schemaMiniQuizAnswer] },
12400
+ question: { required: true, type: String }
12401
+ });
12393
12402
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12394
12403
  {
12395
- gameDate: { required: true, type: Date },
12396
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12404
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12397
12405
  },
12398
12406
  { _id: false }
12399
12407
  );
@@ -12404,7 +12412,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12404
12412
  quizInfo: {
12405
12413
  default: null,
12406
12414
  required: false,
12407
- type: [schemaMiniQuizQuestions]
12415
+ type: [schemaMiniQuizQuestion]
12408
12416
  },
12409
12417
  streak: { default: 0, required: true, type: Number }
12410
12418
  },
@@ -12566,4 +12574,4 @@ react/cjs/react.development.js:
12566
12574
  * LICENSE file in the root directory of this source tree.
12567
12575
  *)
12568
12576
  */
12569
- //# sourceMappingURL=chunk-QVELNUI7.mjs.map
12577
+ //# sourceMappingURL=chunk-LOP3RVHN.mjs.map