@timardex/cluemart-shared 1.6.130 → 1.7.0
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-CVkVX_z5.d.ts +296 -0
- package/dist/ad-DA9ECAhK.d.mts +296 -0
- package/dist/affiliate-1RtkLnLP.d.ts +35 -0
- package/dist/affiliate-Cos2Syz5.d.mts +35 -0
- package/dist/chunk-HZMP7GXC.mjs +5330 -0
- package/dist/chunk-HZMP7GXC.mjs.map +1 -0
- package/dist/chunk-KZTOISPA.mjs +272 -0
- package/dist/chunk-KZTOISPA.mjs.map +1 -0
- package/dist/chunk-MVQ3CFQR.mjs +230 -0
- package/dist/chunk-MVQ3CFQR.mjs.map +1 -0
- package/dist/chunk-NPFJ2CN2.mjs +109 -0
- package/dist/chunk-NPFJ2CN2.mjs.map +1 -0
- package/dist/chunk-RKIRWZCH.mjs +368 -0
- package/dist/chunk-RKIRWZCH.mjs.map +1 -0
- package/dist/{chunk-OHHJ3KJJ.mjs → chunk-TAECMXM4.mjs} +267 -304
- package/dist/chunk-TAECMXM4.mjs.map +1 -0
- package/dist/chunk-VA5YN2K3.mjs +48 -0
- package/dist/chunk-VA5YN2K3.mjs.map +1 -0
- package/dist/chunk-ZZJSCYJK.mjs +958 -0
- package/dist/chunk-ZZJSCYJK.mjs.map +1 -0
- package/dist/contactUs-DGrDzJaM.d.mts +11 -0
- package/dist/contactUs-H7799pWe.d.ts +11 -0
- package/dist/enums/index.cjs +223 -2
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +164 -5
- package/dist/enums/index.d.ts +164 -5
- package/dist/enums/index.mjs +41 -1
- package/dist/formFields/index.cjs +168 -403
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +3 -6
- package/dist/formFields/index.d.ts +3 -6
- package/dist/formFields/index.mjs +47 -921
- package/dist/formFields/index.mjs.map +1 -1
- package/dist/global-BUUfmCo7.d.mts +698 -0
- package/dist/global-fKbMmluy.d.ts +698 -0
- package/dist/graphql/index.cjs +3329 -3340
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +487 -690
- package/dist/graphql/index.d.ts +487 -690
- package/dist/graphql/index.mjs +153 -2552
- package/dist/graphql/index.mjs.map +1 -1
- package/dist/hooks/index.cjs +3478 -773
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +6 -13
- package/dist/hooks/index.d.ts +6 -13
- package/dist/hooks/index.mjs +99 -193
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/images/apple-maps-icon.webp.d.ts +1 -8
- package/dist/images/banner-horizontal.webp.d.ts +1 -8
- package/dist/images/banner-vertical.webp.d.ts +1 -8
- package/dist/images/cluiTui.webp.d.ts +1 -8
- package/dist/images/corporate.webp.d.ts +1 -8
- package/dist/images/facebook.webp.d.ts +1 -8
- package/dist/images/gazebo-top.webp.d.ts +1 -8
- package/dist/images/google-maps-icon.webp.d.ts +1 -8
- package/dist/images/googleMaps-logo-dark.webp.d.ts +1 -8
- package/dist/images/googleMaps-logo-light.webp.d.ts +1 -8
- package/dist/images/index.mjs +21 -86
- package/dist/images/index.mjs.map +1 -1
- package/dist/images/instagram.webp.d.ts +1 -8
- package/dist/images/logo-atr.webp.d.ts +1 -8
- package/dist/images/logo-dark.webp.d.ts +1 -8
- package/dist/images/logo.webp.d.ts +1 -8
- package/dist/images/meet.webp.d.ts +1 -8
- package/dist/images/mini-market1.webp.d.ts +1 -8
- package/dist/images/mini-market2.webp.d.ts +1 -8
- package/dist/images/mini-market3.webp.d.ts +1 -8
- package/dist/images/mini-market4.webp.d.ts +1 -8
- package/dist/images/mini-market5.webp.d.ts +1 -8
- package/dist/images/poll.webp.d.ts +1 -8
- package/dist/images/poster1.webp.d.ts +1 -8
- package/dist/images/poster2.webp.d.ts +1 -8
- package/dist/images/poster3.webp.d.ts +1 -8
- package/dist/images/poster4.webp.d.ts +1 -8
- package/dist/images/private.webp.d.ts +1 -8
- package/dist/images/qr-code.webp.d.ts +1 -8
- package/dist/images/school.webp.d.ts +1 -8
- package/dist/images/sima.webp.d.ts +1 -8
- package/dist/images/store-android.webp.d.ts +1 -8
- package/dist/images/store-ios.webp.d.ts +1 -8
- package/dist/images/tablas.webp.d.ts +1 -8
- package/dist/images/telefonos.webp.d.ts +1 -8
- package/dist/images/tiktok.webp.d.ts +1 -8
- package/dist/images/tip.webp.d.ts +1 -8
- package/dist/images/ugralos.webp.d.ts +1 -8
- package/dist/images/waze-maps-icon.webp.d.ts +1 -8
- package/dist/images/website.webp.d.ts +1 -8
- package/dist/images/youtube.webp.d.ts +1 -8
- package/dist/index.cjs +5883 -7079
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +1692 -2966
- package/dist/index.d.ts +1692 -2966
- package/dist/index.mjs +5020 -6162
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.cjs +9 -14
- package/dist/map/index.cjs.map +1 -1
- package/dist/map/index.d.mts +14 -18
- package/dist/map/index.d.ts +14 -18
- package/dist/map/index.mjs +9 -14
- package/dist/map/index.mjs.map +1 -1
- package/dist/resourceActivities-BL_12IAo.d.ts +125 -0
- package/dist/resourceActivities-zczOntNk.d.mts +125 -0
- package/dist/sharing/index.cjs +1272 -63
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +7 -32
- package/dist/sharing/index.d.ts +7 -32
- package/dist/sharing/index.mjs +30 -188
- package/dist/sharing/index.mjs.map +1 -1
- package/dist/theme/index.mjs +5 -41
- package/dist/theme/index.mjs.map +1 -1
- package/dist/types/index.cjs +110 -868
- package/dist/types/index.cjs.map +1 -1
- package/dist/types/index.d.mts +24 -230
- package/dist/types/index.d.ts +24 -230
- package/dist/types/index.mjs +27 -61
- package/dist/utils/index.cjs +214 -608
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +53 -107
- package/dist/utils/index.d.ts +53 -107
- package/dist/utils/index.mjs +15 -43
- package/package.json +12 -40
- package/dist/affiliate-Bqqlffw8.d.mts +0 -36
- package/dist/affiliate-Btlp5XUp.d.ts +0 -36
- package/dist/affiliateAdapters-BW3BY7c5.d.mts +0 -118
- package/dist/affiliateAdapters-C51ISmuA.d.ts +0 -118
- package/dist/apollo/index.cjs +0 -1383
- package/dist/apollo/index.cjs.map +0 -1
- package/dist/apollo/index.d.mts +0 -323
- package/dist/apollo/index.d.ts +0 -323
- package/dist/apollo/index.mjs +0 -1295
- package/dist/apollo/index.mjs.map +0 -1
- package/dist/auth/index.cjs +0 -3322
- package/dist/auth/index.cjs.map +0 -1
- package/dist/auth/index.d.mts +0 -164
- package/dist/auth/index.d.ts +0 -164
- package/dist/auth/index.mjs +0 -379
- package/dist/auth/index.mjs.map +0 -1
- package/dist/auth-BOmAO53v.d.ts +0 -169
- package/dist/auth-CsITA95p.d.mts +0 -169
- package/dist/chunk-DATBGC2K.mjs +0 -347
- package/dist/chunk-DATBGC2K.mjs.map +0 -1
- package/dist/chunk-DDHECBJR.mjs +0 -726
- package/dist/chunk-DDHECBJR.mjs.map +0 -1
- package/dist/chunk-INQCDU24.mjs +0 -139
- package/dist/chunk-INQCDU24.mjs.map +0 -1
- package/dist/chunk-NWWKI4PJ.mjs +0 -297
- package/dist/chunk-NWWKI4PJ.mjs.map +0 -1
- package/dist/chunk-OHHJ3KJJ.mjs.map +0 -1
- package/dist/chunk-RAYUJODN.mjs +0 -45
- package/dist/chunk-RAYUJODN.mjs.map +0 -1
- package/dist/chunk-TOEFAEF2.mjs +0 -69
- package/dist/chunk-TOEFAEF2.mjs.map +0 -1
- package/dist/chunk-UKW7NZEQ.mjs +0 -2813
- package/dist/chunk-UKW7NZEQ.mjs.map +0 -1
- package/dist/dailyClue-C6WXY73z.d.mts +0 -105
- package/dist/dailyClue-C6WXY73z.d.ts +0 -105
- package/dist/event-C9K7CSg4.d.ts +0 -53
- package/dist/event-W0NhL5Cd.d.mts +0 -53
- package/dist/global-BbSFfYdd.d.ts +0 -181
- package/dist/global-C6v9tRji.d.mts +0 -181
- package/dist/graphql-CDOfA79A.d.ts +0 -1253
- package/dist/graphql-CcvzTs9k.d.mts +0 -1253
- package/dist/resourceActivities-CS8YRIIL.d.mts +0 -89
- package/dist/resourceActivities-DOdNPkhW.d.ts +0 -89
- package/dist/subscription-Cj_qBA7u.d.mts +0 -20
- package/dist/subscription-OiJ50uJb.d.ts +0 -20
- package/dist/vendor-DmMi2qmx.d.mts +0 -73
- package/dist/vendor-M9hVZlni.d.ts +0 -73
package/package.json
CHANGED
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@timardex/cluemart-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.7.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"scripts": {
|
|
9
|
-
"build": "
|
|
9
|
+
"build": "rimraf dist && tsup && node scripts/copy-images.mjs && npm pack",
|
|
10
10
|
"lint": "eslint --ext .ts,.tsx,.mjs,.cjs src scripts",
|
|
11
11
|
"lint:fix": "eslint --ext .ts,.tsx,.mjs,.cjs --fix src scripts",
|
|
12
|
-
"typecheck": "
|
|
13
|
-
"codegen": "node scripts/pre-codegen.mjs && graphql-codegen --config codegen.ts",
|
|
14
|
-
"codegen:check": "graphql-codegen --config codegen.ts",
|
|
15
|
-
"schema:check": "node scripts/check-schema-sync.mjs",
|
|
12
|
+
"typecheck": "tsc --noEmit",
|
|
16
13
|
"test": "vitest run",
|
|
17
14
|
"test:coverage": "vitest run --coverage",
|
|
18
15
|
"test:watch": "vitest",
|
|
@@ -44,16 +41,6 @@
|
|
|
44
41
|
"import": "./dist/hooks/index.mjs",
|
|
45
42
|
"require": "./dist/hooks/index.cjs"
|
|
46
43
|
},
|
|
47
|
-
"./auth": {
|
|
48
|
-
"types": "./dist/auth/index.d.ts",
|
|
49
|
-
"import": "./dist/auth/index.mjs",
|
|
50
|
-
"require": "./dist/auth/index.cjs"
|
|
51
|
-
},
|
|
52
|
-
"./apollo": {
|
|
53
|
-
"types": "./dist/apollo/index.d.ts",
|
|
54
|
-
"import": "./dist/apollo/index.mjs",
|
|
55
|
-
"require": "./dist/apollo/index.cjs"
|
|
56
|
-
},
|
|
57
44
|
"./map": {
|
|
58
45
|
"types": "./dist/map/index.d.ts",
|
|
59
46
|
"import": "./dist/map/index.mjs",
|
|
@@ -94,10 +81,7 @@
|
|
|
94
81
|
"import": "./dist/images/node.mjs",
|
|
95
82
|
"require": "./dist/images/node.cjs"
|
|
96
83
|
},
|
|
97
|
-
"./images/*":
|
|
98
|
-
"types": "./dist/images/*.d.ts",
|
|
99
|
-
"default": "./dist/images/*"
|
|
100
|
-
}
|
|
84
|
+
"./images/*": "./dist/images/*"
|
|
101
85
|
},
|
|
102
86
|
"files": [
|
|
103
87
|
"dist"
|
|
@@ -105,24 +89,7 @@
|
|
|
105
89
|
"keywords": [],
|
|
106
90
|
"author": "",
|
|
107
91
|
"license": "ISC",
|
|
108
|
-
"dependencies": {
|
|
109
|
-
"@hookform/resolvers": "4.1.1",
|
|
110
|
-
"dayjs": "^1.11.21",
|
|
111
|
-
"react-hook-form": "7.54.2",
|
|
112
|
-
"yup": "1.6.1"
|
|
113
|
-
},
|
|
114
|
-
"peerDependencies": {
|
|
115
|
-
"@apollo/client": "^3.14.1",
|
|
116
|
-
"graphql": "^16.12.0",
|
|
117
|
-
"graphql-ws": "^6.0.6",
|
|
118
|
-
"react": "^19.2.3"
|
|
119
|
-
},
|
|
120
92
|
"devDependencies": {
|
|
121
|
-
"@apollo/client": "^3.14.1",
|
|
122
|
-
"@graphql-codegen/cli": "^7.2.0",
|
|
123
|
-
"@graphql-codegen/typescript": "^6.1.0",
|
|
124
|
-
"@graphql-codegen/typescript-operations": "^6.1.5",
|
|
125
|
-
"@graphql-codegen/typescript-react-apollo": "^4.4.2",
|
|
126
93
|
"@types/node": "^22.13.4",
|
|
127
94
|
"@types/react": "~19.2.10",
|
|
128
95
|
"@typescript-eslint/eslint-plugin": "^8.20.0",
|
|
@@ -133,15 +100,20 @@
|
|
|
133
100
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
134
101
|
"eslint-plugin-import": "^2.29.1",
|
|
135
102
|
"eslint-plugin-prettier": "^5.2.6",
|
|
136
|
-
"graphql": "^16.12.0",
|
|
137
|
-
"graphql-ws": "^6.0.6",
|
|
138
103
|
"prettier": "^3.4.2",
|
|
139
104
|
"prettier-eslint": "^16.4.1",
|
|
140
|
-
"react": "19.2.3",
|
|
141
105
|
"rimraf": "^6.0.1",
|
|
142
106
|
"tsup": "^8.3.6",
|
|
143
107
|
"typescript": "^5.7.3",
|
|
144
108
|
"typescript-eslint": "^8.31.1",
|
|
145
109
|
"vitest": "^3.2.4"
|
|
110
|
+
},
|
|
111
|
+
"dependencies": {
|
|
112
|
+
"@apollo/client": "^3.14.1",
|
|
113
|
+
"@hookform/resolvers": "4.1.1",
|
|
114
|
+
"dayjs": "^1.11.21",
|
|
115
|
+
"react": "19.2.3",
|
|
116
|
+
"react-hook-form": "7.54.2",
|
|
117
|
+
"yup": "1.6.1"
|
|
146
118
|
}
|
|
147
119
|
}
|
|
@@ -1,36 +0,0 @@
|
|
|
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 };
|
|
@@ -1,36 +0,0 @@
|
|
|
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 };
|
|
@@ -1,118 +0,0 @@
|
|
|
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 };
|
|
@@ -1,118 +0,0 @@
|
|
|
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 };
|