@timardex/cluemart-shared 1.5.813 → 1.5.822
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-0muFV6oH.d.ts → ad-BFGA6SrQ.d.ts} +4 -123
- package/dist/{ad-Dlk9SFLw.d.mts → ad-BRC6KNgv.d.mts} +4 -123
- package/dist/apollo/index.cjs +1362 -0
- package/dist/apollo/index.cjs.map +1 -0
- package/dist/apollo/index.d.mts +337 -0
- package/dist/apollo/index.d.ts +337 -0
- package/dist/apollo/index.mjs +1273 -0
- package/dist/apollo/index.mjs.map +1 -0
- package/dist/auth/index.cjs +1425 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.mts +119 -0
- package/dist/auth/index.d.ts +119 -0
- package/dist/auth/index.mjs +317 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/{chunk-LETM2YHF.mjs → chunk-D33VEY7Q.mjs} +3 -1
- package/dist/chunk-D33VEY7Q.mjs.map +1 -0
- package/dist/chunk-DQ7ZHIXW.mjs +26 -0
- package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
- package/dist/{chunk-LKMJ75YV.mjs → chunk-EUOLQ7SS.mjs} +2 -2
- package/dist/{chunk-GJO7X2Y4.mjs → chunk-IREUJYMR.mjs} +3 -3
- package/dist/{chunk-POXARN2X.mjs → chunk-KMLUQVNM.mjs} +1 -24
- package/dist/chunk-KMLUQVNM.mjs.map +1 -0
- package/dist/chunk-MIDSLTUJ.mjs +1214 -0
- package/dist/chunk-MIDSLTUJ.mjs.map +1 -0
- package/dist/{chunk-DLPDX4EH.mjs → chunk-N7KENXCS.mjs} +10 -49
- package/dist/chunk-N7KENXCS.mjs.map +1 -0
- package/dist/chunk-RAYUJODN.mjs +45 -0
- package/dist/chunk-RAYUJODN.mjs.map +1 -0
- package/dist/{chunk-4TP57ZL7.mjs → chunk-UHDYJBIX.mjs} +2 -2
- package/dist/{chunk-4ICKZHQA.mjs → chunk-WZPKYUSX.mjs} +361 -2328
- package/dist/chunk-WZPKYUSX.mjs.map +1 -0
- package/dist/{contactUs-CiXFYse5.d.ts → contactUs-Bwxzw-cB.d.ts} +1 -1
- package/dist/{contactUs-HPydW6BR.d.mts → contactUs-b5SfvqmJ.d.mts} +1 -1
- package/dist/enums/index.cjs +2 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +3 -1
- package/dist/enums/index.d.ts +3 -1
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +7 -5
- package/dist/{global-Dq6A7pNV.d.mts → global-959zf6qy.d.mts} +1 -1
- package/dist/{global-B2jacmZB.d.ts → global-wVC9VaCx.d.ts} +1 -1
- package/dist/graphql/index.cjs +2 -844
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +4 -3
- package/dist/graphql/index.d.ts +4 -3
- package/dist/graphql/index.mjs +23 -21
- package/dist/hooks/index.cjs +5 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -3
- package/dist/hooks/index.d.ts +4 -3
- package/dist/hooks/index.mjs +15 -12
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +4 -844
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +3 -843
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-DUR5JaaB.d.ts → resourceActivities-ChZcl5wJ.d.ts} +1 -1
- package/dist/{resourceActivities-BCZ6HU7U.d.mts → resourceActivities-ZPT9JlfH.d.mts} +1 -1
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/subscription-BU8GvH2K.d.ts +12 -0
- package/dist/subscription-bmAdrnfi.d.mts +12 -0
- package/dist/types/index.d.mts +9 -16
- package/dist/types/index.d.ts +9 -16
- package/dist/types/index.mjs +7 -5
- package/dist/user-CCN2IPDV.d.ts +124 -0
- package/dist/user-CadKvubI.d.mts +124 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +8 -5
- package/package.json +25 -9
- package/dist/chunk-4ICKZHQA.mjs.map +0 -1
- package/dist/chunk-DLPDX4EH.mjs.map +0 -1
- package/dist/chunk-LETM2YHF.mjs.map +0 -1
- package/dist/chunk-POXARN2X.mjs.map +0 -1
- /package/dist/{chunk-LKMJ75YV.mjs.map → chunk-EUOLQ7SS.mjs.map} +0 -0
- /package/dist/{chunk-GJO7X2Y4.mjs.map → chunk-IREUJYMR.mjs.map} +0 -0
- /package/dist/{chunk-4TP57ZL7.mjs.map → chunk-UHDYJBIX.mjs.map} +0 -0
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
import { EnumOSPlatform, EnumUserRole, EnumReward, EnumSubscriptionStatus, EnumUserLicence, EnumNotificationResourceType, EnumResourceType } 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 } from './global-959zf6qy.mjs';
|
|
3
|
+
|
|
4
|
+
type UserFormData = {
|
|
5
|
+
_id?: string;
|
|
6
|
+
active: boolean;
|
|
7
|
+
avatar?: ResourceImageType | null;
|
|
8
|
+
avatarUpload?: ResourceImageType | null;
|
|
9
|
+
confirmPassword?: string | null;
|
|
10
|
+
email: string;
|
|
11
|
+
firstName: string;
|
|
12
|
+
isTester: boolean;
|
|
13
|
+
lastName: string;
|
|
14
|
+
location?: LocationType | null;
|
|
15
|
+
password?: string | null;
|
|
16
|
+
platform?: EnumOSPlatform;
|
|
17
|
+
preferredRegion: string;
|
|
18
|
+
role: EnumUserRole;
|
|
19
|
+
termsAgreement?: TermsAgreement | null;
|
|
20
|
+
};
|
|
21
|
+
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
22
|
+
type UserActivityEvent = {
|
|
23
|
+
resourceId: string;
|
|
24
|
+
dateTime: DateTimeType;
|
|
25
|
+
};
|
|
26
|
+
type StripeSubscription = {
|
|
27
|
+
customerId?: string;
|
|
28
|
+
subscriptionId?: string;
|
|
29
|
+
status?: EnumSubscriptionStatus;
|
|
30
|
+
currentPlan?: EnumUserLicence;
|
|
31
|
+
startDate?: string;
|
|
32
|
+
endDate?: string;
|
|
33
|
+
};
|
|
34
|
+
type SubscriptionStatusData = {
|
|
35
|
+
subscriptionId: string | null;
|
|
36
|
+
status: EnumSubscriptionStatus;
|
|
37
|
+
priceId: string | null;
|
|
38
|
+
currentPlan: EnumUserLicence | null;
|
|
39
|
+
};
|
|
40
|
+
type SubscriptionPricingData = {
|
|
41
|
+
basePrice: number;
|
|
42
|
+
discountedPrice: number | null;
|
|
43
|
+
hasDiscount: boolean;
|
|
44
|
+
discountPercent: number | null;
|
|
45
|
+
discountAmount: number | null;
|
|
46
|
+
currency: string;
|
|
47
|
+
formattedBasePrice: string;
|
|
48
|
+
formattedDiscountedPrice: string | null;
|
|
49
|
+
};
|
|
50
|
+
type SubscriptionPlanData = {
|
|
51
|
+
name: string;
|
|
52
|
+
description: string | null;
|
|
53
|
+
licenceType: EnumUserLicence;
|
|
54
|
+
billingPeriod: string;
|
|
55
|
+
stripeProductId: string;
|
|
56
|
+
stripePriceId: string;
|
|
57
|
+
isEligibleForDiscount: boolean;
|
|
58
|
+
pricing: SubscriptionPricingData;
|
|
59
|
+
};
|
|
60
|
+
type SubscriptionPlansResponse = {
|
|
61
|
+
plans: SubscriptionPlanData[];
|
|
62
|
+
isNewUser: boolean;
|
|
63
|
+
isTester: boolean;
|
|
64
|
+
appliedDiscountType: string;
|
|
65
|
+
};
|
|
66
|
+
type UserActivity = {
|
|
67
|
+
favourites: {
|
|
68
|
+
events: string[];
|
|
69
|
+
vendors: string[];
|
|
70
|
+
partners: string[];
|
|
71
|
+
};
|
|
72
|
+
going: {
|
|
73
|
+
events: UserActivityEvent[];
|
|
74
|
+
};
|
|
75
|
+
interested: {
|
|
76
|
+
events: UserActivityEvent[];
|
|
77
|
+
};
|
|
78
|
+
present: {
|
|
79
|
+
events: UserActivityEvent[];
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
type RedeemRewardInput = {
|
|
83
|
+
reward: EnumReward;
|
|
84
|
+
};
|
|
85
|
+
type RedeemRewardResponse = {
|
|
86
|
+
userId: string;
|
|
87
|
+
message: string;
|
|
88
|
+
};
|
|
89
|
+
type RedeemedReward = {
|
|
90
|
+
name: EnumReward;
|
|
91
|
+
pointsUsed: number;
|
|
92
|
+
redeemedAt: Date;
|
|
93
|
+
};
|
|
94
|
+
type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
|
|
95
|
+
_id: string;
|
|
96
|
+
affiliate?: string | null;
|
|
97
|
+
associates?: AssociateType[] | null;
|
|
98
|
+
createdAt: Date;
|
|
99
|
+
deletedAt: Date | null;
|
|
100
|
+
events: string[] | null;
|
|
101
|
+
game: string | null;
|
|
102
|
+
licences: UserLicenceType[] | null;
|
|
103
|
+
overallPoints: number | null;
|
|
104
|
+
partner: string | null;
|
|
105
|
+
promoCodes?: PromoCodeType[] | null;
|
|
106
|
+
redeemedRewards?: RedeemedReward[] | null;
|
|
107
|
+
refreshToken: string | null;
|
|
108
|
+
school: string | null;
|
|
109
|
+
stripe?: StripeSubscription;
|
|
110
|
+
updatedAt: Date | null;
|
|
111
|
+
userActivity: UserActivity | null;
|
|
112
|
+
vendor: string | null;
|
|
113
|
+
emailSentFor?: EnumNotificationResourceType[] | 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
|
+
export type { CreateUserFormData as C, RedeemRewardResponse as R, SafeUserType as S, UserFormData as U, ResourceByUser as a, SubscriptionPlansResponse as b, SubscriptionStatusData as c, RedeemRewardInput as d, RedeemedReward as e, StripeSubscription as f, SubscriptionPlanData as g, SubscriptionPricingData as h, UserActivity as i, UserActivityEvent as j, UserType as k };
|