@timardex/cluemart-shared 1.5.711 → 1.5.713
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-IH2IANCQ.mjs → chunk-5SCGH7UX.mjs} +1 -1
- package/dist/{chunk-IH2IANCQ.mjs.map → chunk-5SCGH7UX.mjs.map} +1 -1
- package/dist/{chunk-O3CRWCG4.mjs → chunk-H2DRSNAF.mjs} +9 -4
- package/dist/chunk-H2DRSNAF.mjs.map +1 -0
- package/dist/graphql/index.cjs +8 -3
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +1 -1
- package/dist/graphql/index.d.ts +1 -1
- package/dist/graphql/index.mjs +1 -1
- package/dist/hooks/index.cjs +6 -1
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +1 -1
- package/dist/hooks/index.d.ts +1 -1
- package/dist/hooks/index.mjs +7 -3
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +8 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +8 -14
- package/dist/index.d.ts +8 -14
- package/dist/index.mjs +8 -3
- package/dist/index.mjs.map +1 -1
- package/dist/{post-B9wubgsi.d.mts → post-BEnFqDy7.d.mts} +9 -15
- package/dist/{post-DVPbL1IL.d.ts → post-qUQ2rGL4.d.ts} +9 -15
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.mjs +1 -1
- package/package.json +1 -1
- package/dist/chunk-O3CRWCG4.mjs.map +0 -1
package/dist/index.d.mts
CHANGED
|
@@ -648,6 +648,7 @@ type UserFormData = {
|
|
|
648
648
|
firstName: string;
|
|
649
649
|
isTester: boolean;
|
|
650
650
|
lastName: string;
|
|
651
|
+
location?: LocationType | null;
|
|
651
652
|
password?: string | null;
|
|
652
653
|
platform?: EnumOSPlatform;
|
|
653
654
|
preferredRegion: string;
|
|
@@ -715,38 +716,28 @@ type UserActivity = {
|
|
|
715
716
|
events: UserActivityEvent[];
|
|
716
717
|
};
|
|
717
718
|
};
|
|
718
|
-
|
|
719
|
+
type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
|
|
719
720
|
_id: string;
|
|
720
|
-
active: boolean;
|
|
721
721
|
associates?: AssociateType[] | null;
|
|
722
|
-
avatar: ResourceImageType | null;
|
|
723
722
|
createdAt: Date;
|
|
724
723
|
deletedAt: Date | null;
|
|
725
|
-
email: string;
|
|
726
724
|
events: string[] | null;
|
|
727
|
-
firstName: string;
|
|
728
725
|
game: string | null;
|
|
729
|
-
isTester: boolean;
|
|
730
|
-
lastName: string;
|
|
731
726
|
licences: UserLicenceType[] | null;
|
|
732
727
|
overallPoints: number | null;
|
|
733
728
|
partner: string | null;
|
|
734
|
-
password: string;
|
|
735
|
-
platform: EnumOSPlatform | null;
|
|
736
|
-
preferredRegion: string;
|
|
737
729
|
promoCodes?: PromoCodeType[] | null;
|
|
738
730
|
refreshToken: string | null;
|
|
739
|
-
role: EnumUserRole;
|
|
740
731
|
school: string | null;
|
|
741
732
|
stripe?: StripeSubscription;
|
|
742
|
-
termsAgreement?: TermsAgreement | null;
|
|
743
733
|
updatedAt: Date | null;
|
|
744
734
|
userActivity: UserActivity | null;
|
|
745
735
|
vendor: string | null;
|
|
746
|
-
}
|
|
736
|
+
};
|
|
747
737
|
type SafeUserType = Omit<UserType, "password" | "refreshToken">;
|
|
748
738
|
type ResourceByUser = {
|
|
749
739
|
_id: string;
|
|
740
|
+
active: boolean;
|
|
750
741
|
logo: string;
|
|
751
742
|
name: string;
|
|
752
743
|
resourceType: EnumResourceType;
|
|
@@ -1217,7 +1208,10 @@ type GameHistory = Pick<BaseGameType, "gameTitle" | "gameType" | "gameTypeId"> &
|
|
|
1217
1208
|
createdAt: Date;
|
|
1218
1209
|
gameDate: GameDate;
|
|
1219
1210
|
gameStatus: EnumGameStatus;
|
|
1211
|
+
/** Per-event delta. Not persisted for overallGamePoints (computed at read time). */
|
|
1220
1212
|
pointsEarned: number;
|
|
1213
|
+
/** Running total for this game instance; computed at read time, not stored in Mongo. */
|
|
1214
|
+
overallGamePoints?: number;
|
|
1221
1215
|
};
|
|
1222
1216
|
type GameDataMap = {
|
|
1223
1217
|
[EnumGameType.DAILY_CLUE]: DailyClueGameData;
|
|
@@ -1400,7 +1394,7 @@ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
|
|
|
1400
1394
|
schoolCode: PromoCodeType;
|
|
1401
1395
|
updatedAt: Date | null;
|
|
1402
1396
|
};
|
|
1403
|
-
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email">;
|
|
1397
|
+
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
|
|
1404
1398
|
type SchoolReturnType = {
|
|
1405
1399
|
school: SchoolType;
|
|
1406
1400
|
users: SchoolRegisteredUserType[];
|
package/dist/index.d.ts
CHANGED
|
@@ -648,6 +648,7 @@ type UserFormData = {
|
|
|
648
648
|
firstName: string;
|
|
649
649
|
isTester: boolean;
|
|
650
650
|
lastName: string;
|
|
651
|
+
location?: LocationType | null;
|
|
651
652
|
password?: string | null;
|
|
652
653
|
platform?: EnumOSPlatform;
|
|
653
654
|
preferredRegion: string;
|
|
@@ -715,38 +716,28 @@ type UserActivity = {
|
|
|
715
716
|
events: UserActivityEvent[];
|
|
716
717
|
};
|
|
717
718
|
};
|
|
718
|
-
|
|
719
|
+
type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
|
|
719
720
|
_id: string;
|
|
720
|
-
active: boolean;
|
|
721
721
|
associates?: AssociateType[] | null;
|
|
722
|
-
avatar: ResourceImageType | null;
|
|
723
722
|
createdAt: Date;
|
|
724
723
|
deletedAt: Date | null;
|
|
725
|
-
email: string;
|
|
726
724
|
events: string[] | null;
|
|
727
|
-
firstName: string;
|
|
728
725
|
game: string | null;
|
|
729
|
-
isTester: boolean;
|
|
730
|
-
lastName: string;
|
|
731
726
|
licences: UserLicenceType[] | null;
|
|
732
727
|
overallPoints: number | null;
|
|
733
728
|
partner: string | null;
|
|
734
|
-
password: string;
|
|
735
|
-
platform: EnumOSPlatform | null;
|
|
736
|
-
preferredRegion: string;
|
|
737
729
|
promoCodes?: PromoCodeType[] | null;
|
|
738
730
|
refreshToken: string | null;
|
|
739
|
-
role: EnumUserRole;
|
|
740
731
|
school: string | null;
|
|
741
732
|
stripe?: StripeSubscription;
|
|
742
|
-
termsAgreement?: TermsAgreement | null;
|
|
743
733
|
updatedAt: Date | null;
|
|
744
734
|
userActivity: UserActivity | null;
|
|
745
735
|
vendor: string | null;
|
|
746
|
-
}
|
|
736
|
+
};
|
|
747
737
|
type SafeUserType = Omit<UserType, "password" | "refreshToken">;
|
|
748
738
|
type ResourceByUser = {
|
|
749
739
|
_id: string;
|
|
740
|
+
active: boolean;
|
|
750
741
|
logo: string;
|
|
751
742
|
name: string;
|
|
752
743
|
resourceType: EnumResourceType;
|
|
@@ -1217,7 +1208,10 @@ type GameHistory = Pick<BaseGameType, "gameTitle" | "gameType" | "gameTypeId"> &
|
|
|
1217
1208
|
createdAt: Date;
|
|
1218
1209
|
gameDate: GameDate;
|
|
1219
1210
|
gameStatus: EnumGameStatus;
|
|
1211
|
+
/** Per-event delta. Not persisted for overallGamePoints (computed at read time). */
|
|
1220
1212
|
pointsEarned: number;
|
|
1213
|
+
/** Running total for this game instance; computed at read time, not stored in Mongo. */
|
|
1214
|
+
overallGamePoints?: number;
|
|
1221
1215
|
};
|
|
1222
1216
|
type GameDataMap = {
|
|
1223
1217
|
[EnumGameType.DAILY_CLUE]: DailyClueGameData;
|
|
@@ -1400,7 +1394,7 @@ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
|
|
|
1400
1394
|
schoolCode: PromoCodeType;
|
|
1401
1395
|
updatedAt: Date | null;
|
|
1402
1396
|
};
|
|
1403
|
-
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email">;
|
|
1397
|
+
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
|
|
1404
1398
|
type SchoolReturnType = {
|
|
1405
1399
|
school: SchoolType;
|
|
1406
1400
|
users: SchoolRegisteredUserType[];
|
package/dist/index.mjs
CHANGED
|
@@ -3945,7 +3945,10 @@ var useUpdateEvent = () => {
|
|
|
3945
3945
|
{
|
|
3946
3946
|
query: GET_EVENT,
|
|
3947
3947
|
variables: { _id: eventId }
|
|
3948
|
-
|
|
3948
|
+
},
|
|
3949
|
+
{
|
|
3950
|
+
query: GET_EVENT_INFO,
|
|
3951
|
+
variables: { eventId }
|
|
3949
3952
|
}
|
|
3950
3953
|
];
|
|
3951
3954
|
}
|
|
@@ -3993,12 +3996,13 @@ var useUpdateEventInfo = () => {
|
|
|
3993
3996
|
{
|
|
3994
3997
|
query: GET_EVENT_INFO,
|
|
3995
3998
|
variables: { eventId }
|
|
3996
|
-
// Pass the eventId for refetching
|
|
3997
3999
|
},
|
|
3998
4000
|
{
|
|
3999
4001
|
query: GET_EVENT,
|
|
4000
4002
|
variables: { _id: eventId }
|
|
4001
|
-
|
|
4003
|
+
},
|
|
4004
|
+
{
|
|
4005
|
+
query: GET_USER_EVENTS
|
|
4002
4006
|
}
|
|
4003
4007
|
];
|
|
4004
4008
|
}
|
|
@@ -6099,6 +6103,7 @@ var GAME_HISTORY_FIELDS_FRAGMENT = gql35`
|
|
|
6099
6103
|
gameTitle
|
|
6100
6104
|
gameType
|
|
6101
6105
|
gameTypeId
|
|
6106
|
+
overallGamePoints
|
|
6102
6107
|
pointsEarned
|
|
6103
6108
|
}
|
|
6104
6109
|
${GAME_DATE_FIELDS_FRAGMENT}
|