@vertikalx/vtx-backend-client 1.0.0-dev.8 → 1.0.0-dev.80

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.
Files changed (73) hide show
  1. package/LICENSE.md +11 -11
  2. package/package.json +16 -16
  3. package/src/api/api-call-headers.d.ts +3 -3
  4. package/src/api/api-call-headers.js +3 -3
  5. package/src/api/api-call-headers.js.map +1 -1
  6. package/src/api/backend-response.d.ts +7 -1
  7. package/src/api/backend-response.js +0 -0
  8. package/src/api/backend-response.js.map +0 -0
  9. package/src/api/domains.d.ts +3 -0
  10. package/src/api/domains.js +7 -0
  11. package/src/api/domains.js.map +1 -0
  12. package/src/api/response-builder.d.ts +4 -0
  13. package/src/api/response-builder.js +123 -0
  14. package/src/api/response-builder.js.map +1 -0
  15. package/src/api/types.d.ts +2 -0
  16. package/src/api/types.js +3 -0
  17. package/src/api/types.js.map +1 -0
  18. package/src/api/vtx-apikey-api.d.ts +0 -0
  19. package/src/api/vtx-apikey-api.js +0 -0
  20. package/src/api/vtx-apikey-api.js.map +0 -0
  21. package/src/api/vtx-base-api.d.ts +57 -4
  22. package/src/api/vtx-base-api.js +4474 -115
  23. package/src/api/vtx-base-api.js.map +1 -1
  24. package/src/api/vtx-mobile-api.d.ts +0 -0
  25. package/src/api/vtx-mobile-api.js +0 -0
  26. package/src/api/vtx-mobile-api.js.map +0 -0
  27. package/src/api/vtx-web-browser-api.d.ts +0 -0
  28. package/src/api/vtx-web-browser-api.js +2 -2
  29. package/src/api/vtx-web-browser-api.js.map +1 -1
  30. package/src/api/vtx-web-server-api.d.ts +0 -0
  31. package/src/api/vtx-web-server-api.js +0 -0
  32. package/src/api/vtx-web-server-api.js.map +0 -0
  33. package/src/client/index.d.ts +0 -0
  34. package/src/client/index.js +0 -0
  35. package/src/client/index.js.map +0 -0
  36. package/src/client/runtime/batcher.d.ts +0 -0
  37. package/src/client/runtime/batcher.js +0 -0
  38. package/src/client/runtime/batcher.js.map +0 -0
  39. package/src/client/runtime/createClient.d.ts +4 -10
  40. package/src/client/runtime/createClient.js +0 -0
  41. package/src/client/runtime/createClient.js.map +0 -0
  42. package/src/client/runtime/error.d.ts +0 -0
  43. package/src/client/runtime/error.js +0 -0
  44. package/src/client/runtime/error.js.map +0 -0
  45. package/src/client/runtime/fetcher.d.ts +0 -0
  46. package/src/client/runtime/fetcher.js +0 -0
  47. package/src/client/runtime/fetcher.js.map +0 -0
  48. package/src/client/runtime/generateGraphqlOperation.d.ts +1 -1
  49. package/src/client/runtime/generateGraphqlOperation.js +0 -0
  50. package/src/client/runtime/generateGraphqlOperation.js.map +0 -0
  51. package/src/client/runtime/index.d.ts +0 -0
  52. package/src/client/runtime/index.js +0 -0
  53. package/src/client/runtime/index.js.map +0 -0
  54. package/src/client/runtime/linkTypeMap.d.ts +0 -0
  55. package/src/client/runtime/linkTypeMap.js +0 -0
  56. package/src/client/runtime/linkTypeMap.js.map +0 -0
  57. package/src/client/runtime/typeSelection.d.ts +0 -0
  58. package/src/client/runtime/typeSelection.js +0 -0
  59. package/src/client/runtime/typeSelection.js.map +0 -0
  60. package/src/client/runtime/types.d.ts +0 -0
  61. package/src/client/runtime/types.js +0 -0
  62. package/src/client/runtime/types.js.map +0 -0
  63. package/src/client/schema.d.ts +2658 -163
  64. package/src/client/schema.graphql +1330 -61
  65. package/src/client/schema.js +577 -44
  66. package/src/client/schema.js.map +1 -1
  67. package/src/client/types.d.ts +1470 -93
  68. package/src/client/types.js +3844 -251
  69. package/src/client/types.js.map +1 -1
  70. package/src/index.d.ts +3 -0
  71. package/src/index.js +3 -0
  72. package/src/index.js.map +1 -1
  73. package/tsconfig.lib.tsbuildinfo +1 -1
@@ -1,21 +1,34 @@
1
- type ApiKey {
1
+ type User {
2
2
  _id: String!
3
- keyName: String!
4
- readAccess: Boolean!
5
- writeAccess: Boolean!
3
+ loginEmail: String!
4
+ suspended: Boolean!
5
+ domains: [DomainCredential!]
6
+ loginMethods: [String!]
6
7
  }
7
8
 
8
- type ApiKeyWithValue {
9
+ type UserWithToken {
9
10
  _id: String!
10
- keyName: String!
11
- readAccess: Boolean!
12
- writeAccess: Boolean!
13
- actualKey: String!
11
+ loginEmail: String!
12
+ suspended: Boolean!
13
+ domains: [DomainCredential!]
14
+ loginMethods: [String!]
15
+ token: UserToken!
14
16
  }
15
17
 
16
- type UserToken {
17
- actualToken: String!
18
- refreshToken: String!
18
+ type BaseTenant {
19
+ _id: String!
20
+ name: String!
21
+ tenant_uri: String!
22
+ domain: Domain!
23
+ }
24
+
25
+ type Tenant {
26
+ _id: String!
27
+ name: String!
28
+ tenant_uri: String!
29
+ domain: Domain!
30
+ email: String!
31
+ owner: User
19
32
  }
20
33
 
21
34
  type Domain {
@@ -24,26 +37,41 @@ type Domain {
24
37
  description: String
25
38
  }
26
39
 
27
- type User {
40
+ type DomainCredential {
28
41
  _id: String!
29
- loginEmail: String!
30
- suspended: Boolean!
31
- domains: [Domain!]
42
+ name: String!
43
+ description: String
44
+ tenant: BaseTenant
32
45
  }
33
46
 
34
- type UserWithToken {
35
- _id: String!
36
- loginEmail: String!
37
- suspended: Boolean!
38
- domains: [Domain!]
39
- token: UserToken!
47
+ type UserToken {
48
+ actualToken: String!
49
+ refreshToken: String!
40
50
  }
41
51
 
42
- type Tenant {
52
+ type DecodedToken {
53
+ tokenId: String!
54
+ systemId: String!
55
+ userId: String!
56
+ email: String!
57
+ refreshTokenId: String!
58
+ domains: [DomainCredential!]!
59
+ }
60
+
61
+ type DecodedRefreshToken {
62
+ userId: String!
63
+ email: String!
64
+ originalTokenId: String!
65
+ }
66
+
67
+ type TenantWithUserLogin {
43
68
  _id: String!
44
69
  name: String!
45
- email: String!
46
70
  tenant_uri: String!
71
+ domain: Domain!
72
+ email: String!
73
+ owner: User
74
+ user: UserWithToken!
47
75
  }
48
76
 
49
77
  type UriAvailableType {
@@ -51,95 +79,1159 @@ type UriAvailableType {
51
79
  valid: Boolean!
52
80
  }
53
81
 
54
- type TenantWithUserLogin {
82
+ type Agreement {
55
83
  _id: String!
84
+ kind: String!
85
+ domain: String!
86
+ isActiveAgreement: Boolean!
87
+ version: String!
88
+ publishedDate: DateTime
89
+ unPublishedDate: DateTime
90
+ locked: Boolean!
56
91
  name: String!
57
- email: String!
58
- tenant_uri: String!
59
- user: UserWithToken!
92
+ description: String
93
+ content: String
94
+ createdDate: DateTime!
95
+ updatedDate: DateTime!
60
96
  }
61
97
 
62
- type TenantUserTokenWithInfo {
63
- actualToken: String!
64
- refreshToken: String!
65
- tenantId: String!
66
- tenantUri: String!
67
- loginEmail: String!
98
+ """
99
+ A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
100
+ """
101
+ scalar DateTime
102
+
103
+ type BillEntity {
104
+ name: String!
105
+ taxId: String
106
+ line1: String
107
+ line2: String
108
+ line3: String
109
+ city: String
110
+ state: String
111
+ country: String
112
+ zip: String
113
+ }
114
+
115
+ type InvoiceItem {
116
+ _id: String!
117
+ unitPrice: Float!
118
+ unitTax: Float!
119
+ quantity: Float!
120
+ unit: String!
121
+ itemPrice: Float!
122
+ itemTotal: Float!
123
+ }
124
+
125
+ type Payment {
126
+ _id: String!
127
+ amount: Float!
128
+ currency: String!
129
+ datePaid: DateTime!
130
+ paymentComment: String
131
+ transactionId: String
132
+ processorType: String
133
+ processorReference: String
134
+ paidItemReference: String
135
+ payeeReference: String
136
+ payorReference: String
137
+ paymentMethodType: String
138
+ paymentMethodReference: String
139
+ }
140
+
141
+ type PlaFeature {
142
+ _id: String!
143
+ title: String!
144
+ description: String
145
+ quantity: Float
146
+ quantityUnit: String
147
+ }
148
+
149
+ type Plan {
150
+ _id: String!
151
+ name: String
152
+ description: String
153
+ prices: [PlanPrice!]!
154
+ features: [PlaFeature!]!
155
+ isPublic: Boolean!
156
+ active: Boolean!
157
+ startOfferingDate: DateTime
158
+ endOfferingDate: DateTime
159
+ termsAndConditions: String
160
+ }
161
+
162
+ type PlanPrice {
163
+ _id: String!
164
+ currency: String!
165
+ price: Float!
166
+ taxMode: String!
167
+ period: String!
168
+ customDays: Float
169
+ plan: Plan
170
+ }
171
+
172
+ type Invoice {
173
+ _id: String!
174
+ invoiceDate: DateTime!
175
+ billedEntity: BillEntity!
176
+ dueDate: DateTime!
177
+ billAmount: Float!
178
+ tax: Float!
179
+ total: Float!
180
+ currency: String!
181
+ items: [InvoiceItem!]
182
+ payment: Payment
183
+ }
184
+
185
+ type SubscriptionInvoice {
186
+ _id: String!
187
+ invoice: Invoice!
188
+ billedPlan: PlanPrice!
189
+ subscriber: PlanSubscription!
190
+ }
191
+
192
+ type PlanSubscription {
193
+ _id: String!
194
+ currentPlan: PlanPrice!
195
+ billPrice: Float!
196
+ billCurrency: String!
197
+ billPriceComment: String
198
+ lastBillDate: DateTime!
199
+ endAccessDate: DateTime!
200
+ autoRenew: Boolean!
201
+ autoRenewPlan: PlanPrice
202
+ autoRenewDate: DateTime!
203
+ payments: [SubscriptionPayment!]!
204
+ invoices: [SubscriptionInvoice!]!
205
+ }
206
+
207
+ type SubscriptionPayment {
208
+ _id: String!
209
+ payment: Payment!
210
+ subscriber: PlanSubscription!
211
+ }
212
+
213
+ type AWSS3File {
214
+ _id: String!
215
+ name: String
216
+ contentType: String
217
+ size: Float
218
+ useType: String
219
+ url: String!
220
+ key: String!
221
+ pendingDelete: Boolean!
222
+ }
223
+
224
+ type MagicLink {
225
+ _id: String!
226
+ code: String!
227
+ type: String!
228
+ url: String!
229
+ expires: DateTime
230
+ data: String
231
+ isExpired: Boolean!
232
+ }
233
+
234
+ type VerificationCode {
235
+ _id: String!
236
+ type: String
237
+ recipient: String
238
+ expires: DateTime
239
+ data: String
240
+ isExpired: Boolean!
241
+ createdDate: DateTime!
242
+ }
243
+
244
+ type ErrorInfo {
245
+ errorCode: Float!
246
+ errorMessage: String!
247
+ }
248
+
249
+ type HttpRequestField {
250
+ key: String!
251
+ value: String!
252
+ }
253
+
254
+ type AWSS3UploadUrl {
255
+ uploadUrl: String!
256
+ fields: [HttpRequestField!]!
257
+ downloadUrl: String!
258
+ bucket: String!
259
+ key: String!
260
+ }
261
+
262
+ type AWSS3CallResult {
263
+ httpStatus: Float!
264
+ result: String!
265
+ message: String!
266
+ errors: [String!]
267
+ }
268
+
269
+ type CodeVerificationResponse {
270
+ result: String!
271
+ code: VerificationCode
272
+ error: ErrorInfo
273
+ }
274
+
275
+ type BrandStats {
276
+ campaigns: Float
277
+ sponsorships: Float
278
+ sports: Float
279
+ athletes: Float
280
+ }
281
+
282
+ type BrandTranslation {
283
+ _id: String!
284
+ brandId: String!
285
+ language: String!
286
+ name: String
287
+ slogan: String
288
+ description: String
289
+ logo: AWSS3File
290
+ banner: AWSS3File
68
291
  }
69
292
 
70
293
  type Brand {
71
294
  _id: String!
72
295
  name: String!
296
+ slogan: String
297
+ website: String
298
+ description: String
299
+ approved: Boolean!
300
+ published: Boolean!
301
+ logo: AWSS3File
302
+ banner: AWSS3File
303
+ stats: BrandStats
304
+ operatorIds: [String!]
305
+ translations: [BrandTranslation!]
306
+ }
307
+
308
+ type City {
309
+ _id: String!
310
+ name: String!
311
+ localizedName: String!
312
+ state: State
313
+ latitude: Float
314
+ longitude: Float
315
+ timezone: String
316
+ }
317
+
318
+ type State {
319
+ _id: String!
320
+ name: String!
321
+ country: Country
322
+ cities: [City!]
323
+ }
324
+
325
+ type Country {
326
+ _id: String!
327
+ name: String!
328
+ states: [State!]
329
+ }
330
+
331
+ type AgeQualification {
332
+ type: String!
333
+ value: Float!
334
+ operator: String!
335
+ }
336
+
337
+ type GenderQualification {
338
+ type: String!
339
+ operator: String!
340
+ values: [String!]!
341
+ }
342
+
343
+ type ScoreQualification {
344
+ type: String!
345
+ scoreType: String!
346
+ operator: String!
347
+ value: Float!
348
+ }
349
+
350
+ type LocationQualification {
351
+ type: String!
352
+ operator: String!
353
+ countries: [Country!]!
354
+ states: [State!]!
355
+ cities: [City!]!
356
+ }
357
+
358
+ type NationalityQualification {
359
+ type: String!
360
+ operator: String!
361
+ countries: [Country!]!
362
+ }
363
+
364
+ type DistanceQualification {
365
+ type: String!
366
+ maxDistance: Float!
367
+ latitude: Float
368
+ longitude: Float
369
+ cityId: String
370
+ }
371
+
372
+ type SportsQualification {
373
+ type: String!
374
+ sports: [String!]!
375
+ operator: String!
376
+ }
377
+
378
+ type SportsLevelQualification {
379
+ type: String!
380
+ operator: String!
381
+ level: String!
382
+ }
383
+
384
+ type AthleteCriteria {
385
+ _id: String!
386
+ label: String
387
+ qualifications: [QualificationTypeUnion!]
388
+ }
389
+
390
+ union QualificationTypeUnion = AgeQualification | GenderQualification | ScoreQualification | LocationQualification | NationalityQualification | DistanceQualification | SportsQualification | SportsLevelQualification
391
+
392
+ type Industry {
393
+ _id: String!
394
+ name: String!
395
+ }
396
+
397
+ type SponsorStats {
398
+ sponsoredAthletes: Float!
399
+ totalBrands: Float!
400
+ activeCampaigns: Float!
401
+ activeSponsorships: Float!
402
+ }
403
+
404
+ type SponsorBrand {
405
+ _id: String!
406
+ name: String!
407
+ slogan: String
408
+ website: String
73
409
  description: String
74
410
  approved: Boolean!
75
411
  published: Boolean!
412
+ logo: AWSS3File
413
+ banner: AWSS3File
414
+ stats: BrandStats
415
+ operatorIds: [String!]
416
+ translations: [BrandTranslation!]
417
+ sponsorBrandId: String!
418
+ authorizedUse: Boolean!
419
+ isAuthorizer: Boolean!
76
420
  }
77
421
 
78
422
  type Sponsor {
79
423
  _id: String!
80
424
  name: String!
81
425
  description: String!
426
+ tenant: Tenant!
427
+ industry: Industry
428
+ stats: SponsorStats
429
+ brands: [SponsorBrand!]
430
+ sponsorships: [Sponsorship!]
431
+ approved: Boolean!
82
432
  }
83
433
 
84
- type Industry {
434
+ type SponsorshipItem {
435
+ _id: String!
436
+ quantity: Float!
437
+ title: String!
438
+ value: Float!
439
+ type: String!
440
+ }
441
+
442
+ type SponsorshipCommitment {
443
+ _id: String!
444
+ title: String!
445
+ details: String
446
+ hashTags: String!
447
+ media: String!
448
+ actionType: String!
449
+ frequency: Float
450
+ periodicity: String!
451
+ autoMeasurable: Boolean!
452
+ }
453
+
454
+ type Duration {
455
+ length: Float!
456
+ unit: String!
457
+ }
458
+
459
+ type SponsorshipStats {
460
+ totalSponsorships: Float
461
+ totalApplications: Float
462
+ newApplications: Float
463
+ discardedApplications: Float
464
+ selectedApplications: Float
465
+ approvedApplications: Float
466
+ grantedSponsorships: Float
467
+ remainingSponsorships: Float
468
+ }
469
+
470
+ type SponsorshipTranslation {
471
+ _id: String!
472
+ sponsorshipId: String!
473
+ language: String!
474
+ title: String
475
+ description: String
476
+ terms: String
477
+ banner: AWSS3File
478
+ }
479
+
480
+ type Sponsorship {
481
+ _id: String!
482
+ title: String!
483
+ description: String
484
+ cashValue: Float!
485
+ otherValue: Float!
486
+ brand: Brand
487
+ banner: AWSS3File
488
+ criteria: AthleteCriteria
489
+ deadline: DateTime
490
+ startDate: DateTime
491
+ duration: Duration!
492
+ sponsor: Sponsor
493
+ sponsorshipItems: [SponsorshipItem!]
494
+ commitments: [SponsorshipCommitment!]
495
+ terms: String
496
+ stats: SponsorshipStats
497
+ isPrivate: Boolean!
498
+ approved: Boolean!
499
+ published: Boolean!
500
+ translations: [SponsorshipTranslation!]
501
+ }
502
+
503
+ type FollowStats {
504
+ followers: Float!
505
+ followed: Float!
506
+ raves: Float!
507
+ favorites: Float!
508
+ }
509
+
510
+ type Sport {
511
+ _id: String!
512
+ name: String!
513
+ }
514
+
515
+ type VtxScores {
516
+ vtxScore: Float!
517
+ socialScore: Float!
518
+ trainingScore: Float!
519
+ competitionScore: Float!
520
+ }
521
+
522
+ type SportLevelTranslation {
523
+ _id: String!
524
+ language: String!
525
+ label: String!
526
+ }
527
+
528
+ type SportLevel {
529
+ _id: String!
530
+ label: String!
531
+ index: Float!
532
+ translations: [SportLevelTranslation!]
533
+ }
534
+
535
+ type Ranking {
536
+ scope: String!
537
+ scopeId: String!
538
+ scopeName: String!
539
+ position: Float!
540
+ total: Float!
541
+ }
542
+
543
+ type AthleteRankings {
544
+ worldRanking: Ranking
545
+ countryRanking: Ranking
546
+ stateRanking: Ranking
547
+ cityRanking: Ranking
548
+ }
549
+
550
+ type Team {
551
+ _id: String!
552
+ name: String!
553
+ description: String
554
+ sports: [Sport!]
555
+ approved: Boolean
556
+ logo: AWSS3File
557
+ banner: AWSS3File
558
+ }
559
+
560
+ type WorldLocation {
561
+ _id: String!
562
+ userProvidedLatitude: Float
563
+ userProvidedLongitude: Float
564
+ cityNameGeocode: String
565
+ stateNameGeocode: String
566
+ countryIso2CodeGeocode: String
567
+ timeZoneGeocode: String
568
+ latitudeGeocode: Float
569
+ longitudeGeocode: Float
570
+ city: City
571
+ }
572
+
573
+ type SportsEvent {
85
574
  _id: String!
86
575
  name: String!
576
+ mainSport: Sport
577
+ eventWebSite: String
578
+ startDate: DateTime!
579
+ endDate: DateTime
580
+ verified: Boolean!
581
+ banner: AWSS3File
582
+ location: WorldLocation
583
+ }
584
+
585
+ type AthleteCompetitionResult {
586
+ _id: String!
587
+ resultType: String!
588
+ position: Float
589
+ score: String
590
+ finishTimeMS: Float
591
+ resultWebLink: String
592
+ }
593
+
594
+ type BudgetItem {
595
+ _id: String!
596
+ quantity: Float!
597
+ concept: String!
598
+ itemCost: Float!
599
+ }
600
+
601
+ type Budget {
602
+ _id: String!
603
+ initialFunds: Float!
604
+ totalRequired: Float!
605
+ items: [BudgetItem!]
606
+ }
607
+
608
+ type AthleteCompetition {
609
+ _id: String!
610
+ event: SportsEvent!
611
+ participationDate: DateTime
612
+ competitionNumber: String
613
+ result: AthleteCompetitionResult
614
+ fundRaisingCampaignIds: [String!]
615
+ budget: Budget
616
+ }
617
+
618
+ type MembershipOrganizationReference {
619
+ _id: String!
620
+ shortName: String
621
+ acronym: String
622
+ fullName: String!
623
+ website: String
624
+ verified: Boolean!
625
+ logo: AWSS3File
626
+ country: Country
627
+ sport: Sport
628
+ }
629
+
630
+ type MembershipOrganization {
631
+ _id: String!
632
+ shortName: String
633
+ acronym: String
634
+ fullName: String!
635
+ website: String
636
+ verified: Boolean!
637
+ logo: AWSS3File
638
+ country: Country
639
+ sport: Sport
640
+ memberships: [AthleteMembership!]
641
+ }
642
+
643
+ type AthleteMembership {
644
+ _id: String!
645
+ organization: MembershipOrganizationReference!
646
+ athlete: AthleteReference!
647
+ membershipNumber: String
648
+ membershipType: String
649
+ issueDate: DateTime
650
+ expirationDate: DateTime
651
+ }
652
+
653
+ type NewsLink {
654
+ _id: String!
655
+ title: String!
656
+ url: String!
657
+ abstract: String
658
+ }
659
+
660
+ type Channel {
661
+ _id: String!
662
+ type: String!
663
+ handle: String
664
+ url: String!
665
+ linked: Boolean!
666
+ }
667
+
668
+ type AthletePreferences {
669
+ _id: String!
670
+ showProfileHelper: Boolean!
671
+ }
672
+
673
+ type FundRaisingCampaign {
674
+ _id: String!
675
+ athlete: AthleteReference!
676
+ budgetMode: String!
677
+ status: String!
678
+ title: String!
679
+ motivation: String
680
+ website: String
681
+ fundsRequired: Float!
682
+ initialFundsObtained: Float!
683
+ fundsObtained: Float!
684
+ location: WorldLocation
685
+ endingDate: DateTime!
686
+ budget: Budget
687
+ competitions: [AthleteCompetition!]
688
+ }
689
+
690
+ type AthleteReference {
691
+ _id: String!
692
+ firstName: String!
693
+ lastName: String!
694
+ screenName: String
695
+ dob: DateTime
696
+ lgbt: Boolean
697
+ competitionGender: String
698
+ country: Country
699
+ location: WorldLocation
700
+ trainer: String
701
+ trainerUrl: String
702
+ followStats: FollowStats
703
+ mainSport: Sport!
704
+ mainSportLevel: SportLevel!
705
+ scores: VtxScores!
706
+ rankings: AthleteRankings
707
+ totalUpcomingCompetitions: Float
708
+ totalPastCompetitions: Float
709
+ profilePicture: AWSS3File
710
+ cardPicture: AWSS3File
711
+ aboutMe: String
712
+ preferences: AthletePreferences!
713
+ }
714
+
715
+ type Athlete {
716
+ _id: String!
717
+ firstName: String!
718
+ lastName: String!
719
+ screenName: String
720
+ dob: DateTime
721
+ lgbt: Boolean
722
+ competitionGender: String
723
+ country: Country
724
+ location: WorldLocation
725
+ trainer: String
726
+ trainerUrl: String
727
+ followStats: FollowStats
728
+ mainSport: Sport!
729
+ mainSportLevel: SportLevel!
730
+ scores: VtxScores!
731
+ rankings: AthleteRankings
732
+ totalUpcomingCompetitions: Float
733
+ totalPastCompetitions: Float
734
+ profilePicture: AWSS3File
735
+ cardPicture: AWSS3File
736
+ aboutMe: String
737
+ preferences: AthletePreferences!
738
+ allSports: [Sport!]
739
+ teams: [Team!]
740
+ sponsorBrands: [Brand!]
741
+ competitions: [AthleteCompetition!]
742
+ affiliations: [AthleteMembership!]
743
+ newsLinks: [NewsLink!]
744
+ channels: [Channel!]
745
+ currentCampaign: FundRaisingCampaign
746
+ fundingCampaigns: [FundRaisingCampaign!]
747
+ }
748
+
749
+ type SponsorAthleteInvitation {
750
+ _id: String!
751
+ name: String
752
+ email: String!
753
+ dateSent: DateTime!
754
+ sponsor: Sponsor!
755
+ magicLink: MagicLink!
756
+ brand: Brand
757
+ status: String!
758
+ }
759
+
760
+ type StravaToken {
761
+ token_type: String!
762
+ expires_at: String!
763
+ refresh_token: String!
764
+ access_token: String!
765
+ }
766
+
767
+ type EditValueResponse {
768
+ field: String!
769
+ oldValue: String
770
+ newValue: String
771
+ changed: Boolean!
772
+ }
773
+
774
+ type ErrorType {
775
+ code: Float!
776
+ message: String!
777
+ }
778
+
779
+ type DeleteSingleValueResponse {
780
+ idToDelete: String!
781
+ deleted: Boolean!
782
+ failureReason: ErrorType
783
+ }
784
+
785
+ type SortOrder {
786
+ sortField: String!
787
+ order: String!
788
+ }
789
+
790
+ type CursorPaginationResponse {
791
+ sort: SortOrder
792
+ initialCursorId: String
793
+ nextCursorId: String
794
+ initialCursorValue: String
795
+ nextCursorValue: String
796
+ limit: Float!
797
+ retrieved: Float!
798
+ isLastPage: Boolean!
799
+ }
800
+
801
+ type AthleteQueryResponse {
802
+ athletes: [Athlete!]!
803
+ cursor: CursorPaginationResponse!
804
+ }
805
+
806
+ type UserImages {
807
+ profilePictureUrl: String
808
+ cardPictureUrl: String
809
+ bannerPictureUrl: String
810
+ }
811
+
812
+ type DeleteValuesResponse {
813
+ deleted: [String!]!
814
+ failedToDelete: [String!]!
815
+ failureReason: [ErrorType!]!
816
+ result: String!
817
+ }
818
+
819
+ input CreateVerificationCodeDto {
820
+ type: String
821
+ recipient: String
822
+ expiresTime: Float = 10
823
+ expiresUnit: String = "MINUTES"
824
+ data: String
825
+ }
826
+
827
+ input VerifyCodeDto {
828
+ codeId: String!
829
+ enteredCodeValue: String!
830
+ type: String
831
+ }
832
+
833
+ input AthleteInvitationDto {
834
+ email: String!
835
+ name: String
836
+ sender: String
837
+ brandId: String
838
+ }
839
+
840
+ input InviteAthletesDto {
841
+ language: String = "en"
842
+ invitations: [AthleteInvitationDto!]!
843
+ }
844
+
845
+ input CompetitionResultDto {
846
+ resultType: String!
847
+ position: Float
848
+ score: String
849
+ finishTimeMS: Float
850
+ resultWebLink: String
851
+ }
852
+
853
+ input SetCompetitionResultDto {
854
+ resultType: String!
855
+ position: Float
856
+ score: String
857
+ finishTimeMS: Float
858
+ resultWebLink: String
859
+ competitionId: String!
860
+ }
861
+
862
+ input CreateAthleteCompetitionDto {
863
+ event: String!
864
+ date: DateTime!
865
+ eventWebsite: String
866
+ competitionNumber: String
867
+ result: CompetitionResultDto
868
+ cityId: String
869
+ }
870
+
871
+ input CreateAthleteCompetitionForDto {
872
+ event: String!
873
+ date: DateTime!
874
+ eventWebsite: String
875
+ competitionNumber: String
876
+ result: CompetitionResultDto
877
+ cityId: String
878
+ loginEmail: String!
879
+ }
880
+
881
+ input CursorPositionDto {
882
+ cursorId: String!
883
+ cursorFieldValue: String!
884
+ }
885
+
886
+ input SortCriteriaDto {
887
+ sortField: String!
888
+ order: String! = "ASC"
889
+ }
890
+
891
+ input CursorPaginationDto {
892
+ sortCriteria: SortCriteriaDto
893
+ limit: Float = 25
894
+ cursorPosition: CursorPositionDto
895
+ }
896
+
897
+ input DeleteSingleValueDto {
898
+ idToDelete: String!
899
+ }
900
+
901
+ input FundCampaignFilterDto {
902
+ campaignTitle: String
903
+ status: String
904
+ minCompletion: Float
905
+ maxCompletion: Float
906
+ minFundsRequired: Float
907
+ maxFundsRequired: Float
908
+ minEndingDate: DateTime
909
+ maxEndingDate: DateTime
910
+ competitions: [String!]
911
+ cities: [String!]
912
+ states: [String!]
913
+ countries: [String!]
914
+ }
915
+
916
+ input AthleteFilterDto {
917
+ name: String
918
+ cities: [String!]
919
+ states: [String!]
920
+ countries: [String!]
921
+ teams: [String!]
922
+ currentCampaign: FundCampaignFilterDto
923
+ sports: [String!]
924
+ mainSportOnly: Boolean = true
925
+ gender: String
926
+ minAge: Float
927
+ maxAge: Float
928
+ minDob: DateTime
929
+ maxDob: DateTime
930
+ minVTXScore: Float
931
+ maxVTXScore: Float
932
+ minSocialScore: Float
933
+ maxSocialScore: Float
934
+ minTrainingScore: Float
935
+ maxTrainingScore: Float
936
+ minPerformanceScore: Float
937
+ maxPerformanceScore: Float
938
+ }
939
+
940
+ input AthleteQueryDto {
941
+ cursor: CursorPaginationDto
942
+ filters: AthleteFilterDto
943
+ }
944
+
945
+ input QualificationDto {
946
+ type: String!
947
+ }
948
+
949
+ input AgeQualificationDto {
950
+ type: String!
951
+ value: Float!
952
+ operator: String!
953
+ }
954
+
955
+ input GenderQualificationDto {
956
+ type: String!
957
+ operator: String!
958
+ values: [String!]!
959
+ }
960
+
961
+ input NationalityQualificationDto {
962
+ type: String!
963
+ operator: String!
964
+ countries: [String!]!
965
+ }
966
+
967
+ input ScoreQualificationDto {
968
+ type: String!
969
+ scoreType: String!
970
+ operator: String!
971
+ value: Float!
972
+ }
973
+
974
+ input LocationQualificationDto {
975
+ type: String!
976
+ operator: String!
977
+ countries: [String!]!
978
+ states: [String!]!
979
+ cities: [String!]!
980
+ }
981
+
982
+ input DistanceQualificationDto {
983
+ type: String!
984
+ maxDistance: Float!
985
+ latitude: Float
986
+ longitude: Float
987
+ cityId: String
988
+ }
989
+
990
+ input SportsQualificationDto {
991
+ type: String!
992
+ sports: [String!]!
993
+ operator: String!
994
+ }
995
+
996
+ input SportsLevelQualificationDto {
997
+ type: String!
998
+ operator: String!
999
+ level: String!
1000
+ }
1001
+
1002
+ input RegisterUserDto {
1003
+ email: String!
1004
+ password: String!
1005
+ inviteCode: String
1006
+ }
1007
+
1008
+ input DeleteValuesDto {
1009
+ idsToDelete: [String!]!
1010
+ allOrNone: Boolean = true
1011
+ }
1012
+
1013
+ input BudgetItemDto {
1014
+ quantity: Float!
1015
+ concept: String!
1016
+ itemCost: Float!
1017
+ }
1018
+
1019
+ input CreateBudgetItemDto {
1020
+ quantity: Float!
1021
+ concept: String!
1022
+ itemCost: Float!
1023
+ budgetId: String!
1024
+ }
1025
+
1026
+ input CreateBudgetDto {
1027
+ initialFunds: Float = 0
1028
+ items: [BudgetItemDto!]
1029
+ }
1030
+
1031
+ input CreateCompetitionBudgetDto {
1032
+ initialFunds: Float = 0
1033
+ items: [BudgetItemDto!]
1034
+ athleteCompetitionId: String!
1035
+ }
1036
+
1037
+ input CreateFundingCampaignDto {
1038
+ budgetMode: String!
1039
+ title: String!
1040
+ motivation: String!
1041
+ website: String
1042
+ fundsRequired: Float!
1043
+ initialFundsObtained: Float! = 0
1044
+ cityId: String
1045
+ endingDate: DateTime!
1046
+ budget: CreateBudgetDto
1047
+ competitionBudgets: [CreateCompetitionBudgetDto!]
1048
+ competitionIds: [String!]
1049
+ }
1050
+
1051
+ input CreateFundingCampaignForDto {
1052
+ budgetMode: String!
1053
+ title: String!
1054
+ motivation: String!
1055
+ website: String
1056
+ fundsRequired: Float!
1057
+ initialFundsObtained: Float! = 0
1058
+ cityId: String
1059
+ endingDate: DateTime!
1060
+ budget: CreateBudgetDto
1061
+ competitionBudgets: [CreateCompetitionBudgetDto!]
1062
+ competitionIds: [String!]
1063
+ loginEmail: String!
1064
+ }
1065
+
1066
+ input CreateMembershipOrganizationDto {
1067
+ shortName: String!
1068
+ acronym: String
1069
+ fullName: String!
1070
+ website: String
1071
+ logo: AWSS3UploadedFileDto
1072
+ countryId: String
1073
+ sportId: String
1074
+ }
1075
+
1076
+ input AWSS3UploadedFileDto {
1077
+ key: String!
1078
+ useType: String!
1079
+ contentType: String!
1080
+ originalFileName: String
1081
+ fileSize: Float
1082
+ }
1083
+
1084
+ input CreateAthleteMembershipDto {
1085
+ organizationId: String!
1086
+ athleteId: String!
1087
+ membershipNumber: String
1088
+ membershipType: String
1089
+ issueDate: DateTime
1090
+ expirationDate: DateTime
87
1091
  }
88
1092
 
89
1093
  type Query {
90
- tenant(_id: String!): Tenant!
91
- tenantByEmail(email: String!): Tenant!
92
- tenants: [Tenant!]!
1094
+ findTenantById(_id: String!): Tenant!
1095
+ findTenantByEmail(email: String!, domainId: String!): Tenant!
1096
+ getTenants: [Tenant!]!
93
1097
  isTenantUriAvailable(tenant_uri: String!): UriAvailableType!
94
- tenantApiKeys: [ApiKey!]!
95
- nontenantedUserById(_id: String!): User!
96
- nontenantedUserByEmail(email: String!): User!
1098
+ findUserById(_id: String!): User!
1099
+ findUserByEmail(email: String!): User!
1100
+ validateUserCredentials(username: String!, password: String!): User!
1101
+ getUploadUrl(input: AWSS3GetUploadDto!): AWSS3UploadUrl!
97
1102
  industries: [Industry!]!
98
1103
  findIndustryById(industryId: String!): Industry!
99
1104
  brands: [Brand!]!
1105
+ getBrandByName(name: String!, translations: Boolean!): Brand!
1106
+ getBrandTranslation(brandId: String!, language: String!): BrandTranslation!
100
1107
  existsValidSponsorForEmail(loginEmail: String!): Sponsor!
101
1108
  sponsors: [Sponsor!]!
1109
+ findSponsorAthleteInvitation(input: FindSponsorAthleteInvitationDto!): SponsorAthleteInvitation!
1110
+ getAthletes: [Athlete!]!
1111
+ queryAthleteFundingCampaigns(input: AthleteQueryDto!): AthleteQueryResponse!
1112
+ searchAthletes(searchString: String!): [Athlete!]!
1113
+ findAthleteById(athleteId: String!): Athlete!
1114
+ findAthleteForUser(loginEmail: String!): Athlete!
1115
+ getRecommendedAthletes(loginEmail: String!): [Athlete!]!
1116
+ getSponsorAthletesForTenant: [Athlete!]!
1117
+ getAthleteCompetitions(input: GetAthleteCompetitionsDto!): [AthleteCompetition!]!
1118
+ getAthleteMemberships(athleteId: String!): [AthleteMembership!]!
1119
+ getSports: [Sport!]!
1120
+ findSportById(sportId: String!): Sport!
1121
+ getSportLevels: [SportLevel!]!
1122
+ getPublicSponsorships: [Sponsorship!]!
1123
+ getTenantSponsorships: [Sponsorship!]!
1124
+ getCountries: [Country!]!
1125
+ getCountryStates(countryId: String!): [State!]!
1126
+ getStateCities(stateId: String!): [City!]!
1127
+ findCitiesStartingWith(text: String!): [City!]!
1128
+ findCityById(cityId: String!): City!
1129
+ findVtxUser(input: FindVtxUserDto!): User!
1130
+ validateUserCredentialsVtx(username: String!, password: String!): User!
1131
+ getUserImagesFromEmail(loginEmail: String!): UserImages!
1132
+ getStravaLoginUrl: String!
1133
+ getSportsEvents(input: GetSportEventsDto!): [SportsEvent!]!
1134
+ getMembershipOrganizations: [MembershipOrganizationReference!]!
1135
+ }
1136
+
1137
+ input AWSS3GetUploadDto {
1138
+ useType: String!
1139
+ name: String
1140
+ }
1141
+
1142
+ input FindSponsorAthleteInvitationDto {
1143
+ code: String!
1144
+ type: String
1145
+ }
1146
+
1147
+ input GetAthleteCompetitionsDto {
1148
+ athleteId: String!
1149
+ fromInclusive: DateTime
1150
+ toExclusive: DateTime
1151
+ }
1152
+
1153
+ input FindVtxUserDto {
1154
+ loginEmail: String!
1155
+ }
1156
+
1157
+ input GetSportEventsDto {
1158
+ matchString: String
102
1159
  }
103
1160
 
104
1161
  type Mutation {
105
- createTenant(tenant: CreateTenantInput!): Tenant!
106
- createTenantApiKey(newKeyInfo: CreateApiKeyInput!): ApiKey!
107
- createTenantApiKeyWithSystemKey(newKeyInfo: CreateApiKeyInput!): ApiKeyWithValue!
108
- createTenantWithLogin(tenant: CreateTenantInput!): TenantWithUserLogin!
109
- createTenantUserToken(requestTokenDto: CreateTenantUserTokenDto!): TenantUserTokenWithInfo!
110
- createTenantUserTokenFromEmailAndUri(requestTokenInfoDto: CreateTenantUserTokenFromEmailAndUriDto!): TenantUserTokenWithInfo!
111
- createNonTenantedUserWithLogin(user: CreateActiveUserInput!): UserWithToken!
112
- createNonTenantUserTokenFromEmail(email: String!): UserToken!
1162
+ registerNewDomainTenant(tenant: CreateTenantInput!): Tenant!
1163
+ registerNewDomainTenantWithLogin(tenant: CreateTenantInput!): TenantWithUserLogin!
1164
+ createUserAndLogin(user: CreateActiveUserInput!): UserWithToken!
1165
+ loginUserFromEmail(email: String!, loginMethod: String!): UserToken!
1166
+ loginUserFromCredentials(username: String!, password: String!): UserWithToken!
1167
+ registerUserToDomainFromEmail(input: RegisterUserToDomainFromEmailInput!): User!
1168
+ refreshToken(dto: RefreshTokenInput!): UserToken!
1169
+ deleteUploadedUseTypeFile(input: AWSS3DeleteUseTypeFileDto!): AWSS3CallResult!
1170
+ deleteUploadedBucketFile(input: AWSS3DeleteBucketFileDto!): AWSS3CallResult!
1171
+ registerS3UploadedFile(input: AWSS3UploadedFileDto!): AWSS3File!
113
1172
  createIndustry(input: CreateIndustryDto!): Industry!
114
1173
  createBrand(input: CreateBrandDto!): Brand!
115
1174
  registerSponsor(input: RegisterSponsorInput!): Sponsor!
116
1175
  createSponsor(input: CreateSponsorDto!): Sponsor!
1176
+ sendAthleteInvitations(input: InviteAthletesDto!): [SponsorAthleteInvitation!]!
1177
+ registerAthlete(input: RegisterAthleteDto!): Athlete!
1178
+ editProfileValue(input: EditValueDto!): EditValueResponse!
1179
+ addAthleteCompetition(input: CreateAthleteCompetitionDto!): AthleteCompetition!
1180
+ deleteAthleteCompetition(input: DeleteSingleValueDto!): DeleteSingleValueResponse!
1181
+ createSport(input: CreateSportDto!): Sport!
1182
+ updateSport(input: UpdateSportDto!): Sport!
1183
+ createSportLevel(input: CreateSportLevelDto!): SportLevel!
1184
+ createSponsorship(input: CreateSponsorshipDto!): Sponsorship!
1185
+ createCountry(input: CreateCountryDto!): Country!
1186
+ createState(input: CreateStateDto!): State!
1187
+ createCity(input: CreateCityDto!): City!
1188
+ preRegisterAthleteUser(input: RegisterUserDto!): VerificationCode!
1189
+ confirmAthleteUserRegistrationAndLogin(input: VerifyCodeDto!): UserWithToken!
1190
+ confirmAthleteUserRegistration(input: VerifyCodeDto!): User!
1191
+ registerAthleteUser(input: RegisterUserDto!): User!
1192
+ registerSponsorUser(input: RegisterUserDto!): User!
1193
+ loginUserFromCredentialsVtx(username: String!, password: String!): UserWithToken!
1194
+ handleStravaCallback(data: RegisterStravaDto!): StravaToken!
1195
+ refreshStravaToken(input: String!): StravaToken!
1196
+ createSportsEvent(input: CreateSportEventDto!): SportsEvent!
1197
+ createFundingCampaign(input: CreateFundingCampaignDto!): FundRaisingCampaign!
1198
+ createMembershipOrganization(input: CreateMembershipOrganizationDto!): MembershipOrganizationReference!
1199
+ createAthleteMembershipAffilation(input: CreateAthleteMembershipDto!): AthleteMembership!
117
1200
  }
118
1201
 
119
1202
  input CreateTenantInput {
120
1203
  name: String!
121
1204
  email: String!
122
1205
  tenant_uri: String!
1206
+ domain: String!
1207
+ }
1208
+
1209
+ input CreateActiveUserInput {
1210
+ loginEmail: String!
1211
+ password: String
1212
+ loginMethod: String
123
1213
  }
124
1214
 
125
- input CreateApiKeyInput {
126
- keyName: String!
127
- readAccess: Boolean!
128
- writeAccess: Boolean!
1215
+ input RegisterUserToDomainFromEmailInput {
1216
+ email: String!
1217
+ domainId: String!
1218
+ tenantId: String
1219
+ createUserIfNotExist: Boolean = false
129
1220
  }
130
1221
 
131
- input CreateTenantUserTokenDto {
132
- requestToken: String!
1222
+ input RefreshTokenInput {
1223
+ refreshToken: String!
133
1224
  }
134
1225
 
135
- input CreateTenantUserTokenFromEmailAndUriDto {
136
- email: String!
137
- tenant_uri: String!
1226
+ input AWSS3DeleteUseTypeFileDto {
1227
+ name: String!
1228
+ useType: String!
138
1229
  }
139
1230
 
140
- input CreateActiveUserInput {
141
- loginEmail: String!
142
- password: String
1231
+ input AWSS3DeleteBucketFileDto {
1232
+ key: String!
1233
+ bucket: String!
1234
+ credentialsId: String
143
1235
  }
144
1236
 
145
1237
  input CreateIndustryDto {
@@ -149,6 +1241,21 @@ input CreateIndustryDto {
149
1241
  input CreateBrandDto {
150
1242
  name: String!
151
1243
  description: String
1244
+ slogan: String
1245
+ website: String
1246
+ logo: AWSS3UploadedFileDto
1247
+ banner: AWSS3UploadedFileDto
1248
+ translations: [BrandTranslationDto!]
1249
+ }
1250
+
1251
+ input BrandTranslationDto {
1252
+ brandId: String!
1253
+ language: String!
1254
+ name: String
1255
+ description: String
1256
+ slogan: String
1257
+ logo: AWSS3UploadedFileDto
1258
+ banner: AWSS3UploadedFileDto
152
1259
  }
153
1260
 
154
1261
  input RegisterSponsorInput {
@@ -167,4 +1274,166 @@ input RegisterSponsorInput {
167
1274
  input CreateSponsorDto {
168
1275
  name: String!
169
1276
  description: String
1277
+ }
1278
+
1279
+ input RegisterAthleteDto {
1280
+ email: String!
1281
+ firstName: String!
1282
+ lastName: String!
1283
+ screenName: String
1284
+ nationality: String!
1285
+ cityId: String!
1286
+ locLatitude: Float
1287
+ locLongitude: Float
1288
+ dateOfBirth: DateTime!
1289
+ lgbt: Boolean = false
1290
+ trainer: String
1291
+ trainerUrl: String
1292
+ aboutMe: String
1293
+ team: String
1294
+ gender: String!
1295
+ mainSport: String!
1296
+ mainSportLevel: String!
1297
+ profilePicture: AWSS3UploadedFileDto
1298
+ cardPicture: AWSS3UploadedFileDto
1299
+ }
1300
+
1301
+ input EditValueDto {
1302
+ field: String!
1303
+ newValue: String
1304
+ }
1305
+
1306
+ input CreateSportDto {
1307
+ name: String!
1308
+ resultType: String = "POSITION"
1309
+ }
1310
+
1311
+ input UpdateSportDto {
1312
+ _id: String!
1313
+ name: String!
1314
+ }
1315
+
1316
+ input CreateSportLevelDto {
1317
+ _id: String!
1318
+ label: String!
1319
+ index: Float!
1320
+ translations: [CreateSportLevelTranslationDto!]
1321
+ }
1322
+
1323
+ input CreateSportLevelTranslationDto {
1324
+ language: String!
1325
+ label: String!
1326
+ }
1327
+
1328
+ input CreateSponsorshipDto {
1329
+ title: String!
1330
+ brandId: String!
1331
+ description: String
1332
+ cashValue: Float = 0
1333
+ otherValue: Float = 0
1334
+ banner: AWSS3UploadedFileDto
1335
+ criteria: AthleteCriteriaDto
1336
+ deadline: DateTime
1337
+ startDate: DateTime
1338
+ duration: DurationDto!
1339
+ sponsorshipItems: [SponsorshipItemDto!]
1340
+ commitments: [SponsorshipCommitmentDto!]
1341
+ terms: String
1342
+ published: Boolean = true
1343
+ isPrivate: Boolean = false
1344
+ translations: [SponsorshipTranslationDto!]
1345
+ }
1346
+
1347
+ input AthleteCriteriaDto {
1348
+ _id: String!
1349
+ label: String
1350
+ qualificationsBag: QualificationsBagDto
1351
+ }
1352
+
1353
+ input QualificationsBagDto {
1354
+ ageQualifications: [AgeQualificationDto!]
1355
+ genderQualifications: [GenderQualificationDto!]
1356
+ scoreQualifications: [ScoreQualificationDto!]
1357
+ locationQualifications: [LocationQualificationDto!]
1358
+ nationalityQualifications: [NationalityQualificationDto!]
1359
+ distanceQualifications: [DistanceQualificationDto!]
1360
+ sportsQualifications: [SportsQualificationDto!]
1361
+ levelQualifications: [SportsLevelQualificationDto!]
1362
+ }
1363
+
1364
+ input DurationDto {
1365
+ length: Float! = 1
1366
+ unit: String! = "YEARS"
1367
+ }
1368
+
1369
+ input SponsorshipItemDto {
1370
+ _id: String!
1371
+ quantity: Float! = 1
1372
+ title: String!
1373
+ value: Float! = 0
1374
+ }
1375
+
1376
+ input SponsorshipCommitmentDto {
1377
+ _id: String!
1378
+ title: String!
1379
+ details: String
1380
+ hashTags: [String!]
1381
+ media: String!
1382
+ actionType: String!
1383
+ frequency: Float = 1
1384
+ periodicity: String!
1385
+ }
1386
+
1387
+ input SponsorshipTranslationDto {
1388
+ sponsorshipId: String!
1389
+ language: String!
1390
+ title: String
1391
+ description: String
1392
+ banner: AWSS3UploadedFileDto
1393
+ terms: String
1394
+ }
1395
+
1396
+ input CreateCountryDto {
1397
+ _id: String!
1398
+ name: String!
1399
+ }
1400
+
1401
+ input CreateStateDto {
1402
+ _id: String!
1403
+ name: String!
1404
+ countryId: String!
1405
+ }
1406
+
1407
+ input CreateCityDto {
1408
+ _id: String!
1409
+ cityName: String!
1410
+ cityNameLocalized: String!
1411
+ lat: Float!
1412
+ lng: Float!
1413
+ stateId: String!
1414
+ timezone: String!
1415
+ city_alt: String
1416
+ iso3: String
1417
+ admin_type: String
1418
+ capital: String
1419
+ density: Float
1420
+ population: Float
1421
+ population_proper: Float
1422
+ ranking: Float
1423
+ same_name: String
1424
+ }
1425
+
1426
+ input RegisterStravaDto {
1427
+ idAthlete: String!
1428
+ code: String!
1429
+ }
1430
+
1431
+ input CreateSportEventDto {
1432
+ name: String!
1433
+ cityId: String
1434
+ sportId: String
1435
+ startDate: DateTime!
1436
+ endDate: DateTime
1437
+ website: String
1438
+ banner: AWSS3UploadedFileDto
170
1439
  }