@axcode/axcloud-sdk 0.2.0-dev.03fb26c → 0.2.0-dev.85285e0
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 +44 -0
- package/dist/analytics-BOxmSWNt.d.ts +432 -0
- package/dist/analytics-LYZxP7PC.d.mts +432 -0
- package/dist/barnsport.d.mts +30 -0
- package/dist/barnsport.d.ts +30 -0
- package/dist/barnsport.js +69 -0
- package/dist/barnsport.js.map +1 -0
- package/dist/barnsport.mjs +4 -0
- package/dist/barnsport.mjs.map +1 -0
- package/dist/chunk-2A5NJAFA.mjs +15 -0
- package/dist/chunk-2A5NJAFA.mjs.map +1 -0
- package/dist/chunk-DI4M6A7K.js +474 -0
- package/dist/chunk-DI4M6A7K.js.map +1 -0
- package/dist/chunk-DSWRJZWR.js +18 -0
- package/dist/chunk-DSWRJZWR.js.map +1 -0
- package/dist/chunk-EX66R5IA.js +278 -0
- package/dist/chunk-EX66R5IA.js.map +1 -0
- package/dist/chunk-F3JPEND3.mjs +461 -0
- package/dist/chunk-F3JPEND3.mjs.map +1 -0
- package/dist/chunk-HRNRGCCT.mjs +262 -0
- package/dist/chunk-HRNRGCCT.mjs.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 -737
- package/dist/index.d.ts +10 -737
- package/dist/index.js +112 -632
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -585
- 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 +111 -0
- package/dist/public.js.map +1 -0
- package/dist/public.mjs +99 -0
- package/dist/public.mjs.map +1 -0
- package/dist/useBarnsport-1DObGZDl.d.mts +526 -0
- package/dist/useBarnsport-1DObGZDl.d.ts +526 -0
- package/package.json +11 -1
|
@@ -0,0 +1,526 @@
|
|
|
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 BarnsportInterestSubmissionRequest {
|
|
155
|
+
activitySlug: string;
|
|
156
|
+
guardianName: string;
|
|
157
|
+
guardianEmail: string;
|
|
158
|
+
guardianPhone?: string;
|
|
159
|
+
childName?: string;
|
|
160
|
+
childBirthYear?: number;
|
|
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
|
+
interface BarnsportInterestSubmissionResponse {
|
|
174
|
+
success: boolean;
|
|
175
|
+
submissionId?: string;
|
|
176
|
+
duplicate?: boolean;
|
|
177
|
+
message: string;
|
|
178
|
+
}
|
|
179
|
+
interface BarnsportClubRemovalRequest {
|
|
180
|
+
requesterName: string;
|
|
181
|
+
requesterEmail: string;
|
|
182
|
+
requesterRole?: string;
|
|
183
|
+
requestedAction?: 'hide' | 'delete';
|
|
184
|
+
reason?: string;
|
|
185
|
+
honeypot?: string;
|
|
186
|
+
source?: {
|
|
187
|
+
site?: string;
|
|
188
|
+
pageUrl?: string;
|
|
189
|
+
};
|
|
190
|
+
}
|
|
191
|
+
interface BarnsportClubRemovalResponse {
|
|
192
|
+
success: boolean;
|
|
193
|
+
requestId?: string;
|
|
194
|
+
clubSlug?: string;
|
|
195
|
+
hiddenActivities?: number;
|
|
196
|
+
message: string;
|
|
197
|
+
}
|
|
198
|
+
type BarnsportSourceConfidence = 'high' | 'medium' | 'low';
|
|
199
|
+
type BarnsportVerificationStatus = 'needs_verification' | 'verified' | 'rejected' | 'archived';
|
|
200
|
+
type BarnsportYouthStatus = 'confirmed_youth' | 'likely_youth' | 'unknown' | 'unlikely_youth';
|
|
201
|
+
type BarnsportActivityEnvironment = 'indoor' | 'outdoor' | 'mixed' | 'unknown';
|
|
202
|
+
interface BarnsportMunicipalitySummary {
|
|
203
|
+
id: string;
|
|
204
|
+
slug: string;
|
|
205
|
+
name: string;
|
|
206
|
+
county?: string;
|
|
207
|
+
}
|
|
208
|
+
interface BarnsportSportSummary {
|
|
209
|
+
id: string;
|
|
210
|
+
slug: string;
|
|
211
|
+
name: string;
|
|
212
|
+
icon?: string;
|
|
213
|
+
category?: string;
|
|
214
|
+
}
|
|
215
|
+
interface BarnsportProviderSummary {
|
|
216
|
+
id: string;
|
|
217
|
+
slug: string;
|
|
218
|
+
name: string;
|
|
219
|
+
logo_url?: string;
|
|
220
|
+
website_url?: string;
|
|
221
|
+
municipality_slug?: string;
|
|
222
|
+
municipality_name?: string;
|
|
223
|
+
primary_sport_slug?: string;
|
|
224
|
+
primary_sport_name?: string;
|
|
225
|
+
}
|
|
226
|
+
interface BarnsportCourseCandidate {
|
|
227
|
+
title: string;
|
|
228
|
+
summary?: string;
|
|
229
|
+
age_text?: string;
|
|
230
|
+
schedule_text?: string;
|
|
231
|
+
price_text?: string;
|
|
232
|
+
beginner_friendly?: boolean;
|
|
233
|
+
trial_available?: boolean;
|
|
234
|
+
low_cost?: boolean;
|
|
235
|
+
weekend_available?: boolean;
|
|
236
|
+
environment?: BarnsportActivityEnvironment;
|
|
237
|
+
signup_url?: string;
|
|
238
|
+
source_url?: string;
|
|
239
|
+
source_title?: string;
|
|
240
|
+
confidence?: BarnsportSourceConfidence;
|
|
241
|
+
evidence?: string[];
|
|
242
|
+
review_required?: boolean;
|
|
243
|
+
review_flags?: string[];
|
|
244
|
+
}
|
|
245
|
+
interface BarnsportActivityOffer {
|
|
246
|
+
id: string;
|
|
247
|
+
slug: string;
|
|
248
|
+
title: string;
|
|
249
|
+
is_featured?: boolean;
|
|
250
|
+
source_label?: string;
|
|
251
|
+
verification_status?: BarnsportVerificationStatus;
|
|
252
|
+
youth_status?: BarnsportYouthStatus;
|
|
253
|
+
youth_evidence?: string[];
|
|
254
|
+
inquiry_contact_status?: 'ready' | 'review_first' | 'needs_contact' | 'do_not_contact';
|
|
255
|
+
contact_help_supported?: boolean;
|
|
256
|
+
registration_status?: string;
|
|
257
|
+
season?: string;
|
|
258
|
+
registration_window?: string;
|
|
259
|
+
verified_at?: string;
|
|
260
|
+
stale_at?: string;
|
|
261
|
+
is_stale?: boolean;
|
|
262
|
+
age_text?: string;
|
|
263
|
+
age_source?: string;
|
|
264
|
+
age_verification_status?: 'verified_by_provider' | 'found_unverified' | 'missing';
|
|
265
|
+
birth_year_from?: number;
|
|
266
|
+
birth_year_to?: number;
|
|
267
|
+
schedule_text?: string;
|
|
268
|
+
sessions_text?: string;
|
|
269
|
+
location_name?: string;
|
|
270
|
+
location_address?: string;
|
|
271
|
+
locality?: string;
|
|
272
|
+
location_lat?: number;
|
|
273
|
+
location_lng?: number;
|
|
274
|
+
price_text?: string;
|
|
275
|
+
beginner_friendly?: boolean;
|
|
276
|
+
trial_available?: boolean;
|
|
277
|
+
low_cost?: boolean;
|
|
278
|
+
weekend_available?: boolean;
|
|
279
|
+
environment?: BarnsportActivityEnvironment;
|
|
280
|
+
signup_url?: string;
|
|
281
|
+
contact_url?: string;
|
|
282
|
+
source_url?: string;
|
|
283
|
+
source_last_seen_at?: string;
|
|
284
|
+
source_confidence?: BarnsportSourceConfidence;
|
|
285
|
+
missing_fields?: string[];
|
|
286
|
+
review_required?: boolean;
|
|
287
|
+
review_flags?: string[];
|
|
288
|
+
course_candidates?: BarnsportCourseCandidate[];
|
|
289
|
+
provider?: BarnsportProviderSummary;
|
|
290
|
+
sport?: BarnsportSportSummary;
|
|
291
|
+
municipality?: BarnsportMunicipalitySummary;
|
|
292
|
+
}
|
|
293
|
+
interface BarnsportReview {
|
|
294
|
+
id: string;
|
|
295
|
+
rating: number;
|
|
296
|
+
published_text?: string | null;
|
|
297
|
+
display_name: string;
|
|
298
|
+
created_at: string;
|
|
299
|
+
}
|
|
300
|
+
interface BarnsportReviewsSummary {
|
|
301
|
+
count: number;
|
|
302
|
+
average_rating: number | null;
|
|
303
|
+
items: BarnsportReview[];
|
|
304
|
+
}
|
|
305
|
+
interface BarnsportStats {
|
|
306
|
+
interest_count: number | null;
|
|
307
|
+
view_count: number | null;
|
|
308
|
+
}
|
|
309
|
+
interface BarnsportProvider extends BarnsportProviderSummary {
|
|
310
|
+
provider_type?: string;
|
|
311
|
+
description?: string;
|
|
312
|
+
organization?: string;
|
|
313
|
+
category_label?: string;
|
|
314
|
+
logo_path?: string;
|
|
315
|
+
logo_mime_type?: string;
|
|
316
|
+
is_verified: boolean;
|
|
317
|
+
verified_at?: string;
|
|
318
|
+
source_url?: string;
|
|
319
|
+
source_register_url?: string;
|
|
320
|
+
source_last_seen_at?: string;
|
|
321
|
+
source_confidence?: BarnsportSourceConfidence;
|
|
322
|
+
geocode_status?: string;
|
|
323
|
+
address_text?: string;
|
|
324
|
+
street_address?: string;
|
|
325
|
+
postal_code?: string;
|
|
326
|
+
locality?: string;
|
|
327
|
+
country_code?: string;
|
|
328
|
+
latitude?: number;
|
|
329
|
+
longitude?: number;
|
|
330
|
+
municipality_county?: string;
|
|
331
|
+
municipality?: BarnsportMunicipalitySummary;
|
|
332
|
+
sports?: BarnsportSportSummary[];
|
|
333
|
+
activity_labels?: string[];
|
|
334
|
+
activity_offers?: BarnsportActivityOffer[];
|
|
335
|
+
}
|
|
336
|
+
interface BarnsportProviderProfile extends BarnsportProvider {
|
|
337
|
+
reviews?: BarnsportReviewsSummary;
|
|
338
|
+
stats?: BarnsportStats;
|
|
339
|
+
}
|
|
340
|
+
interface BarnsportProvidersFilter {
|
|
341
|
+
q?: string;
|
|
342
|
+
municipality?: string;
|
|
343
|
+
sport?: string;
|
|
344
|
+
sort?: 'relevance' | 'name' | 'updated';
|
|
345
|
+
cursor?: string;
|
|
346
|
+
limit?: number;
|
|
347
|
+
}
|
|
348
|
+
interface BarnsportActivityOffersFilter {
|
|
349
|
+
q?: string;
|
|
350
|
+
municipality?: string;
|
|
351
|
+
sport?: string;
|
|
352
|
+
provider?: string;
|
|
353
|
+
birth_year?: number;
|
|
354
|
+
visibility?: 'barnsport' | 'confirmed' | 'register';
|
|
355
|
+
beginner_friendly?: boolean;
|
|
356
|
+
trial_available?: boolean;
|
|
357
|
+
low_cost?: boolean;
|
|
358
|
+
weekend_available?: boolean;
|
|
359
|
+
environment?: BarnsportActivityEnvironment;
|
|
360
|
+
cursor?: string;
|
|
361
|
+
limit?: number;
|
|
362
|
+
}
|
|
363
|
+
interface BarnsportCollectionResponse<T, TFilters = Record<string, unknown>> {
|
|
364
|
+
items: T[];
|
|
365
|
+
count?: number;
|
|
366
|
+
nextCursor?: string | null;
|
|
367
|
+
hasMore?: boolean;
|
|
368
|
+
filters?: TFilters;
|
|
369
|
+
}
|
|
370
|
+
interface BarnsportItemResponse<T> {
|
|
371
|
+
item: T;
|
|
372
|
+
}
|
|
373
|
+
interface BarnsportInquiryDelivery {
|
|
374
|
+
type: string;
|
|
375
|
+
status: string;
|
|
376
|
+
provider?: string;
|
|
377
|
+
}
|
|
378
|
+
interface BarnsportInquiryResponse {
|
|
379
|
+
success: boolean;
|
|
380
|
+
message: string;
|
|
381
|
+
delivery_status?: string;
|
|
382
|
+
request_kind?: 'interest' | 'contact_help';
|
|
383
|
+
activity_offer_slug?: string;
|
|
384
|
+
inquiry_contact_status?: string;
|
|
385
|
+
deliveries?: BarnsportInquiryDelivery[];
|
|
386
|
+
}
|
|
387
|
+
interface BarnsportFeedbackRequest {
|
|
388
|
+
token: string;
|
|
389
|
+
outcome: 'helped' | 'not_helped' | 'child_started' | 'not_a_fit';
|
|
390
|
+
honeypot?: string;
|
|
391
|
+
source?: {
|
|
392
|
+
site?: string;
|
|
393
|
+
};
|
|
394
|
+
}
|
|
395
|
+
interface BarnsportFeedbackResponse {
|
|
396
|
+
accepted: boolean;
|
|
397
|
+
feedback?: {
|
|
398
|
+
status: BarnsportFeedbackRequest['outcome'];
|
|
399
|
+
};
|
|
400
|
+
}
|
|
401
|
+
interface BarnsportReviewSubmissionRequest {
|
|
402
|
+
token: string;
|
|
403
|
+
rating: 1 | 2 | 3 | 4 | 5;
|
|
404
|
+
bodyText?: string;
|
|
405
|
+
displayNameChoice?: 'first_name' | 'anonymous';
|
|
406
|
+
honeypot?: string;
|
|
407
|
+
source?: {
|
|
408
|
+
site?: string;
|
|
409
|
+
};
|
|
410
|
+
}
|
|
411
|
+
interface BarnsportReviewSubmissionResponse {
|
|
412
|
+
accepted?: boolean;
|
|
413
|
+
review: {
|
|
414
|
+
id: string;
|
|
415
|
+
status: 'pending';
|
|
416
|
+
};
|
|
417
|
+
}
|
|
418
|
+
type BarnsportEventType = 'interest_form_viewed' | 'interest_submitted' | 'activity_offer_viewed' | 'provider_viewed' | 'search_performed' | 'filter_applied' | 'signup_link_clicked' | 'feedback_submitted';
|
|
419
|
+
interface BarnsportEventRequest {
|
|
420
|
+
eventType: BarnsportEventType;
|
|
421
|
+
activitySlug?: string;
|
|
422
|
+
activityOfferSlug?: string;
|
|
423
|
+
providerSlug?: string;
|
|
424
|
+
sportSlug?: string;
|
|
425
|
+
municipalitySlug?: string;
|
|
426
|
+
metadata?: Record<string, string | number | boolean | undefined>;
|
|
427
|
+
honeypot?: string;
|
|
428
|
+
source?: {
|
|
429
|
+
site?: string;
|
|
430
|
+
};
|
|
431
|
+
}
|
|
432
|
+
interface BarnsportEventResponse {
|
|
433
|
+
accepted: boolean;
|
|
434
|
+
event?: {
|
|
435
|
+
id: string;
|
|
436
|
+
event_type: BarnsportEventType;
|
|
437
|
+
created_at: string;
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
declare function useBarnsportMunicipalities(): {
|
|
442
|
+
municipalities: BarnsportMunicipality[];
|
|
443
|
+
count: number;
|
|
444
|
+
isLoading: boolean;
|
|
445
|
+
isError: boolean;
|
|
446
|
+
error: Error | null;
|
|
447
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportListResponse<BarnsportMunicipality>, Error>>;
|
|
448
|
+
};
|
|
449
|
+
declare function useBarnsportSports(): {
|
|
450
|
+
sports: BarnsportSport[];
|
|
451
|
+
count: number;
|
|
452
|
+
isLoading: boolean;
|
|
453
|
+
isError: boolean;
|
|
454
|
+
error: Error | null;
|
|
455
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportListResponse<BarnsportSport>, Error>>;
|
|
456
|
+
};
|
|
457
|
+
declare function useBarnsportSport(slug: string | undefined): {
|
|
458
|
+
sport: BarnsportSport | null;
|
|
459
|
+
isLoading: boolean;
|
|
460
|
+
isError: boolean;
|
|
461
|
+
error: Error | null;
|
|
462
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<{
|
|
463
|
+
sport: BarnsportSport;
|
|
464
|
+
}, Error>>;
|
|
465
|
+
};
|
|
466
|
+
declare function useBarnsportActivities(filters?: BarnsportActivitiesFilter): {
|
|
467
|
+
activities: BarnsportActivityListItem[];
|
|
468
|
+
count: number;
|
|
469
|
+
nextCursor: string | null;
|
|
470
|
+
isLoading: boolean;
|
|
471
|
+
isError: boolean;
|
|
472
|
+
error: Error | null;
|
|
473
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportListResponse<BarnsportActivityListItem>, Error>>;
|
|
474
|
+
};
|
|
475
|
+
declare function useBarnsportActivity(slug: string | undefined): {
|
|
476
|
+
activity: BarnsportActivity | null;
|
|
477
|
+
isLoading: boolean;
|
|
478
|
+
isError: boolean;
|
|
479
|
+
error: Error | null;
|
|
480
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportActivityResponse, Error>>;
|
|
481
|
+
};
|
|
482
|
+
declare function useBarnsportSitemap(baseUrl?: string): {
|
|
483
|
+
sitemap: BarnsportSitemapResponse | null;
|
|
484
|
+
urls: BarnsportSitemapUrl[];
|
|
485
|
+
isLoading: boolean;
|
|
486
|
+
isError: boolean;
|
|
487
|
+
error: Error | null;
|
|
488
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportSitemapResponse, Error>>;
|
|
489
|
+
};
|
|
490
|
+
declare function useSubmitBarnsportInterest(): _tanstack_react_query.UseMutationResult<BarnsportInterestSubmissionResponse, Error, BarnsportInterestSubmissionRequest, unknown>;
|
|
491
|
+
declare function useBarnsportProviderSearch(filters: BarnsportProvidersFilter): {
|
|
492
|
+
providers: BarnsportProvider[];
|
|
493
|
+
count: number;
|
|
494
|
+
nextCursor: string | null;
|
|
495
|
+
hasMore: boolean;
|
|
496
|
+
isLoading: boolean;
|
|
497
|
+
isFetching: boolean;
|
|
498
|
+
isError: boolean;
|
|
499
|
+
error: Error | null;
|
|
500
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportCollectionResponse<BarnsportProvider, BarnsportProvidersFilter>, Error>>;
|
|
501
|
+
};
|
|
502
|
+
declare function useBarnsportProvider(slug: string | undefined): {
|
|
503
|
+
provider: BarnsportProviderProfile | null;
|
|
504
|
+
isLoading: boolean;
|
|
505
|
+
isError: boolean;
|
|
506
|
+
error: Error | null;
|
|
507
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<{
|
|
508
|
+
item: BarnsportProviderProfile;
|
|
509
|
+
}, Error>>;
|
|
510
|
+
};
|
|
511
|
+
declare function useBarnsportActivityOffers(filters?: BarnsportActivityOffersFilter): {
|
|
512
|
+
activityOffers: BarnsportActivityOffer[];
|
|
513
|
+
count: number;
|
|
514
|
+
nextCursor: string | null;
|
|
515
|
+
hasMore: boolean;
|
|
516
|
+
isLoading: boolean;
|
|
517
|
+
isFetching: boolean;
|
|
518
|
+
isError: boolean;
|
|
519
|
+
error: Error | null;
|
|
520
|
+
refetch: (options?: _tanstack_react_query.RefetchOptions) => Promise<_tanstack_react_query.QueryObserverResult<BarnsportCollectionResponse<BarnsportActivityOffer, BarnsportActivityOffersFilter>, Error>>;
|
|
521
|
+
};
|
|
522
|
+
declare function useSubmitBarnsportFeedback(): _tanstack_react_query.UseMutationResult<BarnsportFeedbackResponse, Error, BarnsportFeedbackRequest, unknown>;
|
|
523
|
+
declare function useSubmitBarnsportReview(): _tanstack_react_query.UseMutationResult<BarnsportReviewSubmissionResponse, Error, BarnsportReviewSubmissionRequest, unknown>;
|
|
524
|
+
declare function useTrackBarnsportEvent(): _tanstack_react_query.UseMutationResult<BarnsportEventResponse, Error, BarnsportEventRequest, unknown>;
|
|
525
|
+
|
|
526
|
+
export { useBarnsportProviderSearch 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 BarnsportActivityEnvironment as K, type BarnsportCourseCandidate as L, type BarnsportEventType as M, type BarnsportInquiryDelivery as N, type BarnsportInquiryResponse as O, type BarnsportMunicipalitySummary as P, type BarnsportProviderSummary as Q, type BarnsportReview as R, type BarnsportReviewsSummary as S, type BarnsportSourceConfidence as T, type BarnsportSportArticle as U, type BarnsportSportSummary as V, type BarnsportStats as W, type BarnsportVerificationStatus as X, type BarnsportYouthStatus as Y, useBarnsportActivityOffers as Z, useBarnsportProvider as _, type BarnsportActivity as a, useSubmitBarnsportFeedback as a0, useSubmitBarnsportReview as a1, useTrackBarnsportEvent as a2, 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 };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@axcode/axcloud-sdk",
|
|
3
|
-
"version": "0.2.0-dev.
|
|
3
|
+
"version": "0.2.0-dev.85285e0",
|
|
4
4
|
"description": "SDK for building websites with AxCloud CMS and member management",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -11,6 +11,16 @@
|
|
|
11
11
|
"import": "./dist/index.mjs",
|
|
12
12
|
"require": "./dist/index.js"
|
|
13
13
|
},
|
|
14
|
+
"./public": {
|
|
15
|
+
"types": "./dist/public.d.ts",
|
|
16
|
+
"import": "./dist/public.mjs",
|
|
17
|
+
"require": "./dist/public.js"
|
|
18
|
+
},
|
|
19
|
+
"./barnsport": {
|
|
20
|
+
"types": "./dist/barnsport.d.ts",
|
|
21
|
+
"import": "./dist/barnsport.mjs",
|
|
22
|
+
"require": "./dist/barnsport.js"
|
|
23
|
+
},
|
|
14
24
|
"./styles/linked-accounts.css": "./dist/styles/linked-accounts.css"
|
|
15
25
|
},
|
|
16
26
|
"files": [
|