@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.
- package/dist/ad-BUYzE6zx.d.ts +181 -0
- package/dist/ad-BhLoEul3.d.mts +181 -0
- package/dist/affiliate-BbtjeUP4.d.mts +73 -0
- package/dist/affiliate-C51nzKsw.d.ts +73 -0
- package/dist/apollo/index.cjs +1383 -0
- package/dist/apollo/index.cjs.map +1 -0
- package/dist/apollo/index.d.mts +323 -0
- package/dist/apollo/index.d.ts +323 -0
- package/dist/apollo/index.mjs +1295 -0
- package/dist/apollo/index.mjs.map +1 -0
- package/dist/auth/index.cjs +1727 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.mts +166 -0
- package/dist/auth/index.d.ts +166 -0
- package/dist/auth/index.mjs +380 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/chunk-32MKHJTX.mjs +1207 -0
- package/dist/chunk-32MKHJTX.mjs.map +1 -0
- package/dist/{chunk-HZMP7GXC.mjs → chunk-447EYKHL.mjs} +1010 -2671
- package/dist/chunk-447EYKHL.mjs.map +1 -0
- package/dist/{chunk-RKIRWZCH.mjs → chunk-AYO3E4DM.mjs} +39 -183
- package/dist/chunk-AYO3E4DM.mjs.map +1 -0
- package/dist/{chunk-ZZJSCYJK.mjs → chunk-BIJ5NDXW.mjs} +46 -42
- package/dist/chunk-BIJ5NDXW.mjs.map +1 -0
- package/dist/chunk-DQ7ZHIXW.mjs +26 -0
- package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
- package/dist/{chunk-MVQ3CFQR.mjs → chunk-ILILH7E2.mjs} +12 -23
- package/dist/chunk-ILILH7E2.mjs.map +1 -0
- package/dist/{chunk-TAECMXM4.mjs → chunk-LBEJECG3.mjs} +249 -219
- package/dist/{chunk-TAECMXM4.mjs.map → chunk-LBEJECG3.mjs.map} +1 -1
- package/dist/chunk-RAYUJODN.mjs +45 -0
- package/dist/chunk-RAYUJODN.mjs.map +1 -0
- package/dist/chunk-SD42WIMV.mjs +297 -0
- package/dist/chunk-SD42WIMV.mjs.map +1 -0
- package/dist/chunk-VPANTTZI.mjs +262 -0
- package/dist/chunk-VPANTTZI.mjs.map +1 -0
- package/dist/{chunk-KZTOISPA.mjs → chunk-X3OLM35T.mjs} +14 -8
- package/dist/chunk-X3OLM35T.mjs.map +1 -0
- package/dist/{contactUs-H7799pWe.d.ts → contactUs--NoohZBu.d.ts} +1 -1
- package/dist/{contactUs-DGrDzJaM.d.mts → contactUs-CBWzefUS.d.mts} +1 -1
- package/dist/enums/index.cjs +13 -7
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +15 -9
- package/dist/enums/index.d.ts +15 -9
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs +136 -73
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -2
- package/dist/formFields/index.d.ts +3 -2
- package/dist/formFields/index.mjs +9 -4
- package/dist/{global-fKbMmluy.d.ts → global-CUYYxpy2.d.ts} +12 -11
- package/dist/{global-BUUfmCo7.d.mts → global-DePDtOFt.d.mts} +12 -11
- package/dist/graphql/index.cjs +734 -1271
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +434 -176
- package/dist/graphql/index.d.ts +434 -176
- package/dist/graphql/index.mjs +37 -23
- package/dist/hooks/index.cjs +947 -309
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +10 -4
- package/dist/hooks/index.d.ts +10 -4
- package/dist/hooks/index.mjs +170 -58
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/apple-maps-icon.webp.d.ts +8 -1
- package/dist/images/banner-horizontal.webp.d.ts +8 -1
- package/dist/images/banner-vertical.webp.d.ts +8 -1
- package/dist/images/cluiTui.webp.d.ts +8 -1
- package/dist/images/corporate.webp.d.ts +8 -1
- package/dist/images/facebook.webp.d.ts +8 -1
- package/dist/images/gazebo-top.webp.d.ts +8 -1
- package/dist/images/google-maps-icon.webp.d.ts +8 -1
- package/dist/images/googleMaps-logo-dark.webp.d.ts +8 -1
- package/dist/images/googleMaps-logo-light.webp.d.ts +8 -1
- package/dist/images/instagram.webp.d.ts +8 -1
- package/dist/images/logo-atr.webp.d.ts +8 -1
- package/dist/images/logo-dark.webp.d.ts +8 -1
- package/dist/images/logo.webp.d.ts +8 -1
- package/dist/images/meet.webp.d.ts +8 -1
- package/dist/images/mini-market1.webp.d.ts +8 -1
- package/dist/images/mini-market2.webp.d.ts +8 -1
- package/dist/images/mini-market3.webp.d.ts +8 -1
- package/dist/images/mini-market4.webp.d.ts +8 -1
- package/dist/images/mini-market5.webp.d.ts +8 -1
- package/dist/images/poll.webp.d.ts +8 -1
- package/dist/images/poster1.webp.d.ts +8 -1
- package/dist/images/poster2.webp.d.ts +8 -1
- package/dist/images/poster3.webp.d.ts +8 -1
- package/dist/images/poster4.webp.d.ts +8 -1
- package/dist/images/private.webp.d.ts +8 -1
- package/dist/images/qr-code.webp.d.ts +8 -1
- package/dist/images/school.webp.d.ts +8 -1
- package/dist/images/sima.webp.d.ts +8 -1
- package/dist/images/store-android.webp.d.ts +8 -1
- package/dist/images/store-ios.webp.d.ts +8 -1
- package/dist/images/tablas.webp.d.ts +8 -1
- package/dist/images/telefonos.webp.d.ts +8 -1
- package/dist/images/tiktok.webp.d.ts +8 -1
- package/dist/images/tip.webp.d.ts +8 -1
- package/dist/images/ugralos.webp.d.ts +8 -1
- package/dist/images/waze-maps-icon.webp.d.ts +8 -1
- package/dist/images/website.webp.d.ts +8 -1
- package/dist/images/youtube.webp.d.ts +8 -1
- package/dist/index.cjs +1751 -1781
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +665 -243
- package/dist/index.d.ts +665 -243
- package/dist/index.mjs +1711 -1779
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.cjs +14 -9
- package/dist/map/index.cjs.map +1 -1
- package/dist/map/index.d.mts +16 -13
- package/dist/map/index.d.ts +16 -13
- package/dist/map/index.mjs +14 -9
- package/dist/map/index.mjs.map +1 -1
- package/dist/{resourceActivities-BL_12IAo.d.ts → resourceActivities-CMUcn2P7.d.ts} +9 -4
- package/dist/{resourceActivities-zczOntNk.d.mts → resourceActivities-CwbJFGIp.d.mts} +9 -4
- package/dist/sharing/index.cjs +39 -1252
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +17 -5
- package/dist/sharing/index.d.ts +17 -5
- package/dist/sharing/index.mjs +34 -30
- package/dist/subscription-BU8GvH2K.d.ts +12 -0
- package/dist/subscription-bmAdrnfi.d.mts +12 -0
- package/dist/types/index.cjs +15 -2
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +10 -23
- package/dist/types/index.d.ts +10 -23
- package/dist/types/index.mjs +9 -5
- package/dist/user-D47MLFyH.d.ts +134 -0
- package/dist/user-DE8edl3u.d.mts +134 -0
- package/dist/utils/index.cjs +355 -136
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +87 -35
- package/dist/utils/index.d.ts +87 -35
- package/dist/utils/index.mjs +42 -15
- package/package.json +31 -10
- package/dist/ad-CVkVX_z5.d.ts +0 -296
- package/dist/ad-DA9ECAhK.d.mts +0 -296
- package/dist/affiliate-1RtkLnLP.d.ts +0 -35
- package/dist/affiliate-Cos2Syz5.d.mts +0 -35
- package/dist/chunk-HZMP7GXC.mjs.map +0 -1
- package/dist/chunk-KZTOISPA.mjs.map +0 -1
- package/dist/chunk-MVQ3CFQR.mjs.map +0 -1
- package/dist/chunk-RKIRWZCH.mjs.map +0 -1
- package/dist/chunk-ZZJSCYJK.mjs.map +0 -1
package/dist/sharing/index.mjs
CHANGED
|
@@ -1,8 +1,34 @@
|
|
|
1
|
+
import {
|
|
2
|
+
PUBLIC_SHARE_PATH_TYPES,
|
|
3
|
+
SHARE_TYPE_PATH_REGEX,
|
|
4
|
+
buildApplicationShareDescription,
|
|
5
|
+
buildInvitationShareDescription,
|
|
6
|
+
buildPublicEventShareDescription,
|
|
7
|
+
buildPublicVendorShareDescription,
|
|
8
|
+
buildSharePagePath,
|
|
9
|
+
buildShareUrl,
|
|
10
|
+
formatCategoryLabel,
|
|
11
|
+
formatShareApplicationCategoriesSection,
|
|
12
|
+
formatShareApplicationComplianceSection,
|
|
13
|
+
formatShareApplicationPriceRangeLine,
|
|
14
|
+
formatShareApplicationStallSizeLine,
|
|
15
|
+
formatShareInvitationApplicationDeadlineLine,
|
|
16
|
+
formatShareInvitationMarketDatesSection,
|
|
17
|
+
formatShareInvitationRequirementsSection,
|
|
18
|
+
formatShareIsFoodTrueLine,
|
|
19
|
+
formatShareMarketDate,
|
|
20
|
+
formatShareRainOrShineLine,
|
|
21
|
+
formatShareStallLine,
|
|
22
|
+
formatShareTagsSection,
|
|
23
|
+
formatStallCapacityLabel,
|
|
24
|
+
normalizeShareRouteId,
|
|
25
|
+
shareSlugResourceId,
|
|
26
|
+
toShareSocialImageCacheVersion
|
|
27
|
+
} from "../chunk-AYO3E4DM.mjs";
|
|
1
28
|
import {
|
|
2
29
|
DEFAULT_SHARE_OG_IMAGE,
|
|
3
30
|
OG_DESCRIPTION_LINE_BREAK,
|
|
4
31
|
POST_SHARE_RESOURCE_TYPES,
|
|
5
|
-
PUBLIC_SHARE_PATH_TYPES,
|
|
6
32
|
RELATION_OVERLAY_LAYOUT_VERSION,
|
|
7
33
|
RELATION_SHARE_APPLICATION,
|
|
8
34
|
RELATION_SHARE_INVITATION,
|
|
@@ -29,48 +55,24 @@ import {
|
|
|
29
55
|
SHARE_SITE_URL,
|
|
30
56
|
SHARE_STALL_SIZE_PREFIX,
|
|
31
57
|
SHARE_TAGS_SECTION_HEADING,
|
|
32
|
-
SHARE_TYPE_PATH_REGEX,
|
|
33
58
|
SOCIAL_IMAGE_HEIGHT,
|
|
34
59
|
SOCIAL_IMAGE_WIDTH,
|
|
35
60
|
appendShareMoreInfoLine,
|
|
36
|
-
buildApplicationShareDescription,
|
|
37
61
|
buildFacebookShareQuote,
|
|
38
|
-
buildInvitationShareDescription,
|
|
39
|
-
buildPublicEventShareDescription,
|
|
40
|
-
buildPublicVendorShareDescription,
|
|
41
62
|
buildShareMessageSections,
|
|
42
63
|
buildShareOgDescription,
|
|
43
64
|
buildShareOgDescriptionFromSections,
|
|
44
|
-
buildSharePagePath,
|
|
45
|
-
buildShareUrl,
|
|
46
|
-
formatCategoryLabel,
|
|
47
|
-
formatShareApplicationCategoriesSection,
|
|
48
|
-
formatShareApplicationComplianceSection,
|
|
49
|
-
formatShareApplicationPriceRangeLine,
|
|
50
|
-
formatShareApplicationStallSizeLine,
|
|
51
|
-
formatShareInvitationApplicationDeadlineLine,
|
|
52
|
-
formatShareInvitationMarketDatesSection,
|
|
53
|
-
formatShareInvitationRequirementsSection,
|
|
54
|
-
formatShareIsFoodTrueLine,
|
|
55
|
-
formatShareMarketDate,
|
|
56
|
-
formatShareRainOrShineLine,
|
|
57
|
-
formatShareStallLine,
|
|
58
|
-
formatShareTagsSection,
|
|
59
|
-
formatStallCapacityLabel,
|
|
60
65
|
isPostShareResourceType,
|
|
61
66
|
isRelationShareResourceType,
|
|
62
67
|
joinShareDescriptionSections,
|
|
63
68
|
joinShareOgDescriptionSections,
|
|
64
69
|
normalizeShareOgDescription,
|
|
65
|
-
normalizeShareRouteId,
|
|
66
70
|
normalizeShareText,
|
|
67
71
|
shareMessageFooterPlacementForType,
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
} from "../chunk-
|
|
71
|
-
import "../chunk-
|
|
72
|
-
import "../chunk-MVQ3CFQR.mjs";
|
|
73
|
-
import "../chunk-KZTOISPA.mjs";
|
|
72
|
+
splitShareDescriptionSections,
|
|
73
|
+
stripOverlaySubtitleSpecialChars
|
|
74
|
+
} from "../chunk-SD42WIMV.mjs";
|
|
75
|
+
import "../chunk-X3OLM35T.mjs";
|
|
74
76
|
export {
|
|
75
77
|
DEFAULT_SHARE_OG_IMAGE,
|
|
76
78
|
OG_DESCRIPTION_LINE_BREAK,
|
|
@@ -139,6 +141,8 @@ export {
|
|
|
139
141
|
normalizeShareText,
|
|
140
142
|
shareMessageFooterPlacementForType,
|
|
141
143
|
shareSlugResourceId,
|
|
142
|
-
splitShareDescriptionSections
|
|
144
|
+
splitShareDescriptionSections,
|
|
145
|
+
stripOverlaySubtitleSpecialChars,
|
|
146
|
+
toShareSocialImageCacheVersion
|
|
143
147
|
};
|
|
144
148
|
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EnumUserLicence } from './enums/index.js';
|
|
2
|
+
|
|
3
|
+
/** Tier keys in descending priority (highest first) for licence resolution. */
|
|
4
|
+
declare const TIERS_BY_PRIORITY: readonly ["pro_plus", "pro", "standard"];
|
|
5
|
+
/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */
|
|
6
|
+
type Tier = (typeof TIERS_BY_PRIORITY)[number];
|
|
7
|
+
/** User-facing tier labels (decoupled from the Tier discriminant). */
|
|
8
|
+
declare const TIER_DISPLAY_LABELS: Record<Tier, string>;
|
|
9
|
+
/** Maps licence enums to their canonical tier key. */
|
|
10
|
+
declare const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier>;
|
|
11
|
+
|
|
12
|
+
export { type Tier as T, TIERS_BY_PRIORITY as a, TIER_DISPLAY_LABELS as b, TIER_FROM_LICENCE as c };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { EnumUserLicence } from './enums/index.mjs';
|
|
2
|
+
|
|
3
|
+
/** Tier keys in descending priority (highest first) for licence resolution. */
|
|
4
|
+
declare const TIERS_BY_PRIORITY: readonly ["pro_plus", "pro", "standard"];
|
|
5
|
+
/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */
|
|
6
|
+
type Tier = (typeof TIERS_BY_PRIORITY)[number];
|
|
7
|
+
/** User-facing tier labels (decoupled from the Tier discriminant). */
|
|
8
|
+
declare const TIER_DISPLAY_LABELS: Record<Tier, string>;
|
|
9
|
+
/** Maps licence enums to their canonical tier key. */
|
|
10
|
+
declare const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier>;
|
|
11
|
+
|
|
12
|
+
export { type Tier as T, TIERS_BY_PRIORITY as a, TIER_DISPLAY_LABELS as b, TIER_FROM_LICENCE as c };
|
package/dist/types/index.cjs
CHANGED
|
@@ -25,6 +25,7 @@ __export(types_exports, {
|
|
|
25
25
|
EnumAdStatus: () => EnumAdStatus,
|
|
26
26
|
EnumAdStyle: () => EnumAdStyle,
|
|
27
27
|
EnumAdType: () => EnumAdType,
|
|
28
|
+
EnumAffiliateParticipantType: () => EnumAffiliateParticipantType,
|
|
28
29
|
EnumAffiliateRewardType: () => EnumAffiliateRewardType,
|
|
29
30
|
EnumGameStatus: () => EnumGameStatus,
|
|
30
31
|
EnumGameType: () => EnumGameType,
|
|
@@ -239,14 +240,25 @@ var TIER_FROM_LICENCE = {
|
|
|
239
240
|
["pro_vendor" /* PRO_VENDOR */]: "pro",
|
|
240
241
|
["standard_event" /* STANDARD_EVENT */]: "standard",
|
|
241
242
|
["standard_partner" /* STANDARD_PARTNER */]: "standard",
|
|
242
|
-
["standard_vendor" /* STANDARD_VENDOR */]: "standard"
|
|
243
|
+
["standard_vendor" /* STANDARD_VENDOR */]: "standard",
|
|
244
|
+
["standard_affiliate" /* STANDARD_AFFILIATE */]: "standard",
|
|
245
|
+
["standard_school" /* STANDARD_SCHOOL */]: "standard"
|
|
243
246
|
};
|
|
244
247
|
|
|
245
248
|
// src/types/affiliate.ts
|
|
249
|
+
var EnumAffiliateParticipantType = /* @__PURE__ */ ((EnumAffiliateParticipantType2) => {
|
|
250
|
+
EnumAffiliateParticipantType2["INDIVIDUAL"] = "INDIVIDUAL";
|
|
251
|
+
EnumAffiliateParticipantType2["SOLE_TRADER"] = "SOLE_TRADER";
|
|
252
|
+
EnumAffiliateParticipantType2["COMPANY"] = "COMPANY";
|
|
253
|
+
return EnumAffiliateParticipantType2;
|
|
254
|
+
})(EnumAffiliateParticipantType || {});
|
|
246
255
|
var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
|
|
256
|
+
EnumAffiliateRewardType2["ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS"] = "ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS";
|
|
257
|
+
EnumAffiliateRewardType2["ACTIVE_VENDOR_BONUS_REWARD"] = "ACTIVE_VENDOR_BONUS_REWARD";
|
|
258
|
+
EnumAffiliateRewardType2["ACTIVE_VENDOR_PRO_SUBSCRIPTION"] = "ACTIVE_VENDOR_PRO_SUBSCRIPTION";
|
|
259
|
+
EnumAffiliateRewardType2["ACTIVE_VENDOR_STANDARD_SUBSCRIPTION"] = "ACTIVE_VENDOR_STANDARD_SUBSCRIPTION";
|
|
247
260
|
EnumAffiliateRewardType2["NEW_EVENT_REGISTRATION"] = "NEW_EVENT_REGISTRATION";
|
|
248
261
|
EnumAffiliateRewardType2["NEW_VENDOR_REGISTRATION"] = "NEW_VENDOR_REGISTRATION";
|
|
249
|
-
EnumAffiliateRewardType2["NEW_PARTNER_REGISTRATION"] = "NEW_PARTNER_REGISTRATION";
|
|
250
262
|
return EnumAffiliateRewardType2;
|
|
251
263
|
})(EnumAffiliateRewardType || {});
|
|
252
264
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -256,6 +268,7 @@ var EnumAffiliateRewardType = /* @__PURE__ */ ((EnumAffiliateRewardType2) => {
|
|
|
256
268
|
EnumAdStatus,
|
|
257
269
|
EnumAdStyle,
|
|
258
270
|
EnumAdType,
|
|
271
|
+
EnumAffiliateParticipantType,
|
|
259
272
|
EnumAffiliateRewardType,
|
|
260
273
|
EnumGameStatus,
|
|
261
274
|
EnumGameType,
|
package/dist/types/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/index.ts","../../src/types/auth.ts","../../src/types/global.ts","../../src/types/ad.ts","../../src/types/resourceActivities.ts","../../src/types/post.ts","../../src/types/game/index.ts","../../src/types/game/dailyClue.ts","../../src/types/game/global.ts","../../src/types/subscription.ts","../../src/types/affiliate.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./post\";\nexport * from \"./pushToken\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\nexport * from \"./game\";\nexport * from \"./game/dailyClue\";\nexport * from \"./game/global\";\nexport * from \"./game/puzzleGame\";\nexport * from \"./school\";\nexport * from \"./subscription\";\nexport * from \"./affiliate\";\n","import {\n CreateFormData,\n EnumOSPlatform,\n PromoCodeType,\n TermsAgreement,\n} from \"src\";\n\nimport { SafeUserType } from \"./user\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: PromoCodeType | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\n\nexport type AuthPayloadType = {\n message: string;\n token: string;\n refreshToken: string | null;\n user: SafeUserType;\n};\n\nexport type RefreshTokenPayloadType = {\n refreshToken: string;\n token: string;\n};\n","import {\n Control,\n FieldValues,\n FormState,\n UseFormGetValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport {\n EnumEventDateStatus,\n EnumEventType,\n EnumResourceType,\n EnumSocialMedia,\n EnumUserLicence,\n} from \"../enums\";\n\nimport { EventListItemType } from \"./event\";\nimport { EnumPostType } from \"./post\";\nimport { VendorType } from \"./vendor\";\n\nexport const PROMO_CODE_PREFIX = \"CM-\";\n\nexport type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\nexport type ResourceImageType = {\n active: boolean;\n source: string;\n title: string;\n};\n\nexport type SocialMediaType = {\n name?: EnumSocialMedia;\n link?: string;\n};\n\nexport type UserLicenceType = {\n expiryDate: Date;\n issuedDate: Date;\n licenceType: EnumUserLicence;\n prevLicenceType?: EnumUserLicence | null;\n};\n\nexport type AssociateType = {\n email: string;\n resourceId: string;\n resourceType: EnumResourceType;\n licence: UserLicenceType;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n associates: AssociateType[] | null;\n contactDetails: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n owner?: OwnerType | null;\n promoCodes?: PromoCodeType[] | null;\n region: string;\n socialMedia: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type RelatedPostType = {\n postId: string;\n postSlug: string;\n postType: EnumPostType;\n};\n\nexport type SocialShareResourceType = {\n qrCode: ResourceImageType;\n socialImage: ResourceImageType;\n};\n\nexport type BaseResourceType = Omit<\n BaseResourceTypeFormData,\n \"_id\" | \"coverUpload\" | \"imagesUpload\" | \"logoUpload\"\n> & {\n _id: string;\n adIds?: string[] | null;\n createdAt: Date;\n deletedAt: Date | null;\n posterUsage?: PosterUsageType | null;\n rating?: number | null;\n relatedPost?: RelatedPostType | null;\n reviewCount?: number | null;\n slug: string;\n updatedAt: Date | null;\n};\n\nexport type LocationGeoType = {\n coordinates: number[]; // [longitude, latitude]\n type: \"Point\"; // Mongoose GeoJSON type\n};\n\nexport type LocationType = {\n city: string;\n country: string;\n fullAddress: string;\n geo: LocationGeoType;\n latitude: number;\n longitude: number;\n region: string;\n};\n\nexport type DateTimeType = {\n dateStatus: EnumEventDateStatus;\n endDate: string;\n endTime: string;\n startDate: string;\n startTime: string;\n};\n\nexport type Region = {\n latitude: number;\n latitudeDelta: number;\n longitude: number;\n longitudeDelta: number;\n};\n\nexport type ResourceDetails = {\n dateTime: DateTimeType[] | null;\n description: string | null;\n eventStatus?: EventStatusType | null;\n location: LocationType | null;\n resourceCover: ResourceImageType | null;\n resourceId: string;\n resourceLogo: ResourceImageType | null;\n resourceName: string;\n resourceType: EnumResourceType;\n};\n\nexport type GeocodeLocation = Pick<LocationType, \"latitude\" | \"longitude\">;\n\nexport type EventStatusType = {\n claimed: boolean;\n eventType: EnumEventType;\n googlePlaceId?: string | null;\n};\n\nexport interface FormField {\n disabled?: boolean;\n helperText?: string;\n isTextArea?: boolean;\n keyboardType?:\n | \"default\"\n | \"email-address\"\n | \"number-pad\"\n | \"url\"\n | \"decimal-pad\"\n | \"phone-pad\";\n name: string;\n placeholder: string;\n required?: boolean;\n secureTextEntry?: boolean;\n}\n\nexport interface FormDateField {\n dateMode: \"date\" | \"time\";\n helperText?: string;\n name: \"endDate\" | \"endTime\" | \"startDate\" | \"startTime\";\n placeholder: string;\n}\n\nexport interface SubcategoryItems {\n id: string;\n name: string;\n description?: string | null;\n}\n\nexport interface Subcategory {\n id: string;\n name: string;\n items?: SubcategoryItems[] | null;\n}\n\nexport interface Category {\n color?: string | null;\n description?: string | null;\n id: string;\n name: string;\n subcategories: Subcategory[];\n}\n\nexport type OptionItem = {\n value: string;\n label: string;\n};\n\nexport type ImageObjectType = {\n uri: string;\n type: string;\n name: string;\n};\n\nexport interface ResourceConnectionsType {\n events: EventListItemType[] | null;\n vendors: VendorType[] | null;\n}\n\nexport interface CreateFormData<T extends FieldValues> {\n control: Control<T, any>;\n fields: T;\n formState: FormState<T>;\n handleSubmit: UseFormHandleSubmit<T, any>;\n reset: UseFormReset<T>;\n setValue: UseFormSetValue<T>;\n watch: UseFormWatch<T>;\n getValues: UseFormGetValues<T>;\n}\n\nexport interface UseGetResourcesByRegionOptions {\n onlyClaimed?: boolean;\n limit?: number;\n offset?: number;\n}\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport type AdResource = {\n adDescription: string;\n adImage: string;\n adStyle: EnumAdStyle;\n adTitle: string;\n adType: EnumAdType;\n resourceId: string;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n resourceSlug: string;\n};\n\nexport interface AdFormData {\n active: boolean;\n end: Date; // ISO date string\n resource: AdResource;\n showOn: EnumAdShowOn[];\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion: string[];\n}\n\n// Form state matches the validation schema: all resource fields are present.\n// Use empty strings / explicit enum defaults in `defaultValues` for \"create\" flows.\nexport type AdFormState = AdFormData;\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\nexport type CreateAdFormState = CreateFormData<AdFormState>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\n\nimport { LocationGeoType } from \"./global\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: LocationGeoType | null;\n dateStatus?: EnumEventDateStatus | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: EnumResourceType;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport { BaseGameType } from \"./game\";\nimport {\n CreateFormData,\n ResourceImageType,\n SocialShareResourceType,\n} from \"./global\";\n\nexport enum EnumPostType {\n MARKET_FACES = \"market_faces\",\n CLUE_BITES = \"clue_bites\",\n PLAY_AND_WIN = \"play_and_win\",\n}\n\nexport enum EnumPostContentType {\n GAME = \"game\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: PostFileInput[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentGame = {\n game: BaseGameType;\n};\n\nexport type PostContentData =\n | PostContentGame\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData?: PostContentData | null;\n contentOrder?: number | null;\n contentType?: EnumPostContentType | null;\n};\n\nexport type PostResource = {\n resourceSlug: string;\n resourceId: string;\n resourceType: EnumResourceType;\n resourceRegion: string;\n};\n\nexport interface PostFormData {\n active: boolean;\n caption: string;\n content: PostContentFormData[];\n cover?: ResourceImageType | null;\n coverUpload?: PostFileInput | null;\n postType: EnumPostType;\n resource?: PostResource | null;\n tags?: string[] | null;\n title: string;\n notifyUsers?: boolean | null;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n contentData: Omit<PostContentData, \"imagesUpload\">;\n};\n\nexport type PostType = Omit<\n PostFormData,\n \"content\" | \"coverUpload\" | \"resource\"\n> & {\n _id: string;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n resource?: PostResource | null;\n slug: string;\n sharePublic?: SocialShareResourceType | null;\n updatedAt: Date | null;\n};\n","import { OwnerType } from \"../global\";\n\nimport { DailyClueBaseGame, DailyClueGameData } from \"./dailyClue\";\nimport { EnumGameType, GameDate } from \"./global\";\nimport { PuzzleBaseGame, PuzzleGameData } from \"./puzzleGame\";\n\nexport type BaseGameMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueBaseGame;\n [EnumGameType.MINI_QUIZ]: PuzzleBaseGame;\n [EnumGameType.ODD_ONE_OUT]: PuzzleBaseGame;\n};\n\nexport type BaseGameType = {\n gameType: EnumGameType;\n gameTypeId: string;\n gameTitle: string;\n} & {\n [K in keyof BaseGameMap]?: BaseGameMap[K] | null;\n};\n\nexport enum EnumGameStatus {\n GAME_COMPLETED = \"GAME_COMPLETED\",\n GAME_IN_PROGRESS = \"GAME_IN_PROGRESS\",\n GAME_LEFT = \"GAME_LEFT\",\n GAME_STARTED = \"GAME_STARTED\",\n}\n\nexport type GameHistory = Pick<\n BaseGameType,\n \"gameTitle\" | \"gameType\" | \"gameTypeId\"\n> & {\n createdAt: Date;\n gameDate: GameDate;\n gameStatus: EnumGameStatus;\n /** Per-event delta. Not persisted for overallGamePoints (computed at read time). */\n pointsEarned: number;\n /** Running total for this game instance; computed at read time, not stored in Mongo. */\n overallGamePoints?: number;\n};\n\ntype GameDataMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueGameData;\n [EnumGameType.MINI_QUIZ]: PuzzleGameData;\n [EnumGameType.ODD_ONE_OUT]: PuzzleGameData;\n};\ntype GameDataType = {\n [K in keyof GameDataMap]?: GameDataMap[K] | null;\n};\n\nexport type GameType = Pick<\n BaseGameType,\n \"gameTitle\" | \"gameType\" | \"gameTypeId\"\n> & {\n _id: string;\n active: boolean;\n createdAt: Date;\n gameData: GameDataType;\n gameHistory: GameHistory[] | null;\n updatedAt: Date | null;\n};\n\nexport type GameDocType = {\n _id: string;\n active: boolean;\n createdAt: Date;\n deletedAt: Date | null;\n games: GameType[] | null;\n owner: OwnerType;\n points: number;\n updatedAt: Date | null;\n};\n\nexport type GameLeaderboard = {\n gameHistory: GameHistory[] | null;\n overallPoints: number;\n owner: OwnerType;\n};\n","import { GameDate, GlobalGameData } from \"./global\";\n\nconst OBJECT_ID_PATH_SEGMENT = \"[a-f0-9]{24}\";\nconst OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;\n\nexport const gameScreenIdentifierList = [\n {\n clue: \"Where your actions turn into a timeline.\",\n id: \"activities\",\n match: \"/profile/activities\",\n },\n {\n clue: \"Where conversations happen without speaking.\",\n id: \"chat\",\n match: \"/profile/chat\",\n },\n {\n clue: \"The place to redefine who you are.\",\n id: \"edit-profile\",\n match: \"/profile/edit-profile\",\n },\n {\n clue: \"A single moment worth showing up for.\",\n id: \"single-event\",\n match: new RegExp(`^/events/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"What’s happening around you, right now.\",\n id: \"events-near-me\",\n match: \"/events/events-near-me\",\n },\n {\n clue: \"Where events appear as pins on a map.\",\n id: \"events-map\",\n match: \"/events/events-map\",\n },\n {\n clue: \"A collection of events worth attending.\",\n id: \"events\",\n match: \"/events\",\n },\n {\n clue: \"What’s happening in a wider area — not just nearby.\",\n id: \"events-region\",\n match: /^\\/events\\/region\\/[^/]+$/,\n },\n {\n clue: \"Where fun becomes a challenge.\",\n id: \"games\",\n match: \"/games\",\n },\n {\n clue: \"Your starting point for everything.\",\n id: \"home\",\n match: \"/\",\n },\n {\n clue: \"Where the app whispers what you shouldn’t miss.\",\n id: \"notifications\",\n match: \"/notifications\",\n },\n {\n clue: \"Where you fine-tune your experience.\",\n id: \"options\",\n match: \"/options\",\n },\n {\n clue: \"An organisation or creator supporting the community.\",\n id: \"single-partner\",\n match: new RegExp(`^/partners/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Organisations and creators supporting the community.\",\n id: \"partners\",\n match: \"/partners\",\n },\n {\n clue: \"A single published post in full view.\",\n id: \"single-visitor-post\",\n match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Your identity, on display.\",\n id: \"profile\",\n match: \"/profile\",\n },\n {\n clue: \"One stallholder offering something valuable.\",\n id: \"single-vendor\",\n match: new RegExp(`^/vendors/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Where every stallholder waits under the right category.\",\n id: \"vendors\",\n match: \"/vendors\",\n },\n {\n clue: \"Where you browse articles and posts from around the platform.\",\n id: \"visitors\",\n match: \"/visitors\",\n },\n] as const;\n\nexport type GamePlacement = (typeof gameScreenIdentifierList)[number][\"id\"];\nexport type GamePlacementClue =\n (typeof gameScreenIdentifierList)[number][\"clue\"];\n\nexport type DailyClueBaseGame = {\n gameDate: GameDate;\n gameSolution: string;\n};\n\nexport type DailyClueGameData = GlobalGameData & {\n gameFields: DailyClueBaseGame;\n lastFoundDate: Date | null;\n letterInfo: {\n collected: string[] | null; // The letters the user has found, e.g. [\"C\", \"L\", \"U\"]\n solutionShuffled: string[]; // The letters of the solution, but shuffled, e.g. [\"L\", \"C\", \"U\"]\n todaysClue: GamePlacementClue | null; // The clue for user to find the letter, e.g. related to {todaysPlacement}\n todaysLetter: string | null; // The letter the user has to find today, e.g. \"C\"\n todaysPlacement: GamePlacement | null; // The screen where the user has to find the clue, e.g. \"HomeScreen\"\n };\n};\n","export enum EnumGameType {\n DAILY_CLUE = \"dailyClue\",\n MINI_QUIZ = \"miniQuiz\",\n ODD_ONE_OUT = \"oddOneOut\",\n}\n\nexport type GameDate = {\n startDate: Date;\n endDate: Date;\n};\n\nexport const gameTypeToDisplayName: Record<EnumGameType, string> = {\n [EnumGameType.DAILY_CLUE]: \"Daily Clue\",\n [EnumGameType.MINI_QUIZ]: \"Mini Quiz\",\n [EnumGameType.ODD_ONE_OUT]: \"Odd One Out\",\n};\n\nexport type GlobalGameData = {\n points: number;\n // User has found the clue 3 days in a row, this is incrementing if the user finds the clue and decrements if user misses a day\n streak: number;\n};\n","import { EnumUserLicence } from \"../enums\";\n\n/** Tier keys in descending priority (highest first) for licence resolution. */\nexport const TIERS_BY_PRIORITY = [\"pro_plus\", \"pro\", \"standard\"] as const;\n\n/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */\nexport type Tier = (typeof TIERS_BY_PRIORITY)[number];\n\n/** User-facing tier labels (decoupled from the Tier discriminant). */\nexport const TIER_DISPLAY_LABELS: Record<Tier, string> = {\n pro: \"Pro\",\n // eslint-disable-next-line camelcase\n pro_plus: \"Pro+ Ads\",\n standard: \"Standard\",\n};\n\n/** Maps licence enums to their canonical tier key. */\nexport const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier> = {\n [EnumUserLicence.PRO_EVENT]: \"pro\",\n [EnumUserLicence.PRO_PLUS_EVENT]: \"pro_plus\",\n [EnumUserLicence.PRO_PLUS_VENDOR]: \"pro_plus\",\n [EnumUserLicence.PRO_VENDOR]: \"pro\",\n [EnumUserLicence.STANDARD_EVENT]: \"standard\",\n [EnumUserLicence.STANDARD_PARTNER]: \"standard\",\n [EnumUserLicence.STANDARD_VENDOR]: \"standard\",\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport { OwnerType, PromoCodeType } from \"./global\";\n\nexport enum EnumAffiliateRewardType {\n NEW_EVENT_REGISTRATION = \"NEW_EVENT_REGISTRATION\",\n NEW_VENDOR_REGISTRATION = \"NEW_VENDOR_REGISTRATION\",\n NEW_PARTNER_REGISTRATION = \"NEW_PARTNER_REGISTRATION\",\n}\n\nexport type AffiliateReward = {\n createdAt: Date;\n deletedAt: Date | null;\n redeemedAt: Date | null;\n rewardDescription: string;\n rewardType: EnumAffiliateRewardType;\n rewardValue: number;\n updatedAt: Date | null;\n};\n\nexport type AffiliateResourceType = {\n resourceActive: boolean;\n resourceId: string;\n resourceType: EnumResourceType;\n rewards: AffiliateReward[];\n};\n\nexport type AffiliateType = {\n _id: string;\n affiliateCode: PromoCodeType;\n affiliateResources: AffiliateResourceType[];\n createdAt: Date;\n deletedAt: Date | null;\n overallPoints: number;\n owner: OwnerType;\n updatedAt: Date | null;\n};\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;A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6BAAL;AACL,EAAAA,yBAAA,4BAAyB;AACzB,EAAAA,yBAAA,6BAA0B;AAC1B,EAAAA,yBAAA,8BAA2B;AAHjB,SAAAA;AAAA,GAAA;","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType","EnumGameStatus","EnumGameType","EnumAffiliateRewardType"]}
|
|
1
|
+
{"version":3,"sources":["../../src/types/index.ts","../../src/types/auth.ts","../../src/types/global.ts","../../src/types/ad.ts","../../src/types/resourceActivities.ts","../../src/types/post.ts","../../src/types/game/index.ts","../../src/types/game/dailyClue.ts","../../src/types/game/global.ts","../../src/types/subscription.ts","../../src/types/affiliate.ts"],"sourcesContent":["export * from \"./admin\";\nexport * from \"./auth\";\nexport * from \"./chat\";\nexport * from \"./contactUs\";\nexport * from \"./global\";\nexport * from \"./event\";\nexport * from \"./notification\";\nexport * from \"./poster\";\nexport * from \"./relation\";\nexport * from \"./vendor\";\nexport * from \"./user\";\nexport * from \"./ad\";\nexport * from \"./resourceActivities\";\nexport * from \"./partner\";\nexport * from \"./post\";\nexport * from \"./pushToken\";\nexport * from \"./appSettings\";\nexport * from \"./googleImportedMarket\";\nexport * from \"./game\";\nexport * from \"./game/dailyClue\";\nexport * from \"./game/global\";\nexport * from \"./game/puzzleGame\";\nexport * from \"./school\";\nexport * from \"./subscription\";\nexport * from \"./affiliate\";\n","import {\n CreateFormData,\n EnumOSPlatform,\n PromoCodeType,\n TermsAgreement,\n} from \"src\";\n\nimport { MutationResponse } from \"./global\";\nimport { SafeUserType } from \"./user\";\n\nexport enum EnumVerificationType {\n REGISTER = \"register\",\n RESET_PASSWORD = \"resetPassword\",\n}\n\nexport type LoginFormData = {\n email: string;\n isAdminPage?: boolean;\n password: string;\n platform?: EnumOSPlatform;\n};\n\nexport type CreateLoginFormData = CreateFormData<LoginFormData>;\n\nexport type RegisterFormData = {\n email: string;\n firstName: string;\n lastName: string;\n password: string;\n platform?: EnumOSPlatform;\n preferredRegion: string;\n promoCode?: PromoCodeType | null;\n termsAgreement?: TermsAgreement | null;\n};\n\nexport type CreateRegisterFormData = CreateFormData<RegisterFormData>;\n\nexport type RequestPasswordResetFormData = {\n email: string;\n};\n\nexport type CreateRequestPasswordResetFormData =\n CreateFormData<RequestPasswordResetFormData>;\n\nexport type ResetPasswordFormData = {\n confirmPassword: string;\n email: string;\n password: string;\n};\n\nexport type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;\n\nexport type ValidateVerificationTokenFormData = {\n email: string;\n verificationToken: string;\n verificationType?: EnumVerificationType;\n};\n\nexport type CreateValidateVerificationTokenFormData =\n CreateFormData<ValidateVerificationTokenFormData>;\n\nexport type AuthPayloadType = {\n refreshToken: string | null;\n token: string;\n user: SafeUserType;\n};\n\nexport type AuthMutationResponse = MutationResponse<AuthPayloadType>;\n\nexport type RefreshTokenPayloadType = {\n refreshToken: string;\n token: string;\n};\n\nexport type RefreshTokenMutationResponse =\n MutationResponse<RefreshTokenPayloadType>;\n","import {\n Control,\n FieldValues,\n FormState,\n UseFormGetValues,\n UseFormHandleSubmit,\n UseFormReset,\n UseFormSetValue,\n UseFormWatch,\n} from \"react-hook-form\";\n\nimport {\n EnumEventDateStatus,\n EnumEventType,\n EnumResourceType,\n EnumSocialMedia,\n EnumUserLicence,\n} from \"../enums\";\n\nimport { EventListItemType } from \"./event\";\nimport { EnumPostType } from \"./post\";\nimport { VendorType } from \"./vendor\";\n\nexport const PROMO_CODE_PREFIX = \"CM-\";\n\nexport type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;\n\nexport type Nullable<T> = {\n [K in keyof T]: T[K] | null | undefined;\n};\n\n/** Uniform mutation response envelope used across GraphQL mutations. */\nexport type MutationResponse<T> = {\n data: T | null;\n message: string | null;\n};\n\nexport type DeviceInfo = {\n appBuildNumber: string;\n appId: string;\n appVersion: string;\n brand: string;\n deviceName: string;\n installationId: string;\n manufacturer: string;\n modelName: string;\n osName: string;\n osVersion: string;\n timestamp: string;\n};\n\nexport type TermsAgreement = DeviceInfo & {\n termVersion: string;\n};\n\nexport type ResourceContactDetailsType = {\n email?: string | null;\n landlinePhone?: string | null;\n mobilePhone?: string | null;\n};\n\nexport type ResourceImageType = {\n active: boolean;\n source: string;\n title: string;\n};\n\nexport type SocialMediaType = {\n name?: EnumSocialMedia;\n link?: string;\n};\n\nexport type UserLicenceType = {\n expiryDate: Date;\n issuedDate: Date;\n licenceType: EnumUserLicence;\n prevLicenceType?: EnumUserLicence | null;\n};\n\nexport type OwnerType = {\n email: string;\n userId: string;\n};\n\nexport interface BaseResourceTypeFormData {\n _id?: string;\n active: boolean;\n contactDetails: ResourceContactDetailsType | null;\n cover: ResourceImageType;\n coverUpload?: ResourceImageType | null;\n description: string;\n images?: ResourceImageType[] | null;\n imagesUpload?: ResourceImageType[] | null;\n logo?: ResourceImageType | null;\n logoUpload?: ResourceImageType | null;\n name: string;\n promoCodes?: PromoCodeType[] | null;\n region: string;\n socialMedia: SocialMediaType[] | null;\n termsAgreement?: TermsAgreement | null;\n}\n\nexport type PosterUsageType = {\n month: string;\n count: number;\n};\n\nexport type RelatedPostType = {\n postActive: boolean;\n postId: string;\n postSlug: string;\n postType: EnumPostType;\n};\n\nexport type SocialShareResourceType = {\n qrCode: ResourceImageType;\n socialImage: ResourceImageType;\n};\n\nexport type BaseResourceType = Omit<\n BaseResourceTypeFormData,\n \"_id\" | \"coverUpload\" | \"imagesUpload\" | \"logoUpload\"\n> & {\n _id: string;\n adIds?: string[] | null;\n approvedAt?: Date | null;\n createdAt: Date;\n deletedAt: Date | null;\n owner: OwnerType;\n posterUsage?: PosterUsageType | null;\n rating?: number | null;\n relatedPost?: RelatedPostType | null;\n reviewCount?: number | null;\n slug: string;\n updatedAt: Date | null;\n};\n\nexport type LocationGeoType = {\n coordinates: number[]; // [longitude, latitude]\n type: \"Point\"; // Mongoose GeoJSON type\n};\n\nexport type LocationType = {\n city: string;\n country: string;\n fullAddress: string;\n geo: LocationGeoType;\n latitude: number;\n longitude: number;\n region: string;\n};\n\nexport type DateTimeType = {\n dateStatus: EnumEventDateStatus;\n endDate: string;\n endTime: string;\n startDate: string;\n startTime: string;\n};\n\nexport type Region = {\n latitude: number;\n latitudeDelta: number;\n longitude: number;\n longitudeDelta: number;\n};\n\nexport type ResourceDetails = {\n dateTime: DateTimeType[] | null;\n description: string | null;\n eventStatus?: EventStatusType | null;\n location: LocationType | null;\n resourceCover: ResourceImageType | null;\n resourceId: string;\n resourceLogo: ResourceImageType | null;\n resourceName: string;\n resourceType: EnumResourceType;\n};\n\nexport type GeocodeLocation = Pick<LocationType, \"latitude\" | \"longitude\">;\n\nexport type EventStatusType = {\n claimed: boolean;\n eventType: EnumEventType;\n googlePlaceId?: string | null;\n};\n\nexport interface FormField {\n disabled?: boolean;\n helperText?: string;\n isTextArea?: boolean;\n keyboardType?:\n | \"default\"\n | \"email-address\"\n | \"number-pad\"\n | \"url\"\n | \"decimal-pad\"\n | \"phone-pad\";\n name: string;\n placeholder: string;\n required?: boolean;\n secureTextEntry?: boolean;\n}\n\nexport interface FormDateField {\n dateMode: \"date\" | \"time\";\n helperText?: string;\n name: \"endDate\" | \"endTime\" | \"startDate\" | \"startTime\";\n placeholder: string;\n}\n\nexport interface SubcategoryItems {\n id: string;\n name: string;\n description?: string | null;\n}\n\nexport interface Subcategory {\n id: string;\n name: string;\n items?: SubcategoryItems[] | null;\n}\n\nexport interface Category {\n color?: string | null;\n description?: string | null;\n id: string;\n name: string;\n subcategories: Subcategory[];\n}\n\nexport type OptionItem = {\n value: string;\n label: string;\n};\n\nexport type ImageObjectType = {\n uri: string;\n type: string;\n name: string;\n};\n\nexport interface ResourceConnectionsType {\n events: EventListItemType[] | null;\n vendors: VendorType[] | null;\n}\n\nexport interface CreateFormData<T extends FieldValues> {\n control: Control<T, any>;\n fields: T;\n formState: FormState<T>;\n handleSubmit: UseFormHandleSubmit<T, any>;\n reset: UseFormReset<T>;\n setValue: UseFormSetValue<T>;\n watch: UseFormWatch<T>;\n getValues: UseFormGetValues<T>;\n}\n\nexport interface UseGetResourcesByRegionOptions {\n onlyClaimed?: boolean;\n limit?: number;\n offset?: number;\n}\n","import { EnumResourceType } from \"src/enums\";\n\nimport { CreateFormData } from \"./global\";\n\nexport enum EnumAdShowOn {\n EVENTS_PAGE = \"Events_page\",\n FRONT_PAGE = \"Front_page\",\n PARTNERS_PAGE = \"Partners_page\",\n VENDORS_PAGE = \"Vendors_page\",\n}\n\nexport enum EnumAdStatus {\n ACTIVE = \"Active\",\n PAUSED = \"Paused\",\n EXPIRED = \"Expired\",\n}\n\nexport enum EnumAdType {\n SPONSORED = \"Sponsored\",\n FREE = \"Free\",\n}\n\nexport enum EnumAdStyle {\n BLOOM = \"Bloom\",\n RISE = \"Rise\",\n}\n\nexport type AdResource = {\n adDescription: string;\n adImage: string;\n adStyle: EnumAdStyle;\n adTitle: string;\n adType: EnumAdType;\n resourceId: string;\n resourceName: string;\n resourceRegion: string;\n resourceType: EnumResourceType;\n resourceSlug: string;\n};\n\nexport interface AdFormData {\n active: boolean;\n end: Date; // ISO date string\n resource: AdResource;\n showOn: EnumAdShowOn[];\n start?: Date; // ISO date string\n status: EnumAdStatus;\n targetRegion: string[];\n}\n\n// Form state matches the validation schema: all resource fields are present.\n// Use empty strings / explicit enum defaults in `defaultValues` for \"create\" flows.\nexport type AdFormState = AdFormData;\n\nexport type CreateAdFormData = CreateFormData<AdFormData>;\nexport type CreateAdFormState = CreateFormData<AdFormState>;\n\nexport interface AdType extends AdFormData {\n _id: string;\n clicks?: number; // How many times the ad was clicked\n createdAt: Date;\n impressions?: number; // How often the ad was seen\n start: Date; // ISO date string\n updatedAt: Date | null;\n}\n","import {\n EnumEventDateStatus,\n EnumOSPlatform,\n EnumResourceType,\n} from \"src/enums\";\n\nimport { LocationGeoType } from \"./global\";\n\nexport enum EnumActivity {\n FAVORITE = \"FAVORITE\",\n GOING = \"GOING\",\n INTERESTED = \"INTERESTED\",\n PRESENT = \"PRESENT\",\n VIEW = \"VIEW\",\n}\n\nexport type ResourceActivityEntry = {\n activityType: EnumActivity;\n location: LocationGeoType | null;\n dateStatus?: EnumEventDateStatus | null;\n startDate?: string | null;\n startTime?: string | null;\n timestamp: Date;\n userAgent: EnumOSPlatform;\n userId?: string | null;\n};\n\nexport type ResourceActivityType = {\n _id: string;\n resourceType: EnumResourceType;\n resourceId: string;\n activity: ResourceActivityEntry[];\n};\n\nexport type ResourceActivityInputType = {\n resourceId: string;\n resourceType: EnumResourceType;\n activity: Omit<ResourceActivityEntry, \"timestamp\">;\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport { BaseGameType } from \"./game\";\nimport {\n CreateFormData,\n ResourceImageType,\n SocialShareResourceType,\n} from \"./global\";\n\nexport enum EnumPostType {\n MARKET_FACES = \"market_faces\",\n CLUE_BITES = \"clue_bites\",\n PLAY_AND_WIN = \"play_and_win\",\n}\n\nexport enum EnumPostContentType {\n GAME = \"game\",\n IMAGE = \"image\",\n LIST = \"list\",\n TEXTAREA = \"textarea\",\n VIDEO = \"video\",\n}\n\nexport type PostFileInput = {\n source: File;\n title?: string;\n};\n\nexport type PostContentTextarea = {\n textarea: {\n title?: string;\n data: string;\n };\n};\n\nexport type PostContentImage = {\n images: ResourceImageType[] | null;\n imagesUpload?: PostFileInput[] | null;\n};\n\nexport type PostContentVideo = {\n video: {\n source: string;\n title?: string;\n };\n};\n\nexport type PostContentList = {\n list: {\n title?: string;\n items: {\n text: string;\n }[];\n };\n};\n\nexport type PostContentGame = {\n game: BaseGameType;\n};\n\nexport type PostContentData =\n | PostContentGame\n | PostContentTextarea\n | PostContentImage\n | PostContentVideo\n | PostContentList;\n\nexport type PostContentFormData = {\n contentData?: PostContentData | null;\n contentOrder?: number | null;\n contentType?: EnumPostContentType | null;\n};\n\nexport type PostResource = {\n resourceSlug: string;\n resourceId: string;\n resourceType: EnumResourceType;\n resourceRegion: string;\n};\n\nexport interface PostFormData {\n active: boolean;\n caption: string;\n content: PostContentFormData[];\n cover?: ResourceImageType | null;\n coverUpload?: PostFileInput | null;\n postType: EnumPostType;\n resource?: PostResource | null;\n tags?: string[] | null;\n title: string;\n notifyUsers?: boolean | null;\n}\n\nexport type CreatePostFormData = CreateFormData<PostFormData>;\n\nexport type PostContentType = Omit<PostContentFormData, \"contentData\"> & {\n contentData: Omit<PostContentData, \"imagesUpload\">;\n};\n\nexport type PostType = Omit<\n PostFormData,\n \"content\" | \"coverUpload\" | \"resource\"\n> & {\n _id: string;\n approvedAt?: Date | null;\n content: PostContentType[];\n createdAt: Date;\n deletedAt: Date | null;\n resource?: PostResource | null;\n slug: string;\n sharePublic?: SocialShareResourceType | null;\n updatedAt: Date | null;\n};\n","import { OwnerType } from \"../global\";\n\nimport { DailyClueBaseGame, DailyClueGameData } from \"./dailyClue\";\nimport { EnumGameType, GameDate } from \"./global\";\nimport { PuzzleBaseGame, PuzzleGameData } from \"./puzzleGame\";\n\nexport type BaseGameMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueBaseGame;\n [EnumGameType.MINI_QUIZ]: PuzzleBaseGame;\n [EnumGameType.ODD_ONE_OUT]: PuzzleBaseGame;\n};\n\nexport type BaseGameType = {\n gameType: EnumGameType;\n gameTypeId: string;\n gameTitle: string;\n} & {\n [K in keyof BaseGameMap]?: BaseGameMap[K] | null;\n};\n\nexport enum EnumGameStatus {\n GAME_COMPLETED = \"GAME_COMPLETED\",\n GAME_IN_PROGRESS = \"GAME_IN_PROGRESS\",\n GAME_LEFT = \"GAME_LEFT\",\n GAME_STARTED = \"GAME_STARTED\",\n}\n\nexport type GameHistory = Pick<\n BaseGameType,\n \"gameTitle\" | \"gameType\" | \"gameTypeId\"\n> & {\n createdAt: Date;\n gameDate: GameDate;\n gameStatus: EnumGameStatus;\n /** Per-event delta. Not persisted for overallGamePoints (computed at read time). */\n pointsEarned: number;\n /** Running total for this game instance; computed at read time, not stored in Mongo. */\n overallGamePoints?: number;\n};\n\ntype GameDataMap = {\n [EnumGameType.DAILY_CLUE]: DailyClueGameData;\n [EnumGameType.MINI_QUIZ]: PuzzleGameData;\n [EnumGameType.ODD_ONE_OUT]: PuzzleGameData;\n};\ntype GameDataType = {\n [K in keyof GameDataMap]?: GameDataMap[K] | null;\n};\n\nexport type GameType = Pick<\n BaseGameType,\n \"gameTitle\" | \"gameType\" | \"gameTypeId\"\n> & {\n _id: string;\n active: boolean;\n createdAt: Date;\n gameData: GameDataType;\n gameHistory: GameHistory[] | null;\n updatedAt: Date | null;\n};\n\nexport type GameDocType = {\n _id: string;\n active: boolean;\n createdAt: Date;\n deletedAt: Date | null;\n games: GameType[] | null;\n owner: OwnerType;\n points: number;\n updatedAt: Date | null;\n};\n\nexport type GameLeaderboard = {\n gameHistory: GameHistory[] | null;\n overallPoints: number;\n owner: OwnerType;\n};\n","import { GameDate, GlobalGameData } from \"./global\";\n\nconst OBJECT_ID_PATH_SEGMENT = \"[a-f0-9]{24}\";\nconst OBJECT_ID_PATH_SEGMENT_END = `${OBJECT_ID_PATH_SEGMENT}$`;\n\nexport const gameScreenIdentifierList = [\n {\n clue: \"Where your actions turn into a timeline.\",\n id: \"activities\",\n match: \"/profile/activities\",\n },\n {\n clue: \"Where conversations happen without speaking.\",\n id: \"chat\",\n match: \"/profile/chat\",\n },\n {\n clue: \"The place to redefine who you are.\",\n id: \"edit-profile\",\n match: \"/profile/edit-profile\",\n },\n {\n clue: \"A single moment worth showing up for.\",\n id: \"single-event\",\n match: new RegExp(`^/events/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"What’s happening around you, right now.\",\n id: \"events-near-me\",\n match: \"/events/events-near-me\",\n },\n {\n clue: \"Where events appear as pins on a map.\",\n id: \"events-map\",\n match: \"/events/events-map\",\n },\n {\n clue: \"A collection of events worth attending.\",\n id: \"events\",\n match: \"/events\",\n },\n {\n clue: \"What’s happening in a wider area — not just nearby.\",\n id: \"events-region\",\n match: /^\\/events\\/region\\/[^/]+$/,\n },\n {\n clue: \"Where fun becomes a challenge.\",\n id: \"games\",\n match: \"/games\",\n },\n {\n clue: \"Your starting point for everything.\",\n id: \"home\",\n match: \"/\",\n },\n {\n clue: \"Where the app whispers what you shouldn’t miss.\",\n id: \"notifications\",\n match: \"/notifications\",\n },\n {\n clue: \"Where you fine-tune your experience.\",\n id: \"options\",\n match: \"/options\",\n },\n {\n clue: \"An organisation or creator supporting the community.\",\n id: \"single-partner\",\n match: new RegExp(`^/partners/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Organisations and creators supporting the community.\",\n id: \"partners\",\n match: \"/partners\",\n },\n {\n clue: \"A single published post in full view.\",\n id: \"single-visitor-post\",\n match: new RegExp(`^/visitors/post/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Your identity, on display.\",\n id: \"profile\",\n match: \"/profile\",\n },\n {\n clue: \"One stallholder offering something valuable.\",\n id: \"single-vendor\",\n match: new RegExp(`^/vendors/${OBJECT_ID_PATH_SEGMENT_END}`),\n },\n {\n clue: \"Where every stallholder waits under the right category.\",\n id: \"vendors\",\n match: \"/vendors\",\n },\n {\n clue: \"Where you browse articles and posts from around the platform.\",\n id: \"visitors\",\n match: \"/visitors\",\n },\n] as const;\n\nexport type GamePlacement = (typeof gameScreenIdentifierList)[number][\"id\"];\nexport type GamePlacementClue =\n (typeof gameScreenIdentifierList)[number][\"clue\"];\n\nexport type DailyClueBaseGame = {\n gameDate: GameDate;\n gameSolution: string;\n};\n\nexport type DailyClueGameData = GlobalGameData & {\n gameFields: DailyClueBaseGame;\n lastFoundDate: Date | null;\n letterInfo: {\n collected: string[] | null; // The letters the user has found, e.g. [\"C\", \"L\", \"U\"]\n solutionShuffled: string[]; // The letters of the solution, but shuffled, e.g. [\"L\", \"C\", \"U\"]\n todaysClue: GamePlacementClue | null; // The clue for user to find the letter, e.g. related to {todaysPlacement}\n todaysLetter: string | null; // The letter the user has to find today, e.g. \"C\"\n todaysPlacement: GamePlacement | null; // The screen where the user has to find the clue, e.g. \"HomeScreen\"\n };\n};\n","export enum EnumGameType {\n DAILY_CLUE = \"dailyClue\",\n MINI_QUIZ = \"miniQuiz\",\n ODD_ONE_OUT = \"oddOneOut\",\n}\n\nexport type GameDate = {\n startDate: Date;\n endDate: Date;\n};\n\nexport const gameTypeToDisplayName: Record<EnumGameType, string> = {\n [EnumGameType.DAILY_CLUE]: \"Daily Clue\",\n [EnumGameType.MINI_QUIZ]: \"Mini Quiz\",\n [EnumGameType.ODD_ONE_OUT]: \"Odd One Out\",\n};\n\nexport type GlobalGameData = {\n points: number;\n // User has found the clue 3 days in a row, this is incrementing if the user finds the clue and decrements if user misses a day\n streak: number;\n};\n","import { EnumUserLicence } from \"../enums\";\n\n/** Tier keys in descending priority (highest first) for licence resolution. */\nexport const TIERS_BY_PRIORITY = [\"pro_plus\", \"pro\", \"standard\"] as const;\n\n/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */\nexport type Tier = (typeof TIERS_BY_PRIORITY)[number];\n\n/** User-facing tier labels (decoupled from the Tier discriminant). */\nexport const TIER_DISPLAY_LABELS: Record<Tier, string> = {\n pro: \"Pro\",\n // eslint-disable-next-line camelcase\n pro_plus: \"Pro+ Ads\",\n standard: \"Standard\",\n};\n\n/** Maps licence enums to their canonical tier key. */\nexport const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier> = {\n [EnumUserLicence.PRO_EVENT]: \"pro\",\n [EnumUserLicence.PRO_PLUS_EVENT]: \"pro_plus\",\n [EnumUserLicence.PRO_PLUS_VENDOR]: \"pro_plus\",\n [EnumUserLicence.PRO_VENDOR]: \"pro\",\n [EnumUserLicence.STANDARD_EVENT]: \"standard\",\n [EnumUserLicence.STANDARD_PARTNER]: \"standard\",\n [EnumUserLicence.STANDARD_VENDOR]: \"standard\",\n [EnumUserLicence.STANDARD_AFFILIATE]: \"standard\",\n [EnumUserLicence.STANDARD_SCHOOL]: \"standard\",\n};\n","import { EnumResourceType } from \"src/enums\";\n\nimport {\n CreateFormData,\n LocationType,\n OwnerType,\n PromoCodeType,\n SocialMediaType,\n} from \"./global\";\nimport { UserFormData } from \"./user\";\n\nexport enum EnumAffiliateParticipantType {\n INDIVIDUAL = \"INDIVIDUAL\",\n SOLE_TRADER = \"SOLE_TRADER\",\n COMPANY = \"COMPANY\",\n}\n\nexport type AffiliateContactDetails = {\n mobilePhone: string;\n};\n\nexport type AffiliateBankAccountDetailsType = {\n accountHolderName: string;\n accountNumber: string;\n};\n\nexport type AffiliateUserDefaultFields = Pick<\n UserFormData,\n \"email\" | \"firstName\" | \"lastName\" | \"termsAgreement\"\n>;\n\nexport type AffiliateDetailsType = AffiliateUserDefaultFields & {\n bankAccountDetails: AffiliateBankAccountDetailsType;\n contactDetails: AffiliateContactDetails;\n irdNumber: string;\n location: LocationType;\n participantType: EnumAffiliateParticipantType;\n socialMedia: SocialMediaType[] | null;\n};\n\nexport enum EnumAffiliateRewardType {\n ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS = \"ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS\",\n ACTIVE_VENDOR_BONUS_REWARD = \"ACTIVE_VENDOR_BONUS_REWARD\",\n ACTIVE_VENDOR_PRO_SUBSCRIPTION = \"ACTIVE_VENDOR_PRO_SUBSCRIPTION\",\n ACTIVE_VENDOR_STANDARD_SUBSCRIPTION = \"ACTIVE_VENDOR_STANDARD_SUBSCRIPTION\",\n NEW_EVENT_REGISTRATION = \"NEW_EVENT_REGISTRATION\",\n NEW_VENDOR_REGISTRATION = \"NEW_VENDOR_REGISTRATION\",\n}\n\nexport type AffiliateRewardType = {\n createdAt: Date;\n redeemedAt: Date | null;\n rewardDescription: string;\n rewardType: EnumAffiliateRewardType;\n rewardValue: number;\n};\n\nexport type AffiliateResourceType = {\n resourceActive: boolean;\n resourceDeletedAt: Date | null;\n resourceId: string;\n resourceName: string;\n resourceOwner: OwnerType;\n resourceType: EnumResourceType;\n rewards: AffiliateRewardType[];\n};\n\nexport type RedeemHistoryType = {\n paidAt?: Date | null;\n redeemedAt: Date;\n rewardValue: number;\n};\n\nexport interface AffiliateType {\n _id: string;\n active: boolean;\n approvedAt?: Date | null;\n affiliateBonusRewards?: AffiliateRewardType[] | null;\n affiliateCode: PromoCodeType | null;\n affiliateDetails: AffiliateDetailsType | null;\n affiliateResources: AffiliateResourceType[];\n createdAt: Date;\n deletedAt: Date | null;\n overallPoints: number;\n owner: OwnerType;\n redeemHistory?: RedeemHistoryType[] | null;\n updatedAt: Date | null;\n}\n\nexport type AffiliateFormData = Omit<\n AffiliateDetailsType,\n \"email\" | \"firstName\" | \"lastName\"\n>;\n\nexport type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACUO,IAAK,uBAAL,kBAAKA,0BAAL;AACL,EAAAA,sBAAA,cAAW;AACX,EAAAA,sBAAA,oBAAiB;AAFP,SAAAA;AAAA,GAAA;;;ACaL,IAAM,oBAAoB;;;ACnB1B,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,iBAAc;AACd,EAAAA,cAAA,gBAAa;AACb,EAAAA,cAAA,mBAAgB;AAChB,EAAAA,cAAA,kBAAe;AAJL,SAAAA;AAAA,GAAA;AAOL,IAAK,eAAL,kBAAKC,kBAAL;AACL,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,YAAS;AACT,EAAAA,cAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AAML,IAAK,aAAL,kBAAKC,gBAAL;AACL,EAAAA,YAAA,eAAY;AACZ,EAAAA,YAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;AAKL,IAAK,cAAL,kBAAKC,iBAAL;AACL,EAAAA,aAAA,WAAQ;AACR,EAAAA,aAAA,UAAO;AAFG,SAAAA;AAAA,GAAA;;;ACdL,IAAK,eAAL,kBAAKC,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;AAAA,EAC3B,CAAC,0BAAsB,GAAG;AAAA,EAC1B,CAAC,6BAAwB,GAAG;AAC9B;;;ACZO,IAAM,oBAAoB,CAAC,YAAY,OAAO,UAAU;AAMxD,IAAM,sBAA4C;AAAA,EACvD,KAAK;AAAA;AAAA,EAEL,UAAU;AAAA,EACV,UAAU;AACZ;AAGO,IAAM,oBAAmD;AAAA,EAC9D,4BAA0B,GAAG;AAAA,EAC7B,sCAA+B,GAAG;AAAA,EAClC,wCAAgC,GAAG;AAAA,EACnC,8BAA2B,GAAG;AAAA,EAC9B,sCAA+B,GAAG;AAAA,EAClC,0CAAiC,GAAG;AAAA,EACpC,wCAAgC,GAAG;AAAA,EACnC,8CAAmC,GAAG;AAAA,EACtC,wCAAgC,GAAG;AACrC;;;AChBO,IAAK,+BAAL,kBAAKC,kCAAL;AACL,EAAAA,8BAAA,gBAAa;AACb,EAAAA,8BAAA,iBAAc;AACd,EAAAA,8BAAA,aAAU;AAHA,SAAAA;AAAA,GAAA;AA6BL,IAAK,0BAAL,kBAAKC,6BAAL;AACL,EAAAA,yBAAA,4CAAyC;AACzC,EAAAA,yBAAA,gCAA6B;AAC7B,EAAAA,yBAAA,oCAAiC;AACjC,EAAAA,yBAAA,yCAAsC;AACtC,EAAAA,yBAAA,4BAAyB;AACzB,EAAAA,yBAAA,6BAA0B;AANhB,SAAAA;AAAA,GAAA;","names":["EnumVerificationType","EnumAdShowOn","EnumAdStatus","EnumAdType","EnumAdStyle","EnumActivity","EnumPostType","EnumPostContentType","EnumGameStatus","EnumGameType","EnumAffiliateParticipantType","EnumAffiliateRewardType"]}
|
package/dist/types/index.d.mts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
1
|
+
export { A as AdminUpdateResourceType, c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, a as NotificationCount, i as NotificationDataType, N as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CwbJFGIp.mjs';
|
|
2
|
+
export { i as AdFormData, p as AdFormState, q as AdResource, a as AdType, l as AppSettingsFormData, b as AppSettingsType, A as AuthMutationResponse, r as AuthPayloadType, s as CreateAdFormData, j as CreateAdFormState, m as CreateAppSettingsFormData, C as CreateLoginFormData, k as CreatePartnerFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, g as CreateResetPasswordFormData, o as CreateSchoolFormData, f as CreateValidateVerificationTokenFormData, t as EnumAdShowOn, E as EnumAdStatus, u as EnumAdStyle, v as EnumAdType, w as EnumVerificationType, L as LoginFormData, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, x as PosterInputType, R as RefreshTokenMutationResponse, y as RefreshTokenPayloadType, z as RegisterFormData, B as RequestPasswordResetFormData, D as ResetPasswordFormData, F as SchoolCampaignType, n as SchoolFormData, G as SchoolRegisteredUserType, c as SchoolReturnType, S as SchoolType, V as ValidateVerificationTokenFormData } from '../ad-BhLoEul3.mjs';
|
|
3
|
+
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs-CBWzefUS.mjs';
|
|
4
|
+
import { c as EventListItemType } from '../global-DePDtOFt.mjs';
|
|
5
|
+
export { z as BaseGameMap, A as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, t as CreateEventFormData, v as CreateEventInfoFormData, H as CreateFormData, x as CreatePostFormData, r as CreateUnregisteredVendorFormData, n as CreateVendorFormData, p as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, N as DateTimeWithPriceType, Q as DeviceInfo, T as EnumGameStatus, W as EnumGameType, X as EnumPostContentType, k as EnumPostType, s as EventFormData, u as EventInfoFormData, d as EventInfoType, Y as EventStatusType, E as EventType, a as FormDateField, F as FormField, Z as GameDate, G as GameDocType, _ as GameHistory, l as GameLeaderboard, $ as GamePlacement, a0 as GamePlacementClue, a1 as GameType, a2 as GeocodeLocation, a3 as GlobalGameData, a4 as ImageObjectType, a5 as LocationGeoType, L as LocationType, M as MutationResponse, a6 as Nullable, O as OptionItem, a7 as OwnerType, a8 as PROMO_CODE_PREFIX, a9 as PaymentInfoType, aa as PostContentData, ab as PostContentFormData, ac as PostContentGame, ad as PostContentImage, ae as PostContentList, af as PostContentTextarea, ag as PostContentType, ah as PostContentVideo, ai as PostFileInput, w as PostFormData, aj as PostResource, j as PostType, P as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, y as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, q as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, m as VendorFormData, o as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-DePDtOFt.mjs';
|
|
6
|
+
export { C as CreateUserFormData, e as RedeemRewardInput, R as RedeemRewardMutationResponse, f as RedeemRewardResponse, g as RedeemedReward, b as ResourceByUser, S as SafeUserType, h as StripeSubscription, i as SubscriptionPlanData, c as SubscriptionPlansResponse, j as SubscriptionPricingData, d as SubscriptionStatusData, k as UserActivity, l as UserActivityEvent, U as UserFormData, m as UserType } from '../user-DE8edl3u.mjs';
|
|
7
|
+
import { EnumOSPlatform } from '../enums/index.mjs';
|
|
8
|
+
export { a as TIERS_BY_PRIORITY, b as TIER_DISPLAY_LABELS, c as TIER_FROM_LICENCE, T as Tier } from '../subscription-bmAdrnfi.mjs';
|
|
9
|
+
export { b as AffiliateBankAccountDetailsType, c as AffiliateContactDetails, d as AffiliateDetailsType, a as AffiliateFormData, e as AffiliateResourceType, f as AffiliateRewardType, A as AffiliateType, g as AffiliateUserDefaultFields, C as CreateAffiliateFormData, E as EnumAffiliateParticipantType, h as EnumAffiliateRewardType, R as RedeemHistoryType } from '../affiliate-BbtjeUP4.mjs';
|
|
8
10
|
import '../images/index.mjs';
|
|
9
11
|
import 'react-hook-form';
|
|
10
12
|
|
|
11
|
-
interface AdminUpdateResourceType {
|
|
12
|
-
active: boolean;
|
|
13
|
-
resourceId: string;
|
|
14
|
-
resourceType: EnumResourceType;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
13
|
type PushTokenType = {
|
|
18
14
|
_id: string;
|
|
19
15
|
createdAt: Date;
|
|
@@ -42,13 +38,4 @@ interface GoogleImportedMarket extends EventListItemType {
|
|
|
42
38
|
website?: string;
|
|
43
39
|
}
|
|
44
40
|
|
|
45
|
-
|
|
46
|
-
declare const TIERS_BY_PRIORITY: readonly ["pro_plus", "pro", "standard"];
|
|
47
|
-
/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */
|
|
48
|
-
type Tier = (typeof TIERS_BY_PRIORITY)[number];
|
|
49
|
-
/** User-facing tier labels (decoupled from the Tier discriminant). */
|
|
50
|
-
declare const TIER_DISPLAY_LABELS: Record<Tier, string>;
|
|
51
|
-
/** Maps licence enums to their canonical tier key. */
|
|
52
|
-
declare const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier>;
|
|
53
|
-
|
|
54
|
-
export { type AdminUpdateResourceType, EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket, type PushTokenType, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type Tier };
|
|
41
|
+
export { EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket, type PushTokenType };
|
package/dist/types/index.d.ts
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export {
|
|
7
|
-
|
|
1
|
+
export { A as AdminUpdateResourceType, c as ChatMessageInput, d as ChatMessageReaction, e as ChatMessageReplyPreview, f as ChatMessageSeen, g as ChatMessageType, C as ChatType, h as CreateBulkNotificationInput, E as EnumActivity, a as NotificationCount, i as NotificationDataType, N as NotificationType, P as ParticipantType, R as ReportChatUser, j as ResourceActivityEntry, k as ResourceActivityInputType, b as ResourceActivityType } from '../resourceActivities-CMUcn2P7.js';
|
|
2
|
+
export { i as AdFormData, p as AdFormState, q as AdResource, a as AdType, l as AppSettingsFormData, b as AppSettingsType, A as AuthMutationResponse, r as AuthPayloadType, s as CreateAdFormData, j as CreateAdFormState, m as CreateAppSettingsFormData, C as CreateLoginFormData, k as CreatePartnerFormData, d as CreateRegisterFormData, e as CreateRequestPasswordResetFormData, g as CreateResetPasswordFormData, o as CreateSchoolFormData, f as CreateValidateVerificationTokenFormData, t as EnumAdShowOn, E as EnumAdStatus, u as EnumAdStyle, v as EnumAdType, w as EnumVerificationType, L as LoginFormData, M as MarketingMaterialRequestInputType, h as PartnerFormData, P as PartnerType, x as PosterInputType, R as RefreshTokenMutationResponse, y as RefreshTokenPayloadType, z as RegisterFormData, B as RequestPasswordResetFormData, D as ResetPasswordFormData, F as SchoolCampaignType, n as SchoolFormData, G as SchoolRegisteredUserType, c as SchoolReturnType, S as SchoolType, V as ValidateVerificationTokenFormData } from '../ad-BUYzE6zx.js';
|
|
3
|
+
export { C as ContactUsFormData, a as CreateContactUsFormData } from '../contactUs--NoohZBu.js';
|
|
4
|
+
import { c as EventListItemType } from '../global-CUYYxpy2.js';
|
|
5
|
+
export { z as BaseGameMap, A as BaseGameType, D as BaseResourceType, B as BaseResourceTypeFormData, C as Category, t as CreateEventFormData, v as CreateEventInfoFormData, H as CreateFormData, x as CreatePostFormData, r as CreateUnregisteredVendorFormData, n as CreateVendorFormData, p as CreateVendorInfoFormData, I as DailyClueBaseGame, J as DailyClueGameData, K as DateTimeType, N as DateTimeWithPriceType, Q as DeviceInfo, T as EnumGameStatus, W as EnumGameType, X as EnumPostContentType, k as EnumPostType, s as EventFormData, u as EventInfoFormData, d as EventInfoType, Y as EventStatusType, E as EventType, a as FormDateField, F as FormField, Z as GameDate, G as GameDocType, _ as GameHistory, l as GameLeaderboard, $ as GamePlacement, a0 as GamePlacementClue, a1 as GameType, a2 as GeocodeLocation, a3 as GlobalGameData, a4 as ImageObjectType, a5 as LocationGeoType, L as LocationType, M as MutationResponse, a6 as Nullable, O as OptionItem, a7 as OwnerType, a8 as PROMO_CODE_PREFIX, a9 as PaymentInfoType, aa as PostContentData, ab as PostContentFormData, ac as PostContentGame, ad as PostContentImage, ae as PostContentList, af as PostContentTextarea, ag as PostContentType, ah as PostContentVideo, ai as PostFileInput, w as PostFormData, aj as PostResource, j as PostType, P as PosterUsageType, ak as PromoCodeType, al as PuzzleAnswer, am as PuzzleAnsweredQuestion, an as PuzzleBaseGame, ao as PuzzleGameData, ap as PuzzleQuestion, R as RefundPolicy, y as Region, aq as RelatedPostType, ar as RelationDate, as as RelationInputType, e as RelationType, b as Requirement, f as ResourceConnectionsType, at as ResourceContactDetailsType, au as ResourceDetails, av as ResourceImageType, aw as SocialMediaType, ax as SocialShareResourceType, S as StallType, ay as Subcategory, az as SubcategoryItems, aA as TermsAgreement, q as UnregisteredVendorFormData, aB as UnregisteredVendorInvitationType, g as UnregisteredVendorType, U as UseGetResourcesByRegionOptions, i as UserLicenceType, aC as VendorAttributes, aD as VendorCalendarData, m as VendorFormData, o as VendorInfoFormData, h as VendorInfoType, aE as VendorProductList, V as VendorType, aF as gameScreenIdentifierList, aG as gameTypeToDisplayName } from '../global-CUYYxpy2.js';
|
|
6
|
+
export { C as CreateUserFormData, e as RedeemRewardInput, R as RedeemRewardMutationResponse, f as RedeemRewardResponse, g as RedeemedReward, b as ResourceByUser, S as SafeUserType, h as StripeSubscription, i as SubscriptionPlanData, c as SubscriptionPlansResponse, j as SubscriptionPricingData, d as SubscriptionStatusData, k as UserActivity, l as UserActivityEvent, U as UserFormData, m as UserType } from '../user-D47MLFyH.js';
|
|
7
|
+
import { EnumOSPlatform } from '../enums/index.js';
|
|
8
|
+
export { a as TIERS_BY_PRIORITY, b as TIER_DISPLAY_LABELS, c as TIER_FROM_LICENCE, T as Tier } from '../subscription-BU8GvH2K.js';
|
|
9
|
+
export { b as AffiliateBankAccountDetailsType, c as AffiliateContactDetails, d as AffiliateDetailsType, a as AffiliateFormData, e as AffiliateResourceType, f as AffiliateRewardType, A as AffiliateType, g as AffiliateUserDefaultFields, C as CreateAffiliateFormData, E as EnumAffiliateParticipantType, h as EnumAffiliateRewardType, R as RedeemHistoryType } from '../affiliate-C51nzKsw.js';
|
|
8
10
|
import '../images/index.js';
|
|
9
11
|
import 'react-hook-form';
|
|
10
12
|
|
|
11
|
-
interface AdminUpdateResourceType {
|
|
12
|
-
active: boolean;
|
|
13
|
-
resourceId: string;
|
|
14
|
-
resourceType: EnumResourceType;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
13
|
type PushTokenType = {
|
|
18
14
|
_id: string;
|
|
19
15
|
createdAt: Date;
|
|
@@ -42,13 +38,4 @@ interface GoogleImportedMarket extends EventListItemType {
|
|
|
42
38
|
website?: string;
|
|
43
39
|
}
|
|
44
40
|
|
|
45
|
-
|
|
46
|
-
declare const TIERS_BY_PRIORITY: readonly ["pro_plus", "pro", "standard"];
|
|
47
|
-
/** Canonical subscription tier keys — matches Stripe/server tier identifiers. */
|
|
48
|
-
type Tier = (typeof TIERS_BY_PRIORITY)[number];
|
|
49
|
-
/** User-facing tier labels (decoupled from the Tier discriminant). */
|
|
50
|
-
declare const TIER_DISPLAY_LABELS: Record<Tier, string>;
|
|
51
|
-
/** Maps licence enums to their canonical tier key. */
|
|
52
|
-
declare const TIER_FROM_LICENCE: Record<EnumUserLicence, Tier>;
|
|
53
|
-
|
|
54
|
-
export { type AdminUpdateResourceType, EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket, type PushTokenType, TIERS_BY_PRIORITY, TIER_DISPLAY_LABELS, TIER_FROM_LICENCE, type Tier };
|
|
41
|
+
export { EventListItemType, type GoogleAddressComponent, type GoogleImportedMarket, type PushTokenType };
|
package/dist/types/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import {
|
|
|
4
4
|
EnumAdStatus,
|
|
5
5
|
EnumAdStyle,
|
|
6
6
|
EnumAdType,
|
|
7
|
+
EnumAffiliateParticipantType,
|
|
7
8
|
EnumAffiliateRewardType,
|
|
8
9
|
EnumGameStatus,
|
|
9
10
|
EnumGameType,
|
|
@@ -11,19 +12,22 @@ import {
|
|
|
11
12
|
EnumPostType,
|
|
12
13
|
EnumVerificationType,
|
|
13
14
|
PROMO_CODE_PREFIX,
|
|
14
|
-
TIERS_BY_PRIORITY,
|
|
15
|
-
TIER_DISPLAY_LABELS,
|
|
16
|
-
TIER_FROM_LICENCE,
|
|
17
15
|
gameScreenIdentifierList,
|
|
18
16
|
gameTypeToDisplayName
|
|
19
|
-
} from "../chunk-
|
|
20
|
-
import
|
|
17
|
+
} from "../chunk-ILILH7E2.mjs";
|
|
18
|
+
import {
|
|
19
|
+
TIERS_BY_PRIORITY,
|
|
20
|
+
TIER_DISPLAY_LABELS,
|
|
21
|
+
TIER_FROM_LICENCE
|
|
22
|
+
} from "../chunk-DQ7ZHIXW.mjs";
|
|
23
|
+
import "../chunk-X3OLM35T.mjs";
|
|
21
24
|
export {
|
|
22
25
|
EnumActivity,
|
|
23
26
|
EnumAdShowOn,
|
|
24
27
|
EnumAdStatus,
|
|
25
28
|
EnumAdStyle,
|
|
26
29
|
EnumAdType,
|
|
30
|
+
EnumAffiliateParticipantType,
|
|
27
31
|
EnumAffiliateRewardType,
|
|
28
32
|
EnumGameStatus,
|
|
29
33
|
EnumGameType,
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
import { EnumOSPlatform, EnumReward, EnumUserRole, EnumUserLicence, EnumSubscriptionStatus, EnumNotificationResourceType, EnumResourceType } from './enums/index.js';
|
|
2
|
+
import { av as ResourceImageType, L as LocationType, aA as TermsAgreement, i as UserLicenceType, ak as PromoCodeType, K as DateTimeType, M as MutationResponse, H as CreateFormData } from './global-CUYYxpy2.js';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Canonical permission IDs. Add new permissions here first, then map them in
|
|
6
|
+
* ROLE_PERMISSIONS. Prefer resource.action names (e.g. users.read).
|
|
7
|
+
*/
|
|
8
|
+
declare const PERMISSIONS: readonly ["*", "dashboard.admin", "dashboard.affiliate", "dashboard.customer", "dashboard.event", "dashboard.partner", "dashboard.school", "dashboard.vendor", "users.delete", "users.read", "users.update", "events.create", "events.delete", "events.read", "events.update", "vendors.create", "vendors.delete", "vendors.read", "vendors.update", "partners.create", "partners.delete", "partners.read", "partners.update", "schools.create", "schools.delete", "schools.read", "schools.update", "affiliates.create", "affiliates.delete", "affiliates.read", "affiliates.update", "ads.create", "ads.delete", "ads.read", "ads.update", "posts.create", "posts.delete", "posts.read", "posts.update", "settings.read", "settings.update", "affiliates.manage_own", "events.manage_own", "partners.manage_own", "schools.manage_own", "vendors.manage_own"];
|
|
9
|
+
type Permission = (typeof PERMISSIONS)[number];
|
|
10
|
+
declare const WILDCARD_PERMISSION: Permission;
|
|
11
|
+
|
|
12
|
+
type UserFormData = {
|
|
13
|
+
_id?: string;
|
|
14
|
+
active: boolean;
|
|
15
|
+
avatar?: ResourceImageType | null;
|
|
16
|
+
avatarUpload?: ResourceImageType | null;
|
|
17
|
+
confirmPassword?: string | null;
|
|
18
|
+
email: string;
|
|
19
|
+
firstName: string;
|
|
20
|
+
isTester: boolean;
|
|
21
|
+
lastName: string;
|
|
22
|
+
location?: LocationType | null;
|
|
23
|
+
password?: string | null;
|
|
24
|
+
platform?: EnumOSPlatform;
|
|
25
|
+
preferredRegion: string;
|
|
26
|
+
termsAgreement?: TermsAgreement | null;
|
|
27
|
+
};
|
|
28
|
+
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
29
|
+
type UserActivityEvent = {
|
|
30
|
+
resourceId: string;
|
|
31
|
+
dateTime: DateTimeType;
|
|
32
|
+
};
|
|
33
|
+
type StripeSubscription = {
|
|
34
|
+
currentPlan?: EnumUserLicence;
|
|
35
|
+
customerId?: string;
|
|
36
|
+
endDate?: Date;
|
|
37
|
+
startDate?: Date;
|
|
38
|
+
status?: EnumSubscriptionStatus;
|
|
39
|
+
subscriptionId?: string;
|
|
40
|
+
};
|
|
41
|
+
type SubscriptionStatusData = {
|
|
42
|
+
subscriptionId: string | null;
|
|
43
|
+
status: EnumSubscriptionStatus;
|
|
44
|
+
priceId: string | null;
|
|
45
|
+
currentPlan: EnumUserLicence | null;
|
|
46
|
+
};
|
|
47
|
+
type SubscriptionPricingData = {
|
|
48
|
+
basePrice: number;
|
|
49
|
+
discountedPrice: number | null;
|
|
50
|
+
hasDiscount: boolean;
|
|
51
|
+
discountPercent: number | null;
|
|
52
|
+
discountAmount: number | null;
|
|
53
|
+
currency: string;
|
|
54
|
+
formattedBasePrice: string;
|
|
55
|
+
formattedDiscountedPrice: string | null;
|
|
56
|
+
};
|
|
57
|
+
type SubscriptionPlanData = {
|
|
58
|
+
name: string;
|
|
59
|
+
description: string | null;
|
|
60
|
+
licenceType: EnumUserLicence;
|
|
61
|
+
billingPeriod: string;
|
|
62
|
+
stripeProductId: string;
|
|
63
|
+
stripePriceId: string;
|
|
64
|
+
isEligibleForDiscount: boolean;
|
|
65
|
+
pricing: SubscriptionPricingData;
|
|
66
|
+
};
|
|
67
|
+
type SubscriptionPlansResponse = {
|
|
68
|
+
plans: SubscriptionPlanData[];
|
|
69
|
+
isNewUser: boolean;
|
|
70
|
+
isTester: boolean;
|
|
71
|
+
appliedDiscountType: string;
|
|
72
|
+
};
|
|
73
|
+
type UserActivity = {
|
|
74
|
+
favourites: {
|
|
75
|
+
events: string[];
|
|
76
|
+
vendors: string[];
|
|
77
|
+
partners: string[];
|
|
78
|
+
};
|
|
79
|
+
going: {
|
|
80
|
+
events: UserActivityEvent[];
|
|
81
|
+
};
|
|
82
|
+
interested: {
|
|
83
|
+
events: UserActivityEvent[];
|
|
84
|
+
};
|
|
85
|
+
present: {
|
|
86
|
+
events: UserActivityEvent[];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
type RedeemRewardInput = {
|
|
90
|
+
reward: EnumReward;
|
|
91
|
+
};
|
|
92
|
+
type RedeemRewardResponse = {
|
|
93
|
+
userId: string;
|
|
94
|
+
};
|
|
95
|
+
/** GraphQL envelope for `redeemReward`. */
|
|
96
|
+
type RedeemRewardMutationResponse = MutationResponse<RedeemRewardResponse>;
|
|
97
|
+
type RedeemedReward = {
|
|
98
|
+
name: EnumReward;
|
|
99
|
+
pointsUsed: number;
|
|
100
|
+
redeemedAt: Date;
|
|
101
|
+
};
|
|
102
|
+
type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
|
|
103
|
+
_id: string;
|
|
104
|
+
affiliate?: string | null;
|
|
105
|
+
createdAt: Date;
|
|
106
|
+
deletedAt: Date | null;
|
|
107
|
+
events: string[] | null;
|
|
108
|
+
game: string | null;
|
|
109
|
+
licences: UserLicenceType[] | null;
|
|
110
|
+
overallPoints: number | null;
|
|
111
|
+
partner: string | null;
|
|
112
|
+
/** Computed from roles via ROLE_PERMISSIONS — not stored in Mongo. */
|
|
113
|
+
permissions: Permission[];
|
|
114
|
+
promoCodes?: PromoCodeType[] | null;
|
|
115
|
+
redeemedRewards?: RedeemedReward[] | null;
|
|
116
|
+
refreshToken: string | null;
|
|
117
|
+
roles: EnumUserRole[];
|
|
118
|
+
school: string | null;
|
|
119
|
+
stripe?: StripeSubscription;
|
|
120
|
+
updatedAt: Date | null;
|
|
121
|
+
userActivity: UserActivity | null;
|
|
122
|
+
vendor: string | null;
|
|
123
|
+
emailSentFor?: EnumNotificationResourceType[] | null;
|
|
124
|
+
};
|
|
125
|
+
type SafeUserType = Omit<UserType, "password" | "refreshToken">;
|
|
126
|
+
type ResourceByUser = {
|
|
127
|
+
_id: string;
|
|
128
|
+
active: boolean;
|
|
129
|
+
logo: string;
|
|
130
|
+
name: string;
|
|
131
|
+
resourceType: EnumResourceType;
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
export { type CreateUserFormData as C, type Permission as P, type RedeemRewardMutationResponse as R, type SafeUserType as S, type UserFormData as U, WILDCARD_PERMISSION as W, PERMISSIONS as a, type ResourceByUser as b, type SubscriptionPlansResponse as c, type SubscriptionStatusData as d, type RedeemRewardInput as e, type RedeemRewardResponse as f, type RedeemedReward as g, type StripeSubscription as h, type SubscriptionPlanData as i, type SubscriptionPricingData as j, type UserActivity as k, type UserActivityEvent as l, type UserType as m };
|