@burdenoff/microfe-atheletebridge 2026.1109.1 → 2026.1110.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/AthleteBridgeRoutes.js +29 -21
- package/dist/atheletebridge/AthleteBridgeRoutes.js.map +1 -1
- package/dist/atheletebridge/components/MemberCard.d.ts +7 -0
- package/dist/atheletebridge/components/MemberCard.js +45 -0
- package/dist/atheletebridge/components/MemberCard.js.map +1 -0
- package/dist/atheletebridge/hooks/useAthleteBridgeApi.d.ts +15 -1
- package/dist/atheletebridge/hooks/useAthleteBridgeApi.js +63 -41
- package/dist/atheletebridge/hooks/useAthleteBridgeApi.js.map +1 -1
- package/dist/atheletebridge/pages/programs/ProgramDetailPage.js +366 -196
- package/dist/atheletebridge/pages/programs/ProgramDetailPage.js.map +1 -1
- package/dist/atheletebridge/pages/sessions/SessionsCalendarPage.d.ts +11 -0
- package/dist/atheletebridge/pages/sessions/SessionsCalendarPage.js +259 -0
- package/dist/atheletebridge/pages/sessions/SessionsCalendarPage.js.map +1 -0
- package/dist/atheletebridge/pages/sessions/SessionsListPage.js +59 -47
- package/dist/atheletebridge/pages/sessions/SessionsListPage.js.map +1 -1
- package/dist/atheletebridge/pages/teams/TeamDetailPage.js +110 -83
- package/dist/atheletebridge/pages/teams/TeamDetailPage.js.map +1 -1
- package/dist/atheletebridge/types/index.d.ts +25 -0
- package/package.json +1 -1
|
@@ -51,7 +51,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
51
51
|
scheduledAt kickoffAt notes createdAt updatedAt
|
|
52
52
|
homeTeam { id name sport }
|
|
53
53
|
awayTeam { id name sport }
|
|
54
|
-
`, b = "\n id workspaceId competition teamId played won drawn lost goalsFor goalsAgainst\n points rank createdAt updatedAt\n team { id name sport }\n", x = "\n id workspaceId programId name description weekNumber orderIndex sets reps\n durationSec restSec createdAt updatedAt\n video { id }\n", S = "\n id workspaceId coachId name sport level status summary weeks isTemplate tags\n createdAt updatedAt\n", C = "\n id workspaceId coachId athleteId programId title type status location\n meetingUrl scheduledAt durationMin completedAt feedback rating\n createdAt updatedAt\n", w = "\n id workspaceId athleteId programId title status performedAt durationMin rpe\n totalLoad metrics notes createdAt updatedAt\n", T = "\n id workspaceId athleteId type label value unit source recordedAt\n createdAt updatedAt\n", E = (t = {}) => {
|
|
54
|
+
`, b = "\n id workspaceId competition teamId played won drawn lost goalsFor goalsAgainst\n points rank createdAt updatedAt\n team { id name sport }\n", x = "\n id workspaceId programId name description weekNumber orderIndex sets reps\n durationSec restSec createdAt updatedAt\n video { id }\n", S = "\n id workspaceId coachId name sport level status summary weeks isTemplate tags\n assignedAthleteId assignedTeamId\n createdAt updatedAt\n", C = "\n id workspaceId coachId athleteId programId title type status location\n meetingUrl scheduledAt durationMin completedAt feedback rating\n createdAt updatedAt\n", w = "\n id workspaceId athleteId programId title status performedAt durationMin rpe\n totalLoad metrics notes createdAt updatedAt\n", T = "\n id workspaceId athleteId type label value unit source recordedAt\n createdAt updatedAt\n", E = (t = {}) => {
|
|
55
55
|
let { apiGatewayUrl: n } = e();
|
|
56
56
|
return s({
|
|
57
57
|
queryKey: [
|
|
@@ -346,8 +346,8 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
346
346
|
"programs",
|
|
347
347
|
t
|
|
348
348
|
],
|
|
349
|
-
queryFn: async () => (await p(`query AthListPrograms($sport: AthSport, $level: AthProgramLevel, $status: AthProgramStatus, $pagination: PaginationInput) {
|
|
350
|
-
athListPrograms(sport: $sport, level: $level, status: $status, pagination: $pagination) {
|
|
349
|
+
queryFn: async () => (await p(`query AthListPrograms($sport: AthSport, $level: AthProgramLevel, $status: AthProgramStatus, $assignedAthleteId: ID, $assignedTeamId: ID, $pagination: PaginationInput) {
|
|
350
|
+
athListPrograms(sport: $sport, level: $level, status: $status, assignedAthleteId: $assignedAthleteId, assignedTeamId: $assignedTeamId, pagination: $pagination) {
|
|
351
351
|
items { ${S} drills { items { id } } }
|
|
352
352
|
pageInfo { cursor hasMore }
|
|
353
353
|
}
|
|
@@ -355,6 +355,8 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
355
355
|
sport: t.sport,
|
|
356
356
|
level: t.level,
|
|
357
357
|
status: t.status,
|
|
358
|
+
assignedAthleteId: t.assignedAthleteId,
|
|
359
|
+
assignedTeamId: t.assignedTeamId,
|
|
358
360
|
pagination: t.pagination
|
|
359
361
|
}, n)).athListPrograms
|
|
360
362
|
});
|
|
@@ -370,6 +372,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
370
372
|
athProgram(id: $id) {
|
|
371
373
|
${S}
|
|
372
374
|
drills { items { ${x} } }
|
|
375
|
+
adherence { programId plannedDrills loggedWorkouts completedWorkouts skippedWorkouts adherencePct }
|
|
373
376
|
}
|
|
374
377
|
}`, { id: t }, n)).athProgram,
|
|
375
378
|
enabled: !!t
|
|
@@ -427,6 +430,23 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
427
430
|
}
|
|
428
431
|
});
|
|
429
432
|
}, z = () => {
|
|
433
|
+
let t = c(), { apiGatewayUrl: n } = e();
|
|
434
|
+
return o({
|
|
435
|
+
mutationFn: async ({ id: e, input: t }) => (await p(`mutation AthAssignProgram($id: ID!, $input: AthAssignProgramInput!) {
|
|
436
|
+
athAssignProgram(id: $id, input: $input) { ${S} }
|
|
437
|
+
}`, {
|
|
438
|
+
id: e,
|
|
439
|
+
input: t
|
|
440
|
+
}, n)).athAssignProgram,
|
|
441
|
+
onSuccess: (e) => {
|
|
442
|
+
t.invalidateQueries({ queryKey: ["atheletebridge", "programs"] }), t.invalidateQueries({ queryKey: [
|
|
443
|
+
"atheletebridge",
|
|
444
|
+
"program",
|
|
445
|
+
e.id
|
|
446
|
+
] });
|
|
447
|
+
}
|
|
448
|
+
});
|
|
449
|
+
}, B = () => {
|
|
430
450
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
431
451
|
return o({
|
|
432
452
|
mutationFn: async (e) => (await p(`mutation AthAddDrill($input: AthAddDrillInput!) {
|
|
@@ -440,7 +460,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
440
460
|
] });
|
|
441
461
|
}
|
|
442
462
|
});
|
|
443
|
-
},
|
|
463
|
+
}, V = (t) => {
|
|
444
464
|
let n = c(), { apiGatewayUrl: r } = e();
|
|
445
465
|
return o({
|
|
446
466
|
mutationFn: async (e) => (await p("mutation AthRemoveDrill($id: ID!) { athRemoveDrill(id: $id) }", { id: e }, r)).athRemoveDrill,
|
|
@@ -452,7 +472,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
452
472
|
] });
|
|
453
473
|
}
|
|
454
474
|
});
|
|
455
|
-
},
|
|
475
|
+
}, H = (t = {}) => {
|
|
456
476
|
let { apiGatewayUrl: n } = e();
|
|
457
477
|
return s({
|
|
458
478
|
queryKey: [
|
|
@@ -460,8 +480,8 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
460
480
|
"sessions",
|
|
461
481
|
t
|
|
462
482
|
],
|
|
463
|
-
queryFn: async () => (await p(`query AthListSessions($athleteId: ID, $coachId: ID, $status: AthSessionStatus, $pagination: PaginationInput) {
|
|
464
|
-
athListSessions(athleteId: $athleteId, coachId: $coachId, status: $status, pagination: $pagination) {
|
|
483
|
+
queryFn: async () => (await p(`query AthListSessions($athleteId: ID, $coachId: ID, $status: AthSessionStatus, $scheduledFrom: DateTime, $scheduledTo: DateTime, $pagination: PaginationInput) {
|
|
484
|
+
athListSessions(athleteId: $athleteId, coachId: $coachId, status: $status, scheduledFrom: $scheduledFrom, scheduledTo: $scheduledTo, pagination: $pagination) {
|
|
465
485
|
items { ${C} }
|
|
466
486
|
pageInfo { cursor hasMore }
|
|
467
487
|
}
|
|
@@ -469,10 +489,12 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
469
489
|
athleteId: t.athleteId,
|
|
470
490
|
coachId: t.coachId,
|
|
471
491
|
status: t.status,
|
|
492
|
+
scheduledFrom: t.scheduledFrom,
|
|
493
|
+
scheduledTo: t.scheduledTo,
|
|
472
494
|
pagination: t.pagination
|
|
473
495
|
}, n)).athListSessions
|
|
474
496
|
});
|
|
475
|
-
},
|
|
497
|
+
}, U = (t) => {
|
|
476
498
|
let { apiGatewayUrl: n } = e();
|
|
477
499
|
return s({
|
|
478
500
|
queryKey: [
|
|
@@ -485,7 +507,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
485
507
|
}`, { id: t }, n)).athSession,
|
|
486
508
|
enabled: !!t
|
|
487
509
|
});
|
|
488
|
-
},
|
|
510
|
+
}, W = () => {
|
|
489
511
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
490
512
|
return o({
|
|
491
513
|
mutationFn: async (e) => (await p(`mutation AthBookSession($input: AthBookSessionInput!) {
|
|
@@ -495,7 +517,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
495
517
|
t.invalidateQueries({ queryKey: ["atheletebridge", "sessions"] });
|
|
496
518
|
}
|
|
497
519
|
});
|
|
498
|
-
},
|
|
520
|
+
}, ue = () => {
|
|
499
521
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
500
522
|
return o({
|
|
501
523
|
mutationFn: async (e) => (await p(`mutation AthConfirmSession($id: ID!) {
|
|
@@ -509,7 +531,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
509
531
|
] });
|
|
510
532
|
}
|
|
511
533
|
});
|
|
512
|
-
},
|
|
534
|
+
}, de = () => {
|
|
513
535
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
514
536
|
return o({
|
|
515
537
|
mutationFn: async ({ id: e, input: t }) => (await p(`mutation AthCompleteSession($id: ID!, $input: AthCompleteSessionInput) {
|
|
@@ -526,7 +548,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
526
548
|
] });
|
|
527
549
|
}
|
|
528
550
|
});
|
|
529
|
-
},
|
|
551
|
+
}, fe = () => {
|
|
530
552
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
531
553
|
return o({
|
|
532
554
|
mutationFn: async (e) => (await p(`mutation AthCancelSession($id: ID!) {
|
|
@@ -578,7 +600,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
578
600
|
}, r)).athPerformanceMetrics.items,
|
|
579
601
|
enabled: !!t
|
|
580
602
|
});
|
|
581
|
-
},
|
|
603
|
+
}, pe = () => {
|
|
582
604
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
583
605
|
return o({
|
|
584
606
|
mutationFn: async (e) => (await p(`mutation AthLogWorkout($input: AthLogWorkoutInput!) {
|
|
@@ -588,7 +610,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
588
610
|
t.invalidateQueries({ queryKey: ["atheletebridge", "workout-logs"] });
|
|
589
611
|
}
|
|
590
612
|
});
|
|
591
|
-
},
|
|
613
|
+
}, me = () => {
|
|
592
614
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
593
615
|
return o({
|
|
594
616
|
mutationFn: async (e) => (await p(`mutation AthRecordMetric($input: AthRecordMetricInput!) {
|
|
@@ -598,7 +620,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
598
620
|
t.invalidateQueries({ queryKey: ["atheletebridge", "metrics"] });
|
|
599
621
|
}
|
|
600
622
|
});
|
|
601
|
-
}, q = "\n id workspaceId memberId fixtureId sessionId response respondedAt note\n createdAt updatedAt\n member { id displayName role }\n",
|
|
623
|
+
}, q = "\n id workspaceId memberId fixtureId sessionId response respondedAt note\n createdAt updatedAt\n member { id displayName role }\n", he = (t) => {
|
|
602
624
|
let { apiGatewayUrl: n } = e(), { fixtureId: r, sessionId: i } = t;
|
|
603
625
|
return s({
|
|
604
626
|
queryKey: [
|
|
@@ -618,7 +640,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
618
640
|
}, n)).athListAvailability.items,
|
|
619
641
|
enabled: !!(r || i)
|
|
620
642
|
});
|
|
621
|
-
},
|
|
643
|
+
}, ge = () => {
|
|
622
644
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
623
645
|
return o({
|
|
624
646
|
mutationFn: async (e) => (await p(`mutation AthSetAvailability($input: AthSetAvailabilityInput!) {
|
|
@@ -633,18 +655,18 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
633
655
|
] });
|
|
634
656
|
}
|
|
635
657
|
});
|
|
636
|
-
},
|
|
658
|
+
}, _e = () => {
|
|
637
659
|
let { apiGatewayUrl: t } = e();
|
|
638
660
|
return o({ mutationFn: async (e) => (await p("mutation AthRemindAvailability($fixtureId: ID, $sessionId: ID) {\n athRemindAvailability(fixtureId: $fixtureId, sessionId: $sessionId)\n }", e, t)).athRemindAvailability });
|
|
639
|
-
},
|
|
661
|
+
}, ve = (e) => {
|
|
640
662
|
let t = e.lastIndexOf(".");
|
|
641
663
|
return t >= 0 ? e.slice(t + 1).toLowerCase() : "bin";
|
|
642
|
-
},
|
|
664
|
+
}, ye = () => {
|
|
643
665
|
let { apiGatewayUrl: t } = e();
|
|
644
666
|
return i(async (e) => {
|
|
645
667
|
let n = await p("mutation AthInitiateUpload($input: InitiateUploadInput!) {\n initiateUpload(input: $input) { uploadUrl session { id } }\n }", { input: {
|
|
646
668
|
fileName: e.name,
|
|
647
|
-
extension:
|
|
669
|
+
extension: ve(e.name),
|
|
648
670
|
fileSize: e.size,
|
|
649
671
|
mimeType: e.type || "application/octet-stream",
|
|
650
672
|
visibility: "WORKSPACE"
|
|
@@ -658,7 +680,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
658
680
|
if (!a.ok) throw Error(`Storage rejected the upload (HTTP ${a.status}).`);
|
|
659
681
|
return (await p("mutation AthCompleteUpload($input: CompleteUploadInput!) {\n completeUpload(input: $input) { fileId }\n }", { input: { sessionId: i } }, t)).completeUpload.fileId;
|
|
660
682
|
}, [t]);
|
|
661
|
-
},
|
|
683
|
+
}, be = (t) => {
|
|
662
684
|
let { apiGatewayUrl: n } = e();
|
|
663
685
|
return s({
|
|
664
686
|
queryKey: [
|
|
@@ -670,7 +692,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
670
692
|
enabled: !!t,
|
|
671
693
|
staleTime: 6e4
|
|
672
694
|
});
|
|
673
|
-
}, J = (e) => e.name?.trim() ? e.name.trim() : [e.firstName, e.lastName].filter(Boolean).join(" ").trim() || (e.username?.trim() ? e.username.trim() : e.email),
|
|
695
|
+
}, J = (e) => e.name?.trim() ? e.name.trim() : [e.firstName, e.lastName].filter(Boolean).join(" ").trim() || (e.username?.trim() ? e.username.trim() : e.email), xe = (e) => {
|
|
674
696
|
let t = e.trim();
|
|
675
697
|
return s({
|
|
676
698
|
queryKey: [
|
|
@@ -720,7 +742,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
720
742
|
staleTime: 3e5,
|
|
721
743
|
retry: !1
|
|
722
744
|
});
|
|
723
|
-
},
|
|
745
|
+
}, Se = (e) => {
|
|
724
746
|
let t = Y(e), n = t.data ?? {};
|
|
725
747
|
return {
|
|
726
748
|
byId: n,
|
|
@@ -729,7 +751,7 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
729
751
|
nameOf: (e) => e ? n[e]?.name : void 0,
|
|
730
752
|
emailOf: (e) => e ? n[e]?.email : void 0
|
|
731
753
|
};
|
|
732
|
-
},
|
|
754
|
+
}, Ce = ({ teams: e = [], fixtures: t = [], sessions: n = [], programs: r = [], limit: i = 8 }) => a(() => {
|
|
733
755
|
let a = [];
|
|
734
756
|
for (let t of e) {
|
|
735
757
|
a.push({
|
|
@@ -785,11 +807,11 @@ var d = "AI_PROVIDER_UNAVAILABLE", f = class extends Error {
|
|
|
785
807
|
n,
|
|
786
808
|
r,
|
|
787
809
|
i
|
|
788
|
-
]),
|
|
810
|
+
]), we = (e, t) => {
|
|
789
811
|
let n = O(e), r = a(() => (n.data ?? []).find((e) => e.id === t) ?? null, [n.data, t]), i = r?.userId, o = K(i), s = G({
|
|
790
812
|
athleteId: i,
|
|
791
813
|
pagination: { limit: 100 }
|
|
792
|
-
}), c =
|
|
814
|
+
}), c = H({
|
|
793
815
|
athleteId: i,
|
|
794
816
|
pagination: { limit: 100 }
|
|
795
817
|
});
|
|
@@ -821,8 +843,8 @@ function X(e, t, n, r = 8) {
|
|
|
821
843
|
};
|
|
822
844
|
});
|
|
823
845
|
}
|
|
824
|
-
var
|
|
825
|
-
let { competition: t, sampleLimit: n = 200 } = e, r =
|
|
846
|
+
var Te = (e = {}) => {
|
|
847
|
+
let { competition: t, sampleLimit: n = 200 } = e, r = H({ pagination: { limit: n } }), i = G({ pagination: { limit: n } }), o = P({ pagination: { limit: n } }), s = a(() => r.data?.items ?? [], [r.data]), c = a(() => i.data?.items ?? [], [i.data]), l = a(() => o.data?.items ?? [], [o.data]), u = a(() => {
|
|
826
848
|
if (t) return t;
|
|
827
849
|
let e = /* @__PURE__ */ new Map();
|
|
828
850
|
for (let t of l) t.competition && e.set(t.competition, (e.get(t.competition) ?? 0) + 1);
|
|
@@ -919,14 +941,14 @@ var we = (e = {}) => {
|
|
|
919
941
|
o.isLoading,
|
|
920
942
|
o.isError
|
|
921
943
|
]);
|
|
922
|
-
}, 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",
|
|
944
|
+
}, 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", Ee = () => {
|
|
923
945
|
let { apiGatewayUrl: t } = e();
|
|
924
946
|
return s({
|
|
925
947
|
queryKey: ["atheletebridge", "ai-model-catalog"],
|
|
926
948
|
queryFn: async () => (await p("query AthAiModelCatalog {\n athAiModelCatalog { provider model label isDefault capabilities configured }\n }", {}, t)).athAiModelCatalog,
|
|
927
949
|
staleTime: 18e5
|
|
928
950
|
});
|
|
929
|
-
},
|
|
951
|
+
}, De = () => {
|
|
930
952
|
let { apiGatewayUrl: t } = e();
|
|
931
953
|
return s({
|
|
932
954
|
queryKey: ["atheletebridge", "ai-config"],
|
|
@@ -934,7 +956,7 @@ var we = (e = {}) => {
|
|
|
934
956
|
athWorkspaceAiConfig { ${Q} }
|
|
935
957
|
}`, {}, t)).athWorkspaceAiConfig
|
|
936
958
|
});
|
|
937
|
-
},
|
|
959
|
+
}, Oe = () => {
|
|
938
960
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
939
961
|
return o({
|
|
940
962
|
mutationFn: async ({ provider: e, model: t }) => (await p(`mutation AthSetWorkspaceAiModel($provider: String!, $model: String!) {
|
|
@@ -947,7 +969,7 @@ var we = (e = {}) => {
|
|
|
947
969
|
t.setQueryData(["atheletebridge", "ai-config"], e);
|
|
948
970
|
}
|
|
949
971
|
});
|
|
950
|
-
},
|
|
972
|
+
}, ke = () => {
|
|
951
973
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
952
974
|
return o({
|
|
953
975
|
mutationFn: async (e) => (await p(`mutation AthSetWorkspaceAutoPilot($enabled: Boolean!) {
|
|
@@ -958,12 +980,12 @@ var we = (e = {}) => {
|
|
|
958
980
|
}
|
|
959
981
|
});
|
|
960
982
|
};
|
|
961
|
-
function
|
|
983
|
+
function Ae(e) {
|
|
962
984
|
let t = {};
|
|
963
985
|
return e.athleteId && (t.athleteId = e.athleteId), e.teamId && (t.teamId = e.teamId), e.programId && (t.programId = e.programId), Object.keys(t).length > 0 ? t : null;
|
|
964
986
|
}
|
|
965
|
-
var
|
|
966
|
-
let { apiGatewayUrl: n } = e(), { limit: r = 10, offset: i = 0 } = t, a =
|
|
987
|
+
var $ = (t = {}) => {
|
|
988
|
+
let { apiGatewayUrl: n } = e(), { limit: r = 10, offset: i = 0 } = t, a = Ae(t);
|
|
967
989
|
return s({
|
|
968
990
|
queryKey: [
|
|
969
991
|
"atheletebridge",
|
|
@@ -985,7 +1007,7 @@ var Ae = (t = {}) => {
|
|
|
985
1007
|
filter: a
|
|
986
1008
|
}, n)).athAgentRuns
|
|
987
1009
|
});
|
|
988
|
-
},
|
|
1010
|
+
}, je = (t) => {
|
|
989
1011
|
let { apiGatewayUrl: n } = e();
|
|
990
1012
|
return s({
|
|
991
1013
|
queryKey: [
|
|
@@ -999,7 +1021,7 @@ var Ae = (t = {}) => {
|
|
|
999
1021
|
enabled: !!t,
|
|
1000
1022
|
retry: !1
|
|
1001
1023
|
});
|
|
1002
|
-
},
|
|
1024
|
+
}, Me = (t) => {
|
|
1003
1025
|
let { apiGatewayUrl: n } = e();
|
|
1004
1026
|
return s({
|
|
1005
1027
|
queryKey: [
|
|
@@ -1011,7 +1033,7 @@ var Ae = (t = {}) => {
|
|
|
1011
1033
|
enabled: !!t,
|
|
1012
1034
|
retry: !1
|
|
1013
1035
|
});
|
|
1014
|
-
},
|
|
1036
|
+
}, Ne = () => {
|
|
1015
1037
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
1016
1038
|
return o({
|
|
1017
1039
|
mutationFn: async (e) => (await p(`mutation AthGenerateProgram($input: AthGenerateProgramInput!) {
|
|
@@ -1026,7 +1048,7 @@ var Ae = (t = {}) => {
|
|
|
1026
1048
|
t.invalidateQueries({ queryKey: ["atheletebridge", "agent-runs"] }), t.invalidateQueries({ queryKey: ["atheletebridge", "programs"] }), t.invalidateQueries({ queryKey: ["atheletebridge", "sessions"] });
|
|
1027
1049
|
}
|
|
1028
1050
|
});
|
|
1029
|
-
},
|
|
1051
|
+
}, Pe = () => {
|
|
1030
1052
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
1031
1053
|
return o({
|
|
1032
1054
|
mutationFn: async ({ athleteId: e, programId: t, requestedProvider: r }) => (await p("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 }", {
|
|
@@ -1042,7 +1064,7 @@ var Ae = (t = {}) => {
|
|
|
1042
1064
|
] });
|
|
1043
1065
|
}
|
|
1044
1066
|
});
|
|
1045
|
-
},
|
|
1067
|
+
}, Fe = () => {
|
|
1046
1068
|
let t = c(), { apiGatewayUrl: n } = e();
|
|
1047
1069
|
return o({
|
|
1048
1070
|
mutationFn: async ({ runId: e, programId: t, assessment: r, note: i }) => (await p("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 }", {
|
|
@@ -1060,6 +1082,6 @@ var Ae = (t = {}) => {
|
|
|
1060
1082
|
}
|
|
1061
1083
|
});
|
|
1062
1084
|
};
|
|
1063
|
-
export { d as AI_PROVIDER_UNAVAILABLE, f as AthApiError, p as athQuery, J as directoryUserName,
|
|
1085
|
+
export { d as AI_PROVIDER_UNAVAILABLE, f as AthApiError, p as athQuery, J as directoryUserName, B as useAddDrill, N as useAddMember, Pe as useAdjustPlanFromPerformance, je as useAgentRun, $ as useAgentRuns, Ee as useAiModelCatalog, R as useArchiveProgram, j as useArchiveTeam, z as useAssignProgram, we as useAthleteProfile, he as useAvailability, W as useBookSession, ae as useCancelFixture, fe as useCancelSession, Te as useCoachAnalytics, de as useCompleteSession, ue as useConfirmSession, le as useCreateProgram, k as useCreateTeam, be as useFile, te as useFixture, P as useFixtures, Ne as useGenerateProgram, pe as useLogWorkout, Fe as useOverrideAgentRun, K as usePerformanceMetrics, ie as usePostponeFixture, ce as useProgram, Me as useProgramAiState, se as usePrograms, Ce as useRecentActivity, oe as useRecordFixtureResult, me as useRecordMetric, _e as useRemindAvailability, V as useRemoveDrill, ee as useRemoveMember, ne as useScheduleFixture, U as useSession, H as useSessions, ge as useSetAvailability, Oe as useSetWorkspaceAiModel, ke as useSetWorkspaceAutoPilot, F as useStandings, D as useTeam, O as useTeamMembers, E as useTeams, L as useTransitionProgram, M as useUnarchiveTeam, re as useUpdateFixture, I as useUpdateProgram, A as useUpdateTeam, ye as useUploadFile, Se as useUserDirectory, xe as useUserSearch, Y as useUsersByIds, G as useWorkoutLogs, De as useWorkspaceAiConfig };
|
|
1064
1086
|
|
|
1065
1087
|
//# sourceMappingURL=useAthleteBridgeApi.js.map
|