@timardex/cluemart-shared 1.6.11 → 1.6.130
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/affiliate-Bqqlffw8.d.mts +36 -0
- package/dist/affiliate-Btlp5XUp.d.ts +36 -0
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +118 -0
- package/dist/affiliateAdapters-C51ISmuA.d.ts +118 -0
- package/dist/apollo/index.d.mts +3 -3
- package/dist/apollo/index.d.ts +3 -3
- package/dist/auth/index.cjs +2546 -951
- package/dist/auth/index.cjs.map +1 -1
- package/dist/auth/index.d.mts +28 -30
- package/dist/auth/index.d.ts +28 -30
- package/dist/auth/index.mjs +24 -25
- package/dist/auth/index.mjs.map +1 -1
- package/dist/auth-BOmAO53v.d.ts +169 -0
- package/dist/auth-CsITA95p.d.mts +169 -0
- package/dist/{chunk-VPANTTZI.mjs → chunk-DATBGC2K.mjs} +108 -23
- package/dist/chunk-DATBGC2K.mjs.map +1 -0
- package/dist/chunk-DDHECBJR.mjs +726 -0
- package/dist/chunk-DDHECBJR.mjs.map +1 -0
- package/dist/chunk-INQCDU24.mjs +139 -0
- package/dist/chunk-INQCDU24.mjs.map +1 -0
- package/dist/{chunk-SD42WIMV.mjs → chunk-NWWKI4PJ.mjs} +5 -5
- package/dist/chunk-NWWKI4PJ.mjs.map +1 -0
- package/dist/{chunk-25SHNN4K.mjs → chunk-OHHJ3KJJ.mjs} +71 -71
- package/dist/chunk-OHHJ3KJJ.mjs.map +1 -0
- package/dist/chunk-TOEFAEF2.mjs +69 -0
- package/dist/chunk-TOEFAEF2.mjs.map +1 -0
- package/dist/chunk-UKW7NZEQ.mjs +2813 -0
- package/dist/chunk-UKW7NZEQ.mjs.map +1 -0
- package/dist/dailyClue-C6WXY73z.d.mts +105 -0
- package/dist/dailyClue-C6WXY73z.d.ts +105 -0
- package/dist/enums/index.cjs +2 -229
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +5 -170
- package/dist/enums/index.d.ts +5 -170
- package/dist/enums/index.mjs +1 -41
- package/dist/event-C9K7CSg4.d.ts +53 -0
- package/dist/event-W0NhL5Cd.d.mts +53 -0
- package/dist/formFields/index.cjs +284 -119
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +4 -2
- package/dist/formFields/index.d.ts +4 -2
- package/dist/formFields/index.mjs +919 -50
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-BbSFfYdd.d.ts +181 -0
- package/dist/global-C6v9tRji.d.mts +181 -0
- package/dist/graphql/index.cjs +2860 -2292
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +422 -469
- package/dist/graphql/index.d.ts +422 -469
- package/dist/graphql/index.mjs +2547 -160
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/graphql-CDOfA79A.d.ts +1253 -0
- package/dist/graphql-CcvzTs9k.d.mts +1253 -0
- package/dist/hooks/index.cjs +511 -3853
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +10 -9
- package/dist/hooks/index.d.ts +10 -9
- package/dist/hooks/index.mjs +54 -72
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/index.mjs +86 -21
- package/dist/images/index.mjs.map +1 -1
- package/dist/index.cjs +4414 -3175
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +2439 -1579
- package/dist/index.d.ts +2439 -1579
- package/dist/index.mjs +4350 -3128
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +3 -2
- package/dist/map/index.d.ts +3 -2
- package/dist/resourceActivities-CS8YRIIL.d.mts +89 -0
- package/dist/resourceActivities-DOdNPkhW.d.ts +89 -0
- package/dist/sharing/index.cjs +23 -19
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +16 -3
- package/dist/sharing/index.d.ts +16 -3
- package/dist/sharing/index.mjs +183 -29
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/subscription-Cj_qBA7u.d.mts +20 -0
- package/dist/subscription-OiJ50uJb.d.ts +20 -0
- package/dist/theme/index.mjs +41 -5
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +868 -123
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +234 -15
- package/dist/types/index.d.ts +234 -15
- package/dist/types/index.mjs +61 -31
- package/dist/utils/index.cjs +292 -124
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +25 -23
- package/dist/utils/index.d.ts +25 -23
- package/dist/utils/index.mjs +6 -5
- package/dist/vendor-DmMi2qmx.d.mts +73 -0
- package/dist/vendor-M9hVZlni.d.ts +73 -0
- package/package.json +10 -3
- package/dist/ad-BUYzE6zx.d.ts +0 -181
- package/dist/ad-BhLoEul3.d.mts +0 -181
- package/dist/affiliate-BbtjeUP4.d.mts +0 -73
- package/dist/affiliate-C51nzKsw.d.ts +0 -73
- package/dist/chunk-25SHNN4K.mjs.map +0 -1
- package/dist/chunk-32MKHJTX.mjs +0 -1207
- package/dist/chunk-32MKHJTX.mjs.map +0 -1
- package/dist/chunk-AYO3E4DM.mjs +0 -224
- package/dist/chunk-AYO3E4DM.mjs.map +0 -1
- package/dist/chunk-BIJ5NDXW.mjs +0 -962
- package/dist/chunk-BIJ5NDXW.mjs.map +0 -1
- package/dist/chunk-DQ7ZHIXW.mjs +0 -26
- package/dist/chunk-DQ7ZHIXW.mjs.map +0 -1
- package/dist/chunk-ILILH7E2.mjs +0 -219
- package/dist/chunk-ILILH7E2.mjs.map +0 -1
- package/dist/chunk-NPFJ2CN2.mjs +0 -109
- package/dist/chunk-NPFJ2CN2.mjs.map +0 -1
- package/dist/chunk-R6PCFOYO.mjs +0 -3650
- package/dist/chunk-R6PCFOYO.mjs.map +0 -1
- package/dist/chunk-SD42WIMV.mjs.map +0 -1
- package/dist/chunk-VA5YN2K3.mjs +0 -48
- package/dist/chunk-VA5YN2K3.mjs.map +0 -1
- package/dist/chunk-VPANTTZI.mjs.map +0 -1
- package/dist/chunk-X3OLM35T.mjs +0 -278
- package/dist/chunk-X3OLM35T.mjs.map +0 -1
- package/dist/contactUs--NoohZBu.d.ts +0 -11
- package/dist/contactUs-CBWzefUS.d.mts +0 -11
- package/dist/global-CUYYxpy2.d.ts +0 -699
- package/dist/global-DePDtOFt.d.mts +0 -699
- package/dist/resourceActivities-CMUcn2P7.d.ts +0 -130
- package/dist/resourceActivities-CwbJFGIp.d.mts +0 -130
- package/dist/subscription-BU8GvH2K.d.ts +0 -12
- package/dist/subscription-bmAdrnfi.d.mts +0 -12
- package/dist/user-D47MLFyH.d.ts +0 -134
- package/dist/user-DE8edl3u.d.mts +0 -134
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { L as LocationType, A as AffiliateParticipantTypeEnum, b as AffiliateRewardEnumType } from './graphql-CcvzTs9k.mjs';
|
|
2
|
+
import { S as SocialMediaType, T as TermsAgreement, a as CreateFormData } from './global-C6v9tRji.mjs';
|
|
3
|
+
|
|
4
|
+
/** Form-only contact shape (same fields as GraphQL AffiliateContactDetailsType). */
|
|
5
|
+
type AffiliateContactDetails = {
|
|
6
|
+
mobilePhone: string;
|
|
7
|
+
};
|
|
8
|
+
/** Form-only bank account shape (same fields as GraphQL AffiliateBankAccountDetailsType). */
|
|
9
|
+
type AffiliateBankAccountDetailsForm = {
|
|
10
|
+
accountHolderName: string;
|
|
11
|
+
accountNumber: string;
|
|
12
|
+
};
|
|
13
|
+
type AffiliateFormData = {
|
|
14
|
+
bankAccountDetails: AffiliateBankAccountDetailsForm;
|
|
15
|
+
contactDetails: AffiliateContactDetails;
|
|
16
|
+
irdNumber: string;
|
|
17
|
+
location: LocationType;
|
|
18
|
+
participantType: AffiliateParticipantTypeEnum;
|
|
19
|
+
socialMedia: SocialMediaType[] | null;
|
|
20
|
+
termsAgreement?: TermsAgreement | null;
|
|
21
|
+
};
|
|
22
|
+
type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
|
|
23
|
+
/**
|
|
24
|
+
* Write-side reward document for mongoose `$push` / `createAffiliateReward`.
|
|
25
|
+
* GraphQL `AffiliateRewardType` serializes dates as ISO strings; this shape
|
|
26
|
+
* keeps JS Date for persistence. Dual-shape — do not collapse.
|
|
27
|
+
*/
|
|
28
|
+
type AffiliateRewardWriteType = {
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
redeemedAt: Date | null;
|
|
31
|
+
rewardDescription: string;
|
|
32
|
+
rewardType: AffiliateRewardEnumType;
|
|
33
|
+
rewardValue: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type { AffiliateFormData as A, CreateAffiliateFormData as C, AffiliateBankAccountDetailsForm as a, AffiliateContactDetails as b, AffiliateRewardWriteType as c };
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { L as LocationType, A as AffiliateParticipantTypeEnum, b as AffiliateRewardEnumType } from './graphql-CDOfA79A.js';
|
|
2
|
+
import { S as SocialMediaType, T as TermsAgreement, a as CreateFormData } from './global-BbSFfYdd.js';
|
|
3
|
+
|
|
4
|
+
/** Form-only contact shape (same fields as GraphQL AffiliateContactDetailsType). */
|
|
5
|
+
type AffiliateContactDetails = {
|
|
6
|
+
mobilePhone: string;
|
|
7
|
+
};
|
|
8
|
+
/** Form-only bank account shape (same fields as GraphQL AffiliateBankAccountDetailsType). */
|
|
9
|
+
type AffiliateBankAccountDetailsForm = {
|
|
10
|
+
accountHolderName: string;
|
|
11
|
+
accountNumber: string;
|
|
12
|
+
};
|
|
13
|
+
type AffiliateFormData = {
|
|
14
|
+
bankAccountDetails: AffiliateBankAccountDetailsForm;
|
|
15
|
+
contactDetails: AffiliateContactDetails;
|
|
16
|
+
irdNumber: string;
|
|
17
|
+
location: LocationType;
|
|
18
|
+
participantType: AffiliateParticipantTypeEnum;
|
|
19
|
+
socialMedia: SocialMediaType[] | null;
|
|
20
|
+
termsAgreement?: TermsAgreement | null;
|
|
21
|
+
};
|
|
22
|
+
type CreateAffiliateFormData = CreateFormData<AffiliateFormData>;
|
|
23
|
+
/**
|
|
24
|
+
* Write-side reward document for mongoose `$push` / `createAffiliateReward`.
|
|
25
|
+
* GraphQL `AffiliateRewardType` serializes dates as ISO strings; this shape
|
|
26
|
+
* keeps JS Date for persistence. Dual-shape — do not collapse.
|
|
27
|
+
*/
|
|
28
|
+
type AffiliateRewardWriteType = {
|
|
29
|
+
createdAt: Date;
|
|
30
|
+
redeemedAt: Date | null;
|
|
31
|
+
rewardDescription: string;
|
|
32
|
+
rewardType: AffiliateRewardEnumType;
|
|
33
|
+
rewardValue: number;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type { AffiliateFormData as A, CreateAffiliateFormData as C, AffiliateBankAccountDetailsForm as a, AffiliateContactDetails as b, AffiliateRewardWriteType as c };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { a as CreateFormData, B as BaseResourceTypeFormData, c as ResourceContactDetailsType, S as SocialMediaType, T as TermsAgreement, P as PromoCodeType } from './global-C6v9tRji.mjs';
|
|
2
|
+
import { t as AdResourceType, u as AdShowOnEnum, v as AdStatusTypeEnum, L as LocationType, w as PartnerEnumType, B as BaseGameType, R as ResourceImageType, x as PostContentEnum, g as PostTypeEnum, y as PostResourceType, z as AffiliateType } from './graphql-CcvzTs9k.mjs';
|
|
3
|
+
import { A as AffiliateFormData } from './affiliate-Bqqlffw8.mjs';
|
|
4
|
+
|
|
5
|
+
type ContactUsFormData = {
|
|
6
|
+
email: string;
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
|
|
12
|
+
|
|
13
|
+
interface AdFormData {
|
|
14
|
+
active: boolean;
|
|
15
|
+
end: Date;
|
|
16
|
+
resource: AdResourceType;
|
|
17
|
+
showOn: AdShowOnEnum[];
|
|
18
|
+
start?: Date;
|
|
19
|
+
status: AdStatusTypeEnum;
|
|
20
|
+
targetRegion: string[];
|
|
21
|
+
}
|
|
22
|
+
type AdFormState = AdFormData;
|
|
23
|
+
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
24
|
+
type CreateAdFormState = CreateFormData<AdFormState>;
|
|
25
|
+
|
|
26
|
+
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
27
|
+
location: LocationType;
|
|
28
|
+
nzbn: string;
|
|
29
|
+
partnerType: PartnerEnumType;
|
|
30
|
+
}
|
|
31
|
+
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
32
|
+
|
|
33
|
+
type PostFileInput = {
|
|
34
|
+
source: File;
|
|
35
|
+
title?: string;
|
|
36
|
+
};
|
|
37
|
+
type PostContentTextarea = {
|
|
38
|
+
textarea: {
|
|
39
|
+
title?: string;
|
|
40
|
+
data: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type PostContentImage = {
|
|
44
|
+
images: ResourceImageType[] | null;
|
|
45
|
+
imagesUpload?: PostFileInput[] | null;
|
|
46
|
+
};
|
|
47
|
+
type PostContentVideo = {
|
|
48
|
+
video: {
|
|
49
|
+
source: string;
|
|
50
|
+
title?: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type PostContentList = {
|
|
54
|
+
list: {
|
|
55
|
+
title?: string;
|
|
56
|
+
items: {
|
|
57
|
+
text: string;
|
|
58
|
+
}[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type PostContentGame = {
|
|
62
|
+
game: BaseGameType;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Union of all possible content-data shapes used in post forms.
|
|
66
|
+
* Renamed from PostContentData to avoid collision with the generated
|
|
67
|
+
* GraphQL PostContentData (flat optional-object type from codegen).
|
|
68
|
+
*/
|
|
69
|
+
type PostContentInputData = PostContentGame | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
|
|
70
|
+
type PostContentFormData = {
|
|
71
|
+
contentData?: PostContentInputData | null;
|
|
72
|
+
contentOrder?: number | null;
|
|
73
|
+
contentType?: PostContentEnum | null;
|
|
74
|
+
};
|
|
75
|
+
interface PostFormData {
|
|
76
|
+
active: boolean;
|
|
77
|
+
caption: string;
|
|
78
|
+
content: PostContentFormData[];
|
|
79
|
+
cover?: ResourceImageType | null;
|
|
80
|
+
coverUpload?: PostFileInput | null;
|
|
81
|
+
postType: PostTypeEnum;
|
|
82
|
+
resource?: PostResourceType | null;
|
|
83
|
+
tags?: string[] | null;
|
|
84
|
+
title: string;
|
|
85
|
+
notifyUsers?: boolean | null;
|
|
86
|
+
}
|
|
87
|
+
type CreatePostFormData = CreateFormData<PostFormData>;
|
|
88
|
+
|
|
89
|
+
interface SchoolFormData {
|
|
90
|
+
_id?: string;
|
|
91
|
+
active: boolean;
|
|
92
|
+
contactDetails: ResourceContactDetailsType | null;
|
|
93
|
+
location: LocationType;
|
|
94
|
+
logo?: ResourceImageType | null;
|
|
95
|
+
logoUpload?: ResourceImageType | null;
|
|
96
|
+
name: string;
|
|
97
|
+
region: string;
|
|
98
|
+
studentCount: number;
|
|
99
|
+
socialMedia: SocialMediaType[] | null;
|
|
100
|
+
termsAgreement?: TermsAgreement | null;
|
|
101
|
+
}
|
|
102
|
+
type CreateSchoolFormData = CreateFormData<SchoolFormData>;
|
|
103
|
+
|
|
104
|
+
declare function toAffiliateCode(code: string): PromoCodeType;
|
|
105
|
+
/**
|
|
106
|
+
* Convert a stored Affiliate entity into AffiliateFormData for create/edit forms.
|
|
107
|
+
*
|
|
108
|
+
* GraphQL AffiliateDetailsType requires bank/contact/IRD/location/participant
|
|
109
|
+
* once stored; form drafts allow empty strings. Social media is draft-optional
|
|
110
|
+
* (same dual-shape as Event/Partner). GraphQL termsAgreement is NonNull once
|
|
111
|
+
* stored; form keeps it optional until agreed.
|
|
112
|
+
*
|
|
113
|
+
* Bank account fields are copied as-is (same exposure as the GraphQL query —
|
|
114
|
+
* no extra fields, no masking added or removed).
|
|
115
|
+
*/
|
|
116
|
+
declare function affiliateToFormData(affiliate: Pick<AffiliateType, "affiliateDetails">): AffiliateFormData;
|
|
117
|
+
|
|
118
|
+
export { type AdFormData as A, type ContactUsFormData as C, type PartnerFormData as P, type SchoolFormData as S, type AdFormState as a, type CreateAdFormData as b, type CreateAdFormState as c, type CreateContactUsFormData as d, type CreatePartnerFormData as e, type CreatePostFormData as f, type CreateSchoolFormData as g, type PostContentFormData as h, type PostContentGame as i, type PostContentImage as j, type PostContentInputData as k, type PostContentList as l, type PostContentTextarea as m, type PostContentVideo as n, type PostFileInput as o, type PostFormData as p, affiliateToFormData as q, toAffiliateCode as t };
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { a as CreateFormData, B as BaseResourceTypeFormData, c as ResourceContactDetailsType, S as SocialMediaType, T as TermsAgreement, P as PromoCodeType } from './global-BbSFfYdd.js';
|
|
2
|
+
import { t as AdResourceType, u as AdShowOnEnum, v as AdStatusTypeEnum, L as LocationType, w as PartnerEnumType, B as BaseGameType, R as ResourceImageType, x as PostContentEnum, g as PostTypeEnum, y as PostResourceType, z as AffiliateType } from './graphql-CDOfA79A.js';
|
|
3
|
+
import { A as AffiliateFormData } from './affiliate-Btlp5XUp.js';
|
|
4
|
+
|
|
5
|
+
type ContactUsFormData = {
|
|
6
|
+
email: string;
|
|
7
|
+
firstName: string;
|
|
8
|
+
lastName: string;
|
|
9
|
+
message: string;
|
|
10
|
+
};
|
|
11
|
+
type CreateContactUsFormData = CreateFormData<ContactUsFormData>;
|
|
12
|
+
|
|
13
|
+
interface AdFormData {
|
|
14
|
+
active: boolean;
|
|
15
|
+
end: Date;
|
|
16
|
+
resource: AdResourceType;
|
|
17
|
+
showOn: AdShowOnEnum[];
|
|
18
|
+
start?: Date;
|
|
19
|
+
status: AdStatusTypeEnum;
|
|
20
|
+
targetRegion: string[];
|
|
21
|
+
}
|
|
22
|
+
type AdFormState = AdFormData;
|
|
23
|
+
type CreateAdFormData = CreateFormData<AdFormData>;
|
|
24
|
+
type CreateAdFormState = CreateFormData<AdFormState>;
|
|
25
|
+
|
|
26
|
+
interface PartnerFormData extends BaseResourceTypeFormData {
|
|
27
|
+
location: LocationType;
|
|
28
|
+
nzbn: string;
|
|
29
|
+
partnerType: PartnerEnumType;
|
|
30
|
+
}
|
|
31
|
+
type CreatePartnerFormData = CreateFormData<PartnerFormData>;
|
|
32
|
+
|
|
33
|
+
type PostFileInput = {
|
|
34
|
+
source: File;
|
|
35
|
+
title?: string;
|
|
36
|
+
};
|
|
37
|
+
type PostContentTextarea = {
|
|
38
|
+
textarea: {
|
|
39
|
+
title?: string;
|
|
40
|
+
data: string;
|
|
41
|
+
};
|
|
42
|
+
};
|
|
43
|
+
type PostContentImage = {
|
|
44
|
+
images: ResourceImageType[] | null;
|
|
45
|
+
imagesUpload?: PostFileInput[] | null;
|
|
46
|
+
};
|
|
47
|
+
type PostContentVideo = {
|
|
48
|
+
video: {
|
|
49
|
+
source: string;
|
|
50
|
+
title?: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
type PostContentList = {
|
|
54
|
+
list: {
|
|
55
|
+
title?: string;
|
|
56
|
+
items: {
|
|
57
|
+
text: string;
|
|
58
|
+
}[];
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
type PostContentGame = {
|
|
62
|
+
game: BaseGameType;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* Union of all possible content-data shapes used in post forms.
|
|
66
|
+
* Renamed from PostContentData to avoid collision with the generated
|
|
67
|
+
* GraphQL PostContentData (flat optional-object type from codegen).
|
|
68
|
+
*/
|
|
69
|
+
type PostContentInputData = PostContentGame | PostContentTextarea | PostContentImage | PostContentVideo | PostContentList;
|
|
70
|
+
type PostContentFormData = {
|
|
71
|
+
contentData?: PostContentInputData | null;
|
|
72
|
+
contentOrder?: number | null;
|
|
73
|
+
contentType?: PostContentEnum | null;
|
|
74
|
+
};
|
|
75
|
+
interface PostFormData {
|
|
76
|
+
active: boolean;
|
|
77
|
+
caption: string;
|
|
78
|
+
content: PostContentFormData[];
|
|
79
|
+
cover?: ResourceImageType | null;
|
|
80
|
+
coverUpload?: PostFileInput | null;
|
|
81
|
+
postType: PostTypeEnum;
|
|
82
|
+
resource?: PostResourceType | null;
|
|
83
|
+
tags?: string[] | null;
|
|
84
|
+
title: string;
|
|
85
|
+
notifyUsers?: boolean | null;
|
|
86
|
+
}
|
|
87
|
+
type CreatePostFormData = CreateFormData<PostFormData>;
|
|
88
|
+
|
|
89
|
+
interface SchoolFormData {
|
|
90
|
+
_id?: string;
|
|
91
|
+
active: boolean;
|
|
92
|
+
contactDetails: ResourceContactDetailsType | null;
|
|
93
|
+
location: LocationType;
|
|
94
|
+
logo?: ResourceImageType | null;
|
|
95
|
+
logoUpload?: ResourceImageType | null;
|
|
96
|
+
name: string;
|
|
97
|
+
region: string;
|
|
98
|
+
studentCount: number;
|
|
99
|
+
socialMedia: SocialMediaType[] | null;
|
|
100
|
+
termsAgreement?: TermsAgreement | null;
|
|
101
|
+
}
|
|
102
|
+
type CreateSchoolFormData = CreateFormData<SchoolFormData>;
|
|
103
|
+
|
|
104
|
+
declare function toAffiliateCode(code: string): PromoCodeType;
|
|
105
|
+
/**
|
|
106
|
+
* Convert a stored Affiliate entity into AffiliateFormData for create/edit forms.
|
|
107
|
+
*
|
|
108
|
+
* GraphQL AffiliateDetailsType requires bank/contact/IRD/location/participant
|
|
109
|
+
* once stored; form drafts allow empty strings. Social media is draft-optional
|
|
110
|
+
* (same dual-shape as Event/Partner). GraphQL termsAgreement is NonNull once
|
|
111
|
+
* stored; form keeps it optional until agreed.
|
|
112
|
+
*
|
|
113
|
+
* Bank account fields are copied as-is (same exposure as the GraphQL query —
|
|
114
|
+
* no extra fields, no masking added or removed).
|
|
115
|
+
*/
|
|
116
|
+
declare function affiliateToFormData(affiliate: Pick<AffiliateType, "affiliateDetails">): AffiliateFormData;
|
|
117
|
+
|
|
118
|
+
export { type AdFormData as A, type ContactUsFormData as C, type PartnerFormData as P, type SchoolFormData as S, type AdFormState as a, type CreateAdFormData as b, type CreateAdFormState as c, type CreateContactUsFormData as d, type CreatePartnerFormData as e, type CreatePostFormData as f, type CreateSchoolFormData as g, type PostContentFormData as h, type PostContentGame as i, type PostContentImage as j, type PostContentInputData as k, type PostContentList as l, type PostContentTextarea as m, type PostContentVideo as n, type PostFileInput as o, type PostFormData as p, affiliateToFormData as q, toAffiliateCode as t };
|
package/dist/apollo/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as ApolloReactCommon from '@apollo/client';
|
|
2
2
|
import { ApolloLink } from '@apollo/client';
|
|
3
3
|
import { Client } from 'graphql-ws';
|
|
4
4
|
|
|
@@ -129,7 +129,7 @@ declare function createAuthLink(adapters: CreateAuthLinkAdapters): ApolloLink;
|
|
|
129
129
|
/**
|
|
130
130
|
* Error link with mobile auth recovery: refresh once, retry op, or deferred logout.
|
|
131
131
|
*/
|
|
132
|
-
declare function createErrorLink(adapters: CreateErrorLinkAdapters):
|
|
132
|
+
declare function createErrorLink(adapters: CreateErrorLinkAdapters): ApolloReactCommon.ApolloLink;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* Creates a coalesced refreshAccessToken() using mobile multi-attempt behavior.
|
|
@@ -151,7 +151,7 @@ type CreateApolloErrorLoggingLinkAdapters = {
|
|
|
151
151
|
* Logging-only Apollo `onError` link with secret redaction.
|
|
152
152
|
* Does not retry or forward — place before auth recovery links.
|
|
153
153
|
*/
|
|
154
|
-
declare function createApolloErrorLoggingLink(adapters: CreateApolloErrorLoggingLinkAdapters):
|
|
154
|
+
declare function createApolloErrorLoggingLink(adapters: CreateApolloErrorLoggingLinkAdapters): ApolloReactCommon.ApolloLink;
|
|
155
155
|
|
|
156
156
|
type CreateNetworkRecoveryLinkAdapters = {
|
|
157
157
|
forceRefreshIsOnline: () => Promise<boolean> | boolean;
|
package/dist/apollo/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as ApolloReactCommon from '@apollo/client';
|
|
2
2
|
import { ApolloLink } from '@apollo/client';
|
|
3
3
|
import { Client } from 'graphql-ws';
|
|
4
4
|
|
|
@@ -129,7 +129,7 @@ declare function createAuthLink(adapters: CreateAuthLinkAdapters): ApolloLink;
|
|
|
129
129
|
/**
|
|
130
130
|
* Error link with mobile auth recovery: refresh once, retry op, or deferred logout.
|
|
131
131
|
*/
|
|
132
|
-
declare function createErrorLink(adapters: CreateErrorLinkAdapters):
|
|
132
|
+
declare function createErrorLink(adapters: CreateErrorLinkAdapters): ApolloReactCommon.ApolloLink;
|
|
133
133
|
|
|
134
134
|
/**
|
|
135
135
|
* Creates a coalesced refreshAccessToken() using mobile multi-attempt behavior.
|
|
@@ -151,7 +151,7 @@ type CreateApolloErrorLoggingLinkAdapters = {
|
|
|
151
151
|
* Logging-only Apollo `onError` link with secret redaction.
|
|
152
152
|
* Does not retry or forward — place before auth recovery links.
|
|
153
153
|
*/
|
|
154
|
-
declare function createApolloErrorLoggingLink(adapters: CreateApolloErrorLoggingLinkAdapters):
|
|
154
|
+
declare function createApolloErrorLoggingLink(adapters: CreateApolloErrorLoggingLinkAdapters): ApolloReactCommon.ApolloLink;
|
|
155
155
|
|
|
156
156
|
type CreateNetworkRecoveryLinkAdapters = {
|
|
157
157
|
forceRefreshIsOnline: () => Promise<boolean> | boolean;
|