@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.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,17 @@ 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(
12456
- {
12457
- answer: { required: true, type: String },
12458
- correct: { required: true, type: Boolean }
12459
- },
12460
- { _id: false }
12461
- );
12462
- var schemaMiniQuizQuestions = new MongooseSchema21(
12463
- {
12464
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12465
- question: { required: true, type: String }
12466
- },
12467
- { _id: false }
12468
- );
12474
+ var schemaMiniQuizAnswer = new MongooseSchema21({
12475
+ answer: { required: true, type: String },
12476
+ correct: { required: true, type: Boolean }
12477
+ });
12478
+ var schemaMiniQuizQuestion = new MongooseSchema21({
12479
+ answers: { required: true, type: [schemaMiniQuizAnswer] },
12480
+ question: { required: true, type: String }
12481
+ });
12469
12482
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12470
12483
  {
12471
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12484
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12472
12485
  },
12473
12486
  { _id: false }
12474
12487
  );
@@ -12479,7 +12492,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12479
12492
  quizInfo: {
12480
12493
  default: null,
12481
12494
  required: false,
12482
- type: [schemaMiniQuizQuestions]
12495
+ type: [schemaMiniQuizQuestion]
12483
12496
  },
12484
12497
  streak: { default: 0, required: true, type: Number }
12485
12498
  },