@timardex/cluemart-shared 1.6.112 → 1.7.0

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.
Files changed (145) hide show
  1. package/dist/ad-CVkVX_z5.d.ts +296 -0
  2. package/dist/ad-DA9ECAhK.d.mts +296 -0
  3. package/dist/affiliate-1RtkLnLP.d.ts +35 -0
  4. package/dist/affiliate-Cos2Syz5.d.mts +35 -0
  5. package/dist/{chunk-R6PCFOYO.mjs → chunk-HZMP7GXC.mjs} +2628 -948
  6. package/dist/chunk-HZMP7GXC.mjs.map +1 -0
  7. package/dist/{chunk-X3OLM35T.mjs → chunk-KZTOISPA.mjs} +8 -14
  8. package/dist/chunk-KZTOISPA.mjs.map +1 -0
  9. package/dist/{chunk-ILILH7E2.mjs → chunk-MVQ3CFQR.mjs} +23 -12
  10. package/dist/chunk-MVQ3CFQR.mjs.map +1 -0
  11. package/dist/{chunk-AYO3E4DM.mjs → chunk-RKIRWZCH.mjs} +183 -39
  12. package/dist/chunk-RKIRWZCH.mjs.map +1 -0
  13. package/dist/{chunk-LBEJECG3.mjs → chunk-TAECMXM4.mjs} +219 -249
  14. package/dist/{chunk-LBEJECG3.mjs.map → chunk-TAECMXM4.mjs.map} +1 -1
  15. package/dist/{chunk-BIJ5NDXW.mjs → chunk-ZZJSCYJK.mjs} +42 -46
  16. package/dist/chunk-ZZJSCYJK.mjs.map +1 -0
  17. package/dist/{contactUs-CBWzefUS.d.mts → contactUs-DGrDzJaM.d.mts} +1 -1
  18. package/dist/{contactUs--NoohZBu.d.ts → contactUs-H7799pWe.d.ts} +1 -1
  19. package/dist/enums/index.cjs +7 -13
  20. package/dist/enums/index.cjs.map +1 -1
  21. package/dist/enums/index.d.mts +9 -15
  22. package/dist/enums/index.d.ts +9 -15
  23. package/dist/enums/index.mjs +1 -1
  24. package/dist/formFields/index.cjs +73 -136
  25. package/dist/formFields/index.cjs.map +1 -1
  26. package/dist/formFields/index.d.mts +2 -3
  27. package/dist/formFields/index.d.ts +2 -3
  28. package/dist/formFields/index.mjs +4 -9
  29. package/dist/{global-DePDtOFt.d.mts → global-BUUfmCo7.d.mts} +11 -12
  30. package/dist/{global-CUYYxpy2.d.ts → global-fKbMmluy.d.ts} +11 -12
  31. package/dist/graphql/index.cjs +1251 -694
  32. package/dist/graphql/index.cjs.map +1 -1
  33. package/dist/graphql/index.d.mts +173 -423
  34. package/dist/graphql/index.d.ts +173 -423
  35. package/dist/graphql/index.mjs +21 -33
  36. package/dist/hooks/index.cjs +306 -936
  37. package/dist/hooks/index.cjs.map +1 -1
  38. package/dist/hooks/index.d.mts +4 -10
  39. package/dist/hooks/index.d.ts +4 -10
  40. package/dist/hooks/index.mjs +58 -170
  41. package/dist/hooks/index.mjs.map +1 -1
  42. package/dist/images/apple-maps-icon.webp.d.ts +1 -8
  43. package/dist/images/banner-horizontal.webp.d.ts +1 -8
  44. package/dist/images/banner-vertical.webp.d.ts +1 -8
  45. package/dist/images/cluiTui.webp.d.ts +1 -8
  46. package/dist/images/corporate.webp.d.ts +1 -8
  47. package/dist/images/facebook.webp.d.ts +1 -8
  48. package/dist/images/gazebo-top.webp.d.ts +1 -8
  49. package/dist/images/google-maps-icon.webp.d.ts +1 -8
  50. package/dist/images/googleMaps-logo-dark.webp.d.ts +1 -8
  51. package/dist/images/googleMaps-logo-light.webp.d.ts +1 -8
  52. package/dist/images/instagram.webp.d.ts +1 -8
  53. package/dist/images/logo-atr.webp.d.ts +1 -8
  54. package/dist/images/logo-dark.webp.d.ts +1 -8
  55. package/dist/images/logo.webp.d.ts +1 -8
  56. package/dist/images/meet.webp.d.ts +1 -8
  57. package/dist/images/mini-market1.webp.d.ts +1 -8
  58. package/dist/images/mini-market2.webp.d.ts +1 -8
  59. package/dist/images/mini-market3.webp.d.ts +1 -8
  60. package/dist/images/mini-market4.webp.d.ts +1 -8
  61. package/dist/images/mini-market5.webp.d.ts +1 -8
  62. package/dist/images/poll.webp.d.ts +1 -8
  63. package/dist/images/poster1.webp.d.ts +1 -8
  64. package/dist/images/poster2.webp.d.ts +1 -8
  65. package/dist/images/poster3.webp.d.ts +1 -8
  66. package/dist/images/poster4.webp.d.ts +1 -8
  67. package/dist/images/private.webp.d.ts +1 -8
  68. package/dist/images/qr-code.webp.d.ts +1 -8
  69. package/dist/images/school.webp.d.ts +1 -8
  70. package/dist/images/sima.webp.d.ts +1 -8
  71. package/dist/images/store-android.webp.d.ts +1 -8
  72. package/dist/images/store-ios.webp.d.ts +1 -8
  73. package/dist/images/tablas.webp.d.ts +1 -8
  74. package/dist/images/telefonos.webp.d.ts +1 -8
  75. package/dist/images/tiktok.webp.d.ts +1 -8
  76. package/dist/images/tip.webp.d.ts +1 -8
  77. package/dist/images/ugralos.webp.d.ts +1 -8
  78. package/dist/images/waze-maps-icon.webp.d.ts +1 -8
  79. package/dist/images/website.webp.d.ts +1 -8
  80. package/dist/images/youtube.webp.d.ts +1 -8
  81. package/dist/index.cjs +1673 -1623
  82. package/dist/index.cjs.map +1 -1
  83. package/dist/index.d.mts +240 -654
  84. package/dist/index.d.ts +240 -654
  85. package/dist/index.mjs +1672 -1585
  86. package/dist/index.mjs.map +1 -1
  87. package/dist/map/index.cjs +9 -14
  88. package/dist/map/index.cjs.map +1 -1
  89. package/dist/map/index.d.mts +13 -16
  90. package/dist/map/index.d.ts +13 -16
  91. package/dist/map/index.mjs +9 -14
  92. package/dist/map/index.mjs.map +1 -1
  93. package/dist/{resourceActivities-CMUcn2P7.d.ts → resourceActivities-BL_12IAo.d.ts} +4 -9
  94. package/dist/{resourceActivities-CwbJFGIp.d.mts → resourceActivities-zczOntNk.d.mts} +4 -9
  95. package/dist/sharing/index.cjs +1252 -39
  96. package/dist/sharing/index.cjs.map +1 -1
  97. package/dist/sharing/index.d.mts +5 -17
  98. package/dist/sharing/index.d.ts +5 -17
  99. package/dist/sharing/index.mjs +30 -34
  100. package/dist/types/index.cjs +2 -15
  101. package/dist/types/index.cjs.map +1 -1
  102. package/dist/types/index.d.mts +23 -10
  103. package/dist/types/index.d.ts +23 -10
  104. package/dist/types/index.mjs +5 -9
  105. package/dist/utils/index.cjs +136 -355
  106. package/dist/utils/index.cjs.map +1 -1
  107. package/dist/utils/index.d.mts +35 -87
  108. package/dist/utils/index.d.ts +35 -87
  109. package/dist/utils/index.mjs +15 -42
  110. package/package.json +10 -31
  111. package/dist/ad-BUYzE6zx.d.ts +0 -181
  112. package/dist/ad-BhLoEul3.d.mts +0 -181
  113. package/dist/affiliate-BbtjeUP4.d.mts +0 -73
  114. package/dist/affiliate-C51nzKsw.d.ts +0 -73
  115. package/dist/apollo/index.cjs +0 -1383
  116. package/dist/apollo/index.cjs.map +0 -1
  117. package/dist/apollo/index.d.mts +0 -323
  118. package/dist/apollo/index.d.ts +0 -323
  119. package/dist/apollo/index.mjs +0 -1295
  120. package/dist/apollo/index.mjs.map +0 -1
  121. package/dist/auth/index.cjs +0 -1727
  122. package/dist/auth/index.cjs.map +0 -1
  123. package/dist/auth/index.d.mts +0 -166
  124. package/dist/auth/index.d.ts +0 -166
  125. package/dist/auth/index.mjs +0 -380
  126. package/dist/auth/index.mjs.map +0 -1
  127. package/dist/chunk-32MKHJTX.mjs +0 -1207
  128. package/dist/chunk-32MKHJTX.mjs.map +0 -1
  129. package/dist/chunk-AYO3E4DM.mjs.map +0 -1
  130. package/dist/chunk-BIJ5NDXW.mjs.map +0 -1
  131. package/dist/chunk-DQ7ZHIXW.mjs +0 -26
  132. package/dist/chunk-DQ7ZHIXW.mjs.map +0 -1
  133. package/dist/chunk-ILILH7E2.mjs.map +0 -1
  134. package/dist/chunk-R6PCFOYO.mjs.map +0 -1
  135. package/dist/chunk-RAYUJODN.mjs +0 -45
  136. package/dist/chunk-RAYUJODN.mjs.map +0 -1
  137. package/dist/chunk-SD42WIMV.mjs +0 -297
  138. package/dist/chunk-SD42WIMV.mjs.map +0 -1
  139. package/dist/chunk-VPANTTZI.mjs +0 -262
  140. package/dist/chunk-VPANTTZI.mjs.map +0 -1
  141. package/dist/chunk-X3OLM35T.mjs.map +0 -1
  142. package/dist/subscription-BU8GvH2K.d.ts +0 -12
  143. package/dist/subscription-bmAdrnfi.d.mts +0 -12
  144. package/dist/user-D47MLFyH.d.ts +0 -134
  145. package/dist/user-DE8edl3u.d.mts +0 -134
@@ -0,0 +1,296 @@
1
+ import { EnumOSPlatform, EnumUserRole, EnumReward, EnumSubscriptionStatus, EnumUserLicence, EnumResourceType, EnumPartnerType } from './enums/index.js';
2
+ import { av as ResourceImageType, L as LocationType, aA as TermsAgreement, A as AssociateType, i as UserLicenceType, ak as PromoCodeType, K as DateTimeType, H as CreateFormData, D as BaseResourceType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, at as ResourceContactDetailsType, aw as SocialMediaType, a6 as OwnerType } from './global-fKbMmluy.js';
3
+ import { PosterAssetId } from './images/index.js';
4
+
5
+ type UserFormData = {
6
+ _id?: string;
7
+ active: boolean;
8
+ avatar?: ResourceImageType | null;
9
+ avatarUpload?: ResourceImageType | null;
10
+ confirmPassword?: string | null;
11
+ email: string;
12
+ firstName: string;
13
+ isTester: boolean;
14
+ lastName: string;
15
+ location?: LocationType | null;
16
+ password?: string | null;
17
+ platform?: EnumOSPlatform;
18
+ preferredRegion: string;
19
+ role: EnumUserRole;
20
+ termsAgreement?: TermsAgreement | null;
21
+ };
22
+ type CreateUserFormData = CreateFormData<UserFormData>;
23
+ type UserActivityEvent = {
24
+ resourceId: string;
25
+ dateTime: DateTimeType;
26
+ };
27
+ type StripeSubscription = {
28
+ customerId?: string;
29
+ subscriptionId?: string;
30
+ status?: EnumSubscriptionStatus;
31
+ currentPlan?: EnumUserLicence;
32
+ startDate?: string;
33
+ endDate?: string;
34
+ };
35
+ type SubscriptionStatusData = {
36
+ subscriptionId: string | null;
37
+ status: EnumSubscriptionStatus;
38
+ priceId: string | null;
39
+ currentPlan: EnumUserLicence | null;
40
+ };
41
+ type SubscriptionPricingData = {
42
+ basePrice: number;
43
+ discountedPrice: number | null;
44
+ hasDiscount: boolean;
45
+ discountPercent: number | null;
46
+ discountAmount: number | null;
47
+ currency: string;
48
+ formattedBasePrice: string;
49
+ formattedDiscountedPrice: string | null;
50
+ };
51
+ type SubscriptionPlanData = {
52
+ name: string;
53
+ description: string | null;
54
+ licenceType: EnumUserLicence;
55
+ billingPeriod: string;
56
+ stripeProductId: string;
57
+ stripePriceId: string;
58
+ isEligibleForDiscount: boolean;
59
+ pricing: SubscriptionPricingData;
60
+ };
61
+ type SubscriptionPlansResponse = {
62
+ plans: SubscriptionPlanData[];
63
+ isNewUser: boolean;
64
+ isTester: boolean;
65
+ appliedDiscountType: string;
66
+ };
67
+ type UserActivity = {
68
+ favourites: {
69
+ events: string[];
70
+ vendors: string[];
71
+ partners: string[];
72
+ };
73
+ going: {
74
+ events: UserActivityEvent[];
75
+ };
76
+ interested: {
77
+ events: UserActivityEvent[];
78
+ };
79
+ present: {
80
+ events: UserActivityEvent[];
81
+ };
82
+ };
83
+ type RedeemRewardInput = {
84
+ reward: EnumReward;
85
+ };
86
+ type RedeemRewardResponse = {
87
+ userId: string;
88
+ message: string;
89
+ };
90
+ type RedeemedReward = {
91
+ name: EnumReward;
92
+ pointsUsed: number;
93
+ redeemedAt: Date;
94
+ };
95
+ type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
96
+ _id: string;
97
+ affiliate?: string | null;
98
+ associates?: AssociateType[] | null;
99
+ createdAt: Date;
100
+ deletedAt: Date | null;
101
+ events: string[] | null;
102
+ game: string | null;
103
+ licences: UserLicenceType[] | null;
104
+ overallPoints: number | null;
105
+ partner: string | null;
106
+ promoCodes?: PromoCodeType[] | null;
107
+ redeemedRewards?: RedeemedReward[] | null;
108
+ refreshToken: string | null;
109
+ school: string | null;
110
+ stripe?: StripeSubscription;
111
+ updatedAt: Date | null;
112
+ userActivity: UserActivity | null;
113
+ vendor: string | null;
114
+ };
115
+ type SafeUserType = Omit<UserType, "password" | "refreshToken">;
116
+ type ResourceByUser = {
117
+ _id: string;
118
+ active: boolean;
119
+ logo: string;
120
+ name: string;
121
+ resourceType: EnumResourceType;
122
+ };
123
+
124
+ interface PartnerFormData extends BaseResourceTypeFormData {
125
+ location: LocationType;
126
+ nzbn: string;
127
+ partnerType: EnumPartnerType;
128
+ }
129
+ type CreatePartnerFormData = CreateFormData<PartnerFormData>;
130
+ interface PartnerType extends BaseResourceType {
131
+ location: LocationType;
132
+ nzbn: string;
133
+ partnerType: EnumPartnerType;
134
+ sharePublic?: SocialShareResourceType | null;
135
+ }
136
+
137
+ interface AppSettingsFormData {
138
+ appVersion: string;
139
+ isOfflineMode: boolean;
140
+ }
141
+ type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
142
+ type AppSettingsType = AppSettingsFormData & {
143
+ _id: string;
144
+ activeSchoolsStudentCountTotal: number;
145
+ activeSchoolsStudentCountUpdatedAt: Date;
146
+ createdAt: Date;
147
+ key: string;
148
+ updatedAt: Date | null;
149
+ };
150
+
151
+ interface PosterInputType {
152
+ description: string;
153
+ posterName: PosterAssetId;
154
+ resourceId: string;
155
+ resourceType: EnumResourceType;
156
+ }
157
+
158
+ interface SchoolFormData {
159
+ _id?: string;
160
+ active: boolean;
161
+ contactDetails: ResourceContactDetailsType | null;
162
+ location: LocationType;
163
+ logo?: ResourceImageType | null;
164
+ logoUpload?: ResourceImageType | null;
165
+ name: string;
166
+ region: string;
167
+ studentCount: number;
168
+ socialMedia: SocialMediaType[] | null;
169
+ termsAgreement?: TermsAgreement | null;
170
+ }
171
+ type CreateSchoolFormData = CreateFormData<SchoolFormData>;
172
+ type SchoolCampaignType = {
173
+ endDate: Date;
174
+ name: string;
175
+ startDate: Date;
176
+ };
177
+ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
178
+ _id: string;
179
+ campaigns: SchoolCampaignType[];
180
+ createdAt: Date;
181
+ deletedAt: Date | null;
182
+ overallPoints: number | null;
183
+ owner: OwnerType | null;
184
+ ranking: number | null;
185
+ schoolCode: PromoCodeType;
186
+ updatedAt: Date | null;
187
+ };
188
+ type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
189
+ type SchoolReturnType = {
190
+ school: SchoolType;
191
+ users: SchoolRegisteredUserType[];
192
+ };
193
+ type MarketingMaterialRequestInputType = Pick<PosterInputType, "resourceId" | "posterName">;
194
+
195
+ declare enum EnumVerificationType {
196
+ REGISTER = "register",
197
+ RESET_PASSWORD = "resetPassword"
198
+ }
199
+ type LoginFormData = {
200
+ email: string;
201
+ isAdminPage?: boolean;
202
+ password: string;
203
+ platform?: EnumOSPlatform;
204
+ };
205
+ type CreateLoginFormData = CreateFormData<LoginFormData>;
206
+ type RegisterFormData = {
207
+ email: string;
208
+ firstName: string;
209
+ lastName: string;
210
+ password: string;
211
+ platform?: EnumOSPlatform;
212
+ preferredRegion: string;
213
+ promoCode?: PromoCodeType | null;
214
+ termsAgreement?: TermsAgreement | null;
215
+ };
216
+ type CreateRegisterFormData = CreateFormData<RegisterFormData>;
217
+ type RequestPasswordResetFormData = {
218
+ email: string;
219
+ };
220
+ type CreateRequestPasswordResetFormData = CreateFormData<RequestPasswordResetFormData>;
221
+ type ResetPasswordFormData = {
222
+ confirmPassword: string;
223
+ email: string;
224
+ password: string;
225
+ };
226
+ type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;
227
+ type ValidateVerificationTokenFormData = {
228
+ email: string;
229
+ verificationToken: string;
230
+ verificationType?: EnumVerificationType;
231
+ };
232
+ type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
233
+ type AuthPayloadType = {
234
+ message: string;
235
+ token: string;
236
+ refreshToken: string | null;
237
+ user: SafeUserType;
238
+ };
239
+ type RefreshTokenPayloadType = {
240
+ refreshToken: string;
241
+ token: string;
242
+ };
243
+
244
+ declare enum EnumAdShowOn {
245
+ EVENTS_PAGE = "Events_page",
246
+ FRONT_PAGE = "Front_page",
247
+ PARTNERS_PAGE = "Partners_page",
248
+ VENDORS_PAGE = "Vendors_page"
249
+ }
250
+ declare enum EnumAdStatus {
251
+ ACTIVE = "Active",
252
+ PAUSED = "Paused",
253
+ EXPIRED = "Expired"
254
+ }
255
+ declare enum EnumAdType {
256
+ SPONSORED = "Sponsored",
257
+ FREE = "Free"
258
+ }
259
+ declare enum EnumAdStyle {
260
+ BLOOM = "Bloom",
261
+ RISE = "Rise"
262
+ }
263
+ type AdResource = {
264
+ adDescription: string;
265
+ adImage: string;
266
+ adStyle: EnumAdStyle;
267
+ adTitle: string;
268
+ adType: EnumAdType;
269
+ resourceId: string;
270
+ resourceName: string;
271
+ resourceRegion: string;
272
+ resourceType: EnumResourceType;
273
+ resourceSlug: string;
274
+ };
275
+ interface AdFormData {
276
+ active: boolean;
277
+ end: Date;
278
+ resource: AdResource;
279
+ showOn: EnumAdShowOn[];
280
+ start?: Date;
281
+ status: EnumAdStatus;
282
+ targetRegion: string[];
283
+ }
284
+ type AdFormState = AdFormData;
285
+ type CreateAdFormData = CreateFormData<AdFormData>;
286
+ type CreateAdFormState = CreateFormData<AdFormState>;
287
+ interface AdType extends AdFormData {
288
+ _id: string;
289
+ clicks?: number;
290
+ createdAt: Date;
291
+ impressions?: number;
292
+ start: Date;
293
+ updatedAt: Date | null;
294
+ }
295
+
296
+ export { type AuthPayloadType as A, EnumAdType as B, type CreateUserFormData as C, EnumVerificationType as D, EnumAdStatus as E, type PosterInputType as F, type RedeemRewardInput as G, type RedeemedReward as H, type RegisterFormData as I, type RequestPasswordResetFormData as J, type ResetPasswordFormData as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type SchoolCampaignType as N, type SchoolRegisteredUserType as O, type PartnerType as P, type StripeSubscription as Q, type RefreshTokenPayloadType as R, type SafeUserType as S, type SubscriptionPlanData as T, type UserFormData as U, type SubscriptionPricingData as V, type UserActivity as W, type UserActivityEvent as X, type UserType as Y, type ValidateVerificationTokenFormData as Z, type RedeemRewardResponse as a, type ResourceByUser as b, type AdType as c, type SubscriptionPlansResponse as d, type SubscriptionStatusData as e, type AppSettingsType as f, type SchoolReturnType as g, type SchoolType as h, type CreateLoginFormData as i, type CreateRegisterFormData as j, type CreateRequestPasswordResetFormData as k, type CreateValidateVerificationTokenFormData as l, type CreateResetPasswordFormData as m, type PartnerFormData as n, type AdFormData as o, type CreateAdFormState as p, type CreatePartnerFormData as q, type AppSettingsFormData as r, type CreateAppSettingsFormData as s, type SchoolFormData as t, type CreateSchoolFormData as u, type AdFormState as v, type AdResource as w, type CreateAdFormData as x, EnumAdShowOn as y, EnumAdStyle as z };
@@ -0,0 +1,296 @@
1
+ import { EnumOSPlatform, EnumUserRole, EnumReward, EnumSubscriptionStatus, EnumUserLicence, EnumResourceType, EnumPartnerType } from './enums/index.mjs';
2
+ import { av as ResourceImageType, L as LocationType, aA as TermsAgreement, A as AssociateType, i as UserLicenceType, ak as PromoCodeType, K as DateTimeType, H as CreateFormData, D as BaseResourceType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, at as ResourceContactDetailsType, aw as SocialMediaType, a6 as OwnerType } from './global-BUUfmCo7.mjs';
3
+ import { PosterAssetId } from './images/index.mjs';
4
+
5
+ type UserFormData = {
6
+ _id?: string;
7
+ active: boolean;
8
+ avatar?: ResourceImageType | null;
9
+ avatarUpload?: ResourceImageType | null;
10
+ confirmPassword?: string | null;
11
+ email: string;
12
+ firstName: string;
13
+ isTester: boolean;
14
+ lastName: string;
15
+ location?: LocationType | null;
16
+ password?: string | null;
17
+ platform?: EnumOSPlatform;
18
+ preferredRegion: string;
19
+ role: EnumUserRole;
20
+ termsAgreement?: TermsAgreement | null;
21
+ };
22
+ type CreateUserFormData = CreateFormData<UserFormData>;
23
+ type UserActivityEvent = {
24
+ resourceId: string;
25
+ dateTime: DateTimeType;
26
+ };
27
+ type StripeSubscription = {
28
+ customerId?: string;
29
+ subscriptionId?: string;
30
+ status?: EnumSubscriptionStatus;
31
+ currentPlan?: EnumUserLicence;
32
+ startDate?: string;
33
+ endDate?: string;
34
+ };
35
+ type SubscriptionStatusData = {
36
+ subscriptionId: string | null;
37
+ status: EnumSubscriptionStatus;
38
+ priceId: string | null;
39
+ currentPlan: EnumUserLicence | null;
40
+ };
41
+ type SubscriptionPricingData = {
42
+ basePrice: number;
43
+ discountedPrice: number | null;
44
+ hasDiscount: boolean;
45
+ discountPercent: number | null;
46
+ discountAmount: number | null;
47
+ currency: string;
48
+ formattedBasePrice: string;
49
+ formattedDiscountedPrice: string | null;
50
+ };
51
+ type SubscriptionPlanData = {
52
+ name: string;
53
+ description: string | null;
54
+ licenceType: EnumUserLicence;
55
+ billingPeriod: string;
56
+ stripeProductId: string;
57
+ stripePriceId: string;
58
+ isEligibleForDiscount: boolean;
59
+ pricing: SubscriptionPricingData;
60
+ };
61
+ type SubscriptionPlansResponse = {
62
+ plans: SubscriptionPlanData[];
63
+ isNewUser: boolean;
64
+ isTester: boolean;
65
+ appliedDiscountType: string;
66
+ };
67
+ type UserActivity = {
68
+ favourites: {
69
+ events: string[];
70
+ vendors: string[];
71
+ partners: string[];
72
+ };
73
+ going: {
74
+ events: UserActivityEvent[];
75
+ };
76
+ interested: {
77
+ events: UserActivityEvent[];
78
+ };
79
+ present: {
80
+ events: UserActivityEvent[];
81
+ };
82
+ };
83
+ type RedeemRewardInput = {
84
+ reward: EnumReward;
85
+ };
86
+ type RedeemRewardResponse = {
87
+ userId: string;
88
+ message: string;
89
+ };
90
+ type RedeemedReward = {
91
+ name: EnumReward;
92
+ pointsUsed: number;
93
+ redeemedAt: Date;
94
+ };
95
+ type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
96
+ _id: string;
97
+ affiliate?: string | null;
98
+ associates?: AssociateType[] | null;
99
+ createdAt: Date;
100
+ deletedAt: Date | null;
101
+ events: string[] | null;
102
+ game: string | null;
103
+ licences: UserLicenceType[] | null;
104
+ overallPoints: number | null;
105
+ partner: string | null;
106
+ promoCodes?: PromoCodeType[] | null;
107
+ redeemedRewards?: RedeemedReward[] | null;
108
+ refreshToken: string | null;
109
+ school: string | null;
110
+ stripe?: StripeSubscription;
111
+ updatedAt: Date | null;
112
+ userActivity: UserActivity | null;
113
+ vendor: string | null;
114
+ };
115
+ type SafeUserType = Omit<UserType, "password" | "refreshToken">;
116
+ type ResourceByUser = {
117
+ _id: string;
118
+ active: boolean;
119
+ logo: string;
120
+ name: string;
121
+ resourceType: EnumResourceType;
122
+ };
123
+
124
+ interface PartnerFormData extends BaseResourceTypeFormData {
125
+ location: LocationType;
126
+ nzbn: string;
127
+ partnerType: EnumPartnerType;
128
+ }
129
+ type CreatePartnerFormData = CreateFormData<PartnerFormData>;
130
+ interface PartnerType extends BaseResourceType {
131
+ location: LocationType;
132
+ nzbn: string;
133
+ partnerType: EnumPartnerType;
134
+ sharePublic?: SocialShareResourceType | null;
135
+ }
136
+
137
+ interface AppSettingsFormData {
138
+ appVersion: string;
139
+ isOfflineMode: boolean;
140
+ }
141
+ type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
142
+ type AppSettingsType = AppSettingsFormData & {
143
+ _id: string;
144
+ activeSchoolsStudentCountTotal: number;
145
+ activeSchoolsStudentCountUpdatedAt: Date;
146
+ createdAt: Date;
147
+ key: string;
148
+ updatedAt: Date | null;
149
+ };
150
+
151
+ interface PosterInputType {
152
+ description: string;
153
+ posterName: PosterAssetId;
154
+ resourceId: string;
155
+ resourceType: EnumResourceType;
156
+ }
157
+
158
+ interface SchoolFormData {
159
+ _id?: string;
160
+ active: boolean;
161
+ contactDetails: ResourceContactDetailsType | null;
162
+ location: LocationType;
163
+ logo?: ResourceImageType | null;
164
+ logoUpload?: ResourceImageType | null;
165
+ name: string;
166
+ region: string;
167
+ studentCount: number;
168
+ socialMedia: SocialMediaType[] | null;
169
+ termsAgreement?: TermsAgreement | null;
170
+ }
171
+ type CreateSchoolFormData = CreateFormData<SchoolFormData>;
172
+ type SchoolCampaignType = {
173
+ endDate: Date;
174
+ name: string;
175
+ startDate: Date;
176
+ };
177
+ type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
178
+ _id: string;
179
+ campaigns: SchoolCampaignType[];
180
+ createdAt: Date;
181
+ deletedAt: Date | null;
182
+ overallPoints: number | null;
183
+ owner: OwnerType | null;
184
+ ranking: number | null;
185
+ schoolCode: PromoCodeType;
186
+ updatedAt: Date | null;
187
+ };
188
+ type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
189
+ type SchoolReturnType = {
190
+ school: SchoolType;
191
+ users: SchoolRegisteredUserType[];
192
+ };
193
+ type MarketingMaterialRequestInputType = Pick<PosterInputType, "resourceId" | "posterName">;
194
+
195
+ declare enum EnumVerificationType {
196
+ REGISTER = "register",
197
+ RESET_PASSWORD = "resetPassword"
198
+ }
199
+ type LoginFormData = {
200
+ email: string;
201
+ isAdminPage?: boolean;
202
+ password: string;
203
+ platform?: EnumOSPlatform;
204
+ };
205
+ type CreateLoginFormData = CreateFormData<LoginFormData>;
206
+ type RegisterFormData = {
207
+ email: string;
208
+ firstName: string;
209
+ lastName: string;
210
+ password: string;
211
+ platform?: EnumOSPlatform;
212
+ preferredRegion: string;
213
+ promoCode?: PromoCodeType | null;
214
+ termsAgreement?: TermsAgreement | null;
215
+ };
216
+ type CreateRegisterFormData = CreateFormData<RegisterFormData>;
217
+ type RequestPasswordResetFormData = {
218
+ email: string;
219
+ };
220
+ type CreateRequestPasswordResetFormData = CreateFormData<RequestPasswordResetFormData>;
221
+ type ResetPasswordFormData = {
222
+ confirmPassword: string;
223
+ email: string;
224
+ password: string;
225
+ };
226
+ type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;
227
+ type ValidateVerificationTokenFormData = {
228
+ email: string;
229
+ verificationToken: string;
230
+ verificationType?: EnumVerificationType;
231
+ };
232
+ type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
233
+ type AuthPayloadType = {
234
+ message: string;
235
+ token: string;
236
+ refreshToken: string | null;
237
+ user: SafeUserType;
238
+ };
239
+ type RefreshTokenPayloadType = {
240
+ refreshToken: string;
241
+ token: string;
242
+ };
243
+
244
+ declare enum EnumAdShowOn {
245
+ EVENTS_PAGE = "Events_page",
246
+ FRONT_PAGE = "Front_page",
247
+ PARTNERS_PAGE = "Partners_page",
248
+ VENDORS_PAGE = "Vendors_page"
249
+ }
250
+ declare enum EnumAdStatus {
251
+ ACTIVE = "Active",
252
+ PAUSED = "Paused",
253
+ EXPIRED = "Expired"
254
+ }
255
+ declare enum EnumAdType {
256
+ SPONSORED = "Sponsored",
257
+ FREE = "Free"
258
+ }
259
+ declare enum EnumAdStyle {
260
+ BLOOM = "Bloom",
261
+ RISE = "Rise"
262
+ }
263
+ type AdResource = {
264
+ adDescription: string;
265
+ adImage: string;
266
+ adStyle: EnumAdStyle;
267
+ adTitle: string;
268
+ adType: EnumAdType;
269
+ resourceId: string;
270
+ resourceName: string;
271
+ resourceRegion: string;
272
+ resourceType: EnumResourceType;
273
+ resourceSlug: string;
274
+ };
275
+ interface AdFormData {
276
+ active: boolean;
277
+ end: Date;
278
+ resource: AdResource;
279
+ showOn: EnumAdShowOn[];
280
+ start?: Date;
281
+ status: EnumAdStatus;
282
+ targetRegion: string[];
283
+ }
284
+ type AdFormState = AdFormData;
285
+ type CreateAdFormData = CreateFormData<AdFormData>;
286
+ type CreateAdFormState = CreateFormData<AdFormState>;
287
+ interface AdType extends AdFormData {
288
+ _id: string;
289
+ clicks?: number;
290
+ createdAt: Date;
291
+ impressions?: number;
292
+ start: Date;
293
+ updatedAt: Date | null;
294
+ }
295
+
296
+ export { type AuthPayloadType as A, EnumAdType as B, type CreateUserFormData as C, EnumVerificationType as D, EnumAdStatus as E, type PosterInputType as F, type RedeemRewardInput as G, type RedeemedReward as H, type RegisterFormData as I, type RequestPasswordResetFormData as J, type ResetPasswordFormData as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type SchoolCampaignType as N, type SchoolRegisteredUserType as O, type PartnerType as P, type StripeSubscription as Q, type RefreshTokenPayloadType as R, type SafeUserType as S, type SubscriptionPlanData as T, type UserFormData as U, type SubscriptionPricingData as V, type UserActivity as W, type UserActivityEvent as X, type UserType as Y, type ValidateVerificationTokenFormData as Z, type RedeemRewardResponse as a, type ResourceByUser as b, type AdType as c, type SubscriptionPlansResponse as d, type SubscriptionStatusData as e, type AppSettingsType as f, type SchoolReturnType as g, type SchoolType as h, type CreateLoginFormData as i, type CreateRegisterFormData as j, type CreateRequestPasswordResetFormData as k, type CreateValidateVerificationTokenFormData as l, type CreateResetPasswordFormData as m, type PartnerFormData as n, type AdFormData as o, type CreateAdFormState as p, type CreatePartnerFormData as q, type AppSettingsFormData as r, type CreateAppSettingsFormData as s, type SchoolFormData as t, type CreateSchoolFormData as u, type AdFormState as v, type AdResource as w, type CreateAdFormData as x, EnumAdShowOn as y, EnumAdStyle as z };
@@ -0,0 +1,35 @@
1
+ import { EnumResourceType } from './enums/index.js';
2
+ import { ak as PromoCodeType, a6 as OwnerType } from './global-fKbMmluy.js';
3
+
4
+ declare enum EnumAffiliateRewardType {
5
+ NEW_EVENT_REGISTRATION = "NEW_EVENT_REGISTRATION",
6
+ NEW_VENDOR_REGISTRATION = "NEW_VENDOR_REGISTRATION",
7
+ NEW_PARTNER_REGISTRATION = "NEW_PARTNER_REGISTRATION"
8
+ }
9
+ type AffiliateReward = {
10
+ createdAt: Date;
11
+ deletedAt: Date | null;
12
+ redeemedAt: Date | null;
13
+ rewardDescription: string;
14
+ rewardType: EnumAffiliateRewardType;
15
+ rewardValue: number;
16
+ updatedAt: Date | null;
17
+ };
18
+ type AffiliateResourceType = {
19
+ resourceActive: boolean;
20
+ resourceId: string;
21
+ resourceType: EnumResourceType;
22
+ rewards: AffiliateReward[];
23
+ };
24
+ type AffiliateType = {
25
+ _id: string;
26
+ affiliateCode: PromoCodeType;
27
+ affiliateResources: AffiliateResourceType[];
28
+ createdAt: Date;
29
+ deletedAt: Date | null;
30
+ overallPoints: number;
31
+ owner: OwnerType;
32
+ updatedAt: Date | null;
33
+ };
34
+
35
+ export { type AffiliateType as A, EnumAffiliateRewardType as E, type AffiliateResourceType as a, type AffiliateReward as b };
@@ -0,0 +1,35 @@
1
+ import { EnumResourceType } from './enums/index.mjs';
2
+ import { ak as PromoCodeType, a6 as OwnerType } from './global-BUUfmCo7.mjs';
3
+
4
+ declare enum EnumAffiliateRewardType {
5
+ NEW_EVENT_REGISTRATION = "NEW_EVENT_REGISTRATION",
6
+ NEW_VENDOR_REGISTRATION = "NEW_VENDOR_REGISTRATION",
7
+ NEW_PARTNER_REGISTRATION = "NEW_PARTNER_REGISTRATION"
8
+ }
9
+ type AffiliateReward = {
10
+ createdAt: Date;
11
+ deletedAt: Date | null;
12
+ redeemedAt: Date | null;
13
+ rewardDescription: string;
14
+ rewardType: EnumAffiliateRewardType;
15
+ rewardValue: number;
16
+ updatedAt: Date | null;
17
+ };
18
+ type AffiliateResourceType = {
19
+ resourceActive: boolean;
20
+ resourceId: string;
21
+ resourceType: EnumResourceType;
22
+ rewards: AffiliateReward[];
23
+ };
24
+ type AffiliateType = {
25
+ _id: string;
26
+ affiliateCode: PromoCodeType;
27
+ affiliateResources: AffiliateResourceType[];
28
+ createdAt: Date;
29
+ deletedAt: Date | null;
30
+ overallPoints: number;
31
+ owner: OwnerType;
32
+ updatedAt: Date | null;
33
+ };
34
+
35
+ export { type AffiliateType as A, EnumAffiliateRewardType as E, type AffiliateResourceType as a, type AffiliateReward as b };