@timardex/cluemart-server-shared 1.0.113 → 1.0.115

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.
@@ -6820,11 +6820,6 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus22) => {
6820
6820
  EnumSubscriptionStatus22["TRIALING"] = "trialing";
6821
6821
  return EnumSubscriptionStatus22;
6822
6822
  })(EnumSubscriptionStatus || {});
6823
- var EnumGameType = /* @__PURE__ */ ((EnumGameType22) => {
6824
- EnumGameType22["DAILY_CLUE"] = "daily_clue";
6825
- EnumGameType22["DAILY_REWARD"] = "daily_reward";
6826
- return EnumGameType22;
6827
- })(EnumGameType || {});
6828
6823
  var dateFormat = "DD-MM-YYYY";
6829
6824
  var timeFormat = "HH:mm";
6830
6825
  dayjs.extend(customParseFormat);
@@ -9817,16 +9812,12 @@ var DELETE_PARTNER_MUTATION = gql`
9817
9812
  `;
9818
9813
  var BASE_GAME_FIELDS_FRAGMENT = gql`
9819
9814
  fragment BaseGameFields on BaseGameType {
9820
- title
9821
- gameType
9822
- gameInfo {
9823
- dailyClue {
9824
- solution
9825
- }
9826
- }
9827
9815
  gameDate {
9828
9816
  ...DateTimeFields
9829
9817
  }
9818
+ gameSolution
9819
+ gameType
9820
+ title
9830
9821
  }
9831
9822
  ${DATETIME_FIELDS_FRAGMENT}
9832
9823
  `;
@@ -10656,6 +10647,11 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
10656
10647
  EnumActivity2["VIEW"] = "VIEW";
10657
10648
  return EnumActivity2;
10658
10649
  })(EnumActivity || {});
10650
+ var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
10651
+ EnumGameType2["DAILY_CLUE"] = "dailyClue";
10652
+ EnumGameType2["DAILY_REWARD"] = "dailyReward";
10653
+ return EnumGameType2;
10654
+ })(EnumGameType || {});
10659
10655
 
10660
10656
  // src/mongoose/Ad.ts
10661
10657
  import mongoose from "mongoose";
@@ -11351,7 +11347,7 @@ schema4.index({ isRead: 1, userId: 1 });
11351
11347
  schema4.index({ createdAt: -1, userId: 1 });
11352
11348
  var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
11353
11349
 
11354
- // node_modules/@timardex/cluemart-shared/dist/chunk-VE6JFCH2.mjs
11350
+ // node_modules/@timardex/cluemart-shared/dist/chunk-USQKKCIA.mjs
11355
11351
  var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
11356
11352
  EnumOSPlatform22["ANDROID"] = "android";
11357
11353
  EnumOSPlatform22["IOS"] = "ios";
@@ -11894,25 +11890,9 @@ var AppSettingModel = mongoose18.models.AppSetting || mongoose18.model("AppSetti
11894
11890
  // src/mongoose/game/Game.ts
11895
11891
  import mongoose19 from "mongoose";
11896
11892
  var MongooseSchema19 = mongoose19.Schema;
11897
- var schemGameInfo = new MongooseSchema19(
11898
- {
11899
- dailyClue: {
11900
- default: null,
11901
- required: false,
11902
- type: new MongooseSchema19(
11903
- {
11904
- solution: { required: true, type: String }
11905
- },
11906
- { _id: false }
11907
- )
11908
- }
11909
- },
11910
- { _id: false }
11911
- // Prevents Mongoose from creating an additional _id field for subdocuments
11912
- );
11913
11893
  var baseGameDefinition = {
11914
11894
  gameDate: { required: true, type: dateTimeSchema3 },
11915
- gameInfo: { required: true, type: schemGameInfo },
11895
+ gameSolution: { required: true, type: String },
11916
11896
  gameType: {
11917
11897
  enum: Object.values(EnumGameType),
11918
11898
  required: false,
@@ -11930,13 +11910,20 @@ var schemaDailyClue = new MongooseSchema19(
11930
11910
  },
11931
11911
  { _id: false }
11932
11912
  );
11913
+ var gameDataSchemas = {
11914
+ [EnumGameType.DAILY_CLUE]: schemaDailyClue
11915
+ };
11916
+ var gameDataDefinition = Object.fromEntries(
11917
+ Object.entries(gameDataSchemas).map(([key, schema15]) => [
11918
+ key,
11919
+ { default: null, required: false, type: schema15 }
11920
+ ])
11921
+ );
11933
11922
  var schema14 = new MongooseSchema19(
11934
11923
  {
11935
11924
  active: { default: false, required: true, type: Boolean },
11936
11925
  deletedAt: { default: null, required: false, type: Date },
11937
- gameData: {
11938
- dailyClue: { default: null, required: false, type: schemaDailyClue }
11939
- },
11926
+ gameData: gameDataDefinition,
11940
11927
  owner: {
11941
11928
  required: true,
11942
11929
  type: OwnerTypeSchema
@@ -12010,4 +11997,4 @@ react/cjs/react.development.js:
12010
11997
  * LICENSE file in the root directory of this source tree.
12011
11998
  *)
12012
11999
  */
12013
- //# sourceMappingURL=chunk-QBEX7QTP.mjs.map
12000
+ //# sourceMappingURL=chunk-MCO4DSSF.mjs.map