@vertikalx/vtx-backend-client 3.1.0 → 3.1.1-dev-max.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.
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 +48 -0
  9. package/src/api/vtx-base-api.js +103 -1
  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/index.d.ts +25 -0
  15. package/src/client/index.js +44 -0
  16. package/src/client/index.js.map +1 -0
  17. package/src/client/runtime/batcher.d.ts +36 -0
  18. package/src/client/runtime/batcher.js +123 -0
  19. package/src/client/runtime/batcher.js.map +1 -0
  20. package/src/client/runtime/createClient.d.ts +17 -0
  21. package/src/client/runtime/createClient.js +28 -0
  22. package/src/client/runtime/createClient.js.map +1 -0
  23. package/src/client/runtime/error.d.ts +15 -0
  24. package/src/client/runtime/error.js +19 -0
  25. package/src/client/runtime/error.js.map +1 -0
  26. package/src/client/runtime/fetcher.d.ts +10 -0
  27. package/src/client/runtime/fetcher.js +68 -0
  28. package/src/client/runtime/fetcher.js.map +1 -0
  29. package/src/client/runtime/generateGraphqlOperation.d.ts +30 -0
  30. package/src/client/runtime/generateGraphqlOperation.js +134 -0
  31. package/src/client/runtime/generateGraphqlOperation.js.map +1 -0
  32. package/src/client/runtime/index.d.ts +11 -0
  33. package/src/client/runtime/index.js +17 -0
  34. package/src/client/runtime/index.js.map +1 -0
  35. package/src/client/runtime/linkTypeMap.d.ts +9 -0
  36. package/src/client/runtime/linkTypeMap.js +95 -0
  37. package/src/client/runtime/linkTypeMap.js.map +1 -0
  38. package/src/client/runtime/typeSelection.d.ts +28 -0
  39. package/src/client/runtime/typeSelection.js +3 -0
  40. package/src/client/runtime/typeSelection.js.map +1 -0
  41. package/src/client/runtime/types.d.ts +55 -0
  42. package/src/client/runtime/types.js +3 -0
  43. package/src/client/runtime/types.js.map +1 -0
  44. package/src/client/schema.d.ts +8248 -0
  45. package/src/client/schema.js +1746 -0
  46. package/src/client/schema.js.map +1 -0
  47. package/src/client/types.d.ts +4371 -0
  48. package/src/client/types.js +11486 -0
  49. package/src/client/types.js.map +1 -0
  50. package/src/generated/graphql.d.ts +1955 -125
  51. package/src/generated/graphql.js +581 -13
  52. package/src/generated/graphql.js.map +1 -1
  53. package/src/index.js.map +1 -1
  54. package/src/client/schema.graphql +0 -4578
  55. package/src/operations/admin.graphql +0 -19
  56. package/src/operations/ai-coach.graphql +0 -117
  57. package/src/operations/athlete.graphql +0 -1764
  58. package/src/operations/auth.graphql +0 -301
  59. package/src/operations/campaign.graphql +0 -822
  60. package/src/operations/email-campaign.graphql +0 -160
  61. package/src/operations/followers.graphql +0 -45
  62. package/src/operations/integrations.graphql +0 -216
  63. package/src/operations/leaderboard.graphql +0 -54
  64. package/src/operations/media.graphql +0 -179
  65. package/src/operations/notifications.graphql +0 -93
  66. package/src/operations/offers.graphql +0 -368
  67. package/src/operations/onboarding.graphql +0 -29
  68. package/src/operations/sponsor.graphql +0 -368
  69. package/src/operations/sport.graphql +0 -132
  70. package/src/operations/teams-clubs.graphql +0 -398
  71. package/src/operations/user.graphql +0 -446
  72. package/tsconfig.lib.json +0 -10
@@ -333,6 +333,22 @@ export type Athlete = {
333
333
  trainer?: Maybe<Scalars['String']['output']>;
334
334
  trainerUrl?: Maybe<Scalars['String']['output']>;
335
335
  };
336
+ export type AthleteClub = {
337
+ _id: Scalars['String']['output'];
338
+ athlete?: Maybe<AthleteClubMember>;
339
+ club?: Maybe<Club>;
340
+ joinedAt?: Maybe<Scalars['DateTime']['output']>;
341
+ leftAt?: Maybe<Scalars['DateTime']['output']>;
342
+ role: Scalars['String']['output'];
343
+ status: Scalars['String']['output'];
344
+ };
345
+ export type AthleteClubMember = {
346
+ _id: Scalars['String']['output'];
347
+ firstName?: Maybe<Scalars['String']['output']>;
348
+ lastName?: Maybe<Scalars['String']['output']>;
349
+ profilePicture?: Maybe<Awss3File>;
350
+ screenName?: Maybe<Scalars['String']['output']>;
351
+ };
336
352
  export type AthleteCompetition = {
337
353
  _id: Scalars['String']['output'];
338
354
  albums?: Maybe<Array<Album>>;
@@ -406,10 +422,8 @@ export type AthleteIntegrationReference = {
406
422
  hasInstagramIntegration?: Maybe<Scalars['Boolean']['output']>;
407
423
  hasStravaIntegration?: Maybe<Scalars['Boolean']['output']>;
408
424
  instagramMediaData?: Maybe<InstagramMediaData>;
409
- instagramTokenExpires?: Maybe<Scalars['DateTime']['output']>;
410
425
  instagramUserData?: Maybe<InstagramUserData>;
411
426
  stravaAthleteData?: Maybe<StravaAthleteData>;
412
- stravaTokenExpires?: Maybe<Scalars['DateTime']['output']>;
413
427
  };
414
428
  export type AthleteInvitationDto = {
415
429
  brandId?: InputMaybe<Scalars['String']['input']>;
@@ -474,6 +488,23 @@ export type AthleteReference = {
474
488
  trainer?: Maybe<Scalars['String']['output']>;
475
489
  trainerUrl?: Maybe<Scalars['String']['output']>;
476
490
  };
491
+ export type AthleteTeam = {
492
+ _id: Scalars['String']['output'];
493
+ athlete?: Maybe<AthleteTeamMember>;
494
+ joinedAt?: Maybe<Scalars['DateTime']['output']>;
495
+ leftAt?: Maybe<Scalars['DateTime']['output']>;
496
+ role: Scalars['String']['output'];
497
+ sport?: Maybe<Sport>;
498
+ status: Scalars['String']['output'];
499
+ };
500
+ export type AthleteTeamMember = {
501
+ _id: Scalars['String']['output'];
502
+ firstName?: Maybe<Scalars['String']['output']>;
503
+ lastName?: Maybe<Scalars['String']['output']>;
504
+ profilePicture?: Maybe<Awss3File>;
505
+ screenName?: Maybe<Scalars['String']['output']>;
506
+ vtxScore?: Maybe<Scalars['Float']['output']>;
507
+ };
477
508
  export type AudienceFilterDto = {
478
509
  campaignStatus?: InputMaybe<Scalars['String']['input']>;
479
510
  country?: InputMaybe<Scalars['String']['input']>;
@@ -701,6 +732,22 @@ export type CloneDatabaseFileDto = {
701
732
  _id: Scalars['String']['input'];
702
733
  version?: InputMaybe<Scalars['String']['input']>;
703
734
  };
735
+ export type Club = {
736
+ _id: Scalars['String']['output'];
737
+ approved?: Maybe<Scalars['Boolean']['output']>;
738
+ banner?: Maybe<Awss3File>;
739
+ description?: Maybe<Scalars['String']['output']>;
740
+ feeStructure?: Maybe<Scalars['JSON']['output']>;
741
+ location?: Maybe<Scalars['String']['output']>;
742
+ logo?: Maybe<Awss3File>;
743
+ membershipType: Scalars['String']['output'];
744
+ name: Scalars['String']['output'];
745
+ sports?: Maybe<Array<Sport>>;
746
+ stripeAccountId?: Maybe<Scalars['String']['output']>;
747
+ teams?: Maybe<Array<Team>>;
748
+ visibility: Scalars['String']['output'];
749
+ website?: Maybe<Scalars['String']['output']>;
750
+ };
704
751
  export type CodeVerificationResponse = {
705
752
  code?: Maybe<VerificationCode>;
706
753
  error?: Maybe<ErrorInfo>;
@@ -877,6 +924,16 @@ export type CreateCityDto = {
877
924
  stateId: Scalars['String']['input'];
878
925
  timezone: Scalars['String']['input'];
879
926
  };
927
+ export type CreateClubInput = {
928
+ description?: InputMaybe<Scalars['String']['input']>;
929
+ feeStructure?: InputMaybe<Scalars['JSON']['input']>;
930
+ location?: InputMaybe<Scalars['String']['input']>;
931
+ membershipType?: InputMaybe<Scalars['String']['input']>;
932
+ name: Scalars['String']['input'];
933
+ sportIds: Array<Scalars['String']['input']>;
934
+ visibility?: InputMaybe<Scalars['String']['input']>;
935
+ website?: InputMaybe<Scalars['String']['input']>;
936
+ };
880
937
  export type CreateCompetitionBudgetDto = {
881
938
  athleteCompetitionId: Scalars['String']['input'];
882
939
  initialFunds?: InputMaybe<Scalars['Float']['input']>;
@@ -896,7 +953,6 @@ export type CreateEmailCampaignDto = {
896
953
  htmlContent?: InputMaybe<Scalars['String']['input']>;
897
954
  scheduledFor?: InputMaybe<Scalars['DateTime']['input']>;
898
955
  segmentId?: InputMaybe<Scalars['String']['input']>;
899
- status?: InputMaybe<Scalars['String']['input']>;
900
956
  subject: Scalars['String']['input'];
901
957
  templateId?: InputMaybe<Scalars['String']['input']>;
902
958
  templateName?: InputMaybe<Scalars['String']['input']>;
@@ -906,6 +962,7 @@ export type CreateEmailSegmentDto = {
906
962
  name: Scalars['String']['input'];
907
963
  };
908
964
  export type CreateFundingCampaignDto = {
965
+ autoSendThankYou?: InputMaybe<Scalars['Boolean']['input']>;
909
966
  budget?: InputMaybe<CreateBudgetDto>;
910
967
  budgetMode: Scalars['String']['input'];
911
968
  cityId?: InputMaybe<Scalars['String']['input']>;
@@ -916,11 +973,14 @@ export type CreateFundingCampaignDto = {
916
973
  fundsRequired: Scalars['Float']['input'];
917
974
  initialFundsObtained?: Scalars['Float']['input'];
918
975
  motivation: Scalars['String']['input'];
976
+ thankYouMediaUrl?: InputMaybe<Scalars['String']['input']>;
977
+ thankYouMessage?: InputMaybe<Scalars['String']['input']>;
919
978
  title: Scalars['String']['input'];
920
979
  video?: InputMaybe<CreateVideoDto>;
921
980
  website?: InputMaybe<Scalars['String']['input']>;
922
981
  };
923
982
  export type CreateFundingCampaignForDto = {
983
+ autoSendThankYou?: InputMaybe<Scalars['Boolean']['input']>;
924
984
  budget?: InputMaybe<CreateBudgetDto>;
925
985
  budgetMode: Scalars['String']['input'];
926
986
  cityId?: InputMaybe<Scalars['String']['input']>;
@@ -932,6 +992,8 @@ export type CreateFundingCampaignForDto = {
932
992
  initialFundsObtained?: Scalars['Float']['input'];
933
993
  loginEmail: Scalars['String']['input'];
934
994
  motivation: Scalars['String']['input'];
995
+ thankYouMediaUrl?: InputMaybe<Scalars['String']['input']>;
996
+ thankYouMessage?: InputMaybe<Scalars['String']['input']>;
935
997
  title: Scalars['String']['input'];
936
998
  video?: InputMaybe<CreateVideoDto>;
937
999
  website?: InputMaybe<Scalars['String']['input']>;
@@ -1028,6 +1090,15 @@ export type CreateStripeAccountDto = {
1028
1090
  acceptedTermsId: Scalars['String']['input'];
1029
1091
  countryId: Scalars['String']['input'];
1030
1092
  };
1093
+ export type CreateTeamInput = {
1094
+ clubId?: InputMaybe<Scalars['String']['input']>;
1095
+ description?: InputMaybe<Scalars['String']['input']>;
1096
+ joinPolicy?: InputMaybe<Scalars['String']['input']>;
1097
+ maxRosterSize?: InputMaybe<Scalars['Int']['input']>;
1098
+ name: Scalars['String']['input'];
1099
+ sportIds: Array<Scalars['String']['input']>;
1100
+ visibility?: InputMaybe<Scalars['String']['input']>;
1101
+ };
1031
1102
  export type CreateTenantInput = {
1032
1103
  domain: Scalars['String']['input'];
1033
1104
  email: Scalars['String']['input'];
@@ -1232,6 +1303,16 @@ export type DonationQueryDto = {
1232
1303
  sortField?: InputMaybe<Scalars['String']['input']>;
1233
1304
  sortOrder?: InputMaybe<Scalars['String']['input']>;
1234
1305
  };
1306
+ export type DonationThankYou = {
1307
+ _id: Scalars['String']['output'];
1308
+ autoSent: Scalars['Boolean']['output'];
1309
+ donorEmail?: Maybe<Scalars['String']['output']>;
1310
+ donorName?: Maybe<Scalars['String']['output']>;
1311
+ emailSent: Scalars['Boolean']['output'];
1312
+ mediaUrl?: Maybe<Scalars['String']['output']>;
1313
+ message: Scalars['String']['output'];
1314
+ sentDate: Scalars['DateTime']['output'];
1315
+ };
1235
1316
  export type Duration = {
1236
1317
  length: Scalars['Float']['output'];
1237
1318
  unit: Scalars['String']['output'];
@@ -1432,6 +1513,7 @@ export type FundCampaignFilterDto = {
1432
1513
  export type FundRaisingCampaign = {
1433
1514
  _id: Scalars['String']['output'];
1434
1515
  athlete: AthleteReference;
1516
+ autoSendThankYou: Scalars['Boolean']['output'];
1435
1517
  budget?: Maybe<Budget>;
1436
1518
  budgetMode: Scalars['String']['output'];
1437
1519
  competitions?: Maybe<Array<AthleteCompetition>>;
@@ -1445,6 +1527,8 @@ export type FundRaisingCampaign = {
1445
1527
  motivation?: Maybe<Scalars['String']['output']>;
1446
1528
  slug?: Maybe<Scalars['String']['output']>;
1447
1529
  status: Scalars['String']['output'];
1530
+ thankYouMediaUrl?: Maybe<Scalars['String']['output']>;
1531
+ thankYouMessage?: Maybe<Scalars['String']['output']>;
1448
1532
  title: Scalars['String']['output'];
1449
1533
  video?: Maybe<Video>;
1450
1534
  vtxComissionPct: Scalars['Float']['output'];
@@ -1610,6 +1694,15 @@ export type IsFollowingAthleteInput = {
1610
1694
  export type IsFollowingResponse = {
1611
1695
  isFollowing: Scalars['Boolean']['output'];
1612
1696
  };
1697
+ export type JoinClubInput = {
1698
+ clubId: Scalars['String']['input'];
1699
+ message?: InputMaybe<Scalars['String']['input']>;
1700
+ };
1701
+ export type JoinTeamInput = {
1702
+ message?: InputMaybe<Scalars['String']['input']>;
1703
+ sportId: Scalars['String']['input'];
1704
+ teamId: Scalars['String']['input'];
1705
+ };
1613
1706
  export type LeaderboardEntry = {
1614
1707
  athleteId: Scalars['String']['output'];
1615
1708
  cityName?: Maybe<Scalars['String']['output']>;
@@ -1679,6 +1772,18 @@ export type MagicLink = {
1679
1772
  type: Scalars['String']['output'];
1680
1773
  url: Scalars['String']['output'];
1681
1774
  };
1775
+ export type ManageClubMemberInput = {
1776
+ action: Scalars['String']['input'];
1777
+ athleteId: Scalars['String']['input'];
1778
+ clubId: Scalars['String']['input'];
1779
+ role?: InputMaybe<Scalars['String']['input']>;
1780
+ };
1781
+ export type ManageTeamMemberInput = {
1782
+ action: Scalars['String']['input'];
1783
+ athleteId: Scalars['String']['input'];
1784
+ role?: InputMaybe<Scalars['String']['input']>;
1785
+ teamId: Scalars['String']['input'];
1786
+ };
1682
1787
  export type MarkNotificationReadDto = {
1683
1788
  notificationId: Scalars['String']['input'];
1684
1789
  };
@@ -1742,6 +1847,8 @@ export type Mutation = {
1742
1847
  activateOffer: Offer;
1743
1848
  addAthleteCompetition: AthleteCompetition;
1744
1849
  addCompetitionBudget: Scalars['Boolean']['output'];
1850
+ approveClub: Club;
1851
+ approveTeam: Team;
1745
1852
  cancelScheduledEmail: EmailCampaign;
1746
1853
  claimOffer: OfferClaim;
1747
1854
  cloneEmailCampaign: EmailCampaign;
@@ -1752,11 +1859,15 @@ export type Mutation = {
1752
1859
  createAthleteStripeSession: StripeSession;
1753
1860
  createBrand: Brand;
1754
1861
  createCity: City;
1862
+ createClub: Club;
1863
+ createClubDonationCheckout: Scalars['String']['output'];
1864
+ createClubStripeAccount: Scalars['String']['output'];
1755
1865
  createCountry: Country;
1756
1866
  createEmailCampaign: EmailCampaign;
1757
1867
  createEmailSegment: EmailSegment;
1758
1868
  createFundingCampaign: FundRaisingCampaign;
1759
1869
  createIndustry: Industry;
1870
+ createMembershipFeeCheckout?: Maybe<Scalars['String']['output']>;
1760
1871
  createMembershipOrganization: MembershipOrganizationReference;
1761
1872
  createOffer: Offer;
1762
1873
  createResetPasswordCode: EditValueResponse;
@@ -1770,6 +1881,9 @@ export type Mutation = {
1770
1881
  createStripeAccountLink: Scalars['String']['output'];
1771
1882
  createStripeCheckoutSession: StripeCheckoutSession;
1772
1883
  createStripeLoginLink: Scalars['String']['output'];
1884
+ createTeam: Team;
1885
+ createTeamDonationCheckout: Scalars['String']['output'];
1886
+ createTeamStripeAccount: Scalars['String']['output'];
1773
1887
  createUserAndLogin: UserWithToken;
1774
1888
  deactivateOffer: Offer;
1775
1889
  deleteAthleteAlbum: DeleteSingleValueResponse;
@@ -1801,10 +1915,18 @@ export type Mutation = {
1801
1915
  followAthlete: Scalars['Boolean']['output'];
1802
1916
  forceDeleteAthleteCompetition: DeleteSingleValueResponse;
1803
1917
  forceRefreshAthleteScores: ForceScoreRefreshResponse;
1918
+ inviteToClub: AthleteClub;
1919
+ inviteToTeam: AthleteTeam;
1920
+ joinClub: AthleteClub;
1921
+ joinTeam: AthleteTeam;
1922
+ leaveClub: AthleteClub;
1923
+ leaveTeam: AthleteTeam;
1804
1924
  linkBrandToSponsor: Brand;
1805
1925
  loginUserFromCredentials: UserWithToken;
1806
1926
  loginUserFromCredentialsVtx: UserWithToken;
1807
1927
  loginUserFromEmail: UserToken;
1928
+ manageClubMember: AthleteClub;
1929
+ manageTeamMember: AthleteTeam;
1808
1930
  markAiCoachNudgeRead: Scalars['Boolean']['output'];
1809
1931
  markAllNotificationsAsRead: Scalars['Int']['output'];
1810
1932
  markNotificationAsRead: Notification;
@@ -1832,6 +1954,7 @@ export type Mutation = {
1832
1954
  sendAthleteInvitations: Array<SponsorAthleteInvitation>;
1833
1955
  sendBulkEmail: Scalars['Boolean']['output'];
1834
1956
  sendTestEmail: Scalars['Boolean']['output'];
1957
+ sendThankYou: DonationThankYou;
1835
1958
  setCurrentCampaign: FundRaisingCampaign;
1836
1959
  setFundingStatus: FundRaisingCampaign;
1837
1960
  setOfferStatus: Offer;
@@ -1844,6 +1967,7 @@ export type Mutation = {
1844
1967
  updateAthleteIntegration: Scalars['Boolean']['output'];
1845
1968
  updateAthleteScores: Athlete;
1846
1969
  updateBrand: Brand;
1970
+ updateClub: Club;
1847
1971
  updateEmailCampaign: EmailCampaign;
1848
1972
  updateEmailSegment: EmailSegment;
1849
1973
  updateFundingCampaign: FundRaisingCampaign;
@@ -1853,6 +1977,8 @@ export type Mutation = {
1853
1977
  updateSponsor: Sponsor;
1854
1978
  updateSport: Sport;
1855
1979
  updateSportsEvent: SportsEvent;
1980
+ updateTeam: Team;
1981
+ updateThankYouTemplate: FundRaisingCampaign;
1856
1982
  updateUserSuspendedStatus: EditValueResponse;
1857
1983
  uploadCouponCodes: UploadResult;
1858
1984
  validateToken: ValidatedToken;
@@ -1869,6 +1995,14 @@ export type MutationAddAthleteCompetitionArgs = {
1869
1995
  export type MutationAddCompetitionBudgetArgs = {
1870
1996
  input: AddCompetitionBudgetDto;
1871
1997
  };
1998
+ export type MutationApproveClubArgs = {
1999
+ approved: Scalars['Boolean']['input'];
2000
+ clubId: Scalars['String']['input'];
2001
+ };
2002
+ export type MutationApproveTeamArgs = {
2003
+ approved: Scalars['Boolean']['input'];
2004
+ teamId: Scalars['String']['input'];
2005
+ };
1872
2006
  export type MutationCancelScheduledEmailArgs = {
1873
2007
  campaignId: Scalars['String']['input'];
1874
2008
  };
@@ -1897,6 +2031,19 @@ export type MutationCreateBrandArgs = {
1897
2031
  export type MutationCreateCityArgs = {
1898
2032
  input: CreateCityDto;
1899
2033
  };
2034
+ export type MutationCreateClubArgs = {
2035
+ input: CreateClubInput;
2036
+ };
2037
+ export type MutationCreateClubDonationCheckoutArgs = {
2038
+ amount: Scalars['Float']['input'];
2039
+ clubId: Scalars['String']['input'];
2040
+ currency?: Scalars['String']['input'];
2041
+ donorEmail?: InputMaybe<Scalars['String']['input']>;
2042
+ donorName?: InputMaybe<Scalars['String']['input']>;
2043
+ };
2044
+ export type MutationCreateClubStripeAccountArgs = {
2045
+ clubId: Scalars['String']['input'];
2046
+ };
1900
2047
  export type MutationCreateCountryArgs = {
1901
2048
  input: CreateCountryDto;
1902
2049
  };
@@ -1912,6 +2059,9 @@ export type MutationCreateFundingCampaignArgs = {
1912
2059
  export type MutationCreateIndustryArgs = {
1913
2060
  input: CreateIndustryDto;
1914
2061
  };
2062
+ export type MutationCreateMembershipFeeCheckoutArgs = {
2063
+ clubId: Scalars['String']['input'];
2064
+ };
1915
2065
  export type MutationCreateMembershipOrganizationArgs = {
1916
2066
  input: CreateMembershipOrganizationDto;
1917
2067
  };
@@ -1945,6 +2095,19 @@ export type MutationCreateStripeAccountArgs = {
1945
2095
  export type MutationCreateStripeCheckoutSessionArgs = {
1946
2096
  input: DonationCheckoutDto;
1947
2097
  };
2098
+ export type MutationCreateTeamArgs = {
2099
+ input: CreateTeamInput;
2100
+ };
2101
+ export type MutationCreateTeamDonationCheckoutArgs = {
2102
+ amount: Scalars['Float']['input'];
2103
+ currency?: Scalars['String']['input'];
2104
+ donorEmail?: InputMaybe<Scalars['String']['input']>;
2105
+ donorName?: InputMaybe<Scalars['String']['input']>;
2106
+ teamId: Scalars['String']['input'];
2107
+ };
2108
+ export type MutationCreateTeamStripeAccountArgs = {
2109
+ teamId: Scalars['String']['input'];
2110
+ };
1948
2111
  export type MutationCreateUserAndLoginArgs = {
1949
2112
  user: CreateActiveUserInput;
1950
2113
  };
@@ -2032,6 +2195,27 @@ export type MutationForceDeleteAthleteCompetitionArgs = {
2032
2195
  export type MutationForceRefreshAthleteScoresArgs = {
2033
2196
  input: ForceScoreRefreshDto;
2034
2197
  };
2198
+ export type MutationInviteToClubArgs = {
2199
+ athleteId: Scalars['String']['input'];
2200
+ clubId: Scalars['String']['input'];
2201
+ };
2202
+ export type MutationInviteToTeamArgs = {
2203
+ athleteId: Scalars['String']['input'];
2204
+ sportId: Scalars['String']['input'];
2205
+ teamId: Scalars['String']['input'];
2206
+ };
2207
+ export type MutationJoinClubArgs = {
2208
+ input: JoinClubInput;
2209
+ };
2210
+ export type MutationJoinTeamArgs = {
2211
+ input: JoinTeamInput;
2212
+ };
2213
+ export type MutationLeaveClubArgs = {
2214
+ clubId: Scalars['String']['input'];
2215
+ };
2216
+ export type MutationLeaveTeamArgs = {
2217
+ teamId: Scalars['String']['input'];
2218
+ };
2035
2219
  export type MutationLinkBrandToSponsorArgs = {
2036
2220
  brandId: Scalars['String']['input'];
2037
2221
  sponsorId: Scalars['String']['input'];
@@ -2048,6 +2232,12 @@ export type MutationLoginUserFromEmailArgs = {
2048
2232
  email: Scalars['String']['input'];
2049
2233
  loginMethod: Scalars['String']['input'];
2050
2234
  };
2235
+ export type MutationManageClubMemberArgs = {
2236
+ input: ManageClubMemberInput;
2237
+ };
2238
+ export type MutationManageTeamMemberArgs = {
2239
+ input: ManageTeamMemberInput;
2240
+ };
2051
2241
  export type MutationMarkAiCoachNudgeReadArgs = {
2052
2242
  nudgeId: Scalars['String']['input'];
2053
2243
  };
@@ -2126,6 +2316,9 @@ export type MutationSendTestEmailArgs = {
2126
2316
  adminEmail: Scalars['String']['input'];
2127
2317
  campaignId: Scalars['String']['input'];
2128
2318
  };
2319
+ export type MutationSendThankYouArgs = {
2320
+ input: SendThankYouDto;
2321
+ };
2129
2322
  export type MutationSetCurrentCampaignArgs = {
2130
2323
  input: SetCurrentCampaignDto;
2131
2324
  };
@@ -2156,6 +2349,9 @@ export type MutationUpdateBrandArgs = {
2156
2349
  id: Scalars['String']['input'];
2157
2350
  input: CreateBrandDto;
2158
2351
  };
2352
+ export type MutationUpdateClubArgs = {
2353
+ input: UpdateClubInput;
2354
+ };
2159
2355
  export type MutationUpdateEmailCampaignArgs = {
2160
2356
  id: Scalars['String']['input'];
2161
2357
  input: UpdateEmailCampaignDto;
@@ -2187,6 +2383,12 @@ export type MutationUpdateSportArgs = {
2187
2383
  export type MutationUpdateSportsEventArgs = {
2188
2384
  input: UpdateSportEventDto;
2189
2385
  };
2386
+ export type MutationUpdateTeamArgs = {
2387
+ input: UpdateTeamInput;
2388
+ };
2389
+ export type MutationUpdateThankYouTemplateArgs = {
2390
+ input: UpdateThankYouTemplateDto;
2391
+ };
2190
2392
  export type MutationUpdateUserSuspendedStatusArgs = {
2191
2393
  input: UpdateUserSuspendedStatusDto;
2192
2394
  };
@@ -2522,17 +2724,25 @@ export type Query = {
2522
2724
  athleteScoreHistory: Array<ScoreHistoryEntry>;
2523
2725
  brands: Array<Brand>;
2524
2726
  browseCampaigns: BrowseCampaignsResult;
2727
+ campaignThankYous: Array<DonationThankYou>;
2525
2728
  checkScoreRefreshCapabilities: CheckScoreRefreshCapabilityResponse;
2729
+ donationThankYou?: Maybe<DonationThankYou>;
2526
2730
  existsValidSponsorForEmail: Sponsor;
2731
+ findAllClubs: Array<Club>;
2732
+ findAllTeams: Array<Team>;
2527
2733
  findAthleteById: Athlete;
2528
2734
  findAthleteForUser: Athlete;
2529
2735
  findAthletebyIdpublic: Athlete;
2530
2736
  findCitiesStartingWith: Array<City>;
2531
2737
  findCityById: City;
2738
+ findClubById: Club;
2739
+ findClubs: Array<Club>;
2532
2740
  findIndustryById: Industry;
2533
2741
  findMemberForUser: Member;
2534
2742
  findSponsorAthleteInvitation: SponsorAthleteInvitation;
2535
2743
  findSportById: Sport;
2744
+ findTeamById: Team;
2745
+ findTeams: Array<Team>;
2536
2746
  findTenantByEmail: Tenant;
2537
2747
  findTenantById: Tenant;
2538
2748
  findUserByEmail: User;
@@ -2565,6 +2775,8 @@ export type Query = {
2565
2775
  getBudgetConcepts: Array<BudgetConcept>;
2566
2776
  getBudgetItemUnits: Array<BudgetItemUnit>;
2567
2777
  getBudgetsByAthlete: BudgetData;
2778
+ getClubMembers: Array<AthleteClub>;
2779
+ getClubStripeAccountStatus?: Maybe<StripeAccountStatus>;
2568
2780
  getCountries: Array<Country>;
2569
2781
  getCountryStates: Array<State>;
2570
2782
  getDatabaseTextFile: TextDatabaseFile;
@@ -2580,8 +2792,10 @@ export type Query = {
2580
2792
  getEmailSegments: Array<EmailSegment>;
2581
2793
  getLeaderboard: LeaderboardResponse;
2582
2794
  getMembershipOrganizations: Array<MembershipOrganizationReference>;
2795
+ getMyClubs: Array<Club>;
2583
2796
  getMyHistoricalScores: Array<HistoricalScore>;
2584
2797
  getMyHistoricalScoresPeriod: HistoricalScoresPeriod;
2798
+ getMyTeams: Array<Team>;
2585
2799
  getOffersPaginated: PaginatedOffers;
2586
2800
  getOnboardingProgress: OnboardingProgressResponse;
2587
2801
  getPublicAthleteAlbums: Array<Album>;
@@ -2605,6 +2819,11 @@ export type Query = {
2605
2819
  getStates: Array<State>;
2606
2820
  getStravaLoginUrl: Scalars['String']['output'];
2607
2821
  getStripeBalance: StripeBalance;
2822
+ getTeamAnalytics: TeamAnalytics;
2823
+ getTeamDashboard: TeamDashboard;
2824
+ getTeamLeaderboard: Array<TeamLeaderboardEntry>;
2825
+ getTeamRoster: Array<AthleteTeam>;
2826
+ getTeamStripeAccountStatus?: Maybe<StripeAccountStatus>;
2608
2827
  getTenantSponsorships: Array<Sponsorship>;
2609
2828
  getTenants: Array<Tenant>;
2610
2829
  getTransactionDetails: TransactionDetails;
@@ -2667,9 +2886,15 @@ export type QueryAthleteScoreHistoryArgs = {
2667
2886
  export type QueryBrowseCampaignsArgs = {
2668
2887
  input: BrowseCampaignsDto;
2669
2888
  };
2889
+ export type QueryCampaignThankYousArgs = {
2890
+ campaignId: Scalars['String']['input'];
2891
+ };
2670
2892
  export type QueryCheckScoreRefreshCapabilitiesArgs = {
2671
2893
  input: CheckScoreRefreshCapabilityDto;
2672
2894
  };
2895
+ export type QueryDonationThankYouArgs = {
2896
+ donationId: Scalars['String']['input'];
2897
+ };
2673
2898
  export type QueryExistsValidSponsorForEmailArgs = {
2674
2899
  loginEmail: Scalars['String']['input'];
2675
2900
  };
@@ -2688,6 +2913,12 @@ export type QueryFindCitiesStartingWithArgs = {
2688
2913
  export type QueryFindCityByIdArgs = {
2689
2914
  cityId: Scalars['String']['input'];
2690
2915
  };
2916
+ export type QueryFindClubByIdArgs = {
2917
+ clubId: Scalars['String']['input'];
2918
+ };
2919
+ export type QueryFindClubsArgs = {
2920
+ sportId?: InputMaybe<Scalars['String']['input']>;
2921
+ };
2691
2922
  export type QueryFindIndustryByIdArgs = {
2692
2923
  industryId: Scalars['String']['input'];
2693
2924
  };
@@ -2700,6 +2931,13 @@ export type QueryFindSponsorAthleteInvitationArgs = {
2700
2931
  export type QueryFindSportByIdArgs = {
2701
2932
  sportId: Scalars['String']['input'];
2702
2933
  };
2934
+ export type QueryFindTeamByIdArgs = {
2935
+ teamId: Scalars['String']['input'];
2936
+ };
2937
+ export type QueryFindTeamsArgs = {
2938
+ clubId?: InputMaybe<Scalars['String']['input']>;
2939
+ sportId?: InputMaybe<Scalars['String']['input']>;
2940
+ };
2703
2941
  export type QueryFindTenantByEmailArgs = {
2704
2942
  domainId: Scalars['String']['input'];
2705
2943
  email: Scalars['String']['input'];
@@ -2760,6 +2998,12 @@ export type QueryGetBrandTranslationArgs = {
2760
2998
  export type QueryGetBrandsPaginatedArgs = {
2761
2999
  query?: InputMaybe<BrandQueryDto>;
2762
3000
  };
3001
+ export type QueryGetClubMembersArgs = {
3002
+ clubId: Scalars['String']['input'];
3003
+ };
3004
+ export type QueryGetClubStripeAccountStatusArgs = {
3005
+ clubId: Scalars['String']['input'];
3006
+ };
2763
3007
  export type QueryGetCountryStatesArgs = {
2764
3008
  countryId: Scalars['String']['input'];
2765
3009
  };
@@ -2838,6 +3082,21 @@ export type QueryGetSportsPaginatedArgs = {
2838
3082
  export type QueryGetStateCitiesArgs = {
2839
3083
  stateId: Scalars['String']['input'];
2840
3084
  };
3085
+ export type QueryGetTeamAnalyticsArgs = {
3086
+ teamId: Scalars['String']['input'];
3087
+ };
3088
+ export type QueryGetTeamDashboardArgs = {
3089
+ teamId: Scalars['String']['input'];
3090
+ };
3091
+ export type QueryGetTeamLeaderboardArgs = {
3092
+ teamId: Scalars['String']['input'];
3093
+ };
3094
+ export type QueryGetTeamRosterArgs = {
3095
+ teamId: Scalars['String']['input'];
3096
+ };
3097
+ export type QueryGetTeamStripeAccountStatusArgs = {
3098
+ teamId: Scalars['String']['input'];
3099
+ };
2841
3100
  export type QueryGetTransactionDetailsArgs = {
2842
3101
  input: GetTransactionDetailsDto;
2843
3102
  };
@@ -3094,6 +3353,11 @@ export type SendGridTemplate = {
3094
3353
  subject?: Maybe<Scalars['String']['output']>;
3095
3354
  updatedAt?: Maybe<Scalars['String']['output']>;
3096
3355
  };
3356
+ export type SendThankYouDto = {
3357
+ campaignId: Scalars['String']['input'];
3358
+ customMessage?: InputMaybe<Scalars['String']['input']>;
3359
+ donationId: Scalars['String']['input'];
3360
+ };
3097
3361
  export type SetCompetitionResultDto = {
3098
3362
  adversary?: InputMaybe<Scalars['String']['input']>;
3099
3363
  categoryName?: InputMaybe<Scalars['String']['input']>;
@@ -3369,7 +3633,6 @@ export type StravaAthleteData = {
3369
3633
  state?: Maybe<Scalars['String']['output']>;
3370
3634
  updated_at?: Maybe<Scalars['String']['output']>;
3371
3635
  username?: Maybe<Scalars['String']['output']>;
3372
- weight?: Maybe<Scalars['Float']['output']>;
3373
3636
  };
3374
3637
  export type StravaTpiRideDto = {
3375
3638
  averageCadenceStm: Scalars['Float']['output'];
@@ -3458,6 +3721,11 @@ export type StripeAccountReference = {
3458
3721
  account?: Maybe<StripeAccount>;
3459
3722
  stripeAccountId: Scalars['String']['output'];
3460
3723
  };
3724
+ export type StripeAccountStatus = {
3725
+ chargesEnabled: Scalars['Boolean']['output'];
3726
+ detailsSubmitted: Scalars['Boolean']['output'];
3727
+ payoutsEnabled: Scalars['Boolean']['output'];
3728
+ };
3461
3729
  export type StripeBalance = {
3462
3730
  availableBalances: Array<CurrencyAmountType>;
3463
3731
  availableUSD: Scalars['Float']['output'];
@@ -3607,11 +3875,58 @@ export type SubscriptionPayment = {
3607
3875
  export type Team = {
3608
3876
  _id: Scalars['String']['output'];
3609
3877
  approved?: Maybe<Scalars['Boolean']['output']>;
3878
+ athletes?: Maybe<Array<AthleteTeam>>;
3610
3879
  banner?: Maybe<Awss3File>;
3880
+ club?: Maybe<TeamClubReference>;
3611
3881
  description?: Maybe<Scalars['String']['output']>;
3882
+ joinPolicy?: Maybe<Scalars['String']['output']>;
3612
3883
  logo?: Maybe<Awss3File>;
3884
+ maxRosterSize?: Maybe<Scalars['Int']['output']>;
3613
3885
  name: Scalars['String']['output'];
3614
3886
  sports?: Maybe<Array<Sport>>;
3887
+ stripeAccountId?: Maybe<Scalars['String']['output']>;
3888
+ visibility?: Maybe<Scalars['String']['output']>;
3889
+ vtxScore?: Maybe<Scalars['Float']['output']>;
3890
+ };
3891
+ export type TeamAnalytics = {
3892
+ athleteCount: Scalars['Int']['output'];
3893
+ rosterSize?: Maybe<Scalars['Int']['output']>;
3894
+ teamId: Scalars['String']['output'];
3895
+ teamName: Scalars['String']['output'];
3896
+ topPerformers?: Maybe<Array<TeamLeaderboardEntry>>;
3897
+ vtxScore?: Maybe<Scalars['Float']['output']>;
3898
+ vtxScoreHistory?: Maybe<Array<TeamVtxScoreHistoryEntry>>;
3899
+ };
3900
+ export type TeamClubReference = {
3901
+ _id: Scalars['String']['output'];
3902
+ logo?: Maybe<Awss3File>;
3903
+ name: Scalars['String']['output'];
3904
+ };
3905
+ export type TeamDashboard = {
3906
+ analytics: TeamAnalytics;
3907
+ leaderboard: Array<TeamLeaderboardEntry>;
3908
+ roster: TeamRosterOverview;
3909
+ };
3910
+ export type TeamLeaderboardEntry = {
3911
+ apiScore?: Maybe<Scalars['Float']['output']>;
3912
+ athleteId: Scalars['String']['output'];
3913
+ athleteName: Scalars['String']['output'];
3914
+ athletePhoto?: Maybe<Scalars['String']['output']>;
3915
+ rank: Scalars['Int']['output'];
3916
+ spiScore?: Maybe<Scalars['Float']['output']>;
3917
+ sport?: Maybe<Scalars['String']['output']>;
3918
+ tpiScore?: Maybe<Scalars['Float']['output']>;
3919
+ vtxScore: Scalars['Float']['output'];
3920
+ };
3921
+ export type TeamRosterOverview = {
3922
+ recentDepartures: Scalars['Int']['output'];
3923
+ recentJoins: Scalars['Int']['output'];
3924
+ totalActive: Scalars['Int']['output'];
3925
+ totalInactive: Scalars['Int']['output'];
3926
+ };
3927
+ export type TeamVtxScoreHistoryEntry = {
3928
+ date: Scalars['DateTime']['output'];
3929
+ score: Scalars['Float']['output'];
3615
3930
  };
3616
3931
  export type Tenant = {
3617
3932
  _id: Scalars['String']['output'];
@@ -3690,6 +4005,16 @@ export type UpdateAiCoachConfigDto = {
3690
4005
  nudgesEnabled?: InputMaybe<Scalars['Boolean']['input']>;
3691
4006
  preferredFocus?: InputMaybe<Scalars['String']['input']>;
3692
4007
  };
4008
+ export type UpdateClubInput = {
4009
+ clubId: Scalars['String']['input'];
4010
+ description?: InputMaybe<Scalars['String']['input']>;
4011
+ feeStructure?: InputMaybe<Scalars['JSON']['input']>;
4012
+ location?: InputMaybe<Scalars['String']['input']>;
4013
+ membershipType?: InputMaybe<Scalars['String']['input']>;
4014
+ name?: InputMaybe<Scalars['String']['input']>;
4015
+ visibility?: InputMaybe<Scalars['String']['input']>;
4016
+ website?: InputMaybe<Scalars['String']['input']>;
4017
+ };
3693
4018
  export type UpdateDatabaseFileDto = {
3694
4019
  _id: Scalars['String']['input'];
3695
4020
  contentType?: InputMaybe<Scalars['String']['input']>;
@@ -3701,7 +4026,6 @@ export type UpdateEmailCampaignDto = {
3701
4026
  htmlContent?: InputMaybe<Scalars['String']['input']>;
3702
4027
  scheduledFor?: InputMaybe<Scalars['DateTime']['input']>;
3703
4028
  segmentId?: InputMaybe<Scalars['String']['input']>;
3704
- status?: InputMaybe<Scalars['String']['input']>;
3705
4029
  subject?: InputMaybe<Scalars['String']['input']>;
3706
4030
  templateId?: InputMaybe<Scalars['String']['input']>;
3707
4031
  templateName?: InputMaybe<Scalars['String']['input']>;
@@ -3712,6 +4036,7 @@ export type UpdateEmailSegmentDto = {
3712
4036
  };
3713
4037
  export type UpdateFundingCampaignDto = {
3714
4038
  _id: Scalars['String']['input'];
4039
+ autoSendThankYou?: InputMaybe<Scalars['Boolean']['input']>;
3715
4040
  budget?: InputMaybe<CreateBudgetDto>;
3716
4041
  budgetMode: Scalars['String']['input'];
3717
4042
  cityId?: InputMaybe<Scalars['String']['input']>;
@@ -3722,6 +4047,8 @@ export type UpdateFundingCampaignDto = {
3722
4047
  fundsRequired: Scalars['Float']['input'];
3723
4048
  initialFundsObtained?: Scalars['Float']['input'];
3724
4049
  motivation: Scalars['String']['input'];
4050
+ thankYouMediaUrl?: InputMaybe<Scalars['String']['input']>;
4051
+ thankYouMessage?: InputMaybe<Scalars['String']['input']>;
3725
4052
  title: Scalars['String']['input'];
3726
4053
  video?: InputMaybe<CreateVideoDto>;
3727
4054
  website?: InputMaybe<Scalars['String']['input']>;
@@ -3756,6 +4083,14 @@ export type UpdateSportEventDto = {
3756
4083
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
3757
4084
  website?: InputMaybe<Scalars['String']['input']>;
3758
4085
  };
4086
+ export type UpdateTeamInput = {
4087
+ description?: InputMaybe<Scalars['String']['input']>;
4088
+ joinPolicy?: InputMaybe<Scalars['String']['input']>;
4089
+ maxRosterSize?: InputMaybe<Scalars['Int']['input']>;
4090
+ name?: InputMaybe<Scalars['String']['input']>;
4091
+ teamId: Scalars['String']['input'];
4092
+ visibility?: InputMaybe<Scalars['String']['input']>;
4093
+ };
3759
4094
  export type UpdateTextDatabaseFileDto = {
3760
4095
  _id: Scalars['String']['input'];
3761
4096
  content?: InputMaybe<Scalars['String']['input']>;
@@ -3763,6 +4098,12 @@ export type UpdateTextDatabaseFileDto = {
3763
4098
  identifier?: InputMaybe<Scalars['String']['input']>;
3764
4099
  version?: InputMaybe<Scalars['String']['input']>;
3765
4100
  };
4101
+ export type UpdateThankYouTemplateDto = {
4102
+ autoSendThankYou?: InputMaybe<Scalars['Boolean']['input']>;
4103
+ campaignId: Scalars['String']['input'];
4104
+ thankYouMediaUrl?: InputMaybe<Scalars['String']['input']>;
4105
+ thankYouMessage?: InputMaybe<Scalars['String']['input']>;
4106
+ };
3766
4107
  export type UpdateUserSuspendedStatusDto = {
3767
4108
  suspended: Scalars['Boolean']['input'];
3768
4109
  userId: Scalars['String']['input'];
@@ -8658,6 +8999,9 @@ export type CampaignFieldsFragment = {
8658
8999
  vtxComissionPct: number;
8659
9000
  createdDate: string;
8660
9001
  endingDate: string;
9002
+ thankYouMessage?: string | null;
9003
+ thankYouMediaUrl?: string | null;
9004
+ autoSendThankYou: boolean;
8661
9005
  video?: {
8662
9006
  _id: string;
8663
9007
  source: string;
@@ -8772,6 +9116,16 @@ export type CampaignFieldsFragment = {
8772
9116
  useType?: string | null;
8773
9117
  } | null;
8774
9118
  };
9119
+ export type DonationThankYouFieldsFragment = {
9120
+ _id: string;
9121
+ message: string;
9122
+ mediaUrl?: string | null;
9123
+ autoSent: boolean;
9124
+ emailSent: boolean;
9125
+ donorEmail?: string | null;
9126
+ donorName?: string | null;
9127
+ sentDate: string;
9128
+ };
8775
9129
  export type BrowseCampaignFieldsFragment = {
8776
9130
  _id: string;
8777
9131
  title: string;
@@ -8946,6 +9300,9 @@ export type GetAthleteCampaignsQuery = {
8946
9300
  vtxComissionPct: number;
8947
9301
  createdDate: string;
8948
9302
  endingDate: string;
9303
+ thankYouMessage?: string | null;
9304
+ thankYouMediaUrl?: string | null;
9305
+ autoSendThankYou: boolean;
8949
9306
  athlete: {
8950
9307
  _id: string;
8951
9308
  firstName: string;
@@ -9390,6 +9747,9 @@ export type CreateFundingCampaignMutation = {
9390
9747
  vtxComissionPct: number;
9391
9748
  createdDate: string;
9392
9749
  endingDate: string;
9750
+ thankYouMessage?: string | null;
9751
+ thankYouMediaUrl?: string | null;
9752
+ autoSendThankYou: boolean;
9393
9753
  video?: {
9394
9754
  _id: string;
9395
9755
  source: string;
@@ -9523,6 +9883,9 @@ export type UpdateFundingCampaignMutation = {
9523
9883
  vtxComissionPct: number;
9524
9884
  createdDate: string;
9525
9885
  endingDate: string;
9886
+ thankYouMessage?: string | null;
9887
+ thankYouMediaUrl?: string | null;
9888
+ autoSendThankYou: boolean;
9526
9889
  video?: {
9527
9890
  _id: string;
9528
9891
  source: string;
@@ -9683,6 +10046,9 @@ export type SetFundingStatusMutation = {
9683
10046
  vtxComissionPct: number;
9684
10047
  createdDate: string;
9685
10048
  endingDate: string;
10049
+ thankYouMessage?: string | null;
10050
+ thankYouMediaUrl?: string | null;
10051
+ autoSendThankYou: boolean;
9686
10052
  video?: {
9687
10053
  _id: string;
9688
10054
  source: string;
@@ -9816,6 +10182,9 @@ export type SetCurrentCampaignMutation = {
9816
10182
  vtxComissionPct: number;
9817
10183
  createdDate: string;
9818
10184
  endingDate: string;
10185
+ thankYouMessage?: string | null;
10186
+ thankYouMediaUrl?: string | null;
10187
+ autoSendThankYou: boolean;
9819
10188
  video?: {
9820
10189
  _id: string;
9821
10190
  source: string;
@@ -10484,129 +10853,310 @@ export type GetTransactionsPaginatedQuery = {
10484
10853
  };
10485
10854
  };
10486
10855
  };
10487
- export type GetEmailCampaignsQueryVariables = Exact<{
10488
- status?: InputMaybe<Scalars['String']['input']>;
10489
- search?: InputMaybe<Scalars['String']['input']>;
10490
- page?: InputMaybe<Scalars['Int']['input']>;
10491
- limit?: InputMaybe<Scalars['Int']['input']>;
10492
- }>;
10493
- export type GetEmailCampaignsQuery = {
10494
- getEmailCampaigns: {
10495
- total: number;
10496
- campaigns: Array<{
10497
- _id: string;
10498
- subject: string;
10499
- templateId?: string | null;
10500
- templateName?: string | null;
10501
- htmlContent?: string | null;
10502
- audienceFilters: any;
10503
- segmentId?: string | null;
10504
- status: string;
10505
- scheduledFor?: string | null;
10506
- sentAt?: string | null;
10507
- recipientCount?: number | null;
10508
- createdBy: string;
10509
- createdAt: string;
10510
- updatedAt?: string | null;
10511
- testSentAt?: string | null;
10512
- deliveryStats?: {
10513
- delivered: number;
10514
- opens: number;
10515
- uniqueOpens: number;
10516
- clicks: number;
10517
- uniqueClicks: number;
10518
- bounces: number;
10519
- spamReports: number;
10520
- lastUpdated: string;
10521
- } | null;
10522
- segment?: {
10523
- _id: string;
10524
- name: string;
10525
- filters: any;
10526
- createdBy: string;
10527
- createdAt: string;
10528
- } | null;
10529
- }>;
10530
- };
10531
- };
10532
- export type GetAudiencePreviewQueryVariables = Exact<{
10533
- filters: AudienceFilterDto;
10534
- }>;
10535
- export type GetAudiencePreviewQuery = {
10536
- getAudiencePreview: {
10537
- total: number;
10538
- users: Array<{
10539
- firstName?: string | null;
10540
- lastName?: string | null;
10541
- email: string;
10542
- userType: string;
10543
- }>;
10544
- };
10545
- };
10546
- export type GetSendGridTemplatesQueryVariables = Exact<{
10547
- [key: string]: never;
10548
- }>;
10549
- export type GetSendGridTemplatesQuery = {
10550
- getSendGridTemplates: Array<{
10551
- id: string;
10552
- name: string;
10553
- subject?: string | null;
10554
- updatedAt?: string | null;
10555
- }>;
10556
- };
10557
- export type GetSendGridTemplatePreviewQueryVariables = Exact<{
10558
- templateId: Scalars['String']['input'];
10559
- }>;
10560
- export type GetSendGridTemplatePreviewQuery = {
10561
- getSendGridTemplatePreview?: string | null;
10562
- };
10563
- export type GetEmailSegmentsQueryVariables = Exact<{
10564
- [key: string]: never;
10856
+ export type CampaignThankYousQueryVariables = Exact<{
10857
+ campaignId: Scalars['String']['input'];
10565
10858
  }>;
10566
- export type GetEmailSegmentsQuery = {
10567
- getEmailSegments: Array<{
10859
+ export type CampaignThankYousQuery = {
10860
+ campaignThankYous: Array<{
10568
10861
  _id: string;
10569
- name: string;
10570
- filters: any;
10571
- createdBy: string;
10572
- createdAt: string;
10862
+ message: string;
10863
+ mediaUrl?: string | null;
10864
+ autoSent: boolean;
10865
+ emailSent: boolean;
10866
+ donorEmail?: string | null;
10867
+ donorName?: string | null;
10868
+ sentDate: string;
10573
10869
  }>;
10574
10870
  };
10575
- export type CreateEmailCampaignMutationVariables = Exact<{
10576
- input: CreateEmailCampaignDto;
10871
+ export type DonationThankYouQueryVariables = Exact<{
10872
+ donationId: Scalars['String']['input'];
10577
10873
  }>;
10578
- export type CreateEmailCampaignMutation = {
10579
- createEmailCampaign: {
10874
+ export type DonationThankYouQuery = {
10875
+ donationThankYou?: {
10580
10876
  _id: string;
10581
- subject: string;
10582
- status: string;
10583
- createdAt: string;
10584
- updatedAt?: string | null;
10585
- };
10877
+ message: string;
10878
+ mediaUrl?: string | null;
10879
+ autoSent: boolean;
10880
+ emailSent: boolean;
10881
+ donorEmail?: string | null;
10882
+ donorName?: string | null;
10883
+ sentDate: string;
10884
+ } | null;
10586
10885
  };
10587
- export type UpdateEmailCampaignMutationVariables = Exact<{
10588
- id: Scalars['String']['input'];
10589
- input: UpdateEmailCampaignDto;
10886
+ export type UpdateThankYouTemplateMutationVariables = Exact<{
10887
+ input: UpdateThankYouTemplateDto;
10590
10888
  }>;
10591
- export type UpdateEmailCampaignMutation = {
10592
- updateEmailCampaign: {
10889
+ export type UpdateThankYouTemplateMutation = {
10890
+ updateThankYouTemplate: {
10593
10891
  _id: string;
10594
- subject: string;
10892
+ budgetMode: string;
10595
10893
  status: string;
10596
- updatedAt?: string | null;
10597
- };
10598
- };
10599
- export type DeleteEmailCampaignMutationVariables = Exact<{
10600
- id: Scalars['String']['input'];
10601
- }>;
10602
- export type DeleteEmailCampaignMutation = {
10603
- deleteEmailCampaign: boolean;
10604
- };
10605
- export type CloneEmailCampaignMutationVariables = Exact<{
10606
- id: Scalars['String']['input'];
10607
- }>;
10608
- export type CloneEmailCampaignMutation = {
10609
- cloneEmailCampaign: {
10894
+ title: string;
10895
+ slug?: string | null;
10896
+ motivation?: string | null;
10897
+ website?: string | null;
10898
+ fundsRequired: number;
10899
+ initialFundsObtained: number;
10900
+ fundsObtained: number;
10901
+ vtxComissionPct: number;
10902
+ createdDate: string;
10903
+ endingDate: string;
10904
+ thankYouMessage?: string | null;
10905
+ thankYouMediaUrl?: string | null;
10906
+ autoSendThankYou: boolean;
10907
+ video?: {
10908
+ _id: string;
10909
+ source: string;
10910
+ url: string;
10911
+ sourceData: string;
10912
+ } | null;
10913
+ location?: {
10914
+ userProvidedLatitude?: number | null;
10915
+ userProvidedLongitude?: number | null;
10916
+ cityNameGeocode?: string | null;
10917
+ stateNameGeocode?: string | null;
10918
+ countryIso2CodeGeocode?: string | null;
10919
+ timeZoneGeocode?: string | null;
10920
+ latitudeGeocode?: number | null;
10921
+ longitudeGeocode?: number | null;
10922
+ city?: {
10923
+ _id: string;
10924
+ name: string;
10925
+ localizedName: string;
10926
+ latitude?: number | null;
10927
+ longitude?: number | null;
10928
+ timezone?: string | null;
10929
+ state?: {
10930
+ _id: string;
10931
+ name: string;
10932
+ country?: {
10933
+ _id: string;
10934
+ name: string;
10935
+ } | null;
10936
+ } | null;
10937
+ } | null;
10938
+ } | null;
10939
+ budget?: {
10940
+ initialFunds: number;
10941
+ totalRequired: number;
10942
+ items?: Array<{
10943
+ _id: string;
10944
+ quantity: number;
10945
+ concept: string;
10946
+ itemCost: number;
10947
+ unit?: string | null;
10948
+ }> | null;
10949
+ } | null;
10950
+ competitions?: Array<{
10951
+ _id: string;
10952
+ participationDate?: string | null;
10953
+ competitionNumber?: string | null;
10954
+ fundRaisingCampaignIds?: Array<string> | null;
10955
+ event: {
10956
+ _id: string;
10957
+ name: string;
10958
+ eventWebSite?: string | null;
10959
+ startDate: string;
10960
+ endDate?: string | null;
10961
+ verified: boolean;
10962
+ mainSport?: {
10963
+ _id: string;
10964
+ name: string;
10965
+ } | null;
10966
+ banner?: {
10967
+ _id: string;
10968
+ name?: string | null;
10969
+ contentType?: string | null;
10970
+ size?: number | null;
10971
+ useType?: string | null;
10972
+ url: string;
10973
+ key: string;
10974
+ } | null;
10975
+ location?: {
10976
+ _id: string;
10977
+ userProvidedLatitude?: number | null;
10978
+ userProvidedLongitude?: number | null;
10979
+ cityNameGeocode?: string | null;
10980
+ stateNameGeocode?: string | null;
10981
+ countryIso2CodeGeocode?: string | null;
10982
+ timeZoneGeocode?: string | null;
10983
+ latitudeGeocode?: number | null;
10984
+ longitudeGeocode?: number | null;
10985
+ city?: {
10986
+ _id: string;
10987
+ name: string;
10988
+ localizedName: string;
10989
+ latitude?: number | null;
10990
+ longitude?: number | null;
10991
+ timezone?: string | null;
10992
+ state?: {
10993
+ _id: string;
10994
+ name: string;
10995
+ country?: {
10996
+ _id: string;
10997
+ name: string;
10998
+ } | null;
10999
+ } | null;
11000
+ } | null;
11001
+ } | null;
11002
+ };
11003
+ result?: {
11004
+ resultType: string;
11005
+ position?: number | null;
11006
+ score?: string | null;
11007
+ finishTimeMS?: number | null;
11008
+ resultWebLink?: string | null;
11009
+ } | null;
11010
+ }> | null;
11011
+ coverImage?: {
11012
+ _id: string;
11013
+ url: string;
11014
+ key: string;
11015
+ name?: string | null;
11016
+ contentType?: string | null;
11017
+ size?: number | null;
11018
+ useType?: string | null;
11019
+ } | null;
11020
+ };
11021
+ };
11022
+ export type SendThankYouMutationVariables = Exact<{
11023
+ input: SendThankYouDto;
11024
+ }>;
11025
+ export type SendThankYouMutation = {
11026
+ sendThankYou: {
11027
+ _id: string;
11028
+ message: string;
11029
+ mediaUrl?: string | null;
11030
+ autoSent: boolean;
11031
+ emailSent: boolean;
11032
+ donorEmail?: string | null;
11033
+ donorName?: string | null;
11034
+ sentDate: string;
11035
+ };
11036
+ };
11037
+ export type GetEmailCampaignsQueryVariables = Exact<{
11038
+ status?: InputMaybe<Scalars['String']['input']>;
11039
+ search?: InputMaybe<Scalars['String']['input']>;
11040
+ page?: InputMaybe<Scalars['Int']['input']>;
11041
+ limit?: InputMaybe<Scalars['Int']['input']>;
11042
+ }>;
11043
+ export type GetEmailCampaignsQuery = {
11044
+ getEmailCampaigns: {
11045
+ total: number;
11046
+ campaigns: Array<{
11047
+ _id: string;
11048
+ subject: string;
11049
+ templateId?: string | null;
11050
+ templateName?: string | null;
11051
+ htmlContent?: string | null;
11052
+ audienceFilters: any;
11053
+ segmentId?: string | null;
11054
+ status: string;
11055
+ scheduledFor?: string | null;
11056
+ sentAt?: string | null;
11057
+ recipientCount?: number | null;
11058
+ createdBy: string;
11059
+ createdAt: string;
11060
+ updatedAt?: string | null;
11061
+ testSentAt?: string | null;
11062
+ deliveryStats?: {
11063
+ delivered: number;
11064
+ opens: number;
11065
+ uniqueOpens: number;
11066
+ clicks: number;
11067
+ uniqueClicks: number;
11068
+ bounces: number;
11069
+ spamReports: number;
11070
+ lastUpdated: string;
11071
+ } | null;
11072
+ segment?: {
11073
+ _id: string;
11074
+ name: string;
11075
+ filters: any;
11076
+ createdBy: string;
11077
+ createdAt: string;
11078
+ } | null;
11079
+ }>;
11080
+ };
11081
+ };
11082
+ export type GetAudiencePreviewQueryVariables = Exact<{
11083
+ filters: AudienceFilterDto;
11084
+ }>;
11085
+ export type GetAudiencePreviewQuery = {
11086
+ getAudiencePreview: {
11087
+ total: number;
11088
+ users: Array<{
11089
+ firstName?: string | null;
11090
+ lastName?: string | null;
11091
+ email: string;
11092
+ userType: string;
11093
+ }>;
11094
+ };
11095
+ };
11096
+ export type GetSendGridTemplatesQueryVariables = Exact<{
11097
+ [key: string]: never;
11098
+ }>;
11099
+ export type GetSendGridTemplatesQuery = {
11100
+ getSendGridTemplates: Array<{
11101
+ id: string;
11102
+ name: string;
11103
+ subject?: string | null;
11104
+ updatedAt?: string | null;
11105
+ }>;
11106
+ };
11107
+ export type GetSendGridTemplatePreviewQueryVariables = Exact<{
11108
+ templateId: Scalars['String']['input'];
11109
+ }>;
11110
+ export type GetSendGridTemplatePreviewQuery = {
11111
+ getSendGridTemplatePreview?: string | null;
11112
+ };
11113
+ export type GetEmailSegmentsQueryVariables = Exact<{
11114
+ [key: string]: never;
11115
+ }>;
11116
+ export type GetEmailSegmentsQuery = {
11117
+ getEmailSegments: Array<{
11118
+ _id: string;
11119
+ name: string;
11120
+ filters: any;
11121
+ createdBy: string;
11122
+ createdAt: string;
11123
+ }>;
11124
+ };
11125
+ export type CreateEmailCampaignMutationVariables = Exact<{
11126
+ input: CreateEmailCampaignDto;
11127
+ }>;
11128
+ export type CreateEmailCampaignMutation = {
11129
+ createEmailCampaign: {
11130
+ _id: string;
11131
+ subject: string;
11132
+ status: string;
11133
+ createdAt: string;
11134
+ updatedAt?: string | null;
11135
+ };
11136
+ };
11137
+ export type UpdateEmailCampaignMutationVariables = Exact<{
11138
+ id: Scalars['String']['input'];
11139
+ input: UpdateEmailCampaignDto;
11140
+ }>;
11141
+ export type UpdateEmailCampaignMutation = {
11142
+ updateEmailCampaign: {
11143
+ _id: string;
11144
+ subject: string;
11145
+ status: string;
11146
+ updatedAt?: string | null;
11147
+ };
11148
+ };
11149
+ export type DeleteEmailCampaignMutationVariables = Exact<{
11150
+ id: Scalars['String']['input'];
11151
+ }>;
11152
+ export type DeleteEmailCampaignMutation = {
11153
+ deleteEmailCampaign: boolean;
11154
+ };
11155
+ export type CloneEmailCampaignMutationVariables = Exact<{
11156
+ id: Scalars['String']['input'];
11157
+ }>;
11158
+ export type CloneEmailCampaignMutation = {
11159
+ cloneEmailCampaign: {
10610
11160
  _id: string;
10611
11161
  subject: string;
10612
11162
  status: string;
@@ -10725,7 +11275,6 @@ export type GetAthleteIntegrationsByAthleteQuery = {
10725
11275
  getAthleteInstagramIntegration: {
10726
11276
  _id: string;
10727
11277
  hasInstagramIntegration?: boolean | null;
10728
- instagramTokenExpires?: string | null;
10729
11278
  athlete: {
10730
11279
  _id: string;
10731
11280
  };
@@ -10774,7 +11323,6 @@ export type GetAthleteStravaIntegrationQuery = {
10774
11323
  getAthleteStravaIntegration: {
10775
11324
  _id: string;
10776
11325
  hasStravaIntegration?: boolean | null;
10777
- stravaTokenExpires?: string | null;
10778
11326
  athlete: {
10779
11327
  _id: string;
10780
11328
  };
@@ -10792,7 +11340,6 @@ export type GetAthleteStravaIntegrationQuery = {
10792
11340
  profile?: string | null;
10793
11341
  created_at?: string | null;
10794
11342
  updated_at?: string | null;
10795
- weight?: number | null;
10796
11343
  } | null;
10797
11344
  };
10798
11345
  };
@@ -10803,7 +11350,6 @@ export type GetAthleteInstagramIntegrationQuery = {
10803
11350
  getAthleteInstagramIntegration: {
10804
11351
  _id: string;
10805
11352
  hasInstagramIntegration?: boolean | null;
10806
- instagramTokenExpires?: string | null;
10807
11353
  athlete: {
10808
11354
  _id: string;
10809
11355
  };
@@ -10852,9 +11398,7 @@ export type GetAthleteIntegrationsQuery = {
10852
11398
  getAthleteIntegrations: {
10853
11399
  _id: string;
10854
11400
  hasStravaIntegration?: boolean | null;
10855
- stravaTokenExpires?: string | null;
10856
11401
  hasInstagramIntegration?: boolean | null;
10857
- instagramTokenExpires?: string | null;
10858
11402
  athlete: {
10859
11403
  _id: string;
10860
11404
  };
@@ -10872,7 +11416,6 @@ export type GetAthleteIntegrationsQuery = {
10872
11416
  profile?: string | null;
10873
11417
  created_at?: string | null;
10874
11418
  updated_at?: string | null;
10875
- weight?: number | null;
10876
11419
  } | null;
10877
11420
  instagramUserData?: {
10878
11421
  user_id: string;
@@ -12730,6 +13273,1214 @@ export type CreateCityMutation = {
12730
13273
  timezone?: string | null;
12731
13274
  };
12732
13275
  };
13276
+ export type TeamFieldsFragment = {
13277
+ _id: string;
13278
+ name: string;
13279
+ description?: string | null;
13280
+ approved?: boolean | null;
13281
+ joinPolicy?: string | null;
13282
+ maxRosterSize?: number | null;
13283
+ visibility?: string | null;
13284
+ stripeAccountId?: string | null;
13285
+ vtxScore?: number | null;
13286
+ sports?: Array<{
13287
+ _id: string;
13288
+ name: string;
13289
+ }> | null;
13290
+ logo?: {
13291
+ _id: string;
13292
+ url: string;
13293
+ key: string;
13294
+ } | null;
13295
+ banner?: {
13296
+ _id: string;
13297
+ url: string;
13298
+ key: string;
13299
+ } | null;
13300
+ club?: {
13301
+ _id: string;
13302
+ name: string;
13303
+ logo?: {
13304
+ _id: string;
13305
+ url: string;
13306
+ key: string;
13307
+ } | null;
13308
+ } | null;
13309
+ athletes?: Array<{
13310
+ _id: string;
13311
+ role: string;
13312
+ status: string;
13313
+ joinedAt?: string | null;
13314
+ leftAt?: string | null;
13315
+ athlete?: {
13316
+ _id: string;
13317
+ firstName?: string | null;
13318
+ lastName?: string | null;
13319
+ screenName?: string | null;
13320
+ vtxScore?: number | null;
13321
+ } | null;
13322
+ sport?: {
13323
+ _id: string;
13324
+ name: string;
13325
+ } | null;
13326
+ }> | null;
13327
+ };
13328
+ export type ClubFieldsFragment = {
13329
+ _id: string;
13330
+ name: string;
13331
+ description?: string | null;
13332
+ location?: string | null;
13333
+ website?: string | null;
13334
+ membershipType: string;
13335
+ feeStructure?: any | null;
13336
+ approved?: boolean | null;
13337
+ visibility: string;
13338
+ stripeAccountId?: string | null;
13339
+ sports?: Array<{
13340
+ _id: string;
13341
+ name: string;
13342
+ }> | null;
13343
+ logo?: {
13344
+ _id: string;
13345
+ url: string;
13346
+ key: string;
13347
+ } | null;
13348
+ banner?: {
13349
+ _id: string;
13350
+ url: string;
13351
+ key: string;
13352
+ } | null;
13353
+ teams?: Array<{
13354
+ _id: string;
13355
+ name: string;
13356
+ vtxScore?: number | null;
13357
+ sports?: Array<{
13358
+ _id: string;
13359
+ name: string;
13360
+ }> | null;
13361
+ logo?: {
13362
+ _id: string;
13363
+ url: string;
13364
+ key: string;
13365
+ } | null;
13366
+ }> | null;
13367
+ };
13368
+ export type AthleteTeamFieldsFragment = {
13369
+ _id: string;
13370
+ role: string;
13371
+ status: string;
13372
+ joinedAt?: string | null;
13373
+ leftAt?: string | null;
13374
+ athlete?: {
13375
+ _id: string;
13376
+ firstName?: string | null;
13377
+ lastName?: string | null;
13378
+ screenName?: string | null;
13379
+ vtxScore?: number | null;
13380
+ profilePicture?: {
13381
+ _id: string;
13382
+ url: string;
13383
+ key: string;
13384
+ } | null;
13385
+ } | null;
13386
+ sport?: {
13387
+ _id: string;
13388
+ name: string;
13389
+ } | null;
13390
+ };
13391
+ export type AthleteClubFieldsFragment = {
13392
+ _id: string;
13393
+ role: string;
13394
+ status: string;
13395
+ joinedAt?: string | null;
13396
+ leftAt?: string | null;
13397
+ athlete?: {
13398
+ _id: string;
13399
+ firstName?: string | null;
13400
+ lastName?: string | null;
13401
+ screenName?: string | null;
13402
+ profilePicture?: {
13403
+ _id: string;
13404
+ url: string;
13405
+ key: string;
13406
+ } | null;
13407
+ } | null;
13408
+ club?: {
13409
+ _id: string;
13410
+ name: string;
13411
+ } | null;
13412
+ };
13413
+ export type TeamAnalyticsFieldsFragment = {
13414
+ teamId: string;
13415
+ teamName: string;
13416
+ vtxScore?: number | null;
13417
+ athleteCount: number;
13418
+ rosterSize?: number | null;
13419
+ vtxScoreHistory?: Array<{
13420
+ date: string;
13421
+ score: number;
13422
+ }> | null;
13423
+ topPerformers?: Array<{
13424
+ athleteId: string;
13425
+ athleteName: string;
13426
+ athletePhoto?: string | null;
13427
+ sport?: string | null;
13428
+ vtxScore: number;
13429
+ rank: number;
13430
+ tpiScore?: number | null;
13431
+ spiScore?: number | null;
13432
+ apiScore?: number | null;
13433
+ }> | null;
13434
+ };
13435
+ export type TeamLeaderboardEntryFieldsFragment = {
13436
+ athleteId: string;
13437
+ athleteName: string;
13438
+ athletePhoto?: string | null;
13439
+ sport?: string | null;
13440
+ vtxScore: number;
13441
+ rank: number;
13442
+ tpiScore?: number | null;
13443
+ spiScore?: number | null;
13444
+ apiScore?: number | null;
13445
+ };
13446
+ export type FindTeamByIdQueryVariables = Exact<{
13447
+ teamId: Scalars['String']['input'];
13448
+ }>;
13449
+ export type FindTeamByIdQuery = {
13450
+ findTeamById: {
13451
+ _id: string;
13452
+ name: string;
13453
+ description?: string | null;
13454
+ approved?: boolean | null;
13455
+ joinPolicy?: string | null;
13456
+ maxRosterSize?: number | null;
13457
+ visibility?: string | null;
13458
+ stripeAccountId?: string | null;
13459
+ vtxScore?: number | null;
13460
+ sports?: Array<{
13461
+ _id: string;
13462
+ name: string;
13463
+ }> | null;
13464
+ logo?: {
13465
+ _id: string;
13466
+ url: string;
13467
+ key: string;
13468
+ } | null;
13469
+ banner?: {
13470
+ _id: string;
13471
+ url: string;
13472
+ key: string;
13473
+ } | null;
13474
+ club?: {
13475
+ _id: string;
13476
+ name: string;
13477
+ logo?: {
13478
+ _id: string;
13479
+ url: string;
13480
+ key: string;
13481
+ } | null;
13482
+ } | null;
13483
+ athletes?: Array<{
13484
+ _id: string;
13485
+ role: string;
13486
+ status: string;
13487
+ joinedAt?: string | null;
13488
+ leftAt?: string | null;
13489
+ athlete?: {
13490
+ _id: string;
13491
+ firstName?: string | null;
13492
+ lastName?: string | null;
13493
+ screenName?: string | null;
13494
+ vtxScore?: number | null;
13495
+ } | null;
13496
+ sport?: {
13497
+ _id: string;
13498
+ name: string;
13499
+ } | null;
13500
+ }> | null;
13501
+ };
13502
+ };
13503
+ export type FindTeamsQueryVariables = Exact<{
13504
+ sportId?: InputMaybe<Scalars['String']['input']>;
13505
+ clubId?: InputMaybe<Scalars['String']['input']>;
13506
+ }>;
13507
+ export type FindTeamsQuery = {
13508
+ findTeams: Array<{
13509
+ _id: string;
13510
+ name: string;
13511
+ description?: string | null;
13512
+ approved?: boolean | null;
13513
+ joinPolicy?: string | null;
13514
+ maxRosterSize?: number | null;
13515
+ visibility?: string | null;
13516
+ stripeAccountId?: string | null;
13517
+ vtxScore?: number | null;
13518
+ sports?: Array<{
13519
+ _id: string;
13520
+ name: string;
13521
+ }> | null;
13522
+ logo?: {
13523
+ _id: string;
13524
+ url: string;
13525
+ key: string;
13526
+ } | null;
13527
+ banner?: {
13528
+ _id: string;
13529
+ url: string;
13530
+ key: string;
13531
+ } | null;
13532
+ club?: {
13533
+ _id: string;
13534
+ name: string;
13535
+ logo?: {
13536
+ _id: string;
13537
+ url: string;
13538
+ key: string;
13539
+ } | null;
13540
+ } | null;
13541
+ athletes?: Array<{
13542
+ _id: string;
13543
+ role: string;
13544
+ status: string;
13545
+ joinedAt?: string | null;
13546
+ leftAt?: string | null;
13547
+ athlete?: {
13548
+ _id: string;
13549
+ firstName?: string | null;
13550
+ lastName?: string | null;
13551
+ screenName?: string | null;
13552
+ vtxScore?: number | null;
13553
+ } | null;
13554
+ sport?: {
13555
+ _id: string;
13556
+ name: string;
13557
+ } | null;
13558
+ }> | null;
13559
+ }>;
13560
+ };
13561
+ export type FindAllTeamsQueryVariables = Exact<{
13562
+ [key: string]: never;
13563
+ }>;
13564
+ export type FindAllTeamsQuery = {
13565
+ findAllTeams: Array<{
13566
+ _id: string;
13567
+ name: string;
13568
+ description?: string | null;
13569
+ approved?: boolean | null;
13570
+ joinPolicy?: string | null;
13571
+ maxRosterSize?: number | null;
13572
+ visibility?: string | null;
13573
+ stripeAccountId?: string | null;
13574
+ vtxScore?: number | null;
13575
+ sports?: Array<{
13576
+ _id: string;
13577
+ name: string;
13578
+ }> | null;
13579
+ logo?: {
13580
+ _id: string;
13581
+ url: string;
13582
+ key: string;
13583
+ } | null;
13584
+ banner?: {
13585
+ _id: string;
13586
+ url: string;
13587
+ key: string;
13588
+ } | null;
13589
+ club?: {
13590
+ _id: string;
13591
+ name: string;
13592
+ logo?: {
13593
+ _id: string;
13594
+ url: string;
13595
+ key: string;
13596
+ } | null;
13597
+ } | null;
13598
+ athletes?: Array<{
13599
+ _id: string;
13600
+ role: string;
13601
+ status: string;
13602
+ joinedAt?: string | null;
13603
+ leftAt?: string | null;
13604
+ athlete?: {
13605
+ _id: string;
13606
+ firstName?: string | null;
13607
+ lastName?: string | null;
13608
+ screenName?: string | null;
13609
+ vtxScore?: number | null;
13610
+ } | null;
13611
+ sport?: {
13612
+ _id: string;
13613
+ name: string;
13614
+ } | null;
13615
+ }> | null;
13616
+ }>;
13617
+ };
13618
+ export type GetMyTeamsQueryVariables = Exact<{
13619
+ [key: string]: never;
13620
+ }>;
13621
+ export type GetMyTeamsQuery = {
13622
+ getMyTeams: Array<{
13623
+ _id: string;
13624
+ name: string;
13625
+ description?: string | null;
13626
+ approved?: boolean | null;
13627
+ joinPolicy?: string | null;
13628
+ maxRosterSize?: number | null;
13629
+ visibility?: string | null;
13630
+ stripeAccountId?: string | null;
13631
+ vtxScore?: number | null;
13632
+ sports?: Array<{
13633
+ _id: string;
13634
+ name: string;
13635
+ }> | null;
13636
+ logo?: {
13637
+ _id: string;
13638
+ url: string;
13639
+ key: string;
13640
+ } | null;
13641
+ banner?: {
13642
+ _id: string;
13643
+ url: string;
13644
+ key: string;
13645
+ } | null;
13646
+ club?: {
13647
+ _id: string;
13648
+ name: string;
13649
+ logo?: {
13650
+ _id: string;
13651
+ url: string;
13652
+ key: string;
13653
+ } | null;
13654
+ } | null;
13655
+ athletes?: Array<{
13656
+ _id: string;
13657
+ role: string;
13658
+ status: string;
13659
+ joinedAt?: string | null;
13660
+ leftAt?: string | null;
13661
+ athlete?: {
13662
+ _id: string;
13663
+ firstName?: string | null;
13664
+ lastName?: string | null;
13665
+ screenName?: string | null;
13666
+ vtxScore?: number | null;
13667
+ } | null;
13668
+ sport?: {
13669
+ _id: string;
13670
+ name: string;
13671
+ } | null;
13672
+ }> | null;
13673
+ }>;
13674
+ };
13675
+ export type GetTeamRosterQueryVariables = Exact<{
13676
+ teamId: Scalars['String']['input'];
13677
+ }>;
13678
+ export type GetTeamRosterQuery = {
13679
+ getTeamRoster: Array<{
13680
+ _id: string;
13681
+ role: string;
13682
+ status: string;
13683
+ joinedAt?: string | null;
13684
+ leftAt?: string | null;
13685
+ athlete?: {
13686
+ _id: string;
13687
+ firstName?: string | null;
13688
+ lastName?: string | null;
13689
+ screenName?: string | null;
13690
+ vtxScore?: number | null;
13691
+ profilePicture?: {
13692
+ _id: string;
13693
+ url: string;
13694
+ key: string;
13695
+ } | null;
13696
+ } | null;
13697
+ sport?: {
13698
+ _id: string;
13699
+ name: string;
13700
+ } | null;
13701
+ }>;
13702
+ };
13703
+ export type GetTeamAnalyticsQueryVariables = Exact<{
13704
+ teamId: Scalars['String']['input'];
13705
+ }>;
13706
+ export type GetTeamAnalyticsQuery = {
13707
+ getTeamAnalytics: {
13708
+ teamId: string;
13709
+ teamName: string;
13710
+ vtxScore?: number | null;
13711
+ athleteCount: number;
13712
+ rosterSize?: number | null;
13713
+ vtxScoreHistory?: Array<{
13714
+ date: string;
13715
+ score: number;
13716
+ }> | null;
13717
+ topPerformers?: Array<{
13718
+ athleteId: string;
13719
+ athleteName: string;
13720
+ athletePhoto?: string | null;
13721
+ sport?: string | null;
13722
+ vtxScore: number;
13723
+ rank: number;
13724
+ tpiScore?: number | null;
13725
+ spiScore?: number | null;
13726
+ apiScore?: number | null;
13727
+ }> | null;
13728
+ };
13729
+ };
13730
+ export type GetTeamLeaderboardQueryVariables = Exact<{
13731
+ teamId: Scalars['String']['input'];
13732
+ }>;
13733
+ export type GetTeamLeaderboardQuery = {
13734
+ getTeamLeaderboard: Array<{
13735
+ athleteId: string;
13736
+ athleteName: string;
13737
+ athletePhoto?: string | null;
13738
+ sport?: string | null;
13739
+ vtxScore: number;
13740
+ rank: number;
13741
+ tpiScore?: number | null;
13742
+ spiScore?: number | null;
13743
+ apiScore?: number | null;
13744
+ }>;
13745
+ };
13746
+ export type GetTeamDashboardQueryVariables = Exact<{
13747
+ teamId: Scalars['String']['input'];
13748
+ }>;
13749
+ export type GetTeamDashboardQuery = {
13750
+ getTeamDashboard: {
13751
+ analytics: {
13752
+ teamId: string;
13753
+ teamName: string;
13754
+ vtxScore?: number | null;
13755
+ athleteCount: number;
13756
+ rosterSize?: number | null;
13757
+ vtxScoreHistory?: Array<{
13758
+ date: string;
13759
+ score: number;
13760
+ }> | null;
13761
+ topPerformers?: Array<{
13762
+ athleteId: string;
13763
+ athleteName: string;
13764
+ athletePhoto?: string | null;
13765
+ sport?: string | null;
13766
+ vtxScore: number;
13767
+ rank: number;
13768
+ tpiScore?: number | null;
13769
+ spiScore?: number | null;
13770
+ apiScore?: number | null;
13771
+ }> | null;
13772
+ };
13773
+ roster: {
13774
+ totalActive: number;
13775
+ totalInactive: number;
13776
+ recentJoins: number;
13777
+ recentDepartures: number;
13778
+ };
13779
+ leaderboard: Array<{
13780
+ athleteId: string;
13781
+ athleteName: string;
13782
+ athletePhoto?: string | null;
13783
+ sport?: string | null;
13784
+ vtxScore: number;
13785
+ rank: number;
13786
+ tpiScore?: number | null;
13787
+ spiScore?: number | null;
13788
+ apiScore?: number | null;
13789
+ }>;
13790
+ };
13791
+ };
13792
+ export type GetTeamStripeAccountStatusQueryVariables = Exact<{
13793
+ teamId: Scalars['String']['input'];
13794
+ }>;
13795
+ export type GetTeamStripeAccountStatusQuery = {
13796
+ getTeamStripeAccountStatus?: {
13797
+ chargesEnabled: boolean;
13798
+ payoutsEnabled: boolean;
13799
+ detailsSubmitted: boolean;
13800
+ } | null;
13801
+ };
13802
+ export type CreateTeamMutationVariables = Exact<{
13803
+ input: CreateTeamInput;
13804
+ }>;
13805
+ export type CreateTeamMutation = {
13806
+ createTeam: {
13807
+ _id: string;
13808
+ name: string;
13809
+ description?: string | null;
13810
+ approved?: boolean | null;
13811
+ joinPolicy?: string | null;
13812
+ maxRosterSize?: number | null;
13813
+ visibility?: string | null;
13814
+ stripeAccountId?: string | null;
13815
+ vtxScore?: number | null;
13816
+ sports?: Array<{
13817
+ _id: string;
13818
+ name: string;
13819
+ }> | null;
13820
+ logo?: {
13821
+ _id: string;
13822
+ url: string;
13823
+ key: string;
13824
+ } | null;
13825
+ banner?: {
13826
+ _id: string;
13827
+ url: string;
13828
+ key: string;
13829
+ } | null;
13830
+ club?: {
13831
+ _id: string;
13832
+ name: string;
13833
+ logo?: {
13834
+ _id: string;
13835
+ url: string;
13836
+ key: string;
13837
+ } | null;
13838
+ } | null;
13839
+ athletes?: Array<{
13840
+ _id: string;
13841
+ role: string;
13842
+ status: string;
13843
+ joinedAt?: string | null;
13844
+ leftAt?: string | null;
13845
+ athlete?: {
13846
+ _id: string;
13847
+ firstName?: string | null;
13848
+ lastName?: string | null;
13849
+ screenName?: string | null;
13850
+ vtxScore?: number | null;
13851
+ } | null;
13852
+ sport?: {
13853
+ _id: string;
13854
+ name: string;
13855
+ } | null;
13856
+ }> | null;
13857
+ };
13858
+ };
13859
+ export type UpdateTeamMutationVariables = Exact<{
13860
+ input: UpdateTeamInput;
13861
+ }>;
13862
+ export type UpdateTeamMutation = {
13863
+ updateTeam: {
13864
+ _id: string;
13865
+ name: string;
13866
+ description?: string | null;
13867
+ approved?: boolean | null;
13868
+ joinPolicy?: string | null;
13869
+ maxRosterSize?: number | null;
13870
+ visibility?: string | null;
13871
+ stripeAccountId?: string | null;
13872
+ vtxScore?: number | null;
13873
+ sports?: Array<{
13874
+ _id: string;
13875
+ name: string;
13876
+ }> | null;
13877
+ logo?: {
13878
+ _id: string;
13879
+ url: string;
13880
+ key: string;
13881
+ } | null;
13882
+ banner?: {
13883
+ _id: string;
13884
+ url: string;
13885
+ key: string;
13886
+ } | null;
13887
+ club?: {
13888
+ _id: string;
13889
+ name: string;
13890
+ logo?: {
13891
+ _id: string;
13892
+ url: string;
13893
+ key: string;
13894
+ } | null;
13895
+ } | null;
13896
+ athletes?: Array<{
13897
+ _id: string;
13898
+ role: string;
13899
+ status: string;
13900
+ joinedAt?: string | null;
13901
+ leftAt?: string | null;
13902
+ athlete?: {
13903
+ _id: string;
13904
+ firstName?: string | null;
13905
+ lastName?: string | null;
13906
+ screenName?: string | null;
13907
+ vtxScore?: number | null;
13908
+ } | null;
13909
+ sport?: {
13910
+ _id: string;
13911
+ name: string;
13912
+ } | null;
13913
+ }> | null;
13914
+ };
13915
+ };
13916
+ export type JoinTeamMutationVariables = Exact<{
13917
+ input: JoinTeamInput;
13918
+ }>;
13919
+ export type JoinTeamMutation = {
13920
+ joinTeam: {
13921
+ _id: string;
13922
+ role: string;
13923
+ status: string;
13924
+ joinedAt?: string | null;
13925
+ leftAt?: string | null;
13926
+ athlete?: {
13927
+ _id: string;
13928
+ firstName?: string | null;
13929
+ lastName?: string | null;
13930
+ screenName?: string | null;
13931
+ vtxScore?: number | null;
13932
+ profilePicture?: {
13933
+ _id: string;
13934
+ url: string;
13935
+ key: string;
13936
+ } | null;
13937
+ } | null;
13938
+ sport?: {
13939
+ _id: string;
13940
+ name: string;
13941
+ } | null;
13942
+ };
13943
+ };
13944
+ export type LeaveTeamMutationVariables = Exact<{
13945
+ teamId: Scalars['String']['input'];
13946
+ }>;
13947
+ export type LeaveTeamMutation = {
13948
+ leaveTeam: {
13949
+ _id: string;
13950
+ role: string;
13951
+ status: string;
13952
+ joinedAt?: string | null;
13953
+ leftAt?: string | null;
13954
+ athlete?: {
13955
+ _id: string;
13956
+ firstName?: string | null;
13957
+ lastName?: string | null;
13958
+ screenName?: string | null;
13959
+ vtxScore?: number | null;
13960
+ profilePicture?: {
13961
+ _id: string;
13962
+ url: string;
13963
+ key: string;
13964
+ } | null;
13965
+ } | null;
13966
+ sport?: {
13967
+ _id: string;
13968
+ name: string;
13969
+ } | null;
13970
+ };
13971
+ };
13972
+ export type InviteToTeamMutationVariables = Exact<{
13973
+ teamId: Scalars['String']['input'];
13974
+ athleteId: Scalars['String']['input'];
13975
+ sportId: Scalars['String']['input'];
13976
+ }>;
13977
+ export type InviteToTeamMutation = {
13978
+ inviteToTeam: {
13979
+ _id: string;
13980
+ role: string;
13981
+ status: string;
13982
+ joinedAt?: string | null;
13983
+ leftAt?: string | null;
13984
+ athlete?: {
13985
+ _id: string;
13986
+ firstName?: string | null;
13987
+ lastName?: string | null;
13988
+ screenName?: string | null;
13989
+ vtxScore?: number | null;
13990
+ profilePicture?: {
13991
+ _id: string;
13992
+ url: string;
13993
+ key: string;
13994
+ } | null;
13995
+ } | null;
13996
+ sport?: {
13997
+ _id: string;
13998
+ name: string;
13999
+ } | null;
14000
+ };
14001
+ };
14002
+ export type ManageTeamMemberMutationVariables = Exact<{
14003
+ input: ManageTeamMemberInput;
14004
+ }>;
14005
+ export type ManageTeamMemberMutation = {
14006
+ manageTeamMember: {
14007
+ _id: string;
14008
+ role: string;
14009
+ status: string;
14010
+ joinedAt?: string | null;
14011
+ leftAt?: string | null;
14012
+ athlete?: {
14013
+ _id: string;
14014
+ firstName?: string | null;
14015
+ lastName?: string | null;
14016
+ screenName?: string | null;
14017
+ vtxScore?: number | null;
14018
+ profilePicture?: {
14019
+ _id: string;
14020
+ url: string;
14021
+ key: string;
14022
+ } | null;
14023
+ } | null;
14024
+ sport?: {
14025
+ _id: string;
14026
+ name: string;
14027
+ } | null;
14028
+ };
14029
+ };
14030
+ export type CreateTeamStripeAccountMutationVariables = Exact<{
14031
+ teamId: Scalars['String']['input'];
14032
+ }>;
14033
+ export type CreateTeamStripeAccountMutation = {
14034
+ createTeamStripeAccount: string;
14035
+ };
14036
+ export type CreateTeamDonationCheckoutMutationVariables = Exact<{
14037
+ teamId: Scalars['String']['input'];
14038
+ amount: Scalars['Float']['input'];
14039
+ currency?: Scalars['String']['input'];
14040
+ donorEmail?: InputMaybe<Scalars['String']['input']>;
14041
+ donorName?: InputMaybe<Scalars['String']['input']>;
14042
+ }>;
14043
+ export type CreateTeamDonationCheckoutMutation = {
14044
+ createTeamDonationCheckout: string;
14045
+ };
14046
+ export type FindClubByIdQueryVariables = Exact<{
14047
+ clubId: Scalars['String']['input'];
14048
+ }>;
14049
+ export type FindClubByIdQuery = {
14050
+ findClubById: {
14051
+ _id: string;
14052
+ name: string;
14053
+ description?: string | null;
14054
+ location?: string | null;
14055
+ website?: string | null;
14056
+ membershipType: string;
14057
+ feeStructure?: any | null;
14058
+ approved?: boolean | null;
14059
+ visibility: string;
14060
+ stripeAccountId?: string | null;
14061
+ sports?: Array<{
14062
+ _id: string;
14063
+ name: string;
14064
+ }> | null;
14065
+ logo?: {
14066
+ _id: string;
14067
+ url: string;
14068
+ key: string;
14069
+ } | null;
14070
+ banner?: {
14071
+ _id: string;
14072
+ url: string;
14073
+ key: string;
14074
+ } | null;
14075
+ teams?: Array<{
14076
+ _id: string;
14077
+ name: string;
14078
+ vtxScore?: number | null;
14079
+ sports?: Array<{
14080
+ _id: string;
14081
+ name: string;
14082
+ }> | null;
14083
+ logo?: {
14084
+ _id: string;
14085
+ url: string;
14086
+ key: string;
14087
+ } | null;
14088
+ }> | null;
14089
+ };
14090
+ };
14091
+ export type FindClubsQueryVariables = Exact<{
14092
+ sportId?: InputMaybe<Scalars['String']['input']>;
14093
+ }>;
14094
+ export type FindClubsQuery = {
14095
+ findClubs: Array<{
14096
+ _id: string;
14097
+ name: string;
14098
+ description?: string | null;
14099
+ location?: string | null;
14100
+ website?: string | null;
14101
+ membershipType: string;
14102
+ feeStructure?: any | null;
14103
+ approved?: boolean | null;
14104
+ visibility: string;
14105
+ stripeAccountId?: string | null;
14106
+ sports?: Array<{
14107
+ _id: string;
14108
+ name: string;
14109
+ }> | null;
14110
+ logo?: {
14111
+ _id: string;
14112
+ url: string;
14113
+ key: string;
14114
+ } | null;
14115
+ banner?: {
14116
+ _id: string;
14117
+ url: string;
14118
+ key: string;
14119
+ } | null;
14120
+ teams?: Array<{
14121
+ _id: string;
14122
+ name: string;
14123
+ vtxScore?: number | null;
14124
+ sports?: Array<{
14125
+ _id: string;
14126
+ name: string;
14127
+ }> | null;
14128
+ logo?: {
14129
+ _id: string;
14130
+ url: string;
14131
+ key: string;
14132
+ } | null;
14133
+ }> | null;
14134
+ }>;
14135
+ };
14136
+ export type FindAllClubsQueryVariables = Exact<{
14137
+ [key: string]: never;
14138
+ }>;
14139
+ export type FindAllClubsQuery = {
14140
+ findAllClubs: Array<{
14141
+ _id: string;
14142
+ name: string;
14143
+ description?: string | null;
14144
+ location?: string | null;
14145
+ website?: string | null;
14146
+ membershipType: string;
14147
+ feeStructure?: any | null;
14148
+ approved?: boolean | null;
14149
+ visibility: string;
14150
+ stripeAccountId?: string | null;
14151
+ sports?: Array<{
14152
+ _id: string;
14153
+ name: string;
14154
+ }> | null;
14155
+ logo?: {
14156
+ _id: string;
14157
+ url: string;
14158
+ key: string;
14159
+ } | null;
14160
+ banner?: {
14161
+ _id: string;
14162
+ url: string;
14163
+ key: string;
14164
+ } | null;
14165
+ teams?: Array<{
14166
+ _id: string;
14167
+ name: string;
14168
+ vtxScore?: number | null;
14169
+ sports?: Array<{
14170
+ _id: string;
14171
+ name: string;
14172
+ }> | null;
14173
+ logo?: {
14174
+ _id: string;
14175
+ url: string;
14176
+ key: string;
14177
+ } | null;
14178
+ }> | null;
14179
+ }>;
14180
+ };
14181
+ export type GetMyClubsQueryVariables = Exact<{
14182
+ [key: string]: never;
14183
+ }>;
14184
+ export type GetMyClubsQuery = {
14185
+ getMyClubs: Array<{
14186
+ _id: string;
14187
+ name: string;
14188
+ description?: string | null;
14189
+ location?: string | null;
14190
+ website?: string | null;
14191
+ membershipType: string;
14192
+ feeStructure?: any | null;
14193
+ approved?: boolean | null;
14194
+ visibility: string;
14195
+ stripeAccountId?: string | null;
14196
+ sports?: Array<{
14197
+ _id: string;
14198
+ name: string;
14199
+ }> | null;
14200
+ logo?: {
14201
+ _id: string;
14202
+ url: string;
14203
+ key: string;
14204
+ } | null;
14205
+ banner?: {
14206
+ _id: string;
14207
+ url: string;
14208
+ key: string;
14209
+ } | null;
14210
+ teams?: Array<{
14211
+ _id: string;
14212
+ name: string;
14213
+ vtxScore?: number | null;
14214
+ sports?: Array<{
14215
+ _id: string;
14216
+ name: string;
14217
+ }> | null;
14218
+ logo?: {
14219
+ _id: string;
14220
+ url: string;
14221
+ key: string;
14222
+ } | null;
14223
+ }> | null;
14224
+ }>;
14225
+ };
14226
+ export type GetClubMembersQueryVariables = Exact<{
14227
+ clubId: Scalars['String']['input'];
14228
+ }>;
14229
+ export type GetClubMembersQuery = {
14230
+ getClubMembers: Array<{
14231
+ _id: string;
14232
+ role: string;
14233
+ status: string;
14234
+ joinedAt?: string | null;
14235
+ leftAt?: string | null;
14236
+ athlete?: {
14237
+ _id: string;
14238
+ firstName?: string | null;
14239
+ lastName?: string | null;
14240
+ screenName?: string | null;
14241
+ profilePicture?: {
14242
+ _id: string;
14243
+ url: string;
14244
+ key: string;
14245
+ } | null;
14246
+ } | null;
14247
+ club?: {
14248
+ _id: string;
14249
+ name: string;
14250
+ } | null;
14251
+ }>;
14252
+ };
14253
+ export type GetClubStripeAccountStatusQueryVariables = Exact<{
14254
+ clubId: Scalars['String']['input'];
14255
+ }>;
14256
+ export type GetClubStripeAccountStatusQuery = {
14257
+ getClubStripeAccountStatus?: {
14258
+ chargesEnabled: boolean;
14259
+ payoutsEnabled: boolean;
14260
+ detailsSubmitted: boolean;
14261
+ } | null;
14262
+ };
14263
+ export type CreateClubMutationVariables = Exact<{
14264
+ input: CreateClubInput;
14265
+ }>;
14266
+ export type CreateClubMutation = {
14267
+ createClub: {
14268
+ _id: string;
14269
+ name: string;
14270
+ description?: string | null;
14271
+ location?: string | null;
14272
+ website?: string | null;
14273
+ membershipType: string;
14274
+ feeStructure?: any | null;
14275
+ approved?: boolean | null;
14276
+ visibility: string;
14277
+ stripeAccountId?: string | null;
14278
+ sports?: Array<{
14279
+ _id: string;
14280
+ name: string;
14281
+ }> | null;
14282
+ logo?: {
14283
+ _id: string;
14284
+ url: string;
14285
+ key: string;
14286
+ } | null;
14287
+ banner?: {
14288
+ _id: string;
14289
+ url: string;
14290
+ key: string;
14291
+ } | null;
14292
+ teams?: Array<{
14293
+ _id: string;
14294
+ name: string;
14295
+ vtxScore?: number | null;
14296
+ sports?: Array<{
14297
+ _id: string;
14298
+ name: string;
14299
+ }> | null;
14300
+ logo?: {
14301
+ _id: string;
14302
+ url: string;
14303
+ key: string;
14304
+ } | null;
14305
+ }> | null;
14306
+ };
14307
+ };
14308
+ export type UpdateClubMutationVariables = Exact<{
14309
+ input: UpdateClubInput;
14310
+ }>;
14311
+ export type UpdateClubMutation = {
14312
+ updateClub: {
14313
+ _id: string;
14314
+ name: string;
14315
+ description?: string | null;
14316
+ location?: string | null;
14317
+ website?: string | null;
14318
+ membershipType: string;
14319
+ feeStructure?: any | null;
14320
+ approved?: boolean | null;
14321
+ visibility: string;
14322
+ stripeAccountId?: string | null;
14323
+ sports?: Array<{
14324
+ _id: string;
14325
+ name: string;
14326
+ }> | null;
14327
+ logo?: {
14328
+ _id: string;
14329
+ url: string;
14330
+ key: string;
14331
+ } | null;
14332
+ banner?: {
14333
+ _id: string;
14334
+ url: string;
14335
+ key: string;
14336
+ } | null;
14337
+ teams?: Array<{
14338
+ _id: string;
14339
+ name: string;
14340
+ vtxScore?: number | null;
14341
+ sports?: Array<{
14342
+ _id: string;
14343
+ name: string;
14344
+ }> | null;
14345
+ logo?: {
14346
+ _id: string;
14347
+ url: string;
14348
+ key: string;
14349
+ } | null;
14350
+ }> | null;
14351
+ };
14352
+ };
14353
+ export type JoinClubMutationVariables = Exact<{
14354
+ input: JoinClubInput;
14355
+ }>;
14356
+ export type JoinClubMutation = {
14357
+ joinClub: {
14358
+ _id: string;
14359
+ role: string;
14360
+ status: string;
14361
+ joinedAt?: string | null;
14362
+ leftAt?: string | null;
14363
+ athlete?: {
14364
+ _id: string;
14365
+ firstName?: string | null;
14366
+ lastName?: string | null;
14367
+ screenName?: string | null;
14368
+ profilePicture?: {
14369
+ _id: string;
14370
+ url: string;
14371
+ key: string;
14372
+ } | null;
14373
+ } | null;
14374
+ club?: {
14375
+ _id: string;
14376
+ name: string;
14377
+ } | null;
14378
+ };
14379
+ };
14380
+ export type LeaveClubMutationVariables = Exact<{
14381
+ clubId: Scalars['String']['input'];
14382
+ }>;
14383
+ export type LeaveClubMutation = {
14384
+ leaveClub: {
14385
+ _id: string;
14386
+ role: string;
14387
+ status: string;
14388
+ joinedAt?: string | null;
14389
+ leftAt?: string | null;
14390
+ athlete?: {
14391
+ _id: string;
14392
+ firstName?: string | null;
14393
+ lastName?: string | null;
14394
+ screenName?: string | null;
14395
+ profilePicture?: {
14396
+ _id: string;
14397
+ url: string;
14398
+ key: string;
14399
+ } | null;
14400
+ } | null;
14401
+ club?: {
14402
+ _id: string;
14403
+ name: string;
14404
+ } | null;
14405
+ };
14406
+ };
14407
+ export type InviteToClubMutationVariables = Exact<{
14408
+ clubId: Scalars['String']['input'];
14409
+ athleteId: Scalars['String']['input'];
14410
+ }>;
14411
+ export type InviteToClubMutation = {
14412
+ inviteToClub: {
14413
+ _id: string;
14414
+ role: string;
14415
+ status: string;
14416
+ joinedAt?: string | null;
14417
+ leftAt?: string | null;
14418
+ athlete?: {
14419
+ _id: string;
14420
+ firstName?: string | null;
14421
+ lastName?: string | null;
14422
+ screenName?: string | null;
14423
+ profilePicture?: {
14424
+ _id: string;
14425
+ url: string;
14426
+ key: string;
14427
+ } | null;
14428
+ } | null;
14429
+ club?: {
14430
+ _id: string;
14431
+ name: string;
14432
+ } | null;
14433
+ };
14434
+ };
14435
+ export type ManageClubMemberMutationVariables = Exact<{
14436
+ input: ManageClubMemberInput;
14437
+ }>;
14438
+ export type ManageClubMemberMutation = {
14439
+ manageClubMember: {
14440
+ _id: string;
14441
+ role: string;
14442
+ status: string;
14443
+ joinedAt?: string | null;
14444
+ leftAt?: string | null;
14445
+ athlete?: {
14446
+ _id: string;
14447
+ firstName?: string | null;
14448
+ lastName?: string | null;
14449
+ screenName?: string | null;
14450
+ profilePicture?: {
14451
+ _id: string;
14452
+ url: string;
14453
+ key: string;
14454
+ } | null;
14455
+ } | null;
14456
+ club?: {
14457
+ _id: string;
14458
+ name: string;
14459
+ } | null;
14460
+ };
14461
+ };
14462
+ export type CreateClubStripeAccountMutationVariables = Exact<{
14463
+ clubId: Scalars['String']['input'];
14464
+ }>;
14465
+ export type CreateClubStripeAccountMutation = {
14466
+ createClubStripeAccount: string;
14467
+ };
14468
+ export type CreateClubDonationCheckoutMutationVariables = Exact<{
14469
+ clubId: Scalars['String']['input'];
14470
+ amount: Scalars['Float']['input'];
14471
+ currency?: Scalars['String']['input'];
14472
+ donorEmail?: InputMaybe<Scalars['String']['input']>;
14473
+ donorName?: InputMaybe<Scalars['String']['input']>;
14474
+ }>;
14475
+ export type CreateClubDonationCheckoutMutation = {
14476
+ createClubDonationCheckout: string;
14477
+ };
14478
+ export type CreateMembershipFeeCheckoutMutationVariables = Exact<{
14479
+ clubId: Scalars['String']['input'];
14480
+ }>;
14481
+ export type CreateMembershipFeeCheckoutMutation = {
14482
+ createMembershipFeeCheckout?: string | null;
14483
+ };
12733
14484
  export type FindUserByEmailQueryVariables = Exact<{
12734
14485
  email: Scalars['String']['input'];
12735
14486
  }>;
@@ -13221,6 +14972,7 @@ export declare const CurrentCampaignFieldsFragmentDoc: import("graphql").Documen
13221
14972
  export declare const HistoricalScoreFieldsFragmentDoc: import("graphql").DocumentNode;
13222
14973
  export declare const HistoricalScoresPeriodFieldsFragmentDoc: import("graphql").DocumentNode;
13223
14974
  export declare const CampaignFieldsFragmentDoc: import("graphql").DocumentNode;
14975
+ export declare const DonationThankYouFieldsFragmentDoc: import("graphql").DocumentNode;
13224
14976
  export declare const BrowseCampaignFieldsFragmentDoc: import("graphql").DocumentNode;
13225
14977
  export declare const DonationFieldsFragmentDoc: import("graphql").DocumentNode;
13226
14978
  export declare const DonationAthleteRefFragmentDoc: import("graphql").DocumentNode;
@@ -13235,6 +14987,12 @@ export declare const Awss3FileFieldsFragmentDoc: import("graphql").DocumentNode;
13235
14987
  export declare const BrandFullFieldsFragmentDoc: import("graphql").DocumentNode;
13236
14988
  export declare const SponsorshipFullFieldsFragmentDoc: import("graphql").DocumentNode;
13237
14989
  export declare const PaginationInfoFieldsFragmentDoc: import("graphql").DocumentNode;
14990
+ export declare const TeamFieldsFragmentDoc: import("graphql").DocumentNode;
14991
+ export declare const ClubFieldsFragmentDoc: import("graphql").DocumentNode;
14992
+ export declare const AthleteTeamFieldsFragmentDoc: import("graphql").DocumentNode;
14993
+ export declare const AthleteClubFieldsFragmentDoc: import("graphql").DocumentNode;
14994
+ export declare const TeamAnalyticsFieldsFragmentDoc: import("graphql").DocumentNode;
14995
+ export declare const TeamLeaderboardEntryFieldsFragmentDoc: import("graphql").DocumentNode;
13238
14996
  export declare const GetAiCoachThreadDocument: import("graphql").DocumentNode;
13239
14997
  export declare const GetAiCoachThreadHistoryDocument: import("graphql").DocumentNode;
13240
14998
  export declare const GetAiCoachThreadMessagesDocument: import("graphql").DocumentNode;
@@ -13347,6 +15105,10 @@ export declare const GetReceiptDocument: import("graphql").DocumentNode;
13347
15105
  export declare const GetTransactionDetailsDocument: import("graphql").DocumentNode;
13348
15106
  export declare const GetAllTransactionsDocument: import("graphql").DocumentNode;
13349
15107
  export declare const GetTransactionsPaginatedDocument: import("graphql").DocumentNode;
15108
+ export declare const CampaignThankYousDocument: import("graphql").DocumentNode;
15109
+ export declare const DonationThankYouDocument: import("graphql").DocumentNode;
15110
+ export declare const UpdateThankYouTemplateDocument: import("graphql").DocumentNode;
15111
+ export declare const SendThankYouDocument: import("graphql").DocumentNode;
13350
15112
  export declare const GetEmailCampaignsDocument: import("graphql").DocumentNode;
13351
15113
  export declare const GetAudiencePreviewDocument: import("graphql").DocumentNode;
13352
15114
  export declare const GetSendGridTemplatesDocument: import("graphql").DocumentNode;
@@ -13446,6 +15208,38 @@ export declare const CreateSportLevelDocument: import("graphql").DocumentNode;
13446
15208
  export declare const CreateCountryDocument: import("graphql").DocumentNode;
13447
15209
  export declare const CreateStateDocument: import("graphql").DocumentNode;
13448
15210
  export declare const CreateCityDocument: import("graphql").DocumentNode;
15211
+ export declare const FindTeamByIdDocument: import("graphql").DocumentNode;
15212
+ export declare const FindTeamsDocument: import("graphql").DocumentNode;
15213
+ export declare const FindAllTeamsDocument: import("graphql").DocumentNode;
15214
+ export declare const GetMyTeamsDocument: import("graphql").DocumentNode;
15215
+ export declare const GetTeamRosterDocument: import("graphql").DocumentNode;
15216
+ export declare const GetTeamAnalyticsDocument: import("graphql").DocumentNode;
15217
+ export declare const GetTeamLeaderboardDocument: import("graphql").DocumentNode;
15218
+ export declare const GetTeamDashboardDocument: import("graphql").DocumentNode;
15219
+ export declare const GetTeamStripeAccountStatusDocument: import("graphql").DocumentNode;
15220
+ export declare const CreateTeamDocument: import("graphql").DocumentNode;
15221
+ export declare const UpdateTeamDocument: import("graphql").DocumentNode;
15222
+ export declare const JoinTeamDocument: import("graphql").DocumentNode;
15223
+ export declare const LeaveTeamDocument: import("graphql").DocumentNode;
15224
+ export declare const InviteToTeamDocument: import("graphql").DocumentNode;
15225
+ export declare const ManageTeamMemberDocument: import("graphql").DocumentNode;
15226
+ export declare const CreateTeamStripeAccountDocument: import("graphql").DocumentNode;
15227
+ export declare const CreateTeamDonationCheckoutDocument: import("graphql").DocumentNode;
15228
+ export declare const FindClubByIdDocument: import("graphql").DocumentNode;
15229
+ export declare const FindClubsDocument: import("graphql").DocumentNode;
15230
+ export declare const FindAllClubsDocument: import("graphql").DocumentNode;
15231
+ export declare const GetMyClubsDocument: import("graphql").DocumentNode;
15232
+ export declare const GetClubMembersDocument: import("graphql").DocumentNode;
15233
+ export declare const GetClubStripeAccountStatusDocument: import("graphql").DocumentNode;
15234
+ export declare const CreateClubDocument: import("graphql").DocumentNode;
15235
+ export declare const UpdateClubDocument: import("graphql").DocumentNode;
15236
+ export declare const JoinClubDocument: import("graphql").DocumentNode;
15237
+ export declare const LeaveClubDocument: import("graphql").DocumentNode;
15238
+ export declare const InviteToClubDocument: import("graphql").DocumentNode;
15239
+ export declare const ManageClubMemberDocument: import("graphql").DocumentNode;
15240
+ export declare const CreateClubStripeAccountDocument: import("graphql").DocumentNode;
15241
+ export declare const CreateClubDonationCheckoutDocument: import("graphql").DocumentNode;
15242
+ export declare const CreateMembershipFeeCheckoutDocument: import("graphql").DocumentNode;
13449
15243
  export declare const FindUserByEmailDocument: import("graphql").DocumentNode;
13450
15244
  export declare const FindVtxUserDocument: import("graphql").DocumentNode;
13451
15245
  export declare const GetUserImagesFromEmailDocument: import("graphql").DocumentNode;
@@ -13576,6 +15370,10 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
13576
15370
  GetTransactionDetails(variables: GetTransactionDetailsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTransactionDetailsQuery>;
13577
15371
  GetAllTransactions(variables?: GetAllTransactionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetAllTransactionsQuery>;
13578
15372
  GetTransactionsPaginated(variables?: GetTransactionsPaginatedQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTransactionsPaginatedQuery>;
15373
+ CampaignThankYous(variables: CampaignThankYousQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CampaignThankYousQuery>;
15374
+ DonationThankYou(variables: DonationThankYouQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<DonationThankYouQuery>;
15375
+ UpdateThankYouTemplate(variables: UpdateThankYouTemplateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateThankYouTemplateMutation>;
15376
+ SendThankYou(variables: SendThankYouMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<SendThankYouMutation>;
13579
15377
  GetEmailCampaigns(variables?: GetEmailCampaignsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetEmailCampaignsQuery>;
13580
15378
  GetAudiencePreview(variables: GetAudiencePreviewQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetAudiencePreviewQuery>;
13581
15379
  GetSendGridTemplates(variables?: GetSendGridTemplatesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetSendGridTemplatesQuery>;
@@ -13675,6 +15473,38 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
13675
15473
  CreateCountry(variables: CreateCountryMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateCountryMutation>;
13676
15474
  CreateState(variables: CreateStateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateStateMutation>;
13677
15475
  CreateCity(variables: CreateCityMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateCityMutation>;
15476
+ FindTeamById(variables: FindTeamByIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindTeamByIdQuery>;
15477
+ FindTeams(variables?: FindTeamsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindTeamsQuery>;
15478
+ FindAllTeams(variables?: FindAllTeamsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindAllTeamsQuery>;
15479
+ GetMyTeams(variables?: GetMyTeamsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetMyTeamsQuery>;
15480
+ GetTeamRoster(variables: GetTeamRosterQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamRosterQuery>;
15481
+ GetTeamAnalytics(variables: GetTeamAnalyticsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamAnalyticsQuery>;
15482
+ GetTeamLeaderboard(variables: GetTeamLeaderboardQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamLeaderboardQuery>;
15483
+ GetTeamDashboard(variables: GetTeamDashboardQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamDashboardQuery>;
15484
+ GetTeamStripeAccountStatus(variables: GetTeamStripeAccountStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamStripeAccountStatusQuery>;
15485
+ CreateTeam(variables: CreateTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateTeamMutation>;
15486
+ UpdateTeam(variables: UpdateTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateTeamMutation>;
15487
+ JoinTeam(variables: JoinTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<JoinTeamMutation>;
15488
+ LeaveTeam(variables: LeaveTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<LeaveTeamMutation>;
15489
+ InviteToTeam(variables: InviteToTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<InviteToTeamMutation>;
15490
+ ManageTeamMember(variables: ManageTeamMemberMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ManageTeamMemberMutation>;
15491
+ CreateTeamStripeAccount(variables: CreateTeamStripeAccountMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateTeamStripeAccountMutation>;
15492
+ CreateTeamDonationCheckout(variables: CreateTeamDonationCheckoutMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateTeamDonationCheckoutMutation>;
15493
+ FindClubById(variables: FindClubByIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindClubByIdQuery>;
15494
+ FindClubs(variables?: FindClubsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindClubsQuery>;
15495
+ FindAllClubs(variables?: FindAllClubsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindAllClubsQuery>;
15496
+ GetMyClubs(variables?: GetMyClubsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetMyClubsQuery>;
15497
+ GetClubMembers(variables: GetClubMembersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClubMembersQuery>;
15498
+ GetClubStripeAccountStatus(variables: GetClubStripeAccountStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClubStripeAccountStatusQuery>;
15499
+ CreateClub(variables: CreateClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateClubMutation>;
15500
+ UpdateClub(variables: UpdateClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateClubMutation>;
15501
+ JoinClub(variables: JoinClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<JoinClubMutation>;
15502
+ LeaveClub(variables: LeaveClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<LeaveClubMutation>;
15503
+ InviteToClub(variables: InviteToClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<InviteToClubMutation>;
15504
+ ManageClubMember(variables: ManageClubMemberMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ManageClubMemberMutation>;
15505
+ CreateClubStripeAccount(variables: CreateClubStripeAccountMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateClubStripeAccountMutation>;
15506
+ CreateClubDonationCheckout(variables: CreateClubDonationCheckoutMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateClubDonationCheckoutMutation>;
15507
+ CreateMembershipFeeCheckout(variables: CreateMembershipFeeCheckoutMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateMembershipFeeCheckoutMutation>;
13678
15508
  FindUserByEmail(variables: FindUserByEmailQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindUserByEmailQuery>;
13679
15509
  FindVtxUser(variables: FindVtxUserQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindVtxUserQuery>;
13680
15510
  GetUserImagesFromEmail(variables: GetUserImagesFromEmailQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetUserImagesFromEmailQuery>;