@vertikalx/vtx-backend-client 1.0.0-dev.3 → 1.0.0-dev.30

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 (95) hide show
  1. package/package.json +3 -2
  2. package/src/api/api-call-headers.d.ts +16 -0
  3. package/src/api/api-call-headers.js +20 -0
  4. package/src/api/api-call-headers.js.map +1 -0
  5. package/src/api/backend-response.d.ts +4 -0
  6. package/src/api/backend-response.js +3 -0
  7. package/src/api/backend-response.js.map +1 -0
  8. package/src/api/response-builder.d.ts +4 -0
  9. package/src/api/response-builder.js +63 -0
  10. package/src/api/response-builder.js.map +1 -0
  11. package/src/api/vtx-apikey-api.d.ts +6 -0
  12. package/src/api/vtx-apikey-api.js +19 -0
  13. package/src/api/vtx-apikey-api.js.map +1 -0
  14. package/src/api/vtx-base-api.d.ts +23 -0
  15. package/src/api/vtx-base-api.js +753 -0
  16. package/src/api/vtx-base-api.js.map +1 -0
  17. package/src/api/vtx-mobile-api.d.ts +6 -0
  18. package/src/api/vtx-mobile-api.js +27 -0
  19. package/src/api/vtx-mobile-api.js.map +1 -0
  20. package/src/api/vtx-web-browser-api.d.ts +7 -0
  21. package/src/api/vtx-web-browser-api.js +36 -0
  22. package/src/api/vtx-web-browser-api.js.map +1 -0
  23. package/src/api/vtx-web-server-api.d.ts +7 -0
  24. package/src/api/vtx-web-server-api.js +33 -0
  25. package/src/api/vtx-web-server-api.js.map +1 -0
  26. package/src/client/index.js.map +1 -0
  27. package/src/client/runtime/batcher.js.map +1 -0
  28. package/{runtime → src/client/runtime}/createClient.d.ts +4 -10
  29. package/src/client/runtime/createClient.js.map +1 -0
  30. package/src/client/runtime/error.js.map +1 -0
  31. package/src/client/runtime/fetcher.js.map +1 -0
  32. package/{runtime → src/client/runtime}/generateGraphqlOperation.d.ts +1 -1
  33. package/src/client/runtime/generateGraphqlOperation.js.map +1 -0
  34. package/src/client/runtime/index.js.map +1 -0
  35. package/src/client/runtime/linkTypeMap.js.map +1 -0
  36. package/src/client/runtime/typeSelection.js.map +1 -0
  37. package/src/client/runtime/types.js.map +1 -0
  38. package/src/client/schema.d.ts +1678 -0
  39. package/src/client/schema.graphql +793 -0
  40. package/src/client/schema.js +404 -0
  41. package/src/client/schema.js.map +1 -0
  42. package/src/client/types.d.ts +876 -0
  43. package/src/client/types.js +2250 -0
  44. package/src/client/types.js.map +1 -0
  45. package/src/index.d.ts +9 -0
  46. package/src/index.js +26 -0
  47. package/src/index.js.map +1 -0
  48. package/tsconfig.lib.tsbuildinfo +1 -1
  49. package/index.js.map +0 -1
  50. package/index.ts +0 -65
  51. package/runtime/batcher.js.map +0 -1
  52. package/runtime/batcher.ts +0 -275
  53. package/runtime/createClient.js.map +0 -1
  54. package/runtime/createClient.ts +0 -68
  55. package/runtime/error.js.map +0 -1
  56. package/runtime/error.ts +0 -29
  57. package/runtime/fetcher.js.map +0 -1
  58. package/runtime/fetcher.ts +0 -97
  59. package/runtime/generateGraphqlOperation.js.map +0 -1
  60. package/runtime/generateGraphqlOperation.ts +0 -225
  61. package/runtime/index.js.map +0 -1
  62. package/runtime/index.ts +0 -13
  63. package/runtime/linkTypeMap.js.map +0 -1
  64. package/runtime/linkTypeMap.ts +0 -156
  65. package/runtime/typeSelection.js.map +0 -1
  66. package/runtime/typeSelection.ts +0 -95
  67. package/runtime/types.js.map +0 -1
  68. package/runtime/types.ts +0 -69
  69. package/schema.d.ts +0 -704
  70. package/schema.graphql +0 -293
  71. package/schema.js +0 -186
  72. package/schema.js.map +0 -1
  73. package/schema.ts +0 -795
  74. package/types.d.ts +0 -335
  75. package/types.js +0 -856
  76. package/types.js.map +0 -1
  77. package/types.ts +0 -853
  78. /package/{index.d.ts → src/client/index.d.ts} +0 -0
  79. /package/{index.js → src/client/index.js} +0 -0
  80. /package/{runtime → src/client/runtime}/batcher.d.ts +0 -0
  81. /package/{runtime → src/client/runtime}/batcher.js +0 -0
  82. /package/{runtime → src/client/runtime}/createClient.js +0 -0
  83. /package/{runtime → src/client/runtime}/error.d.ts +0 -0
  84. /package/{runtime → src/client/runtime}/error.js +0 -0
  85. /package/{runtime → src/client/runtime}/fetcher.d.ts +0 -0
  86. /package/{runtime → src/client/runtime}/fetcher.js +0 -0
  87. /package/{runtime → src/client/runtime}/generateGraphqlOperation.js +0 -0
  88. /package/{runtime → src/client/runtime}/index.d.ts +0 -0
  89. /package/{runtime → src/client/runtime}/index.js +0 -0
  90. /package/{runtime → src/client/runtime}/linkTypeMap.d.ts +0 -0
  91. /package/{runtime → src/client/runtime}/linkTypeMap.js +0 -0
  92. /package/{runtime → src/client/runtime}/typeSelection.d.ts +0 -0
  93. /package/{runtime → src/client/runtime}/typeSelection.js +0 -0
  94. /package/{runtime → src/client/runtime}/types.d.ts +0 -0
  95. /package/{runtime → src/client/runtime}/types.js +0 -0
@@ -0,0 +1,793 @@
1
+ type User {
2
+ _id: String!
3
+ loginEmail: String!
4
+ suspended: Boolean!
5
+ domains: [DomainCredential!]
6
+ }
7
+
8
+ type UserWithToken {
9
+ _id: String!
10
+ loginEmail: String!
11
+ suspended: Boolean!
12
+ domains: [DomainCredential!]
13
+ token: UserToken!
14
+ }
15
+
16
+ type BaseTenant {
17
+ _id: String!
18
+ name: String!
19
+ tenant_uri: String!
20
+ domain: Domain!
21
+ }
22
+
23
+ type Tenant {
24
+ _id: String!
25
+ name: String!
26
+ tenant_uri: String!
27
+ domain: Domain!
28
+ email: String!
29
+ owner: User
30
+ }
31
+
32
+ type Domain {
33
+ _id: String!
34
+ name: String!
35
+ description: String
36
+ }
37
+
38
+ type DomainCredential {
39
+ _id: String!
40
+ name: String!
41
+ description: String
42
+ tenant: BaseTenant
43
+ }
44
+
45
+ type UserToken {
46
+ actualToken: String!
47
+ refreshToken: String!
48
+ }
49
+
50
+ type TenantWithUserLogin {
51
+ _id: String!
52
+ name: String!
53
+ tenant_uri: String!
54
+ domain: Domain!
55
+ email: String!
56
+ owner: User
57
+ user: UserWithToken!
58
+ }
59
+
60
+ type UriAvailableType {
61
+ available: Boolean!
62
+ valid: Boolean!
63
+ }
64
+
65
+ type Agreement {
66
+ _id: String!
67
+ kind: String!
68
+ domain: String!
69
+ isActiveAgreement: Boolean!
70
+ version: String!
71
+ publishedDate: DateTime
72
+ unPublishedDate: DateTime
73
+ locked: Boolean!
74
+ name: String!
75
+ description: String
76
+ content: String
77
+ createdDate: DateTime!
78
+ updatedDate: DateTime!
79
+ }
80
+
81
+ """
82
+ A date-time string at UTC, such as 2019-12-03T09:54:33Z, compliant with the date-time format.
83
+ """
84
+ scalar DateTime
85
+
86
+ type BillEntity {
87
+ name: String!
88
+ taxId: String
89
+ line1: String
90
+ line2: String
91
+ line3: String
92
+ city: String
93
+ state: String
94
+ country: String
95
+ zip: String
96
+ }
97
+
98
+ type InvoiceItem {
99
+ _id: String!
100
+ unitPrice: Float!
101
+ unitTax: Float!
102
+ quantity: Float!
103
+ unit: String!
104
+ itemPrice: Float!
105
+ itemTotal: Float!
106
+ }
107
+
108
+ type Payment {
109
+ _id: String!
110
+ amount: Float!
111
+ currency: String!
112
+ datePaid: DateTime!
113
+ paymentComment: String
114
+ transactionId: String
115
+ processorType: String
116
+ processorReference: String
117
+ paidItemReference: String
118
+ payeeReference: String
119
+ payorReference: String
120
+ paymentMethodType: String
121
+ paymentMethodReference: String
122
+ }
123
+
124
+ type PlaFeature {
125
+ _id: String!
126
+ title: String!
127
+ description: String
128
+ quantity: Float
129
+ quantityUnit: String
130
+ }
131
+
132
+ type Plan {
133
+ _id: String!
134
+ name: String
135
+ description: String
136
+ prices: [PlanPrice!]!
137
+ features: [PlaFeature!]!
138
+ isPublic: Boolean!
139
+ active: Boolean!
140
+ startOfferingDate: DateTime
141
+ endOfferingDate: DateTime
142
+ termsAndConditions: String
143
+ }
144
+
145
+ type PlanPrice {
146
+ _id: String!
147
+ currency: String!
148
+ price: Float!
149
+ taxMode: String!
150
+ period: String!
151
+ customDays: Float
152
+ plan: Plan
153
+ }
154
+
155
+ type Invoice {
156
+ _id: String!
157
+ invoiceDate: DateTime!
158
+ billedEntity: BillEntity!
159
+ dueDate: DateTime!
160
+ billAmount: Float!
161
+ tax: Float!
162
+ total: Float!
163
+ currency: String!
164
+ items: [InvoiceItem!]
165
+ payment: Payment
166
+ }
167
+
168
+ type SubscriptionInvoice {
169
+ _id: String!
170
+ invoice: Invoice!
171
+ billedPlan: PlanPrice!
172
+ subscriber: PlanSubscription!
173
+ }
174
+
175
+ type PlanSubscription {
176
+ _id: String!
177
+ currentPlan: PlanPrice!
178
+ billPrice: Float!
179
+ billCurrency: String!
180
+ billPriceComment: String
181
+ lastBillDate: DateTime!
182
+ endAccessDate: DateTime!
183
+ autoRenew: Boolean!
184
+ autoRenewPlan: PlanPrice
185
+ autoRenewDate: DateTime!
186
+ payments: [SubscriptionPayment!]!
187
+ invoices: [SubscriptionInvoice!]!
188
+ }
189
+
190
+ type SubscriptionPayment {
191
+ _id: String!
192
+ payment: Payment!
193
+ subscriber: PlanSubscription!
194
+ }
195
+
196
+ type AWSS3File {
197
+ _id: String!
198
+ name: String
199
+ contentType: String
200
+ size: Float
201
+ useType: String
202
+ url: String!
203
+ key: String!
204
+ pendingDelete: Boolean!
205
+ }
206
+
207
+ type HttpRequestField {
208
+ key: String!
209
+ value: String!
210
+ }
211
+
212
+ type AWSS3UploadUrl {
213
+ uploadUrl: String!
214
+ fields: [HttpRequestField!]!
215
+ downloadUrl: String!
216
+ bucket: String!
217
+ key: String!
218
+ }
219
+
220
+ type AWSS3CallResult {
221
+ httpStatus: Float!
222
+ result: String!
223
+ message: String!
224
+ errors: [String!]
225
+ }
226
+
227
+ type BrandStats {
228
+ campaigns: Float
229
+ sponsorships: Float
230
+ sports: Float
231
+ athletes: Float
232
+ }
233
+
234
+ type BrandTranslation {
235
+ _id: String!
236
+ brandId: String!
237
+ language: String!
238
+ name: String
239
+ slogan: String
240
+ description: String
241
+ logo: AWSS3File
242
+ banner: AWSS3File
243
+ }
244
+
245
+ type Brand {
246
+ _id: String!
247
+ name: String!
248
+ slogan: String
249
+ website: String
250
+ description: String
251
+ approved: Boolean!
252
+ published: Boolean!
253
+ logo: AWSS3File
254
+ banner: AWSS3File
255
+ stats: BrandStats
256
+ operatorIds: [String!]
257
+ translations: [BrandTranslation!]
258
+ }
259
+
260
+ type City {
261
+ _id: String!
262
+ name: String!
263
+ localizedName: String!
264
+ state: State
265
+ latitude: Float
266
+ longitude: Float
267
+ timezone: String
268
+ }
269
+
270
+ type State {
271
+ _id: String!
272
+ name: String!
273
+ country: Country
274
+ cities: [City!]
275
+ }
276
+
277
+ type Country {
278
+ _id: String!
279
+ name: String!
280
+ states: [State!]
281
+ }
282
+
283
+ type Qualification {
284
+ type: String!
285
+ }
286
+
287
+ type ScoreQualification {
288
+ type: String!
289
+ scoreType: String!
290
+ operator: String!
291
+ value: Float!
292
+ }
293
+
294
+ type LocationQualification {
295
+ type: String!
296
+ operator: String!
297
+ countries: [Country!]!
298
+ states: [State!]!
299
+ cities: [City!]!
300
+ }
301
+
302
+ type DistanceQualification {
303
+ type: String!
304
+ maxDistance: Float!
305
+ latitude: Float
306
+ longitude: Float
307
+ cityId: String
308
+ }
309
+
310
+ type SportsQualification {
311
+ type: String!
312
+ sports: [String!]!
313
+ operator: String!
314
+ }
315
+
316
+ type SportsLevelQualification {
317
+ type: String!
318
+ operator: String!
319
+ level: String!
320
+ }
321
+
322
+ type AthleteCriteria {
323
+ _id: String!
324
+ label: String
325
+ qualifications: [Qualification!]
326
+ }
327
+
328
+ type SponsorshipStats {
329
+ totalApplications: Float
330
+ newApplications: Float
331
+ discardedApplications: Float
332
+ selectedApplications: Float
333
+ approvedApplications: Float
334
+ grantedSponsorships: Float
335
+ remainingSponsorships: Float
336
+ }
337
+
338
+ type SponsorshipTranslation {
339
+ _id: String!
340
+ sponsorshipId: String!
341
+ language: String!
342
+ title: String
343
+ description: String
344
+ terms: String
345
+ banner: AWSS3File
346
+ }
347
+
348
+ type Sponsorship {
349
+ _id: String!
350
+ title: String!
351
+ description: String
352
+ terms: String
353
+ banner: AWSS3File
354
+ stats: SponsorshipStats
355
+ translations: [SponsorshipTranslation!]
356
+ approved: Boolean!
357
+ published: Boolean!
358
+ criteria: AthleteCriteria
359
+ }
360
+
361
+ type FollowStats {
362
+ followers: Float!
363
+ followed: Float!
364
+ raves: Float!
365
+ favorites: Float!
366
+ }
367
+
368
+ type Sport {
369
+ _id: String!
370
+ name: String!
371
+ }
372
+
373
+ type VtxScores {
374
+ vtxScore: Float!
375
+ socialScore: Float!
376
+ trainingScore: Float!
377
+ competitionScore: Float!
378
+ }
379
+
380
+ type SportLevelTranslation {
381
+ _id: String!
382
+ language: String!
383
+ label: String!
384
+ }
385
+
386
+ type SportLevel {
387
+ _id: String!
388
+ label: String!
389
+ index: Float!
390
+ translations: [SportLevelTranslation!]
391
+ }
392
+
393
+ type Ranking {
394
+ scope: String!
395
+ scopeId: String!
396
+ scopeName: String!
397
+ position: Float!
398
+ total: Float!
399
+ }
400
+
401
+ type AthleteRankings {
402
+ worldRanking: Ranking
403
+ countryRanking: Ranking
404
+ stateRanking: Ranking
405
+ cityRanking: Ranking
406
+ }
407
+
408
+ type Team {
409
+ _id: String!
410
+ name: String!
411
+ description: String
412
+ sports: [Sport!]
413
+ approved: Boolean
414
+ logo: AWSS3File
415
+ banner: AWSS3File
416
+ }
417
+
418
+ type SportsEvent {
419
+ _id: String!
420
+ name: String!
421
+ eventWebSite: String
422
+ startDate: DateTime!
423
+ endDate: DateTime
424
+ verified: Boolean!
425
+ banner: AWSS3File
426
+ }
427
+
428
+ type AthleteCompetitionResult {
429
+ _id: String!
430
+ type: String!
431
+ position: Float
432
+ score: String
433
+ timems: Float
434
+ resultWebLink: String
435
+ }
436
+
437
+ type AthleteCompetition {
438
+ _id: String!
439
+ event: SportsEvent!
440
+ eventName: String!
441
+ date: DateTime!
442
+ result: AthleteCompetitionResult
443
+ }
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
+
458
+ type Athlete {
459
+ _id: String!
460
+ firstName: String!
461
+ lastName: String!
462
+ screenName: String
463
+ dob: DateTime
464
+ lgbt: Boolean
465
+ competitionGender: String
466
+ country: Country
467
+ location: WorldLocation
468
+ trainer: String
469
+ trainerUrl: String
470
+ followStats: FollowStats
471
+ mainSport: Sport!
472
+ mainSportLevel: SportLevel!
473
+ scores: VtxScores!
474
+ rankings: AthleteRankings
475
+ allSports: [Sport!]
476
+ teams: [Team!]
477
+ sponsorBrands: [Brand!]
478
+ competitions: [AthleteCompetition!]
479
+ totalUpcomingCompetitions: Float
480
+ totalPastCompetitions: Float
481
+ }
482
+
483
+ type Industry {
484
+ _id: String!
485
+ name: String!
486
+ }
487
+
488
+ type Sponsor {
489
+ _id: String!
490
+ name: String!
491
+ description: String!
492
+ }
493
+
494
+ input ScoreQualificationDto {
495
+ type: String!
496
+ scoreType: String!
497
+ operator: String!
498
+ value: Float!
499
+ }
500
+
501
+ input LocationQualificationDto {
502
+ type: String!
503
+ operator: String!
504
+ countries: [CountryReferenceDto!]!
505
+ states: [StateReferenceDto!]!
506
+ cities: [CityReferenceDto!]!
507
+ }
508
+
509
+ input CountryReferenceDto {
510
+ _id: String!
511
+ name: String!
512
+ }
513
+
514
+ input StateReferenceDto {
515
+ _id: String!
516
+ name: String!
517
+ country: CountryReferenceDto
518
+ }
519
+
520
+ input CityReferenceDto {
521
+ _id: String!
522
+ name: String!
523
+ state: StateReferenceDto
524
+ }
525
+
526
+ input DistanceQualificationDto {
527
+ type: String!
528
+ maxDistance: Float!
529
+ latitude: Float
530
+ longitude: Float
531
+ cityId: String
532
+ }
533
+
534
+ input SportsQualificationDto {
535
+ type: String!
536
+ sports: [String!]!
537
+ operator: String!
538
+ }
539
+
540
+ input SportsLevelQualificationDto {
541
+ type: String!
542
+ operator: String!
543
+ level: String!
544
+ }
545
+
546
+ type Query {
547
+ findTenantById(_id: String!): Tenant!
548
+ findTenantByEmail(email: String!, domainId: String!): Tenant!
549
+ getTenants: [Tenant!]!
550
+ isTenantUriAvailable(tenant_uri: String!): UriAvailableType!
551
+ findUserById(_id: String!): User!
552
+ findUserByEmail(email: String!): User!
553
+ getUploadUrl(input: AWSS3GetUploadDto!): AWSS3UploadUrl!
554
+ industries: [Industry!]!
555
+ findIndustryById(industryId: String!): Industry!
556
+ brands: [Brand!]!
557
+ getBrandByName(name: String!, translations: Boolean!): Brand!
558
+ getBrandTranslation(brandId: String!, language: String!): BrandTranslation!
559
+ existsValidSponsorForEmail(loginEmail: String!): Sponsor!
560
+ sponsors: [Sponsor!]!
561
+ athlete: [Athlete!]!
562
+ findAthleteById(athleteId: String!): Athlete!
563
+ getSports: [Sport!]!
564
+ findSportById(sportId: String!): Sport!
565
+ getSportLevels: [SportLevel!]!
566
+ getSponsorships(sponsorId: String!): [Sponsorship!]!
567
+ getCountries: [Country!]!
568
+ getCountryStates(countryId: String!): [State!]!
569
+ getStateCities(stateId: String!): [City!]!
570
+ findCitiesStartingWith(text: String!): [City!]!
571
+ }
572
+
573
+ input AWSS3GetUploadDto {
574
+ useType: String!
575
+ name: String
576
+ }
577
+
578
+ type Mutation {
579
+ registerNewDomainTenant(tenant: CreateTenantInput!): Tenant!
580
+ registerNewDomainTenantWithLogin(tenant: CreateTenantInput!): TenantWithUserLogin!
581
+ createUserAndLogin(user: CreateActiveUserInput!): UserWithToken!
582
+ loginUserFromEmail(email: String!): UserToken!
583
+ registerUserToDomainFromEmail(input: RegisterUserToDomainFromEmailInput!): User!
584
+ refreshToken(dto: RefreshTokenInput!): UserToken!
585
+ deleteUploadedUseTypeFile(input: AWSS3DeleteUseTypeFileDto!): AWSS3CallResult!
586
+ deleteUploadedBucketFile(input: AWSS3DeleteBucketFileDto!): AWSS3CallResult!
587
+ registerS3UploadedFile(input: AWSS3UploadedFileDto!): AWSS3File!
588
+ createIndustry(input: CreateIndustryDto!): Industry!
589
+ createBrand(input: CreateBrandDto!): Brand!
590
+ registerSponsor(input: RegisterSponsorInput!): Sponsor!
591
+ createSponsor(input: CreateSponsorDto!): Sponsor!
592
+ registerAthlete(input: RegisterAthleteDto!): Athlete!
593
+ createSport(input: CreateSportDto!): Sport!
594
+ updateSport(input: UpdateSportDto!): Sport!
595
+ createSportLevel(input: CreateSportLevelDto!): SportLevel!
596
+ createSponsorwhip(input: CreateSponsorshipDto!): Sponsorship!
597
+ createCountry(input: CreateCountryDto!): Country!
598
+ createState(input: CreateStateDto!): State!
599
+ createCity(input: CreateCityDto!): City!
600
+ }
601
+
602
+ input CreateTenantInput {
603
+ name: String!
604
+ email: String!
605
+ tenant_uri: String!
606
+ domain: String!
607
+ }
608
+
609
+ input CreateActiveUserInput {
610
+ loginEmail: String!
611
+ password: String
612
+ }
613
+
614
+ input RegisterUserToDomainFromEmailInput {
615
+ email: String!
616
+ domainId: String!
617
+ tenantId: String
618
+ createUserIfNotExist: Boolean = false
619
+ }
620
+
621
+ input RefreshTokenInput {
622
+ refreshToken: String!
623
+ }
624
+
625
+ input AWSS3DeleteUseTypeFileDto {
626
+ name: String!
627
+ useType: String!
628
+ }
629
+
630
+ input AWSS3DeleteBucketFileDto {
631
+ key: String!
632
+ bucket: String!
633
+ credentialsId: String
634
+ }
635
+
636
+ input AWSS3UploadedFileDto {
637
+ key: String!
638
+ useType: String!
639
+ contentType: String!
640
+ originalFileName: String
641
+ fileSize: Float
642
+ }
643
+
644
+ input CreateIndustryDto {
645
+ name: String!
646
+ }
647
+
648
+ input CreateBrandDto {
649
+ name: String!
650
+ description: String
651
+ slogan: String
652
+ website: String
653
+ logo: AWSS3UploadedFileDto
654
+ banner: AWSS3UploadedFileDto
655
+ translations: [BrandTranslationDto!]
656
+ }
657
+
658
+ input BrandTranslationDto {
659
+ brandId: String!
660
+ language: String!
661
+ name: String
662
+ description: String
663
+ slogan: String
664
+ logo: AWSS3UploadedFileDto
665
+ banner: AWSS3UploadedFileDto
666
+ }
667
+
668
+ input RegisterSponsorInput {
669
+ name: String!
670
+ phone: String
671
+ hasWhatsapp: Boolean! = false
672
+ companyName: String
673
+ companyEmail: String!
674
+ industryId: String!
675
+ companySize: String!
676
+ operatorType: String!
677
+ numberOfAthletes: String!
678
+ brands: [String!]!
679
+ }
680
+
681
+ input CreateSponsorDto {
682
+ name: String!
683
+ description: String
684
+ }
685
+
686
+ input RegisterAthleteDto {
687
+ email: String!
688
+ firstName: String!
689
+ lastName: String!
690
+ screenName: String
691
+ nationality: String!
692
+ cityId: String!
693
+ locLatitude: Float
694
+ locLongitude: Float
695
+ dateOfBirth: DateTime!
696
+ team: String
697
+ gender: String!
698
+ mainSport: String!
699
+ mainSportLevel: String!
700
+ }
701
+
702
+ input CreateSportDto {
703
+ name: String!
704
+ }
705
+
706
+ input UpdateSportDto {
707
+ _id: String!
708
+ name: String!
709
+ }
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
+
723
+ input CreateSponsorshipDto {
724
+ title: String!
725
+ brandId: String!
726
+ description: String
727
+ cashValue: Float = 0
728
+ otherValue: Float = 0
729
+ banner: AWSS3UploadedFileDto
730
+ criteria: AthleteCriteriaDto
731
+ sponsorshipItems: [SponsorshipItemDto!]
732
+ commitments: [SponsorshipCommitmentDto!]
733
+ terms: String
734
+ published: Boolean = true
735
+ translations: [SponsorshipTranslationDto!]
736
+ }
737
+
738
+ input AthleteCriteriaDto {
739
+ _id: String!
740
+ label: String
741
+ qualifications: [QualificationDto!]
742
+ }
743
+
744
+ input QualificationDto {
745
+ type: String!
746
+ }
747
+
748
+ input SponsorshipItemDto {
749
+ _id: String!
750
+ name: String!
751
+ }
752
+
753
+ input SponsorshipCommitmentDto {
754
+ _id: String!
755
+ name: String!
756
+ }
757
+
758
+ input SponsorshipTranslationDto {
759
+ title: String
760
+ description: String
761
+ banner: AWSS3UploadedFileDto
762
+ terms: String
763
+ }
764
+
765
+ input CreateCountryDto {
766
+ _id: String!
767
+ name: String!
768
+ }
769
+
770
+ input CreateStateDto {
771
+ _id: String!
772
+ name: 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
793
+ }