@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.
@@ -36,7 +36,7 @@ import {
36
36
  resourceRelationsSchema,
37
37
  termsAgreementSchema,
38
38
  userLicenseSchema
39
- } from "../chunk-QVELNUI7.mjs";
39
+ } from "../chunk-LOP3RVHN.mjs";
40
40
  import "../chunk-3QS3WKRC.mjs";
41
41
  export {
42
42
  APP_SETTINGS_ID,
@@ -10012,25 +10012,29 @@ 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 {
10026
- gameDate {
10027
- ...GameDateFields
10028
- }
10029
10034
  questions {
10030
10035
  ...MiniQuizQuestionFields
10031
10036
  }
10032
10037
  }
10033
- ${GAME_DATE_FIELDS_FRAGMENT}
10034
10038
  ${MINI_QUIZ_QUESTION_FIELDS_FRAGMENT}
10035
10039
  `;
10036
10040
  var MINI_QUIZ_GAME_DATA_FIELDS_FRAGMENT = gql`
@@ -10315,6 +10319,17 @@ var UPDATE_DAILY_CLUE_MUTATION = gql`
10315
10319
  }
10316
10320
  ${GAME_DOC_FIELDS_FRAGMENT}
10317
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
+ `;
10318
10333
  var SCHOOL_REGISTERED_USERS_FIELDS_FRAGMENT = gql`
10319
10334
  fragment SchoolRegisteredUsersFields on SchoolRegisteredUserType {
10320
10335
  _id
@@ -12575,24 +12590,17 @@ var schemaDailyClueGameData = new MongooseSchema20(
12575
12590
  // src/mongoose/game/MiniQuiz.ts
12576
12591
  var import_mongoose22 = __toESM(require("mongoose"));
12577
12592
  var MongooseSchema21 = import_mongoose22.default.Schema;
12578
- var schemaMiniQuizAnswers = new MongooseSchema21(
12579
- {
12580
- answer: { required: true, type: String },
12581
- correct: { required: true, type: Boolean }
12582
- },
12583
- { _id: false }
12584
- );
12585
- var schemaMiniQuizQuestions = new MongooseSchema21(
12586
- {
12587
- answers: { required: true, type: [schemaMiniQuizAnswers] },
12588
- question: { required: true, type: String }
12589
- },
12590
- { _id: false }
12591
- );
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
+ });
12592
12601
  var schemaMiniQuizBaseGame = new MongooseSchema21(
12593
12602
  {
12594
- gameDate: { required: true, type: Date },
12595
- questions: { required: true, type: [schemaMiniQuizQuestions] }
12603
+ questions: { required: true, type: [schemaMiniQuizQuestion] }
12596
12604
  },
12597
12605
  { _id: false }
12598
12606
  );
@@ -12603,7 +12611,7 @@ var schemaMiniQuizGameData = new MongooseSchema21(
12603
12611
  quizInfo: {
12604
12612
  default: null,
12605
12613
  required: false,
12606
- type: [schemaMiniQuizQuestions]
12614
+ type: [schemaMiniQuizQuestion]
12607
12615
  },
12608
12616
  streak: { default: 0, required: true, type: Number }
12609
12617
  },