@vertikalx/vtx-backend-client 1.0.0-dev.4 → 1.0.0-dev.41

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