@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
|
@@ -1,126 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.js';
|
|
2
|
+
import { D as BaseResourceType, L as LocationType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, H as CreateFormData, at as ResourceContactDetailsType, av as ResourceImageType, aw as SocialMediaType, aA as TermsAgreement, a6 as OwnerType, ak as PromoCodeType } from './global-wVC9VaCx.js';
|
|
3
3
|
import { PosterAssetId } from './images/index.js';
|
|
4
|
-
|
|
5
|
-
type UserFormData = {
|
|
6
|
-
_id?: string;
|
|
7
|
-
active: boolean;
|
|
8
|
-
avatar?: ResourceImageType | null;
|
|
9
|
-
avatarUpload?: ResourceImageType | null;
|
|
10
|
-
confirmPassword?: string | null;
|
|
11
|
-
email: string;
|
|
12
|
-
firstName: string;
|
|
13
|
-
isTester: boolean;
|
|
14
|
-
lastName: string;
|
|
15
|
-
location?: LocationType | null;
|
|
16
|
-
password?: string | null;
|
|
17
|
-
platform?: EnumOSPlatform;
|
|
18
|
-
preferredRegion: string;
|
|
19
|
-
role: EnumUserRole;
|
|
20
|
-
termsAgreement?: TermsAgreement | null;
|
|
21
|
-
};
|
|
22
|
-
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
23
|
-
type UserActivityEvent = {
|
|
24
|
-
resourceId: string;
|
|
25
|
-
dateTime: DateTimeType;
|
|
26
|
-
};
|
|
27
|
-
type StripeSubscription = {
|
|
28
|
-
customerId?: string;
|
|
29
|
-
subscriptionId?: string;
|
|
30
|
-
status?: EnumSubscriptionStatus;
|
|
31
|
-
currentPlan?: EnumUserLicence;
|
|
32
|
-
startDate?: string;
|
|
33
|
-
endDate?: string;
|
|
34
|
-
};
|
|
35
|
-
type SubscriptionStatusData = {
|
|
36
|
-
subscriptionId: string | null;
|
|
37
|
-
status: EnumSubscriptionStatus;
|
|
38
|
-
priceId: string | null;
|
|
39
|
-
currentPlan: EnumUserLicence | null;
|
|
40
|
-
};
|
|
41
|
-
type SubscriptionPricingData = {
|
|
42
|
-
basePrice: number;
|
|
43
|
-
discountedPrice: number | null;
|
|
44
|
-
hasDiscount: boolean;
|
|
45
|
-
discountPercent: number | null;
|
|
46
|
-
discountAmount: number | null;
|
|
47
|
-
currency: string;
|
|
48
|
-
formattedBasePrice: string;
|
|
49
|
-
formattedDiscountedPrice: string | null;
|
|
50
|
-
};
|
|
51
|
-
type SubscriptionPlanData = {
|
|
52
|
-
name: string;
|
|
53
|
-
description: string | null;
|
|
54
|
-
licenceType: EnumUserLicence;
|
|
55
|
-
billingPeriod: string;
|
|
56
|
-
stripeProductId: string;
|
|
57
|
-
stripePriceId: string;
|
|
58
|
-
isEligibleForDiscount: boolean;
|
|
59
|
-
pricing: SubscriptionPricingData;
|
|
60
|
-
};
|
|
61
|
-
type SubscriptionPlansResponse = {
|
|
62
|
-
plans: SubscriptionPlanData[];
|
|
63
|
-
isNewUser: boolean;
|
|
64
|
-
isTester: boolean;
|
|
65
|
-
appliedDiscountType: string;
|
|
66
|
-
};
|
|
67
|
-
type UserActivity = {
|
|
68
|
-
favourites: {
|
|
69
|
-
events: string[];
|
|
70
|
-
vendors: string[];
|
|
71
|
-
partners: string[];
|
|
72
|
-
};
|
|
73
|
-
going: {
|
|
74
|
-
events: UserActivityEvent[];
|
|
75
|
-
};
|
|
76
|
-
interested: {
|
|
77
|
-
events: UserActivityEvent[];
|
|
78
|
-
};
|
|
79
|
-
present: {
|
|
80
|
-
events: UserActivityEvent[];
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
type RedeemRewardInput = {
|
|
84
|
-
reward: EnumReward;
|
|
85
|
-
};
|
|
86
|
-
type RedeemRewardResponse = {
|
|
87
|
-
userId: string;
|
|
88
|
-
message: string;
|
|
89
|
-
};
|
|
90
|
-
type RedeemedReward = {
|
|
91
|
-
name: EnumReward;
|
|
92
|
-
pointsUsed: number;
|
|
93
|
-
redeemedAt: Date;
|
|
94
|
-
};
|
|
95
|
-
type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
|
|
96
|
-
_id: string;
|
|
97
|
-
affiliate?: string | null;
|
|
98
|
-
associates?: AssociateType[] | null;
|
|
99
|
-
createdAt: Date;
|
|
100
|
-
deletedAt: Date | null;
|
|
101
|
-
events: string[] | null;
|
|
102
|
-
game: string | null;
|
|
103
|
-
licences: UserLicenceType[] | null;
|
|
104
|
-
overallPoints: number | null;
|
|
105
|
-
partner: string | null;
|
|
106
|
-
promoCodes?: PromoCodeType[] | null;
|
|
107
|
-
redeemedRewards?: RedeemedReward[] | null;
|
|
108
|
-
refreshToken: string | null;
|
|
109
|
-
school: string | null;
|
|
110
|
-
stripe?: StripeSubscription;
|
|
111
|
-
updatedAt: Date | null;
|
|
112
|
-
userActivity: UserActivity | null;
|
|
113
|
-
vendor: string | null;
|
|
114
|
-
emailSentFor?: EnumNotificationResourceType[] | null;
|
|
115
|
-
};
|
|
116
|
-
type SafeUserType = Omit<UserType, "password" | "refreshToken">;
|
|
117
|
-
type ResourceByUser = {
|
|
118
|
-
_id: string;
|
|
119
|
-
active: boolean;
|
|
120
|
-
logo: string;
|
|
121
|
-
name: string;
|
|
122
|
-
resourceType: EnumResourceType;
|
|
123
|
-
};
|
|
4
|
+
import { S as SafeUserType, U as UserFormData } from './user-CCN2IPDV.js';
|
|
124
5
|
|
|
125
6
|
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
126
7
|
location: LocationType;
|
|
@@ -362,4 +243,4 @@ interface AdType extends AdFormData {
|
|
|
362
243
|
updatedAt: Date | null;
|
|
363
244
|
}
|
|
364
245
|
|
|
365
|
-
export { type
|
|
246
|
+
export { type AuthPayloadType as A, type CreateAdFormData as B, type CreateLoginFormData as C, EnumAdShowOn as D, EnumAdStatus as E, EnumAdStyle as F, EnumAdType as G, EnumAffiliateParticipantType as H, EnumAffiliateRewardType as I, EnumVerificationType as J, type PosterInputType as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type RedeemHistoryType as N, type RegisterFormData as O, type PartnerType as P, type RequestPasswordResetFormData as Q, type RefreshTokenPayloadType as R, type SchoolReturnType as S, type ResetPasswordFormData as T, type SchoolCampaignType as U, type SchoolRegisteredUserType as V, type ValidateVerificationTokenFormData as W, type AdType as a, type AppSettingsType as b, type SchoolType as c, type AffiliateType as d, type CreateRegisterFormData as e, type CreateRequestPasswordResetFormData as f, type CreateValidateVerificationTokenFormData as g, type CreateResetPasswordFormData as h, type AffiliateFormData as i, type PartnerFormData as j, type AdFormData as k, type CreateAdFormState as l, type CreatePartnerFormData as m, type AppSettingsFormData as n, type CreateAppSettingsFormData as o, type SchoolFormData as p, type CreateSchoolFormData as q, type CreateAffiliateFormData as r, type AdFormState as s, type AdResource as t, type AffiliateBankAccountDetailsType as u, type AffiliateContactDetails as v, type AffiliateDetailsType as w, type AffiliateResourceType as x, type AffiliateRewardType as y, type AffiliateUserDefaultFields as z };
|
|
@@ -1,126 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { EnumPartnerType, EnumResourceType, EnumOSPlatform } from './enums/index.mjs';
|
|
2
|
+
import { D as BaseResourceType, L as LocationType, ax as SocialShareResourceType, B as BaseResourceTypeFormData, H as CreateFormData, at as ResourceContactDetailsType, av as ResourceImageType, aw as SocialMediaType, aA as TermsAgreement, a6 as OwnerType, ak as PromoCodeType } from './global-959zf6qy.mjs';
|
|
3
3
|
import { PosterAssetId } from './images/index.mjs';
|
|
4
|
-
|
|
5
|
-
type UserFormData = {
|
|
6
|
-
_id?: string;
|
|
7
|
-
active: boolean;
|
|
8
|
-
avatar?: ResourceImageType | null;
|
|
9
|
-
avatarUpload?: ResourceImageType | null;
|
|
10
|
-
confirmPassword?: string | null;
|
|
11
|
-
email: string;
|
|
12
|
-
firstName: string;
|
|
13
|
-
isTester: boolean;
|
|
14
|
-
lastName: string;
|
|
15
|
-
location?: LocationType | null;
|
|
16
|
-
password?: string | null;
|
|
17
|
-
platform?: EnumOSPlatform;
|
|
18
|
-
preferredRegion: string;
|
|
19
|
-
role: EnumUserRole;
|
|
20
|
-
termsAgreement?: TermsAgreement | null;
|
|
21
|
-
};
|
|
22
|
-
type CreateUserFormData = CreateFormData<UserFormData>;
|
|
23
|
-
type UserActivityEvent = {
|
|
24
|
-
resourceId: string;
|
|
25
|
-
dateTime: DateTimeType;
|
|
26
|
-
};
|
|
27
|
-
type StripeSubscription = {
|
|
28
|
-
customerId?: string;
|
|
29
|
-
subscriptionId?: string;
|
|
30
|
-
status?: EnumSubscriptionStatus;
|
|
31
|
-
currentPlan?: EnumUserLicence;
|
|
32
|
-
startDate?: string;
|
|
33
|
-
endDate?: string;
|
|
34
|
-
};
|
|
35
|
-
type SubscriptionStatusData = {
|
|
36
|
-
subscriptionId: string | null;
|
|
37
|
-
status: EnumSubscriptionStatus;
|
|
38
|
-
priceId: string | null;
|
|
39
|
-
currentPlan: EnumUserLicence | null;
|
|
40
|
-
};
|
|
41
|
-
type SubscriptionPricingData = {
|
|
42
|
-
basePrice: number;
|
|
43
|
-
discountedPrice: number | null;
|
|
44
|
-
hasDiscount: boolean;
|
|
45
|
-
discountPercent: number | null;
|
|
46
|
-
discountAmount: number | null;
|
|
47
|
-
currency: string;
|
|
48
|
-
formattedBasePrice: string;
|
|
49
|
-
formattedDiscountedPrice: string | null;
|
|
50
|
-
};
|
|
51
|
-
type SubscriptionPlanData = {
|
|
52
|
-
name: string;
|
|
53
|
-
description: string | null;
|
|
54
|
-
licenceType: EnumUserLicence;
|
|
55
|
-
billingPeriod: string;
|
|
56
|
-
stripeProductId: string;
|
|
57
|
-
stripePriceId: string;
|
|
58
|
-
isEligibleForDiscount: boolean;
|
|
59
|
-
pricing: SubscriptionPricingData;
|
|
60
|
-
};
|
|
61
|
-
type SubscriptionPlansResponse = {
|
|
62
|
-
plans: SubscriptionPlanData[];
|
|
63
|
-
isNewUser: boolean;
|
|
64
|
-
isTester: boolean;
|
|
65
|
-
appliedDiscountType: string;
|
|
66
|
-
};
|
|
67
|
-
type UserActivity = {
|
|
68
|
-
favourites: {
|
|
69
|
-
events: string[];
|
|
70
|
-
vendors: string[];
|
|
71
|
-
partners: string[];
|
|
72
|
-
};
|
|
73
|
-
going: {
|
|
74
|
-
events: UserActivityEvent[];
|
|
75
|
-
};
|
|
76
|
-
interested: {
|
|
77
|
-
events: UserActivityEvent[];
|
|
78
|
-
};
|
|
79
|
-
present: {
|
|
80
|
-
events: UserActivityEvent[];
|
|
81
|
-
};
|
|
82
|
-
};
|
|
83
|
-
type RedeemRewardInput = {
|
|
84
|
-
reward: EnumReward;
|
|
85
|
-
};
|
|
86
|
-
type RedeemRewardResponse = {
|
|
87
|
-
userId: string;
|
|
88
|
-
message: string;
|
|
89
|
-
};
|
|
90
|
-
type RedeemedReward = {
|
|
91
|
-
name: EnumReward;
|
|
92
|
-
pointsUsed: number;
|
|
93
|
-
redeemedAt: Date;
|
|
94
|
-
};
|
|
95
|
-
type UserType = Omit<UserFormData, "confirmPassword" | "avatarUpload" | "_id"> & {
|
|
96
|
-
_id: string;
|
|
97
|
-
affiliate?: string | null;
|
|
98
|
-
associates?: AssociateType[] | null;
|
|
99
|
-
createdAt: Date;
|
|
100
|
-
deletedAt: Date | null;
|
|
101
|
-
events: string[] | null;
|
|
102
|
-
game: string | null;
|
|
103
|
-
licences: UserLicenceType[] | null;
|
|
104
|
-
overallPoints: number | null;
|
|
105
|
-
partner: string | null;
|
|
106
|
-
promoCodes?: PromoCodeType[] | null;
|
|
107
|
-
redeemedRewards?: RedeemedReward[] | null;
|
|
108
|
-
refreshToken: string | null;
|
|
109
|
-
school: string | null;
|
|
110
|
-
stripe?: StripeSubscription;
|
|
111
|
-
updatedAt: Date | null;
|
|
112
|
-
userActivity: UserActivity | null;
|
|
113
|
-
vendor: string | null;
|
|
114
|
-
emailSentFor?: EnumNotificationResourceType[] | null;
|
|
115
|
-
};
|
|
116
|
-
type SafeUserType = Omit<UserType, "password" | "refreshToken">;
|
|
117
|
-
type ResourceByUser = {
|
|
118
|
-
_id: string;
|
|
119
|
-
active: boolean;
|
|
120
|
-
logo: string;
|
|
121
|
-
name: string;
|
|
122
|
-
resourceType: EnumResourceType;
|
|
123
|
-
};
|
|
4
|
+
import { S as SafeUserType, U as UserFormData } from './user-CadKvubI.mjs';
|
|
124
5
|
|
|
125
6
|
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
126
7
|
location: LocationType;
|
|
@@ -362,4 +243,4 @@ interface AdType extends AdFormData {
|
|
|
362
243
|
updatedAt: Date | null;
|
|
363
244
|
}
|
|
364
245
|
|
|
365
|
-
export { type
|
|
246
|
+
export { type AuthPayloadType as A, type CreateAdFormData as B, type CreateLoginFormData as C, EnumAdShowOn as D, EnumAdStatus as E, EnumAdStyle as F, EnumAdType as G, EnumAffiliateParticipantType as H, EnumAffiliateRewardType as I, EnumVerificationType as J, type PosterInputType as K, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type RedeemHistoryType as N, type RegisterFormData as O, type PartnerType as P, type RequestPasswordResetFormData as Q, type RefreshTokenPayloadType as R, type SchoolReturnType as S, type ResetPasswordFormData as T, type SchoolCampaignType as U, type SchoolRegisteredUserType as V, type ValidateVerificationTokenFormData as W, type AdType as a, type AppSettingsType as b, type SchoolType as c, type AffiliateType as d, type CreateRegisterFormData as e, type CreateRequestPasswordResetFormData as f, type CreateValidateVerificationTokenFormData as g, type CreateResetPasswordFormData as h, type AffiliateFormData as i, type PartnerFormData as j, type AdFormData as k, type CreateAdFormState as l, type CreatePartnerFormData as m, type AppSettingsFormData as n, type CreateAppSettingsFormData as o, type SchoolFormData as p, type CreateSchoolFormData as q, type CreateAffiliateFormData as r, type AdFormState as s, type AdResource as t, type AffiliateBankAccountDetailsType as u, type AffiliateContactDetails as v, type AffiliateDetailsType as w, type AffiliateResourceType as x, type AffiliateRewardType as y, type AffiliateUserDefaultFields as z };
|