@axcode/axcloud-sdk 0.2.0-dev.1e6c3d5 → 0.2.0-dev.d9fb4fe
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 +41 -819
- package/dist/index.d.ts +41 -819
- 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-Cn9flax0.d.mts +574 -0
- package/dist/useBarnsport-Cn9flax0.d.ts +574 -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,574 @@
|
|
|
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
|
+
interface BarnsportInquirySubmissionBase {
|
|
155
|
+
activityOfferSlug?: string;
|
|
156
|
+
sportSlug?: string;
|
|
157
|
+
municipalitySlug?: string;
|
|
158
|
+
guardianEmail: string;
|
|
159
|
+
guardianPhone?: string;
|
|
160
|
+
childName?: string;
|
|
161
|
+
message?: string;
|
|
162
|
+
consent: {
|
|
163
|
+
contact: boolean;
|
|
164
|
+
privacyVersion: string;
|
|
165
|
+
};
|
|
166
|
+
honeypot?: string;
|
|
167
|
+
source?: {
|
|
168
|
+
site?: string;
|
|
169
|
+
pageUrl?: string;
|
|
170
|
+
utm?: Record<string, string>;
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
type BarnsportInquiryTarget = {
|
|
174
|
+
activitySlug: string;
|
|
175
|
+
providerSlug?: string;
|
|
176
|
+
} | {
|
|
177
|
+
activitySlug?: string;
|
|
178
|
+
providerSlug: string;
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* A normal interest inquiry requires guardian details and the child's birth
|
|
182
|
+
* year. Contact-help is intentionally lighter, but both variants must identify
|
|
183
|
+
* either an activity or a provider.
|
|
184
|
+
*/
|
|
185
|
+
type BarnsportInterestSubmissionRequest = BarnsportInquiryTarget & BarnsportInquirySubmissionBase & ({
|
|
186
|
+
requestKind?: 'interest';
|
|
187
|
+
guardianName: string;
|
|
188
|
+
childBirthYear: number;
|
|
189
|
+
} | {
|
|
190
|
+
requestKind: 'contact_help';
|
|
191
|
+
guardianName?: string;
|
|
192
|
+
childBirthYear?: number;
|
|
193
|
+
});
|
|
194
|
+
interface BarnsportInterestSubmissionResponse extends BarnsportInquiryResponse {
|
|
195
|
+
success: boolean;
|
|
196
|
+
submissionId?: string;
|
|
197
|
+
duplicate?: boolean;
|
|
198
|
+
message: string;
|
|
199
|
+
}
|
|
200
|
+
interface BarnsportProviderUpdateRequest {
|
|
201
|
+
requesterName: string;
|
|
202
|
+
requesterEmail: string;
|
|
203
|
+
requesterRole?: string;
|
|
204
|
+
proposedChanges: {
|
|
205
|
+
website_url?: string;
|
|
206
|
+
description?: string;
|
|
207
|
+
street_address?: string;
|
|
208
|
+
postal_code?: string;
|
|
209
|
+
locality?: string;
|
|
210
|
+
};
|
|
211
|
+
message?: string;
|
|
212
|
+
honeypot?: string;
|
|
213
|
+
source?: {
|
|
214
|
+
site?: string;
|
|
215
|
+
pageUrl?: string;
|
|
216
|
+
};
|
|
217
|
+
}
|
|
218
|
+
interface BarnsportProviderUpdateResponse {
|
|
219
|
+
accepted?: boolean;
|
|
220
|
+
success?: boolean;
|
|
221
|
+
message?: string;
|
|
222
|
+
request?: {
|
|
223
|
+
id?: string;
|
|
224
|
+
status?: string;
|
|
225
|
+
};
|
|
226
|
+
}
|
|
227
|
+
interface BarnsportClubRemovalRequest {
|
|
228
|
+
requesterName: string;
|
|
229
|
+
requesterEmail: string;
|
|
230
|
+
requesterRole?: string;
|
|
231
|
+
requestedAction?: 'hide' | 'delete';
|
|
232
|
+
reason?: string;
|
|
233
|
+
honeypot?: string;
|
|
234
|
+
source?: {
|
|
235
|
+
site?: string;
|
|
236
|
+
pageUrl?: string;
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
interface BarnsportClubRemovalResponse {
|
|
240
|
+
success: boolean;
|
|
241
|
+
requestId?: string;
|
|
242
|
+
clubSlug?: string;
|
|
243
|
+
hiddenActivities?: number;
|
|
244
|
+
message: string;
|
|
245
|
+
}
|
|
246
|
+
type BarnsportSourceConfidence = 'high' | 'medium' | 'low';
|
|
247
|
+
type BarnsportVerificationStatus = 'needs_verification' | 'verified' | 'rejected' | 'archived';
|
|
248
|
+
type BarnsportYouthStatus = 'confirmed_youth' | 'likely_youth' | 'unknown' | 'unlikely_youth';
|
|
249
|
+
type BarnsportActivityEnvironment = 'indoor' | 'outdoor' | 'mixed' | 'unknown';
|
|
250
|
+
interface BarnsportMunicipalitySummary {
|
|
251
|
+
id: string;
|
|
252
|
+
slug: string;
|
|
253
|
+
name: string;
|
|
254
|
+
county?: string;
|
|
255
|
+
}
|
|
256
|
+
interface BarnsportSportSummary {
|
|
257
|
+
id: string;
|
|
258
|
+
slug: string;
|
|
259
|
+
name: string;
|
|
260
|
+
icon?: string;
|
|
261
|
+
category?: string;
|
|
262
|
+
}
|
|
263
|
+
interface BarnsportProviderSummary {
|
|
264
|
+
id: string;
|
|
265
|
+
slug: string;
|
|
266
|
+
name: string;
|
|
267
|
+
logo_url?: string;
|
|
268
|
+
website_url?: string;
|
|
269
|
+
municipality_slug?: string;
|
|
270
|
+
municipality_name?: string;
|
|
271
|
+
primary_sport_slug?: string;
|
|
272
|
+
primary_sport_name?: string;
|
|
273
|
+
}
|
|
274
|
+
interface BarnsportCourseCandidate {
|
|
275
|
+
title: string;
|
|
276
|
+
summary?: string;
|
|
277
|
+
age_text?: string;
|
|
278
|
+
schedule_text?: string;
|
|
279
|
+
price_text?: string;
|
|
280
|
+
beginner_friendly?: boolean;
|
|
281
|
+
trial_available?: boolean;
|
|
282
|
+
low_cost?: boolean;
|
|
283
|
+
weekend_available?: boolean;
|
|
284
|
+
environment?: BarnsportActivityEnvironment;
|
|
285
|
+
signup_url?: string;
|
|
286
|
+
source_url?: string;
|
|
287
|
+
source_title?: string;
|
|
288
|
+
confidence?: BarnsportSourceConfidence;
|
|
289
|
+
evidence?: string[];
|
|
290
|
+
review_required?: boolean;
|
|
291
|
+
review_flags?: string[];
|
|
292
|
+
}
|
|
293
|
+
interface BarnsportActivityOffer {
|
|
294
|
+
id: string;
|
|
295
|
+
slug: string;
|
|
296
|
+
title: string;
|
|
297
|
+
is_featured?: boolean;
|
|
298
|
+
source_label?: string;
|
|
299
|
+
verification_status?: BarnsportVerificationStatus;
|
|
300
|
+
youth_status?: BarnsportYouthStatus;
|
|
301
|
+
youth_evidence?: string[];
|
|
302
|
+
inquiry_contact_status?: 'ready' | 'review_first' | 'needs_contact' | 'do_not_contact';
|
|
303
|
+
contact_help_supported?: boolean;
|
|
304
|
+
registration_status?: string;
|
|
305
|
+
season?: string;
|
|
306
|
+
registration_window?: string;
|
|
307
|
+
verified_at?: string;
|
|
308
|
+
stale_at?: string;
|
|
309
|
+
is_stale?: boolean;
|
|
310
|
+
age_text?: string;
|
|
311
|
+
age_source?: string;
|
|
312
|
+
age_verification_status?: 'verified_by_provider' | 'found_unverified' | 'missing';
|
|
313
|
+
birth_year_from?: number;
|
|
314
|
+
birth_year_to?: number;
|
|
315
|
+
schedule_text?: string;
|
|
316
|
+
sessions_text?: string;
|
|
317
|
+
location_name?: string;
|
|
318
|
+
location_address?: string;
|
|
319
|
+
locality?: string;
|
|
320
|
+
location_lat?: number;
|
|
321
|
+
location_lng?: number;
|
|
322
|
+
price_text?: string;
|
|
323
|
+
beginner_friendly?: boolean;
|
|
324
|
+
trial_available?: boolean;
|
|
325
|
+
low_cost?: boolean;
|
|
326
|
+
weekend_available?: boolean;
|
|
327
|
+
environment?: BarnsportActivityEnvironment;
|
|
328
|
+
signup_url?: string;
|
|
329
|
+
contact_url?: string;
|
|
330
|
+
source_url?: string;
|
|
331
|
+
source_last_seen_at?: string;
|
|
332
|
+
source_confidence?: BarnsportSourceConfidence;
|
|
333
|
+
missing_fields?: string[];
|
|
334
|
+
review_required?: boolean;
|
|
335
|
+
review_flags?: string[];
|
|
336
|
+
course_candidates?: BarnsportCourseCandidate[];
|
|
337
|
+
provider?: BarnsportProviderSummary;
|
|
338
|
+
sport?: BarnsportSportSummary;
|
|
339
|
+
municipality?: BarnsportMunicipalitySummary;
|
|
340
|
+
}
|
|
341
|
+
interface BarnsportReview {
|
|
342
|
+
id: string;
|
|
343
|
+
rating: number;
|
|
344
|
+
published_text?: string | null;
|
|
345
|
+
display_name: string;
|
|
346
|
+
created_at: string;
|
|
347
|
+
}
|
|
348
|
+
interface BarnsportReviewsSummary {
|
|
349
|
+
count: number;
|
|
350
|
+
average_rating: number | null;
|
|
351
|
+
items: BarnsportReview[];
|
|
352
|
+
}
|
|
353
|
+
interface BarnsportStats {
|
|
354
|
+
interest_count: number | null;
|
|
355
|
+
view_count: number | null;
|
|
356
|
+
}
|
|
357
|
+
interface BarnsportProvider extends BarnsportProviderSummary {
|
|
358
|
+
provider_type?: string;
|
|
359
|
+
description?: string;
|
|
360
|
+
organization?: string;
|
|
361
|
+
category_label?: string;
|
|
362
|
+
logo_path?: string;
|
|
363
|
+
logo_mime_type?: string;
|
|
364
|
+
is_verified: boolean;
|
|
365
|
+
verified_at?: string;
|
|
366
|
+
source_url?: string;
|
|
367
|
+
source_register_url?: string;
|
|
368
|
+
source_last_seen_at?: string;
|
|
369
|
+
source_confidence?: BarnsportSourceConfidence;
|
|
370
|
+
geocode_status?: string;
|
|
371
|
+
address_text?: string;
|
|
372
|
+
street_address?: string;
|
|
373
|
+
postal_code?: string;
|
|
374
|
+
locality?: string;
|
|
375
|
+
country_code?: string;
|
|
376
|
+
latitude?: number;
|
|
377
|
+
longitude?: number;
|
|
378
|
+
municipality_county?: string;
|
|
379
|
+
municipality?: BarnsportMunicipalitySummary;
|
|
380
|
+
sports?: BarnsportSportSummary[];
|
|
381
|
+
activity_labels?: string[];
|
|
382
|
+
activity_offers?: BarnsportActivityOffer[];
|
|
383
|
+
}
|
|
384
|
+
interface BarnsportProviderProfile extends BarnsportProvider {
|
|
385
|
+
reviews?: BarnsportReviewsSummary;
|
|
386
|
+
stats?: BarnsportStats;
|
|
387
|
+
}
|
|
388
|
+
interface BarnsportProvidersFilter {
|
|
389
|
+
q?: string;
|
|
390
|
+
municipality?: string;
|
|
391
|
+
sport?: string;
|
|
392
|
+
sort?: 'relevance' | 'name' | 'updated';
|
|
393
|
+
cursor?: string;
|
|
394
|
+
limit?: number;
|
|
395
|
+
}
|
|
396
|
+
interface BarnsportActivityOffersFilter {
|
|
397
|
+
q?: string;
|
|
398
|
+
municipality?: string;
|
|
399
|
+
sport?: string;
|
|
400
|
+
provider?: string;
|
|
401
|
+
birth_year?: number;
|
|
402
|
+
visibility?: 'barnsport' | 'confirmed' | 'register';
|
|
403
|
+
beginner_friendly?: boolean;
|
|
404
|
+
trial_available?: boolean;
|
|
405
|
+
low_cost?: boolean;
|
|
406
|
+
weekend_available?: boolean;
|
|
407
|
+
environment?: BarnsportActivityEnvironment;
|
|
408
|
+
cursor?: string;
|
|
409
|
+
limit?: number;
|
|
410
|
+
}
|
|
411
|
+
interface BarnsportCollectionResponse<T, TFilters = Record<string, unknown>> {
|
|
412
|
+
items: T[];
|
|
413
|
+
count?: number;
|
|
414
|
+
nextCursor?: string | null;
|
|
415
|
+
hasMore?: boolean;
|
|
416
|
+
filters?: TFilters;
|
|
417
|
+
}
|
|
418
|
+
interface BarnsportItemResponse<T> {
|
|
419
|
+
item: T;
|
|
420
|
+
}
|
|
421
|
+
interface BarnsportInquiryDelivery {
|
|
422
|
+
type: string;
|
|
423
|
+
status: string;
|
|
424
|
+
provider?: string;
|
|
425
|
+
}
|
|
426
|
+
interface BarnsportInquiryResponse {
|
|
427
|
+
success: boolean;
|
|
428
|
+
message: string;
|
|
429
|
+
delivery_status?: string;
|
|
430
|
+
request_kind?: 'interest' | 'contact_help';
|
|
431
|
+
activity_offer_slug?: string;
|
|
432
|
+
inquiry_contact_status?: string;
|
|
433
|
+
deliveries?: BarnsportInquiryDelivery[];
|
|
434
|
+
}
|
|
435
|
+
interface BarnsportFeedbackRequest {
|
|
436
|
+
token: string;
|
|
437
|
+
outcome: 'helped' | 'not_helped' | 'child_started' | 'not_a_fit';
|
|
438
|
+
honeypot?: string;
|
|
439
|
+
source?: {
|
|
440
|
+
site?: string;
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
interface BarnsportFeedbackResponse {
|
|
444
|
+
accepted: boolean;
|
|
445
|
+
feedback?: {
|
|
446
|
+
status: BarnsportFeedbackRequest['outcome'];
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
interface BarnsportReviewSubmissionRequest {
|
|
450
|
+
token: string;
|
|
451
|
+
rating: 1 | 2 | 3 | 4 | 5;
|
|
452
|
+
bodyText?: string;
|
|
453
|
+
displayNameChoice?: 'first_name' | 'anonymous';
|
|
454
|
+
honeypot?: string;
|
|
455
|
+
source?: {
|
|
456
|
+
site?: string;
|
|
457
|
+
};
|
|
458
|
+
}
|
|
459
|
+
interface BarnsportReviewSubmissionResponse {
|
|
460
|
+
accepted?: boolean;
|
|
461
|
+
review: {
|
|
462
|
+
id: string;
|
|
463
|
+
status: 'pending';
|
|
464
|
+
};
|
|
465
|
+
}
|
|
466
|
+
type BarnsportEventType = 'interest_form_viewed' | 'interest_submitted' | 'activity_offer_viewed' | 'provider_viewed' | 'search_performed' | 'filter_applied' | 'signup_link_clicked' | 'feedback_submitted';
|
|
467
|
+
interface BarnsportEventRequest {
|
|
468
|
+
eventType: BarnsportEventType;
|
|
469
|
+
activitySlug?: string;
|
|
470
|
+
activityOfferSlug?: string;
|
|
471
|
+
providerSlug?: string;
|
|
472
|
+
sportSlug?: string;
|
|
473
|
+
municipalitySlug?: string;
|
|
474
|
+
metadata?: Record<string, string | number | boolean | undefined>;
|
|
475
|
+
honeypot?: string;
|
|
476
|
+
source?: {
|
|
477
|
+
site?: string;
|
|
478
|
+
};
|
|
479
|
+
}
|
|
480
|
+
interface BarnsportEventResponse {
|
|
481
|
+
accepted: boolean;
|
|
482
|
+
event?: {
|
|
483
|
+
id: string;
|
|
484
|
+
event_type: BarnsportEventType;
|
|
485
|
+
created_at: string;
|
|
486
|
+
};
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
declare function useBarnsportMunicipalities(): {
|
|
490
|
+
municipalities: BarnsportMunicipality[];
|
|
491
|
+
count: number;
|
|
492
|
+
isLoading: boolean;
|
|
493
|
+
isError: boolean;
|
|
494
|
+
error: Error | null;
|
|
495
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportListResponse<BarnsportMunicipality>, Error>>;
|
|
496
|
+
};
|
|
497
|
+
declare function useBarnsportSports(): {
|
|
498
|
+
sports: BarnsportSport[];
|
|
499
|
+
count: number;
|
|
500
|
+
isLoading: boolean;
|
|
501
|
+
isError: boolean;
|
|
502
|
+
error: Error | null;
|
|
503
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportListResponse<BarnsportSport>, Error>>;
|
|
504
|
+
};
|
|
505
|
+
declare function useBarnsportSport(slug: string | undefined): {
|
|
506
|
+
sport: BarnsportSport | null;
|
|
507
|
+
isLoading: boolean;
|
|
508
|
+
isError: boolean;
|
|
509
|
+
error: Error | null;
|
|
510
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<{
|
|
511
|
+
sport: BarnsportSport;
|
|
512
|
+
}, Error>>;
|
|
513
|
+
};
|
|
514
|
+
declare function useBarnsportActivities(filters?: BarnsportActivitiesFilter): {
|
|
515
|
+
activities: BarnsportActivityListItem[];
|
|
516
|
+
count: number;
|
|
517
|
+
nextCursor: string | null;
|
|
518
|
+
isLoading: boolean;
|
|
519
|
+
isError: boolean;
|
|
520
|
+
error: Error | null;
|
|
521
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportListResponse<BarnsportActivityListItem>, Error>>;
|
|
522
|
+
};
|
|
523
|
+
declare function useBarnsportActivity(slug: string | undefined): {
|
|
524
|
+
activity: BarnsportActivity | null;
|
|
525
|
+
isLoading: boolean;
|
|
526
|
+
isError: boolean;
|
|
527
|
+
error: Error | null;
|
|
528
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportActivityResponse, Error>>;
|
|
529
|
+
};
|
|
530
|
+
declare function useBarnsportSitemap(baseUrl?: string): {
|
|
531
|
+
sitemap: BarnsportSitemapResponse | null;
|
|
532
|
+
urls: BarnsportSitemapUrl[];
|
|
533
|
+
isLoading: boolean;
|
|
534
|
+
isError: boolean;
|
|
535
|
+
error: Error | null;
|
|
536
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportSitemapResponse, Error>>;
|
|
537
|
+
};
|
|
538
|
+
declare function useSubmitBarnsportInterest(): _tanstack_react_query.UseMutationResult<BarnsportInterestSubmissionResponse, Error, BarnsportInterestSubmissionRequest, unknown>;
|
|
539
|
+
declare function useBarnsportProviderSearch(filters: BarnsportProvidersFilter): {
|
|
540
|
+
providers: BarnsportProvider[];
|
|
541
|
+
count: number;
|
|
542
|
+
nextCursor: string | null;
|
|
543
|
+
hasMore: boolean;
|
|
544
|
+
isLoading: boolean;
|
|
545
|
+
isFetching: boolean;
|
|
546
|
+
isError: boolean;
|
|
547
|
+
error: Error | null;
|
|
548
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportCollectionResponse<BarnsportProvider, BarnsportProvidersFilter>, Error>>;
|
|
549
|
+
};
|
|
550
|
+
declare function useBarnsportProvider(slug: string | undefined): {
|
|
551
|
+
provider: BarnsportProviderProfile | null;
|
|
552
|
+
isLoading: boolean;
|
|
553
|
+
isError: boolean;
|
|
554
|
+
error: Error | null;
|
|
555
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<{
|
|
556
|
+
item: BarnsportProviderProfile;
|
|
557
|
+
}, Error>>;
|
|
558
|
+
};
|
|
559
|
+
declare function useBarnsportActivityOffers(filters?: BarnsportActivityOffersFilter): {
|
|
560
|
+
activityOffers: BarnsportActivityOffer[];
|
|
561
|
+
count: number;
|
|
562
|
+
nextCursor: string | null;
|
|
563
|
+
hasMore: boolean;
|
|
564
|
+
isLoading: boolean;
|
|
565
|
+
isFetching: boolean;
|
|
566
|
+
isError: boolean;
|
|
567
|
+
error: Error | null;
|
|
568
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportCollectionResponse<BarnsportActivityOffer, BarnsportActivityOffersFilter>, Error>>;
|
|
569
|
+
};
|
|
570
|
+
declare function useSubmitBarnsportFeedback(): _tanstack_react_query.UseMutationResult<BarnsportFeedbackResponse, Error, BarnsportFeedbackRequest, unknown>;
|
|
571
|
+
declare function useSubmitBarnsportReview(): _tanstack_react_query.UseMutationResult<BarnsportReviewSubmissionResponse, Error, BarnsportReviewSubmissionRequest, unknown>;
|
|
572
|
+
declare function useTrackBarnsportEvent(): _tanstack_react_query.UseMutationResult<BarnsportEventResponse, Error, BarnsportEventRequest, unknown>;
|
|
573
|
+
|
|
574
|
+
export { useBarnsportActivityOffers as $, type BarnsportActivityOffer as A, type BarnsportActivitiesFilter as B, type BarnsportFeedbackRequest as C, type BarnsportFeedbackResponse as D, type BarnsportReviewSubmissionRequest as E, type BarnsportReviewSubmissionResponse as F, type BarnsportEventRequest as G, type BarnsportEventResponse as H, type BarnsportClubRemovalRequest as I, type BarnsportClubRemovalResponse as J, type BarnsportProviderUpdateRequest as K, type BarnsportProviderUpdateResponse as L, type BarnsportActivityEnvironment as M, type BarnsportCourseCandidate as N, type BarnsportEventType as O, type BarnsportInquiryDelivery as P, type BarnsportInquiryResponse as Q, type BarnsportMunicipalitySummary as R, type BarnsportProviderSummary as S, type BarnsportReview as T, type BarnsportReviewsSummary as U, type BarnsportSourceConfidence as V, type BarnsportSportArticle as W, type BarnsportSportSummary as X, type BarnsportStats as Y, type BarnsportVerificationStatus as Z, type BarnsportYouthStatus as _, type BarnsportActivity as a, useBarnsportProvider as a0, useBarnsportProviderSearch as a1, useSubmitBarnsportFeedback as a2, useSubmitBarnsportReview as a3, useTrackBarnsportEvent as a4, type BarnsportActivityListItem as b, type BarnsportActivityLocation as c, type BarnsportActivityResponse as d, type BarnsportActivitySchedule as e, type BarnsportInterestSubmissionRequest as f, type BarnsportInterestSubmissionResponse as g, type BarnsportListResponse as h, type BarnsportMunicipality as i, type BarnsportRegistrationMethod as j, type BarnsportSitemapResponse as k, type BarnsportSitemapUrl as l, type BarnsportSport as m, useBarnsportActivity as n, useBarnsportMunicipalities as o, useBarnsportSitemap as p, useBarnsportSport as q, useBarnsportSports as r, useSubmitBarnsportInterest as s, type BarnsportProvidersFilter as t, useBarnsportActivities as u, type BarnsportCollectionResponse as v, type BarnsportProvider as w, type BarnsportItemResponse as x, type BarnsportProviderProfile as y, type BarnsportActivityOffersFilter as z };
|