@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
package/dist/index.cjs
CHANGED
|
@@ -9889,15 +9889,21 @@ var DELETE_PARTNER_MUTATION = gql`
|
|
|
9889
9889
|
deletePartner(_id: $_id)
|
|
9890
9890
|
}
|
|
9891
9891
|
`;
|
|
9892
|
+
var GAME_DATE_FIELDS_FRAGMENT = gql`
|
|
9893
|
+
fragment GameDateFields on GameDateType {
|
|
9894
|
+
startDate
|
|
9895
|
+
endDate
|
|
9896
|
+
}
|
|
9897
|
+
`;
|
|
9892
9898
|
var BASE_GAME_FIELDS_FRAGMENT = gql`
|
|
9893
9899
|
fragment BaseGameFields on BaseGameType {
|
|
9894
9900
|
gameDate {
|
|
9895
|
-
|
|
9896
|
-
endDate
|
|
9901
|
+
...GameDateFields
|
|
9897
9902
|
}
|
|
9898
9903
|
gameSolution
|
|
9899
9904
|
gameType
|
|
9900
9905
|
}
|
|
9906
|
+
${GAME_DATE_FIELDS_FRAGMENT}
|
|
9901
9907
|
`;
|
|
9902
9908
|
var DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT = gql`
|
|
9903
9909
|
fragment DailyClueGameDataFields on DailyClueGameDataType {
|
|
@@ -9927,6 +9933,13 @@ var GAME_FIELDS_FRAGMENT = gql`
|
|
|
9927
9933
|
...DailyClueGameDataFields
|
|
9928
9934
|
}
|
|
9929
9935
|
}
|
|
9936
|
+
gameHistory {
|
|
9937
|
+
gameDate {
|
|
9938
|
+
...GameDateFields
|
|
9939
|
+
}
|
|
9940
|
+
gameType
|
|
9941
|
+
pointsEarned
|
|
9942
|
+
}
|
|
9930
9943
|
updatedAt
|
|
9931
9944
|
owner {
|
|
9932
9945
|
...OwnerFields
|
|
@@ -9935,6 +9948,7 @@ var GAME_FIELDS_FRAGMENT = gql`
|
|
|
9935
9948
|
}
|
|
9936
9949
|
${DAILY_CLUE_GAME_DATA_FIELDS_FRAGMENT}
|
|
9937
9950
|
${OWNER_FIELDS_FRAGMENT}
|
|
9951
|
+
${GAME_DATE_FIELDS_FRAGMENT}
|
|
9938
9952
|
`;
|
|
9939
9953
|
var GET_GAMES = gql`
|
|
9940
9954
|
query getGames {
|
|
@@ -12003,9 +12017,8 @@ var schemaBaseGame = new MongooseSchema19(
|
|
|
12003
12017
|
var schemaLetters = new MongooseSchema19(
|
|
12004
12018
|
{
|
|
12005
12019
|
collected: { required: false, type: [String] },
|
|
12006
|
-
shuffled: { required: true, type: [String] }
|
|
12007
|
-
todaysLetter
|
|
12008
|
-
todaysPlacement: { required: false, type: String }
|
|
12020
|
+
shuffled: { required: true, type: [String] }
|
|
12021
|
+
// todaysLetter and todaysPlacement is generated in the backend, so they are not required
|
|
12009
12022
|
},
|
|
12010
12023
|
{ _id: false }
|
|
12011
12024
|
);
|
|
@@ -12031,11 +12044,24 @@ var gameDataDefinition = Object.fromEntries(
|
|
|
12031
12044
|
{ default: null, required: false, type: schema15 }
|
|
12032
12045
|
])
|
|
12033
12046
|
);
|
|
12047
|
+
var gameHistorySchema = new MongooseSchema19(
|
|
12048
|
+
{
|
|
12049
|
+
gameDate: { required: true, type: schemaGameDate },
|
|
12050
|
+
gameType: {
|
|
12051
|
+
enum: Object.values(EnumGameType),
|
|
12052
|
+
required: true,
|
|
12053
|
+
type: String
|
|
12054
|
+
},
|
|
12055
|
+
pointsEarned: { default: 0, required: true, type: Number }
|
|
12056
|
+
},
|
|
12057
|
+
{ _id: false }
|
|
12058
|
+
);
|
|
12034
12059
|
var schema14 = new MongooseSchema19(
|
|
12035
12060
|
{
|
|
12036
12061
|
active: { default: false, required: true, type: Boolean },
|
|
12037
12062
|
deletedAt: { default: null, required: false, type: Date },
|
|
12038
12063
|
gameData: gameDataDefinition,
|
|
12064
|
+
gameHistory: { default: [], required: true, type: [gameHistorySchema] },
|
|
12039
12065
|
owner: {
|
|
12040
12066
|
required: true,
|
|
12041
12067
|
type: OwnerTypeSchema
|