@timardex/cluemart-shared 1.5.712 → 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/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
- interface UserType {
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
- interface UserType {
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[];
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumUserRole, EnumSubscriptionStatus, EnumUserLicence, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
2
- import { A as AssociateType, Y as ResourceImageType, i as UserLicenceType, K as PromoCodeType, a0 as TermsAgreement, D as DateTimeType, u as CreateFormData, t as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, z as OwnerType, W as ResourceContactDetailsType, Z as SocialMediaType } from './global-BEUzBSyY.mjs';
2
+ import { Y as ResourceImageType, L as LocationType, a0 as TermsAgreement, A as AssociateType, i as UserLicenceType, K as PromoCodeType, D as DateTimeType, u as CreateFormData, t as BaseResourceType, B as BaseResourceTypeFormData, z as OwnerType, W as ResourceContactDetailsType, Z as SocialMediaType } from './global-BEUzBSyY.mjs';
3
3
  import { PosterAssetId } from './images/index.mjs';
4
4
  import { d as GlobalGameData, E as EnumGameType, D as DailyClueBaseGame, a as DailyClueGameData, G as GameDate } from './dailyClue-CvhLv9hJ.mjs';
5
5
 
@@ -13,6 +13,7 @@ type UserFormData = {
13
13
  firstName: string;
14
14
  isTester: boolean;
15
15
  lastName: string;
16
+ location?: LocationType | null;
16
17
  password?: string | null;
17
18
  platform?: EnumOSPlatform;
18
19
  preferredRegion: string;
@@ -80,38 +81,28 @@ type UserActivity = {
80
81
  events: UserActivityEvent[];
81
82
  };
82
83
  };
83
- interface UserType {
84
+ type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
84
85
  _id: string;
85
- active: boolean;
86
86
  associates?: AssociateType[] | null;
87
- avatar: ResourceImageType | null;
88
87
  createdAt: Date;
89
88
  deletedAt: Date | null;
90
- email: string;
91
89
  events: string[] | null;
92
- firstName: string;
93
90
  game: string | null;
94
- isTester: boolean;
95
- lastName: string;
96
91
  licences: UserLicenceType[] | null;
97
92
  overallPoints: number | null;
98
93
  partner: string | null;
99
- password: string;
100
- platform: EnumOSPlatform | null;
101
- preferredRegion: string;
102
94
  promoCodes?: PromoCodeType[] | null;
103
95
  refreshToken: string | null;
104
- role: EnumUserRole;
105
96
  school: string | null;
106
97
  stripe?: StripeSubscription;
107
- termsAgreement?: TermsAgreement | null;
108
98
  updatedAt: Date | null;
109
99
  userActivity: UserActivity | null;
110
100
  vendor: string | null;
111
- }
101
+ };
112
102
  type SafeUserType = Omit<UserType, "password" | "refreshToken">;
113
103
  type ResourceByUser = {
114
104
  _id: string;
105
+ active: boolean;
115
106
  logo: string;
116
107
  name: string;
117
108
  resourceType: EnumResourceType;
@@ -268,7 +259,7 @@ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
268
259
  schoolCode: PromoCodeType;
269
260
  updatedAt: Date | null;
270
261
  };
271
- type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email">;
262
+ type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
272
263
  type SchoolReturnType = {
273
264
  school: SchoolType;
274
265
  users: SchoolRegisteredUserType[];
@@ -1,5 +1,5 @@
1
1
  import { EnumOSPlatform, EnumUserRole, EnumSubscriptionStatus, EnumUserLicence, EnumResourceType, EnumPartnerType } from './enums/index.js';
2
- import { A as AssociateType, Y as ResourceImageType, i as UserLicenceType, K as PromoCodeType, a0 as TermsAgreement, D as DateTimeType, u as CreateFormData, t as BaseResourceType, L as LocationType, B as BaseResourceTypeFormData, z as OwnerType, W as ResourceContactDetailsType, Z as SocialMediaType } from './global-585slmSH.js';
2
+ import { Y as ResourceImageType, L as LocationType, a0 as TermsAgreement, A as AssociateType, i as UserLicenceType, K as PromoCodeType, D as DateTimeType, u as CreateFormData, t as BaseResourceType, B as BaseResourceTypeFormData, z as OwnerType, W as ResourceContactDetailsType, Z as SocialMediaType } from './global-585slmSH.js';
3
3
  import { PosterAssetId } from './images/index.js';
4
4
  import { d as GlobalGameData, E as EnumGameType, D as DailyClueBaseGame, a as DailyClueGameData, G as GameDate } from './dailyClue-CvhLv9hJ.js';
5
5
 
@@ -13,6 +13,7 @@ type UserFormData = {
13
13
  firstName: string;
14
14
  isTester: boolean;
15
15
  lastName: string;
16
+ location?: LocationType | null;
16
17
  password?: string | null;
17
18
  platform?: EnumOSPlatform;
18
19
  preferredRegion: string;
@@ -80,38 +81,28 @@ type UserActivity = {
80
81
  events: UserActivityEvent[];
81
82
  };
82
83
  };
83
- interface UserType {
84
+ type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
84
85
  _id: string;
85
- active: boolean;
86
86
  associates?: AssociateType[] | null;
87
- avatar: ResourceImageType | null;
88
87
  createdAt: Date;
89
88
  deletedAt: Date | null;
90
- email: string;
91
89
  events: string[] | null;
92
- firstName: string;
93
90
  game: string | null;
94
- isTester: boolean;
95
- lastName: string;
96
91
  licences: UserLicenceType[] | null;
97
92
  overallPoints: number | null;
98
93
  partner: string | null;
99
- password: string;
100
- platform: EnumOSPlatform | null;
101
- preferredRegion: string;
102
94
  promoCodes?: PromoCodeType[] | null;
103
95
  refreshToken: string | null;
104
- role: EnumUserRole;
105
96
  school: string | null;
106
97
  stripe?: StripeSubscription;
107
- termsAgreement?: TermsAgreement | null;
108
98
  updatedAt: Date | null;
109
99
  userActivity: UserActivity | null;
110
100
  vendor: string | null;
111
- }
101
+ };
112
102
  type SafeUserType = Omit<UserType, "password" | "refreshToken">;
113
103
  type ResourceByUser = {
114
104
  _id: string;
105
+ active: boolean;
115
106
  logo: string;
116
107
  name: string;
117
108
  resourceType: EnumResourceType;
@@ -268,7 +259,7 @@ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
268
259
  schoolCode: PromoCodeType;
269
260
  updatedAt: Date | null;
270
261
  };
271
- type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email">;
262
+ type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
272
263
  type SchoolReturnType = {
273
264
  school: SchoolType;
274
265
  users: SchoolRegisteredUserType[];
@@ -1,5 +1,5 @@
1
1
  import { EnumResourceType, EnumOSPlatform, EnumUserLicence } from '../enums/index.mjs';
2
- export { q as AdFormData, z as AdFormState, B as AdResource, b as AdType, v as AppSettingsFormData, g as AppSettingsType, A as AuthPayloadType, D as BaseGameMap, F as BaseGameType, H as CreateAdFormData, r as CreateAdFormState, w as CreateAppSettingsFormData, k as CreateLoginFormData, s as CreatePartnerFormData, u as CreatePostFormData, l as CreateRegisterFormData, m as CreateRequestPasswordResetFormData, o as CreateResetPasswordFormData, y as CreateSchoolFormData, C as CreateUserFormData, n as CreateValidateVerificationTokenFormData, I as EnumAdShowOn, E as EnumAdStatus, J as EnumAdStyle, K as EnumAdType, L as EnumGameStatus, M as EnumPostContentType, f as EnumPostType, N as EnumVerificationType, G as GameDocType, O as GameHistory, h as GameLeaderboard, Q as GameType, T as LoginFormData, V as MarketingMaterialRequestInputType, p as PartnerFormData, P as PartnerType, W as PostContentData, X as PostContentFormData, Y as PostContentGame, Z as PostContentImage, _ as PostContentList, $ as PostContentTextarea, a0 as PostContentType, a1 as PostContentVideo, a2 as PostFileInput, t as PostFormData, e as PostType, a3 as PosterInputType, a4 as PuzzleAnswer, a5 as PuzzleAnsweredQuestion, a6 as PuzzleBaseGame, a7 as PuzzleGameData, a8 as PuzzleQuestion, R as RefreshTokenPayloadType, a9 as RegisterFormData, aa as RequestPasswordResetFormData, ab as ResetPasswordFormData, a as ResourceByUser, S as SafeUserType, ac as SchoolCampaignType, x as SchoolFormData, ad as SchoolRegisteredUserType, i as SchoolReturnType, j as SchoolType, ae as StripeSubscription, af as SubscriptionPlanData, c as SubscriptionPlansResponse, ag as SubscriptionPricingData, d as SubscriptionStatusData, ah as UserActivity, ai as UserActivityEvent, U as UserFormData, aj as UserType, ak as ValidateVerificationTokenFormData } from '../post-Bq1FtAVA.mjs';
2
+ export { q as AdFormData, z as AdFormState, B as AdResource, b as AdType, v as AppSettingsFormData, g as AppSettingsType, A as AuthPayloadType, D as BaseGameMap, F as BaseGameType, H as CreateAdFormData, r as CreateAdFormState, w as CreateAppSettingsFormData, k as CreateLoginFormData, s as CreatePartnerFormData, u as CreatePostFormData, l as CreateRegisterFormData, m as CreateRequestPasswordResetFormData, o as CreateResetPasswordFormData, y as CreateSchoolFormData, C as CreateUserFormData, n as CreateValidateVerificationTokenFormData, I as EnumAdShowOn, E as EnumAdStatus, J as EnumAdStyle, K as EnumAdType, L as EnumGameStatus, M as EnumPostContentType, f as EnumPostType, N as EnumVerificationType, G as GameDocType, O as GameHistory, h as GameLeaderboard, Q as GameType, T as LoginFormData, V as MarketingMaterialRequestInputType, p as PartnerFormData, P as PartnerType, W as PostContentData, X as PostContentFormData, Y as PostContentGame, Z as PostContentImage, _ as PostContentList, $ as PostContentTextarea, a0 as PostContentType, a1 as PostContentVideo, a2 as PostFileInput, t as PostFormData, e as PostType, a3 as PosterInputType, a4 as PuzzleAnswer, a5 as PuzzleAnsweredQuestion, a6 as PuzzleBaseGame, a7 as PuzzleGameData, a8 as PuzzleQuestion, R as RefreshTokenPayloadType, a9 as RegisterFormData, aa as RequestPasswordResetFormData, ab as ResetPasswordFormData, a as ResourceByUser, S as SafeUserType, ac as SchoolCampaignType, x as SchoolFormData, ad as SchoolRegisteredUserType, i as SchoolReturnType, j as SchoolType, ae as StripeSubscription, af as SubscriptionPlanData, c as SubscriptionPlansResponse, ag as SubscriptionPricingData, d as SubscriptionStatusData, ah as UserActivity, ai as UserActivityEvent, U as UserFormData, aj as UserType, ak as ValidateVerificationTokenFormData } from '../post-BEnFqDy7.mjs';
3
3
  export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CZqXBve8.mjs';
4
4
  export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-B6lQQq-x.mjs';
5
5
  import { c as EventListItemType } from '../global-BEUzBSyY.mjs';
@@ -1,5 +1,5 @@
1
1
  import { EnumResourceType, EnumOSPlatform, EnumUserLicence } from '../enums/index.js';
2
- export { q as AdFormData, z as AdFormState, B as AdResource, b as AdType, v as AppSettingsFormData, g as AppSettingsType, A as AuthPayloadType, D as BaseGameMap, F as BaseGameType, H as CreateAdFormData, r as CreateAdFormState, w as CreateAppSettingsFormData, k as CreateLoginFormData, s as CreatePartnerFormData, u as CreatePostFormData, l as CreateRegisterFormData, m as CreateRequestPasswordResetFormData, o as CreateResetPasswordFormData, y as CreateSchoolFormData, C as CreateUserFormData, n as CreateValidateVerificationTokenFormData, I as EnumAdShowOn, E as EnumAdStatus, J as EnumAdStyle, K as EnumAdType, L as EnumGameStatus, M as EnumPostContentType, f as EnumPostType, N as EnumVerificationType, G as GameDocType, O as GameHistory, h as GameLeaderboard, Q as GameType, T as LoginFormData, V as MarketingMaterialRequestInputType, p as PartnerFormData, P as PartnerType, W as PostContentData, X as PostContentFormData, Y as PostContentGame, Z as PostContentImage, _ as PostContentList, $ as PostContentTextarea, a0 as PostContentType, a1 as PostContentVideo, a2 as PostFileInput, t as PostFormData, e as PostType, a3 as PosterInputType, a4 as PuzzleAnswer, a5 as PuzzleAnsweredQuestion, a6 as PuzzleBaseGame, a7 as PuzzleGameData, a8 as PuzzleQuestion, R as RefreshTokenPayloadType, a9 as RegisterFormData, aa as RequestPasswordResetFormData, ab as ResetPasswordFormData, a as ResourceByUser, S as SafeUserType, ac as SchoolCampaignType, x as SchoolFormData, ad as SchoolRegisteredUserType, i as SchoolReturnType, j as SchoolType, ae as StripeSubscription, af as SubscriptionPlanData, c as SubscriptionPlansResponse, ag as SubscriptionPricingData, d as SubscriptionStatusData, ah as UserActivity, ai as UserActivityEvent, U as UserFormData, aj as UserType, ak as ValidateVerificationTokenFormData } from '../post-NzdSDJAT.js';
2
+ export { q as AdFormData, z as AdFormState, B as AdResource, b as AdType, v as AppSettingsFormData, g as AppSettingsType, A as AuthPayloadType, D as BaseGameMap, F as BaseGameType, H as CreateAdFormData, r as CreateAdFormState, w as CreateAppSettingsFormData, k as CreateLoginFormData, s as CreatePartnerFormData, u as CreatePostFormData, l as CreateRegisterFormData, m as CreateRequestPasswordResetFormData, o as CreateResetPasswordFormData, y as CreateSchoolFormData, C as CreateUserFormData, n as CreateValidateVerificationTokenFormData, I as EnumAdShowOn, E as EnumAdStatus, J as EnumAdStyle, K as EnumAdType, L as EnumGameStatus, M as EnumPostContentType, f as EnumPostType, N as EnumVerificationType, G as GameDocType, O as GameHistory, h as GameLeaderboard, Q as GameType, T as LoginFormData, V as MarketingMaterialRequestInputType, p as PartnerFormData, P as PartnerType, W as PostContentData, X as PostContentFormData, Y as PostContentGame, Z as PostContentImage, _ as PostContentList, $ as PostContentTextarea, a0 as PostContentType, a1 as PostContentVideo, a2 as PostFileInput, t as PostFormData, e as PostType, a3 as PosterInputType, a4 as PuzzleAnswer, a5 as PuzzleAnsweredQuestion, a6 as PuzzleBaseGame, a7 as PuzzleGameData, a8 as PuzzleQuestion, R as RefreshTokenPayloadType, a9 as RegisterFormData, aa as RequestPasswordResetFormData, ab as ResetPasswordFormData, a as ResourceByUser, S as SafeUserType, ac as SchoolCampaignType, x as SchoolFormData, ad as SchoolRegisteredUserType, i as SchoolReturnType, j as SchoolType, ae as StripeSubscription, af as SubscriptionPlanData, c as SubscriptionPlansResponse, ag as SubscriptionPricingData, d as SubscriptionStatusData, ah as UserActivity, ai as UserActivityEvent, U as UserFormData, aj as UserType, ak as ValidateVerificationTokenFormData } from '../post-qUQ2rGL4.js';
3
3
  export { c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, N as NotificationCount, i as NotificationDataType, a as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CjJdhVR7.js';
4
4
  export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-DA3p41Uq.js';
5
5
  import { c as EventListItemType } from '../global-585slmSH.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timardex/cluemart-shared",
3
- "version": "1.5.712",
3
+ "version": "1.5.713",
4
4
  "description": "",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.mjs",