@vertikalx/vtx-backend-client 3.0.0-dev.24 → 3.0.0-dev.26

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.
@@ -3,9 +3,9 @@ export type Scalars = {
3
3
  Boolean: boolean;
4
4
  DateTime: any;
5
5
  Float: number;
6
+ Int: number;
6
7
  ID: string;
7
8
  JSONObject: any;
8
- Int: number;
9
9
  };
10
10
  export interface User {
11
11
  _id: Scalars['String'];
@@ -312,108 +312,17 @@ export interface CodeVerificationResponse {
312
312
  error: (ErrorInfo | null);
313
313
  __typename: 'CodeVerificationResponse';
314
314
  }
315
- export interface BrandStats {
316
- campaigns: (Scalars['Float'] | null);
317
- sponsorships: (Scalars['Float'] | null);
318
- sports: (Scalars['Float'] | null);
319
- athletes: (Scalars['Float'] | null);
320
- __typename: 'BrandStats';
321
- }
322
- export interface BrandTranslation {
323
- _id: Scalars['String'];
324
- brandId: Scalars['String'];
325
- language: Scalars['String'];
326
- name: (Scalars['String'] | null);
327
- slogan: (Scalars['String'] | null);
328
- description: (Scalars['String'] | null);
329
- logo: (AWSS3File | null);
330
- banner: (AWSS3File | null);
331
- __typename: 'BrandTranslation';
332
- }
333
- export interface Brand {
315
+ export interface Industry {
334
316
  _id: Scalars['String'];
335
317
  name: Scalars['String'];
336
- slogan: (Scalars['String'] | null);
337
- website: (Scalars['String'] | null);
338
- description: (Scalars['String'] | null);
339
- approved: Scalars['Boolean'];
340
- published: Scalars['Boolean'];
341
- logo: (AWSS3File | null);
342
- banner: (AWSS3File | null);
343
- stats: (BrandStats | null);
344
- operatorIds: (Scalars['String'][] | null);
345
- translations: (BrandTranslation[] | null);
346
- __typename: 'Brand';
347
- }
348
- export interface StravaTpiRideDto {
349
- distanceKm: Scalars['Float'];
350
- distanceKmLast: Scalars['Float'];
351
- elapsedTimeMin: Scalars['Float'];
352
- elapsedTimeMinLast: Scalars['Float'];
353
- averageSpeedKmh: Scalars['Float'];
354
- averageSpeedKmhLast: Scalars['Float'];
355
- maxSpeedKmh: Scalars['Float'];
356
- maxSpeedKmhLast: Scalars['Float'];
357
- averageHeartRateBpm: Scalars['Float'];
358
- averageHeartRateBpmLast: Scalars['Float'];
359
- maxHeartRateBpm: Scalars['Float'];
360
- maxHeartRateBpmLast: Scalars['Float'];
361
- averageCadenceStm: Scalars['Float'];
362
- averageCadenceStmLast: Scalars['Float'];
363
- lastDate: (Scalars['DateTime'] | null);
364
- country: (Scalars['String'] | null);
365
- state: (Scalars['String'] | null);
366
- city: (Scalars['String'] | null);
367
- tpi: Scalars['Float'];
368
- __typename: 'StravaTpiRideDto';
369
- }
370
- export interface StravaTpiRunDto {
371
- distanceKm: Scalars['Float'];
372
- distanceKmLast: Scalars['Float'];
373
- elapsedTimeMin: Scalars['Float'];
374
- elapsedTimeMinLast: Scalars['Float'];
375
- averageSpeedKmh: Scalars['Float'];
376
- averageSpeedKmhLast: Scalars['Float'];
377
- maxSpeedKmh: Scalars['Float'];
378
- maxSpeedKmhLast: Scalars['Float'];
379
- averageHeartRateBpm: Scalars['Float'];
380
- averageHeartRateBpmLast: Scalars['Float'];
381
- maxHeartRateBpm: Scalars['Float'];
382
- maxHeartRateBpmLast: Scalars['Float'];
383
- averageCadenceStm: Scalars['Float'];
384
- averageCadenceStmLast: Scalars['Float'];
385
- elevHigh: Scalars['Float'];
386
- elevHighLast: Scalars['Float'];
387
- elevLow: Scalars['Float'];
388
- elevLowLast: Scalars['Float'];
389
- lastDate: (Scalars['DateTime'] | null);
390
- country: (Scalars['String'] | null);
391
- state: (Scalars['String'] | null);
392
- city: (Scalars['String'] | null);
393
- tpi: Scalars['Float'];
394
- __typename: 'StravaTpiRunDto';
318
+ __typename: 'Industry';
395
319
  }
396
- export interface StravaTpiSwimDto {
397
- distanceKm: Scalars['Float'];
398
- distanceKmLast: Scalars['Float'];
399
- elapsedTimeMin: Scalars['Float'];
400
- elapsedTimeMinLast: Scalars['Float'];
401
- averageSpeedKmh: Scalars['Float'];
402
- averageSpeedKmhLast: Scalars['Float'];
403
- maxSpeedKmh: Scalars['Float'];
404
- maxSpeedKmhLast: Scalars['Float'];
405
- averageHeartRateBpm: Scalars['Float'];
406
- averageHeartRateBpmLast: Scalars['Float'];
407
- maxHeartRateBpm: Scalars['Float'];
408
- maxHeartRateBpmLast: Scalars['Float'];
409
- averageCadenceStm: Scalars['Float'];
410
- averageCadenceStmLast: Scalars['Float'];
411
- lastDate: (Scalars['DateTime'] | null);
412
- country: (Scalars['String'] | null);
413
- state: (Scalars['String'] | null);
414
- city: (Scalars['String'] | null);
415
- tpi: Scalars['Float'];
416
- __typename: 'StravaTpiSwimDto';
320
+ export interface SponsorStats {
321
+ sponsoredAthletes: Scalars['Float'];
322
+ totalBrands: Scalars['Float'];
323
+ activeCampaigns: Scalars['Float'];
324
+ activeSponsorships: Scalars['Float'];
325
+ __typename: 'SponsorStats';
417
326
  }
418
327
  export interface City {
419
328
  _id: Scalars['String'];
@@ -495,53 +404,14 @@ export interface AthleteCriteria {
495
404
  _id: Scalars['String'];
496
405
  label: (Scalars['String'] | null);
497
406
  qualifications: (QualificationTypeUnion[] | null);
407
+ minAge: (Scalars['Int'] | null);
408
+ maxAge: (Scalars['Int'] | null);
409
+ allowedGenders: (Scalars['String'][] | null);
498
410
  __typename: 'AthleteCriteria';
499
411
  }
500
412
  export type QualificationTypeUnion = (AgeQualification | GenderQualification | ScoreQualification | LocationQualification | NationalityQualification | DistanceQualification | SportsQualification | SportsLevelQualification) & {
501
413
  __isUnion?: true;
502
414
  };
503
- export interface Industry {
504
- _id: Scalars['String'];
505
- name: Scalars['String'];
506
- __typename: 'Industry';
507
- }
508
- export interface SponsorStats {
509
- sponsoredAthletes: Scalars['Float'];
510
- totalBrands: Scalars['Float'];
511
- activeCampaigns: Scalars['Float'];
512
- activeSponsorships: Scalars['Float'];
513
- __typename: 'SponsorStats';
514
- }
515
- export interface SponsorBrand {
516
- _id: Scalars['String'];
517
- name: Scalars['String'];
518
- slogan: (Scalars['String'] | null);
519
- website: (Scalars['String'] | null);
520
- description: (Scalars['String'] | null);
521
- approved: Scalars['Boolean'];
522
- published: Scalars['Boolean'];
523
- logo: (AWSS3File | null);
524
- banner: (AWSS3File | null);
525
- stats: (BrandStats | null);
526
- operatorIds: (Scalars['String'][] | null);
527
- translations: (BrandTranslation[] | null);
528
- sponsorBrandId: Scalars['String'];
529
- authorizedUse: Scalars['Boolean'];
530
- isAuthorizer: Scalars['Boolean'];
531
- __typename: 'SponsorBrand';
532
- }
533
- export interface Sponsor {
534
- _id: Scalars['String'];
535
- name: Scalars['String'];
536
- description: Scalars['String'];
537
- tenant: Tenant;
538
- industry: (Industry | null);
539
- stats: (SponsorStats | null);
540
- brands: (SponsorBrand[] | null);
541
- sponsorships: (Sponsorship[] | null);
542
- approved: Scalars['Boolean'];
543
- __typename: 'Sponsor';
544
- }
545
415
  export interface SponsorshipItem {
546
416
  _id: Scalars['String'];
547
417
  quantity: Scalars['Float'];
@@ -611,6 +481,130 @@ export interface Sponsorship {
611
481
  translations: (SponsorshipTranslation[] | null);
612
482
  __typename: 'Sponsorship';
613
483
  }
484
+ export interface Sponsor {
485
+ _id: Scalars['String'];
486
+ name: Scalars['String'];
487
+ description: (Scalars['String'] | null);
488
+ tenant: (Tenant | null);
489
+ industry: (Industry | null);
490
+ stats: (SponsorStats | null);
491
+ brands: (SponsorBrand[] | null);
492
+ sponsorships: (Sponsorship[] | null);
493
+ approved: Scalars['Boolean'];
494
+ __typename: 'Sponsor';
495
+ }
496
+ export interface SponsorBrand {
497
+ _id: Scalars['String'];
498
+ sponsor: (Sponsor | null);
499
+ authorizedUse: Scalars['Boolean'];
500
+ isAuthorizer: Scalars['Boolean'];
501
+ __typename: 'SponsorBrand';
502
+ }
503
+ export interface BrandStats {
504
+ campaigns: (Scalars['Float'] | null);
505
+ sponsorships: (Scalars['Float'] | null);
506
+ sports: (Scalars['Float'] | null);
507
+ athletes: (Scalars['Float'] | null);
508
+ __typename: 'BrandStats';
509
+ }
510
+ export interface BrandTranslation {
511
+ _id: Scalars['String'];
512
+ brandId: Scalars['String'];
513
+ language: Scalars['String'];
514
+ name: (Scalars['String'] | null);
515
+ slogan: (Scalars['String'] | null);
516
+ description: (Scalars['String'] | null);
517
+ logo: (AWSS3File | null);
518
+ banner: (AWSS3File | null);
519
+ __typename: 'BrandTranslation';
520
+ }
521
+ export interface Brand {
522
+ _id: Scalars['String'];
523
+ name: Scalars['String'];
524
+ slogan: (Scalars['String'] | null);
525
+ website: (Scalars['String'] | null);
526
+ affiliateLink: (Scalars['String'] | null);
527
+ description: (Scalars['String'] | null);
528
+ approved: Scalars['Boolean'];
529
+ published: Scalars['Boolean'];
530
+ logo: (AWSS3File | null);
531
+ banner: (AWSS3File | null);
532
+ stats: (BrandStats | null);
533
+ operatorIds: (Scalars['String'][] | null);
534
+ translations: (BrandTranslation[] | null);
535
+ sponsors: (SponsorBrand[] | null);
536
+ __typename: 'Brand';
537
+ }
538
+ export interface StravaTpiRideDto {
539
+ distanceKm: Scalars['Float'];
540
+ distanceKmLast: Scalars['Float'];
541
+ elapsedTimeMin: Scalars['Float'];
542
+ elapsedTimeMinLast: Scalars['Float'];
543
+ averageSpeedKmh: Scalars['Float'];
544
+ averageSpeedKmhLast: Scalars['Float'];
545
+ maxSpeedKmh: Scalars['Float'];
546
+ maxSpeedKmhLast: Scalars['Float'];
547
+ averageHeartRateBpm: Scalars['Float'];
548
+ averageHeartRateBpmLast: Scalars['Float'];
549
+ maxHeartRateBpm: Scalars['Float'];
550
+ maxHeartRateBpmLast: Scalars['Float'];
551
+ averageCadenceStm: Scalars['Float'];
552
+ averageCadenceStmLast: Scalars['Float'];
553
+ lastDate: (Scalars['DateTime'] | null);
554
+ country: (Scalars['String'] | null);
555
+ state: (Scalars['String'] | null);
556
+ city: (Scalars['String'] | null);
557
+ tpi: Scalars['Float'];
558
+ __typename: 'StravaTpiRideDto';
559
+ }
560
+ export interface StravaTpiRunDto {
561
+ distanceKm: Scalars['Float'];
562
+ distanceKmLast: Scalars['Float'];
563
+ elapsedTimeMin: Scalars['Float'];
564
+ elapsedTimeMinLast: Scalars['Float'];
565
+ averageSpeedKmh: Scalars['Float'];
566
+ averageSpeedKmhLast: Scalars['Float'];
567
+ maxSpeedKmh: Scalars['Float'];
568
+ maxSpeedKmhLast: Scalars['Float'];
569
+ averageHeartRateBpm: Scalars['Float'];
570
+ averageHeartRateBpmLast: Scalars['Float'];
571
+ maxHeartRateBpm: Scalars['Float'];
572
+ maxHeartRateBpmLast: Scalars['Float'];
573
+ averageCadenceStm: Scalars['Float'];
574
+ averageCadenceStmLast: Scalars['Float'];
575
+ elevHigh: Scalars['Float'];
576
+ elevHighLast: Scalars['Float'];
577
+ elevLow: Scalars['Float'];
578
+ elevLowLast: Scalars['Float'];
579
+ lastDate: (Scalars['DateTime'] | null);
580
+ country: (Scalars['String'] | null);
581
+ state: (Scalars['String'] | null);
582
+ city: (Scalars['String'] | null);
583
+ tpi: Scalars['Float'];
584
+ __typename: 'StravaTpiRunDto';
585
+ }
586
+ export interface StravaTpiSwimDto {
587
+ distanceKm: Scalars['Float'];
588
+ distanceKmLast: Scalars['Float'];
589
+ elapsedTimeMin: Scalars['Float'];
590
+ elapsedTimeMinLast: Scalars['Float'];
591
+ averageSpeedKmh: Scalars['Float'];
592
+ averageSpeedKmhLast: Scalars['Float'];
593
+ maxSpeedKmh: Scalars['Float'];
594
+ maxSpeedKmhLast: Scalars['Float'];
595
+ averageHeartRateBpm: Scalars['Float'];
596
+ averageHeartRateBpmLast: Scalars['Float'];
597
+ maxHeartRateBpm: Scalars['Float'];
598
+ maxHeartRateBpmLast: Scalars['Float'];
599
+ averageCadenceStm: Scalars['Float'];
600
+ averageCadenceStmLast: Scalars['Float'];
601
+ lastDate: (Scalars['DateTime'] | null);
602
+ country: (Scalars['String'] | null);
603
+ state: (Scalars['String'] | null);
604
+ city: (Scalars['String'] | null);
605
+ tpi: Scalars['Float'];
606
+ __typename: 'StravaTpiSwimDto';
607
+ }
614
608
  export interface FollowStats {
615
609
  followers: Scalars['Float'];
616
610
  followed: Scalars['Float'];
@@ -1072,13 +1066,6 @@ export interface SponsorAthleteInvitation {
1072
1066
  status: Scalars['String'];
1073
1067
  __typename: 'SponsorAthleteInvitation';
1074
1068
  }
1075
- export interface StravaToken {
1076
- token_type: Scalars['String'];
1077
- expires_at: Scalars['String'];
1078
- refresh_token: Scalars['String'];
1079
- access_token: Scalars['String'];
1080
- __typename: 'StravaToken';
1081
- }
1082
1069
  export interface StripeSession {
1083
1070
  account: Scalars['String'];
1084
1071
  client_secret: Scalars['String'];
@@ -1327,20 +1314,171 @@ export interface AdminTransactionFundingDetails {
1327
1314
  mode: (Scalars['String'] | null);
1328
1315
  __typename: 'AdminTransactionFundingDetails';
1329
1316
  }
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);
1317
+ export interface AdminTransactionView {
1318
+ _id: Scalars['ID'];
1319
+ createdDate: Scalars['DateTime'];
1320
+ stripeSessionId: Scalars['String'];
1321
+ concept: (Scalars['String'] | null);
1322
+ donationAmount: Scalars['Float'];
1323
+ fromEmail: (Scalars['String'] | null);
1324
+ type: Scalars['String'];
1325
+ confirmed: Scalars['Boolean'];
1326
+ completed: Scalars['Boolean'];
1327
+ completedDate: (Scalars['DateTime'] | null);
1328
+ stripeAccountId: Scalars['String'];
1329
+ fundingDetails: (AdminTransactionFundingDetails | null);
1330
+ __typename: 'AdminTransactionView';
1331
+ }
1332
+ export interface Offer {
1333
+ _id: Scalars['String'];
1334
+ name: (Scalars['String'] | null);
1335
+ label: Scalars['String'];
1336
+ decription: (Scalars['String'] | null);
1337
+ offerImage: (AWSS3File | null);
1338
+ type: Scalars['String'];
1339
+ status: Scalars['String'];
1340
+ discountType: Scalars['String'];
1341
+ discountTypeData: Scalars['String'];
1342
+ conditions: (Scalars['String'][] | null);
1343
+ brand: Brand;
1344
+ sponsor: Sponsor;
1345
+ criteria: (AthleteCriteria | null);
1346
+ dateStart: (Scalars['DateTime'] | null);
1347
+ dateEnd: (Scalars['DateTime'] | null);
1348
+ dateCreated: Scalars['DateTime'];
1349
+ totalCodes: Scalars['Int'];
1350
+ availableCodes: Scalars['Int'];
1351
+ availableCountries: (Country[] | null);
1352
+ disclaimer: (Scalars['String'] | null);
1353
+ genericCode: (Scalars['String'] | null);
1354
+ featured: Scalars['Boolean'];
1355
+ __typename: 'Offer';
1356
+ }
1357
+ export interface Promotion {
1358
+ _id: Scalars['String'];
1359
+ name: (Scalars['String'] | null);
1360
+ label: Scalars['String'];
1361
+ decription: (Scalars['String'] | null);
1362
+ offerImage: (AWSS3File | null);
1363
+ type: Scalars['String'];
1364
+ status: Scalars['String'];
1365
+ discountType: Scalars['String'];
1366
+ discountTypeData: Scalars['String'];
1367
+ conditions: (Scalars['String'][] | null);
1368
+ brand: Brand;
1369
+ sponsor: Sponsor;
1370
+ criteria: (AthleteCriteria | null);
1371
+ dateStart: (Scalars['DateTime'] | null);
1372
+ dateEnd: (Scalars['DateTime'] | null);
1373
+ dateCreated: Scalars['DateTime'];
1374
+ totalCodes: Scalars['Int'];
1375
+ availableCodes: Scalars['Int'];
1376
+ availableCountries: (Country[] | null);
1377
+ disclaimer: (Scalars['String'] | null);
1378
+ genericCode: Scalars['String'];
1379
+ featured: Scalars['Boolean'];
1380
+ __typename: 'Promotion';
1381
+ }
1382
+ export interface CouponCode {
1383
+ _id: Scalars['String'];
1384
+ couponId: Scalars['String'];
1385
+ code: Scalars['String'];
1386
+ expires: (Scalars['DateTime'] | null);
1387
+ dateCreated: Scalars['DateTime'];
1388
+ __typename: 'CouponCode';
1389
+ }
1390
+ export interface Coupon {
1391
+ _id: Scalars['String'];
1392
+ name: (Scalars['String'] | null);
1393
+ label: Scalars['String'];
1394
+ decription: (Scalars['String'] | null);
1395
+ offerImage: (AWSS3File | null);
1396
+ type: Scalars['String'];
1397
+ status: Scalars['String'];
1398
+ discountType: Scalars['String'];
1399
+ discountTypeData: Scalars['String'];
1400
+ conditions: (Scalars['String'][] | null);
1401
+ brand: Brand;
1402
+ sponsor: Sponsor;
1403
+ criteria: (AthleteCriteria | null);
1404
+ dateStart: (Scalars['DateTime'] | null);
1405
+ dateEnd: (Scalars['DateTime'] | null);
1406
+ dateCreated: Scalars['DateTime'];
1407
+ totalCodes: Scalars['Int'];
1408
+ availableCodes: Scalars['Int'];
1409
+ availableCountries: (Country[] | null);
1410
+ disclaimer: (Scalars['String'] | null);
1411
+ genericCode: (Scalars['String'] | null);
1412
+ featured: Scalars['Boolean'];
1413
+ couponCodes: (CouponCode[] | null);
1414
+ __typename: 'Coupon';
1415
+ }
1416
+ export interface OfferClaim {
1417
+ _id: Scalars['String'];
1418
+ offer: Offer;
1419
+ athlete: Athlete;
1420
+ claimedAt: Scalars['DateTime'];
1421
+ code: (Scalars['String'] | null);
1422
+ __typename: 'OfferClaim';
1423
+ }
1424
+ export interface EligibilityResult {
1425
+ status: EligibilityStatus;
1426
+ failedCriteria: Scalars['String'][];
1427
+ missingFields: Scalars['String'][];
1428
+ messages: Scalars['String'][];
1429
+ __typename: 'EligibilityResult';
1430
+ }
1431
+ export type EligibilityStatus = 'ELIGIBLE' | 'NOT_ELIGIBLE' | 'UNKNOWN';
1432
+ export interface EnhancedPaginationInfoType {
1433
+ currentPage: Scalars['Int'];
1434
+ totalPages: Scalars['Int'];
1435
+ totalItems: Scalars['Int'];
1436
+ itemsPerPage: Scalars['Int'];
1437
+ hasNextPage: Scalars['Boolean'];
1438
+ hasPreviousPage: Scalars['Boolean'];
1439
+ startIndex: Scalars['Int'];
1440
+ endIndex: Scalars['Int'];
1441
+ __typename: 'EnhancedPaginationInfoType';
1442
+ }
1443
+ export interface OfferWithEligibility {
1444
+ _id: Scalars['String'];
1445
+ name: (Scalars['String'] | null);
1446
+ label: Scalars['String'];
1447
+ decription: (Scalars['String'] | null);
1448
+ offerImage: (AWSS3File | null);
1337
1449
  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';
1450
+ status: Scalars['String'];
1451
+ discountType: Scalars['String'];
1452
+ discountTypeData: Scalars['String'];
1453
+ conditions: (Scalars['String'][] | null);
1454
+ brand: Brand;
1455
+ sponsor: Sponsor;
1456
+ criteria: (AthleteCriteria | null);
1457
+ dateStart: (Scalars['DateTime'] | null);
1458
+ dateEnd: (Scalars['DateTime'] | null);
1459
+ dateCreated: Scalars['DateTime'];
1460
+ totalCodes: Scalars['Int'];
1461
+ availableCodes: Scalars['Int'];
1462
+ availableCountries: (Country[] | null);
1463
+ disclaimer: (Scalars['String'] | null);
1464
+ featured: Scalars['Boolean'];
1465
+ eligibility: EligibilityResult;
1466
+ __typename: 'OfferWithEligibility';
1467
+ }
1468
+ export interface PaginatedOffersWithEligibility {
1469
+ items: OfferWithEligibility[];
1470
+ pagination: EnhancedPaginationInfoType;
1471
+ __typename: 'PaginatedOffersWithEligibility';
1472
+ }
1473
+ export interface PaginatedBrands {
1474
+ items: Brand[];
1475
+ pagination: EnhancedPaginationInfoType;
1476
+ __typename: 'PaginatedBrands';
1477
+ }
1478
+ export interface PaginatedSponsors {
1479
+ items: Sponsor[];
1480
+ pagination: EnhancedPaginationInfoType;
1481
+ __typename: 'PaginatedSponsors';
1344
1482
  }
1345
1483
  export interface EditValueResponse {
1346
1484
  field: Scalars['String'];
@@ -1460,21 +1598,10 @@ export interface CheckScoreRefreshCapabilityResponse {
1460
1598
  capabilities: ScoreRefreshCapability[];
1461
1599
  __typename: 'CheckScoreRefreshCapabilityResponse';
1462
1600
  }
1463
- export interface EnhancedPaginationInfoType {
1464
- currentPage: Scalars['Int'];
1465
- totalPages: Scalars['Int'];
1466
- totalItems: Scalars['Int'];
1467
- itemsPerPage: Scalars['Int'];
1468
- hasNextPage: Scalars['Boolean'];
1469
- hasPreviousPage: Scalars['Boolean'];
1470
- startIndex: Scalars['Int'];
1471
- endIndex: Scalars['Int'];
1472
- __typename: 'EnhancedPaginationInfoType';
1473
- }
1474
- export interface PaginatedSportsType {
1601
+ export interface PaginatedSports {
1475
1602
  items: Sport[];
1476
1603
  pagination: EnhancedPaginationInfoType;
1477
- __typename: 'PaginatedSportsType';
1604
+ __typename: 'PaginatedSports';
1478
1605
  }
1479
1606
  export interface UserImages {
1480
1607
  profilePictureUrl: (Scalars['String'] | null);
@@ -1500,10 +1627,10 @@ export interface DeleteVtxUserResponse {
1500
1627
  errorMessage: (Scalars['String'] | null);
1501
1628
  __typename: 'DeleteVtxUserResponse';
1502
1629
  }
1503
- export interface PaginatedUsersType {
1630
+ export interface PaginatedUsers {
1504
1631
  items: AdminUserView[];
1505
1632
  pagination: EnhancedPaginationInfoType;
1506
- __typename: 'PaginatedUsersType';
1633
+ __typename: 'PaginatedUsers';
1507
1634
  }
1508
1635
  export interface TransactionDetails {
1509
1636
  stripeCheckoutSessionId: Scalars['String'];
@@ -1525,23 +1652,23 @@ export interface TransactionDetails {
1525
1652
  athleteDonationReceipt: (Receipt | null);
1526
1653
  __typename: 'TransactionDetails';
1527
1654
  }
1528
- export interface PaginatedEventsType {
1655
+ export interface PaginatedEvents {
1529
1656
  items: SportsEvent[];
1530
1657
  pagination: EnhancedPaginationInfoType;
1531
- __typename: 'PaginatedEventsType';
1658
+ __typename: 'PaginatedEvents';
1532
1659
  }
1533
1660
  export interface CurrencyAmountType {
1534
1661
  amount: Scalars['Float'];
1535
1662
  currency: Scalars['String'];
1536
1663
  __typename: 'CurrencyAmountType';
1537
1664
  }
1538
- export interface StripeBalanceType {
1665
+ export interface StripeBalance {
1539
1666
  availableUSD: Scalars['Float'];
1540
1667
  pendingUSD: Scalars['Float'];
1541
1668
  currency: Scalars['String'];
1542
1669
  availableBalances: CurrencyAmountType[];
1543
1670
  pendingBalances: CurrencyAmountType[];
1544
- __typename: 'StripeBalanceType';
1671
+ __typename: 'StripeBalance';
1545
1672
  }
1546
1673
  export interface StripeTransfer {
1547
1674
  _id: Scalars['ID'];
@@ -1565,12 +1692,29 @@ export interface UserDomain {
1565
1692
  user: (User | null);
1566
1693
  __typename: 'UserDomain';
1567
1694
  }
1568
- export interface PaginatedTransactionsType {
1695
+ export interface PaginatedTransactions {
1569
1696
  items: AdminTransactionView[];
1570
1697
  pagination: EnhancedPaginationInfoType;
1571
- __typename: 'PaginatedTransactionsType';
1698
+ __typename: 'PaginatedTransactions';
1699
+ }
1700
+ export interface PaginatedOffers {
1701
+ items: Offer[];
1702
+ pagination: EnhancedPaginationInfoType;
1703
+ __typename: 'PaginatedOffers';
1704
+ }
1705
+ export interface UploadResult {
1706
+ addedCodes: Scalars['Int'];
1707
+ duplicateCodes: Scalars['Int'];
1708
+ invalidRows: Scalars['String'][];
1709
+ __typename: 'UploadResult';
1710
+ }
1711
+ export interface OfferAvailability {
1712
+ available: Scalars['Boolean'];
1713
+ reason: (Scalars['String'] | null);
1714
+ __typename: 'OfferAvailability';
1572
1715
  }
1573
1716
  export type DonationMode = 'PUBLIC' | 'PRIVATE' | 'ANONYMOUS';
1717
+ export type OfferClaimStatus = 'ACTIVE' | 'EXPIRED' | 'ALL';
1574
1718
  export interface Query {
1575
1719
  findTenantById: Tenant;
1576
1720
  findTenantByEmail: Tenant;
@@ -1583,10 +1727,12 @@ export interface Query {
1583
1727
  industries: Industry[];
1584
1728
  findIndustryById: Industry;
1585
1729
  brands: Brand[];
1730
+ getBrandsPaginated: PaginatedBrands;
1586
1731
  getBrandByName: Brand;
1587
1732
  getBrandTranslation: BrandTranslation;
1588
1733
  existsValidSponsorForEmail: Sponsor;
1589
1734
  sponsors: Sponsor[];
1735
+ getSponsorsPaginated: PaginatedSponsors;
1590
1736
  findSponsorAthleteInvitation: SponsorAthleteInvitation;
1591
1737
  verifyAthleteCompetitionLinkedForDelete: CompetitionDeleteVerificationResponse;
1592
1738
  getAthletes: Athlete[];
@@ -1612,7 +1758,7 @@ export interface Query {
1612
1758
  getMyHistoricalScores: HistoricalScore[];
1613
1759
  getAthleteCampaigns: FundRaisingCampaign[];
1614
1760
  getSports: Sport[];
1615
- getSportsPaginated: PaginatedSportsType;
1761
+ getSportsPaginated: PaginatedSports;
1616
1762
  findSportById: Sport;
1617
1763
  getSportLevels: SportLevel[];
1618
1764
  getPublicSponsorships: Sponsorship[];
@@ -1630,10 +1776,10 @@ export interface Query {
1630
1776
  verifyCode: CodeVerificationResponse;
1631
1777
  isUserSuspended: Scalars['Boolean'];
1632
1778
  getAllUsers: AdminUserView[];
1633
- getUsersPaginated: PaginatedUsersType;
1779
+ getUsersPaginated: PaginatedUsers;
1634
1780
  getStravaLoginUrl: Scalars['String'];
1635
1781
  getSportsEvents: SportsEvent[];
1636
- getSportsEventsPaginated: PaginatedEventsType;
1782
+ getSportsEventsPaginated: PaginatedEvents;
1637
1783
  getBudgetsByAthlete: BudgetData;
1638
1784
  getDonationsByAthlete: Receipt[];
1639
1785
  getDonationsToAthlete: Donation[];
@@ -1645,8 +1791,9 @@ export interface Query {
1645
1791
  getAthleteInstagramIntegration: AthleteIntegrationReference;
1646
1792
  getAthleteIntegrations: AthleteIntegrationReference;
1647
1793
  stripeQuery: StripeObject;
1648
- getStripeBalance: StripeBalanceType;
1794
+ getStripeBalance: StripeBalance;
1649
1795
  getDatabaseTextFile: TextDatabaseFile;
1796
+ getS3UploadUrl: AWSS3UploadUrl;
1650
1797
  getReceipt: Receipt;
1651
1798
  getReceiptUrl: ReceiptUrl;
1652
1799
  getTransactionDetails: TransactionDetails;
@@ -1654,7 +1801,14 @@ export interface Query {
1654
1801
  getDonationsByMember: Donation[];
1655
1802
  getDonationsByUser: Donation[];
1656
1803
  getAllTransactions: AdminTransactionView[];
1657
- getTransactionsPaginated: PaginatedTransactionsType;
1804
+ getTransactionsPaginated: PaginatedTransactions;
1805
+ offers: Offer[];
1806
+ getOffersPaginated: PaginatedOffers;
1807
+ offersForAthlete: Offer[];
1808
+ offer: Offer;
1809
+ myOfferClaims: OfferClaim[];
1810
+ offerAvailability: OfferAvailability;
1811
+ offersWithEligibility: PaginatedOffersWithEligibility;
1658
1812
  __typename: 'Query';
1659
1813
  }
1660
1814
  export interface Mutation {
@@ -1671,9 +1825,15 @@ export interface Mutation {
1671
1825
  registerS3UploadedFile: AWSS3File;
1672
1826
  createIndustry: Industry;
1673
1827
  createBrand: Brand;
1828
+ updateBrand: Brand;
1829
+ deleteBrand: Scalars['Boolean'];
1830
+ linkBrandToSponsor: Brand;
1831
+ unlinkBrandFromSponsor: Brand;
1674
1832
  registerSponsor: Sponsor;
1675
1833
  createSponsor: Sponsor;
1676
1834
  sendAthleteInvitations: SponsorAthleteInvitation[];
1835
+ updateSponsor: Sponsor;
1836
+ deleteSponsor: Scalars['Boolean'];
1677
1837
  forceDeleteAthleteCompetition: DeleteSingleValueResponse;
1678
1838
  registerAthlete: Athlete;
1679
1839
  editProfileValue: EditValueResponse;
@@ -1711,8 +1871,6 @@ export interface Mutation {
1711
1871
  updateUserSuspendedStatus: EditValueResponse;
1712
1872
  deleteMyAccount: DeleteVtxUserResponse;
1713
1873
  deleteVtxUser: DeleteVtxUserResponse;
1714
- handleStravaCallback: StravaToken;
1715
- refreshStravaToken: StravaToken;
1716
1874
  createSportsEvent: SportsEvent;
1717
1875
  updateSportsEvent: SportsEvent;
1718
1876
  deleteSportsEvent: EditValueResponse;
@@ -1737,6 +1895,15 @@ export interface Mutation {
1737
1895
  createStripeLoginLink: Scalars['String'];
1738
1896
  createStripeAccountLink: Scalars['String'];
1739
1897
  registerMember: Member;
1898
+ createOffer: Offer;
1899
+ updateOffer: Offer;
1900
+ deleteOffer: Scalars['Boolean'];
1901
+ setOfferStatus: Offer;
1902
+ activateOffer: Offer;
1903
+ deactivateOffer: Offer;
1904
+ claimOffer: OfferClaim;
1905
+ removeOfferClaim: Scalars['Boolean'];
1906
+ uploadCouponCodes: UploadResult;
1740
1907
  __typename: 'Mutation';
1741
1908
  }
1742
1909
  export interface UserGenqlSelection {
@@ -2077,112 +2244,17 @@ export interface CodeVerificationResponseGenqlSelection {
2077
2244
  __typename?: boolean | number;
2078
2245
  __scalar?: boolean | number;
2079
2246
  }
2080
- export interface BrandStatsGenqlSelection {
2081
- campaigns?: boolean | number;
2082
- sponsorships?: boolean | number;
2083
- sports?: boolean | number;
2084
- athletes?: boolean | number;
2085
- __typename?: boolean | number;
2086
- __scalar?: boolean | number;
2087
- }
2088
- export interface BrandTranslationGenqlSelection {
2089
- _id?: boolean | number;
2090
- brandId?: boolean | number;
2091
- language?: boolean | number;
2092
- name?: boolean | number;
2093
- slogan?: boolean | number;
2094
- description?: boolean | number;
2095
- logo?: AWSS3FileGenqlSelection;
2096
- banner?: AWSS3FileGenqlSelection;
2097
- __typename?: boolean | number;
2098
- __scalar?: boolean | number;
2099
- }
2100
- export interface BrandGenqlSelection {
2247
+ export interface IndustryGenqlSelection {
2101
2248
  _id?: boolean | number;
2102
2249
  name?: boolean | number;
2103
- slogan?: boolean | number;
2104
- website?: boolean | number;
2105
- description?: boolean | number;
2106
- approved?: boolean | number;
2107
- published?: boolean | number;
2108
- logo?: AWSS3FileGenqlSelection;
2109
- banner?: AWSS3FileGenqlSelection;
2110
- stats?: BrandStatsGenqlSelection;
2111
- operatorIds?: boolean | number;
2112
- translations?: BrandTranslationGenqlSelection;
2113
- __typename?: boolean | number;
2114
- __scalar?: boolean | number;
2115
- }
2116
- export interface StravaTpiRideDtoGenqlSelection {
2117
- distanceKm?: boolean | number;
2118
- distanceKmLast?: boolean | number;
2119
- elapsedTimeMin?: boolean | number;
2120
- elapsedTimeMinLast?: boolean | number;
2121
- averageSpeedKmh?: boolean | number;
2122
- averageSpeedKmhLast?: boolean | number;
2123
- maxSpeedKmh?: boolean | number;
2124
- maxSpeedKmhLast?: boolean | number;
2125
- averageHeartRateBpm?: boolean | number;
2126
- averageHeartRateBpmLast?: boolean | number;
2127
- maxHeartRateBpm?: boolean | number;
2128
- maxHeartRateBpmLast?: boolean | number;
2129
- averageCadenceStm?: boolean | number;
2130
- averageCadenceStmLast?: boolean | number;
2131
- lastDate?: boolean | number;
2132
- country?: boolean | number;
2133
- state?: boolean | number;
2134
- city?: boolean | number;
2135
- tpi?: boolean | number;
2136
- __typename?: boolean | number;
2137
- __scalar?: boolean | number;
2138
- }
2139
- export interface StravaTpiRunDtoGenqlSelection {
2140
- distanceKm?: boolean | number;
2141
- distanceKmLast?: boolean | number;
2142
- elapsedTimeMin?: boolean | number;
2143
- elapsedTimeMinLast?: boolean | number;
2144
- averageSpeedKmh?: boolean | number;
2145
- averageSpeedKmhLast?: boolean | number;
2146
- maxSpeedKmh?: boolean | number;
2147
- maxSpeedKmhLast?: boolean | number;
2148
- averageHeartRateBpm?: boolean | number;
2149
- averageHeartRateBpmLast?: boolean | number;
2150
- maxHeartRateBpm?: boolean | number;
2151
- maxHeartRateBpmLast?: boolean | number;
2152
- averageCadenceStm?: boolean | number;
2153
- averageCadenceStmLast?: boolean | number;
2154
- elevHigh?: boolean | number;
2155
- elevHighLast?: boolean | number;
2156
- elevLow?: boolean | number;
2157
- elevLowLast?: boolean | number;
2158
- lastDate?: boolean | number;
2159
- country?: boolean | number;
2160
- state?: boolean | number;
2161
- city?: boolean | number;
2162
- tpi?: boolean | number;
2163
2250
  __typename?: boolean | number;
2164
2251
  __scalar?: boolean | number;
2165
2252
  }
2166
- export interface StravaTpiSwimDtoGenqlSelection {
2167
- distanceKm?: boolean | number;
2168
- distanceKmLast?: boolean | number;
2169
- elapsedTimeMin?: boolean | number;
2170
- elapsedTimeMinLast?: boolean | number;
2171
- averageSpeedKmh?: boolean | number;
2172
- averageSpeedKmhLast?: boolean | number;
2173
- maxSpeedKmh?: boolean | number;
2174
- maxSpeedKmhLast?: boolean | number;
2175
- averageHeartRateBpm?: boolean | number;
2176
- averageHeartRateBpmLast?: boolean | number;
2177
- maxHeartRateBpm?: boolean | number;
2178
- maxHeartRateBpmLast?: boolean | number;
2179
- averageCadenceStm?: boolean | number;
2180
- averageCadenceStmLast?: boolean | number;
2181
- lastDate?: boolean | number;
2182
- country?: boolean | number;
2183
- state?: boolean | number;
2184
- city?: boolean | number;
2185
- tpi?: boolean | number;
2253
+ export interface SponsorStatsGenqlSelection {
2254
+ sponsoredAthletes?: boolean | number;
2255
+ totalBrands?: boolean | number;
2256
+ activeCampaigns?: boolean | number;
2257
+ activeSponsorships?: boolean | number;
2186
2258
  __typename?: boolean | number;
2187
2259
  __scalar?: boolean | number;
2188
2260
  }
@@ -2277,6 +2349,9 @@ export interface AthleteCriteriaGenqlSelection {
2277
2349
  _id?: boolean | number;
2278
2350
  label?: boolean | number;
2279
2351
  qualifications?: QualificationTypeUnionGenqlSelection;
2352
+ minAge?: boolean | number;
2353
+ maxAge?: boolean | number;
2354
+ allowedGenders?: boolean | number;
2280
2355
  __typename?: boolean | number;
2281
2356
  __scalar?: boolean | number;
2282
2357
  }
@@ -2291,52 +2366,6 @@ export interface QualificationTypeUnionGenqlSelection {
2291
2366
  on_SportsLevelQualification?: SportsLevelQualificationGenqlSelection;
2292
2367
  __typename?: boolean | number;
2293
2368
  }
2294
- export interface IndustryGenqlSelection {
2295
- _id?: boolean | number;
2296
- name?: boolean | number;
2297
- __typename?: boolean | number;
2298
- __scalar?: boolean | number;
2299
- }
2300
- export interface SponsorStatsGenqlSelection {
2301
- sponsoredAthletes?: boolean | number;
2302
- totalBrands?: boolean | number;
2303
- activeCampaigns?: boolean | number;
2304
- activeSponsorships?: boolean | number;
2305
- __typename?: boolean | number;
2306
- __scalar?: boolean | number;
2307
- }
2308
- export interface SponsorBrandGenqlSelection {
2309
- _id?: boolean | number;
2310
- name?: boolean | number;
2311
- slogan?: boolean | number;
2312
- website?: boolean | number;
2313
- description?: boolean | number;
2314
- approved?: boolean | number;
2315
- published?: boolean | number;
2316
- logo?: AWSS3FileGenqlSelection;
2317
- banner?: AWSS3FileGenqlSelection;
2318
- stats?: BrandStatsGenqlSelection;
2319
- operatorIds?: boolean | number;
2320
- translations?: BrandTranslationGenqlSelection;
2321
- sponsorBrandId?: boolean | number;
2322
- authorizedUse?: boolean | number;
2323
- isAuthorizer?: boolean | number;
2324
- __typename?: boolean | number;
2325
- __scalar?: boolean | number;
2326
- }
2327
- export interface SponsorGenqlSelection {
2328
- _id?: boolean | number;
2329
- name?: boolean | number;
2330
- description?: boolean | number;
2331
- tenant?: TenantGenqlSelection;
2332
- industry?: IndustryGenqlSelection;
2333
- stats?: SponsorStatsGenqlSelection;
2334
- brands?: SponsorBrandGenqlSelection;
2335
- sponsorships?: SponsorshipGenqlSelection;
2336
- approved?: boolean | number;
2337
- __typename?: boolean | number;
2338
- __scalar?: boolean | number;
2339
- }
2340
2369
  export interface SponsorshipItemGenqlSelection {
2341
2370
  _id?: boolean | number;
2342
2371
  quantity?: boolean | number;
@@ -2377,38 +2406,170 @@ export interface SponsorshipStatsGenqlSelection {
2377
2406
  __typename?: boolean | number;
2378
2407
  __scalar?: boolean | number;
2379
2408
  }
2380
- export interface SponsorshipTranslationGenqlSelection {
2409
+ export interface SponsorshipTranslationGenqlSelection {
2410
+ _id?: boolean | number;
2411
+ sponsorshipId?: boolean | number;
2412
+ language?: boolean | number;
2413
+ title?: boolean | number;
2414
+ description?: boolean | number;
2415
+ terms?: boolean | number;
2416
+ banner?: AWSS3FileGenqlSelection;
2417
+ __typename?: boolean | number;
2418
+ __scalar?: boolean | number;
2419
+ }
2420
+ export interface SponsorshipGenqlSelection {
2421
+ _id?: boolean | number;
2422
+ title?: boolean | number;
2423
+ description?: boolean | number;
2424
+ cashValue?: boolean | number;
2425
+ otherValue?: boolean | number;
2426
+ brand?: BrandGenqlSelection;
2427
+ banner?: AWSS3FileGenqlSelection;
2428
+ criteria?: AthleteCriteriaGenqlSelection;
2429
+ deadline?: boolean | number;
2430
+ startDate?: boolean | number;
2431
+ duration?: DurationGenqlSelection;
2432
+ sponsor?: SponsorGenqlSelection;
2433
+ sponsorshipItems?: SponsorshipItemGenqlSelection;
2434
+ commitments?: SponsorshipCommitmentGenqlSelection;
2435
+ terms?: boolean | number;
2436
+ stats?: SponsorshipStatsGenqlSelection;
2437
+ isPrivate?: boolean | number;
2438
+ approved?: boolean | number;
2439
+ published?: boolean | number;
2440
+ translations?: SponsorshipTranslationGenqlSelection;
2441
+ __typename?: boolean | number;
2442
+ __scalar?: boolean | number;
2443
+ }
2444
+ export interface SponsorGenqlSelection {
2445
+ _id?: boolean | number;
2446
+ name?: boolean | number;
2447
+ description?: boolean | number;
2448
+ tenant?: TenantGenqlSelection;
2449
+ industry?: IndustryGenqlSelection;
2450
+ stats?: SponsorStatsGenqlSelection;
2451
+ brands?: SponsorBrandGenqlSelection;
2452
+ sponsorships?: SponsorshipGenqlSelection;
2453
+ approved?: boolean | number;
2454
+ __typename?: boolean | number;
2455
+ __scalar?: boolean | number;
2456
+ }
2457
+ export interface SponsorBrandGenqlSelection {
2458
+ _id?: boolean | number;
2459
+ sponsor?: SponsorGenqlSelection;
2460
+ authorizedUse?: boolean | number;
2461
+ isAuthorizer?: boolean | number;
2462
+ __typename?: boolean | number;
2463
+ __scalar?: boolean | number;
2464
+ }
2465
+ export interface BrandStatsGenqlSelection {
2466
+ campaigns?: boolean | number;
2467
+ sponsorships?: boolean | number;
2468
+ sports?: boolean | number;
2469
+ athletes?: boolean | number;
2470
+ __typename?: boolean | number;
2471
+ __scalar?: boolean | number;
2472
+ }
2473
+ export interface BrandTranslationGenqlSelection {
2381
2474
  _id?: boolean | number;
2382
- sponsorshipId?: boolean | number;
2475
+ brandId?: boolean | number;
2383
2476
  language?: boolean | number;
2384
- title?: boolean | number;
2477
+ name?: boolean | number;
2478
+ slogan?: boolean | number;
2385
2479
  description?: boolean | number;
2386
- terms?: boolean | number;
2480
+ logo?: AWSS3FileGenqlSelection;
2387
2481
  banner?: AWSS3FileGenqlSelection;
2388
2482
  __typename?: boolean | number;
2389
2483
  __scalar?: boolean | number;
2390
2484
  }
2391
- export interface SponsorshipGenqlSelection {
2485
+ export interface BrandGenqlSelection {
2392
2486
  _id?: boolean | number;
2393
- title?: boolean | number;
2487
+ name?: boolean | number;
2488
+ slogan?: boolean | number;
2489
+ website?: boolean | number;
2490
+ affiliateLink?: boolean | number;
2394
2491
  description?: boolean | number;
2395
- cashValue?: boolean | number;
2396
- otherValue?: boolean | number;
2397
- brand?: BrandGenqlSelection;
2398
- banner?: AWSS3FileGenqlSelection;
2399
- criteria?: AthleteCriteriaGenqlSelection;
2400
- deadline?: boolean | number;
2401
- startDate?: boolean | number;
2402
- duration?: DurationGenqlSelection;
2403
- sponsor?: SponsorGenqlSelection;
2404
- sponsorshipItems?: SponsorshipItemGenqlSelection;
2405
- commitments?: SponsorshipCommitmentGenqlSelection;
2406
- terms?: boolean | number;
2407
- stats?: SponsorshipStatsGenqlSelection;
2408
- isPrivate?: boolean | number;
2409
2492
  approved?: boolean | number;
2410
2493
  published?: boolean | number;
2411
- translations?: SponsorshipTranslationGenqlSelection;
2494
+ logo?: AWSS3FileGenqlSelection;
2495
+ banner?: AWSS3FileGenqlSelection;
2496
+ stats?: BrandStatsGenqlSelection;
2497
+ operatorIds?: boolean | number;
2498
+ translations?: BrandTranslationGenqlSelection;
2499
+ sponsors?: SponsorBrandGenqlSelection;
2500
+ __typename?: boolean | number;
2501
+ __scalar?: boolean | number;
2502
+ }
2503
+ export interface StravaTpiRideDtoGenqlSelection {
2504
+ distanceKm?: boolean | number;
2505
+ distanceKmLast?: boolean | number;
2506
+ elapsedTimeMin?: boolean | number;
2507
+ elapsedTimeMinLast?: boolean | number;
2508
+ averageSpeedKmh?: boolean | number;
2509
+ averageSpeedKmhLast?: boolean | number;
2510
+ maxSpeedKmh?: boolean | number;
2511
+ maxSpeedKmhLast?: boolean | number;
2512
+ averageHeartRateBpm?: boolean | number;
2513
+ averageHeartRateBpmLast?: boolean | number;
2514
+ maxHeartRateBpm?: boolean | number;
2515
+ maxHeartRateBpmLast?: boolean | number;
2516
+ averageCadenceStm?: boolean | number;
2517
+ averageCadenceStmLast?: boolean | number;
2518
+ lastDate?: boolean | number;
2519
+ country?: boolean | number;
2520
+ state?: boolean | number;
2521
+ city?: boolean | number;
2522
+ tpi?: boolean | number;
2523
+ __typename?: boolean | number;
2524
+ __scalar?: boolean | number;
2525
+ }
2526
+ export interface StravaTpiRunDtoGenqlSelection {
2527
+ distanceKm?: boolean | number;
2528
+ distanceKmLast?: boolean | number;
2529
+ elapsedTimeMin?: boolean | number;
2530
+ elapsedTimeMinLast?: boolean | number;
2531
+ averageSpeedKmh?: boolean | number;
2532
+ averageSpeedKmhLast?: boolean | number;
2533
+ maxSpeedKmh?: boolean | number;
2534
+ maxSpeedKmhLast?: boolean | number;
2535
+ averageHeartRateBpm?: boolean | number;
2536
+ averageHeartRateBpmLast?: boolean | number;
2537
+ maxHeartRateBpm?: boolean | number;
2538
+ maxHeartRateBpmLast?: boolean | number;
2539
+ averageCadenceStm?: boolean | number;
2540
+ averageCadenceStmLast?: boolean | number;
2541
+ elevHigh?: boolean | number;
2542
+ elevHighLast?: boolean | number;
2543
+ elevLow?: boolean | number;
2544
+ elevLowLast?: boolean | number;
2545
+ lastDate?: boolean | number;
2546
+ country?: boolean | number;
2547
+ state?: boolean | number;
2548
+ city?: boolean | number;
2549
+ tpi?: boolean | number;
2550
+ __typename?: boolean | number;
2551
+ __scalar?: boolean | number;
2552
+ }
2553
+ export interface StravaTpiSwimDtoGenqlSelection {
2554
+ distanceKm?: boolean | number;
2555
+ distanceKmLast?: boolean | number;
2556
+ elapsedTimeMin?: boolean | number;
2557
+ elapsedTimeMinLast?: boolean | number;
2558
+ averageSpeedKmh?: boolean | number;
2559
+ averageSpeedKmhLast?: boolean | number;
2560
+ maxSpeedKmh?: boolean | number;
2561
+ maxSpeedKmhLast?: boolean | number;
2562
+ averageHeartRateBpm?: boolean | number;
2563
+ averageHeartRateBpmLast?: boolean | number;
2564
+ maxHeartRateBpm?: boolean | number;
2565
+ maxHeartRateBpmLast?: boolean | number;
2566
+ averageCadenceStm?: boolean | number;
2567
+ averageCadenceStmLast?: boolean | number;
2568
+ lastDate?: boolean | number;
2569
+ country?: boolean | number;
2570
+ state?: boolean | number;
2571
+ city?: boolean | number;
2572
+ tpi?: boolean | number;
2412
2573
  __typename?: boolean | number;
2413
2574
  __scalar?: boolean | number;
2414
2575
  }
@@ -2911,14 +3072,6 @@ export interface SponsorAthleteInvitationGenqlSelection {
2911
3072
  __typename?: boolean | number;
2912
3073
  __scalar?: boolean | number;
2913
3074
  }
2914
- export interface StravaTokenGenqlSelection {
2915
- token_type?: boolean | number;
2916
- expires_at?: boolean | number;
2917
- refresh_token?: boolean | number;
2918
- access_token?: boolean | number;
2919
- __typename?: boolean | number;
2920
- __scalar?: boolean | number;
2921
- }
2922
3075
  export interface StripeSessionGenqlSelection {
2923
3076
  account?: boolean | number;
2924
3077
  client_secret?: boolean | number;
@@ -3210,6 +3363,167 @@ export interface AdminTransactionViewGenqlSelection {
3210
3363
  __typename?: boolean | number;
3211
3364
  __scalar?: boolean | number;
3212
3365
  }
3366
+ export interface OfferGenqlSelection {
3367
+ _id?: boolean | number;
3368
+ name?: boolean | number;
3369
+ label?: boolean | number;
3370
+ decription?: boolean | number;
3371
+ offerImage?: AWSS3FileGenqlSelection;
3372
+ type?: boolean | number;
3373
+ status?: boolean | number;
3374
+ discountType?: boolean | number;
3375
+ discountTypeData?: boolean | number;
3376
+ conditions?: boolean | number;
3377
+ brand?: BrandGenqlSelection;
3378
+ sponsor?: SponsorGenqlSelection;
3379
+ criteria?: AthleteCriteriaGenqlSelection;
3380
+ dateStart?: boolean | number;
3381
+ dateEnd?: boolean | number;
3382
+ dateCreated?: boolean | number;
3383
+ totalCodes?: boolean | number;
3384
+ availableCodes?: boolean | number;
3385
+ availableCountries?: CountryGenqlSelection;
3386
+ disclaimer?: boolean | number;
3387
+ genericCode?: boolean | number;
3388
+ featured?: boolean | number;
3389
+ __typename?: boolean | number;
3390
+ __scalar?: boolean | number;
3391
+ }
3392
+ export interface PromotionGenqlSelection {
3393
+ _id?: boolean | number;
3394
+ name?: boolean | number;
3395
+ label?: boolean | number;
3396
+ decription?: boolean | number;
3397
+ offerImage?: AWSS3FileGenqlSelection;
3398
+ type?: boolean | number;
3399
+ status?: boolean | number;
3400
+ discountType?: boolean | number;
3401
+ discountTypeData?: boolean | number;
3402
+ conditions?: boolean | number;
3403
+ brand?: BrandGenqlSelection;
3404
+ sponsor?: SponsorGenqlSelection;
3405
+ criteria?: AthleteCriteriaGenqlSelection;
3406
+ dateStart?: boolean | number;
3407
+ dateEnd?: boolean | number;
3408
+ dateCreated?: boolean | number;
3409
+ totalCodes?: boolean | number;
3410
+ availableCodes?: boolean | number;
3411
+ availableCountries?: CountryGenqlSelection;
3412
+ disclaimer?: boolean | number;
3413
+ genericCode?: boolean | number;
3414
+ featured?: boolean | number;
3415
+ __typename?: boolean | number;
3416
+ __scalar?: boolean | number;
3417
+ }
3418
+ export interface CouponCodeGenqlSelection {
3419
+ _id?: boolean | number;
3420
+ couponId?: boolean | number;
3421
+ code?: boolean | number;
3422
+ expires?: boolean | number;
3423
+ dateCreated?: boolean | number;
3424
+ __typename?: boolean | number;
3425
+ __scalar?: boolean | number;
3426
+ }
3427
+ export interface CouponGenqlSelection {
3428
+ _id?: boolean | number;
3429
+ name?: boolean | number;
3430
+ label?: boolean | number;
3431
+ decription?: boolean | number;
3432
+ offerImage?: AWSS3FileGenqlSelection;
3433
+ type?: boolean | number;
3434
+ status?: boolean | number;
3435
+ discountType?: boolean | number;
3436
+ discountTypeData?: boolean | number;
3437
+ conditions?: boolean | number;
3438
+ brand?: BrandGenqlSelection;
3439
+ sponsor?: SponsorGenqlSelection;
3440
+ criteria?: AthleteCriteriaGenqlSelection;
3441
+ dateStart?: boolean | number;
3442
+ dateEnd?: boolean | number;
3443
+ dateCreated?: boolean | number;
3444
+ totalCodes?: boolean | number;
3445
+ availableCodes?: boolean | number;
3446
+ availableCountries?: CountryGenqlSelection;
3447
+ disclaimer?: boolean | number;
3448
+ genericCode?: boolean | number;
3449
+ featured?: boolean | number;
3450
+ couponCodes?: CouponCodeGenqlSelection;
3451
+ __typename?: boolean | number;
3452
+ __scalar?: boolean | number;
3453
+ }
3454
+ export interface OfferClaimGenqlSelection {
3455
+ _id?: boolean | number;
3456
+ offer?: OfferGenqlSelection;
3457
+ athlete?: AthleteGenqlSelection;
3458
+ claimedAt?: boolean | number;
3459
+ code?: boolean | number;
3460
+ __typename?: boolean | number;
3461
+ __scalar?: boolean | number;
3462
+ }
3463
+ export interface EligibilityResultGenqlSelection {
3464
+ status?: boolean | number;
3465
+ failedCriteria?: boolean | number;
3466
+ missingFields?: boolean | number;
3467
+ messages?: boolean | number;
3468
+ __typename?: boolean | number;
3469
+ __scalar?: boolean | number;
3470
+ }
3471
+ export interface EnhancedPaginationInfoTypeGenqlSelection {
3472
+ currentPage?: boolean | number;
3473
+ totalPages?: boolean | number;
3474
+ totalItems?: boolean | number;
3475
+ itemsPerPage?: boolean | number;
3476
+ hasNextPage?: boolean | number;
3477
+ hasPreviousPage?: boolean | number;
3478
+ startIndex?: boolean | number;
3479
+ endIndex?: boolean | number;
3480
+ __typename?: boolean | number;
3481
+ __scalar?: boolean | number;
3482
+ }
3483
+ export interface OfferWithEligibilityGenqlSelection {
3484
+ _id?: boolean | number;
3485
+ name?: boolean | number;
3486
+ label?: boolean | number;
3487
+ decription?: boolean | number;
3488
+ offerImage?: AWSS3FileGenqlSelection;
3489
+ type?: boolean | number;
3490
+ status?: boolean | number;
3491
+ discountType?: boolean | number;
3492
+ discountTypeData?: boolean | number;
3493
+ conditions?: boolean | number;
3494
+ brand?: BrandGenqlSelection;
3495
+ sponsor?: SponsorGenqlSelection;
3496
+ criteria?: AthleteCriteriaGenqlSelection;
3497
+ dateStart?: boolean | number;
3498
+ dateEnd?: boolean | number;
3499
+ dateCreated?: boolean | number;
3500
+ totalCodes?: boolean | number;
3501
+ availableCodes?: boolean | number;
3502
+ availableCountries?: CountryGenqlSelection;
3503
+ disclaimer?: boolean | number;
3504
+ featured?: boolean | number;
3505
+ eligibility?: EligibilityResultGenqlSelection;
3506
+ __typename?: boolean | number;
3507
+ __scalar?: boolean | number;
3508
+ }
3509
+ export interface PaginatedOffersWithEligibilityGenqlSelection {
3510
+ items?: OfferWithEligibilityGenqlSelection;
3511
+ pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3512
+ __typename?: boolean | number;
3513
+ __scalar?: boolean | number;
3514
+ }
3515
+ export interface PaginatedBrandsGenqlSelection {
3516
+ items?: BrandGenqlSelection;
3517
+ pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3518
+ __typename?: boolean | number;
3519
+ __scalar?: boolean | number;
3520
+ }
3521
+ export interface PaginatedSponsorsGenqlSelection {
3522
+ items?: SponsorGenqlSelection;
3523
+ pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3524
+ __typename?: boolean | number;
3525
+ __scalar?: boolean | number;
3526
+ }
3213
3527
  export interface EditValueResponseGenqlSelection {
3214
3528
  field?: boolean | number;
3215
3529
  oldValue?: boolean | number;
@@ -3344,19 +3658,7 @@ export interface CheckScoreRefreshCapabilityResponseGenqlSelection {
3344
3658
  __typename?: boolean | number;
3345
3659
  __scalar?: boolean | number;
3346
3660
  }
3347
- export interface EnhancedPaginationInfoTypeGenqlSelection {
3348
- currentPage?: boolean | number;
3349
- totalPages?: boolean | number;
3350
- totalItems?: boolean | number;
3351
- itemsPerPage?: boolean | number;
3352
- hasNextPage?: boolean | number;
3353
- hasPreviousPage?: boolean | number;
3354
- startIndex?: boolean | number;
3355
- endIndex?: boolean | number;
3356
- __typename?: boolean | number;
3357
- __scalar?: boolean | number;
3358
- }
3359
- export interface PaginatedSportsTypeGenqlSelection {
3661
+ export interface PaginatedSportsGenqlSelection {
3360
3662
  items?: SportGenqlSelection;
3361
3663
  pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3362
3664
  __typename?: boolean | number;
@@ -3389,7 +3691,7 @@ export interface DeleteVtxUserResponseGenqlSelection {
3389
3691
  __typename?: boolean | number;
3390
3692
  __scalar?: boolean | number;
3391
3693
  }
3392
- export interface PaginatedUsersTypeGenqlSelection {
3694
+ export interface PaginatedUsersGenqlSelection {
3393
3695
  items?: AdminUserViewGenqlSelection;
3394
3696
  pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3395
3697
  __typename?: boolean | number;
@@ -3416,7 +3718,7 @@ export interface TransactionDetailsGenqlSelection {
3416
3718
  __typename?: boolean | number;
3417
3719
  __scalar?: boolean | number;
3418
3720
  }
3419
- export interface PaginatedEventsTypeGenqlSelection {
3721
+ export interface PaginatedEventsGenqlSelection {
3420
3722
  items?: SportsEventGenqlSelection;
3421
3723
  pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3422
3724
  __typename?: boolean | number;
@@ -3428,7 +3730,7 @@ export interface CurrencyAmountTypeGenqlSelection {
3428
3730
  __typename?: boolean | number;
3429
3731
  __scalar?: boolean | number;
3430
3732
  }
3431
- export interface StripeBalanceTypeGenqlSelection {
3733
+ export interface StripeBalanceGenqlSelection {
3432
3734
  availableUSD?: boolean | number;
3433
3735
  pendingUSD?: boolean | number;
3434
3736
  currency?: boolean | number;
@@ -3460,12 +3762,31 @@ export interface UserDomainGenqlSelection {
3460
3762
  __typename?: boolean | number;
3461
3763
  __scalar?: boolean | number;
3462
3764
  }
3463
- export interface PaginatedTransactionsTypeGenqlSelection {
3765
+ export interface PaginatedTransactionsGenqlSelection {
3464
3766
  items?: AdminTransactionViewGenqlSelection;
3465
3767
  pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3466
3768
  __typename?: boolean | number;
3467
3769
  __scalar?: boolean | number;
3468
3770
  }
3771
+ export interface PaginatedOffersGenqlSelection {
3772
+ items?: OfferGenqlSelection;
3773
+ pagination?: EnhancedPaginationInfoTypeGenqlSelection;
3774
+ __typename?: boolean | number;
3775
+ __scalar?: boolean | number;
3776
+ }
3777
+ export interface UploadResultGenqlSelection {
3778
+ addedCodes?: boolean | number;
3779
+ duplicateCodes?: boolean | number;
3780
+ invalidRows?: boolean | number;
3781
+ __typename?: boolean | number;
3782
+ __scalar?: boolean | number;
3783
+ }
3784
+ export interface OfferAvailabilityGenqlSelection {
3785
+ available?: boolean | number;
3786
+ reason?: boolean | number;
3787
+ __typename?: boolean | number;
3788
+ __scalar?: boolean | number;
3789
+ }
3469
3790
  export interface CreateDatabaseFileDto {
3470
3791
  identifier: Scalars['String'];
3471
3792
  version?: Scalars['String'];
@@ -3525,6 +3846,49 @@ export interface DonationCheckoutDto {
3525
3846
  message?: (Scalars['String'] | null);
3526
3847
  clientType?: (Scalars['String'] | null);
3527
3848
  }
3849
+ export interface CreateBrandDto {
3850
+ name: Scalars['String'];
3851
+ description?: (Scalars['String'] | null);
3852
+ slogan?: (Scalars['String'] | null);
3853
+ website?: (Scalars['String'] | null);
3854
+ affiliateLink?: (Scalars['String'] | null);
3855
+ logo?: (AWSS3UploadedFileDto | null);
3856
+ banner?: (AWSS3UploadedFileDto | null);
3857
+ translations?: (BrandTranslationDto[] | null);
3858
+ sponsorId?: (Scalars['String'] | null);
3859
+ approved?: (Scalars['Boolean'] | null);
3860
+ published?: (Scalars['Boolean'] | null);
3861
+ }
3862
+ export interface AWSS3UploadedFileDto {
3863
+ key: Scalars['String'];
3864
+ useType: Scalars['String'];
3865
+ contentType: Scalars['String'];
3866
+ originalFileName?: (Scalars['String'] | null);
3867
+ fileSize?: (Scalars['Float'] | null);
3868
+ }
3869
+ export interface BrandTranslationDto {
3870
+ brandId: Scalars['String'];
3871
+ language: Scalars['String'];
3872
+ name?: (Scalars['String'] | null);
3873
+ description?: (Scalars['String'] | null);
3874
+ slogan?: (Scalars['String'] | null);
3875
+ logo?: (AWSS3UploadedFileDto | null);
3876
+ banner?: (AWSS3UploadedFileDto | null);
3877
+ }
3878
+ export interface BrandQueryDto {
3879
+ page?: (Scalars['Int'] | null);
3880
+ limit?: (Scalars['Int'] | null);
3881
+ search?: (Scalars['String'] | null);
3882
+ approved?: (Scalars['String'] | null);
3883
+ published?: (Scalars['String'] | null);
3884
+ sortField?: (Scalars['String'] | null);
3885
+ sortOrder?: (Scalars['String'] | null);
3886
+ }
3887
+ export interface CreateSponsorDto {
3888
+ name: Scalars['String'];
3889
+ description?: (Scalars['String'] | null);
3890
+ email: Scalars['String'];
3891
+ }
3528
3892
  export interface AthleteInvitationDto {
3529
3893
  email: Scalars['String'];
3530
3894
  name?: (Scalars['String'] | null);
@@ -3535,6 +3899,15 @@ export interface InviteAthletesDto {
3535
3899
  language?: (Scalars['String'] | null);
3536
3900
  invitations: AthleteInvitationDto[];
3537
3901
  }
3902
+ export interface SponsorQueryDto {
3903
+ page?: (Scalars['Int'] | null);
3904
+ limit?: (Scalars['Int'] | null);
3905
+ search?: (Scalars['String'] | null);
3906
+ approved?: (Scalars['String'] | null);
3907
+ published?: (Scalars['String'] | null);
3908
+ sortField?: (Scalars['String'] | null);
3909
+ sortOrder?: (Scalars['String'] | null);
3910
+ }
3538
3911
  export interface CompetitionResultDto {
3539
3912
  resultType: Scalars['String'];
3540
3913
  position?: (Scalars['Float'] | null);
@@ -3648,13 +4021,6 @@ export interface EditPictureDto {
3648
4021
  field: Scalars['String'];
3649
4022
  newPicture?: (AWSS3UploadedFileDto | null);
3650
4023
  }
3651
- export interface AWSS3UploadedFileDto {
3652
- key: Scalars['String'];
3653
- useType: Scalars['String'];
3654
- contentType: Scalars['String'];
3655
- originalFileName?: (Scalars['String'] | null);
3656
- fileSize?: (Scalars['Float'] | null);
3657
- }
3658
4024
  export interface UploadAlbumsPicturesDto {
3659
4025
  label: Scalars['String'];
3660
4026
  description?: (Scalars['String'] | null);
@@ -3975,6 +4341,58 @@ export interface OffsetPaginationDto {
3975
4341
  pageSize?: Scalars['Float'];
3976
4342
  sortCriteria?: (SortCriteriaDto | null);
3977
4343
  }
4344
+ export interface CreateOfferDto {
4345
+ name?: (Scalars['String'] | null);
4346
+ label: Scalars['String'];
4347
+ decription?: (Scalars['String'] | null);
4348
+ offerImage?: (AWSS3UploadedFileDto | null);
4349
+ type: Scalars['String'];
4350
+ status?: Scalars['String'];
4351
+ discountType?: Scalars['String'];
4352
+ discountTypeData?: (Scalars['String'] | null);
4353
+ conditions?: (Scalars['String'][] | null);
4354
+ brandId: Scalars['String'];
4355
+ sponsorId: Scalars['String'];
4356
+ criteria?: (AthleteCriteriaDto | null);
4357
+ dateStart?: (Scalars['DateTime'] | null);
4358
+ dateEnd?: (Scalars['DateTime'] | null);
4359
+ totalCodes?: (Scalars['Int'] | null);
4360
+ disclaimer?: (Scalars['String'] | null);
4361
+ availableCountryIds?: (Scalars['String'][] | null);
4362
+ genericCode?: (Scalars['String'] | null);
4363
+ featured?: (Scalars['Boolean'] | null);
4364
+ }
4365
+ export interface AthleteCriteriaDto {
4366
+ _id: Scalars['String'];
4367
+ label?: (Scalars['String'] | null);
4368
+ qualificationsBag?: (QualificationsBagDto | null);
4369
+ }
4370
+ export interface QualificationsBagDto {
4371
+ ageQualifications?: (AgeQualificationDto[] | null);
4372
+ genderQualifications?: (GenderQualificationDto[] | null);
4373
+ scoreQualifications?: (ScoreQualificationDto[] | null);
4374
+ locationQualifications?: (LocationQualificationDto[] | null);
4375
+ nationalityQualifications?: (NationalityQualificationDto[] | null);
4376
+ distanceQualifications?: (DistanceQualificationDto[] | null);
4377
+ sportsQualifications?: (SportsQualificationDto[] | null);
4378
+ levelQualifications?: (SportsLevelQualificationDto[] | null);
4379
+ }
4380
+ export interface OfferQueryDto {
4381
+ page?: (Scalars['Int'] | null);
4382
+ limit?: (Scalars['Int'] | null);
4383
+ search?: (Scalars['String'] | null);
4384
+ active?: (Scalars['String'] | null);
4385
+ offerType?: (Scalars['String'] | null);
4386
+ featured?: (Scalars['String'] | null);
4387
+ brandId?: (Scalars['String'] | null);
4388
+ sortField?: (Scalars['String'] | null);
4389
+ sortOrder?: (Scalars['String'] | null);
4390
+ filterEligibleOnly?: (Scalars['Boolean'] | null);
4391
+ athleteId?: (Scalars['String'] | null);
4392
+ }
4393
+ export interface OfferClaimQueryDto {
4394
+ status?: (OfferClaimStatus | null);
4395
+ }
3978
4396
  export interface QueryGenqlSelection {
3979
4397
  findTenantById?: (TenantGenqlSelection & {
3980
4398
  __args: {
@@ -4021,6 +4439,11 @@ export interface QueryGenqlSelection {
4021
4439
  };
4022
4440
  });
4023
4441
  brands?: BrandGenqlSelection;
4442
+ getBrandsPaginated?: (PaginatedBrandsGenqlSelection & {
4443
+ __args?: {
4444
+ query?: (BrandQueryDto | null);
4445
+ };
4446
+ });
4024
4447
  getBrandByName?: (BrandGenqlSelection & {
4025
4448
  __args: {
4026
4449
  name: Scalars['String'];
@@ -4039,6 +4462,11 @@ export interface QueryGenqlSelection {
4039
4462
  };
4040
4463
  });
4041
4464
  sponsors?: SponsorGenqlSelection;
4465
+ getSponsorsPaginated?: (PaginatedSponsorsGenqlSelection & {
4466
+ __args?: {
4467
+ query?: (SponsorQueryDto | null);
4468
+ };
4469
+ });
4042
4470
  findSponsorAthleteInvitation?: (SponsorAthleteInvitationGenqlSelection & {
4043
4471
  __args: {
4044
4472
  input: FindSponsorAthleteInvitationDto;
@@ -4148,7 +4576,7 @@ export interface QueryGenqlSelection {
4148
4576
  };
4149
4577
  });
4150
4578
  getSports?: SportGenqlSelection;
4151
- getSportsPaginated?: (PaginatedSportsTypeGenqlSelection & {
4579
+ getSportsPaginated?: (PaginatedSportsGenqlSelection & {
4152
4580
  __args?: {
4153
4581
  query?: (SportQueryDto | null);
4154
4582
  };
@@ -4215,7 +4643,7 @@ export interface QueryGenqlSelection {
4215
4643
  };
4216
4644
  };
4217
4645
  getAllUsers?: AdminUserViewGenqlSelection;
4218
- getUsersPaginated?: (PaginatedUsersTypeGenqlSelection & {
4646
+ getUsersPaginated?: (PaginatedUsersGenqlSelection & {
4219
4647
  __args?: {
4220
4648
  query?: (UserQueryDto | null);
4221
4649
  };
@@ -4226,7 +4654,7 @@ export interface QueryGenqlSelection {
4226
4654
  input: GetSportEventsDto;
4227
4655
  };
4228
4656
  });
4229
- getSportsEventsPaginated?: (PaginatedEventsTypeGenqlSelection & {
4657
+ getSportsEventsPaginated?: (PaginatedEventsGenqlSelection & {
4230
4658
  __args?: {
4231
4659
  query?: (EventQueryDto | null);
4232
4660
  };
@@ -4250,12 +4678,17 @@ export interface QueryGenqlSelection {
4250
4678
  input: StripeQueryDto;
4251
4679
  };
4252
4680
  });
4253
- getStripeBalance?: StripeBalanceTypeGenqlSelection;
4681
+ getStripeBalance?: StripeBalanceGenqlSelection;
4254
4682
  getDatabaseTextFile?: (TextDatabaseFileGenqlSelection & {
4255
4683
  __args: {
4256
4684
  input: GetDatabaseFileDto;
4257
4685
  };
4258
4686
  });
4687
+ getS3UploadUrl?: (AWSS3UploadUrlGenqlSelection & {
4688
+ __args: {
4689
+ input: AWSS3GetUploadDto;
4690
+ };
4691
+ });
4259
4692
  getReceipt?: (ReceiptGenqlSelection & {
4260
4693
  __args: {
4261
4694
  input: GetReceiptDto;
@@ -4283,11 +4716,44 @@ export interface QueryGenqlSelection {
4283
4716
  };
4284
4717
  });
4285
4718
  getAllTransactions?: AdminTransactionViewGenqlSelection;
4286
- getTransactionsPaginated?: (PaginatedTransactionsTypeGenqlSelection & {
4719
+ getTransactionsPaginated?: (PaginatedTransactionsGenqlSelection & {
4287
4720
  __args?: {
4288
4721
  query?: (TransactionQueryDto | null);
4289
4722
  };
4290
4723
  });
4724
+ offers?: OfferGenqlSelection;
4725
+ getOffersPaginated?: (PaginatedOffersGenqlSelection & {
4726
+ __args?: {
4727
+ query?: (OfferQueryDto | null);
4728
+ };
4729
+ });
4730
+ offersForAthlete?: (OfferGenqlSelection & {
4731
+ __args?: {
4732
+ athleteId?: (Scalars['String'] | null);
4733
+ };
4734
+ });
4735
+ offer?: (OfferGenqlSelection & {
4736
+ __args: {
4737
+ id: Scalars['String'];
4738
+ };
4739
+ });
4740
+ myOfferClaims?: (OfferClaimGenqlSelection & {
4741
+ __args: {
4742
+ athleteId: Scalars['String'];
4743
+ query?: (OfferClaimQueryDto | null);
4744
+ };
4745
+ });
4746
+ offerAvailability?: (OfferAvailabilityGenqlSelection & {
4747
+ __args: {
4748
+ offerId: Scalars['String'];
4749
+ athleteId: Scalars['String'];
4750
+ };
4751
+ });
4752
+ offersWithEligibility?: (PaginatedOffersWithEligibilityGenqlSelection & {
4753
+ __args?: {
4754
+ query?: (OfferQueryDto | null);
4755
+ };
4756
+ });
4291
4757
  __typename?: boolean | number;
4292
4758
  __scalar?: boolean | number;
4293
4759
  }
@@ -4378,6 +4844,29 @@ export interface MutationGenqlSelection {
4378
4844
  input: CreateBrandDto;
4379
4845
  };
4380
4846
  });
4847
+ updateBrand?: (BrandGenqlSelection & {
4848
+ __args: {
4849
+ id: Scalars['String'];
4850
+ input: CreateBrandDto;
4851
+ };
4852
+ });
4853
+ deleteBrand?: {
4854
+ __args: {
4855
+ id: Scalars['String'];
4856
+ };
4857
+ };
4858
+ linkBrandToSponsor?: (BrandGenqlSelection & {
4859
+ __args: {
4860
+ brandId: Scalars['String'];
4861
+ sponsorId: Scalars['String'];
4862
+ };
4863
+ });
4864
+ unlinkBrandFromSponsor?: (BrandGenqlSelection & {
4865
+ __args: {
4866
+ brandId: Scalars['String'];
4867
+ sponsorId: Scalars['String'];
4868
+ };
4869
+ });
4381
4870
  registerSponsor?: (SponsorGenqlSelection & {
4382
4871
  __args: {
4383
4872
  input: RegisterSponsorInput;
@@ -4393,6 +4882,17 @@ export interface MutationGenqlSelection {
4393
4882
  input: InviteAthletesDto;
4394
4883
  };
4395
4884
  });
4885
+ updateSponsor?: (SponsorGenqlSelection & {
4886
+ __args: {
4887
+ id: Scalars['String'];
4888
+ input: UpdateSponsorDto;
4889
+ };
4890
+ });
4891
+ deleteSponsor?: {
4892
+ __args: {
4893
+ id: Scalars['String'];
4894
+ };
4895
+ };
4396
4896
  forceDeleteAthleteCompetition?: (DeleteSingleValueResponseGenqlSelection & {
4397
4897
  __args: {
4398
4898
  input: DeleteSingleValueDto;
@@ -4567,16 +5067,6 @@ export interface MutationGenqlSelection {
4567
5067
  input: DeleteVtxUserDto;
4568
5068
  };
4569
5069
  });
4570
- handleStravaCallback?: (StravaTokenGenqlSelection & {
4571
- __args: {
4572
- data: RegisterStravaDto;
4573
- };
4574
- });
4575
- refreshStravaToken?: (StravaTokenGenqlSelection & {
4576
- __args: {
4577
- input: Scalars['String'];
4578
- };
4579
- });
4580
5070
  createSportsEvent?: (SportsEventGenqlSelection & {
4581
5071
  __args: {
4582
5072
  input: CreateSportEventDto;
@@ -4685,6 +5175,56 @@ export interface MutationGenqlSelection {
4685
5175
  input: RegisterMemberDto;
4686
5176
  };
4687
5177
  });
5178
+ createOffer?: (OfferGenqlSelection & {
5179
+ __args: {
5180
+ input: CreateOfferDto;
5181
+ };
5182
+ });
5183
+ updateOffer?: (OfferGenqlSelection & {
5184
+ __args: {
5185
+ id: Scalars['String'];
5186
+ input: CreateOfferDto;
5187
+ };
5188
+ });
5189
+ deleteOffer?: {
5190
+ __args: {
5191
+ id: Scalars['String'];
5192
+ };
5193
+ };
5194
+ setOfferStatus?: (OfferGenqlSelection & {
5195
+ __args: {
5196
+ id: Scalars['String'];
5197
+ status: Scalars['String'];
5198
+ };
5199
+ });
5200
+ activateOffer?: (OfferGenqlSelection & {
5201
+ __args: {
5202
+ id: Scalars['String'];
5203
+ };
5204
+ });
5205
+ deactivateOffer?: (OfferGenqlSelection & {
5206
+ __args: {
5207
+ id: Scalars['String'];
5208
+ };
5209
+ });
5210
+ claimOffer?: (OfferClaimGenqlSelection & {
5211
+ __args: {
5212
+ offerId: Scalars['String'];
5213
+ athleteId: Scalars['String'];
5214
+ };
5215
+ });
5216
+ removeOfferClaim?: {
5217
+ __args: {
5218
+ claimId: Scalars['String'];
5219
+ athleteId: Scalars['String'];
5220
+ };
5221
+ };
5222
+ uploadCouponCodes?: (UploadResultGenqlSelection & {
5223
+ __args: {
5224
+ offerId: Scalars['String'];
5225
+ csvContent: Scalars['String'];
5226
+ };
5227
+ });
4688
5228
  __typename?: boolean | number;
4689
5229
  __scalar?: boolean | number;
4690
5230
  }
@@ -4725,24 +5265,6 @@ export interface AWSS3DeleteUseTypeKeyDto {
4725
5265
  export interface CreateIndustryDto {
4726
5266
  name: Scalars['String'];
4727
5267
  }
4728
- export interface CreateBrandDto {
4729
- name: Scalars['String'];
4730
- description?: (Scalars['String'] | null);
4731
- slogan?: (Scalars['String'] | null);
4732
- website?: (Scalars['String'] | null);
4733
- logo?: (AWSS3UploadedFileDto | null);
4734
- banner?: (AWSS3UploadedFileDto | null);
4735
- translations?: (BrandTranslationDto[] | null);
4736
- }
4737
- export interface BrandTranslationDto {
4738
- brandId: Scalars['String'];
4739
- language: Scalars['String'];
4740
- name?: (Scalars['String'] | null);
4741
- description?: (Scalars['String'] | null);
4742
- slogan?: (Scalars['String'] | null);
4743
- logo?: (AWSS3UploadedFileDto | null);
4744
- banner?: (AWSS3UploadedFileDto | null);
4745
- }
4746
5268
  export interface RegisterSponsorInput {
4747
5269
  name: Scalars['String'];
4748
5270
  phone?: (Scalars['String'] | null);
@@ -4755,9 +5277,10 @@ export interface RegisterSponsorInput {
4755
5277
  numberOfAthletes: Scalars['String'];
4756
5278
  brands: Scalars['String'][];
4757
5279
  }
4758
- export interface CreateSponsorDto {
4759
- name: Scalars['String'];
5280
+ export interface UpdateSponsorDto {
5281
+ name?: (Scalars['String'] | null);
4760
5282
  description?: (Scalars['String'] | null);
5283
+ email?: (Scalars['String'] | null);
4761
5284
  }
4762
5285
  export interface RegisterAthleteDto {
4763
5286
  email: Scalars['String'];
@@ -4832,21 +5355,6 @@ export interface CreateSponsorshipDto {
4832
5355
  isPrivate?: (Scalars['Boolean'] | null);
4833
5356
  translations?: (SponsorshipTranslationDto[] | null);
4834
5357
  }
4835
- export interface AthleteCriteriaDto {
4836
- _id: Scalars['String'];
4837
- label?: (Scalars['String'] | null);
4838
- qualificationsBag?: (QualificationsBagDto | null);
4839
- }
4840
- export interface QualificationsBagDto {
4841
- ageQualifications?: (AgeQualificationDto[] | null);
4842
- genderQualifications?: (GenderQualificationDto[] | null);
4843
- scoreQualifications?: (ScoreQualificationDto[] | null);
4844
- locationQualifications?: (LocationQualificationDto[] | null);
4845
- nationalityQualifications?: (NationalityQualificationDto[] | null);
4846
- distanceQualifications?: (DistanceQualificationDto[] | null);
4847
- sportsQualifications?: (SportsQualificationDto[] | null);
4848
- levelQualifications?: (SportsLevelQualificationDto[] | null);
4849
- }
4850
5358
  export interface DurationDto {
4851
5359
  length?: Scalars['Float'];
4852
5360
  unit?: Scalars['String'];
@@ -4902,10 +5410,6 @@ export interface CreateCityDto {
4902
5410
  ranking?: (Scalars['Float'] | null);
4903
5411
  same_name?: (Scalars['String'] | null);
4904
5412
  }
4905
- export interface RegisterStravaDto {
4906
- idAthlete: Scalars['String'];
4907
- code: Scalars['String'];
4908
- }
4909
5413
  export interface CreateSportEventDto {
4910
5414
  name: Scalars['String'];
4911
5415
  cityId?: (Scalars['String'] | null);
@@ -5020,24 +5524,12 @@ export declare const isTextDatabaseFile: (obj?: {
5020
5524
  export declare const isCodeVerificationResponse: (obj?: {
5021
5525
  __typename?: any;
5022
5526
  } | null) => obj is CodeVerificationResponse;
5023
- export declare const isBrandStats: (obj?: {
5024
- __typename?: any;
5025
- } | null) => obj is BrandStats;
5026
- export declare const isBrandTranslation: (obj?: {
5027
- __typename?: any;
5028
- } | null) => obj is BrandTranslation;
5029
- export declare const isBrand: (obj?: {
5030
- __typename?: any;
5031
- } | null) => obj is Brand;
5032
- export declare const isStravaTpiRideDto: (obj?: {
5033
- __typename?: any;
5034
- } | null) => obj is StravaTpiRideDto;
5035
- export declare const isStravaTpiRunDto: (obj?: {
5527
+ export declare const isIndustry: (obj?: {
5036
5528
  __typename?: any;
5037
- } | null) => obj is StravaTpiRunDto;
5038
- export declare const isStravaTpiSwimDto: (obj?: {
5529
+ } | null) => obj is Industry;
5530
+ export declare const isSponsorStats: (obj?: {
5039
5531
  __typename?: any;
5040
- } | null) => obj is StravaTpiSwimDto;
5532
+ } | null) => obj is SponsorStats;
5041
5533
  export declare const isCity: (obj?: {
5042
5534
  __typename?: any;
5043
5535
  } | null) => obj is City;
@@ -5077,18 +5569,6 @@ export declare const isAthleteCriteria: (obj?: {
5077
5569
  export declare const isQualificationTypeUnion: (obj?: {
5078
5570
  __typename?: any;
5079
5571
  } | null) => obj is QualificationTypeUnion;
5080
- export declare const isIndustry: (obj?: {
5081
- __typename?: any;
5082
- } | null) => obj is Industry;
5083
- export declare const isSponsorStats: (obj?: {
5084
- __typename?: any;
5085
- } | null) => obj is SponsorStats;
5086
- export declare const isSponsorBrand: (obj?: {
5087
- __typename?: any;
5088
- } | null) => obj is SponsorBrand;
5089
- export declare const isSponsor: (obj?: {
5090
- __typename?: any;
5091
- } | null) => obj is Sponsor;
5092
5572
  export declare const isSponsorshipItem: (obj?: {
5093
5573
  __typename?: any;
5094
5574
  } | null) => obj is SponsorshipItem;
@@ -5107,6 +5587,30 @@ export declare const isSponsorshipTranslation: (obj?: {
5107
5587
  export declare const isSponsorship: (obj?: {
5108
5588
  __typename?: any;
5109
5589
  } | null) => obj is Sponsorship;
5590
+ export declare const isSponsor: (obj?: {
5591
+ __typename?: any;
5592
+ } | null) => obj is Sponsor;
5593
+ export declare const isSponsorBrand: (obj?: {
5594
+ __typename?: any;
5595
+ } | null) => obj is SponsorBrand;
5596
+ export declare const isBrandStats: (obj?: {
5597
+ __typename?: any;
5598
+ } | null) => obj is BrandStats;
5599
+ export declare const isBrandTranslation: (obj?: {
5600
+ __typename?: any;
5601
+ } | null) => obj is BrandTranslation;
5602
+ export declare const isBrand: (obj?: {
5603
+ __typename?: any;
5604
+ } | null) => obj is Brand;
5605
+ export declare const isStravaTpiRideDto: (obj?: {
5606
+ __typename?: any;
5607
+ } | null) => obj is StravaTpiRideDto;
5608
+ export declare const isStravaTpiRunDto: (obj?: {
5609
+ __typename?: any;
5610
+ } | null) => obj is StravaTpiRunDto;
5611
+ export declare const isStravaTpiSwimDto: (obj?: {
5612
+ __typename?: any;
5613
+ } | null) => obj is StravaTpiSwimDto;
5110
5614
  export declare const isFollowStats: (obj?: {
5111
5615
  __typename?: any;
5112
5616
  } | null) => obj is FollowStats;
@@ -5221,9 +5725,6 @@ export declare const isFundingCheckoutSessionData: (obj?: {
5221
5725
  export declare const isSponsorAthleteInvitation: (obj?: {
5222
5726
  __typename?: any;
5223
5727
  } | null) => obj is SponsorAthleteInvitation;
5224
- export declare const isStravaToken: (obj?: {
5225
- __typename?: any;
5226
- } | null) => obj is StravaToken;
5227
5728
  export declare const isStripeSession: (obj?: {
5228
5729
  __typename?: any;
5229
5730
  } | null) => obj is StripeSession;
@@ -5314,6 +5815,39 @@ export declare const isAdminTransactionFundingDetails: (obj?: {
5314
5815
  export declare const isAdminTransactionView: (obj?: {
5315
5816
  __typename?: any;
5316
5817
  } | null) => obj is AdminTransactionView;
5818
+ export declare const isOffer: (obj?: {
5819
+ __typename?: any;
5820
+ } | null) => obj is Offer;
5821
+ export declare const isPromotion: (obj?: {
5822
+ __typename?: any;
5823
+ } | null) => obj is Promotion;
5824
+ export declare const isCouponCode: (obj?: {
5825
+ __typename?: any;
5826
+ } | null) => obj is CouponCode;
5827
+ export declare const isCoupon: (obj?: {
5828
+ __typename?: any;
5829
+ } | null) => obj is Coupon;
5830
+ export declare const isOfferClaim: (obj?: {
5831
+ __typename?: any;
5832
+ } | null) => obj is OfferClaim;
5833
+ export declare const isEligibilityResult: (obj?: {
5834
+ __typename?: any;
5835
+ } | null) => obj is EligibilityResult;
5836
+ export declare const isEnhancedPaginationInfoType: (obj?: {
5837
+ __typename?: any;
5838
+ } | null) => obj is EnhancedPaginationInfoType;
5839
+ export declare const isOfferWithEligibility: (obj?: {
5840
+ __typename?: any;
5841
+ } | null) => obj is OfferWithEligibility;
5842
+ export declare const isPaginatedOffersWithEligibility: (obj?: {
5843
+ __typename?: any;
5844
+ } | null) => obj is PaginatedOffersWithEligibility;
5845
+ export declare const isPaginatedBrands: (obj?: {
5846
+ __typename?: any;
5847
+ } | null) => obj is PaginatedBrands;
5848
+ export declare const isPaginatedSponsors: (obj?: {
5849
+ __typename?: any;
5850
+ } | null) => obj is PaginatedSponsors;
5317
5851
  export declare const isEditValueResponse: (obj?: {
5318
5852
  __typename?: any;
5319
5853
  } | null) => obj is EditValueResponse;
@@ -5365,12 +5899,9 @@ export declare const isScoreRefreshCapability: (obj?: {
5365
5899
  export declare const isCheckScoreRefreshCapabilityResponse: (obj?: {
5366
5900
  __typename?: any;
5367
5901
  } | null) => obj is CheckScoreRefreshCapabilityResponse;
5368
- export declare const isEnhancedPaginationInfoType: (obj?: {
5902
+ export declare const isPaginatedSports: (obj?: {
5369
5903
  __typename?: any;
5370
- } | null) => obj is EnhancedPaginationInfoType;
5371
- export declare const isPaginatedSportsType: (obj?: {
5372
- __typename?: any;
5373
- } | null) => obj is PaginatedSportsType;
5904
+ } | null) => obj is PaginatedSports;
5374
5905
  export declare const isUserImages: (obj?: {
5375
5906
  __typename?: any;
5376
5907
  } | null) => obj is UserImages;
@@ -5380,30 +5911,39 @@ export declare const isValidatedToken: (obj?: {
5380
5911
  export declare const isDeleteVtxUserResponse: (obj?: {
5381
5912
  __typename?: any;
5382
5913
  } | null) => obj is DeleteVtxUserResponse;
5383
- export declare const isPaginatedUsersType: (obj?: {
5914
+ export declare const isPaginatedUsers: (obj?: {
5384
5915
  __typename?: any;
5385
- } | null) => obj is PaginatedUsersType;
5916
+ } | null) => obj is PaginatedUsers;
5386
5917
  export declare const isTransactionDetails: (obj?: {
5387
5918
  __typename?: any;
5388
5919
  } | null) => obj is TransactionDetails;
5389
- export declare const isPaginatedEventsType: (obj?: {
5920
+ export declare const isPaginatedEvents: (obj?: {
5390
5921
  __typename?: any;
5391
- } | null) => obj is PaginatedEventsType;
5922
+ } | null) => obj is PaginatedEvents;
5392
5923
  export declare const isCurrencyAmountType: (obj?: {
5393
5924
  __typename?: any;
5394
5925
  } | null) => obj is CurrencyAmountType;
5395
- export declare const isStripeBalanceType: (obj?: {
5926
+ export declare const isStripeBalance: (obj?: {
5396
5927
  __typename?: any;
5397
- } | null) => obj is StripeBalanceType;
5928
+ } | null) => obj is StripeBalance;
5398
5929
  export declare const isStripeTransfer: (obj?: {
5399
5930
  __typename?: any;
5400
5931
  } | null) => obj is StripeTransfer;
5401
5932
  export declare const isUserDomain: (obj?: {
5402
5933
  __typename?: any;
5403
5934
  } | null) => obj is UserDomain;
5404
- export declare const isPaginatedTransactionsType: (obj?: {
5935
+ export declare const isPaginatedTransactions: (obj?: {
5936
+ __typename?: any;
5937
+ } | null) => obj is PaginatedTransactions;
5938
+ export declare const isPaginatedOffers: (obj?: {
5939
+ __typename?: any;
5940
+ } | null) => obj is PaginatedOffers;
5941
+ export declare const isUploadResult: (obj?: {
5405
5942
  __typename?: any;
5406
- } | null) => obj is PaginatedTransactionsType;
5943
+ } | null) => obj is UploadResult;
5944
+ export declare const isOfferAvailability: (obj?: {
5945
+ __typename?: any;
5946
+ } | null) => obj is OfferAvailability;
5407
5947
  export declare const isQuery: (obj?: {
5408
5948
  __typename?: any;
5409
5949
  } | null) => obj is Query;
@@ -5422,6 +5962,11 @@ export declare const enumFundingMode: {
5422
5962
  SINGLE_BUDGET: "SINGLE_BUDGET";
5423
5963
  COMPETITION_BUDGETS: "COMPETITION_BUDGETS";
5424
5964
  };
5965
+ export declare const enumEligibilityStatus: {
5966
+ ELIGIBLE: "ELIGIBLE";
5967
+ NOT_ELIGIBLE: "NOT_ELIGIBLE";
5968
+ UNKNOWN: "UNKNOWN";
5969
+ };
5425
5970
  export declare const enumForceScoreRefreshStatus: {
5426
5971
  success: "success";
5427
5972
  failed: "failed";
@@ -5438,3 +5983,8 @@ export declare const enumDonationMode: {
5438
5983
  PRIVATE: "PRIVATE";
5439
5984
  ANONYMOUS: "ANONYMOUS";
5440
5985
  };
5986
+ export declare const enumOfferClaimStatus: {
5987
+ ACTIVE: "ACTIVE";
5988
+ EXPIRED: "EXPIRED";
5989
+ ALL: "ALL";
5990
+ };