@vertikalx/vtx-backend-client 3.0.1-dev-max.7 → 3.1.0

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.
Files changed (72) hide show
  1. package/package.json +1 -1
  2. package/src/api/api-call-headers.js.map +1 -1
  3. package/src/api/backend-response.js.map +1 -1
  4. package/src/api/domains.js.map +1 -1
  5. package/src/api/response-builder.js.map +1 -1
  6. package/src/api/types.js.map +1 -1
  7. package/src/api/vtx-apikey-api.js.map +1 -1
  8. package/src/api/vtx-base-api.d.ts +0 -38
  9. package/src/api/vtx-base-api.js +1 -73
  10. package/src/api/vtx-base-api.js.map +1 -1
  11. package/src/api/vtx-mobile-api.js.map +1 -1
  12. package/src/api/vtx-web-browser-api.js.map +1 -1
  13. package/src/api/vtx-web-server-api.js.map +1 -1
  14. package/src/client/schema.graphql +4578 -0
  15. package/src/generated/graphql.d.ts +111 -1833
  16. package/src/generated/graphql.js +13 -561
  17. package/src/generated/graphql.js.map +1 -1
  18. package/src/index.js.map +1 -1
  19. package/src/operations/admin.graphql +19 -0
  20. package/src/operations/ai-coach.graphql +117 -0
  21. package/src/operations/athlete.graphql +1764 -0
  22. package/src/operations/auth.graphql +301 -0
  23. package/src/operations/campaign.graphql +822 -0
  24. package/src/operations/email-campaign.graphql +160 -0
  25. package/src/operations/followers.graphql +45 -0
  26. package/src/operations/integrations.graphql +216 -0
  27. package/src/operations/leaderboard.graphql +54 -0
  28. package/src/operations/media.graphql +179 -0
  29. package/src/operations/notifications.graphql +93 -0
  30. package/src/operations/offers.graphql +368 -0
  31. package/src/operations/onboarding.graphql +29 -0
  32. package/src/operations/sponsor.graphql +368 -0
  33. package/src/operations/sport.graphql +132 -0
  34. package/src/operations/teams-clubs.graphql +398 -0
  35. package/src/operations/user.graphql +446 -0
  36. package/tsconfig.lib.json +10 -0
  37. package/src/client/index.d.ts +0 -25
  38. package/src/client/index.js +0 -44
  39. package/src/client/index.js.map +0 -1
  40. package/src/client/runtime/batcher.d.ts +0 -36
  41. package/src/client/runtime/batcher.js +0 -123
  42. package/src/client/runtime/batcher.js.map +0 -1
  43. package/src/client/runtime/createClient.d.ts +0 -17
  44. package/src/client/runtime/createClient.js +0 -28
  45. package/src/client/runtime/createClient.js.map +0 -1
  46. package/src/client/runtime/error.d.ts +0 -15
  47. package/src/client/runtime/error.js +0 -19
  48. package/src/client/runtime/error.js.map +0 -1
  49. package/src/client/runtime/fetcher.d.ts +0 -10
  50. package/src/client/runtime/fetcher.js +0 -68
  51. package/src/client/runtime/fetcher.js.map +0 -1
  52. package/src/client/runtime/generateGraphqlOperation.d.ts +0 -30
  53. package/src/client/runtime/generateGraphqlOperation.js +0 -134
  54. package/src/client/runtime/generateGraphqlOperation.js.map +0 -1
  55. package/src/client/runtime/index.d.ts +0 -11
  56. package/src/client/runtime/index.js +0 -17
  57. package/src/client/runtime/index.js.map +0 -1
  58. package/src/client/runtime/linkTypeMap.d.ts +0 -9
  59. package/src/client/runtime/linkTypeMap.js +0 -95
  60. package/src/client/runtime/linkTypeMap.js.map +0 -1
  61. package/src/client/runtime/typeSelection.d.ts +0 -28
  62. package/src/client/runtime/typeSelection.js +0 -3
  63. package/src/client/runtime/typeSelection.js.map +0 -1
  64. package/src/client/runtime/types.d.ts +0 -55
  65. package/src/client/runtime/types.js +0 -3
  66. package/src/client/runtime/types.js.map +0 -1
  67. package/src/client/schema.d.ts +0 -8244
  68. package/src/client/schema.js +0 -1746
  69. package/src/client/schema.js.map +0 -1
  70. package/src/client/types.d.ts +0 -4369
  71. package/src/client/types.js +0 -11480
  72. package/src/client/types.js.map +0 -1
@@ -0,0 +1,398 @@
1
+ # ============================================================
2
+ # Team & Club Operations
3
+ # ============================================================
4
+
5
+ # --- Team fields fragment ---
6
+ fragment TeamFields on Team {
7
+ _id
8
+ name
9
+ description
10
+ sports {
11
+ _id
12
+ name
13
+ }
14
+ approved
15
+ logo {
16
+ _id
17
+ url
18
+ key
19
+ }
20
+ banner {
21
+ _id
22
+ url
23
+ key
24
+ }
25
+ club {
26
+ _id
27
+ name
28
+ logo {
29
+ _id
30
+ url
31
+ key
32
+ }
33
+ }
34
+ athletes {
35
+ _id
36
+ athlete {
37
+ _id
38
+ firstName
39
+ lastName
40
+ screenName
41
+ vtxScore
42
+ }
43
+ sport {
44
+ _id
45
+ name
46
+ }
47
+ role
48
+ status
49
+ joinedAt
50
+ leftAt
51
+ }
52
+ joinPolicy
53
+ maxRosterSize
54
+ visibility
55
+ stripeAccountId
56
+ vtxScore
57
+ }
58
+
59
+ # --- Club fields fragment ---
60
+ fragment ClubFields on Club {
61
+ _id
62
+ name
63
+ description
64
+ sports {
65
+ _id
66
+ name
67
+ }
68
+ logo {
69
+ _id
70
+ url
71
+ key
72
+ }
73
+ banner {
74
+ _id
75
+ url
76
+ key
77
+ }
78
+ location
79
+ website
80
+ membershipType
81
+ feeStructure
82
+ approved
83
+ visibility
84
+ teams {
85
+ _id
86
+ name
87
+ sports {
88
+ _id
89
+ name
90
+ }
91
+ vtxScore
92
+ logo {
93
+ _id
94
+ url
95
+ key
96
+ }
97
+ }
98
+ stripeAccountId
99
+ }
100
+
101
+ # --- AthleteTeam fields fragment ---
102
+ fragment AthleteTeamFields on AthleteTeam {
103
+ _id
104
+ athlete {
105
+ _id
106
+ firstName
107
+ lastName
108
+ screenName
109
+ vtxScore
110
+ profilePicture {
111
+ _id
112
+ url
113
+ key
114
+ }
115
+ }
116
+ sport {
117
+ _id
118
+ name
119
+ }
120
+ role
121
+ status
122
+ joinedAt
123
+ leftAt
124
+ }
125
+
126
+ # --- AthleteClub fields fragment ---
127
+ fragment AthleteClubFields on AthleteClub {
128
+ _id
129
+ athlete {
130
+ _id
131
+ firstName
132
+ lastName
133
+ screenName
134
+ profilePicture {
135
+ _id
136
+ url
137
+ key
138
+ }
139
+ }
140
+ club {
141
+ _id
142
+ name
143
+ }
144
+ role
145
+ status
146
+ joinedAt
147
+ leftAt
148
+ }
149
+
150
+ # --- TeamAnalytics fields fragment ---
151
+ fragment TeamAnalyticsFields on TeamAnalytics {
152
+ teamId
153
+ teamName
154
+ vtxScore
155
+ athleteCount
156
+ rosterSize
157
+ vtxScoreHistory {
158
+ date
159
+ score
160
+ }
161
+ topPerformers {
162
+ athleteId
163
+ athleteName
164
+ athletePhoto
165
+ sport
166
+ vtxScore
167
+ rank
168
+ tpiScore
169
+ spiScore
170
+ apiScore
171
+ }
172
+ }
173
+
174
+ # --- TeamLeaderboardEntry fields fragment ---
175
+ fragment TeamLeaderboardEntryFields on TeamLeaderboardEntry {
176
+ athleteId
177
+ athleteName
178
+ athletePhoto
179
+ sport
180
+ vtxScore
181
+ rank
182
+ tpiScore
183
+ spiScore
184
+ apiScore
185
+ }
186
+
187
+ # ============================================================
188
+ # Team Queries
189
+ # ============================================================
190
+
191
+ query FindTeamById($teamId: String!) {
192
+ findTeamById(teamId: $teamId) {
193
+ ...TeamFields
194
+ }
195
+ }
196
+
197
+ query FindTeams($sportId: String, $clubId: String) {
198
+ findTeams(sportId: $sportId, clubId: $clubId) {
199
+ ...TeamFields
200
+ }
201
+ }
202
+
203
+ query FindAllTeams {
204
+ findAllTeams {
205
+ ...TeamFields
206
+ }
207
+ }
208
+
209
+ query GetMyTeams {
210
+ getMyTeams {
211
+ ...TeamFields
212
+ }
213
+ }
214
+
215
+ query GetTeamRoster($teamId: String!) {
216
+ getTeamRoster(teamId: $teamId) {
217
+ ...AthleteTeamFields
218
+ }
219
+ }
220
+
221
+ query GetTeamAnalytics($teamId: String!) {
222
+ getTeamAnalytics(teamId: $teamId) {
223
+ ...TeamAnalyticsFields
224
+ }
225
+ }
226
+
227
+ query GetTeamLeaderboard($teamId: String!) {
228
+ getTeamLeaderboard(teamId: $teamId) {
229
+ ...TeamLeaderboardEntryFields
230
+ }
231
+ }
232
+
233
+ query GetTeamDashboard($teamId: String!) {
234
+ getTeamDashboard(teamId: $teamId) {
235
+ analytics {
236
+ ...TeamAnalyticsFields
237
+ }
238
+ roster {
239
+ totalActive
240
+ totalInactive
241
+ recentJoins
242
+ recentDepartures
243
+ }
244
+ leaderboard {
245
+ ...TeamLeaderboardEntryFields
246
+ }
247
+ }
248
+ }
249
+
250
+ query GetTeamStripeAccountStatus($teamId: String!) {
251
+ getTeamStripeAccountStatus(teamId: $teamId) {
252
+ chargesEnabled
253
+ payoutsEnabled
254
+ detailsSubmitted
255
+ }
256
+ }
257
+
258
+ # ============================================================
259
+ # Team Mutations
260
+ # ============================================================
261
+
262
+ mutation CreateTeam($input: CreateTeamInput!) {
263
+ createTeam(input: $input) {
264
+ ...TeamFields
265
+ }
266
+ }
267
+
268
+ mutation UpdateTeam($input: UpdateTeamInput!) {
269
+ updateTeam(input: $input) {
270
+ ...TeamFields
271
+ }
272
+ }
273
+
274
+ mutation JoinTeam($input: JoinTeamInput!) {
275
+ joinTeam(input: $input) {
276
+ ...AthleteTeamFields
277
+ }
278
+ }
279
+
280
+ mutation LeaveTeam($teamId: String!) {
281
+ leaveTeam(teamId: $teamId) {
282
+ ...AthleteTeamFields
283
+ }
284
+ }
285
+
286
+ mutation InviteToTeam($teamId: String!, $athleteId: String!, $sportId: String!) {
287
+ inviteToTeam(teamId: $teamId, athleteId: $athleteId, sportId: $sportId) {
288
+ ...AthleteTeamFields
289
+ }
290
+ }
291
+
292
+ mutation ManageTeamMember($input: ManageTeamMemberInput!) {
293
+ manageTeamMember(input: $input) {
294
+ ...AthleteTeamFields
295
+ }
296
+ }
297
+
298
+ mutation CreateTeamStripeAccount($teamId: String!) {
299
+ createTeamStripeAccount(teamId: $teamId)
300
+ }
301
+
302
+ mutation CreateTeamDonationCheckout($teamId: String!, $amount: Float!, $currency: String! = "usd", $donorEmail: String, $donorName: String) {
303
+ createTeamDonationCheckout(teamId: $teamId, amount: $amount, currency: $currency, donorEmail: $donorEmail, donorName: $donorName)
304
+ }
305
+
306
+ # ============================================================
307
+ # Club Queries
308
+ # ============================================================
309
+
310
+ query FindClubById($clubId: String!) {
311
+ findClubById(clubId: $clubId) {
312
+ ...ClubFields
313
+ }
314
+ }
315
+
316
+ query FindClubs($sportId: String) {
317
+ findClubs(sportId: $sportId) {
318
+ ...ClubFields
319
+ }
320
+ }
321
+
322
+ query FindAllClubs {
323
+ findAllClubs {
324
+ ...ClubFields
325
+ }
326
+ }
327
+
328
+ query GetMyClubs {
329
+ getMyClubs {
330
+ ...ClubFields
331
+ }
332
+ }
333
+
334
+ query GetClubMembers($clubId: String!) {
335
+ getClubMembers(clubId: $clubId) {
336
+ ...AthleteClubFields
337
+ }
338
+ }
339
+
340
+ query GetClubStripeAccountStatus($clubId: String!) {
341
+ getClubStripeAccountStatus(clubId: $clubId) {
342
+ chargesEnabled
343
+ payoutsEnabled
344
+ detailsSubmitted
345
+ }
346
+ }
347
+
348
+ # ============================================================
349
+ # Club Mutations
350
+ # ============================================================
351
+
352
+ mutation CreateClub($input: CreateClubInput!) {
353
+ createClub(input: $input) {
354
+ ...ClubFields
355
+ }
356
+ }
357
+
358
+ mutation UpdateClub($input: UpdateClubInput!) {
359
+ updateClub(input: $input) {
360
+ ...ClubFields
361
+ }
362
+ }
363
+
364
+ mutation JoinClub($input: JoinClubInput!) {
365
+ joinClub(input: $input) {
366
+ ...AthleteClubFields
367
+ }
368
+ }
369
+
370
+ mutation LeaveClub($clubId: String!) {
371
+ leaveClub(clubId: $clubId) {
372
+ ...AthleteClubFields
373
+ }
374
+ }
375
+
376
+ mutation InviteToClub($clubId: String!, $athleteId: String!) {
377
+ inviteToClub(clubId: $clubId, athleteId: $athleteId) {
378
+ ...AthleteClubFields
379
+ }
380
+ }
381
+
382
+ mutation ManageClubMember($input: ManageClubMemberInput!) {
383
+ manageClubMember(input: $input) {
384
+ ...AthleteClubFields
385
+ }
386
+ }
387
+
388
+ mutation CreateClubStripeAccount($clubId: String!) {
389
+ createClubStripeAccount(clubId: $clubId)
390
+ }
391
+
392
+ mutation CreateClubDonationCheckout($clubId: String!, $amount: Float!, $currency: String! = "usd", $donorEmail: String, $donorName: String) {
393
+ createClubDonationCheckout(clubId: $clubId, amount: $amount, currency: $currency, donorEmail: $donorEmail, donorName: $donorName)
394
+ }
395
+
396
+ mutation CreateMembershipFeeCheckout($clubId: String!) {
397
+ createMembershipFeeCheckout(clubId: $clubId)
398
+ }