@vertikalx/vtx-backend-client 1.0.0-dev.24 → 1.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertikalx/vtx-backend-client",
3
- "version": "1.0.0-dev.24",
3
+ "version": "1.0.0-dev.26",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -258,22 +258,28 @@ export interface Brand {
258
258
  translations: (BrandTranslation[] | null);
259
259
  __typename: 'Brand';
260
260
  }
261
- export interface CountryReference {
261
+ export interface City {
262
262
  _id: Scalars['String'];
263
263
  name: Scalars['String'];
264
- __typename: 'CountryReference';
264
+ localizedName: Scalars['String'];
265
+ state: (State | null);
266
+ latitude: (Scalars['Float'] | null);
267
+ longitude: (Scalars['Float'] | null);
268
+ timezone: (Scalars['String'] | null);
269
+ __typename: 'City';
265
270
  }
266
- export interface StateReference {
271
+ export interface State {
267
272
  _id: Scalars['String'];
268
273
  name: Scalars['String'];
269
- country: (CountryReference | null);
270
- __typename: 'StateReference';
274
+ country: (Country | null);
275
+ cities: (City[] | null);
276
+ __typename: 'State';
271
277
  }
272
- export interface CityReference {
278
+ export interface Country {
273
279
  _id: Scalars['String'];
274
280
  name: Scalars['String'];
275
- state: (StateReference | null);
276
- __typename: 'CityReference';
281
+ states: (State[] | null);
282
+ __typename: 'Country';
277
283
  }
278
284
  export interface Qualification {
279
285
  type: Scalars['String'];
@@ -289,9 +295,9 @@ export interface ScoreQualification {
289
295
  export interface LocationQualification {
290
296
  type: Scalars['String'];
291
297
  operator: Scalars['String'];
292
- countries: CountryReference[];
293
- states: StateReference[];
294
- cities: CityReference[];
298
+ countries: Country[];
299
+ states: State[];
300
+ cities: City[];
295
301
  __typename: 'LocationQualification';
296
302
  }
297
303
  export interface DistanceQualification {
@@ -437,13 +443,29 @@ export interface AthleteCompetition {
437
443
  result: (AthleteCompetitionResult | null);
438
444
  __typename: 'AthleteCompetition';
439
445
  }
446
+ export interface WorldLocation {
447
+ _id: Scalars['String'];
448
+ userProvidedLatitude: (Scalars['Float'] | null);
449
+ userProvidedLongitude: (Scalars['Float'] | null);
450
+ cityNameGeocode: (Scalars['String'] | null);
451
+ stateNameGeocode: (Scalars['String'] | null);
452
+ countryIso2CodeGeocode: (Scalars['String'] | null);
453
+ timeZoneGeocode: (Scalars['String'] | null);
454
+ latitudeGeocode: (Scalars['Float'] | null);
455
+ longitudeGeocode: (Scalars['Float'] | null);
456
+ city: (City | null);
457
+ __typename: 'WorldLocation';
458
+ }
440
459
  export interface Athlete {
441
460
  _id: Scalars['String'];
442
461
  firstName: Scalars['String'];
443
462
  lastName: Scalars['String'];
444
463
  screenName: (Scalars['String'] | null);
445
- countryId: (Scalars['String'] | null);
446
- countryName: (Scalars['String'] | null);
464
+ dob: (Scalars['DateTime'] | null);
465
+ lgbt: (Scalars['Boolean'] | null);
466
+ competitionGender: (Scalars['String'] | null);
467
+ country: (Country | null);
468
+ location: (WorldLocation | null);
447
469
  trainer: (Scalars['String'] | null);
448
470
  trainerUrl: (Scalars['String'] | null);
449
471
  followStats: (FollowStats | null);
@@ -470,29 +492,6 @@ export interface Sponsor {
470
492
  description: Scalars['String'];
471
493
  __typename: 'Sponsor';
472
494
  }
473
- export interface Country {
474
- _id: Scalars['String'];
475
- name: Scalars['String'];
476
- states: (State[] | null);
477
- __typename: 'Country';
478
- }
479
- export interface State {
480
- _id: Scalars['String'];
481
- name: Scalars['String'];
482
- country: (Country | null);
483
- cities: (City[] | null);
484
- __typename: 'State';
485
- }
486
- export interface City {
487
- _id: Scalars['String'];
488
- name: Scalars['String'];
489
- localizedName: Scalars['String'];
490
- state: (State | null);
491
- latitude: (Scalars['Float'] | null);
492
- longitude: (Scalars['Float'] | null);
493
- timezone: (Scalars['String'] | null);
494
- __typename: 'City';
495
- }
496
495
  export interface Query {
497
496
  findTenantById: Tenant;
498
497
  findTenantByEmail: Tenant;
@@ -510,8 +509,9 @@ export interface Query {
510
509
  sponsors: Sponsor[];
511
510
  athlete: Athlete[];
512
511
  findAthleteById: Athlete;
513
- sports: Sport[];
512
+ getSports: Sport[];
514
513
  findSportById: Sport;
514
+ getSportLevels: SportLevel[];
515
515
  getSponsorships: Sponsorship[];
516
516
  getCountries: Country[];
517
517
  getCountryStates: State[];
@@ -536,9 +536,11 @@ export interface Mutation {
536
536
  registerAthlete: Athlete;
537
537
  createSport: Sport;
538
538
  updateSport: Sport;
539
+ createSportLevel: SportLevel;
539
540
  createSponsorwhip: Sponsorship;
540
541
  createCountry: Country;
541
542
  createState: State;
543
+ createCity: City;
542
544
  __typename: 'Mutation';
543
545
  }
544
546
  export interface UserGenqlSelection {
@@ -822,23 +824,29 @@ export interface BrandGenqlSelection {
822
824
  __typename?: boolean | number;
823
825
  __scalar?: boolean | number;
824
826
  }
825
- export interface CountryReferenceGenqlSelection {
827
+ export interface CityGenqlSelection {
826
828
  _id?: boolean | number;
827
829
  name?: boolean | number;
830
+ localizedName?: boolean | number;
831
+ state?: StateGenqlSelection;
832
+ latitude?: boolean | number;
833
+ longitude?: boolean | number;
834
+ timezone?: boolean | number;
828
835
  __typename?: boolean | number;
829
836
  __scalar?: boolean | number;
830
837
  }
831
- export interface StateReferenceGenqlSelection {
838
+ export interface StateGenqlSelection {
832
839
  _id?: boolean | number;
833
840
  name?: boolean | number;
834
- country?: CountryReferenceGenqlSelection;
841
+ country?: CountryGenqlSelection;
842
+ cities?: CityGenqlSelection;
835
843
  __typename?: boolean | number;
836
844
  __scalar?: boolean | number;
837
845
  }
838
- export interface CityReferenceGenqlSelection {
846
+ export interface CountryGenqlSelection {
839
847
  _id?: boolean | number;
840
848
  name?: boolean | number;
841
- state?: StateReferenceGenqlSelection;
849
+ states?: StateGenqlSelection;
842
850
  __typename?: boolean | number;
843
851
  __scalar?: boolean | number;
844
852
  }
@@ -858,9 +866,9 @@ export interface ScoreQualificationGenqlSelection {
858
866
  export interface LocationQualificationGenqlSelection {
859
867
  type?: boolean | number;
860
868
  operator?: boolean | number;
861
- countries?: CountryReferenceGenqlSelection;
862
- states?: StateReferenceGenqlSelection;
863
- cities?: CityReferenceGenqlSelection;
869
+ countries?: CountryGenqlSelection;
870
+ states?: StateGenqlSelection;
871
+ cities?: CityGenqlSelection;
864
872
  __typename?: boolean | number;
865
873
  __scalar?: boolean | number;
866
874
  }
@@ -1025,13 +1033,30 @@ export interface AthleteCompetitionGenqlSelection {
1025
1033
  __typename?: boolean | number;
1026
1034
  __scalar?: boolean | number;
1027
1035
  }
1036
+ export interface WorldLocationGenqlSelection {
1037
+ _id?: boolean | number;
1038
+ userProvidedLatitude?: boolean | number;
1039
+ userProvidedLongitude?: boolean | number;
1040
+ cityNameGeocode?: boolean | number;
1041
+ stateNameGeocode?: boolean | number;
1042
+ countryIso2CodeGeocode?: boolean | number;
1043
+ timeZoneGeocode?: boolean | number;
1044
+ latitudeGeocode?: boolean | number;
1045
+ longitudeGeocode?: boolean | number;
1046
+ city?: CityGenqlSelection;
1047
+ __typename?: boolean | number;
1048
+ __scalar?: boolean | number;
1049
+ }
1028
1050
  export interface AthleteGenqlSelection {
1029
1051
  _id?: boolean | number;
1030
1052
  firstName?: boolean | number;
1031
1053
  lastName?: boolean | number;
1032
1054
  screenName?: boolean | number;
1033
- countryId?: boolean | number;
1034
- countryName?: boolean | number;
1055
+ dob?: boolean | number;
1056
+ lgbt?: boolean | number;
1057
+ competitionGender?: boolean | number;
1058
+ country?: CountryGenqlSelection;
1059
+ location?: WorldLocationGenqlSelection;
1035
1060
  trainer?: boolean | number;
1036
1061
  trainerUrl?: boolean | number;
1037
1062
  followStats?: FollowStatsGenqlSelection;
@@ -1061,32 +1086,6 @@ export interface SponsorGenqlSelection {
1061
1086
  __typename?: boolean | number;
1062
1087
  __scalar?: boolean | number;
1063
1088
  }
1064
- export interface CountryGenqlSelection {
1065
- _id?: boolean | number;
1066
- name?: boolean | number;
1067
- states?: StateGenqlSelection;
1068
- __typename?: boolean | number;
1069
- __scalar?: boolean | number;
1070
- }
1071
- export interface StateGenqlSelection {
1072
- _id?: boolean | number;
1073
- name?: boolean | number;
1074
- country?: CountryGenqlSelection;
1075
- cities?: CityGenqlSelection;
1076
- __typename?: boolean | number;
1077
- __scalar?: boolean | number;
1078
- }
1079
- export interface CityGenqlSelection {
1080
- _id?: boolean | number;
1081
- name?: boolean | number;
1082
- localizedName?: boolean | number;
1083
- state?: StateGenqlSelection;
1084
- latitude?: boolean | number;
1085
- longitude?: boolean | number;
1086
- timezone?: boolean | number;
1087
- __typename?: boolean | number;
1088
- __scalar?: boolean | number;
1089
- }
1090
1089
  export interface ScoreQualificationDto {
1091
1090
  type: Scalars['String'];
1092
1091
  scoreType: Scalars['String'];
@@ -1195,12 +1194,13 @@ export interface QueryGenqlSelection {
1195
1194
  athleteId: Scalars['String'];
1196
1195
  };
1197
1196
  });
1198
- sports?: SportGenqlSelection;
1197
+ getSports?: SportGenqlSelection;
1199
1198
  findSportById?: (SportGenqlSelection & {
1200
1199
  __args: {
1201
1200
  sportId: Scalars['String'];
1202
1201
  };
1203
1202
  });
1203
+ getSportLevels?: SportLevelGenqlSelection;
1204
1204
  getSponsorships?: (SponsorshipGenqlSelection & {
1205
1205
  __args: {
1206
1206
  sponsorId: Scalars['String'];
@@ -1307,10 +1307,14 @@ export interface MutationGenqlSelection {
1307
1307
  });
1308
1308
  updateSport?: (SportGenqlSelection & {
1309
1309
  __args: {
1310
- sportId: Scalars['String'];
1311
1310
  input: UpdateSportDto;
1312
1311
  };
1313
1312
  });
1313
+ createSportLevel?: (SportLevelGenqlSelection & {
1314
+ __args: {
1315
+ input: CreateSportLevelDto;
1316
+ };
1317
+ });
1314
1318
  createSponsorwhip?: (SponsorshipGenqlSelection & {
1315
1319
  __args: {
1316
1320
  input: CreateSponsorshipDto;
@@ -1326,6 +1330,11 @@ export interface MutationGenqlSelection {
1326
1330
  input: CreateStateDto;
1327
1331
  };
1328
1332
  });
1333
+ createCity?: (CityGenqlSelection & {
1334
+ __args: {
1335
+ input: CreateCityDto;
1336
+ };
1337
+ });
1329
1338
  __typename?: boolean | number;
1330
1339
  __scalar?: boolean | number;
1331
1340
  }
@@ -1407,19 +1416,32 @@ export interface RegisterAthleteDto {
1407
1416
  lastName: Scalars['String'];
1408
1417
  screenName?: (Scalars['String'] | null);
1409
1418
  nationality: Scalars['String'];
1410
- cityOfResidence: Scalars['String'];
1419
+ cityId: Scalars['String'];
1420
+ locLatitude?: (Scalars['Float'] | null);
1421
+ locLongitude?: (Scalars['Float'] | null);
1411
1422
  dateOfBirth: Scalars['DateTime'];
1412
- competitionLevel: Scalars['Float'];
1413
1423
  team?: (Scalars['String'] | null);
1414
1424
  gender: Scalars['String'];
1415
1425
  mainSport: Scalars['String'];
1426
+ mainSportLevel: Scalars['String'];
1416
1427
  }
1417
1428
  export interface CreateSportDto {
1418
1429
  name: Scalars['String'];
1419
1430
  }
1420
1431
  export interface UpdateSportDto {
1432
+ _id: Scalars['String'];
1421
1433
  name: Scalars['String'];
1422
1434
  }
1435
+ export interface CreateSportLevelDto {
1436
+ _id: Scalars['String'];
1437
+ label: Scalars['String'];
1438
+ index: Scalars['Float'];
1439
+ translations?: (CreateSportLevelTranslationDto[] | null);
1440
+ }
1441
+ export interface CreateSportLevelTranslationDto {
1442
+ language: Scalars['String'];
1443
+ label: Scalars['String'];
1444
+ }
1423
1445
  export interface CreateSponsorshipDto {
1424
1446
  title: Scalars['String'];
1425
1447
  brandId: Scalars['String'];
@@ -1457,13 +1479,31 @@ export interface SponsorshipTranslationDto {
1457
1479
  terms?: (Scalars['String'] | null);
1458
1480
  }
1459
1481
  export interface CreateCountryDto {
1460
- id: Scalars['String'];
1482
+ _id: Scalars['String'];
1461
1483
  name: Scalars['String'];
1462
1484
  }
1463
1485
  export interface CreateStateDto {
1464
- id: Scalars['String'];
1486
+ _id: Scalars['String'];
1465
1487
  name: Scalars['String'];
1466
- idCountry: Scalars['String'];
1488
+ countryId: Scalars['String'];
1489
+ }
1490
+ export interface CreateCityDto {
1491
+ _id: Scalars['String'];
1492
+ cityName: Scalars['String'];
1493
+ cityNameLocalized: Scalars['String'];
1494
+ lat: Scalars['Float'];
1495
+ lng: Scalars['Float'];
1496
+ stateId: Scalars['String'];
1497
+ timezone: Scalars['String'];
1498
+ city_alt?: (Scalars['String'] | null);
1499
+ iso3?: (Scalars['String'] | null);
1500
+ admin_type?: (Scalars['String'] | null);
1501
+ capital?: (Scalars['String'] | null);
1502
+ density?: (Scalars['Float'] | null);
1503
+ population?: (Scalars['Float'] | null);
1504
+ population_proper?: (Scalars['Float'] | null);
1505
+ ranking?: (Scalars['Float'] | null);
1506
+ same_name?: (Scalars['String'] | null);
1467
1507
  }
1468
1508
  export declare const isUser: (obj?: {
1469
1509
  __typename?: any;
@@ -1546,15 +1586,15 @@ export declare const isBrandTranslation: (obj?: {
1546
1586
  export declare const isBrand: (obj?: {
1547
1587
  __typename?: any;
1548
1588
  } | null) => obj is Brand;
1549
- export declare const isCountryReference: (obj?: {
1589
+ export declare const isCity: (obj?: {
1550
1590
  __typename?: any;
1551
- } | null) => obj is CountryReference;
1552
- export declare const isStateReference: (obj?: {
1591
+ } | null) => obj is City;
1592
+ export declare const isState: (obj?: {
1553
1593
  __typename?: any;
1554
- } | null) => obj is StateReference;
1555
- export declare const isCityReference: (obj?: {
1594
+ } | null) => obj is State;
1595
+ export declare const isCountry: (obj?: {
1556
1596
  __typename?: any;
1557
- } | null) => obj is CityReference;
1597
+ } | null) => obj is Country;
1558
1598
  export declare const isQualification: (obj?: {
1559
1599
  __typename?: any;
1560
1600
  } | null) => obj is Qualification;
@@ -1618,6 +1658,9 @@ export declare const isAthleteCompetitionResult: (obj?: {
1618
1658
  export declare const isAthleteCompetition: (obj?: {
1619
1659
  __typename?: any;
1620
1660
  } | null) => obj is AthleteCompetition;
1661
+ export declare const isWorldLocation: (obj?: {
1662
+ __typename?: any;
1663
+ } | null) => obj is WorldLocation;
1621
1664
  export declare const isAthlete: (obj?: {
1622
1665
  __typename?: any;
1623
1666
  } | null) => obj is Athlete;
@@ -1627,15 +1670,6 @@ export declare const isIndustry: (obj?: {
1627
1670
  export declare const isSponsor: (obj?: {
1628
1671
  __typename?: any;
1629
1672
  } | null) => obj is Sponsor;
1630
- export declare const isCountry: (obj?: {
1631
- __typename?: any;
1632
- } | null) => obj is Country;
1633
- export declare const isState: (obj?: {
1634
- __typename?: any;
1635
- } | null) => obj is State;
1636
- export declare const isCity: (obj?: {
1637
- __typename?: any;
1638
- } | null) => obj is City;
1639
1673
  export declare const isQuery: (obj?: {
1640
1674
  __typename?: any;
1641
1675
  } | null) => obj is Query;
@@ -257,21 +257,27 @@ type Brand {
257
257
  translations: [BrandTranslation!]
258
258
  }
259
259
 
260
- type CountryReference {
260
+ type City {
261
261
  _id: String!
262
262
  name: String!
263
+ localizedName: String!
264
+ state: State
265
+ latitude: Float
266
+ longitude: Float
267
+ timezone: String
263
268
  }
264
269
 
265
- type StateReference {
270
+ type State {
266
271
  _id: String!
267
272
  name: String!
268
- country: CountryReference
273
+ country: Country
274
+ cities: [City!]
269
275
  }
270
276
 
271
- type CityReference {
277
+ type Country {
272
278
  _id: String!
273
279
  name: String!
274
- state: StateReference
280
+ states: [State!]
275
281
  }
276
282
 
277
283
  type Qualification {
@@ -288,9 +294,9 @@ type ScoreQualification {
288
294
  type LocationQualification {
289
295
  type: String!
290
296
  operator: String!
291
- countries: [CountryReference!]!
292
- states: [StateReference!]!
293
- cities: [CityReference!]!
297
+ countries: [Country!]!
298
+ states: [State!]!
299
+ cities: [City!]!
294
300
  }
295
301
 
296
302
  type DistanceQualification {
@@ -436,13 +442,29 @@ type AthleteCompetition {
436
442
  result: AthleteCompetitionResult
437
443
  }
438
444
 
445
+ type WorldLocation {
446
+ _id: String!
447
+ userProvidedLatitude: Float
448
+ userProvidedLongitude: Float
449
+ cityNameGeocode: String
450
+ stateNameGeocode: String
451
+ countryIso2CodeGeocode: String
452
+ timeZoneGeocode: String
453
+ latitudeGeocode: Float
454
+ longitudeGeocode: Float
455
+ city: City
456
+ }
457
+
439
458
  type Athlete {
440
459
  _id: String!
441
460
  firstName: String!
442
461
  lastName: String!
443
462
  screenName: String
444
- countryId: String
445
- countryName: String
463
+ dob: DateTime
464
+ lgbt: Boolean
465
+ competitionGender: String
466
+ country: Country
467
+ location: WorldLocation
446
468
  trainer: String
447
469
  trainerUrl: String
448
470
  followStats: FollowStats
@@ -469,29 +491,6 @@ type Sponsor {
469
491
  description: String!
470
492
  }
471
493
 
472
- type Country {
473
- _id: String!
474
- name: String!
475
- states: [State!]
476
- }
477
-
478
- type State {
479
- _id: String!
480
- name: String!
481
- country: Country
482
- cities: [City!]
483
- }
484
-
485
- type City {
486
- _id: String!
487
- name: String!
488
- localizedName: String!
489
- state: State
490
- latitude: Float
491
- longitude: Float
492
- timezone: String
493
- }
494
-
495
494
  input ScoreQualificationDto {
496
495
  type: String!
497
496
  scoreType: String!
@@ -561,8 +560,9 @@ type Query {
561
560
  sponsors: [Sponsor!]!
562
561
  athlete: [Athlete!]!
563
562
  findAthleteById(athleteId: String!): Athlete!
564
- sports: [Sport!]!
563
+ getSports: [Sport!]!
565
564
  findSportById(sportId: String!): Sport!
565
+ getSportLevels: [SportLevel!]!
566
566
  getSponsorships(sponsorId: String!): [Sponsorship!]!
567
567
  getCountries: [Country!]!
568
568
  getCountryStates(countryId: String!): [State!]!
@@ -591,10 +591,12 @@ type Mutation {
591
591
  createSponsor(input: CreateSponsorDto!): Sponsor!
592
592
  registerAthlete(input: RegisterAthleteDto!): Athlete!
593
593
  createSport(input: CreateSportDto!): Sport!
594
- updateSport(sportId: String!, input: UpdateSportDto!): Sport!
594
+ updateSport(input: UpdateSportDto!): Sport!
595
+ createSportLevel(input: CreateSportLevelDto!): SportLevel!
595
596
  createSponsorwhip(input: CreateSponsorshipDto!): Sponsorship!
596
597
  createCountry(input: CreateCountryDto!): Country!
597
598
  createState(input: CreateStateDto!): State!
599
+ createCity(input: CreateCityDto!): City!
598
600
  }
599
601
 
600
602
  input CreateTenantInput {
@@ -687,12 +689,14 @@ input RegisterAthleteDto {
687
689
  lastName: String!
688
690
  screenName: String
689
691
  nationality: String!
690
- cityOfResidence: String!
692
+ cityId: String!
693
+ locLatitude: Float
694
+ locLongitude: Float
691
695
  dateOfBirth: DateTime!
692
- competitionLevel: Float!
693
696
  team: String
694
697
  gender: String!
695
698
  mainSport: String!
699
+ mainSportLevel: String!
696
700
  }
697
701
 
698
702
  input CreateSportDto {
@@ -700,9 +704,22 @@ input CreateSportDto {
700
704
  }
701
705
 
702
706
  input UpdateSportDto {
707
+ _id: String!
703
708
  name: String!
704
709
  }
705
710
 
711
+ input CreateSportLevelDto {
712
+ _id: String!
713
+ label: String!
714
+ index: Float!
715
+ translations: [CreateSportLevelTranslationDto!]
716
+ }
717
+
718
+ input CreateSportLevelTranslationDto {
719
+ language: String!
720
+ label: String!
721
+ }
722
+
706
723
  input CreateSponsorshipDto {
707
724
  title: String!
708
725
  brandId: String!
@@ -746,12 +763,31 @@ input SponsorshipTranslationDto {
746
763
  }
747
764
 
748
765
  input CreateCountryDto {
749
- id: String!
766
+ _id: String!
750
767
  name: String!
751
768
  }
752
769
 
753
770
  input CreateStateDto {
754
- id: String!
771
+ _id: String!
755
772
  name: String!
756
- idCountry: String!
773
+ countryId: String!
774
+ }
775
+
776
+ input CreateCityDto {
777
+ _id: String!
778
+ cityName: String!
779
+ cityNameLocalized: String!
780
+ lat: Float!
781
+ lng: Float!
782
+ stateId: String!
783
+ timezone: String!
784
+ city_alt: String
785
+ iso3: String
786
+ admin_type: String
787
+ capital: String
788
+ density: Float
789
+ population: Float
790
+ population_proper: Float
791
+ ranking: Float
792
+ same_name: String
757
793
  }