@vertikalx/vtx-backend-client 3.0.0-dev.2 → 3.0.0-dev.21

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.
@@ -5,6 +5,7 @@ export type Scalars = {
5
5
  Float: number;
6
6
  ID: string;
7
7
  JSONObject: any;
8
+ Int: number;
8
9
  };
9
10
  export interface User {
10
11
  _id: Scalars['String'];
@@ -621,6 +622,8 @@ export interface Sport {
621
622
  _id: Scalars['String'];
622
623
  name: Scalars['String'];
623
624
  resultType: Scalars['String'];
625
+ verified: (Scalars['Boolean'] | null);
626
+ priority: (Scalars['Float'] | null);
624
627
  __typename: 'Sport';
625
628
  }
626
629
  export interface VtxScores {
@@ -953,13 +956,13 @@ export interface StripeAccountReference {
953
956
  account: (StripeAccount | null);
954
957
  __typename: 'StripeAccountReference';
955
958
  }
956
- export interface HistoricalScoreType {
959
+ export interface HistoricalScore {
957
960
  _id: Scalars['String'];
958
961
  scoreType: Scalars['String'];
959
962
  score: Scalars['Float'];
960
963
  date: Scalars['DateTime'];
961
964
  athleteId: Scalars['String'];
962
- __typename: 'HistoricalScoreType';
965
+ __typename: 'HistoricalScore';
963
966
  }
964
967
  export interface AthleteReference {
965
968
  _id: Scalars['String'];
@@ -986,6 +989,7 @@ export interface AthleteReference {
986
989
  aboutMe: (Scalars['String'] | null);
987
990
  biography: (Scalars['String'] | null);
988
991
  preferences: AthletePreferences;
992
+ suspended: Scalars['Boolean'];
989
993
  __typename: 'AthleteReference';
990
994
  }
991
995
  export interface Athlete {
@@ -1013,6 +1017,7 @@ export interface Athlete {
1013
1017
  aboutMe: (Scalars['String'] | null);
1014
1018
  biography: (Scalars['String'] | null);
1015
1019
  preferences: AthletePreferences;
1020
+ suspended: Scalars['Boolean'];
1016
1021
  allSports: (Sport[] | null);
1017
1022
  teams: (Team[] | null);
1018
1023
  sponsorBrands: (Brand[] | null);
@@ -1024,7 +1029,7 @@ export interface Athlete {
1024
1029
  fundingCampaigns: (FundRaisingCampaign[] | null);
1025
1030
  stripeAccountReference: (StripeAccountReference | null);
1026
1031
  albums: (Album[] | null);
1027
- historicalScores: (HistoricalScoreType[] | null);
1032
+ historicalScores: (HistoricalScore[] | null);
1028
1033
  signedAgreements: (SignedAgreement[] | null);
1029
1034
  __typename: 'Athlete';
1030
1035
  }
@@ -1082,9 +1087,12 @@ export interface StripeSession {
1082
1087
  __typename: 'StripeSession';
1083
1088
  }
1084
1089
  export interface StripeCheckoutSession {
1090
+ id: Scalars['String'];
1091
+ vtxCheckoutSessionId: Scalars['String'];
1085
1092
  client_secret: Scalars['String'];
1086
1093
  expires_at: Scalars['Float'];
1087
1094
  livemode: Scalars['Boolean'];
1095
+ url: Scalars['String'];
1088
1096
  __typename: 'StripeCheckoutSession';
1089
1097
  }
1090
1098
  export interface StravaAthleteData {
@@ -1274,11 +1282,13 @@ export interface Donation {
1274
1282
  checkoutSessionId: Scalars['String'];
1275
1283
  fundingCheckoutSessionDataId: Scalars['String'];
1276
1284
  donationMode: Scalars['String'];
1285
+ donorName: Scalars['String'];
1286
+ donorEmail: (Scalars['String'] | null);
1277
1287
  completed: Scalars['Boolean'];
1278
1288
  confirmed: Scalars['Boolean'];
1279
1289
  donationAmount: Scalars['Float'];
1280
1290
  completedDate: (Scalars['DateTime'] | null);
1281
- createdDate: Scalars['DateTime'];
1291
+ createdDate: (Scalars['DateTime'] | null);
1282
1292
  athleteId: Scalars['String'];
1283
1293
  athleteName: Scalars['String'];
1284
1294
  message: (Scalars['String'] | null);
@@ -1294,6 +1304,44 @@ export interface Member {
1294
1304
  donations: Donation[];
1295
1305
  __typename: 'Member';
1296
1306
  }
1307
+ export interface AdminUserView {
1308
+ _id: Scalars['String'];
1309
+ loginEmail: Scalars['String'];
1310
+ firstName: Scalars['String'];
1311
+ lastName: Scalars['String'];
1312
+ screenName: Scalars['String'];
1313
+ domains: (DomainCredential[] | null);
1314
+ athlete: (Athlete | null);
1315
+ member: (Member | null);
1316
+ suspended: Scalars['Boolean'];
1317
+ __typename: 'AdminUserView';
1318
+ }
1319
+ export interface AdminTransactionFundingDetails {
1320
+ paidToVtx: (Scalars['Float'] | null);
1321
+ paidToAthlete: (Scalars['Float'] | null);
1322
+ athleteId: Scalars['String'];
1323
+ athleteName: Scalars['String'];
1324
+ fromName: (Scalars['String'] | null);
1325
+ fromPhone: (Scalars['String'] | null);
1326
+ message: (Scalars['String'] | null);
1327
+ mode: (Scalars['String'] | null);
1328
+ __typename: 'AdminTransactionFundingDetails';
1329
+ }
1330
+ export interface AdminTransactionView {
1331
+ _id: Scalars['ID'];
1332
+ createdDate: Scalars['DateTime'];
1333
+ stripeSessionId: Scalars['String'];
1334
+ concept: (Scalars['String'] | null);
1335
+ donationAmount: Scalars['Float'];
1336
+ fromEmail: (Scalars['String'] | null);
1337
+ type: Scalars['String'];
1338
+ confirmed: Scalars['Boolean'];
1339
+ completed: Scalars['Boolean'];
1340
+ completedDate: (Scalars['DateTime'] | null);
1341
+ stripeAccountId: Scalars['String'];
1342
+ fundingDetails: (AdminTransactionFundingDetails | null);
1343
+ __typename: 'AdminTransactionView';
1344
+ }
1297
1345
  export interface EditValueResponse {
1298
1346
  field: Scalars['String'];
1299
1347
  oldValue: (Scalars['String'] | null);
@@ -1356,11 +1404,40 @@ export interface CompetitionDeleteVerificationResponse {
1356
1404
  reasons: CompetitionDeleteVerificationReason[];
1357
1405
  __typename: 'CompetitionDeleteVerificationResponse';
1358
1406
  }
1407
+ export interface HistoricalScoresPeriod {
1408
+ athleteId: Scalars['String'];
1409
+ athleteFirstName: Scalars['String'];
1410
+ athleteLastName: Scalars['String'];
1411
+ screenName: Scalars['String'];
1412
+ minTimestampInclusive: Scalars['DateTime'];
1413
+ maxTimestampExclusive: Scalars['DateTime'];
1414
+ vtxScores: (HistoricalScore[] | null);
1415
+ tpiScores: (HistoricalScore[] | null);
1416
+ spiScores: (HistoricalScore[] | null);
1417
+ apiScores: (HistoricalScore[] | null);
1418
+ __typename: 'HistoricalScoresPeriod';
1419
+ }
1359
1420
  export interface StripeObject {
1360
1421
  type: Scalars['String'];
1361
1422
  json: Scalars['JSONObject'];
1362
1423
  __typename: 'StripeObject';
1363
1424
  }
1425
+ export interface EnhancedPaginationInfoType {
1426
+ currentPage: Scalars['Int'];
1427
+ totalPages: Scalars['Int'];
1428
+ totalItems: Scalars['Int'];
1429
+ itemsPerPage: Scalars['Int'];
1430
+ hasNextPage: Scalars['Boolean'];
1431
+ hasPreviousPage: Scalars['Boolean'];
1432
+ startIndex: Scalars['Int'];
1433
+ endIndex: Scalars['Int'];
1434
+ __typename: 'EnhancedPaginationInfoType';
1435
+ }
1436
+ export interface PaginatedSportsType {
1437
+ items: Sport[];
1438
+ pagination: EnhancedPaginationInfoType;
1439
+ __typename: 'PaginatedSportsType';
1440
+ }
1364
1441
  export interface UserImages {
1365
1442
  profilePictureUrl: (Scalars['String'] | null);
1366
1443
  cardPictureUrl: (Scalars['String'] | null);
@@ -1374,6 +1451,60 @@ export interface ValidatedToken {
1374
1451
  refreshExpiresAt: Scalars['Float'];
1375
1452
  __typename: 'ValidatedToken';
1376
1453
  }
1454
+ export interface DeleteVtxUserResponse {
1455
+ success: Scalars['Boolean'];
1456
+ deletedUserId: (Scalars['String'] | null);
1457
+ deletedUserEmail: (Scalars['String'] | null);
1458
+ deletedUserType: (Scalars['String'] | null);
1459
+ servicesDeleted: (Scalars['String'][] | null);
1460
+ cognitoDeleted: (Scalars['Boolean'] | null);
1461
+ dbDeleted: (Scalars['Boolean'] | null);
1462
+ errorMessage: (Scalars['String'] | null);
1463
+ __typename: 'DeleteVtxUserResponse';
1464
+ }
1465
+ export interface PaginatedUsersType {
1466
+ items: AdminUserView[];
1467
+ pagination: EnhancedPaginationInfoType;
1468
+ __typename: 'PaginatedUsersType';
1469
+ }
1470
+ export interface TransactionDetails {
1471
+ stripeCheckoutSessionId: Scalars['String'];
1472
+ vtxCheckoutSessionId: Scalars['String'];
1473
+ checkoutSessionType: Scalars['String'];
1474
+ transactionType: Scalars['String'];
1475
+ confirmed: Scalars['Boolean'];
1476
+ completed: Scalars['Boolean'];
1477
+ currency: Scalars['String'];
1478
+ createdDate: Scalars['DateTime'];
1479
+ email: (Scalars['String'] | null);
1480
+ name: (Scalars['String'] | null);
1481
+ phone: (Scalars['String'] | null);
1482
+ payment_status: (Scalars['String'] | null);
1483
+ status: (Scalars['String'] | null);
1484
+ amount_subtotal: (Scalars['Float'] | null);
1485
+ amount_total: (Scalars['Float'] | null);
1486
+ completedDate: (Scalars['DateTime'] | null);
1487
+ athleteDonationReceipt: (Receipt | null);
1488
+ __typename: 'TransactionDetails';
1489
+ }
1490
+ export interface PaginatedEventsType {
1491
+ items: SportsEvent[];
1492
+ pagination: EnhancedPaginationInfoType;
1493
+ __typename: 'PaginatedEventsType';
1494
+ }
1495
+ export interface CurrencyAmountType {
1496
+ amount: Scalars['Float'];
1497
+ currency: Scalars['String'];
1498
+ __typename: 'CurrencyAmountType';
1499
+ }
1500
+ export interface StripeBalanceType {
1501
+ availableUSD: Scalars['Float'];
1502
+ pendingUSD: Scalars['Float'];
1503
+ currency: Scalars['String'];
1504
+ availableBalances: CurrencyAmountType[];
1505
+ pendingBalances: CurrencyAmountType[];
1506
+ __typename: 'StripeBalanceType';
1507
+ }
1377
1508
  export interface StripeTransfer {
1378
1509
  _id: Scalars['ID'];
1379
1510
  stripeId: (Scalars['String'] | null);
@@ -1396,6 +1527,11 @@ export interface UserDomain {
1396
1527
  user: (User | null);
1397
1528
  __typename: 'UserDomain';
1398
1529
  }
1530
+ export interface PaginatedTransactionsType {
1531
+ items: AdminTransactionView[];
1532
+ pagination: EnhancedPaginationInfoType;
1533
+ __typename: 'PaginatedTransactionsType';
1534
+ }
1399
1535
  export type DonationMode = 'PUBLIC' | 'PRIVATE' | 'ANONYMOUS';
1400
1536
  export interface Query {
1401
1537
  findTenantById: Tenant;
@@ -1431,10 +1567,13 @@ export interface Query {
1431
1567
  queryAthleteWithFilter: AthleteQueryResponse;
1432
1568
  getPublicAthleteAlbums: Album[];
1433
1569
  screenNameAvailability: ExistValueResponse;
1434
- getAthleteHistoricalScores: HistoricalScoreType[];
1435
- getMyHistoricalScores: HistoricalScoreType[];
1570
+ getAthleteHistoricalScoresPeriod: HistoricalScoresPeriod;
1571
+ getAthleteHistoricalScores: HistoricalScore[];
1572
+ getMyHistoricalScoresPeriod: HistoricalScoresPeriod;
1573
+ getMyHistoricalScores: HistoricalScore[];
1436
1574
  getAthleteCampaigns: FundRaisingCampaign[];
1437
1575
  getSports: Sport[];
1576
+ getSportsPaginated: PaginatedSportsType;
1438
1577
  findSportById: Sport;
1439
1578
  getSportLevels: SportLevel[];
1440
1579
  getPublicSponsorships: Sponsorship[];
@@ -1450,10 +1589,16 @@ export interface Query {
1450
1589
  getUserImagesFromEmail: UserImages;
1451
1590
  getResetVerificationCode: VerificationCode;
1452
1591
  verifyCode: CodeVerificationResponse;
1592
+ isUserSuspended: Scalars['Boolean'];
1593
+ getAllUsers: AdminUserView[];
1594
+ getUsersPaginated: PaginatedUsersType;
1453
1595
  getStravaLoginUrl: Scalars['String'];
1454
1596
  getSportsEvents: SportsEvent[];
1597
+ getSportsEventsPaginated: PaginatedEventsType;
1455
1598
  getBudgetsByAthlete: BudgetData;
1456
- getDonationsByAthlete: Receipt;
1599
+ getDonationsByAthlete: Receipt[];
1600
+ getDonationsToAthlete: Donation[];
1601
+ getDonationsToMe: Donation[];
1457
1602
  getBudgetConcepts: BudgetConcept[];
1458
1603
  getBudgetItemUnits: BudgetItemUnit[];
1459
1604
  getMembershipOrganizations: MembershipOrganizationReference[];
@@ -1461,11 +1606,16 @@ export interface Query {
1461
1606
  getAthleteInstagramIntegration: AthleteIntegrationReference;
1462
1607
  getAthleteIntegrations: AthleteIntegrationReference;
1463
1608
  stripeQuery: StripeObject;
1609
+ getStripeBalance: StripeBalanceType;
1464
1610
  getDatabaseTextFile: TextDatabaseFile;
1465
1611
  getReceipt: Receipt;
1466
1612
  getReceiptUrl: ReceiptUrl;
1613
+ getTransactionDetails: TransactionDetails;
1467
1614
  findMemberForUser: Member;
1468
1615
  getDonationsByMember: Donation[];
1616
+ getDonationsByUser: Donation[];
1617
+ getAllTransactions: AdminTransactionView[];
1618
+ getTransactionsPaginated: PaginatedTransactionsType;
1469
1619
  __typename: 'Query';
1470
1620
  }
1471
1621
  export interface Mutation {
@@ -1499,6 +1649,7 @@ export interface Mutation {
1499
1649
  deleteAthletePhotos: DeleteValuesResponse;
1500
1650
  saveAthleteCompetitionResult: AthleteCompetitionResult;
1501
1651
  updateAthleteScores: Athlete;
1652
+ updateAthleteCompetitionScores: Athlete;
1502
1653
  setCurrentCampaign: FundRaisingCampaign;
1503
1654
  createSport: Sport;
1504
1655
  updateSport: Sport;
@@ -1517,9 +1668,14 @@ export interface Mutation {
1517
1668
  createResetPasswordCode: EditValueResponse;
1518
1669
  resetUserPassword: EditValueResponse;
1519
1670
  validateToken: ValidatedToken;
1671
+ updateUserSuspendedStatus: EditValueResponse;
1672
+ deleteMyAccount: DeleteVtxUserResponse;
1673
+ deleteVtxUser: DeleteVtxUserResponse;
1520
1674
  handleStravaCallback: StravaToken;
1521
1675
  refreshStravaToken: StravaToken;
1522
1676
  createSportsEvent: SportsEvent;
1677
+ updateSportsEvent: SportsEvent;
1678
+ deleteSportsEvent: EditValueResponse;
1523
1679
  mergeSportsEvents: MergeEventsResponse;
1524
1680
  setFundingStatus: FundRaisingCampaign;
1525
1681
  createFundingCampaign: FundRaisingCampaign;
@@ -2228,6 +2384,8 @@ export interface SportGenqlSelection {
2228
2384
  _id?: boolean | number;
2229
2385
  name?: boolean | number;
2230
2386
  resultType?: boolean | number;
2387
+ verified?: boolean | number;
2388
+ priority?: boolean | number;
2231
2389
  __typename?: boolean | number;
2232
2390
  __scalar?: boolean | number;
2233
2391
  }
@@ -2591,7 +2749,7 @@ export interface StripeAccountReferenceGenqlSelection {
2591
2749
  __typename?: boolean | number;
2592
2750
  __scalar?: boolean | number;
2593
2751
  }
2594
- export interface HistoricalScoreTypeGenqlSelection {
2752
+ export interface HistoricalScoreGenqlSelection {
2595
2753
  _id?: boolean | number;
2596
2754
  scoreType?: boolean | number;
2597
2755
  score?: boolean | number;
@@ -2625,6 +2783,7 @@ export interface AthleteReferenceGenqlSelection {
2625
2783
  aboutMe?: boolean | number;
2626
2784
  biography?: boolean | number;
2627
2785
  preferences?: AthletePreferencesGenqlSelection;
2786
+ suspended?: boolean | number;
2628
2787
  __typename?: boolean | number;
2629
2788
  __scalar?: boolean | number;
2630
2789
  }
@@ -2653,6 +2812,7 @@ export interface AthleteGenqlSelection {
2653
2812
  aboutMe?: boolean | number;
2654
2813
  biography?: boolean | number;
2655
2814
  preferences?: AthletePreferencesGenqlSelection;
2815
+ suspended?: boolean | number;
2656
2816
  allSports?: SportGenqlSelection;
2657
2817
  teams?: TeamGenqlSelection;
2658
2818
  sponsorBrands?: BrandGenqlSelection;
@@ -2664,7 +2824,7 @@ export interface AthleteGenqlSelection {
2664
2824
  fundingCampaigns?: FundRaisingCampaignGenqlSelection;
2665
2825
  stripeAccountReference?: StripeAccountReferenceGenqlSelection;
2666
2826
  albums?: AlbumGenqlSelection;
2667
- historicalScores?: HistoricalScoreTypeGenqlSelection;
2827
+ historicalScores?: HistoricalScoreGenqlSelection;
2668
2828
  signedAgreements?: SignedAgreementGenqlSelection;
2669
2829
  __typename?: boolean | number;
2670
2830
  __scalar?: boolean | number;
@@ -2728,9 +2888,12 @@ export interface StripeSessionGenqlSelection {
2728
2888
  __scalar?: boolean | number;
2729
2889
  }
2730
2890
  export interface StripeCheckoutSessionGenqlSelection {
2891
+ id?: boolean | number;
2892
+ vtxCheckoutSessionId?: boolean | number;
2731
2893
  client_secret?: boolean | number;
2732
2894
  expires_at?: boolean | number;
2733
2895
  livemode?: boolean | number;
2896
+ url?: boolean | number;
2734
2897
  __typename?: boolean | number;
2735
2898
  __scalar?: boolean | number;
2736
2899
  }
@@ -2942,6 +3105,8 @@ export interface DonationGenqlSelection {
2942
3105
  checkoutSessionId?: boolean | number;
2943
3106
  fundingCheckoutSessionDataId?: boolean | number;
2944
3107
  donationMode?: boolean | number;
3108
+ donorName?: boolean | number;
3109
+ donorEmail?: boolean | number;
2945
3110
  completed?: boolean | number;
2946
3111
  confirmed?: boolean | number;
2947
3112
  donationAmount?: boolean | number;
@@ -2964,6 +3129,47 @@ export interface MemberGenqlSelection {
2964
3129
  __typename?: boolean | number;
2965
3130
  __scalar?: boolean | number;
2966
3131
  }
3132
+ export interface AdminUserViewGenqlSelection {
3133
+ _id?: boolean | number;
3134
+ loginEmail?: boolean | number;
3135
+ firstName?: boolean | number;
3136
+ lastName?: boolean | number;
3137
+ screenName?: boolean | number;
3138
+ domains?: DomainCredentialGenqlSelection;
3139
+ athlete?: AthleteGenqlSelection;
3140
+ member?: MemberGenqlSelection;
3141
+ suspended?: boolean | number;
3142
+ __typename?: boolean | number;
3143
+ __scalar?: boolean | number;
3144
+ }
3145
+ export interface AdminTransactionFundingDetailsGenqlSelection {
3146
+ paidToVtx?: boolean | number;
3147
+ paidToAthlete?: boolean | number;
3148
+ athleteId?: boolean | number;
3149
+ athleteName?: boolean | number;
3150
+ fromName?: boolean | number;
3151
+ fromPhone?: boolean | number;
3152
+ message?: boolean | number;
3153
+ mode?: boolean | number;
3154
+ __typename?: boolean | number;
3155
+ __scalar?: boolean | number;
3156
+ }
3157
+ export interface AdminTransactionViewGenqlSelection {
3158
+ _id?: boolean | number;
3159
+ createdDate?: boolean | number;
3160
+ stripeSessionId?: boolean | number;
3161
+ concept?: boolean | number;
3162
+ donationAmount?: boolean | number;
3163
+ fromEmail?: boolean | number;
3164
+ type?: boolean | number;
3165
+ confirmed?: boolean | number;
3166
+ completed?: boolean | number;
3167
+ completedDate?: boolean | number;
3168
+ stripeAccountId?: boolean | number;
3169
+ fundingDetails?: AdminTransactionFundingDetailsGenqlSelection;
3170
+ __typename?: boolean | number;
3171
+ __scalar?: boolean | number;
3172
+ }
2967
3173
  export interface EditValueResponseGenqlSelection {
2968
3174
  field?: boolean | number;
2969
3175
  oldValue?: boolean | number;
@@ -3036,12 +3242,44 @@ export interface CompetitionDeleteVerificationResponseGenqlSelection {
3036
3242
  __typename?: boolean | number;
3037
3243
  __scalar?: boolean | number;
3038
3244
  }
3245
+ export interface HistoricalScoresPeriodGenqlSelection {
3246
+ athleteId?: boolean | number;
3247
+ athleteFirstName?: boolean | number;
3248
+ athleteLastName?: boolean | number;
3249
+ screenName?: boolean | number;
3250
+ minTimestampInclusive?: boolean | number;
3251
+ maxTimestampExclusive?: boolean | number;
3252
+ vtxScores?: HistoricalScoreGenqlSelection;
3253
+ tpiScores?: HistoricalScoreGenqlSelection;
3254
+ spiScores?: HistoricalScoreGenqlSelection;
3255
+ apiScores?: HistoricalScoreGenqlSelection;
3256
+ __typename?: boolean | number;
3257
+ __scalar?: boolean | number;
3258
+ }
3039
3259
  export interface StripeObjectGenqlSelection {
3040
3260
  type?: boolean | number;
3041
3261
  json?: boolean | number;
3042
3262
  __typename?: boolean | number;
3043
3263
  __scalar?: boolean | number;
3044
3264
  }
3265
+ export interface EnhancedPaginationInfoTypeGenqlSelection {
3266
+ currentPage?: boolean | number;
3267
+ totalPages?: boolean | number;
3268
+ totalItems?: boolean | number;
3269
+ itemsPerPage?: boolean | number;
3270
+ hasNextPage?: boolean | number;
3271
+ hasPreviousPage?: boolean | number;
3272
+ startIndex?: boolean | number;
3273
+ endIndex?: boolean | number;
3274
+ __typename?: boolean | number;
3275
+ __scalar?: boolean | number;
3276
+ }
3277
+ export interface PaginatedSportsTypeGenqlSelection {
3278
+ items?: SportGenqlSelection;
3279
+ pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3280
+ __typename?: boolean | number;
3281
+ __scalar?: boolean | number;
3282
+ }
3045
3283
  export interface UserImagesGenqlSelection {
3046
3284
  profilePictureUrl?: boolean | number;
3047
3285
  cardPictureUrl?: boolean | number;
@@ -3057,6 +3295,66 @@ export interface ValidatedTokenGenqlSelection {
3057
3295
  __typename?: boolean | number;
3058
3296
  __scalar?: boolean | number;
3059
3297
  }
3298
+ export interface DeleteVtxUserResponseGenqlSelection {
3299
+ success?: boolean | number;
3300
+ deletedUserId?: boolean | number;
3301
+ deletedUserEmail?: boolean | number;
3302
+ deletedUserType?: boolean | number;
3303
+ servicesDeleted?: boolean | number;
3304
+ cognitoDeleted?: boolean | number;
3305
+ dbDeleted?: boolean | number;
3306
+ errorMessage?: boolean | number;
3307
+ __typename?: boolean | number;
3308
+ __scalar?: boolean | number;
3309
+ }
3310
+ export interface PaginatedUsersTypeGenqlSelection {
3311
+ items?: AdminUserViewGenqlSelection;
3312
+ pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3313
+ __typename?: boolean | number;
3314
+ __scalar?: boolean | number;
3315
+ }
3316
+ export interface TransactionDetailsGenqlSelection {
3317
+ stripeCheckoutSessionId?: boolean | number;
3318
+ vtxCheckoutSessionId?: boolean | number;
3319
+ checkoutSessionType?: boolean | number;
3320
+ transactionType?: boolean | number;
3321
+ confirmed?: boolean | number;
3322
+ completed?: boolean | number;
3323
+ currency?: boolean | number;
3324
+ createdDate?: boolean | number;
3325
+ email?: boolean | number;
3326
+ name?: boolean | number;
3327
+ phone?: boolean | number;
3328
+ payment_status?: boolean | number;
3329
+ status?: boolean | number;
3330
+ amount_subtotal?: boolean | number;
3331
+ amount_total?: boolean | number;
3332
+ completedDate?: boolean | number;
3333
+ athleteDonationReceipt?: ReceiptGenqlSelection;
3334
+ __typename?: boolean | number;
3335
+ __scalar?: boolean | number;
3336
+ }
3337
+ export interface PaginatedEventsTypeGenqlSelection {
3338
+ items?: SportsEventGenqlSelection;
3339
+ pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3340
+ __typename?: boolean | number;
3341
+ __scalar?: boolean | number;
3342
+ }
3343
+ export interface CurrencyAmountTypeGenqlSelection {
3344
+ amount?: boolean | number;
3345
+ currency?: boolean | number;
3346
+ __typename?: boolean | number;
3347
+ __scalar?: boolean | number;
3348
+ }
3349
+ export interface StripeBalanceTypeGenqlSelection {
3350
+ availableUSD?: boolean | number;
3351
+ pendingUSD?: boolean | number;
3352
+ currency?: boolean | number;
3353
+ availableBalances?: CurrencyAmountTypeGenqlSelection;
3354
+ pendingBalances?: CurrencyAmountTypeGenqlSelection;
3355
+ __typename?: boolean | number;
3356
+ __scalar?: boolean | number;
3357
+ }
3060
3358
  export interface StripeTransferGenqlSelection {
3061
3359
  _id?: boolean | number;
3062
3360
  stripeId?: boolean | number;
@@ -3080,6 +3378,12 @@ export interface UserDomainGenqlSelection {
3080
3378
  __typename?: boolean | number;
3081
3379
  __scalar?: boolean | number;
3082
3380
  }
3381
+ export interface PaginatedTransactionsTypeGenqlSelection {
3382
+ items?: AdminTransactionViewGenqlSelection;
3383
+ pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3384
+ __typename?: boolean | number;
3385
+ __scalar?: boolean | number;
3386
+ }
3083
3387
  export interface CreateDatabaseFileDto {
3084
3388
  identifier: Scalars['String'];
3085
3389
  version?: Scalars['String'];
@@ -3129,6 +3433,16 @@ export interface VerifyCodeDto {
3129
3433
  enteredCodeValue: Scalars['String'];
3130
3434
  type?: (Scalars['String'] | null);
3131
3435
  }
3436
+ export interface DonationCheckoutDto {
3437
+ fundingCampaignId: Scalars['String'];
3438
+ donationAmount: Scalars['Float'];
3439
+ mode?: Scalars['String'];
3440
+ fromName?: (Scalars['String'] | null);
3441
+ fromEmail?: (Scalars['String'] | null);
3442
+ fromPhone?: (Scalars['String'] | null);
3443
+ message?: (Scalars['String'] | null);
3444
+ clientType?: (Scalars['String'] | null);
3445
+ }
3132
3446
  export interface AthleteInvitationDto {
3133
3447
  email: Scalars['String'];
3134
3448
  name?: (Scalars['String'] | null);
@@ -3187,14 +3501,14 @@ export interface CreateAthleteCompetitionForDto {
3187
3501
  cityId?: (Scalars['String'] | null);
3188
3502
  loginEmail: Scalars['String'];
3189
3503
  }
3190
- export interface CursorPositionDto {
3191
- cursorId: Scalars['String'];
3192
- cursorFieldValue: Scalars['String'];
3193
- }
3194
3504
  export interface SortCriteriaDto {
3195
3505
  sortField: Scalars['String'];
3196
3506
  order?: Scalars['String'];
3197
3507
  }
3508
+ export interface CursorPositionDto {
3509
+ cursorId: Scalars['String'];
3510
+ cursorFieldValue: Scalars['String'];
3511
+ }
3198
3512
  export interface CursorPaginationDto {
3199
3513
  sortCriteria?: (SortCriteriaDto | null);
3200
3514
  limit?: (Scalars['Float'] | null);
@@ -3288,6 +3602,15 @@ export interface GetHistoricalScoresDto {
3288
3602
  export interface GetAthleteCampaignsDto {
3289
3603
  athleteId: Scalars['String'];
3290
3604
  }
3605
+ export interface SportQueryDto {
3606
+ page?: (Scalars['Int'] | null);
3607
+ limit?: (Scalars['Int'] | null);
3608
+ search?: (Scalars['String'] | null);
3609
+ resultType?: (Scalars['String'] | null);
3610
+ verified?: (Scalars['String'] | null);
3611
+ sortField?: (Scalars['String'] | null);
3612
+ sortOrder?: (Scalars['String'] | null);
3613
+ }
3291
3614
  export interface QualificationDto {
3292
3615
  type: Scalars['String'];
3293
3616
  }
@@ -3341,13 +3664,59 @@ export interface RegisterUserDto {
3341
3664
  password: Scalars['String'];
3342
3665
  inviteCode?: (Scalars['String'] | null);
3343
3666
  }
3667
+ export interface DeleteAthleteDto {
3668
+ userIdentifier: Scalars['String'];
3669
+ }
3344
3670
  export interface resetPasswordDto {
3345
3671
  code: VerifyCodeDto;
3346
3672
  newPassword?: (Scalars['String'] | null);
3347
3673
  }
3674
+ export interface UpdateUserSuspendedStatusDto {
3675
+ userId: Scalars['String'];
3676
+ suspended: Scalars['Boolean'];
3677
+ }
3678
+ export interface UserQueryDto {
3679
+ page?: (Scalars['Int'] | null);
3680
+ limit?: (Scalars['Int'] | null);
3681
+ search?: (Scalars['String'] | null);
3682
+ userType?: (Scalars['String'] | null);
3683
+ suspended?: (Scalars['String'] | null);
3684
+ sport?: (Scalars['String'] | null);
3685
+ sportLevel?: (Scalars['String'] | null);
3686
+ gender?: (Scalars['String'] | null);
3687
+ location?: (Scalars['String'] | null);
3688
+ nationality?: (Scalars['String'] | null);
3689
+ ageMin?: (Scalars['String'] | null);
3690
+ ageMax?: (Scalars['String'] | null);
3691
+ sortField?: (Scalars['String'] | null);
3692
+ sortOrder?: (Scalars['String'] | null);
3693
+ }
3694
+ export interface DeleteVtxUserDto {
3695
+ userIdentifier: Scalars['String'];
3696
+ }
3348
3697
  export interface GetReceiptDto {
3349
3698
  _id: Scalars['String'];
3350
3699
  }
3700
+ export interface StripeQueryDto {
3701
+ operation: Scalars['String'];
3702
+ id: Scalars['String'];
3703
+ params?: (Scalars['String'] | null);
3704
+ }
3705
+ export interface GetTransactionDetailsDto {
3706
+ vtxSessionId?: (Scalars['String'] | null);
3707
+ stripeSessionId?: (Scalars['String'] | null);
3708
+ }
3709
+ export interface UpdateSportEventDto {
3710
+ _id: Scalars['String'];
3711
+ name?: (Scalars['String'] | null);
3712
+ cityId?: (Scalars['String'] | null);
3713
+ sportId?: (Scalars['String'] | null);
3714
+ startDate?: (Scalars['DateTime'] | null);
3715
+ endDate?: (Scalars['DateTime'] | null);
3716
+ website?: (Scalars['String'] | null);
3717
+ banner?: (AWSS3UploadedFileDto | null);
3718
+ eventLevel?: (Scalars['String'] | null);
3719
+ }
3351
3720
  export interface MergeSportsEventsDto {
3352
3721
  mergeTo: Scalars['String'];
3353
3722
  mergeName?: (Scalars['String'] | null);
@@ -3356,6 +3725,18 @@ export interface MergeSportsEventsDto {
3356
3725
  mergeWebsite?: (Scalars['String'] | null);
3357
3726
  mergeIds: Scalars['String'][];
3358
3727
  }
3728
+ export interface EventQueryDto {
3729
+ page?: (Scalars['Int'] | null);
3730
+ limit?: (Scalars['Int'] | null);
3731
+ search?: (Scalars['String'] | null);
3732
+ verified?: (Scalars['String'] | null);
3733
+ sport?: (Scalars['String'] | null);
3734
+ location?: (Scalars['String'] | null);
3735
+ dateFrom?: (Scalars['String'] | null);
3736
+ dateTo?: (Scalars['String'] | null);
3737
+ sortField?: (Scalars['String'] | null);
3738
+ sortOrder?: (Scalars['String'] | null);
3739
+ }
3359
3740
  export interface BudgetItemDto {
3360
3741
  quantity: Scalars['Float'];
3361
3742
  concept: Scalars['String'];
@@ -3466,20 +3847,6 @@ export interface CreateAthleteMembershipDto {
3466
3847
  issueDate?: (Scalars['DateTime'] | null);
3467
3848
  expirationDate?: (Scalars['DateTime'] | null);
3468
3849
  }
3469
- export interface DonationCheckoutDto {
3470
- fundingCampaignId: Scalars['String'];
3471
- donationAmount: Scalars['Float'];
3472
- mode?: Scalars['String'];
3473
- fromName?: (Scalars['String'] | null);
3474
- fromEmail?: (Scalars['String'] | null);
3475
- fromPhone?: (Scalars['String'] | null);
3476
- message?: (Scalars['String'] | null);
3477
- }
3478
- export interface StripeQueryDto {
3479
- operation: Scalars['String'];
3480
- id: Scalars['String'];
3481
- params?: (Scalars['String'] | null);
3482
- }
3483
3850
  export interface CreateAthleteIntegrationDto {
3484
3851
  athleteId: Scalars['String'];
3485
3852
  accessToken: Scalars['String'];
@@ -3490,9 +3857,6 @@ export interface CreateAthleteIntegrationDto {
3490
3857
  export interface GetFundingCheckoutSessionDataDto {
3491
3858
  _id: Scalars['String'];
3492
3859
  }
3493
- export interface DeleteAthleteDto {
3494
- userIdentifier: Scalars['String'];
3495
- }
3496
3860
  export interface SocialState {
3497
3861
  systemId: Scalars['String'];
3498
3862
  loginEmail: Scalars['String'];
@@ -3505,6 +3869,24 @@ export interface RegisterMemberDto {
3505
3869
  screenName?: (Scalars['String'] | null);
3506
3870
  profilePicture?: (AWSS3UploadedFileDto | null);
3507
3871
  }
3872
+ export interface TransactionQueryDto {
3873
+ page?: (Scalars['Int'] | null);
3874
+ limit?: (Scalars['Int'] | null);
3875
+ search?: (Scalars['String'] | null);
3876
+ type?: (Scalars['String'] | null);
3877
+ completed?: (Scalars['String'] | null);
3878
+ athleteStripeAccount?: (Scalars['String'] | null);
3879
+ athleteId?: (Scalars['String'] | null);
3880
+ dateFrom?: (Scalars['String'] | null);
3881
+ dateTo?: (Scalars['String'] | null);
3882
+ sortField?: (Scalars['String'] | null);
3883
+ sortOrder?: (Scalars['String'] | null);
3884
+ }
3885
+ export interface OffsetPaginationDto {
3886
+ pageNumber?: Scalars['Float'];
3887
+ pageSize?: Scalars['Float'];
3888
+ sortCriteria?: (SortCriteriaDto | null);
3889
+ }
3508
3890
  export interface QueryGenqlSelection {
3509
3891
  findTenantById?: (TenantGenqlSelection & {
3510
3892
  __args: {
@@ -3647,12 +4029,22 @@ export interface QueryGenqlSelection {
3647
4029
  input: existValueDto;
3648
4030
  };
3649
4031
  });
3650
- getAthleteHistoricalScores?: (HistoricalScoreTypeGenqlSelection & {
4032
+ getAthleteHistoricalScoresPeriod?: (HistoricalScoresPeriodGenqlSelection & {
3651
4033
  __args: {
3652
4034
  input: GetHistoricalScoresDto;
3653
4035
  };
3654
4036
  });
3655
- getMyHistoricalScores?: (HistoricalScoreTypeGenqlSelection & {
4037
+ getAthleteHistoricalScores?: (HistoricalScoreGenqlSelection & {
4038
+ __args: {
4039
+ input: GetHistoricalScoresDto;
4040
+ };
4041
+ });
4042
+ getMyHistoricalScoresPeriod?: (HistoricalScoresPeriodGenqlSelection & {
4043
+ __args: {
4044
+ input: GetMyHistoricalScoresDto;
4045
+ };
4046
+ });
4047
+ getMyHistoricalScores?: (HistoricalScoreGenqlSelection & {
3656
4048
  __args: {
3657
4049
  input: GetMyHistoricalScoresDto;
3658
4050
  };
@@ -3663,6 +4055,11 @@ export interface QueryGenqlSelection {
3663
4055
  };
3664
4056
  });
3665
4057
  getSports?: SportGenqlSelection;
4058
+ getSportsPaginated?: (PaginatedSportsTypeGenqlSelection & {
4059
+ __args?: {
4060
+ query?: (SportQueryDto | null);
4061
+ };
4062
+ });
3666
4063
  findSportById?: (SportGenqlSelection & {
3667
4064
  __args: {
3668
4065
  sportId: Scalars['String'];
@@ -3719,14 +4116,36 @@ export interface QueryGenqlSelection {
3719
4116
  input: VerifyCodeDto;
3720
4117
  };
3721
4118
  });
4119
+ isUserSuspended?: {
4120
+ __args: {
4121
+ loginEmail: Scalars['String'];
4122
+ };
4123
+ };
4124
+ getAllUsers?: AdminUserViewGenqlSelection;
4125
+ getUsersPaginated?: (PaginatedUsersTypeGenqlSelection & {
4126
+ __args?: {
4127
+ query?: (UserQueryDto | null);
4128
+ };
4129
+ });
3722
4130
  getStravaLoginUrl?: boolean | number;
3723
4131
  getSportsEvents?: (SportsEventGenqlSelection & {
3724
4132
  __args: {
3725
4133
  input: GetSportEventsDto;
3726
4134
  };
3727
4135
  });
4136
+ getSportsEventsPaginated?: (PaginatedEventsTypeGenqlSelection & {
4137
+ __args?: {
4138
+ query?: (EventQueryDto | null);
4139
+ };
4140
+ });
3728
4141
  getBudgetsByAthlete?: BudgetDataGenqlSelection;
3729
4142
  getDonationsByAthlete?: ReceiptGenqlSelection;
4143
+ getDonationsToAthlete?: (DonationGenqlSelection & {
4144
+ __args: {
4145
+ athleteId: Scalars['String'];
4146
+ };
4147
+ });
4148
+ getDonationsToMe?: DonationGenqlSelection;
3730
4149
  getBudgetConcepts?: BudgetConceptGenqlSelection;
3731
4150
  getBudgetItemUnits?: BudgetItemUnitGenqlSelection;
3732
4151
  getMembershipOrganizations?: MembershipOrganizationReferenceGenqlSelection;
@@ -3738,6 +4157,7 @@ export interface QueryGenqlSelection {
3738
4157
  input: StripeQueryDto;
3739
4158
  };
3740
4159
  });
4160
+ getStripeBalance?: StripeBalanceTypeGenqlSelection;
3741
4161
  getDatabaseTextFile?: (TextDatabaseFileGenqlSelection & {
3742
4162
  __args: {
3743
4163
  input: GetDatabaseFileDto;
@@ -3753,12 +4173,28 @@ export interface QueryGenqlSelection {
3753
4173
  input: GetReceiptDto;
3754
4174
  };
3755
4175
  });
4176
+ getTransactionDetails?: (TransactionDetailsGenqlSelection & {
4177
+ __args: {
4178
+ input: GetTransactionDetailsDto;
4179
+ };
4180
+ });
3756
4181
  findMemberForUser?: (MemberGenqlSelection & {
3757
4182
  __args: {
3758
4183
  loginEmail: Scalars['String'];
3759
4184
  };
3760
4185
  });
3761
4186
  getDonationsByMember?: DonationGenqlSelection;
4187
+ getDonationsByUser?: (DonationGenqlSelection & {
4188
+ __args: {
4189
+ email: Scalars['String'];
4190
+ };
4191
+ });
4192
+ getAllTransactions?: AdminTransactionViewGenqlSelection;
4193
+ getTransactionsPaginated?: (PaginatedTransactionsTypeGenqlSelection & {
4194
+ __args?: {
4195
+ query?: (TransactionQueryDto | null);
4196
+ };
4197
+ });
3762
4198
  __typename?: boolean | number;
3763
4199
  __scalar?: boolean | number;
3764
4200
  }
@@ -3930,6 +4366,7 @@ export interface MutationGenqlSelection {
3930
4366
  };
3931
4367
  });
3932
4368
  updateAthleteScores?: AthleteGenqlSelection;
4369
+ updateAthleteCompetitionScores?: AthleteGenqlSelection;
3933
4370
  setCurrentCampaign?: (FundRaisingCampaignGenqlSelection & {
3934
4371
  __args: {
3935
4372
  input: SetCurrentCampaignDto;
@@ -4021,6 +4458,17 @@ export interface MutationGenqlSelection {
4021
4458
  input: Scalars['String'];
4022
4459
  };
4023
4460
  });
4461
+ updateUserSuspendedStatus?: (EditValueResponseGenqlSelection & {
4462
+ __args: {
4463
+ input: UpdateUserSuspendedStatusDto;
4464
+ };
4465
+ });
4466
+ deleteMyAccount?: DeleteVtxUserResponseGenqlSelection;
4467
+ deleteVtxUser?: (DeleteVtxUserResponseGenqlSelection & {
4468
+ __args: {
4469
+ input: DeleteVtxUserDto;
4470
+ };
4471
+ });
4024
4472
  handleStravaCallback?: (StravaTokenGenqlSelection & {
4025
4473
  __args: {
4026
4474
  data: RegisterStravaDto;
@@ -4036,6 +4484,16 @@ export interface MutationGenqlSelection {
4036
4484
  input: CreateSportEventDto;
4037
4485
  };
4038
4486
  });
4487
+ updateSportsEvent?: (SportsEventGenqlSelection & {
4488
+ __args: {
4489
+ input: UpdateSportEventDto;
4490
+ };
4491
+ });
4492
+ deleteSportsEvent?: (EditValueResponseGenqlSelection & {
4493
+ __args: {
4494
+ eventId: Scalars['String'];
4495
+ };
4496
+ });
4039
4497
  mergeSportsEvents?: (MergeEventsResponseGenqlSelection & {
4040
4498
  __args: {
4041
4499
  input: MergeSportsEventsDto;
@@ -4647,9 +5105,9 @@ export declare const isStripeAccount: (obj?: {
4647
5105
  export declare const isStripeAccountReference: (obj?: {
4648
5106
  __typename?: any;
4649
5107
  } | null) => obj is StripeAccountReference;
4650
- export declare const isHistoricalScoreType: (obj?: {
5108
+ export declare const isHistoricalScore: (obj?: {
4651
5109
  __typename?: any;
4652
- } | null) => obj is HistoricalScoreType;
5110
+ } | null) => obj is HistoricalScore;
4653
5111
  export declare const isAthleteReference: (obj?: {
4654
5112
  __typename?: any;
4655
5113
  } | null) => obj is AthleteReference;
@@ -4749,6 +5207,15 @@ export declare const isDonation: (obj?: {
4749
5207
  export declare const isMember: (obj?: {
4750
5208
  __typename?: any;
4751
5209
  } | null) => obj is Member;
5210
+ export declare const isAdminUserView: (obj?: {
5211
+ __typename?: any;
5212
+ } | null) => obj is AdminUserView;
5213
+ export declare const isAdminTransactionFundingDetails: (obj?: {
5214
+ __typename?: any;
5215
+ } | null) => obj is AdminTransactionFundingDetails;
5216
+ export declare const isAdminTransactionView: (obj?: {
5217
+ __typename?: any;
5218
+ } | null) => obj is AdminTransactionView;
4752
5219
  export declare const isEditValueResponse: (obj?: {
4753
5220
  __typename?: any;
4754
5221
  } | null) => obj is EditValueResponse;
@@ -4779,21 +5246,51 @@ export declare const isCompetitionDeleteVerificationReason: (obj?: {
4779
5246
  export declare const isCompetitionDeleteVerificationResponse: (obj?: {
4780
5247
  __typename?: any;
4781
5248
  } | null) => obj is CompetitionDeleteVerificationResponse;
5249
+ export declare const isHistoricalScoresPeriod: (obj?: {
5250
+ __typename?: any;
5251
+ } | null) => obj is HistoricalScoresPeriod;
4782
5252
  export declare const isStripeObject: (obj?: {
4783
5253
  __typename?: any;
4784
5254
  } | null) => obj is StripeObject;
5255
+ export declare const isEnhancedPaginationInfoType: (obj?: {
5256
+ __typename?: any;
5257
+ } | null) => obj is EnhancedPaginationInfoType;
5258
+ export declare const isPaginatedSportsType: (obj?: {
5259
+ __typename?: any;
5260
+ } | null) => obj is PaginatedSportsType;
4785
5261
  export declare const isUserImages: (obj?: {
4786
5262
  __typename?: any;
4787
5263
  } | null) => obj is UserImages;
4788
5264
  export declare const isValidatedToken: (obj?: {
4789
5265
  __typename?: any;
4790
5266
  } | null) => obj is ValidatedToken;
5267
+ export declare const isDeleteVtxUserResponse: (obj?: {
5268
+ __typename?: any;
5269
+ } | null) => obj is DeleteVtxUserResponse;
5270
+ export declare const isPaginatedUsersType: (obj?: {
5271
+ __typename?: any;
5272
+ } | null) => obj is PaginatedUsersType;
5273
+ export declare const isTransactionDetails: (obj?: {
5274
+ __typename?: any;
5275
+ } | null) => obj is TransactionDetails;
5276
+ export declare const isPaginatedEventsType: (obj?: {
5277
+ __typename?: any;
5278
+ } | null) => obj is PaginatedEventsType;
5279
+ export declare const isCurrencyAmountType: (obj?: {
5280
+ __typename?: any;
5281
+ } | null) => obj is CurrencyAmountType;
5282
+ export declare const isStripeBalanceType: (obj?: {
5283
+ __typename?: any;
5284
+ } | null) => obj is StripeBalanceType;
4791
5285
  export declare const isStripeTransfer: (obj?: {
4792
5286
  __typename?: any;
4793
5287
  } | null) => obj is StripeTransfer;
4794
5288
  export declare const isUserDomain: (obj?: {
4795
5289
  __typename?: any;
4796
5290
  } | null) => obj is UserDomain;
5291
+ export declare const isPaginatedTransactionsType: (obj?: {
5292
+ __typename?: any;
5293
+ } | null) => obj is PaginatedTransactionsType;
4797
5294
  export declare const isQuery: (obj?: {
4798
5295
  __typename?: any;
4799
5296
  } | null) => obj is Query;