@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
|
@@ -8248,7 +8248,7 @@ var USER_FIELDS_FRAGMENT = gql`
|
|
|
8248
8248
|
...LicenceFields
|
|
8249
8249
|
}
|
|
8250
8250
|
partner
|
|
8251
|
-
|
|
8251
|
+
overallPoints
|
|
8252
8252
|
platform
|
|
8253
8253
|
preferredRegion
|
|
8254
8254
|
promoCodes
|
|
@@ -9813,13 +9813,13 @@ var DELETE_PARTNER_MUTATION = gql`
|
|
|
9813
9813
|
var BASE_GAME_FIELDS_FRAGMENT = gql`
|
|
9814
9814
|
fragment BaseGameFields on BaseGameType {
|
|
9815
9815
|
gameDate {
|
|
9816
|
-
|
|
9816
|
+
startDate
|
|
9817
|
+
endDate
|
|
9817
9818
|
}
|
|
9818
9819
|
gameSolution
|
|
9819
9820
|
gameType
|
|
9820
9821
|
title
|
|
9821
9822
|
}
|
|
9822
|
-
${DATETIME_FIELDS_FRAGMENT}
|
|
9823
9823
|
`;
|
|
9824
9824
|
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
|
|
9825
9825
|
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
@@ -9846,6 +9846,7 @@ var GAME_FIELDS_FRAGMENT = gql`
|
|
|
9846
9846
|
owner {
|
|
9847
9847
|
...OwnerFields
|
|
9848
9848
|
}
|
|
9849
|
+
points
|
|
9849
9850
|
}
|
|
9850
9851
|
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
9851
9852
|
${OWNER_FIELDS_FRAGMENT}
|
|
@@ -10018,8 +10019,8 @@ var START_GAME_MUTATION = gql`
|
|
|
10018
10019
|
${GAME_FIELDS_FRAGMENT}
|
|
10019
10020
|
`;
|
|
10020
10021
|
var LEAVE_GAME_MUTATION = gql`
|
|
10021
|
-
mutation leaveGame($_id: ID!) {
|
|
10022
|
-
leaveGame(_id: $_id) {
|
|
10022
|
+
mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
|
|
10023
|
+
leaveGame(_id: $_id, gameType: $gameType) {
|
|
10023
10024
|
userId
|
|
10024
10025
|
}
|
|
10025
10026
|
}
|
|
@@ -10649,7 +10650,6 @@ var EnumActivity = /* @__PURE__ */ ((EnumActivity2) => {
|
|
|
10649
10650
|
})(EnumActivity || {});
|
|
10650
10651
|
var EnumGameType = /* @__PURE__ */ ((EnumGameType2) => {
|
|
10651
10652
|
EnumGameType2["DAILY_CLUE"] = "dailyClue";
|
|
10652
|
-
EnumGameType2["DAILY_REWARD"] = "dailyReward";
|
|
10653
10653
|
return EnumGameType2;
|
|
10654
10654
|
})(EnumGameType || {});
|
|
10655
10655
|
|
|
@@ -11514,6 +11514,7 @@ var schema7 = new MongooseSchema11(
|
|
|
11514
11514
|
required: false,
|
|
11515
11515
|
type: [userLicenseSchema]
|
|
11516
11516
|
},
|
|
11517
|
+
overallPoints: { default: 0, required: false, type: Number },
|
|
11517
11518
|
partner: {
|
|
11518
11519
|
ref: "Partner",
|
|
11519
11520
|
required: false,
|
|
@@ -11525,7 +11526,6 @@ var schema7 = new MongooseSchema11(
|
|
|
11525
11526
|
required: false,
|
|
11526
11527
|
type: String
|
|
11527
11528
|
},
|
|
11528
|
-
points: { default: 0, required: false, type: Number },
|
|
11529
11529
|
preferredRegion: {
|
|
11530
11530
|
required: true,
|
|
11531
11531
|
type: String
|
|
@@ -11890,8 +11890,15 @@ var AppSettingModel = mongoose18.models.AppSetting || mongoose18.model("AppSetti
|
|
|
11890
11890
|
// src/mongoose/game/Game.ts
|
|
11891
11891
|
import mongoose19 from "mongoose";
|
|
11892
11892
|
var MongooseSchema19 = mongoose19.Schema;
|
|
11893
|
+
var schemaGameDate = new MongooseSchema19(
|
|
11894
|
+
{
|
|
11895
|
+
endDate: { required: true, type: Date },
|
|
11896
|
+
startDate: { required: true, type: Date }
|
|
11897
|
+
},
|
|
11898
|
+
{ _id: false }
|
|
11899
|
+
);
|
|
11893
11900
|
var baseGameDefinition = {
|
|
11894
|
-
gameDate: { required: true, type:
|
|
11901
|
+
gameDate: { required: true, type: schemaGameDate },
|
|
11895
11902
|
gameSolution: { required: true, type: String },
|
|
11896
11903
|
gameType: {
|
|
11897
11904
|
enum: Object.values(EnumGameType),
|
|
@@ -11904,7 +11911,7 @@ var schemaDailyClue = new MongooseSchema19(
|
|
|
11904
11911
|
{
|
|
11905
11912
|
...baseGameDefinition,
|
|
11906
11913
|
collectedLetters: { default: [], required: false, type: [String] },
|
|
11907
|
-
lastFoundDate: { default: null, required: false, type:
|
|
11914
|
+
lastFoundDate: { default: null, required: false, type: Date },
|
|
11908
11915
|
points: { default: 0, required: true, type: Number },
|
|
11909
11916
|
streak: { default: 0, required: true, type: Number }
|
|
11910
11917
|
},
|
|
@@ -11927,7 +11934,8 @@ var schema14 = new MongooseSchema19(
|
|
|
11927
11934
|
owner: {
|
|
11928
11935
|
required: true,
|
|
11929
11936
|
type: OwnerTypeSchema
|
|
11930
|
-
}
|
|
11937
|
+
},
|
|
11938
|
+
points: { default: 0, required: true, type: Number }
|
|
11931
11939
|
},
|
|
11932
11940
|
{ timestamps: true }
|
|
11933
11941
|
);
|
|
@@ -11997,4 +12005,4 @@ react/cjs/react.development.js:
|
|
|
11997
12005
|
* LICENSE file in the root directory of this source tree.
|
|
11998
12006
|
*)
|
|
11999
12007
|
*/
|
|
12000
|
-
//# sourceMappingURL=chunk-
|
|
12008
|
+
//# sourceMappingURL=chunk-BVUQDRYQ.mjs.map
|