@timardex/cluemart-shared 1.7.0 → 1.7.1
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-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-HZMP7GXC.mjs → chunk-R6PCFOYO.mjs} +949 -2629
- package/dist/chunk-R6PCFOYO.mjs.map +1 -0
- 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 +694 -1251
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +423 -173
- package/dist/graphql/index.d.ts +423 -173
- package/dist/graphql/index.mjs +33 -21
- package/dist/hooks/index.cjs +937 -307
- 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 +1655 -1705
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +654 -240
- package/dist/index.d.ts +654 -240
- package/dist/index.mjs +1617 -1704
- 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
|
@@ -0,0 +1,181 @@
|
|
|
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, a7 as OwnerType, ak as PromoCodeType, M as MutationResponse } from './global-CUYYxpy2.js';
|
|
3
|
+
import { PosterAssetId } from './images/index.js';
|
|
4
|
+
import { S as SafeUserType } from './user-D47MLFyH.js';
|
|
5
|
+
|
|
6
|
+
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
7
|
+
location: LocationType;
|
|
8
|
+
nzbn: string;
|
|
9
|
+
partnerType: EnumPartnerType;
|
|
10
|
+
}
|
|
11
|
+
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
12
|
+
interface PartnerType extends BaseResourceType {
|
|
13
|
+
location: LocationType;
|
|
14
|
+
nzbn: string;
|
|
15
|
+
partnerType: EnumPartnerType;
|
|
16
|
+
sharePublic?: SocialShareResourceType | null;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface AppSettingsFormData {
|
|
20
|
+
appVersion: string;
|
|
21
|
+
isOfflineMode: boolean;
|
|
22
|
+
minimumRedeemableAffiliatePoints: number;
|
|
23
|
+
}
|
|
24
|
+
type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
|
|
25
|
+
type AppSettingsType = AppSettingsFormData & {
|
|
26
|
+
_id: string;
|
|
27
|
+
activeSchoolsStudentCountTotal: number;
|
|
28
|
+
activeSchoolsStudentCountUpdatedAt: Date;
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
key: string;
|
|
31
|
+
updatedAt: Date | null;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
interface PosterInputType {
|
|
35
|
+
description: string;
|
|
36
|
+
posterName: PosterAssetId;
|
|
37
|
+
resourceId: string;
|
|
38
|
+
resourceType: EnumResourceType;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface SchoolFormData {
|
|
42
|
+
_id?: string;
|
|
43
|
+
active: boolean;
|
|
44
|
+
contactDetails: ResourceContactDetailsType | null;
|
|
45
|
+
location: LocationType;
|
|
46
|
+
logo?: ResourceImageType | null;
|
|
47
|
+
logoUpload?: ResourceImageType | null;
|
|
48
|
+
name: string;
|
|
49
|
+
region: string;
|
|
50
|
+
studentCount: number;
|
|
51
|
+
socialMedia: SocialMediaType[] | null;
|
|
52
|
+
termsAgreement?: TermsAgreement | null;
|
|
53
|
+
}
|
|
54
|
+
type CreateSchoolFormData = CreateFormData<SchoolFormData>;
|
|
55
|
+
type SchoolCampaignType = {
|
|
56
|
+
endDate: Date;
|
|
57
|
+
name: string;
|
|
58
|
+
startDate: Date;
|
|
59
|
+
};
|
|
60
|
+
type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
|
|
61
|
+
_id: string;
|
|
62
|
+
approvedAt?: Date | null;
|
|
63
|
+
campaigns: SchoolCampaignType[];
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
deletedAt: Date | null;
|
|
66
|
+
overallPoints: number | null;
|
|
67
|
+
owner: OwnerType;
|
|
68
|
+
ranking: number | null;
|
|
69
|
+
schoolCode: PromoCodeType;
|
|
70
|
+
updatedAt: Date | null;
|
|
71
|
+
};
|
|
72
|
+
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
|
|
73
|
+
type SchoolReturnType = {
|
|
74
|
+
school: SchoolType;
|
|
75
|
+
users: SchoolRegisteredUserType[];
|
|
76
|
+
};
|
|
77
|
+
type MarketingMaterialRequestInputType = Pick<PosterInputType, "resourceId" | "posterName">;
|
|
78
|
+
|
|
79
|
+
declare enum EnumVerificationType {
|
|
80
|
+
REGISTER = "register",
|
|
81
|
+
RESET_PASSWORD = "resetPassword"
|
|
82
|
+
}
|
|
83
|
+
type LoginFormData = {
|
|
84
|
+
email: string;
|
|
85
|
+
isAdminPage?: boolean;
|
|
86
|
+
password: string;
|
|
87
|
+
platform?: EnumOSPlatform;
|
|
88
|
+
};
|
|
89
|
+
type CreateLoginFormData = CreateFormData<LoginFormData>;
|
|
90
|
+
type RegisterFormData = {
|
|
91
|
+
email: string;
|
|
92
|
+
firstName: string;
|
|
93
|
+
lastName: string;
|
|
94
|
+
password: string;
|
|
95
|
+
platform?: EnumOSPlatform;
|
|
96
|
+
preferredRegion: string;
|
|
97
|
+
promoCode?: PromoCodeType | null;
|
|
98
|
+
termsAgreement?: TermsAgreement | null;
|
|
99
|
+
};
|
|
100
|
+
type CreateRegisterFormData = CreateFormData<RegisterFormData>;
|
|
101
|
+
type RequestPasswordResetFormData = {
|
|
102
|
+
email: string;
|
|
103
|
+
};
|
|
104
|
+
type CreateRequestPasswordResetFormData = CreateFormData<RequestPasswordResetFormData>;
|
|
105
|
+
type ResetPasswordFormData = {
|
|
106
|
+
confirmPassword: string;
|
|
107
|
+
email: string;
|
|
108
|
+
password: string;
|
|
109
|
+
};
|
|
110
|
+
type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;
|
|
111
|
+
type ValidateVerificationTokenFormData = {
|
|
112
|
+
email: string;
|
|
113
|
+
verificationToken: string;
|
|
114
|
+
verificationType?: EnumVerificationType;
|
|
115
|
+
};
|
|
116
|
+
type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
|
|
117
|
+
type AuthPayloadType = {
|
|
118
|
+
refreshToken: string | null;
|
|
119
|
+
token: string;
|
|
120
|
+
user: SafeUserType;
|
|
121
|
+
};
|
|
122
|
+
type AuthMutationResponse = MutationResponse<AuthPayloadType>;
|
|
123
|
+
type RefreshTokenPayloadType = {
|
|
124
|
+
refreshToken: string;
|
|
125
|
+
token: string;
|
|
126
|
+
};
|
|
127
|
+
type RefreshTokenMutationResponse = MutationResponse<RefreshTokenPayloadType>;
|
|
128
|
+
|
|
129
|
+
declare enum EnumAdShowOn {
|
|
130
|
+
EVENTS_PAGE = "Events_page",
|
|
131
|
+
FRONT_PAGE = "Front_page",
|
|
132
|
+
PARTNERS_PAGE = "Partners_page",
|
|
133
|
+
VENDORS_PAGE = "Vendors_page"
|
|
134
|
+
}
|
|
135
|
+
declare enum EnumAdStatus {
|
|
136
|
+
ACTIVE = "Active",
|
|
137
|
+
PAUSED = "Paused",
|
|
138
|
+
EXPIRED = "Expired"
|
|
139
|
+
}
|
|
140
|
+
declare enum EnumAdType {
|
|
141
|
+
SPONSORED = "Sponsored",
|
|
142
|
+
FREE = "Free"
|
|
143
|
+
}
|
|
144
|
+
declare enum EnumAdStyle {
|
|
145
|
+
BLOOM = "Bloom",
|
|
146
|
+
RISE = "Rise"
|
|
147
|
+
}
|
|
148
|
+
type AdResource = {
|
|
149
|
+
adDescription: string;
|
|
150
|
+
adImage: string;
|
|
151
|
+
adStyle: EnumAdStyle;
|
|
152
|
+
adTitle: string;
|
|
153
|
+
adType: EnumAdType;
|
|
154
|
+
resourceId: string;
|
|
155
|
+
resourceName: string;
|
|
156
|
+
resourceRegion: string;
|
|
157
|
+
resourceType: EnumResourceType;
|
|
158
|
+
resourceSlug: string;
|
|
159
|
+
};
|
|
160
|
+
interface AdFormData {
|
|
161
|
+
active: boolean;
|
|
162
|
+
end: Date;
|
|
163
|
+
resource: AdResource;
|
|
164
|
+
showOn: EnumAdShowOn[];
|
|
165
|
+
start?: Date;
|
|
166
|
+
status: EnumAdStatus;
|
|
167
|
+
targetRegion: string[];
|
|
168
|
+
}
|
|
169
|
+
type AdFormState = AdFormData;
|
|
170
|
+
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
171
|
+
type CreateAdFormState = CreateFormData<AdFormState>;
|
|
172
|
+
interface AdType extends AdFormData {
|
|
173
|
+
_id: string;
|
|
174
|
+
clicks?: number;
|
|
175
|
+
createdAt: Date;
|
|
176
|
+
impressions?: number;
|
|
177
|
+
start: Date;
|
|
178
|
+
updatedAt: Date | null;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export { type AuthMutationResponse as A, type RequestPasswordResetFormData as B, type CreateLoginFormData as C, type ResetPasswordFormData as D, EnumAdStatus as E, type SchoolCampaignType as F, type SchoolRegisteredUserType as G, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type PartnerType as P, type RefreshTokenMutationResponse as R, type SchoolType as S, type ValidateVerificationTokenFormData as V, type AdType as a, type AppSettingsType as b, type SchoolReturnType as c, type CreateRegisterFormData as d, type CreateRequestPasswordResetFormData as e, type CreateValidateVerificationTokenFormData as f, type CreateResetPasswordFormData as g, type PartnerFormData as h, type AdFormData as i, type CreateAdFormState as j, type CreatePartnerFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type SchoolFormData as n, type CreateSchoolFormData as o, type AdFormState as p, type AdResource as q, type AuthPayloadType as r, type CreateAdFormData as s, EnumAdShowOn as t, EnumAdStyle as u, EnumAdType as v, EnumVerificationType as w, type PosterInputType as x, type RefreshTokenPayloadType as y, type RegisterFormData as z };
|
|
@@ -0,0 +1,181 @@
|
|
|
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, a7 as OwnerType, ak as PromoCodeType, M as MutationResponse } from './global-DePDtOFt.mjs';
|
|
3
|
+
import { PosterAssetId } from './images/index.mjs';
|
|
4
|
+
import { S as SafeUserType } from './user-DE8edl3u.mjs';
|
|
5
|
+
|
|
6
|
+
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
7
|
+
location: LocationType;
|
|
8
|
+
nzbn: string;
|
|
9
|
+
partnerType: EnumPartnerType;
|
|
10
|
+
}
|
|
11
|
+
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
12
|
+
interface PartnerType extends BaseResourceType {
|
|
13
|
+
location: LocationType;
|
|
14
|
+
nzbn: string;
|
|
15
|
+
partnerType: EnumPartnerType;
|
|
16
|
+
sharePublic?: SocialShareResourceType | null;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
interface AppSettingsFormData {
|
|
20
|
+
appVersion: string;
|
|
21
|
+
isOfflineMode: boolean;
|
|
22
|
+
minimumRedeemableAffiliatePoints: number;
|
|
23
|
+
}
|
|
24
|
+
type CreateAppSettingsFormData = CreateFormData<AppSettingsFormData>;
|
|
25
|
+
type AppSettingsType = AppSettingsFormData & {
|
|
26
|
+
_id: string;
|
|
27
|
+
activeSchoolsStudentCountTotal: number;
|
|
28
|
+
activeSchoolsStudentCountUpdatedAt: Date;
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
key: string;
|
|
31
|
+
updatedAt: Date | null;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
interface PosterInputType {
|
|
35
|
+
description: string;
|
|
36
|
+
posterName: PosterAssetId;
|
|
37
|
+
resourceId: string;
|
|
38
|
+
resourceType: EnumResourceType;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
interface SchoolFormData {
|
|
42
|
+
_id?: string;
|
|
43
|
+
active: boolean;
|
|
44
|
+
contactDetails: ResourceContactDetailsType | null;
|
|
45
|
+
location: LocationType;
|
|
46
|
+
logo?: ResourceImageType | null;
|
|
47
|
+
logoUpload?: ResourceImageType | null;
|
|
48
|
+
name: string;
|
|
49
|
+
region: string;
|
|
50
|
+
studentCount: number;
|
|
51
|
+
socialMedia: SocialMediaType[] | null;
|
|
52
|
+
termsAgreement?: TermsAgreement | null;
|
|
53
|
+
}
|
|
54
|
+
type CreateSchoolFormData = CreateFormData<SchoolFormData>;
|
|
55
|
+
type SchoolCampaignType = {
|
|
56
|
+
endDate: Date;
|
|
57
|
+
name: string;
|
|
58
|
+
startDate: Date;
|
|
59
|
+
};
|
|
60
|
+
type SchoolType = Omit<SchoolFormData, "logoUpload"> & {
|
|
61
|
+
_id: string;
|
|
62
|
+
approvedAt?: Date | null;
|
|
63
|
+
campaigns: SchoolCampaignType[];
|
|
64
|
+
createdAt: Date;
|
|
65
|
+
deletedAt: Date | null;
|
|
66
|
+
overallPoints: number | null;
|
|
67
|
+
owner: OwnerType;
|
|
68
|
+
ranking: number | null;
|
|
69
|
+
schoolCode: PromoCodeType;
|
|
70
|
+
updatedAt: Date | null;
|
|
71
|
+
};
|
|
72
|
+
type SchoolRegisteredUserType = Pick<SafeUserType, "_id" | "firstName" | "lastName" | "avatar" | "email" | "active">;
|
|
73
|
+
type SchoolReturnType = {
|
|
74
|
+
school: SchoolType;
|
|
75
|
+
users: SchoolRegisteredUserType[];
|
|
76
|
+
};
|
|
77
|
+
type MarketingMaterialRequestInputType = Pick<PosterInputType, "resourceId" | "posterName">;
|
|
78
|
+
|
|
79
|
+
declare enum EnumVerificationType {
|
|
80
|
+
REGISTER = "register",
|
|
81
|
+
RESET_PASSWORD = "resetPassword"
|
|
82
|
+
}
|
|
83
|
+
type LoginFormData = {
|
|
84
|
+
email: string;
|
|
85
|
+
isAdminPage?: boolean;
|
|
86
|
+
password: string;
|
|
87
|
+
platform?: EnumOSPlatform;
|
|
88
|
+
};
|
|
89
|
+
type CreateLoginFormData = CreateFormData<LoginFormData>;
|
|
90
|
+
type RegisterFormData = {
|
|
91
|
+
email: string;
|
|
92
|
+
firstName: string;
|
|
93
|
+
lastName: string;
|
|
94
|
+
password: string;
|
|
95
|
+
platform?: EnumOSPlatform;
|
|
96
|
+
preferredRegion: string;
|
|
97
|
+
promoCode?: PromoCodeType | null;
|
|
98
|
+
termsAgreement?: TermsAgreement | null;
|
|
99
|
+
};
|
|
100
|
+
type CreateRegisterFormData = CreateFormData<RegisterFormData>;
|
|
101
|
+
type RequestPasswordResetFormData = {
|
|
102
|
+
email: string;
|
|
103
|
+
};
|
|
104
|
+
type CreateRequestPasswordResetFormData = CreateFormData<RequestPasswordResetFormData>;
|
|
105
|
+
type ResetPasswordFormData = {
|
|
106
|
+
confirmPassword: string;
|
|
107
|
+
email: string;
|
|
108
|
+
password: string;
|
|
109
|
+
};
|
|
110
|
+
type CreateResetPasswordFormData = CreateFormData<ResetPasswordFormData>;
|
|
111
|
+
type ValidateVerificationTokenFormData = {
|
|
112
|
+
email: string;
|
|
113
|
+
verificationToken: string;
|
|
114
|
+
verificationType?: EnumVerificationType;
|
|
115
|
+
};
|
|
116
|
+
type CreateValidateVerificationTokenFormData = CreateFormData<ValidateVerificationTokenFormData>;
|
|
117
|
+
type AuthPayloadType = {
|
|
118
|
+
refreshToken: string | null;
|
|
119
|
+
token: string;
|
|
120
|
+
user: SafeUserType;
|
|
121
|
+
};
|
|
122
|
+
type AuthMutationResponse = MutationResponse<AuthPayloadType>;
|
|
123
|
+
type RefreshTokenPayloadType = {
|
|
124
|
+
refreshToken: string;
|
|
125
|
+
token: string;
|
|
126
|
+
};
|
|
127
|
+
type RefreshTokenMutationResponse = MutationResponse<RefreshTokenPayloadType>;
|
|
128
|
+
|
|
129
|
+
declare enum EnumAdShowOn {
|
|
130
|
+
EVENTS_PAGE = "Events_page",
|
|
131
|
+
FRONT_PAGE = "Front_page",
|
|
132
|
+
PARTNERS_PAGE = "Partners_page",
|
|
133
|
+
VENDORS_PAGE = "Vendors_page"
|
|
134
|
+
}
|
|
135
|
+
declare enum EnumAdStatus {
|
|
136
|
+
ACTIVE = "Active",
|
|
137
|
+
PAUSED = "Paused",
|
|
138
|
+
EXPIRED = "Expired"
|
|
139
|
+
}
|
|
140
|
+
declare enum EnumAdType {
|
|
141
|
+
SPONSORED = "Sponsored",
|
|
142
|
+
FREE = "Free"
|
|
143
|
+
}
|
|
144
|
+
declare enum EnumAdStyle {
|
|
145
|
+
BLOOM = "Bloom",
|
|
146
|
+
RISE = "Rise"
|
|
147
|
+
}
|
|
148
|
+
type AdResource = {
|
|
149
|
+
adDescription: string;
|
|
150
|
+
adImage: string;
|
|
151
|
+
adStyle: EnumAdStyle;
|
|
152
|
+
adTitle: string;
|
|
153
|
+
adType: EnumAdType;
|
|
154
|
+
resourceId: string;
|
|
155
|
+
resourceName: string;
|
|
156
|
+
resourceRegion: string;
|
|
157
|
+
resourceType: EnumResourceType;
|
|
158
|
+
resourceSlug: string;
|
|
159
|
+
};
|
|
160
|
+
interface AdFormData {
|
|
161
|
+
active: boolean;
|
|
162
|
+
end: Date;
|
|
163
|
+
resource: AdResource;
|
|
164
|
+
showOn: EnumAdShowOn[];
|
|
165
|
+
start?: Date;
|
|
166
|
+
status: EnumAdStatus;
|
|
167
|
+
targetRegion: string[];
|
|
168
|
+
}
|
|
169
|
+
type AdFormState = AdFormData;
|
|
170
|
+
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
171
|
+
type CreateAdFormState = CreateFormData<AdFormState>;
|
|
172
|
+
interface AdType extends AdFormData {
|
|
173
|
+
_id: string;
|
|
174
|
+
clicks?: number;
|
|
175
|
+
createdAt: Date;
|
|
176
|
+
impressions?: number;
|
|
177
|
+
start: Date;
|
|
178
|
+
updatedAt: Date | null;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export { type AuthMutationResponse as A, type RequestPasswordResetFormData as B, type CreateLoginFormData as C, type ResetPasswordFormData as D, EnumAdStatus as E, type SchoolCampaignType as F, type SchoolRegisteredUserType as G, type LoginFormData as L, type MarketingMaterialRequestInputType as M, type PartnerType as P, type RefreshTokenMutationResponse as R, type SchoolType as S, type ValidateVerificationTokenFormData as V, type AdType as a, type AppSettingsType as b, type SchoolReturnType as c, type CreateRegisterFormData as d, type CreateRequestPasswordResetFormData as e, type CreateValidateVerificationTokenFormData as f, type CreateResetPasswordFormData as g, type PartnerFormData as h, type AdFormData as i, type CreateAdFormState as j, type CreatePartnerFormData as k, type AppSettingsFormData as l, type CreateAppSettingsFormData as m, type SchoolFormData as n, type CreateSchoolFormData as o, type AdFormState as p, type AdResource as q, type AuthPayloadType as r, type CreateAdFormData as s, EnumAdShowOn as t, EnumAdStyle as u, EnumAdType as v, EnumVerificationType as w, type PosterInputType as x, type RefreshTokenPayloadType as y, type RegisterFormData as z };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EnumResourceType } from './enums/index.mjs';
|
|
2
|
+
import { ak as PromoCodeType, L as LocationType, aw as SocialMediaType, a7 as OwnerType, H as CreateFormData } from './global-DePDtOFt.mjs';
|
|
3
|
+
import { U as UserFormData } from './user-DE8edl3u.mjs';
|
|
4
|
+
|
|
5
|
+
declare enum EnumAffiliateParticipantType {
|
|
6
|
+
INDIVIDUAL = "INDIVIDUAL",
|
|
7
|
+
SOLE_TRADER = "SOLE_TRADER",
|
|
8
|
+
COMPANY = "COMPANY"
|
|
9
|
+
}
|
|
10
|
+
type AffiliateContactDetails = {
|
|
11
|
+
mobilePhone: string;
|
|
12
|
+
};
|
|
13
|
+
type AffiliateBankAccountDetailsType = {
|
|
14
|
+
accountHolderName: string;
|
|
15
|
+
accountNumber: string;
|
|
16
|
+
};
|
|
17
|
+
type AffiliateUserDefaultFields = Pick<UserFormData, "email" | "firstName" | "lastName" | "termsAgreement">;
|
|
18
|
+
type AffiliateDetailsType = AffiliateUserDefaultFields & {
|
|
19
|
+
bankAccountDetails: AffiliateBankAccountDetailsType;
|
|
20
|
+
contactDetails: AffiliateContactDetails;
|
|
21
|
+
irdNumber: string;
|
|
22
|
+
location: LocationType;
|
|
23
|
+
participantType: EnumAffiliateParticipantType;
|
|
24
|
+
socialMedia: SocialMediaType[] | null;
|
|
25
|
+
};
|
|
26
|
+
declare enum EnumAffiliateRewardType {
|
|
27
|
+
ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS = "ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS",
|
|
28
|
+
ACTIVE_VENDOR_BONUS_REWARD = "ACTIVE_VENDOR_BONUS_REWARD",
|
|
29
|
+
ACTIVE_VENDOR_PRO_SUBSCRIPTION = "ACTIVE_VENDOR_PRO_SUBSCRIPTION",
|
|
30
|
+
ACTIVE_VENDOR_STANDARD_SUBSCRIPTION = "ACTIVE_VENDOR_STANDARD_SUBSCRIPTION",
|
|
31
|
+
NEW_EVENT_REGISTRATION = "NEW_EVENT_REGISTRATION",
|
|
32
|
+
NEW_VENDOR_REGISTRATION = "NEW_VENDOR_REGISTRATION"
|
|
33
|
+
}
|
|
34
|
+
type AffiliateRewardType = {
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
redeemedAt: Date | null;
|
|
37
|
+
rewardDescription: string;
|
|
38
|
+
rewardType: EnumAffiliateRewardType;
|
|
39
|
+
rewardValue: number;
|
|
40
|
+
};
|
|
41
|
+
type AffiliateResourceType = {
|
|
42
|
+
resourceActive: boolean;
|
|
43
|
+
resourceDeletedAt: Date | null;
|
|
44
|
+
resourceId: string;
|
|
45
|
+
resourceName: string;
|
|
46
|
+
resourceOwner: OwnerType;
|
|
47
|
+
resourceType: EnumResourceType;
|
|
48
|
+
rewards: AffiliateRewardType[];
|
|
49
|
+
};
|
|
50
|
+
type RedeemHistoryType = {
|
|
51
|
+
paidAt?: Date | null;
|
|
52
|
+
redeemedAt: Date;
|
|
53
|
+
rewardValue: number;
|
|
54
|
+
};
|
|
55
|
+
interface AffiliateType {
|
|
56
|
+
_id: string;
|
|
57
|
+
active: boolean;
|
|
58
|
+
approvedAt?: Date | null;
|
|
59
|
+
affiliateBonusRewards?: AffiliateRewardType[] | null;
|
|
60
|
+
affiliateCode: PromoCodeType | null;
|
|
61
|
+
affiliateDetails: AffiliateDetailsType | null;
|
|
62
|
+
affiliateResources: AffiliateResourceType[];
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
deletedAt: Date | null;
|
|
65
|
+
overallPoints: number;
|
|
66
|
+
owner: OwnerType;
|
|
67
|
+
redeemHistory?: RedeemHistoryType[] | null;
|
|
68
|
+
updatedAt: Date | null;
|
|
69
|
+
}
|
|
70
|
+
type AffiliateFormData = Omit<AffiliateDetailsType, "email" | "firstName" | "lastName">;
|
|
71
|
+
type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
|
|
72
|
+
|
|
73
|
+
export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateParticipantType as E, type RedeemHistoryType as R, type AffiliateFormData as a, type AffiliateBankAccountDetailsType as b, type AffiliateContactDetails as c, type AffiliateDetailsType as d, type AffiliateResourceType as e, type AffiliateRewardType as f, type AffiliateUserDefaultFields as g, EnumAffiliateRewardType as h };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { EnumResourceType } from './enums/index.js';
|
|
2
|
+
import { ak as PromoCodeType, L as LocationType, aw as SocialMediaType, a7 as OwnerType, H as CreateFormData } from './global-CUYYxpy2.js';
|
|
3
|
+
import { U as UserFormData } from './user-D47MLFyH.js';
|
|
4
|
+
|
|
5
|
+
declare enum EnumAffiliateParticipantType {
|
|
6
|
+
INDIVIDUAL = "INDIVIDUAL",
|
|
7
|
+
SOLE_TRADER = "SOLE_TRADER",
|
|
8
|
+
COMPANY = "COMPANY"
|
|
9
|
+
}
|
|
10
|
+
type AffiliateContactDetails = {
|
|
11
|
+
mobilePhone: string;
|
|
12
|
+
};
|
|
13
|
+
type AffiliateBankAccountDetailsType = {
|
|
14
|
+
accountHolderName: string;
|
|
15
|
+
accountNumber: string;
|
|
16
|
+
};
|
|
17
|
+
type AffiliateUserDefaultFields = Pick<UserFormData, "email" | "firstName" | "lastName" | "termsAgreement">;
|
|
18
|
+
type AffiliateDetailsType = AffiliateUserDefaultFields & {
|
|
19
|
+
bankAccountDetails: AffiliateBankAccountDetailsType;
|
|
20
|
+
contactDetails: AffiliateContactDetails;
|
|
21
|
+
irdNumber: string;
|
|
22
|
+
location: LocationType;
|
|
23
|
+
participantType: EnumAffiliateParticipantType;
|
|
24
|
+
socialMedia: SocialMediaType[] | null;
|
|
25
|
+
};
|
|
26
|
+
declare enum EnumAffiliateRewardType {
|
|
27
|
+
ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS = "ACTIVE_EVENT_WITH_VENDOR_REGISTRATIONS",
|
|
28
|
+
ACTIVE_VENDOR_BONUS_REWARD = "ACTIVE_VENDOR_BONUS_REWARD",
|
|
29
|
+
ACTIVE_VENDOR_PRO_SUBSCRIPTION = "ACTIVE_VENDOR_PRO_SUBSCRIPTION",
|
|
30
|
+
ACTIVE_VENDOR_STANDARD_SUBSCRIPTION = "ACTIVE_VENDOR_STANDARD_SUBSCRIPTION",
|
|
31
|
+
NEW_EVENT_REGISTRATION = "NEW_EVENT_REGISTRATION",
|
|
32
|
+
NEW_VENDOR_REGISTRATION = "NEW_VENDOR_REGISTRATION"
|
|
33
|
+
}
|
|
34
|
+
type AffiliateRewardType = {
|
|
35
|
+
createdAt: Date;
|
|
36
|
+
redeemedAt: Date | null;
|
|
37
|
+
rewardDescription: string;
|
|
38
|
+
rewardType: EnumAffiliateRewardType;
|
|
39
|
+
rewardValue: number;
|
|
40
|
+
};
|
|
41
|
+
type AffiliateResourceType = {
|
|
42
|
+
resourceActive: boolean;
|
|
43
|
+
resourceDeletedAt: Date | null;
|
|
44
|
+
resourceId: string;
|
|
45
|
+
resourceName: string;
|
|
46
|
+
resourceOwner: OwnerType;
|
|
47
|
+
resourceType: EnumResourceType;
|
|
48
|
+
rewards: AffiliateRewardType[];
|
|
49
|
+
};
|
|
50
|
+
type RedeemHistoryType = {
|
|
51
|
+
paidAt?: Date | null;
|
|
52
|
+
redeemedAt: Date;
|
|
53
|
+
rewardValue: number;
|
|
54
|
+
};
|
|
55
|
+
interface AffiliateType {
|
|
56
|
+
_id: string;
|
|
57
|
+
active: boolean;
|
|
58
|
+
approvedAt?: Date | null;
|
|
59
|
+
affiliateBonusRewards?: AffiliateRewardType[] | null;
|
|
60
|
+
affiliateCode: PromoCodeType | null;
|
|
61
|
+
affiliateDetails: AffiliateDetailsType | null;
|
|
62
|
+
affiliateResources: AffiliateResourceType[];
|
|
63
|
+
createdAt: Date;
|
|
64
|
+
deletedAt: Date | null;
|
|
65
|
+
overallPoints: number;
|
|
66
|
+
owner: OwnerType;
|
|
67
|
+
redeemHistory?: RedeemHistoryType[] | null;
|
|
68
|
+
updatedAt: Date | null;
|
|
69
|
+
}
|
|
70
|
+
type AffiliateFormData = Omit<AffiliateDetailsType, "email" | "firstName" | "lastName">;
|
|
71
|
+
type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
|
|
72
|
+
|
|
73
|
+
export { type AffiliateType as A, type CreateAffiliateFormData as C, EnumAffiliateParticipantType as E, type RedeemHistoryType as R, type AffiliateFormData as a, type AffiliateBankAccountDetailsType as b, type AffiliateContactDetails as c, type AffiliateDetailsType as d, type AffiliateResourceType as e, type AffiliateRewardType as f, type AffiliateUserDefaultFields as g, EnumAffiliateRewardType as h };
|