@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.
package/dist/index.mjs CHANGED
@@ -9968,14 +9968,22 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
9968
9968
  }
9969
9969
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
9970
9970
  `;
9971
+ var MINI_QUIZ_ANSWER_FIELDS_FRAGMENT = gql`
9972
+ fragment MiniQuizAnswerFields on MiniQuizAnswerType {
9973
+ _id
9974
+ answer
9975
+ correct
9976
+ }
9977
+ `;
9971
9978
  var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
9972
9979
  fragment MiniQuizQuestionFields on MiniQuizQuestionType {
9980
+ _id
9973
9981
  answers {
9974
- answer
9975
- correct
9982
+ ...MiniQuizAnswerFields
9976
9983
  }
9977
9984
  question
9978
9985
  }
9986
+ ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
9979
9987
  `;
9980
9988
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
9981
9989
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
@@ -10267,6 +10275,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10267
10275
  }
10268
10276
  ${GAME_DOC_FIELDS_FRAGMENT}
10269
10277
  `;
10278
+ var UPDATE_MINI_QUIZ_MUTATION = gql`
10279
+ mutation updateMiniQuizGame(
10280
+ $_id: ID!
10281
+ $questions: [MiniQuizQuestionInputType!]!
10282
+ ) {
10283
+ updateMiniQuizGame(_id: $_id, questions: $questions) {
10284
+ ...GameDocFields
10285
+ }
10286
+ }
10287
+ ${GAME_DOC_FIELDS_FRAGMENT}
10288
+ `;
10270
10289
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10271
10290
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10272
10291
  _id
@@ -12393,23 +12412,23 @@ var schemaDailyClueGameData = new MongooseSchema20(
12393
12412
  // src/mongoose/game/MiniQuiz.ts
12394
12413
  import mongoose21 from "mongoose";
12395
12414
  var MongooseSchema21 = mongoose21.Schema;
12396
- var schemaMiniQuizAnswers = new MongooseSchema21(
12415
+ var schemaMiniQuizAnswer = new MongooseSchema21(
12397
12416
  {
12398
12417
  answer: { required: true, type: String },
12399
12418
  correct: { required: true, type: Boolean }
12400
12419
  },
12401
12420
  { _id: false }
12402
12421
  );
12403
- var schemaMiniQuizQuestions = new MongooseSchema21(
12422
+ var schemaMiniQuizQuestion = new MongooseSchema21(
12404
12423
  {
12405
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12424
+ answers: { required: true, type: [schemaMiniQuizAnswer] },
12406
12425
  question: { required: true, type: String }
12407
12426
  },
12408
12427
  { _id: false }
12409
12428
  );
12410
12429
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12411
12430
  {
12412
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12431
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12413
12432
  },
12414
12433
  { _id: false }
12415
12434
  );
@@ -12420,7 +12439,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12420
12439
  quizInfo: {
12421
12440
  default: null,
12422
12441
  required: false,
12423
- type: [schemaMiniQuizQuestions]
12442
+ type: [schemaMiniQuizQuestion]
12424
12443
  },
12425
12444
  streak: { default: 0, required: true, type: Number }
12426
12445
  },