@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.
package/dist/index.mjs CHANGED
@@ -9968,25 +9968,29 @@ 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 {
9982
- gameDate {
9983
- ...GameDateFields
9984
- }
9985
9990
  questions {
9986
9991
  ...MiniQuizQuestionFields
9987
9992
  }
9988
9993
  }
9989
- ${GAME_DATE_FIELDS_FRAGMENT}
9990
9994
  ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
9991
9995
  `;
9992
9996
  var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
@@ -10271,6 +10275,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10271
10275
  }
10272
10276
  ${GAME_DOC_FIELDS_FRAGMENT}
10273
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
+ `;
10274
10289
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10275
10290
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10276
10291
  _id
@@ -12397,24 +12412,17 @@ var schemaDailyClueGameData = new MongooseSchema20(
12397
12412
  // src/mongoose/game/MiniQuiz.ts
12398
12413
  import mongoose21 from "mongoose";
12399
12414
  var MongooseSchema21 = mongoose21.Schema;
12400
- var schemaMiniQuizAnswers = new MongooseSchema21(
12401
- {
12402
- answer: { required: true, type: String },
12403
- correct: { required: true, type: Boolean }
12404
- },
12405
- { _id: false }
12406
- );
12407
- var schemaMiniQuizQuestions = new MongooseSchema21(
12408
- {
12409
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12410
- question: { required: true, type: String }
12411
- },
12412
- { _id: false }
12413
- );
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
+ });
12414
12423
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12415
12424
  {
12416
- gameDate: { required: true, type: Date },
12417
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12425
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12418
12426
  },
12419
12427
  { _id: false }
12420
12428
  );
@@ -12425,7 +12433,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12425
12433
  quizInfo: {
12426
12434
  default: null,
12427
12435
  required: false,
12428
- type: [schemaMiniQuizQuestions]
12436
+ type: [schemaMiniQuizQuestion]
12429
12437
  },
12430
12438
  streak: { default: 0, required: true, type: Number }
12431
12439
  },