@vertikalx/vtx-backend-client 3.0.0-dev-max2.0 → 3.0.0-dev-max3.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.
@@ -333,6 +333,16 @@ 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
+ athleteId: Scalars['String']['output'];
339
+ club?: Maybe<Club>;
340
+ clubId: Scalars['String']['output'];
341
+ joinedAt?: Maybe<Scalars['DateTime']['output']>;
342
+ leftAt?: Maybe<Scalars['DateTime']['output']>;
343
+ role: Scalars['String']['output'];
344
+ status: Scalars['String']['output'];
345
+ };
336
346
  export type AthleteCompetition = {
337
347
  _id: Scalars['String']['output'];
338
348
  albums?: Maybe<Array<Album>>;
@@ -472,6 +482,16 @@ export type AthleteReference = {
472
482
  trainer?: Maybe<Scalars['String']['output']>;
473
483
  trainerUrl?: Maybe<Scalars['String']['output']>;
474
484
  };
485
+ export type AthleteTeam = {
486
+ _id: Scalars['String']['output'];
487
+ athleteId: Scalars['String']['output'];
488
+ joinedAt?: Maybe<Scalars['DateTime']['output']>;
489
+ leftAt?: Maybe<Scalars['DateTime']['output']>;
490
+ role: Scalars['String']['output'];
491
+ sportId: Scalars['String']['output'];
492
+ status: Scalars['String']['output'];
493
+ teamId: Scalars['String']['output'];
494
+ };
475
495
  export type AudienceFilterDto = {
476
496
  campaignStatus?: InputMaybe<Scalars['String']['input']>;
477
497
  country?: InputMaybe<Scalars['String']['input']>;
@@ -699,6 +719,22 @@ export type CloneDatabaseFileDto = {
699
719
  _id: Scalars['String']['input'];
700
720
  version?: InputMaybe<Scalars['String']['input']>;
701
721
  };
722
+ export type Club = {
723
+ _id: Scalars['String']['output'];
724
+ approved?: Maybe<Scalars['Boolean']['output']>;
725
+ banner?: Maybe<Awss3File>;
726
+ description?: Maybe<Scalars['String']['output']>;
727
+ feeStructure?: Maybe<Scalars['JSON']['output']>;
728
+ location?: Maybe<Scalars['String']['output']>;
729
+ logo?: Maybe<Awss3File>;
730
+ membershipType: Scalars['String']['output'];
731
+ name: Scalars['String']['output'];
732
+ sports?: Maybe<Array<Sport>>;
733
+ stripeAccountId?: Maybe<Scalars['String']['output']>;
734
+ teams?: Maybe<Array<Team>>;
735
+ visibility: Scalars['String']['output'];
736
+ website?: Maybe<Scalars['String']['output']>;
737
+ };
702
738
  export type CodeVerificationResponse = {
703
739
  code?: Maybe<VerificationCode>;
704
740
  error?: Maybe<ErrorInfo>;
@@ -875,6 +911,16 @@ export type CreateCityDto = {
875
911
  stateId: Scalars['String']['input'];
876
912
  timezone: Scalars['String']['input'];
877
913
  };
914
+ export type CreateClubInput = {
915
+ description?: InputMaybe<Scalars['String']['input']>;
916
+ feeStructure?: InputMaybe<Scalars['JSON']['input']>;
917
+ location?: InputMaybe<Scalars['String']['input']>;
918
+ membershipType?: InputMaybe<Scalars['String']['input']>;
919
+ name: Scalars['String']['input'];
920
+ sportIds: Array<Scalars['String']['input']>;
921
+ visibility?: InputMaybe<Scalars['String']['input']>;
922
+ website?: InputMaybe<Scalars['String']['input']>;
923
+ };
878
924
  export type CreateCompetitionBudgetDto = {
879
925
  athleteCompetitionId: Scalars['String']['input'];
880
926
  initialFunds?: InputMaybe<Scalars['Float']['input']>;
@@ -903,7 +949,6 @@ export type CreateEmailSegmentDto = {
903
949
  name: Scalars['String']['input'];
904
950
  };
905
951
  export type CreateFundingCampaignDto = {
906
- autoSendThankYou?: InputMaybe<Scalars['Boolean']['input']>;
907
952
  budget?: InputMaybe<CreateBudgetDto>;
908
953
  budgetMode: Scalars['String']['input'];
909
954
  cityId?: InputMaybe<Scalars['String']['input']>;
@@ -914,14 +959,11 @@ export type CreateFundingCampaignDto = {
914
959
  fundsRequired: Scalars['Float']['input'];
915
960
  initialFundsObtained?: Scalars['Float']['input'];
916
961
  motivation: Scalars['String']['input'];
917
- thankYouMediaUrl?: InputMaybe<Scalars['String']['input']>;
918
- thankYouMessage?: InputMaybe<Scalars['String']['input']>;
919
962
  title: Scalars['String']['input'];
920
963
  video?: InputMaybe<CreateVideoDto>;
921
964
  website?: InputMaybe<Scalars['String']['input']>;
922
965
  };
923
966
  export type CreateFundingCampaignForDto = {
924
- autoSendThankYou?: InputMaybe<Scalars['Boolean']['input']>;
925
967
  budget?: InputMaybe<CreateBudgetDto>;
926
968
  budgetMode: Scalars['String']['input'];
927
969
  cityId?: InputMaybe<Scalars['String']['input']>;
@@ -933,8 +975,6 @@ export type CreateFundingCampaignForDto = {
933
975
  initialFundsObtained?: Scalars['Float']['input'];
934
976
  loginEmail: Scalars['String']['input'];
935
977
  motivation: Scalars['String']['input'];
936
- thankYouMediaUrl?: InputMaybe<Scalars['String']['input']>;
937
- thankYouMessage?: InputMaybe<Scalars['String']['input']>;
938
978
  title: Scalars['String']['input'];
939
979
  video?: InputMaybe<CreateVideoDto>;
940
980
  website?: InputMaybe<Scalars['String']['input']>;
@@ -1031,6 +1071,15 @@ export type CreateStripeAccountDto = {
1031
1071
  acceptedTermsId: Scalars['String']['input'];
1032
1072
  countryId: Scalars['String']['input'];
1033
1073
  };
1074
+ export type CreateTeamInput = {
1075
+ clubId?: InputMaybe<Scalars['String']['input']>;
1076
+ description?: InputMaybe<Scalars['String']['input']>;
1077
+ joinPolicy?: InputMaybe<Scalars['String']['input']>;
1078
+ maxRosterSize?: InputMaybe<Scalars['Int']['input']>;
1079
+ name: Scalars['String']['input'];
1080
+ sportIds: Array<Scalars['String']['input']>;
1081
+ visibility?: InputMaybe<Scalars['String']['input']>;
1082
+ };
1034
1083
  export type CreateTenantInput = {
1035
1084
  domain: Scalars['String']['input'];
1036
1085
  email: Scalars['String']['input'];
@@ -1235,16 +1284,6 @@ export type DonationQueryDto = {
1235
1284
  sortField?: InputMaybe<Scalars['String']['input']>;
1236
1285
  sortOrder?: InputMaybe<Scalars['String']['input']>;
1237
1286
  };
1238
- export type DonationThankYou = {
1239
- _id: Scalars['String']['output'];
1240
- autoSent: Scalars['Boolean']['output'];
1241
- donorEmail?: Maybe<Scalars['String']['output']>;
1242
- donorName?: Maybe<Scalars['String']['output']>;
1243
- emailSent: Scalars['Boolean']['output'];
1244
- mediaUrl?: Maybe<Scalars['String']['output']>;
1245
- message: Scalars['String']['output'];
1246
- sentDate: Scalars['DateTime']['output'];
1247
- };
1248
1287
  export type Duration = {
1249
1288
  length: Scalars['Float']['output'];
1250
1289
  unit: Scalars['String']['output'];
@@ -1445,7 +1484,6 @@ export type FundCampaignFilterDto = {
1445
1484
  export type FundRaisingCampaign = {
1446
1485
  _id: Scalars['String']['output'];
1447
1486
  athlete: AthleteReference;
1448
- autoSendThankYou: Scalars['Boolean']['output'];
1449
1487
  budget?: Maybe<Budget>;
1450
1488
  budgetMode: Scalars['String']['output'];
1451
1489
  competitions?: Maybe<Array<AthleteCompetition>>;
@@ -1459,8 +1497,6 @@ export type FundRaisingCampaign = {
1459
1497
  motivation?: Maybe<Scalars['String']['output']>;
1460
1498
  slug?: Maybe<Scalars['String']['output']>;
1461
1499
  status: Scalars['String']['output'];
1462
- thankYouMediaUrl?: Maybe<Scalars['String']['output']>;
1463
- thankYouMessage?: Maybe<Scalars['String']['output']>;
1464
1500
  title: Scalars['String']['output'];
1465
1501
  video?: Maybe<Video>;
1466
1502
  vtxComissionPct: Scalars['Float']['output'];
@@ -1626,6 +1662,15 @@ export type IsFollowingAthleteInput = {
1626
1662
  export type IsFollowingResponse = {
1627
1663
  isFollowing: Scalars['Boolean']['output'];
1628
1664
  };
1665
+ export type JoinClubInput = {
1666
+ clubId: Scalars['String']['input'];
1667
+ message?: InputMaybe<Scalars['String']['input']>;
1668
+ };
1669
+ export type JoinTeamInput = {
1670
+ message?: InputMaybe<Scalars['String']['input']>;
1671
+ sportId: Scalars['String']['input'];
1672
+ teamId: Scalars['String']['input'];
1673
+ };
1629
1674
  export type LeaderboardEntry = {
1630
1675
  athleteId: Scalars['String']['output'];
1631
1676
  cityName?: Maybe<Scalars['String']['output']>;
@@ -1695,6 +1740,18 @@ export type MagicLink = {
1695
1740
  type: Scalars['String']['output'];
1696
1741
  url: Scalars['String']['output'];
1697
1742
  };
1743
+ export type ManageClubMemberInput = {
1744
+ action: Scalars['String']['input'];
1745
+ athleteId: Scalars['String']['input'];
1746
+ clubId: Scalars['String']['input'];
1747
+ role?: InputMaybe<Scalars['String']['input']>;
1748
+ };
1749
+ export type ManageTeamMemberInput = {
1750
+ action: Scalars['String']['input'];
1751
+ athleteId: Scalars['String']['input'];
1752
+ role?: InputMaybe<Scalars['String']['input']>;
1753
+ teamId: Scalars['String']['input'];
1754
+ };
1698
1755
  export type MarkNotificationReadDto = {
1699
1756
  notificationId: Scalars['String']['input'];
1700
1757
  };
@@ -1758,6 +1815,8 @@ export type Mutation = {
1758
1815
  activateOffer: Offer;
1759
1816
  addAthleteCompetition: AthleteCompetition;
1760
1817
  addCompetitionBudget: Scalars['Boolean']['output'];
1818
+ approveClub: Club;
1819
+ approveTeam: Team;
1761
1820
  cancelScheduledEmail: EmailCampaign;
1762
1821
  claimOffer: OfferClaim;
1763
1822
  cloneEmailCampaign: EmailCampaign;
@@ -1768,11 +1827,15 @@ export type Mutation = {
1768
1827
  createAthleteStripeSession: StripeSession;
1769
1828
  createBrand: Brand;
1770
1829
  createCity: City;
1830
+ createClub: Club;
1831
+ createClubDonationCheckout: Scalars['String']['output'];
1832
+ createClubStripeAccount: Scalars['String']['output'];
1771
1833
  createCountry: Country;
1772
1834
  createEmailCampaign: EmailCampaign;
1773
1835
  createEmailSegment: EmailSegment;
1774
1836
  createFundingCampaign: FundRaisingCampaign;
1775
1837
  createIndustry: Industry;
1838
+ createMembershipFeeCheckout?: Maybe<Scalars['String']['output']>;
1776
1839
  createMembershipOrganization: MembershipOrganizationReference;
1777
1840
  createOffer: Offer;
1778
1841
  createResetPasswordCode: EditValueResponse;
@@ -1786,6 +1849,9 @@ export type Mutation = {
1786
1849
  createStripeAccountLink: Scalars['String']['output'];
1787
1850
  createStripeCheckoutSession: StripeCheckoutSession;
1788
1851
  createStripeLoginLink: Scalars['String']['output'];
1852
+ createTeam: Team;
1853
+ createTeamDonationCheckout: Scalars['String']['output'];
1854
+ createTeamStripeAccount: Scalars['String']['output'];
1789
1855
  createUserAndLogin: UserWithToken;
1790
1856
  deactivateOffer: Offer;
1791
1857
  deleteAthleteAlbum: DeleteSingleValueResponse;
@@ -1817,10 +1883,18 @@ export type Mutation = {
1817
1883
  followAthlete: Scalars['Boolean']['output'];
1818
1884
  forceDeleteAthleteCompetition: DeleteSingleValueResponse;
1819
1885
  forceRefreshAthleteScores: ForceScoreRefreshResponse;
1886
+ inviteToClub: AthleteClub;
1887
+ inviteToTeam: AthleteTeam;
1888
+ joinClub: AthleteClub;
1889
+ joinTeam: AthleteTeam;
1890
+ leaveClub: AthleteClub;
1891
+ leaveTeam: AthleteTeam;
1820
1892
  linkBrandToSponsor: Brand;
1821
1893
  loginUserFromCredentials: UserWithToken;
1822
1894
  loginUserFromCredentialsVtx: UserWithToken;
1823
1895
  loginUserFromEmail: UserToken;
1896
+ manageClubMember: AthleteClub;
1897
+ manageTeamMember: AthleteTeam;
1824
1898
  markAiCoachNudgeRead: Scalars['Boolean']['output'];
1825
1899
  markAllNotificationsAsRead: Scalars['Int']['output'];
1826
1900
  markNotificationAsRead: Notification;
@@ -1848,7 +1922,6 @@ export type Mutation = {
1848
1922
  sendAthleteInvitations: Array<SponsorAthleteInvitation>;
1849
1923
  sendBulkEmail: Scalars['Boolean']['output'];
1850
1924
  sendTestEmail: Scalars['Boolean']['output'];
1851
- sendThankYou: DonationThankYou;
1852
1925
  setCurrentCampaign: FundRaisingCampaign;
1853
1926
  setFundingStatus: FundRaisingCampaign;
1854
1927
  setOfferStatus: Offer;
@@ -1861,6 +1934,7 @@ export type Mutation = {
1861
1934
  updateAthleteIntegration: Scalars['Boolean']['output'];
1862
1935
  updateAthleteScores: Athlete;
1863
1936
  updateBrand: Brand;
1937
+ updateClub: Club;
1864
1938
  updateEmailCampaign: EmailCampaign;
1865
1939
  updateEmailSegment: EmailSegment;
1866
1940
  updateFundingCampaign: FundRaisingCampaign;
@@ -1870,7 +1944,7 @@ export type Mutation = {
1870
1944
  updateSponsor: Sponsor;
1871
1945
  updateSport: Sport;
1872
1946
  updateSportsEvent: SportsEvent;
1873
- updateThankYouTemplate: FundRaisingCampaign;
1947
+ updateTeam: Team;
1874
1948
  updateUserSuspendedStatus: EditValueResponse;
1875
1949
  uploadCouponCodes: UploadResult;
1876
1950
  validateToken: ValidatedToken;
@@ -1887,6 +1961,14 @@ export type MutationAddAthleteCompetitionArgs = {
1887
1961
  export type MutationAddCompetitionBudgetArgs = {
1888
1962
  input: AddCompetitionBudgetDto;
1889
1963
  };
1964
+ export type MutationApproveClubArgs = {
1965
+ approved: Scalars['Boolean']['input'];
1966
+ clubId: Scalars['String']['input'];
1967
+ };
1968
+ export type MutationApproveTeamArgs = {
1969
+ approved: Scalars['Boolean']['input'];
1970
+ teamId: Scalars['String']['input'];
1971
+ };
1890
1972
  export type MutationCancelScheduledEmailArgs = {
1891
1973
  campaignId: Scalars['String']['input'];
1892
1974
  };
@@ -1915,6 +1997,19 @@ export type MutationCreateBrandArgs = {
1915
1997
  export type MutationCreateCityArgs = {
1916
1998
  input: CreateCityDto;
1917
1999
  };
2000
+ export type MutationCreateClubArgs = {
2001
+ input: CreateClubInput;
2002
+ };
2003
+ export type MutationCreateClubDonationCheckoutArgs = {
2004
+ amount: Scalars['Float']['input'];
2005
+ clubId: Scalars['String']['input'];
2006
+ currency?: Scalars['String']['input'];
2007
+ donorEmail?: InputMaybe<Scalars['String']['input']>;
2008
+ donorName?: InputMaybe<Scalars['String']['input']>;
2009
+ };
2010
+ export type MutationCreateClubStripeAccountArgs = {
2011
+ clubId: Scalars['String']['input'];
2012
+ };
1918
2013
  export type MutationCreateCountryArgs = {
1919
2014
  input: CreateCountryDto;
1920
2015
  };
@@ -1930,6 +2025,9 @@ export type MutationCreateFundingCampaignArgs = {
1930
2025
  export type MutationCreateIndustryArgs = {
1931
2026
  input: CreateIndustryDto;
1932
2027
  };
2028
+ export type MutationCreateMembershipFeeCheckoutArgs = {
2029
+ clubId: Scalars['String']['input'];
2030
+ };
1933
2031
  export type MutationCreateMembershipOrganizationArgs = {
1934
2032
  input: CreateMembershipOrganizationDto;
1935
2033
  };
@@ -1963,6 +2061,19 @@ export type MutationCreateStripeAccountArgs = {
1963
2061
  export type MutationCreateStripeCheckoutSessionArgs = {
1964
2062
  input: DonationCheckoutDto;
1965
2063
  };
2064
+ export type MutationCreateTeamArgs = {
2065
+ input: CreateTeamInput;
2066
+ };
2067
+ export type MutationCreateTeamDonationCheckoutArgs = {
2068
+ amount: Scalars['Float']['input'];
2069
+ currency?: Scalars['String']['input'];
2070
+ donorEmail?: InputMaybe<Scalars['String']['input']>;
2071
+ donorName?: InputMaybe<Scalars['String']['input']>;
2072
+ teamId: Scalars['String']['input'];
2073
+ };
2074
+ export type MutationCreateTeamStripeAccountArgs = {
2075
+ teamId: Scalars['String']['input'];
2076
+ };
1966
2077
  export type MutationCreateUserAndLoginArgs = {
1967
2078
  user: CreateActiveUserInput;
1968
2079
  };
@@ -2050,6 +2161,27 @@ export type MutationForceDeleteAthleteCompetitionArgs = {
2050
2161
  export type MutationForceRefreshAthleteScoresArgs = {
2051
2162
  input: ForceScoreRefreshDto;
2052
2163
  };
2164
+ export type MutationInviteToClubArgs = {
2165
+ athleteId: Scalars['String']['input'];
2166
+ clubId: Scalars['String']['input'];
2167
+ };
2168
+ export type MutationInviteToTeamArgs = {
2169
+ athleteId: Scalars['String']['input'];
2170
+ sportId: Scalars['String']['input'];
2171
+ teamId: Scalars['String']['input'];
2172
+ };
2173
+ export type MutationJoinClubArgs = {
2174
+ input: JoinClubInput;
2175
+ };
2176
+ export type MutationJoinTeamArgs = {
2177
+ input: JoinTeamInput;
2178
+ };
2179
+ export type MutationLeaveClubArgs = {
2180
+ clubId: Scalars['String']['input'];
2181
+ };
2182
+ export type MutationLeaveTeamArgs = {
2183
+ teamId: Scalars['String']['input'];
2184
+ };
2053
2185
  export type MutationLinkBrandToSponsorArgs = {
2054
2186
  brandId: Scalars['String']['input'];
2055
2187
  sponsorId: Scalars['String']['input'];
@@ -2066,6 +2198,12 @@ export type MutationLoginUserFromEmailArgs = {
2066
2198
  email: Scalars['String']['input'];
2067
2199
  loginMethod: Scalars['String']['input'];
2068
2200
  };
2201
+ export type MutationManageClubMemberArgs = {
2202
+ input: ManageClubMemberInput;
2203
+ };
2204
+ export type MutationManageTeamMemberArgs = {
2205
+ input: ManageTeamMemberInput;
2206
+ };
2069
2207
  export type MutationMarkAiCoachNudgeReadArgs = {
2070
2208
  nudgeId: Scalars['String']['input'];
2071
2209
  };
@@ -2144,9 +2282,6 @@ export type MutationSendTestEmailArgs = {
2144
2282
  adminEmail: Scalars['String']['input'];
2145
2283
  campaignId: Scalars['String']['input'];
2146
2284
  };
2147
- export type MutationSendThankYouArgs = {
2148
- input: SendThankYouDto;
2149
- };
2150
2285
  export type MutationSetCurrentCampaignArgs = {
2151
2286
  input: SetCurrentCampaignDto;
2152
2287
  };
@@ -2177,6 +2312,9 @@ export type MutationUpdateBrandArgs = {
2177
2312
  id: Scalars['String']['input'];
2178
2313
  input: CreateBrandDto;
2179
2314
  };
2315
+ export type MutationUpdateClubArgs = {
2316
+ input: UpdateClubInput;
2317
+ };
2180
2318
  export type MutationUpdateEmailCampaignArgs = {
2181
2319
  id: Scalars['String']['input'];
2182
2320
  input: UpdateEmailCampaignDto;
@@ -2208,8 +2346,8 @@ export type MutationUpdateSportArgs = {
2208
2346
  export type MutationUpdateSportsEventArgs = {
2209
2347
  input: UpdateSportEventDto;
2210
2348
  };
2211
- export type MutationUpdateThankYouTemplateArgs = {
2212
- input: UpdateThankYouTemplateDto;
2349
+ export type MutationUpdateTeamArgs = {
2350
+ input: UpdateTeamInput;
2213
2351
  };
2214
2352
  export type MutationUpdateUserSuspendedStatusArgs = {
2215
2353
  input: UpdateUserSuspendedStatusDto;
@@ -2546,19 +2684,23 @@ export type Query = {
2546
2684
  athleteScoreHistory: Array<ScoreHistoryEntry>;
2547
2685
  brands: Array<Brand>;
2548
2686
  browseCampaigns: BrowseCampaignsResult;
2549
- campaignThankYous: Array<DonationThankYou>;
2550
2687
  checkScoreRefreshCapabilities: CheckScoreRefreshCapabilityResponse;
2551
- donationThankYou?: Maybe<DonationThankYou>;
2552
2688
  existsValidSponsorForEmail: Sponsor;
2689
+ findAllClubs: Array<Club>;
2690
+ findAllTeams: Array<Team>;
2553
2691
  findAthleteById: Athlete;
2554
2692
  findAthleteForUser: Athlete;
2555
2693
  findAthletebyIdpublic: Athlete;
2556
2694
  findCitiesStartingWith: Array<City>;
2557
2695
  findCityById: City;
2696
+ findClubById: Club;
2697
+ findClubs: Array<Club>;
2558
2698
  findIndustryById: Industry;
2559
2699
  findMemberForUser: Member;
2560
2700
  findSponsorAthleteInvitation: SponsorAthleteInvitation;
2561
2701
  findSportById: Sport;
2702
+ findTeamById: Team;
2703
+ findTeams: Array<Team>;
2562
2704
  findTenantByEmail: Tenant;
2563
2705
  findTenantById: Tenant;
2564
2706
  findUserByEmail: User;
@@ -2591,6 +2733,8 @@ export type Query = {
2591
2733
  getBudgetConcepts: Array<BudgetConcept>;
2592
2734
  getBudgetItemUnits: Array<BudgetItemUnit>;
2593
2735
  getBudgetsByAthlete: BudgetData;
2736
+ getClubMembers: Array<AthleteClub>;
2737
+ getClubStripeAccountStatus?: Maybe<StripeAccountStatus>;
2594
2738
  getCountries: Array<Country>;
2595
2739
  getCountryStates: Array<State>;
2596
2740
  getDatabaseTextFile: TextDatabaseFile;
@@ -2631,6 +2775,11 @@ export type Query = {
2631
2775
  getStates: Array<State>;
2632
2776
  getStravaLoginUrl: Scalars['String']['output'];
2633
2777
  getStripeBalance: StripeBalance;
2778
+ getTeamAnalytics: TeamAnalytics;
2779
+ getTeamDashboard: TeamDashboard;
2780
+ getTeamLeaderboard: Array<TeamLeaderboardEntry>;
2781
+ getTeamRoster: Array<AthleteTeam>;
2782
+ getTeamStripeAccountStatus?: Maybe<StripeAccountStatus>;
2634
2783
  getTenantSponsorships: Array<Sponsorship>;
2635
2784
  getTenants: Array<Tenant>;
2636
2785
  getTransactionDetails: TransactionDetails;
@@ -2693,15 +2842,9 @@ export type QueryAthleteScoreHistoryArgs = {
2693
2842
  export type QueryBrowseCampaignsArgs = {
2694
2843
  input: BrowseCampaignsDto;
2695
2844
  };
2696
- export type QueryCampaignThankYousArgs = {
2697
- campaignId: Scalars['String']['input'];
2698
- };
2699
2845
  export type QueryCheckScoreRefreshCapabilitiesArgs = {
2700
2846
  input: CheckScoreRefreshCapabilityDto;
2701
2847
  };
2702
- export type QueryDonationThankYouArgs = {
2703
- donationId: Scalars['String']['input'];
2704
- };
2705
2848
  export type QueryExistsValidSponsorForEmailArgs = {
2706
2849
  loginEmail: Scalars['String']['input'];
2707
2850
  };
@@ -2720,6 +2863,12 @@ export type QueryFindCitiesStartingWithArgs = {
2720
2863
  export type QueryFindCityByIdArgs = {
2721
2864
  cityId: Scalars['String']['input'];
2722
2865
  };
2866
+ export type QueryFindClubByIdArgs = {
2867
+ clubId: Scalars['String']['input'];
2868
+ };
2869
+ export type QueryFindClubsArgs = {
2870
+ sportId?: InputMaybe<Scalars['String']['input']>;
2871
+ };
2723
2872
  export type QueryFindIndustryByIdArgs = {
2724
2873
  industryId: Scalars['String']['input'];
2725
2874
  };
@@ -2732,6 +2881,13 @@ export type QueryFindSponsorAthleteInvitationArgs = {
2732
2881
  export type QueryFindSportByIdArgs = {
2733
2882
  sportId: Scalars['String']['input'];
2734
2883
  };
2884
+ export type QueryFindTeamByIdArgs = {
2885
+ teamId: Scalars['String']['input'];
2886
+ };
2887
+ export type QueryFindTeamsArgs = {
2888
+ clubId?: InputMaybe<Scalars['String']['input']>;
2889
+ sportId?: InputMaybe<Scalars['String']['input']>;
2890
+ };
2735
2891
  export type QueryFindTenantByEmailArgs = {
2736
2892
  domainId: Scalars['String']['input'];
2737
2893
  email: Scalars['String']['input'];
@@ -2792,6 +2948,12 @@ export type QueryGetBrandTranslationArgs = {
2792
2948
  export type QueryGetBrandsPaginatedArgs = {
2793
2949
  query?: InputMaybe<BrandQueryDto>;
2794
2950
  };
2951
+ export type QueryGetClubMembersArgs = {
2952
+ clubId: Scalars['String']['input'];
2953
+ };
2954
+ export type QueryGetClubStripeAccountStatusArgs = {
2955
+ clubId: Scalars['String']['input'];
2956
+ };
2795
2957
  export type QueryGetCountryStatesArgs = {
2796
2958
  countryId: Scalars['String']['input'];
2797
2959
  };
@@ -2870,6 +3032,21 @@ export type QueryGetSportsPaginatedArgs = {
2870
3032
  export type QueryGetStateCitiesArgs = {
2871
3033
  stateId: Scalars['String']['input'];
2872
3034
  };
3035
+ export type QueryGetTeamAnalyticsArgs = {
3036
+ teamId: Scalars['String']['input'];
3037
+ };
3038
+ export type QueryGetTeamDashboardArgs = {
3039
+ teamId: Scalars['String']['input'];
3040
+ };
3041
+ export type QueryGetTeamLeaderboardArgs = {
3042
+ teamId: Scalars['String']['input'];
3043
+ };
3044
+ export type QueryGetTeamRosterArgs = {
3045
+ teamId: Scalars['String']['input'];
3046
+ };
3047
+ export type QueryGetTeamStripeAccountStatusArgs = {
3048
+ teamId: Scalars['String']['input'];
3049
+ };
2873
3050
  export type QueryGetTransactionDetailsArgs = {
2874
3051
  input: GetTransactionDetailsDto;
2875
3052
  };
@@ -3126,11 +3303,6 @@ export type SendGridTemplate = {
3126
3303
  subject?: Maybe<Scalars['String']['output']>;
3127
3304
  updatedAt?: Maybe<Scalars['String']['output']>;
3128
3305
  };
3129
- export type SendThankYouDto = {
3130
- campaignId: Scalars['String']['input'];
3131
- customMessage?: InputMaybe<Scalars['String']['input']>;
3132
- donationId: Scalars['String']['input'];
3133
- };
3134
3306
  export type SetCompetitionResultDto = {
3135
3307
  adversary?: InputMaybe<Scalars['String']['input']>;
3136
3308
  categoryName?: InputMaybe<Scalars['String']['input']>;
@@ -3494,6 +3666,11 @@ export type StripeAccountReference = {
3494
3666
  account?: Maybe<StripeAccount>;
3495
3667
  stripeAccountId: Scalars['String']['output'];
3496
3668
  };
3669
+ export type StripeAccountStatus = {
3670
+ chargesEnabled: Scalars['Boolean']['output'];
3671
+ detailsSubmitted: Scalars['Boolean']['output'];
3672
+ payoutsEnabled: Scalars['Boolean']['output'];
3673
+ };
3497
3674
  export type StripeBalance = {
3498
3675
  availableBalances: Array<CurrencyAmountType>;
3499
3676
  availableUSD: Scalars['Float']['output'];
@@ -3644,10 +3821,51 @@ export type Team = {
3644
3821
  _id: Scalars['String']['output'];
3645
3822
  approved?: Maybe<Scalars['Boolean']['output']>;
3646
3823
  banner?: Maybe<Awss3File>;
3824
+ clubId?: Maybe<Scalars['String']['output']>;
3647
3825
  description?: Maybe<Scalars['String']['output']>;
3826
+ joinPolicy?: Maybe<Scalars['String']['output']>;
3648
3827
  logo?: Maybe<Awss3File>;
3828
+ maxRosterSize?: Maybe<Scalars['Int']['output']>;
3649
3829
  name: Scalars['String']['output'];
3650
3830
  sports?: Maybe<Array<Sport>>;
3831
+ stripeAccountId?: Maybe<Scalars['String']['output']>;
3832
+ visibility?: Maybe<Scalars['String']['output']>;
3833
+ vtxScore?: Maybe<Scalars['Float']['output']>;
3834
+ };
3835
+ export type TeamAnalytics = {
3836
+ athleteCount: Scalars['Int']['output'];
3837
+ rosterSize?: Maybe<Scalars['Int']['output']>;
3838
+ teamId: Scalars['String']['output'];
3839
+ teamName: Scalars['String']['output'];
3840
+ topPerformers?: Maybe<Array<TeamLeaderboardEntry>>;
3841
+ vtxScore?: Maybe<Scalars['Float']['output']>;
3842
+ vtxScoreHistory?: Maybe<Array<TeamVtxScoreHistoryEntry>>;
3843
+ };
3844
+ export type TeamDashboard = {
3845
+ analytics: TeamAnalytics;
3846
+ leaderboard: Array<TeamLeaderboardEntry>;
3847
+ roster: TeamRosterOverview;
3848
+ };
3849
+ export type TeamLeaderboardEntry = {
3850
+ apiScore?: Maybe<Scalars['Float']['output']>;
3851
+ athleteId: Scalars['String']['output'];
3852
+ athleteName: Scalars['String']['output'];
3853
+ athletePhoto?: Maybe<Scalars['String']['output']>;
3854
+ rank: Scalars['Int']['output'];
3855
+ spiScore?: Maybe<Scalars['Float']['output']>;
3856
+ sport?: Maybe<Scalars['String']['output']>;
3857
+ tpiScore?: Maybe<Scalars['Float']['output']>;
3858
+ vtxScore: Scalars['Float']['output'];
3859
+ };
3860
+ export type TeamRosterOverview = {
3861
+ recentDepartures: Scalars['Int']['output'];
3862
+ recentJoins: Scalars['Int']['output'];
3863
+ totalActive: Scalars['Int']['output'];
3864
+ totalInactive: Scalars['Int']['output'];
3865
+ };
3866
+ export type TeamVtxScoreHistoryEntry = {
3867
+ date: Scalars['DateTime']['output'];
3868
+ score: Scalars['Float']['output'];
3651
3869
  };
3652
3870
  export type Tenant = {
3653
3871
  _id: Scalars['String']['output'];
@@ -3726,6 +3944,16 @@ export type UpdateAiCoachConfigDto = {
3726
3944
  nudgesEnabled?: InputMaybe<Scalars['Boolean']['input']>;
3727
3945
  preferredFocus?: InputMaybe<Scalars['String']['input']>;
3728
3946
  };
3947
+ export type UpdateClubInput = {
3948
+ clubId: Scalars['String']['input'];
3949
+ description?: InputMaybe<Scalars['String']['input']>;
3950
+ feeStructure?: InputMaybe<Scalars['JSON']['input']>;
3951
+ location?: InputMaybe<Scalars['String']['input']>;
3952
+ membershipType?: InputMaybe<Scalars['String']['input']>;
3953
+ name?: InputMaybe<Scalars['String']['input']>;
3954
+ visibility?: InputMaybe<Scalars['String']['input']>;
3955
+ website?: InputMaybe<Scalars['String']['input']>;
3956
+ };
3729
3957
  export type UpdateDatabaseFileDto = {
3730
3958
  _id: Scalars['String']['input'];
3731
3959
  contentType?: InputMaybe<Scalars['String']['input']>;
@@ -3747,7 +3975,6 @@ export type UpdateEmailSegmentDto = {
3747
3975
  };
3748
3976
  export type UpdateFundingCampaignDto = {
3749
3977
  _id: Scalars['String']['input'];
3750
- autoSendThankYou?: InputMaybe<Scalars['Boolean']['input']>;
3751
3978
  budget?: InputMaybe<CreateBudgetDto>;
3752
3979
  budgetMode: Scalars['String']['input'];
3753
3980
  cityId?: InputMaybe<Scalars['String']['input']>;
@@ -3758,8 +3985,6 @@ export type UpdateFundingCampaignDto = {
3758
3985
  fundsRequired: Scalars['Float']['input'];
3759
3986
  initialFundsObtained?: Scalars['Float']['input'];
3760
3987
  motivation: Scalars['String']['input'];
3761
- thankYouMediaUrl?: InputMaybe<Scalars['String']['input']>;
3762
- thankYouMessage?: InputMaybe<Scalars['String']['input']>;
3763
3988
  title: Scalars['String']['input'];
3764
3989
  video?: InputMaybe<CreateVideoDto>;
3765
3990
  website?: InputMaybe<Scalars['String']['input']>;
@@ -3794,6 +4019,14 @@ export type UpdateSportEventDto = {
3794
4019
  startDate?: InputMaybe<Scalars['DateTime']['input']>;
3795
4020
  website?: InputMaybe<Scalars['String']['input']>;
3796
4021
  };
4022
+ export type UpdateTeamInput = {
4023
+ description?: InputMaybe<Scalars['String']['input']>;
4024
+ joinPolicy?: InputMaybe<Scalars['String']['input']>;
4025
+ maxRosterSize?: InputMaybe<Scalars['Int']['input']>;
4026
+ name?: InputMaybe<Scalars['String']['input']>;
4027
+ teamId: Scalars['String']['input'];
4028
+ visibility?: InputMaybe<Scalars['String']['input']>;
4029
+ };
3797
4030
  export type UpdateTextDatabaseFileDto = {
3798
4031
  _id: Scalars['String']['input'];
3799
4032
  content?: InputMaybe<Scalars['String']['input']>;
@@ -3801,12 +4034,6 @@ export type UpdateTextDatabaseFileDto = {
3801
4034
  identifier?: InputMaybe<Scalars['String']['input']>;
3802
4035
  version?: InputMaybe<Scalars['String']['input']>;
3803
4036
  };
3804
- export type UpdateThankYouTemplateDto = {
3805
- autoSendThankYou?: InputMaybe<Scalars['Boolean']['input']>;
3806
- campaignId: Scalars['String']['input'];
3807
- thankYouMediaUrl?: InputMaybe<Scalars['String']['input']>;
3808
- thankYouMessage?: InputMaybe<Scalars['String']['input']>;
3809
- };
3810
4037
  export type UpdateUserSuspendedStatusDto = {
3811
4038
  suspended: Scalars['Boolean']['input'];
3812
4039
  userId: Scalars['String']['input'];
@@ -8702,9 +8929,6 @@ export type CampaignFieldsFragment = {
8702
8929
  vtxComissionPct: number;
8703
8930
  createdDate: string;
8704
8931
  endingDate: string;
8705
- thankYouMessage?: string | null;
8706
- thankYouMediaUrl?: string | null;
8707
- autoSendThankYou: boolean;
8708
8932
  video?: {
8709
8933
  _id: string;
8710
8934
  source: string;
@@ -8819,16 +9043,6 @@ export type CampaignFieldsFragment = {
8819
9043
  useType?: string | null;
8820
9044
  } | null;
8821
9045
  };
8822
- export type DonationThankYouFieldsFragment = {
8823
- _id: string;
8824
- message: string;
8825
- mediaUrl?: string | null;
8826
- autoSent: boolean;
8827
- emailSent: boolean;
8828
- donorEmail?: string | null;
8829
- donorName?: string | null;
8830
- sentDate: string;
8831
- };
8832
9046
  export type BrowseCampaignFieldsFragment = {
8833
9047
  _id: string;
8834
9048
  title: string;
@@ -9003,9 +9217,6 @@ export type GetAthleteCampaignsQuery = {
9003
9217
  vtxComissionPct: number;
9004
9218
  createdDate: string;
9005
9219
  endingDate: string;
9006
- thankYouMessage?: string | null;
9007
- thankYouMediaUrl?: string | null;
9008
- autoSendThankYou: boolean;
9009
9220
  athlete: {
9010
9221
  _id: string;
9011
9222
  firstName: string;
@@ -9450,9 +9661,6 @@ export type CreateFundingCampaignMutation = {
9450
9661
  vtxComissionPct: number;
9451
9662
  createdDate: string;
9452
9663
  endingDate: string;
9453
- thankYouMessage?: string | null;
9454
- thankYouMediaUrl?: string | null;
9455
- autoSendThankYou: boolean;
9456
9664
  video?: {
9457
9665
  _id: string;
9458
9666
  source: string;
@@ -9586,9 +9794,6 @@ export type UpdateFundingCampaignMutation = {
9586
9794
  vtxComissionPct: number;
9587
9795
  createdDate: string;
9588
9796
  endingDate: string;
9589
- thankYouMessage?: string | null;
9590
- thankYouMediaUrl?: string | null;
9591
- autoSendThankYou: boolean;
9592
9797
  video?: {
9593
9798
  _id: string;
9594
9799
  source: string;
@@ -9749,9 +9954,6 @@ export type SetFundingStatusMutation = {
9749
9954
  vtxComissionPct: number;
9750
9955
  createdDate: string;
9751
9956
  endingDate: string;
9752
- thankYouMessage?: string | null;
9753
- thankYouMediaUrl?: string | null;
9754
- autoSendThankYou: boolean;
9755
9957
  video?: {
9756
9958
  _id: string;
9757
9959
  source: string;
@@ -9885,9 +10087,6 @@ export type SetCurrentCampaignMutation = {
9885
10087
  vtxComissionPct: number;
9886
10088
  createdDate: string;
9887
10089
  endingDate: string;
9888
- thankYouMessage?: string | null;
9889
- thankYouMediaUrl?: string | null;
9890
- autoSendThankYou: boolean;
9891
10090
  video?: {
9892
10091
  _id: string;
9893
10092
  source: string;
@@ -10556,295 +10755,114 @@ export type GetTransactionsPaginatedQuery = {
10556
10755
  };
10557
10756
  };
10558
10757
  };
10559
- export type CampaignThankYousQueryVariables = Exact<{
10560
- campaignId: Scalars['String']['input'];
10758
+ export type GetEmailCampaignsQueryVariables = Exact<{
10759
+ status?: InputMaybe<Scalars['String']['input']>;
10760
+ search?: InputMaybe<Scalars['String']['input']>;
10761
+ page?: InputMaybe<Scalars['Int']['input']>;
10762
+ limit?: InputMaybe<Scalars['Int']['input']>;
10763
+ }>;
10764
+ export type GetEmailCampaignsQuery = {
10765
+ getEmailCampaigns: {
10766
+ total: number;
10767
+ campaigns: Array<{
10768
+ _id: string;
10769
+ subject: string;
10770
+ templateId?: string | null;
10771
+ templateName?: string | null;
10772
+ htmlContent?: string | null;
10773
+ audienceFilters: any;
10774
+ segmentId?: string | null;
10775
+ status: string;
10776
+ scheduledFor?: string | null;
10777
+ sentAt?: string | null;
10778
+ recipientCount?: number | null;
10779
+ createdBy: string;
10780
+ createdAt: string;
10781
+ updatedAt?: string | null;
10782
+ testSentAt?: string | null;
10783
+ deliveryStats?: {
10784
+ delivered: number;
10785
+ opens: number;
10786
+ uniqueOpens: number;
10787
+ clicks: number;
10788
+ uniqueClicks: number;
10789
+ bounces: number;
10790
+ spamReports: number;
10791
+ lastUpdated: string;
10792
+ } | null;
10793
+ segment?: {
10794
+ _id: string;
10795
+ name: string;
10796
+ filters: any;
10797
+ createdBy: string;
10798
+ createdAt: string;
10799
+ } | null;
10800
+ }>;
10801
+ };
10802
+ };
10803
+ export type GetAudiencePreviewQueryVariables = Exact<{
10804
+ filters: AudienceFilterDto;
10805
+ }>;
10806
+ export type GetAudiencePreviewQuery = {
10807
+ getAudiencePreview: {
10808
+ total: number;
10809
+ users: Array<{
10810
+ firstName?: string | null;
10811
+ lastName?: string | null;
10812
+ email: string;
10813
+ userType: string;
10814
+ }>;
10815
+ };
10816
+ };
10817
+ export type GetSendGridTemplatesQueryVariables = Exact<{
10818
+ [key: string]: never;
10819
+ }>;
10820
+ export type GetSendGridTemplatesQuery = {
10821
+ getSendGridTemplates: Array<{
10822
+ id: string;
10823
+ name: string;
10824
+ subject?: string | null;
10825
+ updatedAt?: string | null;
10826
+ }>;
10827
+ };
10828
+ export type GetSendGridTemplatePreviewQueryVariables = Exact<{
10829
+ templateId: Scalars['String']['input'];
10830
+ }>;
10831
+ export type GetSendGridTemplatePreviewQuery = {
10832
+ getSendGridTemplatePreview?: string | null;
10833
+ };
10834
+ export type GetEmailSegmentsQueryVariables = Exact<{
10835
+ [key: string]: never;
10561
10836
  }>;
10562
- export type CampaignThankYousQuery = {
10563
- campaignThankYous: Array<{
10837
+ export type GetEmailSegmentsQuery = {
10838
+ getEmailSegments: Array<{
10564
10839
  _id: string;
10565
- message: string;
10566
- mediaUrl?: string | null;
10567
- autoSent: boolean;
10568
- emailSent: boolean;
10569
- donorEmail?: string | null;
10570
- donorName?: string | null;
10571
- sentDate: string;
10840
+ name: string;
10841
+ filters: any;
10842
+ createdBy: string;
10843
+ createdAt: string;
10572
10844
  }>;
10573
10845
  };
10574
- export type DonationThankYouQueryVariables = Exact<{
10575
- donationId: Scalars['String']['input'];
10846
+ export type CreateEmailCampaignMutationVariables = Exact<{
10847
+ input: CreateEmailCampaignDto;
10576
10848
  }>;
10577
- export type DonationThankYouQuery = {
10578
- donationThankYou?: {
10849
+ export type CreateEmailCampaignMutation = {
10850
+ createEmailCampaign: {
10579
10851
  _id: string;
10580
- message: string;
10581
- mediaUrl?: string | null;
10582
- autoSent: boolean;
10583
- emailSent: boolean;
10584
- donorEmail?: string | null;
10585
- donorName?: string | null;
10586
- sentDate: string;
10587
- } | null;
10852
+ subject: string;
10853
+ status: string;
10854
+ createdAt: string;
10855
+ updatedAt?: string | null;
10856
+ };
10588
10857
  };
10589
- export type UpdateThankYouTemplateMutationVariables = Exact<{
10590
- input: UpdateThankYouTemplateDto;
10858
+ export type UpdateEmailCampaignMutationVariables = Exact<{
10859
+ id: Scalars['String']['input'];
10860
+ input: UpdateEmailCampaignDto;
10591
10861
  }>;
10592
- export type UpdateThankYouTemplateMutation = {
10593
- updateThankYouTemplate: {
10862
+ export type UpdateEmailCampaignMutation = {
10863
+ updateEmailCampaign: {
10594
10864
  _id: string;
10595
- budgetMode: string;
10596
- status: string;
10597
- title: string;
10598
- slug?: string | null;
10599
- motivation?: string | null;
10600
- website?: string | null;
10601
- fundsRequired: number;
10602
- initialFundsObtained: number;
10603
- fundsObtained: number;
10604
- vtxComissionPct: number;
10605
- createdDate: string;
10606
- endingDate: string;
10607
- thankYouMessage?: string | null;
10608
- thankYouMediaUrl?: string | null;
10609
- autoSendThankYou: boolean;
10610
- video?: {
10611
- _id: string;
10612
- source: string;
10613
- url: string;
10614
- sourceData: string;
10615
- } | null;
10616
- location?: {
10617
- userProvidedLatitude?: number | null;
10618
- userProvidedLongitude?: number | null;
10619
- cityNameGeocode?: string | null;
10620
- stateNameGeocode?: string | null;
10621
- countryIso2CodeGeocode?: string | null;
10622
- timeZoneGeocode?: string | null;
10623
- latitudeGeocode?: number | null;
10624
- longitudeGeocode?: number | null;
10625
- city?: {
10626
- _id: string;
10627
- name: string;
10628
- localizedName: string;
10629
- latitude?: number | null;
10630
- longitude?: number | null;
10631
- timezone?: string | null;
10632
- state?: {
10633
- _id: string;
10634
- name: string;
10635
- country?: {
10636
- _id: string;
10637
- name: string;
10638
- } | null;
10639
- } | null;
10640
- } | null;
10641
- } | null;
10642
- budget?: {
10643
- initialFunds: number;
10644
- totalRequired: number;
10645
- items?: Array<{
10646
- _id: string;
10647
- quantity: number;
10648
- concept: string;
10649
- itemCost: number;
10650
- unit?: string | null;
10651
- }> | null;
10652
- } | null;
10653
- competitions?: Array<{
10654
- _id: string;
10655
- participationDate?: string | null;
10656
- competitionNumber?: string | null;
10657
- fundRaisingCampaignIds?: Array<string> | null;
10658
- event: {
10659
- _id: string;
10660
- name: string;
10661
- eventWebSite?: string | null;
10662
- startDate: string;
10663
- endDate?: string | null;
10664
- verified: boolean;
10665
- mainSport?: {
10666
- _id: string;
10667
- name: string;
10668
- } | null;
10669
- banner?: {
10670
- _id: string;
10671
- name?: string | null;
10672
- contentType?: string | null;
10673
- size?: number | null;
10674
- useType?: string | null;
10675
- url: string;
10676
- key: string;
10677
- } | null;
10678
- location?: {
10679
- _id: string;
10680
- userProvidedLatitude?: number | null;
10681
- userProvidedLongitude?: number | null;
10682
- cityNameGeocode?: string | null;
10683
- stateNameGeocode?: string | null;
10684
- countryIso2CodeGeocode?: string | null;
10685
- timeZoneGeocode?: string | null;
10686
- latitudeGeocode?: number | null;
10687
- longitudeGeocode?: number | null;
10688
- city?: {
10689
- _id: string;
10690
- name: string;
10691
- localizedName: string;
10692
- latitude?: number | null;
10693
- longitude?: number | null;
10694
- timezone?: string | null;
10695
- state?: {
10696
- _id: string;
10697
- name: string;
10698
- country?: {
10699
- _id: string;
10700
- name: string;
10701
- } | null;
10702
- } | null;
10703
- } | null;
10704
- } | null;
10705
- };
10706
- result?: {
10707
- resultType: string;
10708
- position?: number | null;
10709
- score?: string | null;
10710
- finishTimeMS?: number | null;
10711
- resultWebLink?: string | null;
10712
- } | null;
10713
- }> | null;
10714
- coverImage?: {
10715
- _id: string;
10716
- url: string;
10717
- key: string;
10718
- name?: string | null;
10719
- contentType?: string | null;
10720
- size?: number | null;
10721
- useType?: string | null;
10722
- } | null;
10723
- };
10724
- };
10725
- export type SendThankYouMutationVariables = Exact<{
10726
- input: SendThankYouDto;
10727
- }>;
10728
- export type SendThankYouMutation = {
10729
- sendThankYou: {
10730
- _id: string;
10731
- message: string;
10732
- mediaUrl?: string | null;
10733
- autoSent: boolean;
10734
- emailSent: boolean;
10735
- donorEmail?: string | null;
10736
- donorName?: string | null;
10737
- sentDate: string;
10738
- };
10739
- };
10740
- export type GetEmailCampaignsQueryVariables = Exact<{
10741
- status?: InputMaybe<Scalars['String']['input']>;
10742
- search?: InputMaybe<Scalars['String']['input']>;
10743
- page?: InputMaybe<Scalars['Int']['input']>;
10744
- limit?: InputMaybe<Scalars['Int']['input']>;
10745
- }>;
10746
- export type GetEmailCampaignsQuery = {
10747
- getEmailCampaigns: {
10748
- total: number;
10749
- campaigns: Array<{
10750
- _id: string;
10751
- subject: string;
10752
- templateId?: string | null;
10753
- templateName?: string | null;
10754
- htmlContent?: string | null;
10755
- audienceFilters: any;
10756
- segmentId?: string | null;
10757
- status: string;
10758
- scheduledFor?: string | null;
10759
- sentAt?: string | null;
10760
- recipientCount?: number | null;
10761
- createdBy: string;
10762
- createdAt: string;
10763
- updatedAt?: string | null;
10764
- testSentAt?: string | null;
10765
- deliveryStats?: {
10766
- delivered: number;
10767
- opens: number;
10768
- uniqueOpens: number;
10769
- clicks: number;
10770
- uniqueClicks: number;
10771
- bounces: number;
10772
- spamReports: number;
10773
- lastUpdated: string;
10774
- } | null;
10775
- segment?: {
10776
- _id: string;
10777
- name: string;
10778
- filters: any;
10779
- createdBy: string;
10780
- createdAt: string;
10781
- } | null;
10782
- }>;
10783
- };
10784
- };
10785
- export type GetAudiencePreviewQueryVariables = Exact<{
10786
- filters: AudienceFilterDto;
10787
- }>;
10788
- export type GetAudiencePreviewQuery = {
10789
- getAudiencePreview: {
10790
- total: number;
10791
- users: Array<{
10792
- firstName?: string | null;
10793
- lastName?: string | null;
10794
- email: string;
10795
- userType: string;
10796
- }>;
10797
- };
10798
- };
10799
- export type GetSendGridTemplatesQueryVariables = Exact<{
10800
- [key: string]: never;
10801
- }>;
10802
- export type GetSendGridTemplatesQuery = {
10803
- getSendGridTemplates: Array<{
10804
- id: string;
10805
- name: string;
10806
- subject?: string | null;
10807
- updatedAt?: string | null;
10808
- }>;
10809
- };
10810
- export type GetSendGridTemplatePreviewQueryVariables = Exact<{
10811
- templateId: Scalars['String']['input'];
10812
- }>;
10813
- export type GetSendGridTemplatePreviewQuery = {
10814
- getSendGridTemplatePreview?: string | null;
10815
- };
10816
- export type GetEmailSegmentsQueryVariables = Exact<{
10817
- [key: string]: never;
10818
- }>;
10819
- export type GetEmailSegmentsQuery = {
10820
- getEmailSegments: Array<{
10821
- _id: string;
10822
- name: string;
10823
- filters: any;
10824
- createdBy: string;
10825
- createdAt: string;
10826
- }>;
10827
- };
10828
- export type CreateEmailCampaignMutationVariables = Exact<{
10829
- input: CreateEmailCampaignDto;
10830
- }>;
10831
- export type CreateEmailCampaignMutation = {
10832
- createEmailCampaign: {
10833
- _id: string;
10834
- subject: string;
10835
- status: string;
10836
- createdAt: string;
10837
- updatedAt?: string | null;
10838
- };
10839
- };
10840
- export type UpdateEmailCampaignMutationVariables = Exact<{
10841
- id: Scalars['String']['input'];
10842
- input: UpdateEmailCampaignDto;
10843
- }>;
10844
- export type UpdateEmailCampaignMutation = {
10845
- updateEmailCampaign: {
10846
- _id: string;
10847
- subject: string;
10865
+ subject: string;
10848
10866
  status: string;
10849
10867
  updatedAt?: string | null;
10850
10868
  };
@@ -12976,6 +12994,808 @@ export type CreateCityMutation = {
12976
12994
  timezone?: string | null;
12977
12995
  };
12978
12996
  };
12997
+ export type TeamFieldsFragment = {
12998
+ _id: string;
12999
+ name: string;
13000
+ description?: string | null;
13001
+ approved?: boolean | null;
13002
+ clubId?: string | null;
13003
+ joinPolicy?: string | null;
13004
+ maxRosterSize?: number | null;
13005
+ visibility?: string | null;
13006
+ stripeAccountId?: string | null;
13007
+ vtxScore?: number | null;
13008
+ sports?: Array<{
13009
+ _id: string;
13010
+ name: string;
13011
+ }> | null;
13012
+ logo?: {
13013
+ _id: string;
13014
+ url: string;
13015
+ key: string;
13016
+ } | null;
13017
+ banner?: {
13018
+ _id: string;
13019
+ url: string;
13020
+ key: string;
13021
+ } | null;
13022
+ };
13023
+ export type ClubFieldsFragment = {
13024
+ _id: string;
13025
+ name: string;
13026
+ description?: string | null;
13027
+ location?: string | null;
13028
+ website?: string | null;
13029
+ membershipType: string;
13030
+ feeStructure?: any | null;
13031
+ approved?: boolean | null;
13032
+ visibility: string;
13033
+ stripeAccountId?: string | null;
13034
+ sports?: Array<{
13035
+ _id: string;
13036
+ name: string;
13037
+ }> | null;
13038
+ logo?: {
13039
+ _id: string;
13040
+ url: string;
13041
+ key: string;
13042
+ } | null;
13043
+ banner?: {
13044
+ _id: string;
13045
+ url: string;
13046
+ key: string;
13047
+ } | null;
13048
+ teams?: Array<{
13049
+ _id: string;
13050
+ name: string;
13051
+ description?: string | null;
13052
+ approved?: boolean | null;
13053
+ clubId?: string | null;
13054
+ joinPolicy?: string | null;
13055
+ maxRosterSize?: number | null;
13056
+ visibility?: string | null;
13057
+ stripeAccountId?: string | null;
13058
+ vtxScore?: number | null;
13059
+ sports?: Array<{
13060
+ _id: string;
13061
+ name: string;
13062
+ }> | null;
13063
+ logo?: {
13064
+ _id: string;
13065
+ url: string;
13066
+ key: string;
13067
+ } | null;
13068
+ banner?: {
13069
+ _id: string;
13070
+ url: string;
13071
+ key: string;
13072
+ } | null;
13073
+ }> | null;
13074
+ };
13075
+ export type AthleteTeamFieldsFragment = {
13076
+ _id: string;
13077
+ teamId: string;
13078
+ athleteId: string;
13079
+ sportId: string;
13080
+ role: string;
13081
+ status: string;
13082
+ joinedAt?: string | null;
13083
+ leftAt?: string | null;
13084
+ };
13085
+ export type AthleteClubFieldsFragment = {
13086
+ _id: string;
13087
+ clubId: string;
13088
+ athleteId: string;
13089
+ role: string;
13090
+ status: string;
13091
+ joinedAt?: string | null;
13092
+ leftAt?: string | null;
13093
+ club?: {
13094
+ _id: string;
13095
+ name: string;
13096
+ } | null;
13097
+ };
13098
+ export type TeamAnalyticsFieldsFragment = {
13099
+ teamId: string;
13100
+ teamName: string;
13101
+ vtxScore?: number | null;
13102
+ athleteCount: number;
13103
+ rosterSize?: number | null;
13104
+ vtxScoreHistory?: Array<{
13105
+ date: string;
13106
+ score: number;
13107
+ }> | null;
13108
+ topPerformers?: Array<{
13109
+ athleteId: string;
13110
+ athleteName: string;
13111
+ athletePhoto?: string | null;
13112
+ sport?: string | null;
13113
+ vtxScore: number;
13114
+ rank: number;
13115
+ tpiScore?: number | null;
13116
+ spiScore?: number | null;
13117
+ apiScore?: number | null;
13118
+ }> | null;
13119
+ };
13120
+ export type TeamLeaderboardEntryFieldsFragment = {
13121
+ athleteId: string;
13122
+ athleteName: string;
13123
+ athletePhoto?: string | null;
13124
+ sport?: string | null;
13125
+ vtxScore: number;
13126
+ rank: number;
13127
+ tpiScore?: number | null;
13128
+ spiScore?: number | null;
13129
+ apiScore?: number | null;
13130
+ };
13131
+ export type FindTeamByIdQueryVariables = Exact<{
13132
+ teamId: Scalars['String']['input'];
13133
+ }>;
13134
+ export type FindTeamByIdQuery = {
13135
+ findTeamById: {
13136
+ _id: string;
13137
+ name: string;
13138
+ description?: string | null;
13139
+ approved?: boolean | null;
13140
+ clubId?: string | null;
13141
+ joinPolicy?: string | null;
13142
+ maxRosterSize?: number | null;
13143
+ visibility?: string | null;
13144
+ stripeAccountId?: string | null;
13145
+ vtxScore?: number | null;
13146
+ sports?: Array<{
13147
+ _id: string;
13148
+ name: string;
13149
+ }> | null;
13150
+ logo?: {
13151
+ _id: string;
13152
+ url: string;
13153
+ key: string;
13154
+ } | null;
13155
+ banner?: {
13156
+ _id: string;
13157
+ url: string;
13158
+ key: string;
13159
+ } | null;
13160
+ };
13161
+ };
13162
+ export type FindTeamsQueryVariables = Exact<{
13163
+ sportId?: InputMaybe<Scalars['String']['input']>;
13164
+ clubId?: InputMaybe<Scalars['String']['input']>;
13165
+ }>;
13166
+ export type FindTeamsQuery = {
13167
+ findTeams: Array<{
13168
+ _id: string;
13169
+ name: string;
13170
+ description?: string | null;
13171
+ approved?: boolean | null;
13172
+ clubId?: string | null;
13173
+ joinPolicy?: string | null;
13174
+ maxRosterSize?: number | null;
13175
+ visibility?: string | null;
13176
+ stripeAccountId?: string | null;
13177
+ vtxScore?: number | null;
13178
+ sports?: Array<{
13179
+ _id: string;
13180
+ name: string;
13181
+ }> | null;
13182
+ logo?: {
13183
+ _id: string;
13184
+ url: string;
13185
+ key: string;
13186
+ } | null;
13187
+ banner?: {
13188
+ _id: string;
13189
+ url: string;
13190
+ key: string;
13191
+ } | null;
13192
+ }>;
13193
+ };
13194
+ export type GetTeamRosterQueryVariables = Exact<{
13195
+ teamId: Scalars['String']['input'];
13196
+ }>;
13197
+ export type GetTeamRosterQuery = {
13198
+ getTeamRoster: Array<{
13199
+ _id: string;
13200
+ teamId: string;
13201
+ athleteId: string;
13202
+ sportId: string;
13203
+ role: string;
13204
+ status: string;
13205
+ joinedAt?: string | null;
13206
+ leftAt?: string | null;
13207
+ }>;
13208
+ };
13209
+ export type GetTeamAnalyticsQueryVariables = Exact<{
13210
+ teamId: Scalars['String']['input'];
13211
+ }>;
13212
+ export type GetTeamAnalyticsQuery = {
13213
+ getTeamAnalytics: {
13214
+ teamId: string;
13215
+ teamName: string;
13216
+ vtxScore?: number | null;
13217
+ athleteCount: number;
13218
+ rosterSize?: number | null;
13219
+ vtxScoreHistory?: Array<{
13220
+ date: string;
13221
+ score: number;
13222
+ }> | null;
13223
+ topPerformers?: Array<{
13224
+ athleteId: string;
13225
+ athleteName: string;
13226
+ athletePhoto?: string | null;
13227
+ sport?: string | null;
13228
+ vtxScore: number;
13229
+ rank: number;
13230
+ tpiScore?: number | null;
13231
+ spiScore?: number | null;
13232
+ apiScore?: number | null;
13233
+ }> | null;
13234
+ };
13235
+ };
13236
+ export type GetTeamLeaderboardQueryVariables = Exact<{
13237
+ teamId: Scalars['String']['input'];
13238
+ }>;
13239
+ export type GetTeamLeaderboardQuery = {
13240
+ getTeamLeaderboard: Array<{
13241
+ athleteId: string;
13242
+ athleteName: string;
13243
+ athletePhoto?: string | null;
13244
+ sport?: string | null;
13245
+ vtxScore: number;
13246
+ rank: number;
13247
+ tpiScore?: number | null;
13248
+ spiScore?: number | null;
13249
+ apiScore?: number | null;
13250
+ }>;
13251
+ };
13252
+ export type GetTeamDashboardQueryVariables = Exact<{
13253
+ teamId: Scalars['String']['input'];
13254
+ }>;
13255
+ export type GetTeamDashboardQuery = {
13256
+ getTeamDashboard: {
13257
+ analytics: {
13258
+ teamId: string;
13259
+ teamName: string;
13260
+ vtxScore?: number | null;
13261
+ athleteCount: number;
13262
+ rosterSize?: number | null;
13263
+ vtxScoreHistory?: Array<{
13264
+ date: string;
13265
+ score: number;
13266
+ }> | null;
13267
+ topPerformers?: Array<{
13268
+ athleteId: string;
13269
+ athleteName: string;
13270
+ athletePhoto?: string | null;
13271
+ sport?: string | null;
13272
+ vtxScore: number;
13273
+ rank: number;
13274
+ tpiScore?: number | null;
13275
+ spiScore?: number | null;
13276
+ apiScore?: number | null;
13277
+ }> | null;
13278
+ };
13279
+ roster: {
13280
+ totalActive: number;
13281
+ totalInactive: number;
13282
+ recentJoins: number;
13283
+ recentDepartures: number;
13284
+ };
13285
+ leaderboard: Array<{
13286
+ athleteId: string;
13287
+ athleteName: string;
13288
+ athletePhoto?: string | null;
13289
+ sport?: string | null;
13290
+ vtxScore: number;
13291
+ rank: number;
13292
+ tpiScore?: number | null;
13293
+ spiScore?: number | null;
13294
+ apiScore?: number | null;
13295
+ }>;
13296
+ };
13297
+ };
13298
+ export type GetTeamStripeAccountStatusQueryVariables = Exact<{
13299
+ teamId: Scalars['String']['input'];
13300
+ }>;
13301
+ export type GetTeamStripeAccountStatusQuery = {
13302
+ getTeamStripeAccountStatus?: {
13303
+ chargesEnabled: boolean;
13304
+ payoutsEnabled: boolean;
13305
+ detailsSubmitted: boolean;
13306
+ } | null;
13307
+ };
13308
+ export type CreateTeamMutationVariables = Exact<{
13309
+ input: CreateTeamInput;
13310
+ }>;
13311
+ export type CreateTeamMutation = {
13312
+ createTeam: {
13313
+ _id: string;
13314
+ name: string;
13315
+ description?: string | null;
13316
+ approved?: boolean | null;
13317
+ clubId?: string | null;
13318
+ joinPolicy?: string | null;
13319
+ maxRosterSize?: number | null;
13320
+ visibility?: string | null;
13321
+ stripeAccountId?: string | null;
13322
+ vtxScore?: number | null;
13323
+ sports?: Array<{
13324
+ _id: string;
13325
+ name: string;
13326
+ }> | null;
13327
+ logo?: {
13328
+ _id: string;
13329
+ url: string;
13330
+ key: string;
13331
+ } | null;
13332
+ banner?: {
13333
+ _id: string;
13334
+ url: string;
13335
+ key: string;
13336
+ } | null;
13337
+ };
13338
+ };
13339
+ export type UpdateTeamMutationVariables = Exact<{
13340
+ input: UpdateTeamInput;
13341
+ }>;
13342
+ export type UpdateTeamMutation = {
13343
+ updateTeam: {
13344
+ _id: string;
13345
+ name: string;
13346
+ description?: string | null;
13347
+ approved?: boolean | null;
13348
+ clubId?: string | null;
13349
+ joinPolicy?: string | null;
13350
+ maxRosterSize?: number | null;
13351
+ visibility?: string | null;
13352
+ stripeAccountId?: string | null;
13353
+ vtxScore?: number | null;
13354
+ sports?: Array<{
13355
+ _id: string;
13356
+ name: string;
13357
+ }> | null;
13358
+ logo?: {
13359
+ _id: string;
13360
+ url: string;
13361
+ key: string;
13362
+ } | null;
13363
+ banner?: {
13364
+ _id: string;
13365
+ url: string;
13366
+ key: string;
13367
+ } | null;
13368
+ };
13369
+ };
13370
+ export type JoinTeamMutationVariables = Exact<{
13371
+ input: JoinTeamInput;
13372
+ }>;
13373
+ export type JoinTeamMutation = {
13374
+ joinTeam: {
13375
+ _id: string;
13376
+ teamId: string;
13377
+ athleteId: string;
13378
+ sportId: string;
13379
+ role: string;
13380
+ status: string;
13381
+ joinedAt?: string | null;
13382
+ leftAt?: string | null;
13383
+ };
13384
+ };
13385
+ export type LeaveTeamMutationVariables = Exact<{
13386
+ teamId: Scalars['String']['input'];
13387
+ }>;
13388
+ export type LeaveTeamMutation = {
13389
+ leaveTeam: {
13390
+ _id: string;
13391
+ teamId: string;
13392
+ athleteId: string;
13393
+ sportId: string;
13394
+ role: string;
13395
+ status: string;
13396
+ joinedAt?: string | null;
13397
+ leftAt?: string | null;
13398
+ };
13399
+ };
13400
+ export type InviteToTeamMutationVariables = Exact<{
13401
+ teamId: Scalars['String']['input'];
13402
+ athleteId: Scalars['String']['input'];
13403
+ sportId: Scalars['String']['input'];
13404
+ }>;
13405
+ export type InviteToTeamMutation = {
13406
+ inviteToTeam: {
13407
+ _id: string;
13408
+ teamId: string;
13409
+ athleteId: string;
13410
+ sportId: string;
13411
+ role: string;
13412
+ status: string;
13413
+ joinedAt?: string | null;
13414
+ leftAt?: string | null;
13415
+ };
13416
+ };
13417
+ export type ManageTeamMemberMutationVariables = Exact<{
13418
+ input: ManageTeamMemberInput;
13419
+ }>;
13420
+ export type ManageTeamMemberMutation = {
13421
+ manageTeamMember: {
13422
+ _id: string;
13423
+ teamId: string;
13424
+ athleteId: string;
13425
+ sportId: string;
13426
+ role: string;
13427
+ status: string;
13428
+ joinedAt?: string | null;
13429
+ leftAt?: string | null;
13430
+ };
13431
+ };
13432
+ export type CreateTeamStripeAccountMutationVariables = Exact<{
13433
+ teamId: Scalars['String']['input'];
13434
+ }>;
13435
+ export type CreateTeamStripeAccountMutation = {
13436
+ createTeamStripeAccount: string;
13437
+ };
13438
+ export type CreateTeamDonationCheckoutMutationVariables = Exact<{
13439
+ teamId: Scalars['String']['input'];
13440
+ amount: Scalars['Float']['input'];
13441
+ currency?: Scalars['String']['input'];
13442
+ donorEmail?: InputMaybe<Scalars['String']['input']>;
13443
+ donorName?: InputMaybe<Scalars['String']['input']>;
13444
+ }>;
13445
+ export type CreateTeamDonationCheckoutMutation = {
13446
+ createTeamDonationCheckout: string;
13447
+ };
13448
+ export type FindClubByIdQueryVariables = Exact<{
13449
+ clubId: Scalars['String']['input'];
13450
+ }>;
13451
+ export type FindClubByIdQuery = {
13452
+ findClubById: {
13453
+ _id: string;
13454
+ name: string;
13455
+ description?: string | null;
13456
+ location?: string | null;
13457
+ website?: string | null;
13458
+ membershipType: string;
13459
+ feeStructure?: any | null;
13460
+ approved?: boolean | null;
13461
+ visibility: string;
13462
+ stripeAccountId?: string | null;
13463
+ sports?: Array<{
13464
+ _id: string;
13465
+ name: string;
13466
+ }> | null;
13467
+ logo?: {
13468
+ _id: string;
13469
+ url: string;
13470
+ key: string;
13471
+ } | null;
13472
+ banner?: {
13473
+ _id: string;
13474
+ url: string;
13475
+ key: string;
13476
+ } | null;
13477
+ teams?: Array<{
13478
+ _id: string;
13479
+ name: string;
13480
+ description?: string | null;
13481
+ approved?: boolean | null;
13482
+ clubId?: string | null;
13483
+ joinPolicy?: string | null;
13484
+ maxRosterSize?: number | null;
13485
+ visibility?: string | null;
13486
+ stripeAccountId?: string | null;
13487
+ vtxScore?: number | null;
13488
+ sports?: Array<{
13489
+ _id: string;
13490
+ name: string;
13491
+ }> | null;
13492
+ logo?: {
13493
+ _id: string;
13494
+ url: string;
13495
+ key: string;
13496
+ } | null;
13497
+ banner?: {
13498
+ _id: string;
13499
+ url: string;
13500
+ key: string;
13501
+ } | null;
13502
+ }> | null;
13503
+ };
13504
+ };
13505
+ export type FindClubsQueryVariables = Exact<{
13506
+ sportId?: InputMaybe<Scalars['String']['input']>;
13507
+ }>;
13508
+ export type FindClubsQuery = {
13509
+ findClubs: Array<{
13510
+ _id: string;
13511
+ name: string;
13512
+ description?: string | null;
13513
+ location?: string | null;
13514
+ website?: string | null;
13515
+ membershipType: string;
13516
+ feeStructure?: any | null;
13517
+ approved?: boolean | null;
13518
+ visibility: string;
13519
+ stripeAccountId?: string | null;
13520
+ sports?: Array<{
13521
+ _id: string;
13522
+ name: string;
13523
+ }> | null;
13524
+ logo?: {
13525
+ _id: string;
13526
+ url: string;
13527
+ key: string;
13528
+ } | null;
13529
+ banner?: {
13530
+ _id: string;
13531
+ url: string;
13532
+ key: string;
13533
+ } | null;
13534
+ teams?: Array<{
13535
+ _id: string;
13536
+ name: string;
13537
+ description?: string | null;
13538
+ approved?: boolean | null;
13539
+ clubId?: string | null;
13540
+ joinPolicy?: string | null;
13541
+ maxRosterSize?: number | null;
13542
+ visibility?: string | null;
13543
+ stripeAccountId?: string | null;
13544
+ vtxScore?: number | null;
13545
+ sports?: Array<{
13546
+ _id: string;
13547
+ name: string;
13548
+ }> | null;
13549
+ logo?: {
13550
+ _id: string;
13551
+ url: string;
13552
+ key: string;
13553
+ } | null;
13554
+ banner?: {
13555
+ _id: string;
13556
+ url: string;
13557
+ key: string;
13558
+ } | null;
13559
+ }> | null;
13560
+ }>;
13561
+ };
13562
+ export type GetClubMembersQueryVariables = Exact<{
13563
+ clubId: Scalars['String']['input'];
13564
+ }>;
13565
+ export type GetClubMembersQuery = {
13566
+ getClubMembers: Array<{
13567
+ _id: string;
13568
+ clubId: string;
13569
+ athleteId: string;
13570
+ role: string;
13571
+ status: string;
13572
+ joinedAt?: string | null;
13573
+ leftAt?: string | null;
13574
+ club?: {
13575
+ _id: string;
13576
+ name: string;
13577
+ } | null;
13578
+ }>;
13579
+ };
13580
+ export type GetClubStripeAccountStatusQueryVariables = Exact<{
13581
+ clubId: Scalars['String']['input'];
13582
+ }>;
13583
+ export type GetClubStripeAccountStatusQuery = {
13584
+ getClubStripeAccountStatus?: {
13585
+ chargesEnabled: boolean;
13586
+ payoutsEnabled: boolean;
13587
+ detailsSubmitted: boolean;
13588
+ } | null;
13589
+ };
13590
+ export type CreateClubMutationVariables = Exact<{
13591
+ input: CreateClubInput;
13592
+ }>;
13593
+ export type CreateClubMutation = {
13594
+ createClub: {
13595
+ _id: string;
13596
+ name: string;
13597
+ description?: string | null;
13598
+ location?: string | null;
13599
+ website?: string | null;
13600
+ membershipType: string;
13601
+ feeStructure?: any | null;
13602
+ approved?: boolean | null;
13603
+ visibility: string;
13604
+ stripeAccountId?: string | null;
13605
+ sports?: Array<{
13606
+ _id: string;
13607
+ name: string;
13608
+ }> | null;
13609
+ logo?: {
13610
+ _id: string;
13611
+ url: string;
13612
+ key: string;
13613
+ } | null;
13614
+ banner?: {
13615
+ _id: string;
13616
+ url: string;
13617
+ key: string;
13618
+ } | null;
13619
+ teams?: Array<{
13620
+ _id: string;
13621
+ name: string;
13622
+ description?: string | null;
13623
+ approved?: boolean | null;
13624
+ clubId?: string | null;
13625
+ joinPolicy?: string | null;
13626
+ maxRosterSize?: number | null;
13627
+ visibility?: string | null;
13628
+ stripeAccountId?: string | null;
13629
+ vtxScore?: number | null;
13630
+ sports?: Array<{
13631
+ _id: string;
13632
+ name: string;
13633
+ }> | null;
13634
+ logo?: {
13635
+ _id: string;
13636
+ url: string;
13637
+ key: string;
13638
+ } | null;
13639
+ banner?: {
13640
+ _id: string;
13641
+ url: string;
13642
+ key: string;
13643
+ } | null;
13644
+ }> | null;
13645
+ };
13646
+ };
13647
+ export type UpdateClubMutationVariables = Exact<{
13648
+ input: UpdateClubInput;
13649
+ }>;
13650
+ export type UpdateClubMutation = {
13651
+ updateClub: {
13652
+ _id: string;
13653
+ name: string;
13654
+ description?: string | null;
13655
+ location?: string | null;
13656
+ website?: string | null;
13657
+ membershipType: string;
13658
+ feeStructure?: any | null;
13659
+ approved?: boolean | null;
13660
+ visibility: string;
13661
+ stripeAccountId?: string | null;
13662
+ sports?: Array<{
13663
+ _id: string;
13664
+ name: string;
13665
+ }> | null;
13666
+ logo?: {
13667
+ _id: string;
13668
+ url: string;
13669
+ key: string;
13670
+ } | null;
13671
+ banner?: {
13672
+ _id: string;
13673
+ url: string;
13674
+ key: string;
13675
+ } | null;
13676
+ teams?: Array<{
13677
+ _id: string;
13678
+ name: string;
13679
+ description?: string | null;
13680
+ approved?: boolean | null;
13681
+ clubId?: string | null;
13682
+ joinPolicy?: string | null;
13683
+ maxRosterSize?: number | null;
13684
+ visibility?: string | null;
13685
+ stripeAccountId?: string | null;
13686
+ vtxScore?: number | null;
13687
+ sports?: Array<{
13688
+ _id: string;
13689
+ name: string;
13690
+ }> | null;
13691
+ logo?: {
13692
+ _id: string;
13693
+ url: string;
13694
+ key: string;
13695
+ } | null;
13696
+ banner?: {
13697
+ _id: string;
13698
+ url: string;
13699
+ key: string;
13700
+ } | null;
13701
+ }> | null;
13702
+ };
13703
+ };
13704
+ export type JoinClubMutationVariables = Exact<{
13705
+ input: JoinClubInput;
13706
+ }>;
13707
+ export type JoinClubMutation = {
13708
+ joinClub: {
13709
+ _id: string;
13710
+ clubId: string;
13711
+ athleteId: string;
13712
+ role: string;
13713
+ status: string;
13714
+ joinedAt?: string | null;
13715
+ leftAt?: string | null;
13716
+ club?: {
13717
+ _id: string;
13718
+ name: string;
13719
+ } | null;
13720
+ };
13721
+ };
13722
+ export type LeaveClubMutationVariables = Exact<{
13723
+ clubId: Scalars['String']['input'];
13724
+ }>;
13725
+ export type LeaveClubMutation = {
13726
+ leaveClub: {
13727
+ _id: string;
13728
+ clubId: string;
13729
+ athleteId: string;
13730
+ role: string;
13731
+ status: string;
13732
+ joinedAt?: string | null;
13733
+ leftAt?: string | null;
13734
+ club?: {
13735
+ _id: string;
13736
+ name: string;
13737
+ } | null;
13738
+ };
13739
+ };
13740
+ export type InviteToClubMutationVariables = Exact<{
13741
+ clubId: Scalars['String']['input'];
13742
+ athleteId: Scalars['String']['input'];
13743
+ }>;
13744
+ export type InviteToClubMutation = {
13745
+ inviteToClub: {
13746
+ _id: string;
13747
+ clubId: string;
13748
+ athleteId: string;
13749
+ role: string;
13750
+ status: string;
13751
+ joinedAt?: string | null;
13752
+ leftAt?: string | null;
13753
+ club?: {
13754
+ _id: string;
13755
+ name: string;
13756
+ } | null;
13757
+ };
13758
+ };
13759
+ export type ManageClubMemberMutationVariables = Exact<{
13760
+ input: ManageClubMemberInput;
13761
+ }>;
13762
+ export type ManageClubMemberMutation = {
13763
+ manageClubMember: {
13764
+ _id: string;
13765
+ clubId: string;
13766
+ athleteId: string;
13767
+ role: string;
13768
+ status: string;
13769
+ joinedAt?: string | null;
13770
+ leftAt?: string | null;
13771
+ club?: {
13772
+ _id: string;
13773
+ name: string;
13774
+ } | null;
13775
+ };
13776
+ };
13777
+ export type CreateClubStripeAccountMutationVariables = Exact<{
13778
+ clubId: Scalars['String']['input'];
13779
+ }>;
13780
+ export type CreateClubStripeAccountMutation = {
13781
+ createClubStripeAccount: string;
13782
+ };
13783
+ export type CreateClubDonationCheckoutMutationVariables = Exact<{
13784
+ clubId: Scalars['String']['input'];
13785
+ amount: Scalars['Float']['input'];
13786
+ currency?: Scalars['String']['input'];
13787
+ donorEmail?: InputMaybe<Scalars['String']['input']>;
13788
+ donorName?: InputMaybe<Scalars['String']['input']>;
13789
+ }>;
13790
+ export type CreateClubDonationCheckoutMutation = {
13791
+ createClubDonationCheckout: string;
13792
+ };
13793
+ export type CreateMembershipFeeCheckoutMutationVariables = Exact<{
13794
+ clubId: Scalars['String']['input'];
13795
+ }>;
13796
+ export type CreateMembershipFeeCheckoutMutation = {
13797
+ createMembershipFeeCheckout?: string | null;
13798
+ };
12979
13799
  export type FindUserByEmailQueryVariables = Exact<{
12980
13800
  email: Scalars['String']['input'];
12981
13801
  }>;
@@ -13467,7 +14287,6 @@ export declare const CurrentCampaignFieldsFragmentDoc: import("graphql").Documen
13467
14287
  export declare const HistoricalScoreFieldsFragmentDoc: import("graphql").DocumentNode;
13468
14288
  export declare const HistoricalScoresPeriodFieldsFragmentDoc: import("graphql").DocumentNode;
13469
14289
  export declare const CampaignFieldsFragmentDoc: import("graphql").DocumentNode;
13470
- export declare const DonationThankYouFieldsFragmentDoc: import("graphql").DocumentNode;
13471
14290
  export declare const BrowseCampaignFieldsFragmentDoc: import("graphql").DocumentNode;
13472
14291
  export declare const DonationFieldsFragmentDoc: import("graphql").DocumentNode;
13473
14292
  export declare const DonationAthleteRefFragmentDoc: import("graphql").DocumentNode;
@@ -13482,6 +14301,12 @@ export declare const Awss3FileFieldsFragmentDoc: import("graphql").DocumentNode;
13482
14301
  export declare const BrandFullFieldsFragmentDoc: import("graphql").DocumentNode;
13483
14302
  export declare const SponsorshipFullFieldsFragmentDoc: import("graphql").DocumentNode;
13484
14303
  export declare const PaginationInfoFieldsFragmentDoc: import("graphql").DocumentNode;
14304
+ export declare const TeamFieldsFragmentDoc: import("graphql").DocumentNode;
14305
+ export declare const ClubFieldsFragmentDoc: import("graphql").DocumentNode;
14306
+ export declare const AthleteTeamFieldsFragmentDoc: import("graphql").DocumentNode;
14307
+ export declare const AthleteClubFieldsFragmentDoc: import("graphql").DocumentNode;
14308
+ export declare const TeamAnalyticsFieldsFragmentDoc: import("graphql").DocumentNode;
14309
+ export declare const TeamLeaderboardEntryFieldsFragmentDoc: import("graphql").DocumentNode;
13485
14310
  export declare const GetAiCoachThreadDocument: import("graphql").DocumentNode;
13486
14311
  export declare const GetAiCoachThreadHistoryDocument: import("graphql").DocumentNode;
13487
14312
  export declare const GetAiCoachThreadMessagesDocument: import("graphql").DocumentNode;
@@ -13594,10 +14419,6 @@ export declare const GetReceiptDocument: import("graphql").DocumentNode;
13594
14419
  export declare const GetTransactionDetailsDocument: import("graphql").DocumentNode;
13595
14420
  export declare const GetAllTransactionsDocument: import("graphql").DocumentNode;
13596
14421
  export declare const GetTransactionsPaginatedDocument: import("graphql").DocumentNode;
13597
- export declare const CampaignThankYousDocument: import("graphql").DocumentNode;
13598
- export declare const DonationThankYouDocument: import("graphql").DocumentNode;
13599
- export declare const UpdateThankYouTemplateDocument: import("graphql").DocumentNode;
13600
- export declare const SendThankYouDocument: import("graphql").DocumentNode;
13601
14422
  export declare const GetEmailCampaignsDocument: import("graphql").DocumentNode;
13602
14423
  export declare const GetAudiencePreviewDocument: import("graphql").DocumentNode;
13603
14424
  export declare const GetSendGridTemplatesDocument: import("graphql").DocumentNode;
@@ -13697,6 +14518,34 @@ export declare const CreateSportLevelDocument: import("graphql").DocumentNode;
13697
14518
  export declare const CreateCountryDocument: import("graphql").DocumentNode;
13698
14519
  export declare const CreateStateDocument: import("graphql").DocumentNode;
13699
14520
  export declare const CreateCityDocument: import("graphql").DocumentNode;
14521
+ export declare const FindTeamByIdDocument: import("graphql").DocumentNode;
14522
+ export declare const FindTeamsDocument: import("graphql").DocumentNode;
14523
+ export declare const GetTeamRosterDocument: import("graphql").DocumentNode;
14524
+ export declare const GetTeamAnalyticsDocument: import("graphql").DocumentNode;
14525
+ export declare const GetTeamLeaderboardDocument: import("graphql").DocumentNode;
14526
+ export declare const GetTeamDashboardDocument: import("graphql").DocumentNode;
14527
+ export declare const GetTeamStripeAccountStatusDocument: import("graphql").DocumentNode;
14528
+ export declare const CreateTeamDocument: import("graphql").DocumentNode;
14529
+ export declare const UpdateTeamDocument: import("graphql").DocumentNode;
14530
+ export declare const JoinTeamDocument: import("graphql").DocumentNode;
14531
+ export declare const LeaveTeamDocument: import("graphql").DocumentNode;
14532
+ export declare const InviteToTeamDocument: import("graphql").DocumentNode;
14533
+ export declare const ManageTeamMemberDocument: import("graphql").DocumentNode;
14534
+ export declare const CreateTeamStripeAccountDocument: import("graphql").DocumentNode;
14535
+ export declare const CreateTeamDonationCheckoutDocument: import("graphql").DocumentNode;
14536
+ export declare const FindClubByIdDocument: import("graphql").DocumentNode;
14537
+ export declare const FindClubsDocument: import("graphql").DocumentNode;
14538
+ export declare const GetClubMembersDocument: import("graphql").DocumentNode;
14539
+ export declare const GetClubStripeAccountStatusDocument: import("graphql").DocumentNode;
14540
+ export declare const CreateClubDocument: import("graphql").DocumentNode;
14541
+ export declare const UpdateClubDocument: import("graphql").DocumentNode;
14542
+ export declare const JoinClubDocument: import("graphql").DocumentNode;
14543
+ export declare const LeaveClubDocument: import("graphql").DocumentNode;
14544
+ export declare const InviteToClubDocument: import("graphql").DocumentNode;
14545
+ export declare const ManageClubMemberDocument: import("graphql").DocumentNode;
14546
+ export declare const CreateClubStripeAccountDocument: import("graphql").DocumentNode;
14547
+ export declare const CreateClubDonationCheckoutDocument: import("graphql").DocumentNode;
14548
+ export declare const CreateMembershipFeeCheckoutDocument: import("graphql").DocumentNode;
13700
14549
  export declare const FindUserByEmailDocument: import("graphql").DocumentNode;
13701
14550
  export declare const FindVtxUserDocument: import("graphql").DocumentNode;
13702
14551
  export declare const GetUserImagesFromEmailDocument: import("graphql").DocumentNode;
@@ -13827,10 +14676,6 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
13827
14676
  GetTransactionDetails(variables: GetTransactionDetailsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTransactionDetailsQuery>;
13828
14677
  GetAllTransactions(variables?: GetAllTransactionsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetAllTransactionsQuery>;
13829
14678
  GetTransactionsPaginated(variables?: GetTransactionsPaginatedQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTransactionsPaginatedQuery>;
13830
- CampaignThankYous(variables: CampaignThankYousQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CampaignThankYousQuery>;
13831
- DonationThankYou(variables: DonationThankYouQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<DonationThankYouQuery>;
13832
- UpdateThankYouTemplate(variables: UpdateThankYouTemplateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateThankYouTemplateMutation>;
13833
- SendThankYou(variables: SendThankYouMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<SendThankYouMutation>;
13834
14679
  GetEmailCampaigns(variables?: GetEmailCampaignsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetEmailCampaignsQuery>;
13835
14680
  GetAudiencePreview(variables: GetAudiencePreviewQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetAudiencePreviewQuery>;
13836
14681
  GetSendGridTemplates(variables?: GetSendGridTemplatesQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetSendGridTemplatesQuery>;
@@ -13930,6 +14775,34 @@ export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionW
13930
14775
  CreateCountry(variables: CreateCountryMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateCountryMutation>;
13931
14776
  CreateState(variables: CreateStateMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateStateMutation>;
13932
14777
  CreateCity(variables: CreateCityMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateCityMutation>;
14778
+ FindTeamById(variables: FindTeamByIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindTeamByIdQuery>;
14779
+ FindTeams(variables?: FindTeamsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindTeamsQuery>;
14780
+ GetTeamRoster(variables: GetTeamRosterQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamRosterQuery>;
14781
+ GetTeamAnalytics(variables: GetTeamAnalyticsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamAnalyticsQuery>;
14782
+ GetTeamLeaderboard(variables: GetTeamLeaderboardQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamLeaderboardQuery>;
14783
+ GetTeamDashboard(variables: GetTeamDashboardQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamDashboardQuery>;
14784
+ GetTeamStripeAccountStatus(variables: GetTeamStripeAccountStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetTeamStripeAccountStatusQuery>;
14785
+ CreateTeam(variables: CreateTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateTeamMutation>;
14786
+ UpdateTeam(variables: UpdateTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateTeamMutation>;
14787
+ JoinTeam(variables: JoinTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<JoinTeamMutation>;
14788
+ LeaveTeam(variables: LeaveTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<LeaveTeamMutation>;
14789
+ InviteToTeam(variables: InviteToTeamMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<InviteToTeamMutation>;
14790
+ ManageTeamMember(variables: ManageTeamMemberMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ManageTeamMemberMutation>;
14791
+ CreateTeamStripeAccount(variables: CreateTeamStripeAccountMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateTeamStripeAccountMutation>;
14792
+ CreateTeamDonationCheckout(variables: CreateTeamDonationCheckoutMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateTeamDonationCheckoutMutation>;
14793
+ FindClubById(variables: FindClubByIdQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindClubByIdQuery>;
14794
+ FindClubs(variables?: FindClubsQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindClubsQuery>;
14795
+ GetClubMembers(variables: GetClubMembersQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClubMembersQuery>;
14796
+ GetClubStripeAccountStatus(variables: GetClubStripeAccountStatusQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetClubStripeAccountStatusQuery>;
14797
+ CreateClub(variables: CreateClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateClubMutation>;
14798
+ UpdateClub(variables: UpdateClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<UpdateClubMutation>;
14799
+ JoinClub(variables: JoinClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<JoinClubMutation>;
14800
+ LeaveClub(variables: LeaveClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<LeaveClubMutation>;
14801
+ InviteToClub(variables: InviteToClubMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<InviteToClubMutation>;
14802
+ ManageClubMember(variables: ManageClubMemberMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<ManageClubMemberMutation>;
14803
+ CreateClubStripeAccount(variables: CreateClubStripeAccountMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateClubStripeAccountMutation>;
14804
+ CreateClubDonationCheckout(variables: CreateClubDonationCheckoutMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateClubDonationCheckoutMutation>;
14805
+ CreateMembershipFeeCheckout(variables: CreateMembershipFeeCheckoutMutationVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<CreateMembershipFeeCheckoutMutation>;
13933
14806
  FindUserByEmail(variables: FindUserByEmailQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindUserByEmailQuery>;
13934
14807
  FindVtxUser(variables: FindVtxUserQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<FindVtxUserQuery>;
13935
14808
  GetUserImagesFromEmail(variables: GetUserImagesFromEmailQueryVariables, requestHeaders?: GraphQLClientRequestHeaders, signal?: RequestInit["signal"]): Promise<GetUserImagesFromEmailQuery>;