@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.
@@ -36,7 +36,7 @@ import {
36
36
  resourceRelationsSchema,
37
37
  termsAgreementSchema,
38
38
  userLicenseSchema
39
- } from "../chunk-KM44V4EU.mjs";
39
+ } from "../chunk-LOP3RVHN.mjs";
40
40
  import "../chunk-3QS3WKRC.mjs";
41
41
  export {
42
42
  APP_SETTINGS_ID,
@@ -10012,14 +10012,22 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
10012
10012
  }
10013
10013
  ${DAILY_CLUE_BASE_GAME_FIELDS_FRAGMENT}
10014
10014
  `;
10015
+ var MINI_QUIZ_ANSWER_FIELDS_FRAGMENT = gql`
10016
+ fragment MiniQuizAnswerFields on MiniQuizAnswerType {
10017
+ _id
10018
+ answer
10019
+ correct
10020
+ }
10021
+ `;
10015
10022
  var MINI_QUIZ_QUESTION_FIELDS_FRAGMENT = gql`
10016
10023
  fragment MiniQuizQuestionFields on MiniQuizQuestionType {
10024
+ _id
10017
10025
  answers {
10018
- answer
10019
- correct
10026
+ ...MiniQuizAnswerFields
10020
10027
  }
10021
10028
  question
10022
10029
  }
10030
+ ${MINI_QUIZ_ANSWER_FIELDS_FRAGMENT}
10023
10031
  `;
10024
10032
  var MINI_QUIZ_BASE_GAME_FIELDS_FRAGMENT = gql`
10025
10033
  fragment MiniQuizBaseGameFields on MiniQuizBaseGameType {
@@ -10311,6 +10319,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10311
10319
  }
10312
10320
  ${GAME_DOC_FIELDS_FRAGMENT}
10313
10321
  `;
10322
+ var UPDATE_MINI_QUIZ_MUTATION = gql`
10323
+ mutation updateMiniQuizGame(
10324
+ $_id: ID!
10325
+ $questions: [MiniQuizQuestionInputType!]!
10326
+ ) {
10327
+ updateMiniQuizGame(_id: $_id, questions: $questions) {
10328
+ ...GameDocFields
10329
+ }
10330
+ }
10331
+ ${GAME_DOC_FIELDS_FRAGMENT}
10332
+ `;
10314
10333
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10315
10334
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10316
10335
  _id
@@ -12571,23 +12590,17 @@ var schemaDailyClueGameData = new MongooseSchema20(
12571
12590
  // src/mongoose/game/MiniQuiz.ts
12572
12591
  var import_mongoose22 = __toESM(require("mongoose"));
12573
12592
  var MongooseSchema21 = import_mongoose22.default.Schema;
12574
- var schemaMiniQuizAnswers = new MongooseSchema21(
12575
- {
12576
- answer: { required: true, type: String },
12577
- correct: { required: true, type: Boolean }
12578
- },
12579
- { _id: false }
12580
- );
12581
- var schemaMiniQuizQuestions = new MongooseSchema21(
12582
- {
12583
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12584
- question: { required: true, type: String }
12585
- },
12586
- { _id: false }
12587
- );
12593
+ var schemaMiniQuizAnswer = new MongooseSchema21({
12594
+ answer: { required: true, type: String },
12595
+ correct: { required: true, type: Boolean }
12596
+ });
12597
+ var schemaMiniQuizQuestion = new MongooseSchema21({
12598
+ answers: { required: true, type: [schemaMiniQuizAnswer] },
12599
+ question: { required: true, type: String }
12600
+ });
12588
12601
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12589
12602
  {
12590
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12603
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12591
12604
  },
12592
12605
  { _id: false }
12593
12606
  );
@@ -12598,7 +12611,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12598
12611
  quizInfo: {
12599
12612
  default: null,
12600
12613
  required: false,
12601
- type: [schemaMiniQuizQuestions]
12614
+ type: [schemaMiniQuizQuestion]
12602
12615
  },
12603
12616
  streak: { default: 0, required: true, type: Number }
12604
12617
  },