@timardex/cluemart-server-shared 1.0.121 → 1.0.123
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-GMFVWRUR.mjs → chunk-AKL3YZFE.mjs} +29 -10
- package/dist/chunk-AKL3YZFE.mjs.map +1 -0
- package/dist/index.cjs +28 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +28 -9
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +28 -9
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +28 -9
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-GMFVWRUR.mjs.map +0 -1
|
@@ -9818,7 +9818,6 @@ var BASE_GAME_FIELDS_FRAGMENT = gql`
|
|
|
9818
9818
|
}
|
|
9819
9819
|
gameSolution
|
|
9820
9820
|
gameType
|
|
9821
|
-
title
|
|
9822
9821
|
}
|
|
9823
9822
|
`;
|
|
9824
9823
|
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
|
|
@@ -9826,9 +9825,13 @@ var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
|
|
|
9826
9825
|
gameFields {
|
|
9827
9826
|
...BaseGameFields
|
|
9828
9827
|
}
|
|
9829
|
-
collectedLetters
|
|
9830
9828
|
lastFoundDate
|
|
9831
9829
|
points
|
|
9830
|
+
letters {
|
|
9831
|
+
collected
|
|
9832
|
+
shuffled
|
|
9833
|
+
todaysLetter
|
|
9834
|
+
}
|
|
9832
9835
|
streak
|
|
9833
9836
|
}
|
|
9834
9837
|
${BASE_GAME_FIELDS_FRAGMENT}
|
|
@@ -9854,8 +9857,8 @@ var GAME_FIELDS_FRAGMENT = gql`
|
|
|
9854
9857
|
${OWNER_FIELDS_FRAGMENT}
|
|
9855
9858
|
`;
|
|
9856
9859
|
var GET_GAMES = gql`
|
|
9857
|
-
query getGames
|
|
9858
|
-
games
|
|
9860
|
+
query getGames {
|
|
9861
|
+
games {
|
|
9859
9862
|
...GameFields
|
|
9860
9863
|
}
|
|
9861
9864
|
}
|
|
@@ -10022,10 +10025,16 @@ var START_GAME_MUTATION = gql`
|
|
|
10022
10025
|
`;
|
|
10023
10026
|
var LEAVE_GAME_MUTATION = gql`
|
|
10024
10027
|
mutation leaveGame($_id: ID!, $gameType: GameTypeEnumType!) {
|
|
10025
|
-
leaveGame(_id: $_id, gameType: $gameType)
|
|
10026
|
-
|
|
10028
|
+
leaveGame(_id: $_id, gameType: $gameType)
|
|
10029
|
+
}
|
|
10030
|
+
`;
|
|
10031
|
+
var UPDATE_DAILY_CLUE_MUTATION = gql`
|
|
10032
|
+
mutation updateDailyClueGame($_id: ID!, $foundLetter: String!) {
|
|
10033
|
+
updateDailyClueGame(_id: $_id, foundLetter: $foundLetter) {
|
|
10034
|
+
...GameFields
|
|
10027
10035
|
}
|
|
10028
10036
|
}
|
|
10037
|
+
${GAME_FIELDS_FRAGMENT}
|
|
10029
10038
|
`;
|
|
10030
10039
|
var nzBankAccountRegex = /^\d{2}-\d{4}-\d{7}-\d{2}$/;
|
|
10031
10040
|
var nzbnRegex = /^94\d{11}$/;
|
|
@@ -11907,16 +11916,26 @@ var schemaBaseGame = new MongooseSchema19(
|
|
|
11907
11916
|
enum: Object.values(EnumGameType),
|
|
11908
11917
|
required: false,
|
|
11909
11918
|
type: String
|
|
11910
|
-
}
|
|
11911
|
-
|
|
11919
|
+
}
|
|
11920
|
+
},
|
|
11921
|
+
{ _id: false }
|
|
11922
|
+
);
|
|
11923
|
+
var schemaLetters = new MongooseSchema19(
|
|
11924
|
+
{
|
|
11925
|
+
collected: { required: false, type: [String] },
|
|
11926
|
+
shuffled: { required: true, type: [String] },
|
|
11927
|
+
todaysLetter: { required: true, type: String }
|
|
11912
11928
|
},
|
|
11913
11929
|
{ _id: false }
|
|
11914
11930
|
);
|
|
11915
11931
|
var schemaDailyClue = new MongooseSchema19(
|
|
11916
11932
|
{
|
|
11917
|
-
collectedLetters: { default: null, required: false, type: [String] },
|
|
11918
11933
|
gameFields: { required: true, type: schemaBaseGame },
|
|
11919
11934
|
lastFoundDate: { default: null, required: false, type: Date },
|
|
11935
|
+
letters: {
|
|
11936
|
+
required: true,
|
|
11937
|
+
type: schemaLetters
|
|
11938
|
+
},
|
|
11920
11939
|
points: { default: 0, required: true, type: Number },
|
|
11921
11940
|
streak: { default: 0, required: true, type: Number }
|
|
11922
11941
|
},
|
|
@@ -12010,4 +12029,4 @@ react/cjs/react.development.js:
|
|
|
12010
12029
|
* LICENSE file in the root directory of this source tree.
|
|
12011
12030
|
*)
|
|
12012
12031
|
*/
|
|
12013
|
-
//# sourceMappingURL=chunk-
|
|
12032
|
+
//# sourceMappingURL=chunk-AKL3YZFE.mjs.map
|