@timardex/cluemart-shared 1.7.0 → 1.7.2

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-BUYzE6zx.d.ts +181 -0
  2. package/dist/ad-BhLoEul3.d.mts +181 -0
  3. package/dist/affiliate-BbtjeUP4.d.mts +73 -0
  4. package/dist/affiliate-C51nzKsw.d.ts +73 -0
  5. package/dist/apollo/index.cjs +1383 -0
  6. package/dist/apollo/index.cjs.map +1 -0
  7. package/dist/apollo/index.d.mts +323 -0
  8. package/dist/apollo/index.d.ts +323 -0
  9. package/dist/apollo/index.mjs +1295 -0
  10. package/dist/apollo/index.mjs.map +1 -0
  11. package/dist/auth/index.cjs +1727 -0
  12. package/dist/auth/index.cjs.map +1 -0
  13. package/dist/auth/index.d.mts +166 -0
  14. package/dist/auth/index.d.ts +166 -0
  15. package/dist/auth/index.mjs +380 -0
  16. package/dist/auth/index.mjs.map +1 -0
  17. package/dist/chunk-32MKHJTX.mjs +1207 -0
  18. package/dist/chunk-32MKHJTX.mjs.map +1 -0
  19. package/dist/{chunk-HZMP7GXC.mjs → chunk-447EYKHL.mjs} +1010 -2671
  20. package/dist/chunk-447EYKHL.mjs.map +1 -0
  21. package/dist/{chunk-RKIRWZCH.mjs → chunk-AYO3E4DM.mjs} +39 -183
  22. package/dist/chunk-AYO3E4DM.mjs.map +1 -0
  23. package/dist/{chunk-ZZJSCYJK.mjs → chunk-BIJ5NDXW.mjs} +46 -42
  24. package/dist/chunk-BIJ5NDXW.mjs.map +1 -0
  25. package/dist/chunk-DQ7ZHIXW.mjs +26 -0
  26. package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
  27. package/dist/{chunk-MVQ3CFQR.mjs → chunk-ILILH7E2.mjs} +12 -23
  28. package/dist/chunk-ILILH7E2.mjs.map +1 -0
  29. package/dist/{chunk-TAECMXM4.mjs → chunk-LBEJECG3.mjs} +249 -219
  30. package/dist/{chunk-TAECMXM4.mjs.map → chunk-LBEJECG3.mjs.map} +1 -1
  31. package/dist/chunk-RAYUJODN.mjs +45 -0
  32. package/dist/chunk-RAYUJODN.mjs.map +1 -0
  33. package/dist/chunk-SD42WIMV.mjs +297 -0
  34. package/dist/chunk-SD42WIMV.mjs.map +1 -0
  35. package/dist/chunk-VPANTTZI.mjs +262 -0
  36. package/dist/chunk-VPANTTZI.mjs.map +1 -0
  37. package/dist/{chunk-KZTOISPA.mjs → chunk-X3OLM35T.mjs} +14 -8
  38. package/dist/chunk-X3OLM35T.mjs.map +1 -0
  39. package/dist/{contactUs-H7799pWe.d.ts → contactUs--NoohZBu.d.ts} +1 -1
  40. package/dist/{contactUs-DGrDzJaM.d.mts → contactUs-CBWzefUS.d.mts} +1 -1
  41. package/dist/enums/index.cjs +13 -7
  42. package/dist/enums/index.cjs.map +1 -1
  43. package/dist/enums/index.d.mts +15 -9
  44. package/dist/enums/index.d.ts +15 -9
  45. package/dist/enums/index.mjs +1 -1
  46. package/dist/formFields/index.cjs +136 -73
  47. package/dist/formFields/index.cjs.map +1 -1
  48. package/dist/formFields/index.d.mts +3 -2
  49. package/dist/formFields/index.d.ts +3 -2
  50. package/dist/formFields/index.mjs +9 -4
  51. package/dist/{global-fKbMmluy.d.ts → global-CUYYxpy2.d.ts} +12 -11
  52. package/dist/{global-BUUfmCo7.d.mts → global-DePDtOFt.d.mts} +12 -11
  53. package/dist/graphql/index.cjs +734 -1271
  54. package/dist/graphql/index.cjs.map +1 -1
  55. package/dist/graphql/index.d.mts +434 -176
  56. package/dist/graphql/index.d.ts +434 -176
  57. package/dist/graphql/index.mjs +37 -23
  58. package/dist/hooks/index.cjs +947 -309
  59. package/dist/hooks/index.cjs.map +1 -1
  60. package/dist/hooks/index.d.mts +10 -4
  61. package/dist/hooks/index.d.ts +10 -4
  62. package/dist/hooks/index.mjs +170 -58
  63. package/dist/hooks/index.mjs.map +1 -1
  64. package/dist/images/apple-maps-icon.webp.d.ts +8 -1
  65. package/dist/images/banner-horizontal.webp.d.ts +8 -1
  66. package/dist/images/banner-vertical.webp.d.ts +8 -1
  67. package/dist/images/cluiTui.webp.d.ts +8 -1
  68. package/dist/images/corporate.webp.d.ts +8 -1
  69. package/dist/images/facebook.webp.d.ts +8 -1
  70. package/dist/images/gazebo-top.webp.d.ts +8 -1
  71. package/dist/images/google-maps-icon.webp.d.ts +8 -1
  72. package/dist/images/googleMaps-logo-dark.webp.d.ts +8 -1
  73. package/dist/images/googleMaps-logo-light.webp.d.ts +8 -1
  74. package/dist/images/instagram.webp.d.ts +8 -1
  75. package/dist/images/logo-atr.webp.d.ts +8 -1
  76. package/dist/images/logo-dark.webp.d.ts +8 -1
  77. package/dist/images/logo.webp.d.ts +8 -1
  78. package/dist/images/meet.webp.d.ts +8 -1
  79. package/dist/images/mini-market1.webp.d.ts +8 -1
  80. package/dist/images/mini-market2.webp.d.ts +8 -1
  81. package/dist/images/mini-market3.webp.d.ts +8 -1
  82. package/dist/images/mini-market4.webp.d.ts +8 -1
  83. package/dist/images/mini-market5.webp.d.ts +8 -1
  84. package/dist/images/poll.webp.d.ts +8 -1
  85. package/dist/images/poster1.webp.d.ts +8 -1
  86. package/dist/images/poster2.webp.d.ts +8 -1
  87. package/dist/images/poster3.webp.d.ts +8 -1
  88. package/dist/images/poster4.webp.d.ts +8 -1
  89. package/dist/images/private.webp.d.ts +8 -1
  90. package/dist/images/qr-code.webp.d.ts +8 -1
  91. package/dist/images/school.webp.d.ts +8 -1
  92. package/dist/images/sima.webp.d.ts +8 -1
  93. package/dist/images/store-android.webp.d.ts +8 -1
  94. package/dist/images/store-ios.webp.d.ts +8 -1
  95. package/dist/images/tablas.webp.d.ts +8 -1
  96. package/dist/images/telefonos.webp.d.ts +8 -1
  97. package/dist/images/tiktok.webp.d.ts +8 -1
  98. package/dist/images/tip.webp.d.ts +8 -1
  99. package/dist/images/ugralos.webp.d.ts +8 -1
  100. package/dist/images/waze-maps-icon.webp.d.ts +8 -1
  101. package/dist/images/website.webp.d.ts +8 -1
  102. package/dist/images/youtube.webp.d.ts +8 -1
  103. package/dist/index.cjs +1751 -1781
  104. package/dist/index.cjs.map +1 -1
  105. package/dist/index.d.mts +665 -243
  106. package/dist/index.d.ts +665 -243
  107. package/dist/index.mjs +1711 -1779
  108. package/dist/index.mjs.map +1 -1
  109. package/dist/map/index.cjs +14 -9
  110. package/dist/map/index.cjs.map +1 -1
  111. package/dist/map/index.d.mts +16 -13
  112. package/dist/map/index.d.ts +16 -13
  113. package/dist/map/index.mjs +14 -9
  114. package/dist/map/index.mjs.map +1 -1
  115. package/dist/{resourceActivities-BL_12IAo.d.ts → resourceActivities-CMUcn2P7.d.ts} +9 -4
  116. package/dist/{resourceActivities-zczOntNk.d.mts → resourceActivities-CwbJFGIp.d.mts} +9 -4
  117. package/dist/sharing/index.cjs +39 -1252
  118. package/dist/sharing/index.cjs.map +1 -1
  119. package/dist/sharing/index.d.mts +17 -5
  120. package/dist/sharing/index.d.ts +17 -5
  121. package/dist/sharing/index.mjs +34 -30
  122. package/dist/subscription-BU8GvH2K.d.ts +12 -0
  123. package/dist/subscription-bmAdrnfi.d.mts +12 -0
  124. package/dist/types/index.cjs +15 -2
  125. package/dist/types/index.cjs.map +1 -1
  126. package/dist/types/index.d.mts +10 -23
  127. package/dist/types/index.d.ts +10 -23
  128. package/dist/types/index.mjs +9 -5
  129. package/dist/user-D47MLFyH.d.ts +134 -0
  130. package/dist/user-DE8edl3u.d.mts +134 -0
  131. package/dist/utils/index.cjs +355 -136
  132. package/dist/utils/index.cjs.map +1 -1
  133. package/dist/utils/index.d.mts +87 -35
  134. package/dist/utils/index.d.ts +87 -35
  135. package/dist/utils/index.mjs +42 -15
  136. package/package.json +31 -10
  137. package/dist/ad-CVkVX_z5.d.ts +0 -296
  138. package/dist/ad-DA9ECAhK.d.mts +0 -296
  139. package/dist/affiliate-1RtkLnLP.d.ts +0 -35
  140. package/dist/affiliate-Cos2Syz5.d.mts +0 -35
  141. package/dist/chunk-HZMP7GXC.mjs.map +0 -1
  142. package/dist/chunk-KZTOISPA.mjs.map +0 -1
  143. package/dist/chunk-MVQ3CFQR.mjs.map +0 -1
  144. package/dist/chunk-RKIRWZCH.mjs.map +0 -1
  145. package/dist/chunk-ZZJSCYJK.mjs.map +0 -1
@@ -1,296 +0,0 @@
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 };
@@ -1,296 +0,0 @@
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 };
@@ -1,35 +0,0 @@
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 };
@@ -1,35 +0,0 @@
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 };