@vertikalx/vtx-backend-client 1.0.0-dev-geo.3 → 1.0.0-dev-daniel.183

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.
@@ -583,14 +583,12 @@ export interface BudgetItem {
583
583
  quantity: Scalars['Float'];
584
584
  concept: Scalars['String'];
585
585
  itemCost: Scalars['Float'];
586
- itemTotal: Scalars['Float'];
587
586
  __typename: 'BudgetItem';
588
587
  }
589
588
  export interface Budget {
590
589
  _id: Scalars['String'];
591
- totalRequired: Scalars['Float'];
592
590
  initialFunds: Scalars['Float'];
593
- totalRaised: Scalars['Float'];
591
+ totalRequired: Scalars['Float'];
594
592
  items: (BudgetItem[] | null);
595
593
  __typename: 'Budget';
596
594
  }
@@ -600,7 +598,7 @@ export interface AthleteCompetition {
600
598
  participationDate: (Scalars['DateTime'] | null);
601
599
  competitionNumber: (Scalars['String'] | null);
602
600
  result: (AthleteCompetitionResult | null);
603
- fundRaisingCampaignId: (Scalars['String'] | null);
601
+ fundRaisingCampaignIds: (Scalars['String'][] | null);
604
602
  budget: (Budget | null);
605
603
  __typename: 'AthleteCompetition';
606
604
  }
@@ -667,6 +665,28 @@ export interface Channel {
667
665
  linked: Scalars['Boolean'];
668
666
  __typename: 'Channel';
669
667
  }
668
+ export interface AthletePreferences {
669
+ _id: Scalars['String'];
670
+ showProfileHelper: Scalars['Boolean'];
671
+ __typename: 'AthletePreferences';
672
+ }
673
+ export interface FundRaisingCampaign {
674
+ _id: Scalars['String'];
675
+ athlete: AthleteReference;
676
+ budgetMode: Scalars['String'];
677
+ status: Scalars['String'];
678
+ title: Scalars['String'];
679
+ motivation: (Scalars['String'] | null);
680
+ website: (Scalars['String'] | null);
681
+ fundsRequired: Scalars['Float'];
682
+ initialFundsObtained: Scalars['Float'];
683
+ fundsObtained: Scalars['Float'];
684
+ location: (WorldLocation | null);
685
+ endingDate: Scalars['DateTime'];
686
+ budget: (Budget | null);
687
+ competitions: (AthleteCompetition[] | null);
688
+ __typename: 'FundRaisingCampaign';
689
+ }
670
690
  export interface AthleteReference {
671
691
  _id: Scalars['String'];
672
692
  firstName: Scalars['String'];
@@ -689,6 +709,7 @@ export interface AthleteReference {
689
709
  profilePicture: (AWSS3File | null);
690
710
  cardPicture: (AWSS3File | null);
691
711
  aboutMe: (Scalars['String'] | null);
712
+ preferences: AthletePreferences;
692
713
  __typename: 'AthleteReference';
693
714
  }
694
715
  export interface Athlete {
@@ -713,6 +734,7 @@ export interface Athlete {
713
734
  profilePicture: (AWSS3File | null);
714
735
  cardPicture: (AWSS3File | null);
715
736
  aboutMe: (Scalars['String'] | null);
737
+ preferences: AthletePreferences;
716
738
  allSports: (Sport[] | null);
717
739
  teams: (Team[] | null);
718
740
  sponsorBrands: (Brand[] | null);
@@ -720,6 +742,8 @@ export interface Athlete {
720
742
  affiliations: (AthleteMembership[] | null);
721
743
  newsLinks: (NewsLink[] | null);
722
744
  channels: (Channel[] | null);
745
+ currentCampaign: (FundRaisingCampaign | null);
746
+ fundingCampaigns: (FundRaisingCampaign[] | null);
723
747
  __typename: 'Athlete';
724
748
  }
725
749
  export interface SponsorAthleteInvitation {
@@ -747,26 +771,40 @@ export interface EditValueResponse {
747
771
  changed: Scalars['Boolean'];
748
772
  __typename: 'EditValueResponse';
749
773
  }
774
+ export interface ErrorType {
775
+ code: Scalars['Float'];
776
+ message: Scalars['String'];
777
+ __typename: 'ErrorType';
778
+ }
779
+ export interface DeleteSingleValueResponse {
780
+ idToDelete: Scalars['String'];
781
+ deleted: Scalars['Boolean'];
782
+ failureReason: (ErrorType | null);
783
+ __typename: 'DeleteSingleValueResponse';
784
+ }
750
785
  export interface UserImages {
751
786
  profilePictureUrl: (Scalars['String'] | null);
752
787
  cardPictureUrl: (Scalars['String'] | null);
753
788
  bannerPictureUrl: (Scalars['String'] | null);
754
789
  __typename: 'UserImages';
755
790
  }
756
- export interface FundRaisingCampaign {
757
- _id: Scalars['String'];
758
- title: Scalars['String'];
759
- motivation: (Scalars['String'] | null);
760
- website: (Scalars['String'] | null);
761
- fundsRequired: Scalars['Float'];
762
- initialFundsObtained: Scalars['Float'];
763
- fundsObtained: Scalars['Float'];
764
- location: (WorldLocation | null);
765
- endingDate: Scalars['DateTime'];
766
- status: Scalars['String'];
767
- budget: (Budget | null);
768
- competitions: (AthleteCompetition[] | null);
769
- __typename: 'FundRaisingCampaign';
791
+ export interface DeleteValuesResponse {
792
+ deleted: Scalars['String'][];
793
+ failedToDelete: Scalars['String'][];
794
+ failureReason: ErrorType[];
795
+ result: Scalars['String'];
796
+ __typename: 'DeleteValuesResponse';
797
+ }
798
+ export interface CursorPaginationResponse {
799
+ sortField: Scalars['String'];
800
+ order: Scalars['String'];
801
+ initialCursorId: Scalars['String'];
802
+ nextCursorId: Scalars['String'];
803
+ initialCursorValue: Scalars['String'];
804
+ nextCursorValue: Scalars['String'];
805
+ limit: Scalars['Float'];
806
+ retrieved: Scalars['Float'];
807
+ __typename: 'CursorPaginationResponse';
770
808
  }
771
809
  export interface Query {
772
810
  findTenantById: Tenant;
@@ -808,7 +846,6 @@ export interface Query {
808
846
  getUserImagesFromEmail: UserImages;
809
847
  getStravaLoginUrl: Scalars['String'];
810
848
  getSportsEvents: SportsEvent[];
811
- getMembershipOrganizations: MembershipOrganizationReference[];
812
849
  __typename: 'Query';
813
850
  }
814
851
  export interface Mutation {
@@ -830,6 +867,7 @@ export interface Mutation {
830
867
  registerAthlete: Athlete;
831
868
  editProfileValue: EditValueResponse;
832
869
  addAthleteCompetition: AthleteCompetition;
870
+ deleteAthleteCompetition: DeleteSingleValueResponse;
833
871
  createSport: Sport;
834
872
  updateSport: Sport;
835
873
  createSportLevel: SportLevel;
@@ -846,8 +884,7 @@ export interface Mutation {
846
884
  handleStravaCallback: StravaToken;
847
885
  refreshStravaToken: StravaToken;
848
886
  createSportsEvent: SportsEvent;
849
- createMembershipOrganization: MembershipOrganizationReference;
850
- createAthleteMembership: AthleteMembership;
887
+ createFundingCampaign: FundRaisingCampaign;
851
888
  __typename: 'Mutation';
852
889
  }
853
890
  export interface UserGenqlSelection {
@@ -1502,15 +1539,13 @@ export interface BudgetItemGenqlSelection {
1502
1539
  quantity?: boolean | number;
1503
1540
  concept?: boolean | number;
1504
1541
  itemCost?: boolean | number;
1505
- itemTotal?: boolean | number;
1506
1542
  __typename?: boolean | number;
1507
1543
  __scalar?: boolean | number;
1508
1544
  }
1509
1545
  export interface BudgetGenqlSelection {
1510
1546
  _id?: boolean | number;
1511
- totalRequired?: boolean | number;
1512
1547
  initialFunds?: boolean | number;
1513
- totalRaised?: boolean | number;
1548
+ totalRequired?: boolean | number;
1514
1549
  items?: BudgetItemGenqlSelection;
1515
1550
  __typename?: boolean | number;
1516
1551
  __scalar?: boolean | number;
@@ -1521,7 +1556,7 @@ export interface AthleteCompetitionGenqlSelection {
1521
1556
  participationDate?: boolean | number;
1522
1557
  competitionNumber?: boolean | number;
1523
1558
  result?: AthleteCompetitionResultGenqlSelection;
1524
- fundRaisingCampaignId?: boolean | number;
1559
+ fundRaisingCampaignIds?: boolean | number;
1525
1560
  budget?: BudgetGenqlSelection;
1526
1561
  __typename?: boolean | number;
1527
1562
  __scalar?: boolean | number;
@@ -1595,6 +1630,30 @@ export interface ChannelGenqlSelection {
1595
1630
  __typename?: boolean | number;
1596
1631
  __scalar?: boolean | number;
1597
1632
  }
1633
+ export interface AthletePreferencesGenqlSelection {
1634
+ _id?: boolean | number;
1635
+ showProfileHelper?: boolean | number;
1636
+ __typename?: boolean | number;
1637
+ __scalar?: boolean | number;
1638
+ }
1639
+ export interface FundRaisingCampaignGenqlSelection {
1640
+ _id?: boolean | number;
1641
+ athlete?: AthleteReferenceGenqlSelection;
1642
+ budgetMode?: boolean | number;
1643
+ status?: boolean | number;
1644
+ title?: boolean | number;
1645
+ motivation?: boolean | number;
1646
+ website?: boolean | number;
1647
+ fundsRequired?: boolean | number;
1648
+ initialFundsObtained?: boolean | number;
1649
+ fundsObtained?: boolean | number;
1650
+ location?: WorldLocationGenqlSelection;
1651
+ endingDate?: boolean | number;
1652
+ budget?: BudgetGenqlSelection;
1653
+ competitions?: AthleteCompetitionGenqlSelection;
1654
+ __typename?: boolean | number;
1655
+ __scalar?: boolean | number;
1656
+ }
1598
1657
  export interface AthleteReferenceGenqlSelection {
1599
1658
  _id?: boolean | number;
1600
1659
  firstName?: boolean | number;
@@ -1617,6 +1676,7 @@ export interface AthleteReferenceGenqlSelection {
1617
1676
  profilePicture?: AWSS3FileGenqlSelection;
1618
1677
  cardPicture?: AWSS3FileGenqlSelection;
1619
1678
  aboutMe?: boolean | number;
1679
+ preferences?: AthletePreferencesGenqlSelection;
1620
1680
  __typename?: boolean | number;
1621
1681
  __scalar?: boolean | number;
1622
1682
  }
@@ -1642,6 +1702,7 @@ export interface AthleteGenqlSelection {
1642
1702
  profilePicture?: AWSS3FileGenqlSelection;
1643
1703
  cardPicture?: AWSS3FileGenqlSelection;
1644
1704
  aboutMe?: boolean | number;
1705
+ preferences?: AthletePreferencesGenqlSelection;
1645
1706
  allSports?: SportGenqlSelection;
1646
1707
  teams?: TeamGenqlSelection;
1647
1708
  sponsorBrands?: BrandGenqlSelection;
@@ -1649,6 +1710,8 @@ export interface AthleteGenqlSelection {
1649
1710
  affiliations?: AthleteMembershipGenqlSelection;
1650
1711
  newsLinks?: NewsLinkGenqlSelection;
1651
1712
  channels?: ChannelGenqlSelection;
1713
+ currentCampaign?: FundRaisingCampaignGenqlSelection;
1714
+ fundingCampaigns?: FundRaisingCampaignGenqlSelection;
1652
1715
  __typename?: boolean | number;
1653
1716
  __scalar?: boolean | number;
1654
1717
  }
@@ -1680,6 +1743,19 @@ export interface EditValueResponseGenqlSelection {
1680
1743
  __typename?: boolean | number;
1681
1744
  __scalar?: boolean | number;
1682
1745
  }
1746
+ export interface ErrorTypeGenqlSelection {
1747
+ code?: boolean | number;
1748
+ message?: boolean | number;
1749
+ __typename?: boolean | number;
1750
+ __scalar?: boolean | number;
1751
+ }
1752
+ export interface DeleteSingleValueResponseGenqlSelection {
1753
+ idToDelete?: boolean | number;
1754
+ deleted?: boolean | number;
1755
+ failureReason?: ErrorTypeGenqlSelection;
1756
+ __typename?: boolean | number;
1757
+ __scalar?: boolean | number;
1758
+ }
1683
1759
  export interface UserImagesGenqlSelection {
1684
1760
  profilePictureUrl?: boolean | number;
1685
1761
  cardPictureUrl?: boolean | number;
@@ -1687,19 +1763,23 @@ export interface UserImagesGenqlSelection {
1687
1763
  __typename?: boolean | number;
1688
1764
  __scalar?: boolean | number;
1689
1765
  }
1690
- export interface FundRaisingCampaignGenqlSelection {
1691
- _id?: boolean | number;
1692
- title?: boolean | number;
1693
- motivation?: boolean | number;
1694
- website?: boolean | number;
1695
- fundsRequired?: boolean | number;
1696
- initialFundsObtained?: boolean | number;
1697
- fundsObtained?: boolean | number;
1698
- location?: WorldLocationGenqlSelection;
1699
- endingDate?: boolean | number;
1700
- status?: boolean | number;
1701
- budget?: BudgetGenqlSelection;
1702
- competitions?: AthleteCompetitionGenqlSelection;
1766
+ export interface DeleteValuesResponseGenqlSelection {
1767
+ deleted?: boolean | number;
1768
+ failedToDelete?: boolean | number;
1769
+ failureReason?: ErrorTypeGenqlSelection;
1770
+ result?: boolean | number;
1771
+ __typename?: boolean | number;
1772
+ __scalar?: boolean | number;
1773
+ }
1774
+ export interface CursorPaginationResponseGenqlSelection {
1775
+ sortField?: boolean | number;
1776
+ order?: boolean | number;
1777
+ initialCursorId?: boolean | number;
1778
+ nextCursorId?: boolean | number;
1779
+ initialCursorValue?: boolean | number;
1780
+ nextCursorValue?: boolean | number;
1781
+ limit?: boolean | number;
1782
+ retrieved?: boolean | number;
1703
1783
  __typename?: boolean | number;
1704
1784
  __scalar?: boolean | number;
1705
1785
  }
@@ -1757,6 +1837,9 @@ export interface CreateAthleteCompetitionForDto {
1757
1837
  cityId?: (Scalars['String'] | null);
1758
1838
  loginEmail: Scalars['String'];
1759
1839
  }
1840
+ export interface DeleteSingleValueDto {
1841
+ idToDelete: Scalars['String'];
1842
+ }
1760
1843
  export interface QualificationDto {
1761
1844
  type: Scalars['String'];
1762
1845
  }
@@ -1810,29 +1893,64 @@ export interface RegisterUserDto {
1810
1893
  password: Scalars['String'];
1811
1894
  inviteCode?: (Scalars['String'] | null);
1812
1895
  }
1813
- export interface CreateMembershipOrganizationDto {
1814
- shortName: Scalars['String'];
1815
- acronym?: (Scalars['String'] | null);
1816
- fullName: Scalars['String'];
1896
+ export interface DeleteValuesDto {
1897
+ idsToDelete: Scalars['String'][];
1898
+ allOrNone?: (Scalars['Boolean'] | null);
1899
+ }
1900
+ export interface BudgetItemDto {
1901
+ quantity: Scalars['Float'];
1902
+ concept: Scalars['String'];
1903
+ itemCost: Scalars['Float'];
1904
+ }
1905
+ export interface CreateBudgetItemDto {
1906
+ quantity: Scalars['Float'];
1907
+ concept: Scalars['String'];
1908
+ itemCost: Scalars['Float'];
1909
+ budgetId: Scalars['String'];
1910
+ }
1911
+ export interface CreateBudgetDto {
1912
+ initialFunds?: (Scalars['Float'] | null);
1913
+ items?: (BudgetItemDto[] | null);
1914
+ }
1915
+ export interface CreateCompetitionBudgetDto {
1916
+ initialFunds?: (Scalars['Float'] | null);
1917
+ items?: (BudgetItemDto[] | null);
1918
+ athleteCompetitionId: Scalars['String'];
1919
+ }
1920
+ export interface CreateFundingCampaignDto {
1921
+ budgetMode: Scalars['String'];
1922
+ title: Scalars['String'];
1923
+ motivation: Scalars['String'];
1817
1924
  website?: (Scalars['String'] | null);
1818
- logo?: (AWSS3UploadedFileDto | null);
1819
- countryId?: (Scalars['String'] | null);
1820
- sportId?: (Scalars['String'] | null);
1925
+ fundsRequired: Scalars['Float'];
1926
+ initialFundsObtained?: Scalars['Float'];
1927
+ cityId?: (Scalars['String'] | null);
1928
+ endingDate: Scalars['DateTime'];
1929
+ budget?: (CreateBudgetDto | null);
1930
+ competitionBudgets?: (CreateCompetitionBudgetDto[] | null);
1931
+ competitionIds?: (Scalars['String'][] | null);
1821
1932
  }
1822
- export interface AWSS3UploadedFileDto {
1823
- key: Scalars['String'];
1824
- useType: Scalars['String'];
1825
- contentType: Scalars['String'];
1826
- originalFileName?: (Scalars['String'] | null);
1827
- fileSize?: (Scalars['Float'] | null);
1933
+ export interface CreateFundingCampaignForDto {
1934
+ budgetMode: Scalars['String'];
1935
+ title: Scalars['String'];
1936
+ motivation: Scalars['String'];
1937
+ website?: (Scalars['String'] | null);
1938
+ fundsRequired: Scalars['Float'];
1939
+ initialFundsObtained?: Scalars['Float'];
1940
+ cityId?: (Scalars['String'] | null);
1941
+ endingDate: Scalars['DateTime'];
1942
+ budget?: (CreateBudgetDto | null);
1943
+ competitionBudgets?: (CreateCompetitionBudgetDto[] | null);
1944
+ competitionIds?: (Scalars['String'][] | null);
1945
+ loginEmail: Scalars['String'];
1828
1946
  }
1829
- export interface CreateAthleteMembershipDto {
1830
- organizationId: Scalars['String'];
1831
- athleteId: Scalars['String'];
1832
- membershipNumber?: (Scalars['String'] | null);
1833
- membershipType?: (Scalars['String'] | null);
1834
- issueDate?: (Scalars['DateTime'] | null);
1835
- expirationDate?: (Scalars['DateTime'] | null);
1947
+ export interface CursorPaginationDto {
1948
+ sortField: Scalars['String'];
1949
+ order?: (Scalars['String'] | null);
1950
+ direction?: (Scalars['String'] | null);
1951
+ limit?: (Scalars['Float'] | null);
1952
+ cursorId?: (Scalars['String'] | null);
1953
+ cursorFieldValue?: (Scalars['String'] | null);
1836
1954
  }
1837
1955
  export interface QueryGenqlSelection {
1838
1956
  findTenantById?: (TenantGenqlSelection & {
@@ -1987,7 +2105,6 @@ export interface QueryGenqlSelection {
1987
2105
  input: GetSportEventsDto;
1988
2106
  };
1989
2107
  });
1990
- getMembershipOrganizations?: MembershipOrganizationReferenceGenqlSelection;
1991
2108
  __typename?: boolean | number;
1992
2109
  __scalar?: boolean | number;
1993
2110
  }
@@ -2103,6 +2220,11 @@ export interface MutationGenqlSelection {
2103
2220
  input: CreateAthleteCompetitionDto;
2104
2221
  };
2105
2222
  });
2223
+ deleteAthleteCompetition?: (DeleteSingleValueResponseGenqlSelection & {
2224
+ __args: {
2225
+ input: DeleteSingleValueDto;
2226
+ };
2227
+ });
2106
2228
  createSport?: (SportGenqlSelection & {
2107
2229
  __args: {
2108
2230
  input: CreateSportDto;
@@ -2184,14 +2306,9 @@ export interface MutationGenqlSelection {
2184
2306
  input: CreateSportEventDto;
2185
2307
  };
2186
2308
  });
2187
- createMembershipOrganization?: (MembershipOrganizationReferenceGenqlSelection & {
2309
+ createFundingCampaign?: (FundRaisingCampaignGenqlSelection & {
2188
2310
  __args: {
2189
- input: CreateMembershipOrganizationDto;
2190
- };
2191
- });
2192
- createAthleteMembership?: (AthleteMembershipGenqlSelection & {
2193
- __args: {
2194
- input: CreateAthleteMembershipDto;
2311
+ input: CreateFundingCampaignDto;
2195
2312
  };
2196
2313
  });
2197
2314
  __typename?: boolean | number;
@@ -2226,6 +2343,13 @@ export interface AWSS3DeleteBucketFileDto {
2226
2343
  bucket: Scalars['String'];
2227
2344
  credentialsId?: (Scalars['String'] | null);
2228
2345
  }
2346
+ export interface AWSS3UploadedFileDto {
2347
+ key: Scalars['String'];
2348
+ useType: Scalars['String'];
2349
+ contentType: Scalars['String'];
2350
+ originalFileName?: (Scalars['String'] | null);
2351
+ fileSize?: (Scalars['Float'] | null);
2352
+ }
2229
2353
  export interface CreateIndustryDto {
2230
2354
  name: Scalars['String'];
2231
2355
  }
@@ -2631,6 +2755,12 @@ export declare const isNewsLink: (obj?: {
2631
2755
  export declare const isChannel: (obj?: {
2632
2756
  __typename?: any;
2633
2757
  } | null) => obj is Channel;
2758
+ export declare const isAthletePreferences: (obj?: {
2759
+ __typename?: any;
2760
+ } | null) => obj is AthletePreferences;
2761
+ export declare const isFundRaisingCampaign: (obj?: {
2762
+ __typename?: any;
2763
+ } | null) => obj is FundRaisingCampaign;
2634
2764
  export declare const isAthleteReference: (obj?: {
2635
2765
  __typename?: any;
2636
2766
  } | null) => obj is AthleteReference;
@@ -2646,12 +2776,21 @@ export declare const isStravaToken: (obj?: {
2646
2776
  export declare const isEditValueResponse: (obj?: {
2647
2777
  __typename?: any;
2648
2778
  } | null) => obj is EditValueResponse;
2779
+ export declare const isErrorType: (obj?: {
2780
+ __typename?: any;
2781
+ } | null) => obj is ErrorType;
2782
+ export declare const isDeleteSingleValueResponse: (obj?: {
2783
+ __typename?: any;
2784
+ } | null) => obj is DeleteSingleValueResponse;
2649
2785
  export declare const isUserImages: (obj?: {
2650
2786
  __typename?: any;
2651
2787
  } | null) => obj is UserImages;
2652
- export declare const isFundRaisingCampaign: (obj?: {
2788
+ export declare const isDeleteValuesResponse: (obj?: {
2653
2789
  __typename?: any;
2654
- } | null) => obj is FundRaisingCampaign;
2790
+ } | null) => obj is DeleteValuesResponse;
2791
+ export declare const isCursorPaginationResponse: (obj?: {
2792
+ __typename?: any;
2793
+ } | null) => obj is CursorPaginationResponse;
2655
2794
  export declare const isQuery: (obj?: {
2656
2795
  __typename?: any;
2657
2796
  } | null) => obj is Query;