@burdenoff/microfe-atheletebridge 2026.1013.1 → 2026.1024.1
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/atheletebridge/components/MatchupRow.d.ts.map +1 -1
- package/dist/atheletebridge/components/MatchupRow.js +36 -36
- package/dist/atheletebridge/components/MatchupRow.js.map +1 -1
- package/dist/atheletebridge/components/Scoreboard.d.ts +71 -2
- package/dist/atheletebridge/components/Scoreboard.d.ts.map +1 -1
- package/dist/atheletebridge/components/Scoreboard.js +221 -96
- package/dist/atheletebridge/components/Scoreboard.js.map +1 -1
- package/dist/atheletebridge/hooks/index.d.ts +1 -0
- package/dist/atheletebridge/hooks/index.d.ts.map +1 -1
- package/dist/atheletebridge/hooks/index.js +1 -0
- package/dist/atheletebridge/hooks/useAthleteBridgeApi.d.ts.map +1 -1
- package/dist/atheletebridge/hooks/useAthleteBridgeApi.js +93 -82
- package/dist/atheletebridge/hooks/useAthleteBridgeApi.js.map +1 -1
- package/dist/atheletebridge/hooks/useScheduledTimeGate.d.ts +18 -0
- package/dist/atheletebridge/hooks/useScheduledTimeGate.d.ts.map +1 -0
- package/dist/atheletebridge/hooks/useScheduledTimeGate.js +24 -0
- package/dist/atheletebridge/hooks/useScheduledTimeGate.js.map +1 -0
- package/dist/atheletebridge/pages/fixtures/FixtureDetailPage.d.ts.map +1 -1
- package/dist/atheletebridge/pages/fixtures/FixtureDetailPage.js +436 -107
- package/dist/atheletebridge/pages/fixtures/FixtureDetailPage.js.map +1 -1
- package/dist/atheletebridge/pages/sessions/SessionDetailPage.d.ts.map +1 -1
- package/dist/atheletebridge/pages/sessions/SessionDetailPage.js +164 -159
- package/dist/atheletebridge/pages/sessions/SessionDetailPage.js.map +1 -1
- package/dist/atheletebridge/pages/tournaments/TournamentBracketPage.d.ts.map +1 -1
- package/dist/atheletebridge/pages/tournaments/TournamentBracketPage.js +104 -103
- package/dist/atheletebridge/pages/tournaments/TournamentBracketPage.js.map +1 -1
- package/dist/atheletebridge/types/index.d.ts +74 -1
- package/dist/atheletebridge/types/index.d.ts.map +1 -1
- package/dist/atheletebridge/utils/index.d.ts +2 -0
- package/dist/atheletebridge/utils/index.d.ts.map +1 -1
- package/dist/atheletebridge/utils/recordResult.d.ts +92 -0
- package/dist/atheletebridge/utils/recordResult.d.ts.map +1 -0
- package/dist/atheletebridge/utils/recordResult.js +114 -0
- package/dist/atheletebridge/utils/recordResult.js.map +1 -0
- package/package.json +1 -1
|
@@ -39,7 +39,18 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
39
39
|
}
|
|
40
40
|
if (!n.data) throw new l("GraphQL response did not include data");
|
|
41
41
|
return n.data;
|
|
42
|
-
}, f = "\n id workspaceId name sport status description ageGroup season homeVenue\n headCoachId tags createdAt updatedAt\n", p = "\n id workspaceId teamId userId displayName role status position jerseyNumber\n height weight dominantSide notes joinedAt createdAt updatedAt\n", m = "\n
|
|
42
|
+
}, f = "\n id workspaceId name sport status description ageGroup season homeVenue\n headCoachId tags createdAt updatedAt\n", p = "\n id workspaceId teamId userId displayName role status position jerseyNumber\n height weight dominantSide notes joinedAt createdAt updatedAt\n", m = "\n runs wickets overs balls extras\n", h = `
|
|
43
|
+
id workspaceId type status competition round venue homeTeamId awayTeamId
|
|
44
|
+
homeScore awayScore extraTimeHomeScore extraTimeAwayScore penaltyHomeScore penaltyAwayScore
|
|
45
|
+
cricketScorecard { ${`
|
|
46
|
+
homeInnings { ${m} }
|
|
47
|
+
awayInnings { ${m} }
|
|
48
|
+
winner decidedBy margin superOver dls
|
|
49
|
+
`} }
|
|
50
|
+
scheduledAt kickoffAt notes createdAt updatedAt
|
|
51
|
+
homeTeam { id name sport }
|
|
52
|
+
awayTeam { id name sport }
|
|
53
|
+
`, g = "\n id workspaceId competition teamId played won drawn lost goalsFor goalsAgainst\n points rank createdAt updatedAt\n team { id name sport }\n", _ = "\n id workspaceId programId name description weekNumber orderIndex sets reps\n durationSec restSec createdAt updatedAt\n video { id }\n", v = "\n id workspaceId coachId name sport level status summary weeks isTemplate tags\n createdAt updatedAt\n", y = "\n id workspaceId coachId athleteId programId title type status location\n meetingUrl scheduledAt durationMin completedAt feedback rating\n createdAt updatedAt\n", b = "\n id workspaceId athleteId programId title status performedAt durationMin rpe\n totalLoad metrics notes createdAt updatedAt\n", x = "\n id workspaceId athleteId type label value unit source recordedAt\n createdAt updatedAt\n", S = (t = {}) => {
|
|
43
54
|
let { apiGatewayUrl: n } = e();
|
|
44
55
|
return i({
|
|
45
56
|
queryKey: [
|
|
@@ -58,7 +69,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
58
69
|
pagination: t.pagination
|
|
59
70
|
}, n)).athListTeams
|
|
60
71
|
});
|
|
61
|
-
},
|
|
72
|
+
}, C = (t) => {
|
|
62
73
|
let { apiGatewayUrl: n } = e();
|
|
63
74
|
return i({
|
|
64
75
|
queryKey: [
|
|
@@ -70,12 +81,12 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
70
81
|
athTeam(id: $id) {
|
|
71
82
|
${f}
|
|
72
83
|
members { items { ${p} } }
|
|
73
|
-
fixtures { items { ${
|
|
84
|
+
fixtures { items { ${h} } }
|
|
74
85
|
}
|
|
75
86
|
}`, { id: t }, n)).athTeam,
|
|
76
87
|
enabled: !!t
|
|
77
88
|
});
|
|
78
|
-
},
|
|
89
|
+
}, w = (t, n) => {
|
|
79
90
|
let { apiGatewayUrl: r } = e();
|
|
80
91
|
return i({
|
|
81
92
|
queryKey: [
|
|
@@ -92,7 +103,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
92
103
|
}, r)).athListMembers.items,
|
|
93
104
|
enabled: !!t
|
|
94
105
|
});
|
|
95
|
-
},
|
|
106
|
+
}, T = () => {
|
|
96
107
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
97
108
|
return r({
|
|
98
109
|
mutationFn: async (e) => (await u(`mutation AthCreateTeam($input: AthCreateTeamInput!) {
|
|
@@ -102,7 +113,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
102
113
|
t.invalidateQueries({ queryKey: ["atheletebridge", "teams"] });
|
|
103
114
|
}
|
|
104
115
|
});
|
|
105
|
-
},
|
|
116
|
+
}, E = () => {
|
|
106
117
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
107
118
|
return r({
|
|
108
119
|
mutationFn: async ({ id: e, input: t }) => (await u(`mutation AthUpdateTeam($id: ID!, $input: AthUpdateTeamInput!) {
|
|
@@ -119,7 +130,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
119
130
|
] });
|
|
120
131
|
}
|
|
121
132
|
});
|
|
122
|
-
},
|
|
133
|
+
}, D = () => {
|
|
123
134
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
124
135
|
return r({
|
|
125
136
|
mutationFn: async (e) => (await u("mutation AthArchiveTeam($id: ID!) { athArchiveTeam(id: $id) }", { id: e }, n)).athArchiveTeam,
|
|
@@ -127,7 +138,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
127
138
|
t.invalidateQueries({ queryKey: ["atheletebridge", "teams"] });
|
|
128
139
|
}
|
|
129
140
|
});
|
|
130
|
-
},
|
|
141
|
+
}, O = () => {
|
|
131
142
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
132
143
|
return r({
|
|
133
144
|
mutationFn: async (e) => (await u(`mutation AthAddMember($input: AthAddMemberInput!) {
|
|
@@ -145,7 +156,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
145
156
|
] });
|
|
146
157
|
}
|
|
147
158
|
});
|
|
148
|
-
},
|
|
159
|
+
}, k = (t) => {
|
|
149
160
|
let n = a(), { apiGatewayUrl: i } = e();
|
|
150
161
|
return r({
|
|
151
162
|
mutationFn: async (e) => (await u("mutation AthRemoveMember($id: ID!) { athRemoveMember(id: $id) }", { id: e }, i)).athRemoveMember,
|
|
@@ -161,7 +172,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
161
172
|
] });
|
|
162
173
|
}
|
|
163
174
|
});
|
|
164
|
-
},
|
|
175
|
+
}, A = (t = {}) => {
|
|
165
176
|
let { apiGatewayUrl: n } = e();
|
|
166
177
|
return i({
|
|
167
178
|
queryKey: [
|
|
@@ -171,7 +182,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
171
182
|
],
|
|
172
183
|
queryFn: async () => (await u(`query AthListFixtures($status: AthFixtureStatus, $teamId: ID, $pagination: PaginationInput) {
|
|
173
184
|
athListFixtures(status: $status, teamId: $teamId, pagination: $pagination) {
|
|
174
|
-
items { ${
|
|
185
|
+
items { ${h} }
|
|
175
186
|
pageInfo { cursor hasMore }
|
|
176
187
|
}
|
|
177
188
|
}`, {
|
|
@@ -180,7 +191,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
180
191
|
pagination: t.pagination
|
|
181
192
|
}, n)).athListFixtures
|
|
182
193
|
});
|
|
183
|
-
},
|
|
194
|
+
}, j = (t) => {
|
|
184
195
|
let { apiGatewayUrl: n } = e();
|
|
185
196
|
return i({
|
|
186
197
|
queryKey: [
|
|
@@ -189,11 +200,11 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
189
200
|
t
|
|
190
201
|
],
|
|
191
202
|
queryFn: async () => (await u(`query AthFixture($id: ID!) {
|
|
192
|
-
athFixture(id: $id) { ${
|
|
203
|
+
athFixture(id: $id) { ${h} }
|
|
193
204
|
}`, { id: t }, n)).athFixture,
|
|
194
205
|
enabled: !!t
|
|
195
206
|
});
|
|
196
|
-
},
|
|
207
|
+
}, M = (t) => {
|
|
197
208
|
let { apiGatewayUrl: n } = e();
|
|
198
209
|
return i({
|
|
199
210
|
queryKey: [
|
|
@@ -202,25 +213,25 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
202
213
|
t
|
|
203
214
|
],
|
|
204
215
|
queryFn: async () => (await u(`query AthStandings($competition: String!) {
|
|
205
|
-
athStandings(competition: $competition) { items { ${
|
|
216
|
+
athStandings(competition: $competition) { items { ${g} } }
|
|
206
217
|
}`, { competition: t }, n)).athStandings.items,
|
|
207
218
|
enabled: !!t
|
|
208
219
|
});
|
|
209
|
-
},
|
|
220
|
+
}, ee = () => {
|
|
210
221
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
211
222
|
return r({
|
|
212
223
|
mutationFn: async (e) => (await u(`mutation AthScheduleFixture($input: AthCreateFixtureInput!) {
|
|
213
|
-
athScheduleFixture(input: $input) { ${
|
|
224
|
+
athScheduleFixture(input: $input) { ${h} }
|
|
214
225
|
}`, { input: e }, n)).athScheduleFixture,
|
|
215
226
|
onSuccess: () => {
|
|
216
227
|
t.invalidateQueries({ queryKey: ["atheletebridge", "fixtures"] });
|
|
217
228
|
}
|
|
218
229
|
});
|
|
219
|
-
},
|
|
230
|
+
}, N = () => {
|
|
220
231
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
221
232
|
return r({
|
|
222
233
|
mutationFn: async ({ id: e, input: t }) => (await u(`mutation AthRecordFixtureResult($id: ID!, $input: AthRecordResultInput!) {
|
|
223
|
-
athRecordFixtureResult(id: $id, input: $input) { ${
|
|
234
|
+
athRecordFixtureResult(id: $id, input: $input) { ${h} }
|
|
224
235
|
}`, {
|
|
225
236
|
id: e,
|
|
226
237
|
input: t
|
|
@@ -233,7 +244,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
233
244
|
] }), t.invalidateQueries({ queryKey: ["atheletebridge", "standings"] });
|
|
234
245
|
}
|
|
235
246
|
});
|
|
236
|
-
},
|
|
247
|
+
}, P = (t = {}) => {
|
|
237
248
|
let { apiGatewayUrl: n } = e();
|
|
238
249
|
return i({
|
|
239
250
|
queryKey: [
|
|
@@ -243,7 +254,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
243
254
|
],
|
|
244
255
|
queryFn: async () => (await u(`query AthListPrograms($sport: AthSport, $level: AthProgramLevel, $status: AthProgramStatus, $pagination: PaginationInput) {
|
|
245
256
|
athListPrograms(sport: $sport, level: $level, status: $status, pagination: $pagination) {
|
|
246
|
-
items { ${
|
|
257
|
+
items { ${v} drills { items { id } } }
|
|
247
258
|
pageInfo { cursor hasMore }
|
|
248
259
|
}
|
|
249
260
|
}`, {
|
|
@@ -253,7 +264,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
253
264
|
pagination: t.pagination
|
|
254
265
|
}, n)).athListPrograms
|
|
255
266
|
});
|
|
256
|
-
},
|
|
267
|
+
}, F = (t) => {
|
|
257
268
|
let { apiGatewayUrl: n } = e();
|
|
258
269
|
return i({
|
|
259
270
|
queryKey: [
|
|
@@ -263,27 +274,27 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
263
274
|
],
|
|
264
275
|
queryFn: async () => (await u(`query AthProgram($id: ID!) {
|
|
265
276
|
athProgram(id: $id) {
|
|
266
|
-
${
|
|
267
|
-
drills { items { ${
|
|
277
|
+
${v}
|
|
278
|
+
drills { items { ${_} } }
|
|
268
279
|
}
|
|
269
280
|
}`, { id: t }, n)).athProgram,
|
|
270
281
|
enabled: !!t
|
|
271
282
|
});
|
|
272
|
-
},
|
|
283
|
+
}, te = () => {
|
|
273
284
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
274
285
|
return r({
|
|
275
286
|
mutationFn: async (e) => (await u(`mutation AthCreateProgram($input: AthCreateProgramInput!) {
|
|
276
|
-
athCreateProgram(input: $input) { ${
|
|
287
|
+
athCreateProgram(input: $input) { ${v} }
|
|
277
288
|
}`, { input: e }, n)).athCreateProgram,
|
|
278
289
|
onSuccess: () => {
|
|
279
290
|
t.invalidateQueries({ queryKey: ["atheletebridge", "programs"] });
|
|
280
291
|
}
|
|
281
292
|
});
|
|
282
|
-
},
|
|
293
|
+
}, ne = () => {
|
|
283
294
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
284
295
|
return r({
|
|
285
296
|
mutationFn: async ({ id: e, input: t }) => (await u(`mutation AthUpdateProgram($id: ID!, $input: AthUpdateProgramInput!) {
|
|
286
|
-
athUpdateProgram(id: $id, input: $input) { ${
|
|
297
|
+
athUpdateProgram(id: $id, input: $input) { ${v} }
|
|
287
298
|
}`, {
|
|
288
299
|
id: e,
|
|
289
300
|
input: t
|
|
@@ -296,11 +307,11 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
296
307
|
] });
|
|
297
308
|
}
|
|
298
309
|
});
|
|
299
|
-
},
|
|
310
|
+
}, re = () => {
|
|
300
311
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
301
312
|
return r({
|
|
302
313
|
mutationFn: async ({ id: e, status: t }) => (await u(`mutation AthTransitionProgram($id: ID!, $status: AthProgramStatus!) {
|
|
303
|
-
athTransitionProgram(id: $id, status: $status) { ${
|
|
314
|
+
athTransitionProgram(id: $id, status: $status) { ${v} }
|
|
304
315
|
}`, {
|
|
305
316
|
id: e,
|
|
306
317
|
status: t
|
|
@@ -313,7 +324,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
313
324
|
] });
|
|
314
325
|
}
|
|
315
326
|
});
|
|
316
|
-
},
|
|
327
|
+
}, ie = () => {
|
|
317
328
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
318
329
|
return r({
|
|
319
330
|
mutationFn: async (e) => (await u("mutation AthArchiveProgram($id: ID!) { athArchiveProgram(id: $id) }", { id: e }, n)).athArchiveProgram,
|
|
@@ -321,11 +332,11 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
321
332
|
t.invalidateQueries({ queryKey: ["atheletebridge", "programs"] });
|
|
322
333
|
}
|
|
323
334
|
});
|
|
324
|
-
},
|
|
335
|
+
}, ae = () => {
|
|
325
336
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
326
337
|
return r({
|
|
327
338
|
mutationFn: async (e) => (await u(`mutation AthAddDrill($input: AthAddDrillInput!) {
|
|
328
|
-
athAddDrill(input: $input) { ${
|
|
339
|
+
athAddDrill(input: $input) { ${_} }
|
|
329
340
|
}`, { input: e }, n)).athAddDrill,
|
|
330
341
|
onSuccess: (e) => {
|
|
331
342
|
t.invalidateQueries({ queryKey: [
|
|
@@ -335,7 +346,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
335
346
|
] });
|
|
336
347
|
}
|
|
337
348
|
});
|
|
338
|
-
},
|
|
349
|
+
}, oe = (t) => {
|
|
339
350
|
let n = a(), { apiGatewayUrl: i } = e();
|
|
340
351
|
return r({
|
|
341
352
|
mutationFn: async (e) => (await u("mutation AthRemoveDrill($id: ID!) { athRemoveDrill(id: $id) }", { id: e }, i)).athRemoveDrill,
|
|
@@ -357,7 +368,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
357
368
|
],
|
|
358
369
|
queryFn: async () => (await u(`query AthListSessions($athleteId: ID, $coachId: ID, $status: AthSessionStatus, $pagination: PaginationInput) {
|
|
359
370
|
athListSessions(athleteId: $athleteId, coachId: $coachId, status: $status, pagination: $pagination) {
|
|
360
|
-
items { ${
|
|
371
|
+
items { ${y} }
|
|
361
372
|
pageInfo { cursor hasMore }
|
|
362
373
|
}
|
|
363
374
|
}`, {
|
|
@@ -367,7 +378,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
367
378
|
pagination: t.pagination
|
|
368
379
|
}, n)).athListSessions
|
|
369
380
|
});
|
|
370
|
-
},
|
|
381
|
+
}, L = (t) => {
|
|
371
382
|
let { apiGatewayUrl: n } = e();
|
|
372
383
|
return i({
|
|
373
384
|
queryKey: [
|
|
@@ -376,25 +387,25 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
376
387
|
t
|
|
377
388
|
],
|
|
378
389
|
queryFn: async () => (await u(`query AthSession($id: ID!) {
|
|
379
|
-
athSession(id: $id) { ${
|
|
390
|
+
athSession(id: $id) { ${y} }
|
|
380
391
|
}`, { id: t }, n)).athSession,
|
|
381
392
|
enabled: !!t
|
|
382
393
|
});
|
|
383
|
-
},
|
|
394
|
+
}, R = () => {
|
|
384
395
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
385
396
|
return r({
|
|
386
397
|
mutationFn: async (e) => (await u(`mutation AthBookSession($input: AthBookSessionInput!) {
|
|
387
|
-
athBookSession(input: $input) { ${
|
|
398
|
+
athBookSession(input: $input) { ${y} }
|
|
388
399
|
}`, { input: e }, n)).athBookSession,
|
|
389
400
|
onSuccess: () => {
|
|
390
401
|
t.invalidateQueries({ queryKey: ["atheletebridge", "sessions"] });
|
|
391
402
|
}
|
|
392
403
|
});
|
|
393
|
-
},
|
|
404
|
+
}, z = () => {
|
|
394
405
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
395
406
|
return r({
|
|
396
407
|
mutationFn: async (e) => (await u(`mutation AthConfirmSession($id: ID!) {
|
|
397
|
-
athConfirmSession(id: $id) { ${
|
|
408
|
+
athConfirmSession(id: $id) { ${y} }
|
|
398
409
|
}`, { id: e }, n)).athConfirmSession,
|
|
399
410
|
onSuccess: (e) => {
|
|
400
411
|
t.invalidateQueries({ queryKey: ["atheletebridge", "sessions"] }), t.invalidateQueries({ queryKey: [
|
|
@@ -404,11 +415,11 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
404
415
|
] });
|
|
405
416
|
}
|
|
406
417
|
});
|
|
407
|
-
},
|
|
418
|
+
}, B = () => {
|
|
408
419
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
409
420
|
return r({
|
|
410
421
|
mutationFn: async ({ id: e, input: t }) => (await u(`mutation AthCompleteSession($id: ID!, $input: AthCompleteSessionInput) {
|
|
411
|
-
athCompleteSession(id: $id, input: $input) { ${
|
|
422
|
+
athCompleteSession(id: $id, input: $input) { ${y} }
|
|
412
423
|
}`, {
|
|
413
424
|
id: e,
|
|
414
425
|
input: t
|
|
@@ -421,11 +432,11 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
421
432
|
] });
|
|
422
433
|
}
|
|
423
434
|
});
|
|
424
|
-
},
|
|
435
|
+
}, V = () => {
|
|
425
436
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
426
437
|
return r({
|
|
427
438
|
mutationFn: async (e) => (await u(`mutation AthCancelSession($id: ID!) {
|
|
428
|
-
athCancelSession(id: $id) { ${
|
|
439
|
+
athCancelSession(id: $id) { ${y} }
|
|
429
440
|
}`, { id: e }, n)).athCancelSession,
|
|
430
441
|
onSuccess: (e) => {
|
|
431
442
|
t.invalidateQueries({ queryKey: ["atheletebridge", "sessions"] }), t.invalidateQueries({ queryKey: [
|
|
@@ -435,7 +446,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
435
446
|
] });
|
|
436
447
|
}
|
|
437
448
|
});
|
|
438
|
-
},
|
|
449
|
+
}, H = (t = {}) => {
|
|
439
450
|
let { apiGatewayUrl: n } = e();
|
|
440
451
|
return i({
|
|
441
452
|
queryKey: [
|
|
@@ -445,7 +456,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
445
456
|
],
|
|
446
457
|
queryFn: async () => (await u(`query AthListWorkoutLogs($athleteId: ID, $programId: ID, $pagination: PaginationInput) {
|
|
447
458
|
athListWorkoutLogs(athleteId: $athleteId, programId: $programId, pagination: $pagination) {
|
|
448
|
-
items { ${
|
|
459
|
+
items { ${b} }
|
|
449
460
|
pageInfo { cursor hasMore }
|
|
450
461
|
}
|
|
451
462
|
}`, {
|
|
@@ -454,7 +465,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
454
465
|
pagination: t.pagination
|
|
455
466
|
}, n)).athListWorkoutLogs
|
|
456
467
|
});
|
|
457
|
-
},
|
|
468
|
+
}, U = (t, n) => {
|
|
458
469
|
let { apiGatewayUrl: r } = e();
|
|
459
470
|
return i({
|
|
460
471
|
queryKey: [
|
|
@@ -465,7 +476,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
465
476
|
],
|
|
466
477
|
queryFn: async () => (await u(`query AthPerformanceMetrics($athleteId: ID!, $pagination: PaginationInput) {
|
|
467
478
|
athPerformanceMetrics(athleteId: $athleteId, pagination: $pagination) {
|
|
468
|
-
items { ${
|
|
479
|
+
items { ${x} }
|
|
469
480
|
}
|
|
470
481
|
}`, {
|
|
471
482
|
athleteId: t,
|
|
@@ -473,27 +484,27 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
473
484
|
}, r)).athPerformanceMetrics.items,
|
|
474
485
|
enabled: !!t
|
|
475
486
|
});
|
|
476
|
-
},
|
|
487
|
+
}, W = () => {
|
|
477
488
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
478
489
|
return r({
|
|
479
490
|
mutationFn: async (e) => (await u(`mutation AthLogWorkout($input: AthLogWorkoutInput!) {
|
|
480
|
-
athLogWorkout(input: $input) { ${
|
|
491
|
+
athLogWorkout(input: $input) { ${b} }
|
|
481
492
|
}`, { input: e }, n)).athLogWorkout,
|
|
482
493
|
onSuccess: () => {
|
|
483
494
|
t.invalidateQueries({ queryKey: ["atheletebridge", "workout-logs"] });
|
|
484
495
|
}
|
|
485
496
|
});
|
|
486
|
-
},
|
|
497
|
+
}, G = () => {
|
|
487
498
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
488
499
|
return r({
|
|
489
500
|
mutationFn: async (e) => (await u(`mutation AthRecordMetric($input: AthRecordMetricInput!) {
|
|
490
|
-
athRecordMetric(input: $input) { ${
|
|
501
|
+
athRecordMetric(input: $input) { ${x} }
|
|
491
502
|
}`, { input: e }, n)).athRecordMetric,
|
|
492
503
|
onSuccess: () => {
|
|
493
504
|
t.invalidateQueries({ queryKey: ["atheletebridge", "metrics"] });
|
|
494
505
|
}
|
|
495
506
|
});
|
|
496
|
-
},
|
|
507
|
+
}, K = "\n id workspaceId memberId fixtureId sessionId response respondedAt note\n createdAt updatedAt\n member { id displayName role }\n", q = (t) => {
|
|
497
508
|
let { apiGatewayUrl: n } = e(), { fixtureId: r, sessionId: a } = t;
|
|
498
509
|
return i({
|
|
499
510
|
queryKey: [
|
|
@@ -504,7 +515,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
504
515
|
],
|
|
505
516
|
queryFn: async () => (await u(`query AthListAvailability($fixtureId: ID, $sessionId: ID) {
|
|
506
517
|
athListAvailability(fixtureId: $fixtureId, sessionId: $sessionId) {
|
|
507
|
-
items { ${
|
|
518
|
+
items { ${K} }
|
|
508
519
|
pageInfo { cursor hasMore }
|
|
509
520
|
}
|
|
510
521
|
}`, {
|
|
@@ -513,11 +524,11 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
513
524
|
}, n)).athListAvailability.items,
|
|
514
525
|
enabled: !!(r || a)
|
|
515
526
|
});
|
|
516
|
-
},
|
|
527
|
+
}, se = () => {
|
|
517
528
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
518
529
|
return r({
|
|
519
530
|
mutationFn: async (e) => (await u(`mutation AthSetAvailability($input: AthSetAvailabilityInput!) {
|
|
520
|
-
athSetAvailability(input: $input) { ${
|
|
531
|
+
athSetAvailability(input: $input) { ${K} }
|
|
521
532
|
}`, { input: e }, n)).athSetAvailability,
|
|
522
533
|
onSuccess: (e) => {
|
|
523
534
|
t.invalidateQueries({ queryKey: [
|
|
@@ -528,18 +539,18 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
528
539
|
] });
|
|
529
540
|
}
|
|
530
541
|
});
|
|
531
|
-
},
|
|
542
|
+
}, ce = () => {
|
|
532
543
|
let { apiGatewayUrl: t } = e();
|
|
533
544
|
return r({ mutationFn: async (e) => (await u("mutation AthRemindAvailability($fixtureId: ID, $sessionId: ID) {\n athRemindAvailability(fixtureId: $fixtureId, sessionId: $sessionId)\n }", e, t)).athRemindAvailability });
|
|
534
|
-
},
|
|
545
|
+
}, le = (e) => {
|
|
535
546
|
let t = e.lastIndexOf(".");
|
|
536
547
|
return t >= 0 ? e.slice(t + 1).toLowerCase() : "bin";
|
|
537
|
-
},
|
|
548
|
+
}, ue = () => {
|
|
538
549
|
let { apiGatewayUrl: n } = e();
|
|
539
550
|
return t(async (e) => {
|
|
540
551
|
let t = await u("mutation AthInitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) { uploadUrl session { id } }\n }", { input: {
|
|
541
552
|
fileName: e.name,
|
|
542
|
-
extension:
|
|
553
|
+
extension: le(e.name),
|
|
543
554
|
fileSize: e.size,
|
|
544
555
|
mimeType: e.type || "application/octet-stream",
|
|
545
556
|
visibility: "WORKSPACE"
|
|
@@ -553,7 +564,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
553
564
|
if (!a.ok) throw Error(`Storage rejected the upload (HTTP ${a.status}).`);
|
|
554
565
|
return (await u("mutation AthCompleteUpload($input: CompleteUploadInput!) {\n completeUpload(input: $input) { fileId }\n }", { input: { sessionId: i } }, n)).completeUpload.fileId;
|
|
555
566
|
}, [n]);
|
|
556
|
-
},
|
|
567
|
+
}, de = (t) => {
|
|
557
568
|
let { apiGatewayUrl: n } = e();
|
|
558
569
|
return i({
|
|
559
570
|
queryKey: [
|
|
@@ -565,7 +576,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
565
576
|
enabled: !!t,
|
|
566
577
|
staleTime: 6e4
|
|
567
578
|
});
|
|
568
|
-
}, J = (e) => e.name?.trim() ? e.name.trim() : [e.firstName, e.lastName].filter(Boolean).join(" ").trim() || (e.username?.trim() ? e.username.trim() : e.email),
|
|
579
|
+
}, J = (e) => e.name?.trim() ? e.name.trim() : [e.firstName, e.lastName].filter(Boolean).join(" ").trim() || (e.username?.trim() ? e.username.trim() : e.email), fe = (e) => {
|
|
569
580
|
let t = e.trim();
|
|
570
581
|
return i({
|
|
571
582
|
queryKey: [
|
|
@@ -615,7 +626,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
615
626
|
staleTime: 5 * 6e4,
|
|
616
627
|
retry: !1
|
|
617
628
|
});
|
|
618
|
-
},
|
|
629
|
+
}, pe = (e) => {
|
|
619
630
|
let t = Y(e), n = t.data ?? {};
|
|
620
631
|
return {
|
|
621
632
|
byId: n,
|
|
@@ -624,7 +635,7 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
624
635
|
nameOf: (e) => e ? n[e]?.name : void 0,
|
|
625
636
|
emailOf: (e) => e ? n[e]?.email : void 0
|
|
626
637
|
};
|
|
627
|
-
},
|
|
638
|
+
}, me = ({ teams: e = [], fixtures: t = [], sessions: r = [], programs: i = [], limit: a = 8 }) => n(() => {
|
|
628
639
|
let n = [];
|
|
629
640
|
for (let t of e) {
|
|
630
641
|
n.push({
|
|
@@ -680,8 +691,8 @@ var c = "AI_PROVIDER_UNAVAILABLE", l = class extends Error {
|
|
|
680
691
|
r,
|
|
681
692
|
i,
|
|
682
693
|
a
|
|
683
|
-
]),
|
|
684
|
-
let r =
|
|
694
|
+
]), he = (e, t) => {
|
|
695
|
+
let r = w(e), i = n(() => (r.data ?? []).find((e) => e.id === t) ?? null, [r.data, t]), a = i?.userId, o = U(a), s = H({
|
|
685
696
|
athleteId: a,
|
|
686
697
|
pagination: { limit: 100 }
|
|
687
698
|
}), c = I({
|
|
@@ -716,15 +727,15 @@ function X(e, t, n, r = 8) {
|
|
|
716
727
|
};
|
|
717
728
|
});
|
|
718
729
|
}
|
|
719
|
-
var
|
|
720
|
-
let { competition: t, sampleLimit: r = 200 } = e, i = I({ pagination: { limit: r } }), a =
|
|
730
|
+
var ge = (e = {}) => {
|
|
731
|
+
let { competition: t, sampleLimit: r = 200 } = e, i = I({ pagination: { limit: r } }), a = H({ pagination: { limit: r } }), o = A({ pagination: { limit: r } }), s = n(() => i.data?.items ?? [], [i.data]), c = n(() => a.data?.items ?? [], [a.data]), l = n(() => o.data?.items ?? [], [o.data]), u = n(() => {
|
|
721
732
|
if (t) return t;
|
|
722
733
|
let e = /* @__PURE__ */ new Map();
|
|
723
734
|
for (let t of l) t.competition && e.set(t.competition, (e.get(t.competition) ?? 0) + 1);
|
|
724
735
|
let n = null, r = 0;
|
|
725
736
|
for (let [t, i] of e) i > r && (r = i, n = t);
|
|
726
737
|
return n;
|
|
727
|
-
}, [t, l]), d =
|
|
738
|
+
}, [t, l]), d = M(u ?? void 0);
|
|
728
739
|
return n(() => {
|
|
729
740
|
let e = s.length, t = s.filter((e) => e.rating !== null), n = t.length, r = n > 0 ? t.reduce((e, t) => e + (t.rating ?? 0), 0) / n : null, l = s.filter((e) => e.status === "COMPLETED").length, f = e > 0 ? l / e * 100 : 0, p = [
|
|
730
741
|
"REQUESTED",
|
|
@@ -814,14 +825,14 @@ var he = (e = {}) => {
|
|
|
814
825
|
o.isLoading,
|
|
815
826
|
o.isError
|
|
816
827
|
]);
|
|
817
|
-
}, Z = "\n id workspaceId actorId actorType provider model trigger status error\n promptSummary inputRefs decision tokensIn tokensOut latencyMs costUsd\n createdAt\n", Q = "\n workspaceId provider model autoPilotEnabled autoPilotLastRunAt updatedAt\n",
|
|
828
|
+
}, Z = "\n id workspaceId actorId actorType provider model trigger status error\n promptSummary inputRefs decision tokensIn tokensOut latencyMs costUsd\n createdAt\n", Q = "\n workspaceId provider model autoPilotEnabled autoPilotLastRunAt updatedAt\n", _e = () => {
|
|
818
829
|
let { apiGatewayUrl: t } = e();
|
|
819
830
|
return i({
|
|
820
831
|
queryKey: ["atheletebridge", "ai-model-catalog"],
|
|
821
832
|
queryFn: async () => (await u("query AthAiModelCatalog {\n athAiModelCatalog { provider model label isDefault capabilities }\n }", {}, t)).athAiModelCatalog,
|
|
822
833
|
staleTime: 30 * 6e4
|
|
823
834
|
});
|
|
824
|
-
},
|
|
835
|
+
}, ve = () => {
|
|
825
836
|
let { apiGatewayUrl: t } = e();
|
|
826
837
|
return i({
|
|
827
838
|
queryKey: ["atheletebridge", "ai-config"],
|
|
@@ -829,7 +840,7 @@ var he = (e = {}) => {
|
|
|
829
840
|
athWorkspaceAiConfig { ${Q} }
|
|
830
841
|
}`, {}, t)).athWorkspaceAiConfig
|
|
831
842
|
});
|
|
832
|
-
},
|
|
843
|
+
}, ye = () => {
|
|
833
844
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
834
845
|
return r({
|
|
835
846
|
mutationFn: async ({ provider: e, model: t }) => (await u(`mutation AthSetWorkspaceAiModel($provider: String!, $model: String!) {
|
|
@@ -842,7 +853,7 @@ var he = (e = {}) => {
|
|
|
842
853
|
t.setQueryData(["atheletebridge", "ai-config"], e);
|
|
843
854
|
}
|
|
844
855
|
});
|
|
845
|
-
},
|
|
856
|
+
}, be = () => {
|
|
846
857
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
847
858
|
return r({
|
|
848
859
|
mutationFn: async (e) => (await u(`mutation AthSetWorkspaceAutoPilot($enabled: Boolean!) {
|
|
@@ -852,7 +863,7 @@ var he = (e = {}) => {
|
|
|
852
863
|
t.setQueryData(["atheletebridge", "ai-config"], e);
|
|
853
864
|
}
|
|
854
865
|
});
|
|
855
|
-
},
|
|
866
|
+
}, $ = (t = {}) => {
|
|
856
867
|
let { apiGatewayUrl: n } = e(), { limit: r = 10, offset: a = 0 } = t;
|
|
857
868
|
return i({
|
|
858
869
|
queryKey: [
|
|
@@ -871,7 +882,7 @@ var he = (e = {}) => {
|
|
|
871
882
|
offset: a
|
|
872
883
|
} }, n)).athAgentRuns
|
|
873
884
|
});
|
|
874
|
-
},
|
|
885
|
+
}, xe = (t) => {
|
|
875
886
|
let { apiGatewayUrl: n } = e();
|
|
876
887
|
return i({
|
|
877
888
|
queryKey: [
|
|
@@ -885,7 +896,7 @@ var he = (e = {}) => {
|
|
|
885
896
|
enabled: !!t,
|
|
886
897
|
retry: !1
|
|
887
898
|
});
|
|
888
|
-
},
|
|
899
|
+
}, Se = (t) => {
|
|
889
900
|
let { apiGatewayUrl: n } = e();
|
|
890
901
|
return i({
|
|
891
902
|
queryKey: [
|
|
@@ -897,7 +908,7 @@ var he = (e = {}) => {
|
|
|
897
908
|
enabled: !!t,
|
|
898
909
|
retry: !1
|
|
899
910
|
});
|
|
900
|
-
},
|
|
911
|
+
}, Ce = () => {
|
|
901
912
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
902
913
|
return r({
|
|
903
914
|
mutationFn: async (e) => (await u(`mutation AthGenerateProgram($input: AthGenerateProgramInput!) {
|
|
@@ -905,14 +916,14 @@ var he = (e = {}) => {
|
|
|
905
916
|
agentRunId
|
|
906
917
|
drillCount
|
|
907
918
|
sessionCount
|
|
908
|
-
program { ${
|
|
919
|
+
program { ${v} }
|
|
909
920
|
}
|
|
910
921
|
}`, { input: e }, n)).athGenerateProgram,
|
|
911
922
|
onSuccess: () => {
|
|
912
923
|
t.invalidateQueries({ queryKey: ["atheletebridge", "agent-runs"] }), t.invalidateQueries({ queryKey: ["atheletebridge", "programs"] }), t.invalidateQueries({ queryKey: ["atheletebridge", "sessions"] });
|
|
913
924
|
}
|
|
914
925
|
});
|
|
915
|
-
},
|
|
926
|
+
}, we = () => {
|
|
916
927
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
917
928
|
return r({
|
|
918
929
|
mutationFn: async ({ athleteId: e, programId: t, requestedProvider: r }) => (await u("mutation AthAdjustPlanFromPerformance($athleteId: ID!, $programId: ID!, $requestedProvider: String) {\n athAdjustPlanFromPerformance(athleteId: $athleteId, programId: $programId, requestedProvider: $requestedProvider) {\n agentRunId athleteId programId assessment rationale confidence\n recommendedWeeklyLoadChangePct flags appliedToProgram createdAt\n }\n }", {
|
|
@@ -928,7 +939,7 @@ var he = (e = {}) => {
|
|
|
928
939
|
] });
|
|
929
940
|
}
|
|
930
941
|
});
|
|
931
|
-
},
|
|
942
|
+
}, Te = () => {
|
|
932
943
|
let t = a(), { apiGatewayUrl: n } = e();
|
|
933
944
|
return r({
|
|
934
945
|
mutationFn: async ({ runId: e, programId: t, assessment: r, note: i }) => (await u("mutation AthOverrideAgentRun($runId: ID!, $programId: ID!, $assessment: AthAiAssessment!, $note: String!) {\n athOverrideAgentRun(runId: $runId, programId: $programId, assessment: $assessment, note: $note) {\n id workspaceId programId supersedesRunId assessment note\n appliedToProgram createdAt\n }\n }", {
|
|
@@ -947,6 +958,6 @@ var he = (e = {}) => {
|
|
|
947
958
|
});
|
|
948
959
|
};
|
|
949
960
|
//#endregion
|
|
950
|
-
export { c as AI_PROVIDER_UNAVAILABLE, l as AthApiError, J as directoryUserName,
|
|
961
|
+
export { c as AI_PROVIDER_UNAVAILABLE, l as AthApiError, J as directoryUserName, ae as useAddDrill, O as useAddMember, we as useAdjustPlanFromPerformance, xe as useAgentRun, $ as useAgentRuns, _e as useAiModelCatalog, ie as useArchiveProgram, D as useArchiveTeam, he as useAthleteProfile, q as useAvailability, R as useBookSession, V as useCancelSession, ge as useCoachAnalytics, B as useCompleteSession, z as useConfirmSession, te as useCreateProgram, T as useCreateTeam, de as useFile, j as useFixture, A as useFixtures, Ce as useGenerateProgram, W as useLogWorkout, Te as useOverrideAgentRun, U as usePerformanceMetrics, F as useProgram, Se as useProgramAiState, P as usePrograms, me as useRecentActivity, N as useRecordFixtureResult, G as useRecordMetric, ce as useRemindAvailability, oe as useRemoveDrill, k as useRemoveMember, ee as useScheduleFixture, L as useSession, I as useSessions, se as useSetAvailability, ye as useSetWorkspaceAiModel, be as useSetWorkspaceAutoPilot, M as useStandings, C as useTeam, w as useTeamMembers, S as useTeams, re as useTransitionProgram, ne as useUpdateProgram, E as useUpdateTeam, ue as useUploadFile, pe as useUserDirectory, fe as useUserSearch, Y as useUsersByIds, H as useWorkoutLogs, ve as useWorkspaceAiConfig };
|
|
951
962
|
|
|
952
963
|
//# sourceMappingURL=useAthleteBridgeApi.js.map
|