@timardex/cluemart-server-shared 1.0.126 → 1.0.128
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-74OLF5ZW.mjs → chunk-BBLLCZKM.mjs} +32 -6
- package/dist/chunk-BBLLCZKM.mjs.map +1 -0
- package/dist/index.cjs +31 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +31 -5
- package/dist/index.mjs.map +1 -1
- package/dist/mongoose/index.cjs +31 -5
- package/dist/mongoose/index.cjs.map +1 -1
- package/dist/mongoose/index.mjs +1 -1
- package/dist/service/index.cjs +31 -5
- package/dist/service/index.cjs.map +1 -1
- package/dist/service/index.mjs +1 -1
- package/package.json +2 -2
- package/dist/chunk-74OLF5ZW.mjs.map +0 -1
|
@@ -9810,15 +9810,21 @@ var DELETE_PARTNER_MUTATION = gql`
|
|
|
9810
9810
|
deletePartner(_id: $_id)
|
|
9811
9811
|
}
|
|
9812
9812
|
`;
|
|
9813
|
+
var GAME_DATE_FIELDS_FRAGMENT = gql`
|
|
9814
|
+
fragment GameDateFields on GameDateType {
|
|
9815
|
+
startDate
|
|
9816
|
+
endDate
|
|
9817
|
+
}
|
|
9818
|
+
`;
|
|
9813
9819
|
var BASE_GAME_FIELDS_FRAGMENT = gql`
|
|
9814
9820
|
fragment BaseGameFields on BaseGameType {
|
|
9815
9821
|
gameDate {
|
|
9816
|
-
|
|
9817
|
-
endDate
|
|
9822
|
+
...GameDateFields
|
|
9818
9823
|
}
|
|
9819
9824
|
gameSolution
|
|
9820
9825
|
gameType
|
|
9821
9826
|
}
|
|
9827
|
+
${GAME_DATE_FIELDS_FRAGMENT}
|
|
9822
9828
|
`;
|
|
9823
9829
|
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
|
|
9824
9830
|
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
@@ -9848,6 +9854,13 @@ var GAME_FIELDS_FRAGMENT = gql`
|
|
|
9848
9854
|
...DailyClueGameDataFields
|
|
9849
9855
|
}
|
|
9850
9856
|
}
|
|
9857
|
+
gameHistory {
|
|
9858
|
+
gameDate {
|
|
9859
|
+
...GameDateFields
|
|
9860
|
+
}
|
|
9861
|
+
gameType
|
|
9862
|
+
pointsEarned
|
|
9863
|
+
}
|
|
9851
9864
|
updatedAt
|
|
9852
9865
|
owner {
|
|
9853
9866
|
...OwnerFields
|
|
@@ -9856,6 +9869,7 @@ var GAME_FIELDS_FRAGMENT = gql`
|
|
|
9856
9869
|
}
|
|
9857
9870
|
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
9858
9871
|
${OWNER_FIELDS_FRAGMENT}
|
|
9872
|
+
${GAME_DATE_FIELDS_FRAGMENT}
|
|
9859
9873
|
`;
|
|
9860
9874
|
var GET_GAMES = gql`
|
|
9861
9875
|
query getGames {
|
|
@@ -11924,9 +11938,8 @@ var schemaBaseGame = new MongooseSchema19(
|
|
|
11924
11938
|
var schemaLetters = new MongooseSchema19(
|
|
11925
11939
|
{
|
|
11926
11940
|
collected: { required: false, type: [String] },
|
|
11927
|
-
shuffled: { required: true, type: [String] }
|
|
11928
|
-
todaysLetter
|
|
11929
|
-
todaysPlacement: { required: false, type: String }
|
|
11941
|
+
shuffled: { required: true, type: [String] }
|
|
11942
|
+
// todaysLetter and todaysPlacement is generated in the backend, so they are not required
|
|
11930
11943
|
},
|
|
11931
11944
|
{ _id: false }
|
|
11932
11945
|
);
|
|
@@ -11952,11 +11965,24 @@ var gameDataDefinition = Object.fromEntries(
|
|
|
11952
11965
|
{ default: null, required: false, type: schema15 }
|
|
11953
11966
|
])
|
|
11954
11967
|
);
|
|
11968
|
+
var gameHistorySchema = new MongooseSchema19(
|
|
11969
|
+
{
|
|
11970
|
+
gameDate: { required: true, type: schemaGameDate },
|
|
11971
|
+
gameType: {
|
|
11972
|
+
enum: Object.values(EnumGameType),
|
|
11973
|
+
required: true,
|
|
11974
|
+
type: String
|
|
11975
|
+
},
|
|
11976
|
+
pointsEarned: { default: 0, required: true, type: Number }
|
|
11977
|
+
},
|
|
11978
|
+
{ _id: false }
|
|
11979
|
+
);
|
|
11955
11980
|
var schema14 = new MongooseSchema19(
|
|
11956
11981
|
{
|
|
11957
11982
|
active: { default: false, required: true, type: Boolean },
|
|
11958
11983
|
deletedAt: { default: null, required: false, type: Date },
|
|
11959
11984
|
gameData: gameDataDefinition,
|
|
11985
|
+
gameHistory: { default: [], required: true, type: [gameHistorySchema] },
|
|
11960
11986
|
owner: {
|
|
11961
11987
|
required: true,
|
|
11962
11988
|
type: OwnerTypeSchema
|
|
@@ -12031,4 +12057,4 @@ react/cjs/react.development.js:
|
|
|
12031
12057
|
* LICENSE file in the root directory of this source tree.
|
|
12032
12058
|
*)
|
|
12033
12059
|
*/
|
|
12034
|
-
//# sourceMappingURL=chunk-
|
|
12060
|
+
//# sourceMappingURL=chunk-BBLLCZKM.mjs.map
|