@timardex/cluemart-server-shared 1.0.115 → 1.0.117
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-MCO4DSSF.mjs → chunk-BVUQDRYQ.mjs} +19 -11
- package/dist/chunk-BVUQDRYQ.mjs.map +1 -0
- package/dist/index.cjs +18 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +18 -10
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +18 -10
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +18 -10
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-MCO4DSSF.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -8269,7 +8269,7 @@ var USER_FIELDS_FRAGMENT = gql`
|
|
|
8269
8269
|
...LicenceFields
|
|
8270
8270
|
}
|
|
8271
8271
|
partner
|
|
8272
|
-
|
|
8272
|
+
overallPoints
|
|
8273
8273
|
platform
|
|
8274
8274
|
preferredRegion
|
|
8275
8275
|
promoCodes
|
|
@@ -9834,13 +9834,13 @@ var DELETE_PARTNER_MUTATION = gql`
|
|
|
9834
9834
|
var BASE_GAME_FIELDS_FRAGMENT = gql`
|
|
9835
9835
|
fragment BaseGameFields on BaseGameType {
|
|
9836
9836
|
gameDate {
|
|
9837
|
-
|
|
9837
|
+
startDate
|
|
9838
|
+
endDate
|
|
9838
9839
|
}
|
|
9839
9840
|
gameSolution
|
|
9840
9841
|
gameType
|
|
9841
9842
|
title
|
|
9842
9843
|
}
|
|
9843
|
-
${DATETIME_FIELDS_FRAGMENT}
|
|
9844
9844
|
`;
|
|
9845
9845
|
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
|
|
9846
9846
|
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
@@ -9867,6 +9867,7 @@ var GAME_FIELDS_FRAGMENT = gql`
|
|
|
9867
9867
|
owner {
|
|
9868
9868
|
...OwnerFields
|
|
9869
9869
|
}
|
|
9870
|
+
points
|
|
9870
9871
|
}
|
|
9871
9872
|
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
9872
9873
|
${OWNER_FIELDS_FRAGMENT}
|
|
@@ -10039,8 +10040,8 @@ var START_GAME_MUTATION = gql`
|
|
|
10039
10040
|
${GAME_FIELDS_FRAGMENT}
|
|
10040
10041
|
`;
|
|
10041
10042
|
var LEAVE_GAME_MUTATION = gql`
|
|
10042
|
-
mutation leaveGame($_id: ID!) {
|
|
10043
|
-
leaveGame(_id: $_id) {
|
|
10043
|
+
mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
|
|
10044
|
+
leaveGame(_id: $_id, gameType: $gameType) {
|
|
10044
10045
|
userId
|
|
10045
10046
|
}
|
|
10046
10047
|
}
|
|
@@ -10670,7 +10671,6 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
10670
10671
|
})(EnumActivity || {});
|
|
10671
10672
|
var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
10672
10673
|
EnumGameType2["DAILY_CLUE"] = "dailyClue";
|
|
10673
|
-
EnumGameType2["DAILY_REWARD"] = "dailyReward";
|
|
10674
10674
|
return EnumGameType2;
|
|
10675
10675
|
})(EnumGameType || {});
|
|
10676
10676
|
|
|
@@ -11535,6 +11535,7 @@ var schema7 = new MongooseSchema11(
|
|
|
11535
11535
|
required: false,
|
|
11536
11536
|
type: [userLicenseSchema]
|
|
11537
11537
|
},
|
|
11538
|
+
overallPoints: { default: 0, required: false, type: Number },
|
|
11538
11539
|
partner: {
|
|
11539
11540
|
ref: "Partner",
|
|
11540
11541
|
required: false,
|
|
@@ -11546,7 +11547,6 @@ var schema7 = new MongooseSchema11(
|
|
|
11546
11547
|
required: false,
|
|
11547
11548
|
type: String
|
|
11548
11549
|
},
|
|
11549
|
-
points: { default: 0, required: false, type: Number },
|
|
11550
11550
|
preferredRegion: {
|
|
11551
11551
|
required: true,
|
|
11552
11552
|
type: String
|
|
@@ -11911,8 +11911,15 @@ var AppSettingModel = mongoose18.models.AppSetting || mongoose18.model("AppSetti
|
|
|
11911
11911
|
// src/mongoose/game/Game.ts
|
|
11912
11912
|
import mongoose19 from "mongoose";
|
|
11913
11913
|
var MongooseSchema19 = mongoose19.Schema;
|
|
11914
|
+
var schemaGameDate = new MongooseSchema19(
|
|
11915
|
+
{
|
|
11916
|
+
endDate: { required: true, type: Date },
|
|
11917
|
+
startDate: { required: true, type: Date }
|
|
11918
|
+
},
|
|
11919
|
+
{ _id: false }
|
|
11920
|
+
);
|
|
11914
11921
|
var baseGameDefinition = {
|
|
11915
|
-
gameDate: { required: true, type:
|
|
11922
|
+
gameDate: { required: true, type: schemaGameDate },
|
|
11916
11923
|
gameSolution: { required: true, type: String },
|
|
11917
11924
|
gameType: {
|
|
11918
11925
|
enum: Object.values(EnumGameType),
|
|
@@ -11925,7 +11932,7 @@ var schemaDailyClue = new MongooseSchema19(
|
|
|
11925
11932
|
{
|
|
11926
11933
|
...baseGameDefinition,
|
|
11927
11934
|
collectedLetters: { default: [], required: false, type: [String] },
|
|
11928
|
-
lastFoundDate: { default: null, required: false, type:
|
|
11935
|
+
lastFoundDate: { default: null, required: false, type: Date },
|
|
11929
11936
|
points: { default: 0, required: true, type: Number },
|
|
11930
11937
|
streak: { default: 0, required: true, type: Number }
|
|
11931
11938
|
},
|
|
@@ -11948,7 +11955,8 @@ var schema14 = new MongooseSchema19(
|
|
|
11948
11955
|
owner: {
|
|
11949
11956
|
required: true,
|
|
11950
11957
|
type: OwnerTypeSchema
|
|
11951
|
-
}
|
|
11958
|
+
},
|
|
11959
|
+
points: { default: 0, required: true, type: Number }
|
|
11952
11960
|
},
|
|
11953
11961
|
{ timestamps: true }
|
|
11954
11962
|
);
|