@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
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
declare const gameScreenIdentifierList: readonly [{
|
|
2
|
-
readonly clue: "Where your actions turn into a timeline.";
|
|
3
|
-
readonly id: "activities";
|
|
4
|
-
readonly match: "/profile/activities";
|
|
5
|
-
}, {
|
|
6
|
-
readonly clue: "Where conversations happen without speaking.";
|
|
7
|
-
readonly id: "chat";
|
|
8
|
-
readonly match: "/profile/chat";
|
|
9
|
-
}, {
|
|
10
|
-
readonly clue: "The place to redefine who you are.";
|
|
11
|
-
readonly id: "edit-profile";
|
|
12
|
-
readonly match: "/profile/edit-profile";
|
|
13
|
-
}, {
|
|
14
|
-
readonly clue: "A single moment worth showing up for.";
|
|
15
|
-
readonly id: "single-event";
|
|
16
|
-
readonly match: RegExp;
|
|
17
|
-
}, {
|
|
18
|
-
readonly clue: "What’s happening around you, right now.";
|
|
19
|
-
readonly id: "events-near-me";
|
|
20
|
-
readonly match: "/events/events-near-me";
|
|
21
|
-
}, {
|
|
22
|
-
readonly clue: "Where events appear as pins on a map.";
|
|
23
|
-
readonly id: "events-map";
|
|
24
|
-
readonly match: "/events/events-map";
|
|
25
|
-
}, {
|
|
26
|
-
readonly clue: "A collection of events worth attending.";
|
|
27
|
-
readonly id: "events";
|
|
28
|
-
readonly match: "/events";
|
|
29
|
-
}, {
|
|
30
|
-
readonly clue: "What’s happening in a wider area — not just nearby.";
|
|
31
|
-
readonly id: "events-region";
|
|
32
|
-
readonly match: RegExp;
|
|
33
|
-
}, {
|
|
34
|
-
readonly clue: "Where fun becomes a challenge.";
|
|
35
|
-
readonly id: "games";
|
|
36
|
-
readonly match: "/games";
|
|
37
|
-
}, {
|
|
38
|
-
readonly clue: "Your starting point for everything.";
|
|
39
|
-
readonly id: "home";
|
|
40
|
-
readonly match: "/";
|
|
41
|
-
}, {
|
|
42
|
-
readonly clue: "Where the app whispers what you shouldn’t miss.";
|
|
43
|
-
readonly id: "notifications";
|
|
44
|
-
readonly match: "/notifications";
|
|
45
|
-
}, {
|
|
46
|
-
readonly clue: "Where you fine-tune your experience.";
|
|
47
|
-
readonly id: "options";
|
|
48
|
-
readonly match: "/options";
|
|
49
|
-
}, {
|
|
50
|
-
readonly clue: "An organisation or creator supporting the community.";
|
|
51
|
-
readonly id: "single-partner";
|
|
52
|
-
readonly match: RegExp;
|
|
53
|
-
}, {
|
|
54
|
-
readonly clue: "Organisations and creators supporting the community.";
|
|
55
|
-
readonly id: "partners";
|
|
56
|
-
readonly match: "/partners";
|
|
57
|
-
}, {
|
|
58
|
-
readonly clue: "A single published post in full view.";
|
|
59
|
-
readonly id: "single-visitor-post";
|
|
60
|
-
readonly match: RegExp;
|
|
61
|
-
}, {
|
|
62
|
-
readonly clue: "Your identity, on display.";
|
|
63
|
-
readonly id: "profile";
|
|
64
|
-
readonly match: "/profile";
|
|
65
|
-
}, {
|
|
66
|
-
readonly clue: "One stallholder offering something valuable.";
|
|
67
|
-
readonly id: "single-vendor";
|
|
68
|
-
readonly match: RegExp;
|
|
69
|
-
}, {
|
|
70
|
-
readonly clue: "Where every stallholder waits under the right category.";
|
|
71
|
-
readonly id: "vendors";
|
|
72
|
-
readonly match: "/vendors";
|
|
73
|
-
}, {
|
|
74
|
-
readonly clue: "Where you browse articles and posts from around the platform.";
|
|
75
|
-
readonly id: "visitors";
|
|
76
|
-
readonly match: "/visitors";
|
|
77
|
-
}];
|
|
78
|
-
type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
|
|
79
|
-
type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
|
|
80
|
-
/**
|
|
81
|
-
* Runtime shape used by dailyClueGame.ts utilities.
|
|
82
|
-
* Uses JS Date (not ISO string) because it's constructed at runtime.
|
|
83
|
-
* Distinct from the generated DailyClueGameDataType which uses string dates.
|
|
84
|
-
*/
|
|
85
|
-
type DailyClueGameData = {
|
|
86
|
-
points: number;
|
|
87
|
-
streak: number;
|
|
88
|
-
gameFields: {
|
|
89
|
-
gameDate: {
|
|
90
|
-
startDate: Date;
|
|
91
|
-
endDate: Date;
|
|
92
|
-
};
|
|
93
|
-
gameSolution: string;
|
|
94
|
-
};
|
|
95
|
-
lastFoundDate: Date | null;
|
|
96
|
-
letterInfo: {
|
|
97
|
-
collected: string[] | null;
|
|
98
|
-
solutionShuffled: string[];
|
|
99
|
-
todaysClue: GamePlacementClue | null;
|
|
100
|
-
todaysLetter: string | null;
|
|
101
|
-
todaysPlacement: GamePlacement | null;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export { type DailyClueGameData as D, type GamePlacement as G, type GamePlacementClue as a, gameScreenIdentifierList as g };
|
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
declare const gameScreenIdentifierList: readonly [{
|
|
2
|
-
readonly clue: "Where your actions turn into a timeline.";
|
|
3
|
-
readonly id: "activities";
|
|
4
|
-
readonly match: "/profile/activities";
|
|
5
|
-
}, {
|
|
6
|
-
readonly clue: "Where conversations happen without speaking.";
|
|
7
|
-
readonly id: "chat";
|
|
8
|
-
readonly match: "/profile/chat";
|
|
9
|
-
}, {
|
|
10
|
-
readonly clue: "The place to redefine who you are.";
|
|
11
|
-
readonly id: "edit-profile";
|
|
12
|
-
readonly match: "/profile/edit-profile";
|
|
13
|
-
}, {
|
|
14
|
-
readonly clue: "A single moment worth showing up for.";
|
|
15
|
-
readonly id: "single-event";
|
|
16
|
-
readonly match: RegExp;
|
|
17
|
-
}, {
|
|
18
|
-
readonly clue: "What’s happening around you, right now.";
|
|
19
|
-
readonly id: "events-near-me";
|
|
20
|
-
readonly match: "/events/events-near-me";
|
|
21
|
-
}, {
|
|
22
|
-
readonly clue: "Where events appear as pins on a map.";
|
|
23
|
-
readonly id: "events-map";
|
|
24
|
-
readonly match: "/events/events-map";
|
|
25
|
-
}, {
|
|
26
|
-
readonly clue: "A collection of events worth attending.";
|
|
27
|
-
readonly id: "events";
|
|
28
|
-
readonly match: "/events";
|
|
29
|
-
}, {
|
|
30
|
-
readonly clue: "What’s happening in a wider area — not just nearby.";
|
|
31
|
-
readonly id: "events-region";
|
|
32
|
-
readonly match: RegExp;
|
|
33
|
-
}, {
|
|
34
|
-
readonly clue: "Where fun becomes a challenge.";
|
|
35
|
-
readonly id: "games";
|
|
36
|
-
readonly match: "/games";
|
|
37
|
-
}, {
|
|
38
|
-
readonly clue: "Your starting point for everything.";
|
|
39
|
-
readonly id: "home";
|
|
40
|
-
readonly match: "/";
|
|
41
|
-
}, {
|
|
42
|
-
readonly clue: "Where the app whispers what you shouldn’t miss.";
|
|
43
|
-
readonly id: "notifications";
|
|
44
|
-
readonly match: "/notifications";
|
|
45
|
-
}, {
|
|
46
|
-
readonly clue: "Where you fine-tune your experience.";
|
|
47
|
-
readonly id: "options";
|
|
48
|
-
readonly match: "/options";
|
|
49
|
-
}, {
|
|
50
|
-
readonly clue: "An organisation or creator supporting the community.";
|
|
51
|
-
readonly id: "single-partner";
|
|
52
|
-
readonly match: RegExp;
|
|
53
|
-
}, {
|
|
54
|
-
readonly clue: "Organisations and creators supporting the community.";
|
|
55
|
-
readonly id: "partners";
|
|
56
|
-
readonly match: "/partners";
|
|
57
|
-
}, {
|
|
58
|
-
readonly clue: "A single published post in full view.";
|
|
59
|
-
readonly id: "single-visitor-post";
|
|
60
|
-
readonly match: RegExp;
|
|
61
|
-
}, {
|
|
62
|
-
readonly clue: "Your identity, on display.";
|
|
63
|
-
readonly id: "profile";
|
|
64
|
-
readonly match: "/profile";
|
|
65
|
-
}, {
|
|
66
|
-
readonly clue: "One stallholder offering something valuable.";
|
|
67
|
-
readonly id: "single-vendor";
|
|
68
|
-
readonly match: RegExp;
|
|
69
|
-
}, {
|
|
70
|
-
readonly clue: "Where every stallholder waits under the right category.";
|
|
71
|
-
readonly id: "vendors";
|
|
72
|
-
readonly match: "/vendors";
|
|
73
|
-
}, {
|
|
74
|
-
readonly clue: "Where you browse articles and posts from around the platform.";
|
|
75
|
-
readonly id: "visitors";
|
|
76
|
-
readonly match: "/visitors";
|
|
77
|
-
}];
|
|
78
|
-
type GamePlacement = (typeof gameScreenIdentifierList)[number]["id"];
|
|
79
|
-
type GamePlacementClue = (typeof gameScreenIdentifierList)[number]["clue"];
|
|
80
|
-
/**
|
|
81
|
-
* Runtime shape used by dailyClueGame.ts utilities.
|
|
82
|
-
* Uses JS Date (not ISO string) because it's constructed at runtime.
|
|
83
|
-
* Distinct from the generated DailyClueGameDataType which uses string dates.
|
|
84
|
-
*/
|
|
85
|
-
type DailyClueGameData = {
|
|
86
|
-
points: number;
|
|
87
|
-
streak: number;
|
|
88
|
-
gameFields: {
|
|
89
|
-
gameDate: {
|
|
90
|
-
startDate: Date;
|
|
91
|
-
endDate: Date;
|
|
92
|
-
};
|
|
93
|
-
gameSolution: string;
|
|
94
|
-
};
|
|
95
|
-
lastFoundDate: Date | null;
|
|
96
|
-
letterInfo: {
|
|
97
|
-
collected: string[] | null;
|
|
98
|
-
solutionShuffled: string[];
|
|
99
|
-
todaysClue: GamePlacementClue | null;
|
|
100
|
-
todaysLetter: string | null;
|
|
101
|
-
todaysPlacement: GamePlacement | null;
|
|
102
|
-
};
|
|
103
|
-
};
|
|
104
|
-
|
|
105
|
-
export { type DailyClueGameData as D, type GamePlacement as G, type GamePlacementClue as a, gameScreenIdentifierList as g };
|
package/dist/event-C9K7CSg4.d.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { D as DateTimeType, E as EventEnumType, L as LocationType, P as PaymentMethodEnumType } from './graphql-CDOfA79A.js';
|
|
2
|
-
import { B as BaseResourceTypeFormData, a as CreateFormData } from './global-BbSFfYdd.js';
|
|
3
|
-
|
|
4
|
-
type StallType = {
|
|
5
|
-
label: string;
|
|
6
|
-
price: number;
|
|
7
|
-
stallCapacity: number;
|
|
8
|
-
};
|
|
9
|
-
interface DateTimeWithPriceType extends DateTimeType {
|
|
10
|
-
stallTypes: StallType[];
|
|
11
|
-
}
|
|
12
|
-
type PaymentInfoType = {
|
|
13
|
-
accountHolderName?: string;
|
|
14
|
-
accountNumber?: string;
|
|
15
|
-
link?: string;
|
|
16
|
-
paymentMethod: PaymentMethodEnumType;
|
|
17
|
-
};
|
|
18
|
-
type Requirement = {
|
|
19
|
-
category: "Food Safety" | "Environment" | "Operations" | "Legal & Safety";
|
|
20
|
-
label: string;
|
|
21
|
-
value: boolean;
|
|
22
|
-
};
|
|
23
|
-
type RefundPolicy = {
|
|
24
|
-
category: "Cancelled by Organiser" | "Cancelled by Vendor";
|
|
25
|
-
label: string;
|
|
26
|
-
value: boolean;
|
|
27
|
-
};
|
|
28
|
-
interface EventInfoFormData {
|
|
29
|
-
_id?: string;
|
|
30
|
-
applicationDeadlineHours: number;
|
|
31
|
-
dateTime: DateTimeWithPriceType[];
|
|
32
|
-
eventId: string;
|
|
33
|
-
packInTime: number;
|
|
34
|
-
paymentDueHours: number;
|
|
35
|
-
paymentInfo: PaymentInfoType[];
|
|
36
|
-
refundPolicy: RefundPolicy[];
|
|
37
|
-
requirements?: Requirement[];
|
|
38
|
-
}
|
|
39
|
-
interface EventFormData extends BaseResourceTypeFormData {
|
|
40
|
-
claimed?: boolean;
|
|
41
|
-
dateTime: DateTimeType[];
|
|
42
|
-
eventType: EventEnumType;
|
|
43
|
-
googlePlaceId?: string | null;
|
|
44
|
-
location: LocationType;
|
|
45
|
-
nzbn: string;
|
|
46
|
-
provider?: string | null;
|
|
47
|
-
rainOrShine: boolean;
|
|
48
|
-
tags: string[];
|
|
49
|
-
}
|
|
50
|
-
type CreateEventInfoFormData = CreateFormData<EventInfoFormData>;
|
|
51
|
-
type CreateEventFormData = CreateFormData<EventFormData>;
|
|
52
|
-
|
|
53
|
-
export type { CreateEventFormData as C, DateTimeWithPriceType as D, EventInfoFormData as E, PaymentInfoType as P, RefundPolicy as R, StallType as S, Requirement as a, EventFormData as b, CreateEventInfoFormData as c };
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { D as DateTimeType, E as EventEnumType, L as LocationType, P as PaymentMethodEnumType } from './graphql-CcvzTs9k.mjs';
|
|
2
|
-
import { B as BaseResourceTypeFormData, a as CreateFormData } from './global-C6v9tRji.mjs';
|
|
3
|
-
|
|
4
|
-
type StallType = {
|
|
5
|
-
label: string;
|
|
6
|
-
price: number;
|
|
7
|
-
stallCapacity: number;
|
|
8
|
-
};
|
|
9
|
-
interface DateTimeWithPriceType extends DateTimeType {
|
|
10
|
-
stallTypes: StallType[];
|
|
11
|
-
}
|
|
12
|
-
type PaymentInfoType = {
|
|
13
|
-
accountHolderName?: string;
|
|
14
|
-
accountNumber?: string;
|
|
15
|
-
link?: string;
|
|
16
|
-
paymentMethod: PaymentMethodEnumType;
|
|
17
|
-
};
|
|
18
|
-
type Requirement = {
|
|
19
|
-
category: "Food Safety" | "Environment" | "Operations" | "Legal & Safety";
|
|
20
|
-
label: string;
|
|
21
|
-
value: boolean;
|
|
22
|
-
};
|
|
23
|
-
type RefundPolicy = {
|
|
24
|
-
category: "Cancelled by Organiser" | "Cancelled by Vendor";
|
|
25
|
-
label: string;
|
|
26
|
-
value: boolean;
|
|
27
|
-
};
|
|
28
|
-
interface EventInfoFormData {
|
|
29
|
-
_id?: string;
|
|
30
|
-
applicationDeadlineHours: number;
|
|
31
|
-
dateTime: DateTimeWithPriceType[];
|
|
32
|
-
eventId: string;
|
|
33
|
-
packInTime: number;
|
|
34
|
-
paymentDueHours: number;
|
|
35
|
-
paymentInfo: PaymentInfoType[];
|
|
36
|
-
refundPolicy: RefundPolicy[];
|
|
37
|
-
requirements?: Requirement[];
|
|
38
|
-
}
|
|
39
|
-
interface EventFormData extends BaseResourceTypeFormData {
|
|
40
|
-
claimed?: boolean;
|
|
41
|
-
dateTime: DateTimeType[];
|
|
42
|
-
eventType: EventEnumType;
|
|
43
|
-
googlePlaceId?: string | null;
|
|
44
|
-
location: LocationType;
|
|
45
|
-
nzbn: string;
|
|
46
|
-
provider?: string | null;
|
|
47
|
-
rainOrShine: boolean;
|
|
48
|
-
tags: string[];
|
|
49
|
-
}
|
|
50
|
-
type CreateEventInfoFormData = CreateFormData<EventInfoFormData>;
|
|
51
|
-
type CreateEventFormData = CreateFormData<EventFormData>;
|
|
52
|
-
|
|
53
|
-
export type { CreateEventFormData as C, DateTimeWithPriceType as D, EventInfoFormData as E, PaymentInfoType as P, RefundPolicy as R, StallType as S, Requirement as a, EventFormData as b, CreateEventInfoFormData as c };
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
|
|
2
|
-
import { c as EventListItemType, d as VendorType, e as LicencesEnumType, S as SocialMediaEnumType, R as ResourceImageType, D as DateTimeType, E as EventEnumType, L as LocationType, f as ResourceTypeEnum, g as PostTypeEnum } from './graphql-CDOfA79A.js';
|
|
3
|
-
|
|
4
|
-
declare const PROMO_CODE_PREFIX = "CM-";
|
|
5
|
-
type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;
|
|
6
|
-
type Nullable<T> = {
|
|
7
|
-
[K in keyof T]: T[K] | null | undefined;
|
|
8
|
-
};
|
|
9
|
-
/** Uniform mutation response envelope used across GraphQL mutations. */
|
|
10
|
-
type MutationResponse<T> = {
|
|
11
|
-
data: T | null;
|
|
12
|
-
message: string | null;
|
|
13
|
-
};
|
|
14
|
-
type DeviceInfo = {
|
|
15
|
-
appBuildNumber: string;
|
|
16
|
-
appId: string;
|
|
17
|
-
appVersion: string;
|
|
18
|
-
brand: string;
|
|
19
|
-
deviceName: string;
|
|
20
|
-
installationId: string;
|
|
21
|
-
manufacturer: string;
|
|
22
|
-
modelName: string;
|
|
23
|
-
osName: string;
|
|
24
|
-
osVersion: string;
|
|
25
|
-
timestamp: string;
|
|
26
|
-
};
|
|
27
|
-
type TermsAgreement = DeviceInfo & {
|
|
28
|
-
termVersion: string;
|
|
29
|
-
};
|
|
30
|
-
type ResourceContactDetailsType = {
|
|
31
|
-
email?: string | null;
|
|
32
|
-
landlinePhone?: string | null;
|
|
33
|
-
mobilePhone?: string | null;
|
|
34
|
-
};
|
|
35
|
-
/** Form/UI social links — optional fields. GraphQL `SocialMediaType` requires name+link. */
|
|
36
|
-
type SocialMediaType = {
|
|
37
|
-
name?: SocialMediaEnumType;
|
|
38
|
-
link?: string;
|
|
39
|
-
};
|
|
40
|
-
type UserLicenceType = {
|
|
41
|
-
expiryDate: Date;
|
|
42
|
-
issuedDate: Date;
|
|
43
|
-
licenceType: LicencesEnumType;
|
|
44
|
-
prevLicenceType?: LicencesEnumType | null;
|
|
45
|
-
};
|
|
46
|
-
type OwnerType = {
|
|
47
|
-
email: string;
|
|
48
|
-
userId: string;
|
|
49
|
-
};
|
|
50
|
-
interface BaseResourceTypeFormData {
|
|
51
|
-
_id?: string;
|
|
52
|
-
active: boolean;
|
|
53
|
-
contactDetails: ResourceContactDetailsType | null;
|
|
54
|
-
cover: ResourceImageType;
|
|
55
|
-
coverUpload?: ResourceImageType | null;
|
|
56
|
-
description: string;
|
|
57
|
-
images?: ResourceImageType[] | null;
|
|
58
|
-
imagesUpload?: ResourceImageType[] | null;
|
|
59
|
-
logo?: ResourceImageType | null;
|
|
60
|
-
logoUpload?: ResourceImageType | null;
|
|
61
|
-
name: string;
|
|
62
|
-
promoCodes?: PromoCodeType[] | null;
|
|
63
|
-
region: string;
|
|
64
|
-
socialMedia: SocialMediaType[] | null;
|
|
65
|
-
termsAgreement?: TermsAgreement | null;
|
|
66
|
-
}
|
|
67
|
-
type PosterUsageType = {
|
|
68
|
-
month: string;
|
|
69
|
-
count: number;
|
|
70
|
-
};
|
|
71
|
-
type RelatedPostType = {
|
|
72
|
-
postActive: boolean;
|
|
73
|
-
postId: string;
|
|
74
|
-
postSlug: string;
|
|
75
|
-
postType: PostTypeEnum;
|
|
76
|
-
};
|
|
77
|
-
type SocialShareResourceType = {
|
|
78
|
-
qrCode: ResourceImageType;
|
|
79
|
-
socialImage: ResourceImageType;
|
|
80
|
-
};
|
|
81
|
-
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
82
|
-
_id: string;
|
|
83
|
-
adIds?: string[] | null;
|
|
84
|
-
/** ISO 8601 UTC string — GraphQL Date scalar serializes to string, not JS Date. */
|
|
85
|
-
approvedAt?: string | null;
|
|
86
|
-
createdAt: string;
|
|
87
|
-
deletedAt: string | null;
|
|
88
|
-
owner: OwnerType;
|
|
89
|
-
posterUsage?: PosterUsageType | null;
|
|
90
|
-
rating?: number | null;
|
|
91
|
-
relatedPost?: RelatedPostType | null;
|
|
92
|
-
reviewCount?: number | null;
|
|
93
|
-
slug: string;
|
|
94
|
-
updatedAt: string | null;
|
|
95
|
-
};
|
|
96
|
-
type Region = {
|
|
97
|
-
latitude: number;
|
|
98
|
-
latitudeDelta: number;
|
|
99
|
-
longitude: number;
|
|
100
|
-
longitudeDelta: number;
|
|
101
|
-
};
|
|
102
|
-
type ResourceDetails = {
|
|
103
|
-
dateTime: DateTimeType[] | null;
|
|
104
|
-
description: string | null;
|
|
105
|
-
eventStatus?: EventStatusType | null;
|
|
106
|
-
location: LocationType | null;
|
|
107
|
-
resourceCover: ResourceImageType | null;
|
|
108
|
-
resourceId: string;
|
|
109
|
-
resourceLogo: ResourceImageType | null;
|
|
110
|
-
resourceName: string;
|
|
111
|
-
resourceType: ResourceTypeEnum;
|
|
112
|
-
};
|
|
113
|
-
type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
|
|
114
|
-
type EventStatusType = {
|
|
115
|
-
claimed: boolean;
|
|
116
|
-
eventType: EventEnumType;
|
|
117
|
-
googlePlaceId?: string | null;
|
|
118
|
-
};
|
|
119
|
-
interface FormField {
|
|
120
|
-
disabled?: boolean;
|
|
121
|
-
helperText?: string;
|
|
122
|
-
isTextArea?: boolean;
|
|
123
|
-
keyboardType?: "default" | "email-address" | "number-pad" | "url" | "decimal-pad" | "phone-pad";
|
|
124
|
-
name: string;
|
|
125
|
-
placeholder: string;
|
|
126
|
-
required?: boolean;
|
|
127
|
-
secureTextEntry?: boolean;
|
|
128
|
-
}
|
|
129
|
-
interface FormDateField {
|
|
130
|
-
dateMode: "date" | "time";
|
|
131
|
-
helperText?: string;
|
|
132
|
-
name: "endDate" | "endTime" | "startDate" | "startTime";
|
|
133
|
-
placeholder: string;
|
|
134
|
-
}
|
|
135
|
-
interface SubcategoryItems {
|
|
136
|
-
id: string;
|
|
137
|
-
name: string;
|
|
138
|
-
description?: string | null;
|
|
139
|
-
}
|
|
140
|
-
interface Subcategory {
|
|
141
|
-
id: string;
|
|
142
|
-
name: string;
|
|
143
|
-
items?: SubcategoryItems[] | null;
|
|
144
|
-
}
|
|
145
|
-
interface Category {
|
|
146
|
-
color?: string | null;
|
|
147
|
-
description?: string | null;
|
|
148
|
-
id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
subcategories: Subcategory[];
|
|
151
|
-
}
|
|
152
|
-
type OptionItem = {
|
|
153
|
-
value: string;
|
|
154
|
-
label: string;
|
|
155
|
-
};
|
|
156
|
-
type ImageObjectType = {
|
|
157
|
-
uri: string;
|
|
158
|
-
type: string;
|
|
159
|
-
name: string;
|
|
160
|
-
};
|
|
161
|
-
interface ResourceConnectionsType {
|
|
162
|
-
events: EventListItemType[] | null;
|
|
163
|
-
vendors: VendorType[] | null;
|
|
164
|
-
}
|
|
165
|
-
interface CreateFormData<T extends FieldValues> {
|
|
166
|
-
control: Control<T, any>;
|
|
167
|
-
fields: T;
|
|
168
|
-
formState: FormState<T>;
|
|
169
|
-
handleSubmit: UseFormHandleSubmit<T, any>;
|
|
170
|
-
reset: UseFormReset<T>;
|
|
171
|
-
setValue: UseFormSetValue<T>;
|
|
172
|
-
watch: UseFormWatch<T>;
|
|
173
|
-
getValues: UseFormGetValues<T>;
|
|
174
|
-
}
|
|
175
|
-
interface UseGetResourcesByRegionOptions {
|
|
176
|
-
onlyClaimed?: boolean;
|
|
177
|
-
limit?: number;
|
|
178
|
-
offset?: number;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export { type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventStatusType as E, type FormDateField as F, type GeocodeLocation as G, type ImageObjectType as I, type MutationResponse as M, type Nullable as N, type OptionItem as O, type PromoCodeType as P, type ResourceDetails as R, type SocialMediaType as S, type TermsAgreement as T, type UserLicenceType as U, type CreateFormData as a, type Region as b, type ResourceContactDetailsType as c, type BaseResourceType as d, type FormField as e, type OwnerType as f, PROMO_CODE_PREFIX as g, type PosterUsageType as h, type RelatedPostType as i, type ResourceConnectionsType as j, type SocialShareResourceType as k, type Subcategory as l, type SubcategoryItems as m, type UseGetResourcesByRegionOptions as n };
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { FieldValues, Control, FormState, UseFormHandleSubmit, UseFormReset, UseFormSetValue, UseFormWatch, UseFormGetValues } from 'react-hook-form';
|
|
2
|
-
import { c as EventListItemType, d as VendorType, e as LicencesEnumType, S as SocialMediaEnumType, R as ResourceImageType, D as DateTimeType, E as EventEnumType, L as LocationType, f as ResourceTypeEnum, g as PostTypeEnum } from './graphql-CcvzTs9k.mjs';
|
|
3
|
-
|
|
4
|
-
declare const PROMO_CODE_PREFIX = "CM-";
|
|
5
|
-
type PromoCodeType = `${typeof PROMO_CODE_PREFIX}${string}`;
|
|
6
|
-
type Nullable<T> = {
|
|
7
|
-
[K in keyof T]: T[K] | null | undefined;
|
|
8
|
-
};
|
|
9
|
-
/** Uniform mutation response envelope used across GraphQL mutations. */
|
|
10
|
-
type MutationResponse<T> = {
|
|
11
|
-
data: T | null;
|
|
12
|
-
message: string | null;
|
|
13
|
-
};
|
|
14
|
-
type DeviceInfo = {
|
|
15
|
-
appBuildNumber: string;
|
|
16
|
-
appId: string;
|
|
17
|
-
appVersion: string;
|
|
18
|
-
brand: string;
|
|
19
|
-
deviceName: string;
|
|
20
|
-
installationId: string;
|
|
21
|
-
manufacturer: string;
|
|
22
|
-
modelName: string;
|
|
23
|
-
osName: string;
|
|
24
|
-
osVersion: string;
|
|
25
|
-
timestamp: string;
|
|
26
|
-
};
|
|
27
|
-
type TermsAgreement = DeviceInfo & {
|
|
28
|
-
termVersion: string;
|
|
29
|
-
};
|
|
30
|
-
type ResourceContactDetailsType = {
|
|
31
|
-
email?: string | null;
|
|
32
|
-
landlinePhone?: string | null;
|
|
33
|
-
mobilePhone?: string | null;
|
|
34
|
-
};
|
|
35
|
-
/** Form/UI social links — optional fields. GraphQL `SocialMediaType` requires name+link. */
|
|
36
|
-
type SocialMediaType = {
|
|
37
|
-
name?: SocialMediaEnumType;
|
|
38
|
-
link?: string;
|
|
39
|
-
};
|
|
40
|
-
type UserLicenceType = {
|
|
41
|
-
expiryDate: Date;
|
|
42
|
-
issuedDate: Date;
|
|
43
|
-
licenceType: LicencesEnumType;
|
|
44
|
-
prevLicenceType?: LicencesEnumType | null;
|
|
45
|
-
};
|
|
46
|
-
type OwnerType = {
|
|
47
|
-
email: string;
|
|
48
|
-
userId: string;
|
|
49
|
-
};
|
|
50
|
-
interface BaseResourceTypeFormData {
|
|
51
|
-
_id?: string;
|
|
52
|
-
active: boolean;
|
|
53
|
-
contactDetails: ResourceContactDetailsType | null;
|
|
54
|
-
cover: ResourceImageType;
|
|
55
|
-
coverUpload?: ResourceImageType | null;
|
|
56
|
-
description: string;
|
|
57
|
-
images?: ResourceImageType[] | null;
|
|
58
|
-
imagesUpload?: ResourceImageType[] | null;
|
|
59
|
-
logo?: ResourceImageType | null;
|
|
60
|
-
logoUpload?: ResourceImageType | null;
|
|
61
|
-
name: string;
|
|
62
|
-
promoCodes?: PromoCodeType[] | null;
|
|
63
|
-
region: string;
|
|
64
|
-
socialMedia: SocialMediaType[] | null;
|
|
65
|
-
termsAgreement?: TermsAgreement | null;
|
|
66
|
-
}
|
|
67
|
-
type PosterUsageType = {
|
|
68
|
-
month: string;
|
|
69
|
-
count: number;
|
|
70
|
-
};
|
|
71
|
-
type RelatedPostType = {
|
|
72
|
-
postActive: boolean;
|
|
73
|
-
postId: string;
|
|
74
|
-
postSlug: string;
|
|
75
|
-
postType: PostTypeEnum;
|
|
76
|
-
};
|
|
77
|
-
type SocialShareResourceType = {
|
|
78
|
-
qrCode: ResourceImageType;
|
|
79
|
-
socialImage: ResourceImageType;
|
|
80
|
-
};
|
|
81
|
-
type BaseResourceType = Omit<BaseResourceTypeFormData, "_id" | "coverUpload" | "imagesUpload" | "logoUpload"> & {
|
|
82
|
-
_id: string;
|
|
83
|
-
adIds?: string[] | null;
|
|
84
|
-
/** ISO 8601 UTC string — GraphQL Date scalar serializes to string, not JS Date. */
|
|
85
|
-
approvedAt?: string | null;
|
|
86
|
-
createdAt: string;
|
|
87
|
-
deletedAt: string | null;
|
|
88
|
-
owner: OwnerType;
|
|
89
|
-
posterUsage?: PosterUsageType | null;
|
|
90
|
-
rating?: number | null;
|
|
91
|
-
relatedPost?: RelatedPostType | null;
|
|
92
|
-
reviewCount?: number | null;
|
|
93
|
-
slug: string;
|
|
94
|
-
updatedAt: string | null;
|
|
95
|
-
};
|
|
96
|
-
type Region = {
|
|
97
|
-
latitude: number;
|
|
98
|
-
latitudeDelta: number;
|
|
99
|
-
longitude: number;
|
|
100
|
-
longitudeDelta: number;
|
|
101
|
-
};
|
|
102
|
-
type ResourceDetails = {
|
|
103
|
-
dateTime: DateTimeType[] | null;
|
|
104
|
-
description: string | null;
|
|
105
|
-
eventStatus?: EventStatusType | null;
|
|
106
|
-
location: LocationType | null;
|
|
107
|
-
resourceCover: ResourceImageType | null;
|
|
108
|
-
resourceId: string;
|
|
109
|
-
resourceLogo: ResourceImageType | null;
|
|
110
|
-
resourceName: string;
|
|
111
|
-
resourceType: ResourceTypeEnum;
|
|
112
|
-
};
|
|
113
|
-
type GeocodeLocation = Pick<LocationType, "latitude" | "longitude">;
|
|
114
|
-
type EventStatusType = {
|
|
115
|
-
claimed: boolean;
|
|
116
|
-
eventType: EventEnumType;
|
|
117
|
-
googlePlaceId?: string | null;
|
|
118
|
-
};
|
|
119
|
-
interface FormField {
|
|
120
|
-
disabled?: boolean;
|
|
121
|
-
helperText?: string;
|
|
122
|
-
isTextArea?: boolean;
|
|
123
|
-
keyboardType?: "default" | "email-address" | "number-pad" | "url" | "decimal-pad" | "phone-pad";
|
|
124
|
-
name: string;
|
|
125
|
-
placeholder: string;
|
|
126
|
-
required?: boolean;
|
|
127
|
-
secureTextEntry?: boolean;
|
|
128
|
-
}
|
|
129
|
-
interface FormDateField {
|
|
130
|
-
dateMode: "date" | "time";
|
|
131
|
-
helperText?: string;
|
|
132
|
-
name: "endDate" | "endTime" | "startDate" | "startTime";
|
|
133
|
-
placeholder: string;
|
|
134
|
-
}
|
|
135
|
-
interface SubcategoryItems {
|
|
136
|
-
id: string;
|
|
137
|
-
name: string;
|
|
138
|
-
description?: string | null;
|
|
139
|
-
}
|
|
140
|
-
interface Subcategory {
|
|
141
|
-
id: string;
|
|
142
|
-
name: string;
|
|
143
|
-
items?: SubcategoryItems[] | null;
|
|
144
|
-
}
|
|
145
|
-
interface Category {
|
|
146
|
-
color?: string | null;
|
|
147
|
-
description?: string | null;
|
|
148
|
-
id: string;
|
|
149
|
-
name: string;
|
|
150
|
-
subcategories: Subcategory[];
|
|
151
|
-
}
|
|
152
|
-
type OptionItem = {
|
|
153
|
-
value: string;
|
|
154
|
-
label: string;
|
|
155
|
-
};
|
|
156
|
-
type ImageObjectType = {
|
|
157
|
-
uri: string;
|
|
158
|
-
type: string;
|
|
159
|
-
name: string;
|
|
160
|
-
};
|
|
161
|
-
interface ResourceConnectionsType {
|
|
162
|
-
events: EventListItemType[] | null;
|
|
163
|
-
vendors: VendorType[] | null;
|
|
164
|
-
}
|
|
165
|
-
interface CreateFormData<T extends FieldValues> {
|
|
166
|
-
control: Control<T, any>;
|
|
167
|
-
fields: T;
|
|
168
|
-
formState: FormState<T>;
|
|
169
|
-
handleSubmit: UseFormHandleSubmit<T, any>;
|
|
170
|
-
reset: UseFormReset<T>;
|
|
171
|
-
setValue: UseFormSetValue<T>;
|
|
172
|
-
watch: UseFormWatch<T>;
|
|
173
|
-
getValues: UseFormGetValues<T>;
|
|
174
|
-
}
|
|
175
|
-
interface UseGetResourcesByRegionOptions {
|
|
176
|
-
onlyClaimed?: boolean;
|
|
177
|
-
limit?: number;
|
|
178
|
-
offset?: number;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
export { type BaseResourceTypeFormData as B, type Category as C, type DeviceInfo as D, type EventStatusType as E, type FormDateField as F, type GeocodeLocation as G, type ImageObjectType as I, type MutationResponse as M, type Nullable as N, type OptionItem as O, type PromoCodeType as P, type ResourceDetails as R, type SocialMediaType as S, type TermsAgreement as T, type UserLicenceType as U, type CreateFormData as a, type Region as b, type ResourceContactDetailsType as c, type BaseResourceType as d, type FormField as e, type OwnerType as f, PROMO_CODE_PREFIX as g, type PosterUsageType as h, type RelatedPostType as i, type ResourceConnectionsType as j, type SocialShareResourceType as k, type Subcategory as l, type SubcategoryItems as m, type UseGetResourcesByRegionOptions as n };
|