@vertikalx/vtx-backend-client 1.0.0-dev.5 → 1.0.0-dev.50

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.
@@ -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,92 +79,792 @@ 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
73
298
  description: String
74
299
  approved: Boolean!
75
300
  published: Boolean!
301
+ logo: AWSS3File
302
+ banner: AWSS3File
303
+ stats: BrandStats
304
+ operatorIds: [String!]
305
+ translations: [BrandTranslation!]
76
306
  }
77
307
 
78
- type Sponsor {
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 {
79
319
  _id: String!
80
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!
81
348
  }
82
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
+
83
392
  type Industry {
84
393
  _id: String!
85
394
  name: String!
86
395
  }
87
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
409
+ description: String
410
+ approved: Boolean!
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!
420
+ }
421
+
422
+ type Sponsor {
423
+ _id: String!
424
+ name: String!
425
+ description: String!
426
+ tenant: Tenant!
427
+ industry: Industry
428
+ stats: SponsorStats
429
+ brands: [SponsorBrand!]
430
+ sponsorships: [Sponsorship!]
431
+ approved: Boolean!
432
+ }
433
+
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 SportsEvent {
561
+ _id: String!
562
+ name: String!
563
+ eventWebSite: String
564
+ startDate: DateTime!
565
+ endDate: DateTime
566
+ verified: Boolean!
567
+ banner: AWSS3File
568
+ }
569
+
570
+ type AthleteCompetitionResult {
571
+ _id: String!
572
+ type: String!
573
+ position: Float
574
+ score: String
575
+ timems: Float
576
+ resultWebLink: String
577
+ }
578
+
579
+ type AthleteCompetition {
580
+ _id: String!
581
+ event: SportsEvent!
582
+ eventName: String!
583
+ date: DateTime!
584
+ result: AthleteCompetitionResult
585
+ }
586
+
587
+ type WorldLocation {
588
+ _id: String!
589
+ userProvidedLatitude: Float
590
+ userProvidedLongitude: Float
591
+ cityNameGeocode: String
592
+ stateNameGeocode: String
593
+ countryIso2CodeGeocode: String
594
+ timeZoneGeocode: String
595
+ latitudeGeocode: Float
596
+ longitudeGeocode: Float
597
+ city: City
598
+ }
599
+
600
+ type Athlete {
601
+ _id: String!
602
+ firstName: String!
603
+ lastName: String!
604
+ screenName: String
605
+ dob: DateTime
606
+ lgbt: Boolean
607
+ competitionGender: String
608
+ country: Country
609
+ location: WorldLocation
610
+ trainer: String
611
+ trainerUrl: String
612
+ followStats: FollowStats
613
+ mainSport: Sport!
614
+ mainSportLevel: SportLevel!
615
+ scores: VtxScores!
616
+ rankings: AthleteRankings
617
+ allSports: [Sport!]
618
+ teams: [Team!]
619
+ sponsorBrands: [Brand!]
620
+ competitions: [AthleteCompetition!]
621
+ totalUpcomingCompetitions: Float
622
+ totalPastCompetitions: Float
623
+ profilePicture: AWSS3File
624
+ cardPicture: AWSS3File
625
+ }
626
+
627
+ type SponsorAthleteInvitation {
628
+ _id: String!
629
+ name: String
630
+ email: String!
631
+ dateSent: DateTime!
632
+ sponsor: Sponsor!
633
+ magicLink: MagicLink!
634
+ brand: Brand
635
+ status: String!
636
+ }
637
+
638
+ type StravaToken {
639
+ token_type: String!
640
+ expires_at: String!
641
+ refresh_token: String!
642
+ access_token: String!
643
+ }
644
+
645
+ type UserImages {
646
+ profilePictureUrl: String
647
+ cardPictureUrl: String
648
+ bannerPictureUrl: String
649
+ }
650
+
651
+ input CreateVerificationCodeDto {
652
+ type: String
653
+ recipient: String
654
+ expiresTime: Float = 10
655
+ expiresUnit: String = "MINUTES"
656
+ data: String
657
+ }
658
+
659
+ input VerifyCodeDto {
660
+ codeId: String!
661
+ enteredCodeValue: String!
662
+ type: String
663
+ }
664
+
665
+ input AthleteInvitationDto {
666
+ email: String!
667
+ name: String
668
+ sender: String
669
+ brandId: String
670
+ }
671
+
672
+ input InviteAthletesDto {
673
+ language: String = "en"
674
+ invitations: [AthleteInvitationDto!]!
675
+ }
676
+
677
+ input QualificationDto {
678
+ type: String!
679
+ }
680
+
681
+ input AgeQualificationDto {
682
+ type: String!
683
+ value: Float!
684
+ operator: String!
685
+ }
686
+
687
+ input GenderQualificationDto {
688
+ type: String!
689
+ operator: String!
690
+ values: [String!]!
691
+ }
692
+
693
+ input NationalityQualificationDto {
694
+ type: String!
695
+ operator: String!
696
+ countries: [String!]!
697
+ }
698
+
699
+ input ScoreQualificationDto {
700
+ type: String!
701
+ scoreType: String!
702
+ operator: String!
703
+ value: Float!
704
+ }
705
+
706
+ input LocationQualificationDto {
707
+ type: String!
708
+ operator: String!
709
+ countries: [String!]!
710
+ states: [String!]!
711
+ cities: [String!]!
712
+ }
713
+
714
+ input DistanceQualificationDto {
715
+ type: String!
716
+ maxDistance: Float!
717
+ latitude: Float
718
+ longitude: Float
719
+ cityId: String
720
+ }
721
+
722
+ input SportsQualificationDto {
723
+ type: String!
724
+ sports: [String!]!
725
+ operator: String!
726
+ }
727
+
728
+ input SportsLevelQualificationDto {
729
+ type: String!
730
+ operator: String!
731
+ level: String!
732
+ }
733
+
734
+ input RegisterUserDto {
735
+ email: String!
736
+ password: String!
737
+ inviteCode: String
738
+ }
739
+
88
740
  type Query {
89
- tenant(_id: String!): Tenant!
90
- tenantByEmail(email: String!): Tenant!
91
- tenants: [Tenant!]!
741
+ findTenantById(_id: String!): Tenant!
742
+ findTenantByEmail(email: String!, domainId: String!): Tenant!
743
+ getTenants: [Tenant!]!
92
744
  isTenantUriAvailable(tenant_uri: String!): UriAvailableType!
93
- tenantApiKeys: [ApiKey!]!
94
- nontenantedUserById(_id: String!): User!
95
- nontenantedUserByEmail(email: String!): User!
745
+ findUserById(_id: String!): User!
746
+ findUserByEmail(email: String!): User!
747
+ validateUserCredentials(username: String!, password: String!): User!
748
+ getUploadUrl(input: AWSS3GetUploadDto!): AWSS3UploadUrl!
96
749
  industries: [Industry!]!
97
750
  findIndustryById(industryId: String!): Industry!
98
751
  brands: [Brand!]!
752
+ getBrandByName(name: String!, translations: Boolean!): Brand!
753
+ getBrandTranslation(brandId: String!, language: String!): BrandTranslation!
99
754
  existsValidSponsorForEmail(loginEmail: String!): Sponsor!
755
+ sponsors: [Sponsor!]!
756
+ findSponsorAthleteInvitation(input: FindSponsorAthleteInvitationDto!): SponsorAthleteInvitation!
757
+ getAthletes: [Athlete!]!
758
+ searchAthletes(searchString: String!): [Athlete!]!
759
+ findAthleteById(athleteId: String!): Athlete!
760
+ findAthleteForUser(loginEmail: String!): Athlete!
761
+ getRecommendedAthletes(loginEmail: String!): [Athlete!]!
762
+ getSponsorAthletesForTenant: [Athlete!]!
763
+ getSports: [Sport!]!
764
+ findSportById(sportId: String!): Sport!
765
+ getSportLevels: [SportLevel!]!
766
+ getPublicSponsorships: [Sponsorship!]!
767
+ getTenantSponsorships: [Sponsorship!]!
768
+ getCountries: [Country!]!
769
+ getCountryStates(countryId: String!): [State!]!
770
+ getStateCities(stateId: String!): [City!]!
771
+ findCitiesStartingWith(text: String!): [City!]!
772
+ findCityById(cityId: String!): City!
773
+ findVtxUser(input: FindVtxUserDto!): User!
774
+ validateUserCredentialsVtx(username: String!, password: String!): User!
775
+ getUserImagesFromEmail(loginEmail: String!): UserImages!
776
+ getStravaLoginUrl: String!
777
+ }
778
+
779
+ input AWSS3GetUploadDto {
780
+ useType: String!
781
+ name: String
782
+ }
783
+
784
+ input FindSponsorAthleteInvitationDto {
785
+ code: String!
786
+ type: String
787
+ }
788
+
789
+ input FindVtxUserDto {
790
+ loginEmail: String!
100
791
  }
101
792
 
102
793
  type Mutation {
103
- createTenant(tenant: CreateTenantInput!): Tenant!
104
- createTenantApiKey(newKeyInfo: CreateApiKeyInput!): ApiKey!
105
- createTenantApiKeyWithSystemKey(newKeyInfo: CreateApiKeyInput!): ApiKeyWithValue!
106
- createTenantWithLogin(tenant: CreateTenantInput!): TenantWithUserLogin!
107
- createTenantUserToken(requestTokenDto: CreateTenantUserTokenDto!): TenantUserTokenWithInfo!
108
- createTenantUserTokenFromEmailAndUri(requestTokenInfoDto: CreateTenantUserTokenFromEmailAndUriDto!): TenantUserTokenWithInfo!
109
- createNonTenantedUserWithLogin(user: CreateActiveUserInput!): UserWithToken!
110
- createNonTenantUserTokenFromEmail(email: String!): UserToken!
794
+ registerNewDomainTenant(tenant: CreateTenantInput!): Tenant!
795
+ registerNewDomainTenantWithLogin(tenant: CreateTenantInput!): TenantWithUserLogin!
796
+ createUserAndLogin(user: CreateActiveUserInput!): UserWithToken!
797
+ loginUserFromEmail(email: String!, loginMethod: String!): UserToken!
798
+ loginUserFromCredentials(username: String!, password: String!): UserWithToken!
799
+ registerUserToDomainFromEmail(input: RegisterUserToDomainFromEmailInput!): User!
800
+ refreshToken(dto: RefreshTokenInput!): UserToken!
801
+ deleteUploadedUseTypeFile(input: AWSS3DeleteUseTypeFileDto!): AWSS3CallResult!
802
+ deleteUploadedBucketFile(input: AWSS3DeleteBucketFileDto!): AWSS3CallResult!
803
+ registerS3UploadedFile(input: AWSS3UploadedFileDto!): AWSS3File!
111
804
  createIndustry(input: CreateIndustryDto!): Industry!
112
805
  createBrand(input: CreateBrandDto!): Brand!
113
806
  registerSponsor(input: RegisterSponsorInput!): Sponsor!
807
+ createSponsor(input: CreateSponsorDto!): Sponsor!
808
+ sendAthleteInvitations(input: InviteAthletesDto!): [SponsorAthleteInvitation!]!
809
+ registerAthlete(input: RegisterAthleteDto!): Athlete!
810
+ createSport(input: CreateSportDto!): Sport!
811
+ updateSport(input: UpdateSportDto!): Sport!
812
+ createSportLevel(input: CreateSportLevelDto!): SportLevel!
813
+ createSponsorship(input: CreateSponsorshipDto!): Sponsorship!
814
+ createCountry(input: CreateCountryDto!): Country!
815
+ createState(input: CreateStateDto!): State!
816
+ createCity(input: CreateCityDto!): City!
817
+ preRegisterAthleteUser(input: RegisterUserDto!): VerificationCode!
818
+ confirmAthleteUserRegistrationAndLogin(input: VerifyCodeDto!): UserWithToken!
819
+ confirmAthleteUserRegistration(input: VerifyCodeDto!): User!
820
+ registerAthleteUser(input: RegisterUserDto!): User!
821
+ registerSponsorUser(input: RegisterUserDto!): User!
822
+ loginUserFromCredentialsVtx(username: String!, password: String!): UserWithToken!
823
+ handleStravaCallback(data: RegisterStravaDto!): StravaToken!
824
+ refreshStravaToken(input: String!): StravaToken!
114
825
  }
115
826
 
116
827
  input CreateTenantInput {
117
828
  name: String!
118
829
  email: String!
119
830
  tenant_uri: String!
831
+ domain: String!
120
832
  }
121
833
 
122
- input CreateApiKeyInput {
123
- keyName: String!
124
- readAccess: Boolean!
125
- writeAccess: Boolean!
834
+ input CreateActiveUserInput {
835
+ loginEmail: String!
836
+ password: String
837
+ loginMethod: String
126
838
  }
127
839
 
128
- input CreateTenantUserTokenDto {
129
- requestToken: String!
840
+ input RegisterUserToDomainFromEmailInput {
841
+ email: String!
842
+ domainId: String!
843
+ tenantId: String
844
+ createUserIfNotExist: Boolean = false
130
845
  }
131
846
 
132
- input CreateTenantUserTokenFromEmailAndUriDto {
133
- email: String!
134
- tenant_uri: String!
847
+ input RefreshTokenInput {
848
+ refreshToken: String!
135
849
  }
136
850
 
137
- input CreateActiveUserInput {
138
- loginEmail: String!
139
- password: String
851
+ input AWSS3DeleteUseTypeFileDto {
852
+ name: String!
853
+ useType: String!
854
+ }
855
+
856
+ input AWSS3DeleteBucketFileDto {
857
+ key: String!
858
+ bucket: String!
859
+ credentialsId: String
860
+ }
861
+
862
+ input AWSS3UploadedFileDto {
863
+ key: String!
864
+ useType: String!
865
+ contentType: String!
866
+ originalFileName: String
867
+ fileSize: Float
140
868
  }
141
869
 
142
870
  input CreateIndustryDto {
@@ -146,6 +874,21 @@ input CreateIndustryDto {
146
874
  input CreateBrandDto {
147
875
  name: String!
148
876
  description: String
877
+ slogan: String
878
+ website: String
879
+ logo: AWSS3UploadedFileDto
880
+ banner: AWSS3UploadedFileDto
881
+ translations: [BrandTranslationDto!]
882
+ }
883
+
884
+ input BrandTranslationDto {
885
+ brandId: String!
886
+ language: String!
887
+ name: String
888
+ description: String
889
+ slogan: String
890
+ logo: AWSS3UploadedFileDto
891
+ banner: AWSS3UploadedFileDto
149
892
  }
150
893
 
151
894
  input RegisterSponsorInput {
@@ -159,4 +902,154 @@ input RegisterSponsorInput {
159
902
  operatorType: String!
160
903
  numberOfAthletes: String!
161
904
  brands: [String!]!
905
+ }
906
+
907
+ input CreateSponsorDto {
908
+ name: String!
909
+ description: String
910
+ }
911
+
912
+ input RegisterAthleteDto {
913
+ email: String!
914
+ firstName: String!
915
+ lastName: String!
916
+ screenName: String
917
+ nationality: String!
918
+ cityId: String!
919
+ locLatitude: Float
920
+ locLongitude: Float
921
+ dateOfBirth: DateTime!
922
+ lgbt: Boolean = false
923
+ trainer: String
924
+ trainerUrl: String
925
+ team: String
926
+ gender: String!
927
+ mainSport: String!
928
+ mainSportLevel: String!
929
+ profilePicture: AWSS3UploadedFileDto
930
+ cardPicture: AWSS3UploadedFileDto
931
+ }
932
+
933
+ input CreateSportDto {
934
+ name: String!
935
+ }
936
+
937
+ input UpdateSportDto {
938
+ _id: String!
939
+ name: String!
940
+ }
941
+
942
+ input CreateSportLevelDto {
943
+ _id: String!
944
+ label: String!
945
+ index: Float!
946
+ translations: [CreateSportLevelTranslationDto!]
947
+ }
948
+
949
+ input CreateSportLevelTranslationDto {
950
+ language: String!
951
+ label: String!
952
+ }
953
+
954
+ input CreateSponsorshipDto {
955
+ title: String!
956
+ brandId: String!
957
+ description: String
958
+ cashValue: Float = 0
959
+ otherValue: Float = 0
960
+ banner: AWSS3UploadedFileDto
961
+ criteria: AthleteCriteriaDto
962
+ deadline: DateTime
963
+ startDate: DateTime
964
+ duration: DurationDto!
965
+ sponsorshipItems: [SponsorshipItemDto!]
966
+ commitments: [SponsorshipCommitmentDto!]
967
+ terms: String
968
+ published: Boolean = true
969
+ isPrivate: Boolean = false
970
+ translations: [SponsorshipTranslationDto!]
971
+ }
972
+
973
+ input AthleteCriteriaDto {
974
+ _id: String!
975
+ label: String
976
+ qualificationsBag: QualificationsBagDto
977
+ }
978
+
979
+ input QualificationsBagDto {
980
+ ageQualifications: [AgeQualificationDto!]
981
+ genderQualifications: [GenderQualificationDto!]
982
+ scoreQualifications: [ScoreQualificationDto!]
983
+ locationQualifications: [LocationQualificationDto!]
984
+ nationalityQualifications: [NationalityQualificationDto!]
985
+ distanceQualifications: [DistanceQualificationDto!]
986
+ sportsQualifications: [SportsQualificationDto!]
987
+ levelQualifications: [SportsLevelQualificationDto!]
988
+ }
989
+
990
+ input DurationDto {
991
+ length: Float! = 1
992
+ unit: String! = "YEARS"
993
+ }
994
+
995
+ input SponsorshipItemDto {
996
+ _id: String!
997
+ quantity: Float! = 1
998
+ title: String!
999
+ value: Float! = 0
1000
+ }
1001
+
1002
+ input SponsorshipCommitmentDto {
1003
+ _id: String!
1004
+ title: String!
1005
+ details: String
1006
+ hashTags: [String!]
1007
+ media: String!
1008
+ actionType: String!
1009
+ frequency: Float = 1
1010
+ periodicity: String!
1011
+ }
1012
+
1013
+ input SponsorshipTranslationDto {
1014
+ sponsorshipId: String!
1015
+ language: String!
1016
+ title: String
1017
+ description: String
1018
+ banner: AWSS3UploadedFileDto
1019
+ terms: String
1020
+ }
1021
+
1022
+ input CreateCountryDto {
1023
+ _id: String!
1024
+ name: String!
1025
+ }
1026
+
1027
+ input CreateStateDto {
1028
+ _id: String!
1029
+ name: String!
1030
+ countryId: String!
1031
+ }
1032
+
1033
+ input CreateCityDto {
1034
+ _id: String!
1035
+ cityName: String!
1036
+ cityNameLocalized: String!
1037
+ lat: Float!
1038
+ lng: Float!
1039
+ stateId: String!
1040
+ timezone: String!
1041
+ city_alt: String
1042
+ iso3: String
1043
+ admin_type: String
1044
+ capital: String
1045
+ density: Float
1046
+ population: Float
1047
+ population_proper: Float
1048
+ ranking: Float
1049
+ same_name: String
1050
+ }
1051
+
1052
+ input RegisterStravaDto {
1053
+ idAthlete: String!
1054
+ code: String!
162
1055
  }