@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.
- package/dist/{chunk-QBEX7QTP.mjs → chunk-MCO4DSSF.mjs} +21 -34
- package/dist/chunk-MCO4DSSF.mjs.map +1 -0
- package/dist/index.cjs +20 -33
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +20 -33
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +20 -33
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +20 -33
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-QBEX7QTP.mjs.map +0 -1
package/dist/mongoose/index.cjs
CHANGED
|
@@ -6889,11 +6889,6 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus22) => {
|
|
|
6889
6889
|
EnumSubscriptionStatus22["TRIALING"] = "trialing";
|
|
6890
6890
|
return EnumSubscriptionStatus22;
|
|
6891
6891
|
})(EnumSubscriptionStatus || {});
|
|
6892
|
-
var EnumGameType = /* @__PURE__ */ ((EnumGameType22) => {
|
|
6893
|
-
EnumGameType22["DAILY_CLUE"] = "daily_clue";
|
|
6894
|
-
EnumGameType22["DAILY_REWARD"] = "daily_reward";
|
|
6895
|
-
return EnumGameType22;
|
|
6896
|
-
})(EnumGameType || {});
|
|
6897
6892
|
var dateFormat = "DD-MM-YYYY";
|
|
6898
6893
|
var timeFormat = "HH:mm";
|
|
6899
6894
|
import_dayjs.default.extend(import_customParseFormat.default);
|
|
@@ -9886,16 +9881,12 @@ var DELETE_PARTNER_MUTATION = gql`
|
|
|
9886
9881
|
`;
|
|
9887
9882
|
var BASE_GAME_FIELDS_FRAGMENT = gql`
|
|
9888
9883
|
fragment BaseGameFields on BaseGameType {
|
|
9889
|
-
title
|
|
9890
|
-
gameType
|
|
9891
|
-
gameInfo {
|
|
9892
|
-
dailyClue {
|
|
9893
|
-
solution
|
|
9894
|
-
}
|
|
9895
|
-
}
|
|
9896
9884
|
gameDate {
|
|
9897
9885
|
...DateTimeFields
|
|
9898
9886
|
}
|
|
9887
|
+
gameSolution
|
|
9888
|
+
gameType
|
|
9889
|
+
title
|
|
9899
9890
|
}
|
|
9900
9891
|
${DATETIME_FIELDS_FRAGMENT}
|
|
9901
9892
|
`;
|
|
@@ -10725,6 +10716,11 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
10725
10716
|
EnumActivity2["VIEW"] = "VIEW";
|
|
10726
10717
|
return EnumActivity2;
|
|
10727
10718
|
})(EnumActivity || {});
|
|
10719
|
+
var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
10720
|
+
EnumGameType2["DAILY_CLUE"] = "dailyClue";
|
|
10721
|
+
EnumGameType2["DAILY_REWARD"] = "dailyReward";
|
|
10722
|
+
return EnumGameType2;
|
|
10723
|
+
})(EnumGameType || {});
|
|
10728
10724
|
|
|
10729
10725
|
// src/mongoose/Ad.ts
|
|
10730
10726
|
var import_mongoose = __toESM(require("mongoose"));
|
|
@@ -11420,7 +11416,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11420
11416
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11421
11417
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
11422
11418
|
|
|
11423
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11419
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-USQKKCIA.mjs
|
|
11424
11420
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11425
11421
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11426
11422
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -11963,25 +11959,9 @@ var AppSettingModel = import_mongoose18.default.models.AppSetting || import_mong
|
|
|
11963
11959
|
// src/mongoose/game/Game.ts
|
|
11964
11960
|
var import_mongoose19 = __toESM(require("mongoose"));
|
|
11965
11961
|
var MongooseSchema19 = import_mongoose19.default.Schema;
|
|
11966
|
-
var schemGameInfo = new MongooseSchema19(
|
|
11967
|
-
{
|
|
11968
|
-
dailyClue: {
|
|
11969
|
-
default: null,
|
|
11970
|
-
required: false,
|
|
11971
|
-
type: new MongooseSchema19(
|
|
11972
|
-
{
|
|
11973
|
-
solution: { required: true, type: String }
|
|
11974
|
-
},
|
|
11975
|
-
{ _id: false }
|
|
11976
|
-
)
|
|
11977
|
-
}
|
|
11978
|
-
},
|
|
11979
|
-
{ _id: false }
|
|
11980
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11981
|
-
);
|
|
11982
11962
|
var baseGameDefinition = {
|
|
11983
11963
|
gameDate: { required: true, type: dateTimeSchema3 },
|
|
11984
|
-
|
|
11964
|
+
gameSolution: { required: true, type: String },
|
|
11985
11965
|
gameType: {
|
|
11986
11966
|
enum: Object.values(EnumGameType),
|
|
11987
11967
|
required: false,
|
|
@@ -11999,13 +11979,20 @@ var schemaDailyClue = new MongooseSchema19(
|
|
|
11999
11979
|
},
|
|
12000
11980
|
{ _id: false }
|
|
12001
11981
|
);
|
|
11982
|
+
var gameDataSchemas = {
|
|
11983
|
+
[EnumGameType.DAILY_CLUE]: schemaDailyClue
|
|
11984
|
+
};
|
|
11985
|
+
var gameDataDefinition = Object.fromEntries(
|
|
11986
|
+
Object.entries(gameDataSchemas).map(([key, schema15]) => [
|
|
11987
|
+
key,
|
|
11988
|
+
{ default: null, required: false, type: schema15 }
|
|
11989
|
+
])
|
|
11990
|
+
);
|
|
12002
11991
|
var schema14 = new MongooseSchema19(
|
|
12003
11992
|
{
|
|
12004
11993
|
active: { default: false, required: true, type: Boolean },
|
|
12005
11994
|
deletedAt: { default: null, required: false, type: Date },
|
|
12006
|
-
gameData:
|
|
12007
|
-
dailyClue: { default: null, required: false, type: schemaDailyClue }
|
|
12008
|
-
},
|
|
11995
|
+
gameData: gameDataDefinition,
|
|
12009
11996
|
owner: {
|
|
12010
11997
|
required: true,
|
|
12011
11998
|
type: OwnerTypeSchema
|