@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.cjs CHANGED
@@ -10027,25 +10027,29 @@ 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 {
10041
- gameDate {
10042
- ...GameDateFields
10043
- }
10044
10049
  questions {
10045
10050
  ...MiniQuizQuestionFields
10046
10051
  }
10047
10052
  }
10048
- ${GAME_DATE_FIELDS_FRAGMENT}
10049
10053
  ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
10050
10054
  `;
10051
10055
  var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
@@ -10330,6 +10334,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10330
10334
  }
10331
10335
  ${GAME_DOC_FIELDS_FRAGMENT}
10332
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
+ `;
10333
10348
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10334
10349
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10335
10350
  _id
@@ -12456,24 +12471,17 @@ var schemaDailyClueGameData = new MongooseSchema20(
12456
12471
  // src/mongoose/game/MiniQuiz.ts
12457
12472
  var import_mongoose21 = __toESM(require("mongoose"));
12458
12473
  var MongooseSchema21 = import_mongoose21.default.Schema;
12459
- var schemaMiniQuizAnswers = new MongooseSchema21(
12460
- {
12461
- answer: { required: true, type: String },
12462
- correct: { required: true, type: Boolean }
12463
- },
12464
- { _id: false }
12465
- );
12466
- var schemaMiniQuizQuestions = new MongooseSchema21(
12467
- {
12468
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12469
- question: { required: true, type: String }
12470
- },
12471
- { _id: false }
12472
- );
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
+ });
12473
12482
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12474
12483
  {
12475
- gameDate: { required: true, type: Date },
12476
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12484
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12477
12485
  },
12478
12486
  { _id: false }
12479
12487
  );
@@ -12484,7 +12492,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12484
12492
  quizInfo: {
12485
12493
  default: null,
12486
12494
  required: false,
12487
- type: [schemaMiniQuizQuestions]
12495
+ type: [schemaMiniQuizQuestion]
12488
12496
  },
12489
12497
  streak: { default: 0, required: true, type: Number }
12490
12498
  },