@timardex/cluemart-shared 1.5.712 → 1.5.714
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-H2DRSNAF.mjs → chunk-GHTGWSA3.mjs} +25 -21
- package/dist/chunk-GHTGWSA3.mjs.map +1 -0
- package/dist/graphql/index.cjs +24 -20
- 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 +28 -20
- 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 +5 -1
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +24 -20
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +5 -14
- package/dist/index.d.ts +5 -14
- package/dist/index.mjs +24 -20
- package/dist/index.mjs.map +1 -1
- package/dist/{post-Bq1FtAVA.d.mts → post-BEnFqDy7.d.mts} +6 -15
- package/dist/{post-NzdSDJAT.d.ts → post-qUQ2rGL4.d.ts} +6 -15
- package/dist/types/index.d.mts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/chunk-H2DRSNAF.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;
|
|
@@ -1403,7 +1394,7 @@ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
|
|
|
1403
1394
|
schoolCode: PromoCodeType;
|
|
1404
1395
|
updatedAt: Date | null;
|
|
1405
1396
|
};
|
|
1406
|
-
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email">;
|
|
1397
|
+
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
|
|
1407
1398
|
type SchoolReturnType = {
|
|
1408
1399
|
school: SchoolType;
|
|
1409
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;
|
|
@@ -1403,7 +1394,7 @@ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
|
|
|
1403
1394
|
schoolCode: PromoCodeType;
|
|
1404
1395
|
updatedAt: Date | null;
|
|
1405
1396
|
};
|
|
1406
|
-
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email">;
|
|
1397
|
+
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
|
|
1407
1398
|
type SchoolReturnType = {
|
|
1408
1399
|
school: SchoolType;
|
|
1409
1400
|
users: SchoolRegisteredUserType[];
|
package/dist/index.mjs
CHANGED
|
@@ -2593,6 +2593,26 @@ var DATETIME_FIELDS_FRAGMENT = gql2`
|
|
|
2593
2593
|
startTime
|
|
2594
2594
|
}
|
|
2595
2595
|
`;
|
|
2596
|
+
var LOCATION_GEO_FIELDS_FRAGMENT = gql2`
|
|
2597
|
+
fragment LocationGeoFields on LocationGeoType {
|
|
2598
|
+
coordinates
|
|
2599
|
+
type
|
|
2600
|
+
}
|
|
2601
|
+
`;
|
|
2602
|
+
var LOCATION_FIELDS_FRAGMENT = gql2`
|
|
2603
|
+
fragment LocationFields on LocationType {
|
|
2604
|
+
city
|
|
2605
|
+
country
|
|
2606
|
+
fullAddress
|
|
2607
|
+
geo {
|
|
2608
|
+
...LocationGeoFields
|
|
2609
|
+
}
|
|
2610
|
+
latitude
|
|
2611
|
+
longitude
|
|
2612
|
+
region
|
|
2613
|
+
}
|
|
2614
|
+
${LOCATION_GEO_FIELDS_FRAGMENT}
|
|
2615
|
+
`;
|
|
2596
2616
|
var USER_ACTIVITY_FIELDS_FRAGMENT = gql2`
|
|
2597
2617
|
fragment UserActivityFields on UserActivityType {
|
|
2598
2618
|
favourites {
|
|
@@ -2648,6 +2668,9 @@ var USER_FIELDS_FRAGMENT = gql2`
|
|
|
2648
2668
|
licences {
|
|
2649
2669
|
...LicenceFields
|
|
2650
2670
|
}
|
|
2671
|
+
location {
|
|
2672
|
+
...LocationFields
|
|
2673
|
+
}
|
|
2651
2674
|
partner
|
|
2652
2675
|
overallPoints
|
|
2653
2676
|
platform
|
|
@@ -2669,6 +2692,7 @@ var USER_FIELDS_FRAGMENT = gql2`
|
|
|
2669
2692
|
${TERMS_AGREEMENT_FIELDS_FRAGMENT}
|
|
2670
2693
|
${USER_ACTIVITY_FIELDS_FRAGMENT}
|
|
2671
2694
|
${LICENCE_FIELDS_FRAGMENT}
|
|
2695
|
+
${LOCATION_FIELDS_FRAGMENT}
|
|
2672
2696
|
`;
|
|
2673
2697
|
var STALL_TYPE_FIELDS_FRAGMENT = gql2`
|
|
2674
2698
|
fragment StallTypeFields on StallTypeType {
|
|
@@ -2705,26 +2729,6 @@ var CONTACT_DETAILS_FIELDS_FRAGMENT = gql2`
|
|
|
2705
2729
|
mobilePhone
|
|
2706
2730
|
}
|
|
2707
2731
|
`;
|
|
2708
|
-
var LOCATION_GEO_FIELDS_FRAGMENT = gql2`
|
|
2709
|
-
fragment LocationGeoFields on LocationGeoType {
|
|
2710
|
-
coordinates
|
|
2711
|
-
type
|
|
2712
|
-
}
|
|
2713
|
-
`;
|
|
2714
|
-
var LOCATION_FIELDS_FRAGMENT = gql2`
|
|
2715
|
-
fragment LocationFields on LocationType {
|
|
2716
|
-
city
|
|
2717
|
-
country
|
|
2718
|
-
fullAddress
|
|
2719
|
-
geo {
|
|
2720
|
-
...LocationGeoFields
|
|
2721
|
-
}
|
|
2722
|
-
latitude
|
|
2723
|
-
longitude
|
|
2724
|
-
region
|
|
2725
|
-
}
|
|
2726
|
-
${LOCATION_GEO_FIELDS_FRAGMENT}
|
|
2727
|
-
`;
|
|
2728
2732
|
var EVENT_LIST_ITEM = gql2`
|
|
2729
2733
|
fragment EventListItemFields on EventListItemType {
|
|
2730
2734
|
_id
|