@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/index.cjs
CHANGED
|
@@ -6899,11 +6899,6 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus22) => {
|
|
|
6899
6899
|
EnumSubscriptionStatus22["TRIALING"] = "trialing";
|
|
6900
6900
|
return EnumSubscriptionStatus22;
|
|
6901
6901
|
})(EnumSubscriptionStatus || {});
|
|
6902
|
-
var EnumGameType = /* @__PURE__ */ ((EnumGameType22) => {
|
|
6903
|
-
EnumGameType22["DAILY_CLUE"] = "daily_clue";
|
|
6904
|
-
EnumGameType22["DAILY_REWARD"] = "daily_reward";
|
|
6905
|
-
return EnumGameType22;
|
|
6906
|
-
})(EnumGameType || {});
|
|
6907
6902
|
var dateFormat = "DD-MM-YYYY";
|
|
6908
6903
|
var timeFormat = "HH:mm";
|
|
6909
6904
|
import_dayjs.default.extend(import_customParseFormat.default);
|
|
@@ -9896,16 +9891,12 @@ var DELETE_PARTNER_MUTATION = gql`
|
|
|
9896
9891
|
`;
|
|
9897
9892
|
var BASE_GAME_FIELDS_FRAGMENT = gql`
|
|
9898
9893
|
fragment BaseGameFields on BaseGameType {
|
|
9899
|
-
title
|
|
9900
|
-
gameType
|
|
9901
|
-
gameInfo {
|
|
9902
|
-
dailyClue {
|
|
9903
|
-
solution
|
|
9904
|
-
}
|
|
9905
|
-
}
|
|
9906
9894
|
gameDate {
|
|
9907
9895
|
...DateTimeFields
|
|
9908
9896
|
}
|
|
9897
|
+
gameSolution
|
|
9898
|
+
gameType
|
|
9899
|
+
title
|
|
9909
9900
|
}
|
|
9910
9901
|
${DATETIME_FIELDS_FRAGMENT}
|
|
9911
9902
|
`;
|
|
@@ -10735,6 +10726,11 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
10735
10726
|
EnumActivity2["VIEW"] = "VIEW";
|
|
10736
10727
|
return EnumActivity2;
|
|
10737
10728
|
})(EnumActivity || {});
|
|
10729
|
+
var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
10730
|
+
EnumGameType2["DAILY_CLUE"] = "dailyClue";
|
|
10731
|
+
EnumGameType2["DAILY_REWARD"] = "dailyReward";
|
|
10732
|
+
return EnumGameType2;
|
|
10733
|
+
})(EnumGameType || {});
|
|
10738
10734
|
|
|
10739
10735
|
// src/mongoose/Ad.ts
|
|
10740
10736
|
var import_mongoose = __toESM(require("mongoose"));
|
|
@@ -11430,7 +11426,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11430
11426
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11431
11427
|
var NotificationModel = import_mongoose8.default.models.Notification || import_mongoose8.default.model("Notification", schema4);
|
|
11432
11428
|
|
|
11433
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11429
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-USQKKCIA.mjs
|
|
11434
11430
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11435
11431
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11436
11432
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -11973,25 +11969,9 @@ var AppSettingModel = import_mongoose18.default.models.AppSetting || import_mong
|
|
|
11973
11969
|
// src/mongoose/game/Game.ts
|
|
11974
11970
|
var import_mongoose19 = __toESM(require("mongoose"));
|
|
11975
11971
|
var MongooseSchema19 = import_mongoose19.default.Schema;
|
|
11976
|
-
var schemGameInfo = new MongooseSchema19(
|
|
11977
|
-
{
|
|
11978
|
-
dailyClue: {
|
|
11979
|
-
default: null,
|
|
11980
|
-
required: false,
|
|
11981
|
-
type: new MongooseSchema19(
|
|
11982
|
-
{
|
|
11983
|
-
solution: { required: true, type: String }
|
|
11984
|
-
},
|
|
11985
|
-
{ _id: false }
|
|
11986
|
-
)
|
|
11987
|
-
}
|
|
11988
|
-
},
|
|
11989
|
-
{ _id: false }
|
|
11990
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11991
|
-
);
|
|
11992
11972
|
var baseGameDefinition = {
|
|
11993
11973
|
gameDate: { required: true, type: dateTimeSchema3 },
|
|
11994
|
-
|
|
11974
|
+
gameSolution: { required: true, type: String },
|
|
11995
11975
|
gameType: {
|
|
11996
11976
|
enum: Object.values(EnumGameType),
|
|
11997
11977
|
required: false,
|
|
@@ -12009,13 +11989,20 @@ var schemaDailyClue = new MongooseSchema19(
|
|
|
12009
11989
|
},
|
|
12010
11990
|
{ _id: false }
|
|
12011
11991
|
);
|
|
11992
|
+
var gameDataSchemas = {
|
|
11993
|
+
[EnumGameType.DAILY_CLUE]: schemaDailyClue
|
|
11994
|
+
};
|
|
11995
|
+
var gameDataDefinition = Object.fromEntries(
|
|
11996
|
+
Object.entries(gameDataSchemas).map(([key, schema15]) => [
|
|
11997
|
+
key,
|
|
11998
|
+
{ default: null, required: false, type: schema15 }
|
|
11999
|
+
])
|
|
12000
|
+
);
|
|
12012
12001
|
var schema14 = new MongooseSchema19(
|
|
12013
12002
|
{
|
|
12014
12003
|
active: { default: false, required: true, type: Boolean },
|
|
12015
12004
|
deletedAt: { default: null, required: false, type: Date },
|
|
12016
|
-
gameData:
|
|
12017
|
-
dailyClue: { default: null, required: false, type: schemaDailyClue }
|
|
12018
|
-
},
|
|
12005
|
+
gameData: gameDataDefinition,
|
|
12019
12006
|
owner: {
|
|
12020
12007
|
required: true,
|
|
12021
12008
|
type: OwnerTypeSchema
|