@axcode/axcloud-sdk 0.2.0-dev.03fb26c → 0.2.0-dev.5dc7e06
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/README.md +67 -0
- package/dist/barnsport.d.mts +39 -0
- package/dist/barnsport.d.ts +39 -0
- package/dist/barnsport.js +73 -0
- package/dist/barnsport.js.map +1 -0
- package/dist/barnsport.mjs +4 -0
- package/dist/barnsport.mjs.map +1 -0
- package/dist/chunk-2IVJTMRB.js +519 -0
- package/dist/chunk-2IVJTMRB.js.map +1 -0
- package/dist/chunk-7IPCZJ5Q.mjs +273 -0
- package/dist/chunk-7IPCZJ5Q.mjs.map +1 -0
- package/dist/chunk-7K5N3DQ4.js +231 -0
- package/dist/chunk-7K5N3DQ4.js.map +1 -0
- package/dist/chunk-CACQMQCJ.mjs +506 -0
- package/dist/chunk-CACQMQCJ.mjs.map +1 -0
- package/dist/chunk-PMMCOWL3.mjs +223 -0
- package/dist/chunk-PMMCOWL3.mjs.map +1 -0
- package/dist/chunk-ZOQAXLCZ.js +290 -0
- package/dist/chunk-ZOQAXLCZ.js.map +1 -0
- package/dist/client-FOpKwe3e.d.mts +75 -0
- package/dist/client-FOpKwe3e.d.ts +75 -0
- package/dist/index.d.mts +10 -812
- package/dist/index.d.ts +10 -812
- package/dist/index.js +130 -889
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -839
- package/dist/index.mjs.map +1 -1
- package/dist/public.d.mts +27 -0
- package/dist/public.d.ts +27 -0
- package/dist/public.js +131 -0
- package/dist/public.js.map +1 -0
- package/dist/public.mjs +99 -0
- package/dist/public.mjs.map +1 -0
- package/dist/useBarnsport-C6uDSuHf.d.mts +583 -0
- package/dist/useBarnsport-C6uDSuHf.d.ts +583 -0
- package/dist/useContent-1WbKvPY4.d.mts +508 -0
- package/dist/useContent-Cl7dvERE.d.ts +508 -0
- package/package.json +13 -3
|
@@ -0,0 +1,583 @@
|
|
|
1
|
+
import * as _tanstack_react_query from '@tanstack/react-query';
|
|
2
|
+
|
|
3
|
+
interface BarnsportMunicipality {
|
|
4
|
+
id: string;
|
|
5
|
+
slug: string;
|
|
6
|
+
name: string;
|
|
7
|
+
county?: string;
|
|
8
|
+
geo?: {
|
|
9
|
+
lat: number;
|
|
10
|
+
lng: number;
|
|
11
|
+
bounds?: [number, number, number, number];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface BarnsportSportArticle {
|
|
15
|
+
short_description?: string;
|
|
16
|
+
what_is_it?: string;
|
|
17
|
+
why_fun?: string;
|
|
18
|
+
good_to_know?: {
|
|
19
|
+
age?: string;
|
|
20
|
+
equipment?: string;
|
|
21
|
+
cost?: string;
|
|
22
|
+
};
|
|
23
|
+
fun_facts?: string[];
|
|
24
|
+
}
|
|
25
|
+
interface BarnsportSport {
|
|
26
|
+
id: string;
|
|
27
|
+
slug: string;
|
|
28
|
+
name: string;
|
|
29
|
+
icon?: string;
|
|
30
|
+
color?: string;
|
|
31
|
+
category?: string;
|
|
32
|
+
is_featured?: boolean;
|
|
33
|
+
hero_image_url?: string;
|
|
34
|
+
short_description?: string;
|
|
35
|
+
/** Present on the single-sport endpoint (GET /public/{orgId}/sports/{slug}). */
|
|
36
|
+
article?: BarnsportSportArticle;
|
|
37
|
+
}
|
|
38
|
+
interface BarnsportActivitySchedule {
|
|
39
|
+
weekday?: number;
|
|
40
|
+
starts_at?: string;
|
|
41
|
+
ends_at?: string;
|
|
42
|
+
label?: string;
|
|
43
|
+
season?: string;
|
|
44
|
+
}
|
|
45
|
+
interface BarnsportActivityLocation {
|
|
46
|
+
name?: string;
|
|
47
|
+
address?: string;
|
|
48
|
+
lat?: number;
|
|
49
|
+
lng?: number;
|
|
50
|
+
}
|
|
51
|
+
interface BarnsportRegistrationMethod {
|
|
52
|
+
type: 'url' | 'email' | 'phone' | 'form' | 'external';
|
|
53
|
+
label?: string;
|
|
54
|
+
value: string;
|
|
55
|
+
instructions?: string;
|
|
56
|
+
preferred?: boolean;
|
|
57
|
+
}
|
|
58
|
+
interface BarnsportActivityListItem {
|
|
59
|
+
id: string;
|
|
60
|
+
slug: string;
|
|
61
|
+
title: string;
|
|
62
|
+
summary?: string;
|
|
63
|
+
sport: {
|
|
64
|
+
id: string;
|
|
65
|
+
slug: string;
|
|
66
|
+
name?: string;
|
|
67
|
+
icon?: string;
|
|
68
|
+
};
|
|
69
|
+
municipality: {
|
|
70
|
+
id: string;
|
|
71
|
+
slug: string;
|
|
72
|
+
name?: string;
|
|
73
|
+
};
|
|
74
|
+
club: {
|
|
75
|
+
id: string;
|
|
76
|
+
slug: string;
|
|
77
|
+
name?: string;
|
|
78
|
+
};
|
|
79
|
+
birthYears?: number[];
|
|
80
|
+
minBirthYear?: number;
|
|
81
|
+
maxBirthYear?: number;
|
|
82
|
+
ageLabel?: string;
|
|
83
|
+
schedule: BarnsportActivitySchedule[];
|
|
84
|
+
location?: BarnsportActivityLocation;
|
|
85
|
+
registrationSummary?: string;
|
|
86
|
+
updatedAt: string;
|
|
87
|
+
}
|
|
88
|
+
interface BarnsportActivity {
|
|
89
|
+
activity_id: string;
|
|
90
|
+
org_id: string;
|
|
91
|
+
slug: string;
|
|
92
|
+
title: string;
|
|
93
|
+
summary?: string;
|
|
94
|
+
description?: string;
|
|
95
|
+
sport_id: string;
|
|
96
|
+
sport_slug: string;
|
|
97
|
+
sport_name?: string;
|
|
98
|
+
sport_icon?: string;
|
|
99
|
+
municipality_id: string;
|
|
100
|
+
municipality_slug: string;
|
|
101
|
+
municipality_name?: string;
|
|
102
|
+
club_id: string;
|
|
103
|
+
club_slug: string;
|
|
104
|
+
club_name?: string;
|
|
105
|
+
club_website_url?: string;
|
|
106
|
+
birth_years?: number[];
|
|
107
|
+
min_birth_year?: number;
|
|
108
|
+
max_birth_year?: number;
|
|
109
|
+
age_label?: string;
|
|
110
|
+
schedule: BarnsportActivitySchedule[];
|
|
111
|
+
location?: BarnsportActivityLocation;
|
|
112
|
+
registration: {
|
|
113
|
+
methods: BarnsportRegistrationMethod[];
|
|
114
|
+
deadline?: string;
|
|
115
|
+
price_label?: string;
|
|
116
|
+
};
|
|
117
|
+
seo?: {
|
|
118
|
+
title?: string;
|
|
119
|
+
description?: string;
|
|
120
|
+
image_media_id?: string;
|
|
121
|
+
};
|
|
122
|
+
published_at?: string;
|
|
123
|
+
updated_at: string;
|
|
124
|
+
}
|
|
125
|
+
interface BarnsportActivitiesFilter {
|
|
126
|
+
municipality?: string;
|
|
127
|
+
sport?: string;
|
|
128
|
+
birthYear?: number;
|
|
129
|
+
q?: string;
|
|
130
|
+
search?: string;
|
|
131
|
+
sort?: 'updated' | 'name' | 'relevance';
|
|
132
|
+
cursor?: string;
|
|
133
|
+
limit?: number;
|
|
134
|
+
}
|
|
135
|
+
interface BarnsportListResponse<T> {
|
|
136
|
+
items: T[];
|
|
137
|
+
count: number;
|
|
138
|
+
nextCursor?: string | null;
|
|
139
|
+
}
|
|
140
|
+
interface BarnsportActivityResponse {
|
|
141
|
+
activity: BarnsportActivity;
|
|
142
|
+
}
|
|
143
|
+
interface BarnsportSitemapUrl {
|
|
144
|
+
loc: string;
|
|
145
|
+
lastmod?: string;
|
|
146
|
+
changefreq?: string;
|
|
147
|
+
priority?: number;
|
|
148
|
+
}
|
|
149
|
+
interface BarnsportSitemapResponse {
|
|
150
|
+
baseUrl: string;
|
|
151
|
+
updatedAt: string;
|
|
152
|
+
urls: BarnsportSitemapUrl[];
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Backward-compatible, extensible request shape. The API validates the
|
|
156
|
+
* cross-field requirements for interest and contact-help submissions.
|
|
157
|
+
*/
|
|
158
|
+
interface BarnsportInterestSubmissionRequest {
|
|
159
|
+
activitySlug?: string;
|
|
160
|
+
activityOfferSlug?: string;
|
|
161
|
+
providerSlug?: string;
|
|
162
|
+
sportSlug?: string;
|
|
163
|
+
municipalitySlug?: string;
|
|
164
|
+
requestKind?: 'interest' | 'contact_help';
|
|
165
|
+
guardianName?: string;
|
|
166
|
+
guardianEmail: string;
|
|
167
|
+
guardianPhone?: string;
|
|
168
|
+
childName?: string;
|
|
169
|
+
childBirthYear?: number;
|
|
170
|
+
message?: string;
|
|
171
|
+
consent: {
|
|
172
|
+
contact: boolean;
|
|
173
|
+
privacyVersion: string;
|
|
174
|
+
};
|
|
175
|
+
honeypot?: string;
|
|
176
|
+
source?: {
|
|
177
|
+
site?: string;
|
|
178
|
+
pageUrl?: string;
|
|
179
|
+
utm?: Record<string, string>;
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
type BarnsportInquiryTarget = {
|
|
183
|
+
activitySlug: string;
|
|
184
|
+
providerSlug?: string;
|
|
185
|
+
} | {
|
|
186
|
+
activitySlug?: string;
|
|
187
|
+
providerSlug: string;
|
|
188
|
+
};
|
|
189
|
+
/**
|
|
190
|
+
* Opt-in strict request contract. A normal interest inquiry requires guardian
|
|
191
|
+
* details and the child's birth year. Contact-help is intentionally lighter,
|
|
192
|
+
* but both variants must identify either an activity or a provider.
|
|
193
|
+
*/
|
|
194
|
+
type BarnsportInquirySubmissionRequest = BarnsportInquiryTarget & BarnsportInterestSubmissionRequest & ({
|
|
195
|
+
requestKind?: 'interest';
|
|
196
|
+
guardianName: string;
|
|
197
|
+
childBirthYear: number;
|
|
198
|
+
} | {
|
|
199
|
+
requestKind: 'contact_help';
|
|
200
|
+
guardianName?: string;
|
|
201
|
+
childBirthYear?: number;
|
|
202
|
+
});
|
|
203
|
+
interface BarnsportInterestSubmissionResponse extends BarnsportInquiryResponse {
|
|
204
|
+
success: boolean;
|
|
205
|
+
submissionId?: string;
|
|
206
|
+
duplicate?: boolean;
|
|
207
|
+
message: string;
|
|
208
|
+
}
|
|
209
|
+
interface BarnsportProviderUpdateRequest {
|
|
210
|
+
requesterName: string;
|
|
211
|
+
requesterEmail: string;
|
|
212
|
+
requesterRole?: string;
|
|
213
|
+
proposedChanges: {
|
|
214
|
+
website_url?: string;
|
|
215
|
+
description?: string;
|
|
216
|
+
street_address?: string;
|
|
217
|
+
postal_code?: string;
|
|
218
|
+
locality?: string;
|
|
219
|
+
};
|
|
220
|
+
message?: string;
|
|
221
|
+
honeypot?: string;
|
|
222
|
+
source?: {
|
|
223
|
+
site?: string;
|
|
224
|
+
pageUrl?: string;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
interface BarnsportProviderUpdateResponse {
|
|
228
|
+
accepted?: boolean;
|
|
229
|
+
success?: boolean;
|
|
230
|
+
message?: string;
|
|
231
|
+
request?: {
|
|
232
|
+
id?: string;
|
|
233
|
+
status?: string;
|
|
234
|
+
};
|
|
235
|
+
}
|
|
236
|
+
interface BarnsportClubRemovalRequest {
|
|
237
|
+
requesterName: string;
|
|
238
|
+
requesterEmail: string;
|
|
239
|
+
requesterRole?: string;
|
|
240
|
+
requestedAction?: 'hide' | 'delete';
|
|
241
|
+
reason?: string;
|
|
242
|
+
honeypot?: string;
|
|
243
|
+
source?: {
|
|
244
|
+
site?: string;
|
|
245
|
+
pageUrl?: string;
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
interface BarnsportClubRemovalResponse {
|
|
249
|
+
success: boolean;
|
|
250
|
+
requestId?: string;
|
|
251
|
+
clubSlug?: string;
|
|
252
|
+
hiddenActivities?: number;
|
|
253
|
+
message: string;
|
|
254
|
+
}
|
|
255
|
+
type BarnsportSourceConfidence = 'high' | 'medium' | 'low';
|
|
256
|
+
type BarnsportVerificationStatus = 'needs_verification' | 'verified' | 'rejected' | 'archived';
|
|
257
|
+
type BarnsportYouthStatus = 'confirmed_youth' | 'likely_youth' | 'unknown' | 'unlikely_youth';
|
|
258
|
+
type BarnsportActivityEnvironment = 'indoor' | 'outdoor' | 'mixed' | 'unknown';
|
|
259
|
+
interface BarnsportMunicipalitySummary {
|
|
260
|
+
id: string;
|
|
261
|
+
slug: string;
|
|
262
|
+
name: string;
|
|
263
|
+
county?: string;
|
|
264
|
+
}
|
|
265
|
+
interface BarnsportSportSummary {
|
|
266
|
+
id: string;
|
|
267
|
+
slug: string;
|
|
268
|
+
name: string;
|
|
269
|
+
icon?: string;
|
|
270
|
+
category?: string;
|
|
271
|
+
}
|
|
272
|
+
interface BarnsportProviderSummary {
|
|
273
|
+
id: string;
|
|
274
|
+
slug: string;
|
|
275
|
+
name: string;
|
|
276
|
+
logo_url?: string;
|
|
277
|
+
website_url?: string;
|
|
278
|
+
municipality_slug?: string;
|
|
279
|
+
municipality_name?: string;
|
|
280
|
+
primary_sport_slug?: string;
|
|
281
|
+
primary_sport_name?: string;
|
|
282
|
+
}
|
|
283
|
+
interface BarnsportCourseCandidate {
|
|
284
|
+
title: string;
|
|
285
|
+
summary?: string;
|
|
286
|
+
age_text?: string;
|
|
287
|
+
schedule_text?: string;
|
|
288
|
+
price_text?: string;
|
|
289
|
+
beginner_friendly?: boolean;
|
|
290
|
+
trial_available?: boolean;
|
|
291
|
+
low_cost?: boolean;
|
|
292
|
+
weekend_available?: boolean;
|
|
293
|
+
environment?: BarnsportActivityEnvironment;
|
|
294
|
+
signup_url?: string;
|
|
295
|
+
source_url?: string;
|
|
296
|
+
source_title?: string;
|
|
297
|
+
confidence?: BarnsportSourceConfidence;
|
|
298
|
+
evidence?: string[];
|
|
299
|
+
review_required?: boolean;
|
|
300
|
+
review_flags?: string[];
|
|
301
|
+
}
|
|
302
|
+
interface BarnsportActivityOffer {
|
|
303
|
+
id: string;
|
|
304
|
+
slug: string;
|
|
305
|
+
title: string;
|
|
306
|
+
is_featured?: boolean;
|
|
307
|
+
source_label?: string;
|
|
308
|
+
verification_status?: BarnsportVerificationStatus;
|
|
309
|
+
youth_status?: BarnsportYouthStatus;
|
|
310
|
+
youth_evidence?: string[];
|
|
311
|
+
inquiry_contact_status?: 'ready' | 'review_first' | 'needs_contact' | 'do_not_contact';
|
|
312
|
+
contact_help_supported?: boolean;
|
|
313
|
+
registration_status?: string;
|
|
314
|
+
season?: string;
|
|
315
|
+
registration_window?: string;
|
|
316
|
+
verified_at?: string;
|
|
317
|
+
stale_at?: string;
|
|
318
|
+
is_stale?: boolean;
|
|
319
|
+
age_text?: string;
|
|
320
|
+
age_source?: string;
|
|
321
|
+
age_verification_status?: 'verified_by_provider' | 'found_unverified' | 'missing';
|
|
322
|
+
birth_year_from?: number;
|
|
323
|
+
birth_year_to?: number;
|
|
324
|
+
schedule_text?: string;
|
|
325
|
+
sessions_text?: string;
|
|
326
|
+
location_name?: string;
|
|
327
|
+
location_address?: string;
|
|
328
|
+
locality?: string;
|
|
329
|
+
location_lat?: number;
|
|
330
|
+
location_lng?: number;
|
|
331
|
+
price_text?: string;
|
|
332
|
+
beginner_friendly?: boolean;
|
|
333
|
+
trial_available?: boolean;
|
|
334
|
+
low_cost?: boolean;
|
|
335
|
+
weekend_available?: boolean;
|
|
336
|
+
environment?: BarnsportActivityEnvironment;
|
|
337
|
+
signup_url?: string;
|
|
338
|
+
contact_url?: string;
|
|
339
|
+
source_url?: string;
|
|
340
|
+
source_last_seen_at?: string;
|
|
341
|
+
source_confidence?: BarnsportSourceConfidence;
|
|
342
|
+
missing_fields?: string[];
|
|
343
|
+
review_required?: boolean;
|
|
344
|
+
review_flags?: string[];
|
|
345
|
+
course_candidates?: BarnsportCourseCandidate[];
|
|
346
|
+
provider?: BarnsportProviderSummary;
|
|
347
|
+
sport?: BarnsportSportSummary;
|
|
348
|
+
municipality?: BarnsportMunicipalitySummary;
|
|
349
|
+
}
|
|
350
|
+
interface BarnsportReview {
|
|
351
|
+
id: string;
|
|
352
|
+
rating: number;
|
|
353
|
+
published_text?: string | null;
|
|
354
|
+
display_name: string;
|
|
355
|
+
created_at: string;
|
|
356
|
+
}
|
|
357
|
+
interface BarnsportReviewsSummary {
|
|
358
|
+
count: number;
|
|
359
|
+
average_rating: number | null;
|
|
360
|
+
items: BarnsportReview[];
|
|
361
|
+
}
|
|
362
|
+
interface BarnsportStats {
|
|
363
|
+
interest_count: number | null;
|
|
364
|
+
view_count: number | null;
|
|
365
|
+
}
|
|
366
|
+
interface BarnsportProvider extends BarnsportProviderSummary {
|
|
367
|
+
provider_type?: string;
|
|
368
|
+
description?: string;
|
|
369
|
+
organization?: string;
|
|
370
|
+
category_label?: string;
|
|
371
|
+
logo_path?: string;
|
|
372
|
+
logo_mime_type?: string;
|
|
373
|
+
is_verified: boolean;
|
|
374
|
+
verified_at?: string;
|
|
375
|
+
source_url?: string;
|
|
376
|
+
source_register_url?: string;
|
|
377
|
+
source_last_seen_at?: string;
|
|
378
|
+
source_confidence?: BarnsportSourceConfidence;
|
|
379
|
+
geocode_status?: string;
|
|
380
|
+
address_text?: string;
|
|
381
|
+
street_address?: string;
|
|
382
|
+
postal_code?: string;
|
|
383
|
+
locality?: string;
|
|
384
|
+
country_code?: string;
|
|
385
|
+
latitude?: number;
|
|
386
|
+
longitude?: number;
|
|
387
|
+
municipality_county?: string;
|
|
388
|
+
municipality?: BarnsportMunicipalitySummary;
|
|
389
|
+
sports?: BarnsportSportSummary[];
|
|
390
|
+
activity_labels?: string[];
|
|
391
|
+
activity_offers?: BarnsportActivityOffer[];
|
|
392
|
+
}
|
|
393
|
+
interface BarnsportProviderProfile extends BarnsportProvider {
|
|
394
|
+
reviews?: BarnsportReviewsSummary;
|
|
395
|
+
stats?: BarnsportStats;
|
|
396
|
+
}
|
|
397
|
+
interface BarnsportProvidersFilter {
|
|
398
|
+
q?: string;
|
|
399
|
+
municipality?: string;
|
|
400
|
+
sport?: string;
|
|
401
|
+
sort?: 'relevance' | 'name' | 'updated';
|
|
402
|
+
cursor?: string;
|
|
403
|
+
limit?: number;
|
|
404
|
+
}
|
|
405
|
+
interface BarnsportActivityOffersFilter {
|
|
406
|
+
q?: string;
|
|
407
|
+
municipality?: string;
|
|
408
|
+
sport?: string;
|
|
409
|
+
provider?: string;
|
|
410
|
+
birth_year?: number;
|
|
411
|
+
visibility?: 'barnsport' | 'confirmed' | 'register';
|
|
412
|
+
beginner_friendly?: boolean;
|
|
413
|
+
trial_available?: boolean;
|
|
414
|
+
low_cost?: boolean;
|
|
415
|
+
weekend_available?: boolean;
|
|
416
|
+
environment?: BarnsportActivityEnvironment;
|
|
417
|
+
cursor?: string;
|
|
418
|
+
limit?: number;
|
|
419
|
+
}
|
|
420
|
+
interface BarnsportCollectionResponse<T, TFilters = Record<string, unknown>> {
|
|
421
|
+
items: T[];
|
|
422
|
+
count?: number;
|
|
423
|
+
nextCursor?: string | null;
|
|
424
|
+
hasMore?: boolean;
|
|
425
|
+
filters?: TFilters;
|
|
426
|
+
}
|
|
427
|
+
interface BarnsportItemResponse<T> {
|
|
428
|
+
item: T;
|
|
429
|
+
}
|
|
430
|
+
interface BarnsportInquiryDelivery {
|
|
431
|
+
type: string;
|
|
432
|
+
status: string;
|
|
433
|
+
provider?: string;
|
|
434
|
+
}
|
|
435
|
+
interface BarnsportInquiryResponse {
|
|
436
|
+
success: boolean;
|
|
437
|
+
message: string;
|
|
438
|
+
delivery_status?: string;
|
|
439
|
+
request_kind?: 'interest' | 'contact_help';
|
|
440
|
+
activity_offer_slug?: string;
|
|
441
|
+
inquiry_contact_status?: string;
|
|
442
|
+
deliveries?: BarnsportInquiryDelivery[];
|
|
443
|
+
}
|
|
444
|
+
interface BarnsportFeedbackRequest {
|
|
445
|
+
token: string;
|
|
446
|
+
outcome: 'helped' | 'not_helped' | 'child_started' | 'not_a_fit';
|
|
447
|
+
honeypot?: string;
|
|
448
|
+
source?: {
|
|
449
|
+
site?: string;
|
|
450
|
+
};
|
|
451
|
+
}
|
|
452
|
+
interface BarnsportFeedbackResponse {
|
|
453
|
+
accepted: boolean;
|
|
454
|
+
feedback?: {
|
|
455
|
+
status: BarnsportFeedbackRequest['outcome'];
|
|
456
|
+
};
|
|
457
|
+
}
|
|
458
|
+
interface BarnsportReviewSubmissionRequest {
|
|
459
|
+
token: string;
|
|
460
|
+
rating: 1 | 2 | 3 | 4 | 5;
|
|
461
|
+
bodyText?: string;
|
|
462
|
+
displayNameChoice?: 'first_name' | 'anonymous';
|
|
463
|
+
honeypot?: string;
|
|
464
|
+
source?: {
|
|
465
|
+
site?: string;
|
|
466
|
+
};
|
|
467
|
+
}
|
|
468
|
+
interface BarnsportReviewSubmissionResponse {
|
|
469
|
+
accepted?: boolean;
|
|
470
|
+
review: {
|
|
471
|
+
id: string;
|
|
472
|
+
status: 'pending';
|
|
473
|
+
};
|
|
474
|
+
}
|
|
475
|
+
type BarnsportEventType = 'interest_form_viewed' | 'interest_submitted' | 'activity_offer_viewed' | 'provider_viewed' | 'search_performed' | 'filter_applied' | 'signup_link_clicked' | 'feedback_submitted';
|
|
476
|
+
interface BarnsportEventRequest {
|
|
477
|
+
eventType: BarnsportEventType;
|
|
478
|
+
activitySlug?: string;
|
|
479
|
+
activityOfferSlug?: string;
|
|
480
|
+
providerSlug?: string;
|
|
481
|
+
sportSlug?: string;
|
|
482
|
+
municipalitySlug?: string;
|
|
483
|
+
metadata?: Record<string, string | number | boolean | undefined>;
|
|
484
|
+
honeypot?: string;
|
|
485
|
+
source?: {
|
|
486
|
+
site?: string;
|
|
487
|
+
};
|
|
488
|
+
}
|
|
489
|
+
interface BarnsportEventResponse {
|
|
490
|
+
accepted: boolean;
|
|
491
|
+
event?: {
|
|
492
|
+
id: string;
|
|
493
|
+
event_type: BarnsportEventType;
|
|
494
|
+
created_at: string;
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
declare function useBarnsportMunicipalities(): {
|
|
499
|
+
municipalities: BarnsportMunicipality[];
|
|
500
|
+
count: number;
|
|
501
|
+
isLoading: boolean;
|
|
502
|
+
isError: boolean;
|
|
503
|
+
error: Error | null;
|
|
504
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportListResponse<BarnsportMunicipality>, Error>>;
|
|
505
|
+
};
|
|
506
|
+
declare function useBarnsportSports(): {
|
|
507
|
+
sports: BarnsportSport[];
|
|
508
|
+
count: number;
|
|
509
|
+
isLoading: boolean;
|
|
510
|
+
isError: boolean;
|
|
511
|
+
error: Error | null;
|
|
512
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportListResponse<BarnsportSport>, Error>>;
|
|
513
|
+
};
|
|
514
|
+
declare function useBarnsportSport(slug: string | undefined): {
|
|
515
|
+
sport: BarnsportSport | null;
|
|
516
|
+
isLoading: boolean;
|
|
517
|
+
isError: boolean;
|
|
518
|
+
error: Error | null;
|
|
519
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<{
|
|
520
|
+
sport: BarnsportSport;
|
|
521
|
+
}, Error>>;
|
|
522
|
+
};
|
|
523
|
+
declare function useBarnsportActivities(filters?: BarnsportActivitiesFilter): {
|
|
524
|
+
activities: BarnsportActivityListItem[];
|
|
525
|
+
count: number;
|
|
526
|
+
nextCursor: string | null;
|
|
527
|
+
isLoading: boolean;
|
|
528
|
+
isError: boolean;
|
|
529
|
+
error: Error | null;
|
|
530
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportListResponse<BarnsportActivityListItem>, Error>>;
|
|
531
|
+
};
|
|
532
|
+
declare function useBarnsportActivity(slug: string | undefined): {
|
|
533
|
+
activity: BarnsportActivity | null;
|
|
534
|
+
isLoading: boolean;
|
|
535
|
+
isError: boolean;
|
|
536
|
+
error: Error | null;
|
|
537
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportActivityResponse, Error>>;
|
|
538
|
+
};
|
|
539
|
+
declare function useBarnsportSitemap(baseUrl?: string): {
|
|
540
|
+
sitemap: BarnsportSitemapResponse | null;
|
|
541
|
+
urls: BarnsportSitemapUrl[];
|
|
542
|
+
isLoading: boolean;
|
|
543
|
+
isError: boolean;
|
|
544
|
+
error: Error | null;
|
|
545
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportSitemapResponse, Error>>;
|
|
546
|
+
};
|
|
547
|
+
declare function useSubmitBarnsportInterest(): _tanstack_react_query.UseMutationResult<BarnsportInterestSubmissionResponse, Error, BarnsportInterestSubmissionRequest, unknown>;
|
|
548
|
+
declare function useBarnsportProviderSearch(filters: BarnsportProvidersFilter): {
|
|
549
|
+
providers: BarnsportProvider[];
|
|
550
|
+
count: number;
|
|
551
|
+
nextCursor: string | null;
|
|
552
|
+
hasMore: boolean;
|
|
553
|
+
isLoading: boolean;
|
|
554
|
+
isFetching: boolean;
|
|
555
|
+
isError: boolean;
|
|
556
|
+
error: Error | null;
|
|
557
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportCollectionResponse<BarnsportProvider, BarnsportProvidersFilter>, Error>>;
|
|
558
|
+
};
|
|
559
|
+
declare function useBarnsportProvider(slug: string | undefined): {
|
|
560
|
+
provider: BarnsportProviderProfile | null;
|
|
561
|
+
isLoading: boolean;
|
|
562
|
+
isError: boolean;
|
|
563
|
+
error: Error | null;
|
|
564
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<{
|
|
565
|
+
item: BarnsportProviderProfile;
|
|
566
|
+
}, Error>>;
|
|
567
|
+
};
|
|
568
|
+
declare function useBarnsportActivityOffers(filters?: BarnsportActivityOffersFilter): {
|
|
569
|
+
activityOffers: BarnsportActivityOffer[];
|
|
570
|
+
count: number;
|
|
571
|
+
nextCursor: string | null;
|
|
572
|
+
hasMore: boolean;
|
|
573
|
+
isLoading: boolean;
|
|
574
|
+
isFetching: boolean;
|
|
575
|
+
isError: boolean;
|
|
576
|
+
error: Error | null;
|
|
577
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportCollectionResponse<BarnsportActivityOffer, BarnsportActivityOffersFilter>, Error>>;
|
|
578
|
+
};
|
|
579
|
+
declare function useSubmitBarnsportFeedback(): _tanstack_react_query.UseMutationResult<BarnsportFeedbackResponse, Error, BarnsportFeedbackRequest, unknown>;
|
|
580
|
+
declare function useSubmitBarnsportReview(): _tanstack_react_query.UseMutationResult<BarnsportReviewSubmissionResponse, Error, BarnsportReviewSubmissionRequest, unknown>;
|
|
581
|
+
declare function useTrackBarnsportEvent(): _tanstack_react_query.UseMutationResult<BarnsportEventResponse, Error, BarnsportEventRequest, unknown>;
|
|
582
|
+
|
|
583
|
+
export { type BarnsportYouthStatus as $, type BarnsportActivityOffersFilter as A, type BarnsportActivitiesFilter as B, type BarnsportActivityOffer as C, type BarnsportFeedbackRequest as D, type BarnsportFeedbackResponse as E, type BarnsportReviewSubmissionRequest as F, type BarnsportReviewSubmissionResponse as G, type BarnsportEventRequest as H, type BarnsportEventResponse as I, type BarnsportClubRemovalRequest as J, type BarnsportClubRemovalResponse as K, type BarnsportProviderUpdateRequest as L, type BarnsportProviderUpdateResponse as M, type BarnsportActivityEnvironment as N, type BarnsportCourseCandidate as O, type BarnsportEventType as P, type BarnsportInquiryDelivery as Q, type BarnsportInquiryResponse as R, type BarnsportMunicipalitySummary as S, type BarnsportProviderSummary as T, type BarnsportReview as U, type BarnsportReviewsSummary as V, type BarnsportSourceConfidence as W, type BarnsportSportArticle as X, type BarnsportSportSummary as Y, type BarnsportStats as Z, type BarnsportVerificationStatus as _, type BarnsportActivity as a, useBarnsportActivityOffers as a0, useBarnsportProvider as a1, useBarnsportProviderSearch as a2, useSubmitBarnsportFeedback as a3, useSubmitBarnsportReview as a4, useTrackBarnsportEvent as a5, type BarnsportActivityListItem as b, type BarnsportActivityLocation as c, type BarnsportActivityResponse as d, type BarnsportActivitySchedule as e, type BarnsportInquirySubmissionRequest as f, type BarnsportInterestSubmissionRequest as g, type BarnsportInterestSubmissionResponse as h, type BarnsportListResponse as i, type BarnsportMunicipality as j, type BarnsportRegistrationMethod as k, type BarnsportSitemapResponse as l, type BarnsportSitemapUrl as m, type BarnsportSport as n, useBarnsportActivity as o, useBarnsportMunicipalities as p, useBarnsportSitemap as q, useBarnsportSport as r, useBarnsportSports as s, useSubmitBarnsportInterest as t, useBarnsportActivities as u, type BarnsportProvidersFilter as v, type BarnsportCollectionResponse as w, type BarnsportProvider as x, type BarnsportItemResponse as y, type BarnsportProviderProfile as z };
|