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

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