@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.cjs CHANGED
@@ -10027,14 +10027,22 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
10027
10027
  }
10028
10028
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
10029
10029
  `;
10030
+ var MINI_QUIZ_ANSWER_FIELDS_FRAGMENT = gql`
10031
+ fragment MiniQuizAnswerFields on MiniQuizAnswerType {
10032
+ _id
10033
+ answer
10034
+ correct
10035
+ }
10036
+ `;
10030
10037
  var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
10031
10038
  fragment MiniQuizQuestionFields on MiniQuizQuestionType {
10039
+ _id
10032
10040
  answers {
10033
- answer
10034
- correct
10041
+ ...MiniQuizAnswerFields
10035
10042
  }
10036
10043
  question
10037
10044
  }
10045
+ ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
10038
10046
  `;
10039
10047
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
10040
10048
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
@@ -10326,6 +10334,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10326
10334
  }
10327
10335
  ${GAME_DOC_FIELDS_FRAGMENT}
10328
10336
  `;
10337
+ var UPDATE_MINI_QUIZ_MUTATION = gql`
10338
+ mutation updateMiniQuizGame(
10339
+ $_id: ID!
10340
+ $questions: [MiniQuizQuestionInputType!]!
10341
+ ) {
10342
+ updateMiniQuizGame(_id: $_id, questions: $questions) {
10343
+ ...GameDocFields
10344
+ }
10345
+ }
10346
+ ${GAME_DOC_FIELDS_FRAGMENT}
10347
+ `;
10329
10348
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10330
10349
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10331
10350
  _id
@@ -12452,23 +12471,23 @@ var schemaDailyClueGameData = new MongooseSchema20(
12452
12471
  // src/mongoose/game/MiniQuiz.ts
12453
12472
  var import_mongoose21 = __toESM(require("mongoose"));
12454
12473
  var MongooseSchema21 = import_mongoose21.default.Schema;
12455
- var schemaMiniQuizAnswers = new MongooseSchema21(
12474
+ var schemaMiniQuizAnswer = new MongooseSchema21(
12456
12475
  {
12457
12476
  answer: { required: true, type: String },
12458
12477
  correct: { required: true, type: Boolean }
12459
12478
  },
12460
12479
  { _id: false }
12461
12480
  );
12462
- var schemaMiniQuizQuestions = new MongooseSchema21(
12481
+ var schemaMiniQuizQuestion = new MongooseSchema21(
12463
12482
  {
12464
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12483
+ answers: { required: true, type: [schemaMiniQuizAnswer] },
12465
12484
  question: { required: true, type: String }
12466
12485
  },
12467
12486
  { _id: false }
12468
12487
  );
12469
12488
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12470
12489
  {
12471
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12490
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12472
12491
  },
12473
12492
  { _id: false }
12474
12493
  );
@@ -12479,7 +12498,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12479
12498
  quizInfo: {
12480
12499
  default: null,
12481
12500
  required: false,
12482
- type: [schemaMiniQuizQuestions]
12501
+ type: [schemaMiniQuizQuestion]
12483
12502
  },
12484
12503
  streak: { default: 0, required: true, type: Number }
12485
12504
  },