@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.
@@ -36,7 +36,7 @@ import {
36
36
  resourceRelationsSchema,
37
37
  termsAgreementSchema,
38
38
  userLicenseSchema
39
- } from "../chunk-KM44V4EU.mjs";
39
+ } from "../chunk-CDK2GKWF.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,23 @@ 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(
12593
+ var schemaMiniQuizAnswer = new MongooseSchema21(
12575
12594
  {
12576
12595
  answer: { required: true, type: String },
12577
12596
  correct: { required: true, type: Boolean }
12578
12597
  },
12579
12598
  { _id: false }
12580
12599
  );
12581
- var schemaMiniQuizQuestions = new MongooseSchema21(
12600
+ var schemaMiniQuizQuestion = new MongooseSchema21(
12582
12601
  {
12583
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12602
+ answers: { required: true, type: [schemaMiniQuizAnswer] },
12584
12603
  question: { required: true, type: String }
12585
12604
  },
12586
12605
  { _id: false }
12587
12606
  );
12588
12607
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12589
12608
  {
12590
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12609
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12591
12610
  },
12592
12611
  { _id: false }
12593
12612
  );
@@ -12598,7 +12617,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12598
12617
  quizInfo: {
12599
12618
  default: null,
12600
12619
  required: false,
12601
- type: [schemaMiniQuizQuestions]
12620
+ type: [schemaMiniQuizQuestion]
12602
12621
  },
12603
12622
  streak: { default: 0, required: true, type: Number }
12604
12623
  },