@burdenoff/sdk-libs 2026.627.5 → 2026.629.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/modules/adaptercloud/index.cjs +316 -0
- package/dist/modules/adaptercloud/index.d.cts +399 -0
- package/dist/modules/adaptercloud/index.d.ts +399 -0
- package/dist/modules/adaptercloud/index.js +316 -0
- package/dist/modules/atheletebridge/index.cjs +261 -0
- package/dist/modules/atheletebridge/index.d.cts +392 -0
- package/dist/modules/atheletebridge/index.d.ts +392 -0
- package/dist/modules/atheletebridge/index.js +261 -0
- package/dist/modules/coolandlovely/index.cjs +321 -0
- package/dist/modules/coolandlovely/index.d.cts +433 -0
- package/dist/modules/coolandlovely/index.d.ts +433 -0
- package/dist/modules/coolandlovely/index.js +321 -0
- package/dist/modules/hookmovies/index.cjs +359 -0
- package/dist/modules/hookmovies/index.d.cts +512 -0
- package/dist/modules/hookmovies/index.d.ts +512 -0
- package/dist/modules/hookmovies/index.js +359 -0
- package/dist/modules/labsofscience/index.cjs +373 -0
- package/dist/modules/labsofscience/index.d.cts +495 -0
- package/dist/modules/labsofscience/index.d.ts +495 -0
- package/dist/modules/labsofscience/index.js +373 -0
- package/dist/modules/subscriberbot/index.cjs +334 -0
- package/dist/modules/subscriberbot/index.d.cts +497 -0
- package/dist/modules/subscriberbot/index.d.ts +497 -0
- package/dist/modules/subscriberbot/index.js +334 -0
- package/package.json +1 -1
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
'use strict';var n=`
|
|
2
|
+
fragment TeamScalars on AthTeam {
|
|
3
|
+
id ageGroup description headCoachId homeVenue name season
|
|
4
|
+
sport status tags workspaceId createdAt updatedAt
|
|
5
|
+
}
|
|
6
|
+
`,m=`
|
|
7
|
+
fragment MemberScalars on AthMember {
|
|
8
|
+
id displayName dominantSide height jerseyNumber joinedAt notes position
|
|
9
|
+
role status teamId userId weight workspaceId createdAt updatedAt
|
|
10
|
+
}
|
|
11
|
+
`,c=`
|
|
12
|
+
fragment DrillFields on AthDrill {
|
|
13
|
+
id description durationSec name orderIndex programId reps restSec sets
|
|
14
|
+
weekNumber workspaceId createdAt updatedAt
|
|
15
|
+
video { id }
|
|
16
|
+
}
|
|
17
|
+
`,Z=`
|
|
18
|
+
fragment ProgramScalars on AthProgram {
|
|
19
|
+
id coachId isTemplate level name sport status summary tags weeks
|
|
20
|
+
workspaceId createdAt updatedAt
|
|
21
|
+
}
|
|
22
|
+
`,o=`
|
|
23
|
+
fragment SessionFields on AthSession {
|
|
24
|
+
id athleteId coachId completedAt durationMin feedback location meetingUrl
|
|
25
|
+
programId rating scheduledAt status title type workspaceId createdAt updatedAt
|
|
26
|
+
}
|
|
27
|
+
`,l=`
|
|
28
|
+
fragment FixtureScalars on AthFixture {
|
|
29
|
+
id awayScore awayTeamId competition homeScore homeTeamId kickoffAt notes
|
|
30
|
+
round scheduledAt status type venue workspaceId createdAt updatedAt
|
|
31
|
+
}
|
|
32
|
+
`,tt=`
|
|
33
|
+
${n}
|
|
34
|
+
fragment StandingFields on AthStanding {
|
|
35
|
+
id competition drawn goalsAgainst goalsFor lost played points rank
|
|
36
|
+
teamId won workspaceId createdAt updatedAt
|
|
37
|
+
team { ...TeamScalars }
|
|
38
|
+
}
|
|
39
|
+
`,g=`
|
|
40
|
+
fragment MetricFields on AthPerformanceMetric {
|
|
41
|
+
id athleteId label recordedAt source type unit value
|
|
42
|
+
workspaceId createdAt updatedAt
|
|
43
|
+
}
|
|
44
|
+
`,S=`
|
|
45
|
+
fragment WorkoutFields on AthWorkoutLog {
|
|
46
|
+
id athleteId durationMin metrics notes performedAt programId rpe status
|
|
47
|
+
title totalLoad workspaceId createdAt updatedAt
|
|
48
|
+
}
|
|
49
|
+
`,A=`
|
|
50
|
+
${n}
|
|
51
|
+
${m}
|
|
52
|
+
${l}
|
|
53
|
+
fragment TeamFull on AthTeam {
|
|
54
|
+
...TeamScalars
|
|
55
|
+
members { ...MemberScalars }
|
|
56
|
+
fixtures { ...FixtureScalars }
|
|
57
|
+
}
|
|
58
|
+
`,d=`
|
|
59
|
+
${m}
|
|
60
|
+
${n}
|
|
61
|
+
fragment MemberFull on AthMember {
|
|
62
|
+
...MemberScalars
|
|
63
|
+
team { ...TeamScalars }
|
|
64
|
+
}
|
|
65
|
+
`,s=`
|
|
66
|
+
${Z}
|
|
67
|
+
${c}
|
|
68
|
+
fragment ProgramFull on AthProgram {
|
|
69
|
+
...ProgramScalars
|
|
70
|
+
drills { ...DrillFields }
|
|
71
|
+
}
|
|
72
|
+
`,u=`
|
|
73
|
+
${l}
|
|
74
|
+
${n}
|
|
75
|
+
fragment FixtureFull on AthFixture {
|
|
76
|
+
...FixtureScalars
|
|
77
|
+
homeTeam { ...TeamScalars }
|
|
78
|
+
awayTeam { ...TeamScalars }
|
|
79
|
+
}
|
|
80
|
+
`,T=`
|
|
81
|
+
${A}
|
|
82
|
+
query AthTeam($id: ID!) {
|
|
83
|
+
athTeam(id: $id) { ...TeamFull }
|
|
84
|
+
}
|
|
85
|
+
`,I=`
|
|
86
|
+
${A}
|
|
87
|
+
query AthListTeams($pagination: PaginationInput, $sport: AthSport, $status: AthTeamStatus) {
|
|
88
|
+
athListTeams(pagination: $pagination, sport: $sport, status: $status) {
|
|
89
|
+
items { ...TeamFull }
|
|
90
|
+
pageInfo { cursor hasMore }
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
`,M=`
|
|
94
|
+
${A}
|
|
95
|
+
mutation AthCreateTeam($input: AthCreateTeamInput!) {
|
|
96
|
+
athCreateTeam(input: $input) { ...TeamFull }
|
|
97
|
+
}
|
|
98
|
+
`,P=`
|
|
99
|
+
${A}
|
|
100
|
+
mutation AthUpdateTeam($id: ID!, $input: AthUpdateTeamInput!) {
|
|
101
|
+
athUpdateTeam(id: $id, input: $input) { ...TeamFull }
|
|
102
|
+
}
|
|
103
|
+
`,$=`
|
|
104
|
+
mutation AthArchiveTeam($id: ID!) {
|
|
105
|
+
athArchiveTeam(id: $id)
|
|
106
|
+
}
|
|
107
|
+
`,_=`
|
|
108
|
+
${d}
|
|
109
|
+
query AthListMembers($teamId: ID!, $status: AthMemberStatus) {
|
|
110
|
+
athListMembers(teamId: $teamId, status: $status) { ...MemberFull }
|
|
111
|
+
}
|
|
112
|
+
`,R=`
|
|
113
|
+
${d}
|
|
114
|
+
mutation AthAddMember($input: AthAddMemberInput!) {
|
|
115
|
+
athAddMember(input: $input) { ...MemberFull }
|
|
116
|
+
}
|
|
117
|
+
`,F=`
|
|
118
|
+
${d}
|
|
119
|
+
mutation AthUpdateMember($id: ID!, $input: AthUpdateMemberInput!) {
|
|
120
|
+
athUpdateMember(id: $id, input: $input) { ...MemberFull }
|
|
121
|
+
}
|
|
122
|
+
`,E=`
|
|
123
|
+
mutation AthRemoveMember($id: ID!) {
|
|
124
|
+
athRemoveMember(id: $id)
|
|
125
|
+
}
|
|
126
|
+
`,x=`
|
|
127
|
+
${s}
|
|
128
|
+
query AthProgram($id: ID!) {
|
|
129
|
+
athProgram(id: $id) { ...ProgramFull }
|
|
130
|
+
}
|
|
131
|
+
`,L=`
|
|
132
|
+
${s}
|
|
133
|
+
query AthListPrograms(
|
|
134
|
+
$level: AthProgramLevel
|
|
135
|
+
$pagination: PaginationInput
|
|
136
|
+
$sport: AthSport
|
|
137
|
+
$status: AthProgramStatus
|
|
138
|
+
) {
|
|
139
|
+
athListPrograms(level: $level, pagination: $pagination, sport: $sport, status: $status) {
|
|
140
|
+
items { ...ProgramFull }
|
|
141
|
+
pageInfo { cursor hasMore }
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
`,C=`
|
|
145
|
+
${s}
|
|
146
|
+
mutation AthCreateProgram($input: AthCreateProgramInput!) {
|
|
147
|
+
athCreateProgram(input: $input) { ...ProgramFull }
|
|
148
|
+
}
|
|
149
|
+
`,y=`
|
|
150
|
+
${s}
|
|
151
|
+
mutation AthUpdateProgram($id: ID!, $input: AthUpdateProgramInput!) {
|
|
152
|
+
athUpdateProgram(id: $id, input: $input) { ...ProgramFull }
|
|
153
|
+
}
|
|
154
|
+
`,D=`
|
|
155
|
+
${s}
|
|
156
|
+
mutation AthTransitionProgram($id: ID!, $status: AthProgramStatus!) {
|
|
157
|
+
athTransitionProgram(id: $id, status: $status) { ...ProgramFull }
|
|
158
|
+
}
|
|
159
|
+
`,H=`
|
|
160
|
+
mutation AthArchiveProgram($id: ID!) {
|
|
161
|
+
athArchiveProgram(id: $id)
|
|
162
|
+
}
|
|
163
|
+
`,b=`
|
|
164
|
+
${c}
|
|
165
|
+
mutation AthAddDrill($input: AthAddDrillInput!) {
|
|
166
|
+
athAddDrill(input: $input) { ...DrillFields }
|
|
167
|
+
}
|
|
168
|
+
`,B=`
|
|
169
|
+
mutation AthRemoveDrill($id: ID!) {
|
|
170
|
+
athRemoveDrill(id: $id)
|
|
171
|
+
}
|
|
172
|
+
`,k=`
|
|
173
|
+
${o}
|
|
174
|
+
query AthSession($id: ID!) {
|
|
175
|
+
athSession(id: $id) { ...SessionFields }
|
|
176
|
+
}
|
|
177
|
+
`,f=`
|
|
178
|
+
${o}
|
|
179
|
+
query AthListSessions(
|
|
180
|
+
$athleteId: ID
|
|
181
|
+
$coachId: ID
|
|
182
|
+
$pagination: PaginationInput
|
|
183
|
+
$status: AthSessionStatus
|
|
184
|
+
) {
|
|
185
|
+
athListSessions(athleteId: $athleteId, coachId: $coachId, pagination: $pagination, status: $status) {
|
|
186
|
+
items { ...SessionFields }
|
|
187
|
+
pageInfo { cursor hasMore }
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
`,O=`
|
|
191
|
+
${o}
|
|
192
|
+
mutation AthBookSession($input: AthBookSessionInput!) {
|
|
193
|
+
athBookSession(input: $input) { ...SessionFields }
|
|
194
|
+
}
|
|
195
|
+
`,w=`
|
|
196
|
+
${o}
|
|
197
|
+
mutation AthConfirmSession($id: ID!) {
|
|
198
|
+
athConfirmSession(id: $id) { ...SessionFields }
|
|
199
|
+
}
|
|
200
|
+
`,U=`
|
|
201
|
+
${o}
|
|
202
|
+
mutation AthCompleteSession($id: ID!, $input: AthCompleteSessionInput) {
|
|
203
|
+
athCompleteSession(id: $id, input: $input) { ...SessionFields }
|
|
204
|
+
}
|
|
205
|
+
`,q=`
|
|
206
|
+
${o}
|
|
207
|
+
mutation AthCancelSession($id: ID!) {
|
|
208
|
+
athCancelSession(id: $id) { ...SessionFields }
|
|
209
|
+
}
|
|
210
|
+
`,v=`
|
|
211
|
+
${u}
|
|
212
|
+
query AthFixture($id: ID!) {
|
|
213
|
+
athFixture(id: $id) { ...FixtureFull }
|
|
214
|
+
}
|
|
215
|
+
`,W=`
|
|
216
|
+
${u}
|
|
217
|
+
query AthListFixtures($pagination: PaginationInput, $status: AthFixtureStatus, $teamId: ID) {
|
|
218
|
+
athListFixtures(pagination: $pagination, status: $status, teamId: $teamId) {
|
|
219
|
+
items { ...FixtureFull }
|
|
220
|
+
pageInfo { cursor hasMore }
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
`,N=`
|
|
224
|
+
${u}
|
|
225
|
+
mutation AthScheduleFixture($input: AthCreateFixtureInput!) {
|
|
226
|
+
athScheduleFixture(input: $input) { ...FixtureFull }
|
|
227
|
+
}
|
|
228
|
+
`,G=`
|
|
229
|
+
${u}
|
|
230
|
+
mutation AthRecordFixtureResult($id: ID!, $input: AthRecordResultInput!) {
|
|
231
|
+
athRecordFixtureResult(id: $id, input: $input) { ...FixtureFull }
|
|
232
|
+
}
|
|
233
|
+
`,X=`
|
|
234
|
+
${tt}
|
|
235
|
+
query AthStandings($competition: String!) {
|
|
236
|
+
athStandings(competition: $competition) { ...StandingFields }
|
|
237
|
+
}
|
|
238
|
+
`,V=`
|
|
239
|
+
${g}
|
|
240
|
+
query AthPerformanceMetrics($athleteId: ID!, $type: AthMetricType) {
|
|
241
|
+
athPerformanceMetrics(athleteId: $athleteId, type: $type) { ...MetricFields }
|
|
242
|
+
}
|
|
243
|
+
`,K=`
|
|
244
|
+
${g}
|
|
245
|
+
mutation AthRecordMetric($input: AthRecordMetricInput!) {
|
|
246
|
+
athRecordMetric(input: $input) { ...MetricFields }
|
|
247
|
+
}
|
|
248
|
+
`,j=`
|
|
249
|
+
${S}
|
|
250
|
+
query AthListWorkoutLogs($athleteId: ID, $pagination: PaginationInput, $programId: ID) {
|
|
251
|
+
athListWorkoutLogs(athleteId: $athleteId, pagination: $pagination, programId: $programId) {
|
|
252
|
+
items { ...WorkoutFields }
|
|
253
|
+
pageInfo { cursor hasMore }
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
`,z=`
|
|
257
|
+
${S}
|
|
258
|
+
mutation AthLogWorkout($input: AthLogWorkoutInput!) {
|
|
259
|
+
athLogWorkout(input: $input) { ...WorkoutFields }
|
|
260
|
+
}
|
|
261
|
+
`,J="query AthHealth { athHealth }";function Q(h){let{workspace:a}=h.gql;return {teams:{async get(t){return (await a.request(T,{id:t})).athTeam},async list(t,e,r){return (await a.request(I,{sport:t,status:e,pagination:r})).athListTeams},async create(t){return (await a.request(M,{input:t})).athCreateTeam},async update(t,e){return (await a.request(P,{id:t,input:e})).athUpdateTeam},async archive(t){return (await a.request($,{id:t})).athArchiveTeam}},members:{async list(t,e){return (await a.request(_,{teamId:t,status:e})).athListMembers},async add(t){return (await a.request(R,{input:t})).athAddMember},async update(t,e){return (await a.request(F,{id:t,input:e})).athUpdateMember},async remove(t){return (await a.request(E,{id:t})).athRemoveMember}},programs:{async get(t){return (await a.request(x,{id:t})).athProgram},async list(t,e,r,i){return (await a.request(L,{level:t,sport:e,status:r,pagination:i})).athListPrograms},async create(t){return (await a.request(C,{input:t})).athCreateProgram},async update(t,e){return (await a.request(y,{id:t,input:e})).athUpdateProgram},async transition(t,e){return (await a.request(D,{id:t,status:e})).athTransitionProgram},async archive(t){return (await a.request(H,{id:t})).athArchiveProgram},async addDrill(t){return (await a.request(b,{input:t})).athAddDrill},async removeDrill(t){return (await a.request(B,{id:t})).athRemoveDrill}},sessions:{async get(t){return (await a.request(k,{id:t})).athSession},async list(t,e,r,i){return (await a.request(f,{athleteId:t,coachId:e,status:r,pagination:i})).athListSessions},async book(t){return (await a.request(O,{input:t})).athBookSession},async confirm(t){return (await a.request(w,{id:t})).athConfirmSession},async complete(t,e){return (await a.request(U,{id:t,input:e})).athCompleteSession},async cancel(t){return (await a.request(q,{id:t})).athCancelSession}},fixtures:{async get(t){return (await a.request(v,{id:t})).athFixture},async list(t,e,r){return (await a.request(W,{status:t,teamId:e,pagination:r})).athListFixtures},async schedule(t){return (await a.request(N,{input:t})).athScheduleFixture},async recordResult(t,e){return (await a.request(G,{id:t,input:e})).athRecordFixtureResult},async standings(t){return (await a.request(X,{competition:t})).athStandings}},metrics:{async list(t,e){return (await a.request(V,{athleteId:t,type:e})).athPerformanceMetrics},async record(t){return (await a.request(K,{input:t})).athRecordMetric}},workouts:{async list(t,e,r){return (await a.request(j,{athleteId:t,programId:e,pagination:r})).athListWorkoutLogs},async log(t){return (await a.request(z,{input:t})).athLogWorkout}},analytics:{async health(){return (await a.request(J)).athHealth}}}}var et={id:"atheletebridge",version:"1.0.0",displayName:"AthleteBridge",dependsOn:["auth"],attach(h){return Q(h)}},gt=et;module.exports=gt;
|
|
@@ -0,0 +1,392 @@
|
|
|
1
|
+
import { J as Json, S as SdkModule } from '../../module-JDbvil5h.cjs';
|
|
2
|
+
import 'graphql-request';
|
|
3
|
+
|
|
4
|
+
type AthFixtureStatus = 'CANCELLED' | 'COMPLETED' | 'LIVE' | 'POSTPONED' | 'SCHEDULED';
|
|
5
|
+
type AthFixtureType = 'CUP' | 'FRIENDLY' | 'LEAGUE' | 'SCRIMMAGE' | 'TOURNAMENT';
|
|
6
|
+
type AthMemberRole = 'ASSISTANT_COACH' | 'CAPTAIN' | 'COACH' | 'MANAGER' | 'PHYSIO' | 'PLAYER';
|
|
7
|
+
type AthMemberStatus = 'ACTIVE' | 'INJURED' | 'RELEASED' | 'SUSPENDED' | 'TRIAL';
|
|
8
|
+
type AthMetricType = 'ACCURACY' | 'AGILITY' | 'CUSTOM' | 'ENDURANCE' | 'HEART_RATE' | 'SPEED' | 'STRENGTH' | 'WEIGHT';
|
|
9
|
+
type AthProgramLevel = 'ADVANCED' | 'BEGINNER' | 'ELITE' | 'INTERMEDIATE';
|
|
10
|
+
type AthProgramStatus = 'ARCHIVED' | 'DRAFT' | 'PUBLISHED';
|
|
11
|
+
type AthSessionStatus = 'CANCELLED' | 'COMPLETED' | 'CONFIRMED' | 'NO_SHOW' | 'REQUESTED';
|
|
12
|
+
type AthSessionType = 'HYBRID' | 'IN_PERSON' | 'ONLINE';
|
|
13
|
+
type AthSport = 'ATHLETICS' | 'BASKETBALL' | 'CRICKET' | 'ESPORTS' | 'FOOTBALL' | 'OTHER' | 'SWIMMING' | 'TENNIS';
|
|
14
|
+
type AthTeamStatus = 'ACTIVE' | 'ARCHIVED' | 'FORMING' | 'INACTIVE';
|
|
15
|
+
type AthWorkoutStatus = 'COMPLETED' | 'PLANNED' | 'SKIPPED';
|
|
16
|
+
interface PaginationInput {
|
|
17
|
+
cursor?: string;
|
|
18
|
+
limit?: number;
|
|
19
|
+
offset?: number;
|
|
20
|
+
}
|
|
21
|
+
interface AthPageInfo {
|
|
22
|
+
cursor?: string | null;
|
|
23
|
+
hasMore: boolean;
|
|
24
|
+
}
|
|
25
|
+
interface AthFileRef {
|
|
26
|
+
id: string;
|
|
27
|
+
}
|
|
28
|
+
interface AthTeam {
|
|
29
|
+
id: string;
|
|
30
|
+
ageGroup?: string | null;
|
|
31
|
+
description?: string | null;
|
|
32
|
+
headCoachId?: string | null;
|
|
33
|
+
homeVenue?: string | null;
|
|
34
|
+
name: string;
|
|
35
|
+
season?: string | null;
|
|
36
|
+
sport: AthSport;
|
|
37
|
+
status: AthTeamStatus;
|
|
38
|
+
tags: string[];
|
|
39
|
+
workspaceId: string;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
updatedAt: string;
|
|
42
|
+
members?: AthMember[];
|
|
43
|
+
fixtures?: AthFixture[];
|
|
44
|
+
}
|
|
45
|
+
interface AthMember {
|
|
46
|
+
id: string;
|
|
47
|
+
displayName: string;
|
|
48
|
+
dominantSide?: string | null;
|
|
49
|
+
height?: number | null;
|
|
50
|
+
jerseyNumber?: number | null;
|
|
51
|
+
joinedAt?: string | null;
|
|
52
|
+
notes?: string | null;
|
|
53
|
+
position?: string | null;
|
|
54
|
+
role: AthMemberRole;
|
|
55
|
+
status: AthMemberStatus;
|
|
56
|
+
teamId: string;
|
|
57
|
+
userId: string;
|
|
58
|
+
weight?: number | null;
|
|
59
|
+
workspaceId: string;
|
|
60
|
+
createdAt: string;
|
|
61
|
+
updatedAt: string;
|
|
62
|
+
team?: AthTeam | null;
|
|
63
|
+
}
|
|
64
|
+
interface AthProgram {
|
|
65
|
+
id: string;
|
|
66
|
+
coachId: string;
|
|
67
|
+
isTemplate: boolean;
|
|
68
|
+
level: AthProgramLevel;
|
|
69
|
+
name: string;
|
|
70
|
+
sport: AthSport;
|
|
71
|
+
status: AthProgramStatus;
|
|
72
|
+
summary?: string | null;
|
|
73
|
+
tags: string[];
|
|
74
|
+
weeks: number;
|
|
75
|
+
workspaceId: string;
|
|
76
|
+
createdAt: string;
|
|
77
|
+
updatedAt: string;
|
|
78
|
+
drills?: AthDrill[];
|
|
79
|
+
}
|
|
80
|
+
interface AthDrill {
|
|
81
|
+
id: string;
|
|
82
|
+
description?: string | null;
|
|
83
|
+
durationSec?: number | null;
|
|
84
|
+
name: string;
|
|
85
|
+
orderIndex: number;
|
|
86
|
+
programId: string;
|
|
87
|
+
reps?: number | null;
|
|
88
|
+
restSec?: number | null;
|
|
89
|
+
sets?: number | null;
|
|
90
|
+
weekNumber: number;
|
|
91
|
+
workspaceId: string;
|
|
92
|
+
createdAt: string;
|
|
93
|
+
updatedAt: string;
|
|
94
|
+
video?: AthFileRef | null;
|
|
95
|
+
}
|
|
96
|
+
interface AthSession {
|
|
97
|
+
id: string;
|
|
98
|
+
athleteId: string;
|
|
99
|
+
coachId: string;
|
|
100
|
+
completedAt?: string | null;
|
|
101
|
+
durationMin: number;
|
|
102
|
+
feedback?: string | null;
|
|
103
|
+
location?: string | null;
|
|
104
|
+
meetingUrl?: string | null;
|
|
105
|
+
programId?: string | null;
|
|
106
|
+
rating?: number | null;
|
|
107
|
+
scheduledAt: string;
|
|
108
|
+
status: AthSessionStatus;
|
|
109
|
+
title: string;
|
|
110
|
+
type: AthSessionType;
|
|
111
|
+
workspaceId: string;
|
|
112
|
+
createdAt: string;
|
|
113
|
+
updatedAt: string;
|
|
114
|
+
}
|
|
115
|
+
interface AthFixture {
|
|
116
|
+
id: string;
|
|
117
|
+
awayScore?: number | null;
|
|
118
|
+
awayTeamId?: string | null;
|
|
119
|
+
competition?: string | null;
|
|
120
|
+
homeScore?: number | null;
|
|
121
|
+
homeTeamId: string;
|
|
122
|
+
kickoffAt?: string | null;
|
|
123
|
+
notes?: string | null;
|
|
124
|
+
round?: string | null;
|
|
125
|
+
scheduledAt: string;
|
|
126
|
+
status: AthFixtureStatus;
|
|
127
|
+
type: AthFixtureType;
|
|
128
|
+
venue?: string | null;
|
|
129
|
+
workspaceId: string;
|
|
130
|
+
createdAt: string;
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
homeTeam?: AthTeam | null;
|
|
133
|
+
awayTeam?: AthTeam | null;
|
|
134
|
+
}
|
|
135
|
+
interface AthStanding {
|
|
136
|
+
id: string;
|
|
137
|
+
competition: string;
|
|
138
|
+
drawn: number;
|
|
139
|
+
goalsAgainst: number;
|
|
140
|
+
goalsFor: number;
|
|
141
|
+
lost: number;
|
|
142
|
+
played: number;
|
|
143
|
+
points: number;
|
|
144
|
+
rank?: number | null;
|
|
145
|
+
teamId: string;
|
|
146
|
+
won: number;
|
|
147
|
+
workspaceId: string;
|
|
148
|
+
createdAt: string;
|
|
149
|
+
updatedAt: string;
|
|
150
|
+
team?: AthTeam | null;
|
|
151
|
+
}
|
|
152
|
+
interface AthPerformanceMetric {
|
|
153
|
+
id: string;
|
|
154
|
+
athleteId: string;
|
|
155
|
+
label: string;
|
|
156
|
+
recordedAt: string;
|
|
157
|
+
source?: string | null;
|
|
158
|
+
type: AthMetricType;
|
|
159
|
+
unit?: string | null;
|
|
160
|
+
value: number;
|
|
161
|
+
workspaceId: string;
|
|
162
|
+
createdAt: string;
|
|
163
|
+
updatedAt: string;
|
|
164
|
+
}
|
|
165
|
+
interface AthWorkoutLog {
|
|
166
|
+
id: string;
|
|
167
|
+
athleteId: string;
|
|
168
|
+
durationMin?: number | null;
|
|
169
|
+
metrics?: Json | null;
|
|
170
|
+
notes?: string | null;
|
|
171
|
+
performedAt: string;
|
|
172
|
+
programId?: string | null;
|
|
173
|
+
rpe?: number | null;
|
|
174
|
+
status: AthWorkoutStatus;
|
|
175
|
+
title: string;
|
|
176
|
+
totalLoad?: number | null;
|
|
177
|
+
workspaceId: string;
|
|
178
|
+
createdAt: string;
|
|
179
|
+
updatedAt: string;
|
|
180
|
+
}
|
|
181
|
+
interface AthTeamConnection {
|
|
182
|
+
items: AthTeam[];
|
|
183
|
+
pageInfo: AthPageInfo;
|
|
184
|
+
}
|
|
185
|
+
interface AthProgramConnection {
|
|
186
|
+
items: AthProgram[];
|
|
187
|
+
pageInfo: AthPageInfo;
|
|
188
|
+
}
|
|
189
|
+
interface AthSessionConnection {
|
|
190
|
+
items: AthSession[];
|
|
191
|
+
pageInfo: AthPageInfo;
|
|
192
|
+
}
|
|
193
|
+
interface AthFixtureConnection {
|
|
194
|
+
items: AthFixture[];
|
|
195
|
+
pageInfo: AthPageInfo;
|
|
196
|
+
}
|
|
197
|
+
interface AthWorkoutLogConnection {
|
|
198
|
+
items: AthWorkoutLog[];
|
|
199
|
+
pageInfo: AthPageInfo;
|
|
200
|
+
}
|
|
201
|
+
interface AthCreateTeamInput {
|
|
202
|
+
name: string;
|
|
203
|
+
ageGroup?: string;
|
|
204
|
+
description?: string;
|
|
205
|
+
headCoachId?: string;
|
|
206
|
+
homeVenue?: string;
|
|
207
|
+
season?: string;
|
|
208
|
+
sport?: AthSport;
|
|
209
|
+
status?: AthTeamStatus;
|
|
210
|
+
tags?: string[];
|
|
211
|
+
}
|
|
212
|
+
interface AthUpdateTeamInput {
|
|
213
|
+
ageGroup?: string;
|
|
214
|
+
description?: string;
|
|
215
|
+
headCoachId?: string;
|
|
216
|
+
homeVenue?: string;
|
|
217
|
+
name?: string;
|
|
218
|
+
season?: string;
|
|
219
|
+
sport?: AthSport;
|
|
220
|
+
status?: AthTeamStatus;
|
|
221
|
+
tags?: string[];
|
|
222
|
+
}
|
|
223
|
+
interface AthAddMemberInput {
|
|
224
|
+
displayName: string;
|
|
225
|
+
teamId: string;
|
|
226
|
+
userId: string;
|
|
227
|
+
dominantSide?: string;
|
|
228
|
+
height?: number;
|
|
229
|
+
jerseyNumber?: number;
|
|
230
|
+
joinedAt?: string;
|
|
231
|
+
notes?: string;
|
|
232
|
+
position?: string;
|
|
233
|
+
role?: AthMemberRole;
|
|
234
|
+
status?: AthMemberStatus;
|
|
235
|
+
weight?: number;
|
|
236
|
+
}
|
|
237
|
+
interface AthUpdateMemberInput {
|
|
238
|
+
displayName?: string;
|
|
239
|
+
dominantSide?: string;
|
|
240
|
+
height?: number;
|
|
241
|
+
jerseyNumber?: number;
|
|
242
|
+
notes?: string;
|
|
243
|
+
position?: string;
|
|
244
|
+
role?: AthMemberRole;
|
|
245
|
+
status?: AthMemberStatus;
|
|
246
|
+
weight?: number;
|
|
247
|
+
}
|
|
248
|
+
interface AthCreateProgramInput {
|
|
249
|
+
name: string;
|
|
250
|
+
isTemplate?: boolean;
|
|
251
|
+
level?: AthProgramLevel;
|
|
252
|
+
sport?: AthSport;
|
|
253
|
+
summary?: string;
|
|
254
|
+
tags?: string[];
|
|
255
|
+
weeks?: number;
|
|
256
|
+
}
|
|
257
|
+
interface AthUpdateProgramInput {
|
|
258
|
+
isTemplate?: boolean;
|
|
259
|
+
level?: AthProgramLevel;
|
|
260
|
+
name?: string;
|
|
261
|
+
sport?: AthSport;
|
|
262
|
+
summary?: string;
|
|
263
|
+
tags?: string[];
|
|
264
|
+
weeks?: number;
|
|
265
|
+
}
|
|
266
|
+
interface AthAddDrillInput {
|
|
267
|
+
name: string;
|
|
268
|
+
programId: string;
|
|
269
|
+
description?: string;
|
|
270
|
+
durationSec?: number;
|
|
271
|
+
orderIndex?: number;
|
|
272
|
+
reps?: number;
|
|
273
|
+
restSec?: number;
|
|
274
|
+
sets?: number;
|
|
275
|
+
videoFileId?: string;
|
|
276
|
+
weekNumber?: number;
|
|
277
|
+
}
|
|
278
|
+
interface AthBookSessionInput {
|
|
279
|
+
athleteId: string;
|
|
280
|
+
coachId: string;
|
|
281
|
+
scheduledAt: string;
|
|
282
|
+
title: string;
|
|
283
|
+
durationMin?: number;
|
|
284
|
+
location?: string;
|
|
285
|
+
meetingUrl?: string;
|
|
286
|
+
programId?: string;
|
|
287
|
+
type?: AthSessionType;
|
|
288
|
+
}
|
|
289
|
+
interface AthCompleteSessionInput {
|
|
290
|
+
feedback?: string;
|
|
291
|
+
rating?: number;
|
|
292
|
+
}
|
|
293
|
+
interface AthCreateFixtureInput {
|
|
294
|
+
homeTeamId: string;
|
|
295
|
+
scheduledAt: string;
|
|
296
|
+
awayTeamId?: string;
|
|
297
|
+
competition?: string;
|
|
298
|
+
kickoffAt?: string;
|
|
299
|
+
notes?: string;
|
|
300
|
+
round?: string;
|
|
301
|
+
type?: AthFixtureType;
|
|
302
|
+
venue?: string;
|
|
303
|
+
}
|
|
304
|
+
interface AthRecordResultInput {
|
|
305
|
+
awayScore: number;
|
|
306
|
+
homeScore: number;
|
|
307
|
+
}
|
|
308
|
+
interface AthRecordMetricInput {
|
|
309
|
+
label: string;
|
|
310
|
+
recordedAt: string;
|
|
311
|
+
value: number;
|
|
312
|
+
athleteId?: string;
|
|
313
|
+
source?: string;
|
|
314
|
+
type?: AthMetricType;
|
|
315
|
+
unit?: string;
|
|
316
|
+
}
|
|
317
|
+
interface AthLogWorkoutInput {
|
|
318
|
+
performedAt: string;
|
|
319
|
+
title: string;
|
|
320
|
+
athleteId?: string;
|
|
321
|
+
durationMin?: number;
|
|
322
|
+
metrics?: Json;
|
|
323
|
+
notes?: string;
|
|
324
|
+
programId?: string;
|
|
325
|
+
rpe?: number;
|
|
326
|
+
status?: AthWorkoutStatus;
|
|
327
|
+
totalLoad?: number;
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
interface AthleteBridgeTeamsApi {
|
|
331
|
+
get(id: string): Promise<AthTeam | null>;
|
|
332
|
+
list(sport?: AthSport, status?: AthTeamStatus, pagination?: PaginationInput): Promise<AthTeamConnection>;
|
|
333
|
+
create(input: AthCreateTeamInput): Promise<AthTeam>;
|
|
334
|
+
update(id: string, input: AthUpdateTeamInput): Promise<AthTeam>;
|
|
335
|
+
archive(id: string): Promise<boolean>;
|
|
336
|
+
}
|
|
337
|
+
interface AthleteBridgeMembersApi {
|
|
338
|
+
list(teamId: string, status?: AthMemberStatus): Promise<AthMember[]>;
|
|
339
|
+
add(input: AthAddMemberInput): Promise<AthMember>;
|
|
340
|
+
update(id: string, input: AthUpdateMemberInput): Promise<AthMember>;
|
|
341
|
+
remove(id: string): Promise<boolean>;
|
|
342
|
+
}
|
|
343
|
+
interface AthleteBridgeProgramsApi {
|
|
344
|
+
get(id: string): Promise<AthProgram | null>;
|
|
345
|
+
list(level?: AthProgramLevel, sport?: AthSport, status?: AthProgramStatus, pagination?: PaginationInput): Promise<AthProgramConnection>;
|
|
346
|
+
create(input: AthCreateProgramInput): Promise<AthProgram>;
|
|
347
|
+
update(id: string, input: AthUpdateProgramInput): Promise<AthProgram>;
|
|
348
|
+
transition(id: string, status: AthProgramStatus): Promise<AthProgram>;
|
|
349
|
+
archive(id: string): Promise<boolean>;
|
|
350
|
+
addDrill(input: AthAddDrillInput): Promise<AthDrill>;
|
|
351
|
+
removeDrill(id: string): Promise<boolean>;
|
|
352
|
+
}
|
|
353
|
+
interface AthleteBridgeSessionsApi {
|
|
354
|
+
get(id: string): Promise<AthSession | null>;
|
|
355
|
+
list(athleteId?: string, coachId?: string, status?: AthSessionStatus, pagination?: PaginationInput): Promise<AthSessionConnection>;
|
|
356
|
+
book(input: AthBookSessionInput): Promise<AthSession>;
|
|
357
|
+
confirm(id: string): Promise<AthSession>;
|
|
358
|
+
complete(id: string, input?: AthCompleteSessionInput): Promise<AthSession>;
|
|
359
|
+
cancel(id: string): Promise<AthSession>;
|
|
360
|
+
}
|
|
361
|
+
interface AthleteBridgeFixturesApi {
|
|
362
|
+
get(id: string): Promise<AthFixture | null>;
|
|
363
|
+
list(status?: AthFixtureStatus, teamId?: string, pagination?: PaginationInput): Promise<AthFixtureConnection>;
|
|
364
|
+
schedule(input: AthCreateFixtureInput): Promise<AthFixture>;
|
|
365
|
+
recordResult(id: string, input: AthRecordResultInput): Promise<AthFixture>;
|
|
366
|
+
standings(competition: string): Promise<AthStanding[]>;
|
|
367
|
+
}
|
|
368
|
+
interface AthleteBridgeMetricsApi {
|
|
369
|
+
list(athleteId: string, type?: AthMetricType): Promise<AthPerformanceMetric[]>;
|
|
370
|
+
record(input: AthRecordMetricInput): Promise<AthPerformanceMetric>;
|
|
371
|
+
}
|
|
372
|
+
interface AthleteBridgeWorkoutsApi {
|
|
373
|
+
list(athleteId?: string, programId?: string, pagination?: PaginationInput): Promise<AthWorkoutLogConnection>;
|
|
374
|
+
log(input: AthLogWorkoutInput): Promise<AthWorkoutLog>;
|
|
375
|
+
}
|
|
376
|
+
interface AthleteBridgeAnalyticsApi {
|
|
377
|
+
health(): Promise<string>;
|
|
378
|
+
}
|
|
379
|
+
interface AthleteBridgeApi {
|
|
380
|
+
teams: AthleteBridgeTeamsApi;
|
|
381
|
+
members: AthleteBridgeMembersApi;
|
|
382
|
+
programs: AthleteBridgeProgramsApi;
|
|
383
|
+
sessions: AthleteBridgeSessionsApi;
|
|
384
|
+
fixtures: AthleteBridgeFixturesApi;
|
|
385
|
+
metrics: AthleteBridgeMetricsApi;
|
|
386
|
+
workouts: AthleteBridgeWorkoutsApi;
|
|
387
|
+
analytics: AthleteBridgeAnalyticsApi;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
declare const atheletebridgeModule: SdkModule<AthleteBridgeApi>;
|
|
391
|
+
|
|
392
|
+
export { type AthAddDrillInput, type AthAddMemberInput, type AthBookSessionInput, type AthCompleteSessionInput, type AthCreateFixtureInput, type AthCreateProgramInput, type AthCreateTeamInput, type AthDrill, type AthFileRef, type AthFixture, type AthFixtureConnection, type AthFixtureStatus, type AthFixtureType, type AthLogWorkoutInput, type AthMember, type AthMemberRole, type AthMemberStatus, type AthMetricType, type AthPageInfo, type AthPerformanceMetric, type AthProgram, type AthProgramConnection, type AthProgramLevel, type AthProgramStatus, type AthRecordMetricInput, type AthRecordResultInput, type AthSession, type AthSessionConnection, type AthSessionStatus, type AthSessionType, type AthSport, type AthStanding, type AthTeam, type AthTeamConnection, type AthTeamStatus, type AthUpdateMemberInput, type AthUpdateProgramInput, type AthUpdateTeamInput, type AthWorkoutLog, type AthWorkoutLogConnection, type AthWorkoutStatus, type AthleteBridgeAnalyticsApi, type AthleteBridgeApi, type AthleteBridgeFixturesApi, type AthleteBridgeMembersApi, type AthleteBridgeMetricsApi, type AthleteBridgeProgramsApi, type AthleteBridgeSessionsApi, type AthleteBridgeTeamsApi, type AthleteBridgeWorkoutsApi, type PaginationInput, atheletebridgeModule as default };
|