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

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,27 @@ 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
+ 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
+ }
670
689
  export interface AthleteReference {
671
690
  _id: Scalars['String'];
672
691
  firstName: Scalars['String'];
@@ -689,6 +708,7 @@ export interface AthleteReference {
689
708
  profilePicture: (AWSS3File | null);
690
709
  cardPicture: (AWSS3File | null);
691
710
  aboutMe: (Scalars['String'] | null);
711
+ preferences: AthletePreferences;
692
712
  __typename: 'AthleteReference';
693
713
  }
694
714
  export interface Athlete {
@@ -713,6 +733,7 @@ export interface Athlete {
713
733
  profilePicture: (AWSS3File | null);
714
734
  cardPicture: (AWSS3File | null);
715
735
  aboutMe: (Scalars['String'] | null);
736
+ preferences: AthletePreferences;
716
737
  allSports: (Sport[] | null);
717
738
  teams: (Team[] | null);
718
739
  sponsorBrands: (Brand[] | null);
@@ -720,6 +741,8 @@ export interface Athlete {
720
741
  affiliations: (AthleteMembership[] | null);
721
742
  newsLinks: (NewsLink[] | null);
722
743
  channels: (Channel[] | null);
744
+ currentCampaign: (FundRaisingCampaign | null);
745
+ fundingCampaigns: (FundRaisingCampaign[] | null);
723
746
  __typename: 'Athlete';
724
747
  }
725
748
  export interface SponsorAthleteInvitation {
@@ -747,26 +770,40 @@ export interface EditValueResponse {
747
770
  changed: Scalars['Boolean'];
748
771
  __typename: 'EditValueResponse';
749
772
  }
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
+ }
750
784
  export interface UserImages {
751
785
  profilePictureUrl: (Scalars['String'] | null);
752
786
  cardPictureUrl: (Scalars['String'] | null);
753
787
  bannerPictureUrl: (Scalars['String'] | null);
754
788
  __typename: 'UserImages';
755
789
  }
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';
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';
770
807
  }
771
808
  export interface Query {
772
809
  findTenantById: Tenant;
@@ -829,6 +866,7 @@ export interface Mutation {
829
866
  registerAthlete: Athlete;
830
867
  editProfileValue: EditValueResponse;
831
868
  addAthleteCompetition: AthleteCompetition;
869
+ deleteAthleteCompetition: DeleteSingleValueResponse;
832
870
  createSport: Sport;
833
871
  updateSport: Sport;
834
872
  createSportLevel: SportLevel;
@@ -845,6 +883,7 @@ export interface Mutation {
845
883
  handleStravaCallback: StravaToken;
846
884
  refreshStravaToken: StravaToken;
847
885
  createSportsEvent: SportsEvent;
886
+ createFundingCampaign: FundRaisingCampaign;
848
887
  __typename: 'Mutation';
849
888
  }
850
889
  export interface UserGenqlSelection {
@@ -1499,15 +1538,13 @@ export interface BudgetItemGenqlSelection {
1499
1538
  quantity?: boolean | number;
1500
1539
  concept?: boolean | number;
1501
1540
  itemCost?: boolean | number;
1502
- itemTotal?: boolean | number;
1503
1541
  __typename?: boolean | number;
1504
1542
  __scalar?: boolean | number;
1505
1543
  }
1506
1544
  export interface BudgetGenqlSelection {
1507
1545
  _id?: boolean | number;
1508
- totalRequired?: boolean | number;
1509
1546
  initialFunds?: boolean | number;
1510
- totalRaised?: boolean | number;
1547
+ totalRequired?: boolean | number;
1511
1548
  items?: BudgetItemGenqlSelection;
1512
1549
  __typename?: boolean | number;
1513
1550
  __scalar?: boolean | number;
@@ -1518,7 +1555,7 @@ export interface AthleteCompetitionGenqlSelection {
1518
1555
  participationDate?: boolean | number;
1519
1556
  competitionNumber?: boolean | number;
1520
1557
  result?: AthleteCompetitionResultGenqlSelection;
1521
- fundRaisingCampaignId?: boolean | number;
1558
+ fundRaisingCampaignIds?: boolean | number;
1522
1559
  budget?: BudgetGenqlSelection;
1523
1560
  __typename?: boolean | number;
1524
1561
  __scalar?: boolean | number;
@@ -1592,6 +1629,29 @@ export interface ChannelGenqlSelection {
1592
1629
  __typename?: boolean | number;
1593
1630
  __scalar?: boolean | number;
1594
1631
  }
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
+ }
1595
1655
  export interface AthleteReferenceGenqlSelection {
1596
1656
  _id?: boolean | number;
1597
1657
  firstName?: boolean | number;
@@ -1614,6 +1674,7 @@ export interface AthleteReferenceGenqlSelection {
1614
1674
  profilePicture?: AWSS3FileGenqlSelection;
1615
1675
  cardPicture?: AWSS3FileGenqlSelection;
1616
1676
  aboutMe?: boolean | number;
1677
+ preferences?: AthletePreferencesGenqlSelection;
1617
1678
  __typename?: boolean | number;
1618
1679
  __scalar?: boolean | number;
1619
1680
  }
@@ -1639,6 +1700,7 @@ export interface AthleteGenqlSelection {
1639
1700
  profilePicture?: AWSS3FileGenqlSelection;
1640
1701
  cardPicture?: AWSS3FileGenqlSelection;
1641
1702
  aboutMe?: boolean | number;
1703
+ preferences?: AthletePreferencesGenqlSelection;
1642
1704
  allSports?: SportGenqlSelection;
1643
1705
  teams?: TeamGenqlSelection;
1644
1706
  sponsorBrands?: BrandGenqlSelection;
@@ -1646,6 +1708,8 @@ export interface AthleteGenqlSelection {
1646
1708
  affiliations?: AthleteMembershipGenqlSelection;
1647
1709
  newsLinks?: NewsLinkGenqlSelection;
1648
1710
  channels?: ChannelGenqlSelection;
1711
+ currentCampaign?: FundRaisingCampaignGenqlSelection;
1712
+ fundingCampaigns?: FundRaisingCampaignGenqlSelection;
1649
1713
  __typename?: boolean | number;
1650
1714
  __scalar?: boolean | number;
1651
1715
  }
@@ -1677,6 +1741,19 @@ export interface EditValueResponseGenqlSelection {
1677
1741
  __typename?: boolean | number;
1678
1742
  __scalar?: boolean | number;
1679
1743
  }
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
+ }
1680
1757
  export interface UserImagesGenqlSelection {
1681
1758
  profilePictureUrl?: boolean | number;
1682
1759
  cardPictureUrl?: boolean | number;
@@ -1684,19 +1761,23 @@ export interface UserImagesGenqlSelection {
1684
1761
  __typename?: boolean | number;
1685
1762
  __scalar?: boolean | number;
1686
1763
  }
1687
- export interface FundRaisingCampaignGenqlSelection {
1688
- _id?: boolean | number;
1689
- title?: boolean | number;
1690
- motivation?: boolean | number;
1691
- website?: boolean | number;
1692
- fundsRequired?: boolean | number;
1693
- initialFundsObtained?: boolean | number;
1694
- fundsObtained?: boolean | number;
1695
- location?: WorldLocationGenqlSelection;
1696
- endingDate?: boolean | number;
1697
- status?: boolean | number;
1698
- budget?: BudgetGenqlSelection;
1699
- competitions?: AthleteCompetitionGenqlSelection;
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;
1700
1781
  __typename?: boolean | number;
1701
1782
  __scalar?: boolean | number;
1702
1783
  }
@@ -1754,6 +1835,9 @@ export interface CreateAthleteCompetitionForDto {
1754
1835
  cityId?: (Scalars['String'] | null);
1755
1836
  loginEmail: Scalars['String'];
1756
1837
  }
1838
+ export interface DeleteSingleValueDto {
1839
+ idToDelete: Scalars['String'];
1840
+ }
1757
1841
  export interface QualificationDto {
1758
1842
  type: Scalars['String'];
1759
1843
  }
@@ -1807,29 +1891,64 @@ export interface RegisterUserDto {
1807
1891
  password: Scalars['String'];
1808
1892
  inviteCode?: (Scalars['String'] | null);
1809
1893
  }
1810
- export interface CreateMembershipOrganizationDto {
1811
- shortName: Scalars['String'];
1812
- acronym?: (Scalars['String'] | null);
1813
- fullName: Scalars['String'];
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'];
1814
1922
  website?: (Scalars['String'] | null);
1815
- logo?: (AWSS3UploadedFileDto | null);
1816
- countryId?: (Scalars['String'] | null);
1817
- sportId?: (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
1930
  }
1819
- export interface AWSS3UploadedFileDto {
1820
- key: Scalars['String'];
1821
- useType: Scalars['String'];
1822
- contentType: Scalars['String'];
1823
- originalFileName?: (Scalars['String'] | null);
1824
- fileSize?: (Scalars['Float'] | null);
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'];
1825
1944
  }
1826
- export interface CreateAthleteMembershipDto {
1827
- organizationId: Scalars['String'];
1828
- athleteId: Scalars['String'];
1829
- membershipNumber?: (Scalars['String'] | null);
1830
- membershipType?: (Scalars['String'] | null);
1831
- issueDate?: (Scalars['DateTime'] | null);
1832
- expirationDate?: (Scalars['DateTime'] | null);
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);
1833
1952
  }
1834
1953
  export interface QueryGenqlSelection {
1835
1954
  findTenantById?: (TenantGenqlSelection & {
@@ -2099,6 +2218,11 @@ export interface MutationGenqlSelection {
2099
2218
  input: CreateAthleteCompetitionDto;
2100
2219
  };
2101
2220
  });
2221
+ deleteAthleteCompetition?: (DeleteSingleValueResponseGenqlSelection & {
2222
+ __args: {
2223
+ input: DeleteSingleValueDto;
2224
+ };
2225
+ });
2102
2226
  createSport?: (SportGenqlSelection & {
2103
2227
  __args: {
2104
2228
  input: CreateSportDto;
@@ -2180,6 +2304,11 @@ export interface MutationGenqlSelection {
2180
2304
  input: CreateSportEventDto;
2181
2305
  };
2182
2306
  });
2307
+ createFundingCampaign?: (FundRaisingCampaignGenqlSelection & {
2308
+ __args: {
2309
+ input: CreateFundingCampaignDto;
2310
+ };
2311
+ });
2183
2312
  __typename?: boolean | number;
2184
2313
  __scalar?: boolean | number;
2185
2314
  }
@@ -2212,6 +2341,13 @@ export interface AWSS3DeleteBucketFileDto {
2212
2341
  bucket: Scalars['String'];
2213
2342
  credentialsId?: (Scalars['String'] | null);
2214
2343
  }
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
+ }
2215
2351
  export interface CreateIndustryDto {
2216
2352
  name: Scalars['String'];
2217
2353
  }
@@ -2617,6 +2753,12 @@ export declare const isNewsLink: (obj?: {
2617
2753
  export declare const isChannel: (obj?: {
2618
2754
  __typename?: any;
2619
2755
  } | 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;
2620
2762
  export declare const isAthleteReference: (obj?: {
2621
2763
  __typename?: any;
2622
2764
  } | null) => obj is AthleteReference;
@@ -2632,12 +2774,21 @@ export declare const isStravaToken: (obj?: {
2632
2774
  export declare const isEditValueResponse: (obj?: {
2633
2775
  __typename?: any;
2634
2776
  } | 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;
2635
2783
  export declare const isUserImages: (obj?: {
2636
2784
  __typename?: any;
2637
2785
  } | null) => obj is UserImages;
2638
- export declare const isFundRaisingCampaign: (obj?: {
2786
+ export declare const isDeleteValuesResponse: (obj?: {
2639
2787
  __typename?: any;
2640
- } | null) => obj is FundRaisingCampaign;
2788
+ } | null) => obj is DeleteValuesResponse;
2789
+ export declare const isCursorPaginationResponse: (obj?: {
2790
+ __typename?: any;
2791
+ } | null) => obj is CursorPaginationResponse;
2641
2792
  export declare const isQuery: (obj?: {
2642
2793
  __typename?: any;
2643
2794
  } | null) => obj is Query;