@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.
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,17 @@ 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(
12397
- {
12398
- answer: { required: true, type: String },
12399
- correct: { required: true, type: Boolean }
12400
- },
12401
- { _id: false }
12402
- );
12403
- var schemaMiniQuizQuestions = new MongooseSchema21(
12404
- {
12405
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12406
- question: { required: true, type: String }
12407
- },
12408
- { _id: false }
12409
- );
12415
+ var schemaMiniQuizAnswer = new MongooseSchema21({
12416
+ answer: { required: true, type: String },
12417
+ correct: { required: true, type: Boolean }
12418
+ });
12419
+ var schemaMiniQuizQuestion = new MongooseSchema21({
12420
+ answers: { required: true, type: [schemaMiniQuizAnswer] },
12421
+ question: { required: true, type: String }
12422
+ });
12410
12423
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12411
12424
  {
12412
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12425
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12413
12426
  },
12414
12427
  { _id: false }
12415
12428
  );
@@ -12420,7 +12433,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12420
12433
  quizInfo: {
12421
12434
  default: null,
12422
12435
  required: false,
12423
- type: [schemaMiniQuizQuestions]
12436
+ type: [schemaMiniQuizQuestion]
12424
12437
  },
12425
12438
  streak: { default: 0, required: true, type: Number }
12426
12439
  },