@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.mjs
CHANGED
|
@@ -6841,11 +6841,6 @@ var EnumSubscriptionStatus = /* @__PURE__ */ ((EnumSubscriptionStatus22) => {
|
|
|
6841
6841
|
EnumSubscriptionStatus22["TRIALING"] = "trialing";
|
|
6842
6842
|
return EnumSubscriptionStatus22;
|
|
6843
6843
|
})(EnumSubscriptionStatus || {});
|
|
6844
|
-
var EnumGameType = /* @__PURE__ */ ((EnumGameType22) => {
|
|
6845
|
-
EnumGameType22["DAILY_CLUE"] = "daily_clue";
|
|
6846
|
-
EnumGameType22["DAILY_REWARD"] = "daily_reward";
|
|
6847
|
-
return EnumGameType22;
|
|
6848
|
-
})(EnumGameType || {});
|
|
6849
6844
|
var dateFormat = "DD-MM-YYYY";
|
|
6850
6845
|
var timeFormat = "HH:mm";
|
|
6851
6846
|
dayjs.extend(customParseFormat);
|
|
@@ -9838,16 +9833,12 @@ var DELETE_PARTNER_MUTATION = gql`
|
|
|
9838
9833
|
`;
|
|
9839
9834
|
var BASE_GAME_FIELDS_FRAGMENT = gql`
|
|
9840
9835
|
fragment BaseGameFields on BaseGameType {
|
|
9841
|
-
title
|
|
9842
|
-
gameType
|
|
9843
|
-
gameInfo {
|
|
9844
|
-
dailyClue {
|
|
9845
|
-
solution
|
|
9846
|
-
}
|
|
9847
|
-
}
|
|
9848
9836
|
gameDate {
|
|
9849
9837
|
...DateTimeFields
|
|
9850
9838
|
}
|
|
9839
|
+
gameSolution
|
|
9840
|
+
gameType
|
|
9841
|
+
title
|
|
9851
9842
|
}
|
|
9852
9843
|
${DATETIME_FIELDS_FRAGMENT}
|
|
9853
9844
|
`;
|
|
@@ -10677,6 +10668,11 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
10677
10668
|
EnumActivity2["VIEW"] = "VIEW";
|
|
10678
10669
|
return EnumActivity2;
|
|
10679
10670
|
})(EnumActivity || {});
|
|
10671
|
+
var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
10672
|
+
EnumGameType2["DAILY_CLUE"] = "dailyClue";
|
|
10673
|
+
EnumGameType2["DAILY_REWARD"] = "dailyReward";
|
|
10674
|
+
return EnumGameType2;
|
|
10675
|
+
})(EnumGameType || {});
|
|
10680
10676
|
|
|
10681
10677
|
// src/mongoose/Ad.ts
|
|
10682
10678
|
import mongoose from "mongoose";
|
|
@@ -11372,7 +11368,7 @@ schema4.index({ isRead: 1, userId: 1 });
|
|
|
11372
11368
|
schema4.index({ createdAt: -1, userId: 1 });
|
|
11373
11369
|
var NotificationModel = mongoose8.models.Notification || mongoose8.model("Notification", schema4);
|
|
11374
11370
|
|
|
11375
|
-
// node_modules/@timardex/cluemart-shared/dist/chunk-
|
|
11371
|
+
// node_modules/@timardex/cluemart-shared/dist/chunk-USQKKCIA.mjs
|
|
11376
11372
|
var EnumOSPlatform2 = /* @__PURE__ */ ((EnumOSPlatform22) => {
|
|
11377
11373
|
EnumOSPlatform22["ANDROID"] = "android";
|
|
11378
11374
|
EnumOSPlatform22["IOS"] = "ios";
|
|
@@ -11915,25 +11911,9 @@ var AppSettingModel = mongoose18.models.AppSetting || mongoose18.model("AppSetti
|
|
|
11915
11911
|
// src/mongoose/game/Game.ts
|
|
11916
11912
|
import mongoose19 from "mongoose";
|
|
11917
11913
|
var MongooseSchema19 = mongoose19.Schema;
|
|
11918
|
-
var schemGameInfo = new MongooseSchema19(
|
|
11919
|
-
{
|
|
11920
|
-
dailyClue: {
|
|
11921
|
-
default: null,
|
|
11922
|
-
required: false,
|
|
11923
|
-
type: new MongooseSchema19(
|
|
11924
|
-
{
|
|
11925
|
-
solution: { required: true, type: String }
|
|
11926
|
-
},
|
|
11927
|
-
{ _id: false }
|
|
11928
|
-
)
|
|
11929
|
-
}
|
|
11930
|
-
},
|
|
11931
|
-
{ _id: false }
|
|
11932
|
-
// Prevents Mongoose from creating an additional _id field for subdocuments
|
|
11933
|
-
);
|
|
11934
11914
|
var baseGameDefinition = {
|
|
11935
11915
|
gameDate: { required: true, type: dateTimeSchema3 },
|
|
11936
|
-
|
|
11916
|
+
gameSolution: { required: true, type: String },
|
|
11937
11917
|
gameType: {
|
|
11938
11918
|
enum: Object.values(EnumGameType),
|
|
11939
11919
|
required: false,
|
|
@@ -11951,13 +11931,20 @@ var schemaDailyClue = new MongooseSchema19(
|
|
|
11951
11931
|
},
|
|
11952
11932
|
{ _id: false }
|
|
11953
11933
|
);
|
|
11934
|
+
var gameDataSchemas = {
|
|
11935
|
+
[EnumGameType.DAILY_CLUE]: schemaDailyClue
|
|
11936
|
+
};
|
|
11937
|
+
var gameDataDefinition = Object.fromEntries(
|
|
11938
|
+
Object.entries(gameDataSchemas).map(([key, schema15]) => [
|
|
11939
|
+
key,
|
|
11940
|
+
{ default: null, required: false, type: schema15 }
|
|
11941
|
+
])
|
|
11942
|
+
);
|
|
11954
11943
|
var schema14 = new MongooseSchema19(
|
|
11955
11944
|
{
|
|
11956
11945
|
active: { default: false, required: true, type: Boolean },
|
|
11957
11946
|
deletedAt: { default: null, required: false, type: Date },
|
|
11958
|
-
gameData:
|
|
11959
|
-
dailyClue: { default: null, required: false, type: schemaDailyClue }
|
|
11960
|
-
},
|
|
11947
|
+
gameData: gameDataDefinition,
|
|
11961
11948
|
owner: {
|
|
11962
11949
|
required: true,
|
|
11963
11950
|
type: OwnerTypeSchema
|