@vertikalx/vtx-backend-client 1.0.0-dev.20 → 1.0.0-dev.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/vtx-base-api.d.ts +8 -5
- package/src/api/vtx-base-api.js +143 -25
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +460 -175
- package/src/client/schema.graphql +245 -74
- package/src/client/schema.js +133 -49
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +252 -84
- package/src/client/types.js +712 -303
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
package/src/client/schema.d.ts
CHANGED
|
@@ -4,76 +4,69 @@ export type Scalars = {
|
|
|
4
4
|
DateTime: any;
|
|
5
5
|
Float: number;
|
|
6
6
|
};
|
|
7
|
-
export interface ApiKey {
|
|
8
|
-
_id: Scalars['String'];
|
|
9
|
-
keyName: Scalars['String'];
|
|
10
|
-
keyType: Scalars['String'];
|
|
11
|
-
readAccess: Scalars['Boolean'];
|
|
12
|
-
writeAccess: Scalars['Boolean'];
|
|
13
|
-
__typename: 'ApiKey';
|
|
14
|
-
}
|
|
15
|
-
export interface ApiKeyWithValue {
|
|
16
|
-
_id: Scalars['String'];
|
|
17
|
-
keyName: Scalars['String'];
|
|
18
|
-
keyType: Scalars['String'];
|
|
19
|
-
readAccess: Scalars['Boolean'];
|
|
20
|
-
writeAccess: Scalars['Boolean'];
|
|
21
|
-
actualKey: Scalars['String'];
|
|
22
|
-
__typename: 'ApiKeyWithValue';
|
|
23
|
-
}
|
|
24
|
-
export interface UserToken {
|
|
25
|
-
actualToken: Scalars['String'];
|
|
26
|
-
refreshToken: Scalars['String'];
|
|
27
|
-
__typename: 'UserToken';
|
|
28
|
-
}
|
|
29
|
-
export interface Domain {
|
|
30
|
-
_id: Scalars['String'];
|
|
31
|
-
name: Scalars['String'];
|
|
32
|
-
description: (Scalars['String'] | null);
|
|
33
|
-
__typename: 'Domain';
|
|
34
|
-
}
|
|
35
7
|
export interface User {
|
|
36
8
|
_id: Scalars['String'];
|
|
37
9
|
loginEmail: Scalars['String'];
|
|
38
10
|
suspended: Scalars['Boolean'];
|
|
39
|
-
domains: (
|
|
11
|
+
domains: (DomainCredential[] | null);
|
|
40
12
|
__typename: 'User';
|
|
41
13
|
}
|
|
42
14
|
export interface UserWithToken {
|
|
43
15
|
_id: Scalars['String'];
|
|
44
16
|
loginEmail: Scalars['String'];
|
|
45
17
|
suspended: Scalars['Boolean'];
|
|
46
|
-
domains: (
|
|
18
|
+
domains: (DomainCredential[] | null);
|
|
47
19
|
token: UserToken;
|
|
48
20
|
__typename: 'UserWithToken';
|
|
49
21
|
}
|
|
22
|
+
export interface BaseTenant {
|
|
23
|
+
_id: Scalars['String'];
|
|
24
|
+
name: Scalars['String'];
|
|
25
|
+
tenant_uri: Scalars['String'];
|
|
26
|
+
domain: Domain;
|
|
27
|
+
__typename: 'BaseTenant';
|
|
28
|
+
}
|
|
50
29
|
export interface Tenant {
|
|
51
30
|
_id: Scalars['String'];
|
|
52
31
|
name: Scalars['String'];
|
|
53
|
-
email: Scalars['String'];
|
|
54
32
|
tenant_uri: Scalars['String'];
|
|
33
|
+
domain: Domain;
|
|
34
|
+
email: Scalars['String'];
|
|
35
|
+
owner: (User | null);
|
|
55
36
|
__typename: 'Tenant';
|
|
56
37
|
}
|
|
57
|
-
export interface
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
38
|
+
export interface Domain {
|
|
39
|
+
_id: Scalars['String'];
|
|
40
|
+
name: Scalars['String'];
|
|
41
|
+
description: (Scalars['String'] | null);
|
|
42
|
+
__typename: 'Domain';
|
|
43
|
+
}
|
|
44
|
+
export interface DomainCredential {
|
|
45
|
+
_id: Scalars['String'];
|
|
46
|
+
name: Scalars['String'];
|
|
47
|
+
description: (Scalars['String'] | null);
|
|
48
|
+
tenant: (BaseTenant | null);
|
|
49
|
+
__typename: 'DomainCredential';
|
|
50
|
+
}
|
|
51
|
+
export interface UserToken {
|
|
52
|
+
actualToken: Scalars['String'];
|
|
53
|
+
refreshToken: Scalars['String'];
|
|
54
|
+
__typename: 'UserToken';
|
|
61
55
|
}
|
|
62
56
|
export interface TenantWithUserLogin {
|
|
63
57
|
_id: Scalars['String'];
|
|
64
58
|
name: Scalars['String'];
|
|
65
|
-
email: Scalars['String'];
|
|
66
59
|
tenant_uri: Scalars['String'];
|
|
60
|
+
domain: Domain;
|
|
61
|
+
email: Scalars['String'];
|
|
62
|
+
owner: (User | null);
|
|
67
63
|
user: UserWithToken;
|
|
68
64
|
__typename: 'TenantWithUserLogin';
|
|
69
65
|
}
|
|
70
|
-
export interface
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
tenantUri: Scalars['String'];
|
|
75
|
-
loginEmail: Scalars['String'];
|
|
76
|
-
__typename: 'TenantUserTokenWithInfo';
|
|
66
|
+
export interface UriAvailableType {
|
|
67
|
+
available: Scalars['Boolean'];
|
|
68
|
+
valid: Scalars['Boolean'];
|
|
69
|
+
__typename: 'UriAvailableType';
|
|
77
70
|
}
|
|
78
71
|
export interface Agreement {
|
|
79
72
|
_id: Scalars['String'];
|
|
@@ -265,16 +258,100 @@ export interface Brand {
|
|
|
265
258
|
translations: (BrandTranslation[] | null);
|
|
266
259
|
__typename: 'Brand';
|
|
267
260
|
}
|
|
268
|
-
export interface
|
|
261
|
+
export interface CountryReference {
|
|
269
262
|
_id: Scalars['String'];
|
|
270
263
|
name: Scalars['String'];
|
|
271
|
-
|
|
272
|
-
__typename: 'Sponsor';
|
|
264
|
+
__typename: 'CountryReference';
|
|
273
265
|
}
|
|
274
|
-
export interface
|
|
266
|
+
export interface StateReference {
|
|
275
267
|
_id: Scalars['String'];
|
|
276
268
|
name: Scalars['String'];
|
|
277
|
-
|
|
269
|
+
country: (CountryReference | null);
|
|
270
|
+
__typename: 'StateReference';
|
|
271
|
+
}
|
|
272
|
+
export interface CityReference {
|
|
273
|
+
_id: Scalars['String'];
|
|
274
|
+
name: Scalars['String'];
|
|
275
|
+
state: (StateReference | null);
|
|
276
|
+
__typename: 'CityReference';
|
|
277
|
+
}
|
|
278
|
+
export interface Qualification {
|
|
279
|
+
type: Scalars['String'];
|
|
280
|
+
__typename: 'Qualification';
|
|
281
|
+
}
|
|
282
|
+
export interface ScoreQualification {
|
|
283
|
+
type: Scalars['String'];
|
|
284
|
+
scoreType: Scalars['String'];
|
|
285
|
+
operator: Scalars['String'];
|
|
286
|
+
value: Scalars['Float'];
|
|
287
|
+
__typename: 'ScoreQualification';
|
|
288
|
+
}
|
|
289
|
+
export interface LocationQualification {
|
|
290
|
+
type: Scalars['String'];
|
|
291
|
+
operator: Scalars['String'];
|
|
292
|
+
countries: CountryReference[];
|
|
293
|
+
states: StateReference[];
|
|
294
|
+
cities: CityReference[];
|
|
295
|
+
__typename: 'LocationQualification';
|
|
296
|
+
}
|
|
297
|
+
export interface DistanceQualification {
|
|
298
|
+
type: Scalars['String'];
|
|
299
|
+
maxDistance: Scalars['Float'];
|
|
300
|
+
latitude: (Scalars['Float'] | null);
|
|
301
|
+
longitude: (Scalars['Float'] | null);
|
|
302
|
+
cityId: (Scalars['String'] | null);
|
|
303
|
+
__typename: 'DistanceQualification';
|
|
304
|
+
}
|
|
305
|
+
export interface SportsQualification {
|
|
306
|
+
type: Scalars['String'];
|
|
307
|
+
sports: Scalars['String'][];
|
|
308
|
+
operator: Scalars['String'];
|
|
309
|
+
__typename: 'SportsQualification';
|
|
310
|
+
}
|
|
311
|
+
export interface SportsLevelQualification {
|
|
312
|
+
type: Scalars['String'];
|
|
313
|
+
operator: Scalars['String'];
|
|
314
|
+
level: Scalars['String'];
|
|
315
|
+
__typename: 'SportsLevelQualification';
|
|
316
|
+
}
|
|
317
|
+
export interface AthleteCriteria {
|
|
318
|
+
_id: Scalars['String'];
|
|
319
|
+
label: (Scalars['String'] | null);
|
|
320
|
+
qualifications: (Qualification[] | null);
|
|
321
|
+
__typename: 'AthleteCriteria';
|
|
322
|
+
}
|
|
323
|
+
export interface SponsorshipStats {
|
|
324
|
+
totalApplications: (Scalars['Float'] | null);
|
|
325
|
+
newApplications: (Scalars['Float'] | null);
|
|
326
|
+
discardedApplications: (Scalars['Float'] | null);
|
|
327
|
+
selectedApplications: (Scalars['Float'] | null);
|
|
328
|
+
approvedApplications: (Scalars['Float'] | null);
|
|
329
|
+
grantedSponsorships: (Scalars['Float'] | null);
|
|
330
|
+
remainingSponsorships: (Scalars['Float'] | null);
|
|
331
|
+
__typename: 'SponsorshipStats';
|
|
332
|
+
}
|
|
333
|
+
export interface SponsorshipTranslation {
|
|
334
|
+
_id: Scalars['String'];
|
|
335
|
+
sponsorshipId: Scalars['String'];
|
|
336
|
+
language: Scalars['String'];
|
|
337
|
+
title: (Scalars['String'] | null);
|
|
338
|
+
description: (Scalars['String'] | null);
|
|
339
|
+
terms: (Scalars['String'] | null);
|
|
340
|
+
banner: (AWSS3File | null);
|
|
341
|
+
__typename: 'SponsorshipTranslation';
|
|
342
|
+
}
|
|
343
|
+
export interface Sponsorship {
|
|
344
|
+
_id: Scalars['String'];
|
|
345
|
+
title: Scalars['String'];
|
|
346
|
+
description: (Scalars['String'] | null);
|
|
347
|
+
terms: (Scalars['String'] | null);
|
|
348
|
+
banner: (AWSS3File | null);
|
|
349
|
+
stats: (SponsorshipStats | null);
|
|
350
|
+
translations: (SponsorshipTranslation[] | null);
|
|
351
|
+
approved: Scalars['Boolean'];
|
|
352
|
+
published: Scalars['Boolean'];
|
|
353
|
+
criteria: (AthleteCriteria | null);
|
|
354
|
+
__typename: 'Sponsorship';
|
|
278
355
|
}
|
|
279
356
|
export interface Athlete {
|
|
280
357
|
_id: Scalars['String'];
|
|
@@ -284,19 +361,29 @@ export interface Athlete {
|
|
|
284
361
|
nationalityIso2: (Scalars['String'] | null);
|
|
285
362
|
__typename: 'Athlete';
|
|
286
363
|
}
|
|
364
|
+
export interface Industry {
|
|
365
|
+
_id: Scalars['String'];
|
|
366
|
+
name: Scalars['String'];
|
|
367
|
+
__typename: 'Industry';
|
|
368
|
+
}
|
|
369
|
+
export interface Sponsor {
|
|
370
|
+
_id: Scalars['String'];
|
|
371
|
+
name: Scalars['String'];
|
|
372
|
+
description: Scalars['String'];
|
|
373
|
+
__typename: 'Sponsor';
|
|
374
|
+
}
|
|
287
375
|
export interface Sport {
|
|
288
376
|
_id: Scalars['String'];
|
|
289
377
|
name: Scalars['String'];
|
|
290
378
|
__typename: 'Sport';
|
|
291
379
|
}
|
|
292
380
|
export interface Query {
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
381
|
+
findTenantById: Tenant;
|
|
382
|
+
findTenantByEmail: Tenant;
|
|
383
|
+
getTenants: Tenant[];
|
|
296
384
|
isTenantUriAvailable: UriAvailableType;
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
nontenantedUserByEmail: User;
|
|
385
|
+
findUserById: User;
|
|
386
|
+
findUserByEmail: User;
|
|
300
387
|
getUploadUrl: AWSS3UploadUrl;
|
|
301
388
|
industries: Industry[];
|
|
302
389
|
findIndustryById: Industry;
|
|
@@ -309,18 +396,15 @@ export interface Query {
|
|
|
309
396
|
findAthleteById: Athlete;
|
|
310
397
|
sports: Sport[];
|
|
311
398
|
findSportById: Sport;
|
|
399
|
+
getSponsorships: Sponsorship[];
|
|
312
400
|
__typename: 'Query';
|
|
313
401
|
}
|
|
314
402
|
export interface Mutation {
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
createTenantUserTokenFromEmailAndUri: TenantUserTokenWithInfo;
|
|
321
|
-
refreshTenantToken: UserToken;
|
|
322
|
-
createNonTenantedUserWithLogin: UserWithToken;
|
|
323
|
-
createNonTenantUserTokenFromEmail: UserToken;
|
|
403
|
+
registerNewDomainTenant: Tenant;
|
|
404
|
+
registerNewDomainTenantWithLogin: TenantWithUserLogin;
|
|
405
|
+
createUserAndLogin: UserWithToken;
|
|
406
|
+
loginUserFromEmail: UserToken;
|
|
407
|
+
registerUserToDomainFromEmail: User;
|
|
324
408
|
refreshToken: UserToken;
|
|
325
409
|
deleteUploadedUseTypeFile: AWSS3CallResult;
|
|
326
410
|
deleteUploadedBucketFile: AWSS3CallResult;
|
|
@@ -332,86 +416,79 @@ export interface Mutation {
|
|
|
332
416
|
registerAthlete: Athlete;
|
|
333
417
|
createSport: Sport;
|
|
334
418
|
updateSport: Sport;
|
|
419
|
+
createSponsorwhip: Sponsorship;
|
|
335
420
|
__typename: 'Mutation';
|
|
336
421
|
}
|
|
337
|
-
export interface
|
|
422
|
+
export interface UserGenqlSelection {
|
|
338
423
|
_id?: boolean | number;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
writeAccess?: boolean | number;
|
|
424
|
+
loginEmail?: boolean | number;
|
|
425
|
+
suspended?: boolean | number;
|
|
426
|
+
domains?: DomainCredentialGenqlSelection;
|
|
343
427
|
__typename?: boolean | number;
|
|
344
428
|
__scalar?: boolean | number;
|
|
345
429
|
}
|
|
346
|
-
export interface
|
|
430
|
+
export interface UserWithTokenGenqlSelection {
|
|
347
431
|
_id?: boolean | number;
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
actualKey?: boolean | number;
|
|
353
|
-
__typename?: boolean | number;
|
|
354
|
-
__scalar?: boolean | number;
|
|
355
|
-
}
|
|
356
|
-
export interface UserTokenGenqlSelection {
|
|
357
|
-
actualToken?: boolean | number;
|
|
358
|
-
refreshToken?: boolean | number;
|
|
432
|
+
loginEmail?: boolean | number;
|
|
433
|
+
suspended?: boolean | number;
|
|
434
|
+
domains?: DomainCredentialGenqlSelection;
|
|
435
|
+
token?: UserTokenGenqlSelection;
|
|
359
436
|
__typename?: boolean | number;
|
|
360
437
|
__scalar?: boolean | number;
|
|
361
438
|
}
|
|
362
|
-
export interface
|
|
439
|
+
export interface BaseTenantGenqlSelection {
|
|
363
440
|
_id?: boolean | number;
|
|
364
441
|
name?: boolean | number;
|
|
365
|
-
|
|
442
|
+
tenant_uri?: boolean | number;
|
|
443
|
+
domain?: DomainGenqlSelection;
|
|
366
444
|
__typename?: boolean | number;
|
|
367
445
|
__scalar?: boolean | number;
|
|
368
446
|
}
|
|
369
|
-
export interface
|
|
447
|
+
export interface TenantGenqlSelection {
|
|
370
448
|
_id?: boolean | number;
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
449
|
+
name?: boolean | number;
|
|
450
|
+
tenant_uri?: boolean | number;
|
|
451
|
+
domain?: DomainGenqlSelection;
|
|
452
|
+
email?: boolean | number;
|
|
453
|
+
owner?: UserGenqlSelection;
|
|
374
454
|
__typename?: boolean | number;
|
|
375
455
|
__scalar?: boolean | number;
|
|
376
456
|
}
|
|
377
|
-
export interface
|
|
457
|
+
export interface DomainGenqlSelection {
|
|
378
458
|
_id?: boolean | number;
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
domains?: DomainGenqlSelection;
|
|
382
|
-
token?: UserTokenGenqlSelection;
|
|
459
|
+
name?: boolean | number;
|
|
460
|
+
description?: boolean | number;
|
|
383
461
|
__typename?: boolean | number;
|
|
384
462
|
__scalar?: boolean | number;
|
|
385
463
|
}
|
|
386
|
-
export interface
|
|
464
|
+
export interface DomainCredentialGenqlSelection {
|
|
387
465
|
_id?: boolean | number;
|
|
388
466
|
name?: boolean | number;
|
|
389
|
-
|
|
390
|
-
|
|
467
|
+
description?: boolean | number;
|
|
468
|
+
tenant?: BaseTenantGenqlSelection;
|
|
391
469
|
__typename?: boolean | number;
|
|
392
470
|
__scalar?: boolean | number;
|
|
393
471
|
}
|
|
394
|
-
export interface
|
|
395
|
-
|
|
396
|
-
|
|
472
|
+
export interface UserTokenGenqlSelection {
|
|
473
|
+
actualToken?: boolean | number;
|
|
474
|
+
refreshToken?: boolean | number;
|
|
397
475
|
__typename?: boolean | number;
|
|
398
476
|
__scalar?: boolean | number;
|
|
399
477
|
}
|
|
400
478
|
export interface TenantWithUserLoginGenqlSelection {
|
|
401
479
|
_id?: boolean | number;
|
|
402
480
|
name?: boolean | number;
|
|
403
|
-
email?: boolean | number;
|
|
404
481
|
tenant_uri?: boolean | number;
|
|
482
|
+
domain?: DomainGenqlSelection;
|
|
483
|
+
email?: boolean | number;
|
|
484
|
+
owner?: UserGenqlSelection;
|
|
405
485
|
user?: UserWithTokenGenqlSelection;
|
|
406
486
|
__typename?: boolean | number;
|
|
407
487
|
__scalar?: boolean | number;
|
|
408
488
|
}
|
|
409
|
-
export interface
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
tenantId?: boolean | number;
|
|
413
|
-
tenantUri?: boolean | number;
|
|
414
|
-
loginEmail?: boolean | number;
|
|
489
|
+
export interface UriAvailableTypeGenqlSelection {
|
|
490
|
+
available?: boolean | number;
|
|
491
|
+
valid?: boolean | number;
|
|
415
492
|
__typename?: boolean | number;
|
|
416
493
|
__scalar?: boolean | number;
|
|
417
494
|
}
|
|
@@ -623,16 +700,111 @@ export interface BrandGenqlSelection {
|
|
|
623
700
|
__typename?: boolean | number;
|
|
624
701
|
__scalar?: boolean | number;
|
|
625
702
|
}
|
|
626
|
-
export interface
|
|
703
|
+
export interface CountryReferenceGenqlSelection {
|
|
627
704
|
_id?: boolean | number;
|
|
628
705
|
name?: boolean | number;
|
|
629
|
-
description?: boolean | number;
|
|
630
706
|
__typename?: boolean | number;
|
|
631
707
|
__scalar?: boolean | number;
|
|
632
708
|
}
|
|
633
|
-
export interface
|
|
709
|
+
export interface StateReferenceGenqlSelection {
|
|
634
710
|
_id?: boolean | number;
|
|
635
711
|
name?: boolean | number;
|
|
712
|
+
country?: CountryReferenceGenqlSelection;
|
|
713
|
+
__typename?: boolean | number;
|
|
714
|
+
__scalar?: boolean | number;
|
|
715
|
+
}
|
|
716
|
+
export interface CityReferenceGenqlSelection {
|
|
717
|
+
_id?: boolean | number;
|
|
718
|
+
name?: boolean | number;
|
|
719
|
+
state?: StateReferenceGenqlSelection;
|
|
720
|
+
__typename?: boolean | number;
|
|
721
|
+
__scalar?: boolean | number;
|
|
722
|
+
}
|
|
723
|
+
export interface QualificationGenqlSelection {
|
|
724
|
+
type?: boolean | number;
|
|
725
|
+
__typename?: boolean | number;
|
|
726
|
+
__scalar?: boolean | number;
|
|
727
|
+
}
|
|
728
|
+
export interface ScoreQualificationGenqlSelection {
|
|
729
|
+
type?: boolean | number;
|
|
730
|
+
scoreType?: boolean | number;
|
|
731
|
+
operator?: boolean | number;
|
|
732
|
+
value?: boolean | number;
|
|
733
|
+
__typename?: boolean | number;
|
|
734
|
+
__scalar?: boolean | number;
|
|
735
|
+
}
|
|
736
|
+
export interface LocationQualificationGenqlSelection {
|
|
737
|
+
type?: boolean | number;
|
|
738
|
+
operator?: boolean | number;
|
|
739
|
+
countries?: CountryReferenceGenqlSelection;
|
|
740
|
+
states?: StateReferenceGenqlSelection;
|
|
741
|
+
cities?: CityReferenceGenqlSelection;
|
|
742
|
+
__typename?: boolean | number;
|
|
743
|
+
__scalar?: boolean | number;
|
|
744
|
+
}
|
|
745
|
+
export interface DistanceQualificationGenqlSelection {
|
|
746
|
+
type?: boolean | number;
|
|
747
|
+
maxDistance?: boolean | number;
|
|
748
|
+
latitude?: boolean | number;
|
|
749
|
+
longitude?: boolean | number;
|
|
750
|
+
cityId?: boolean | number;
|
|
751
|
+
__typename?: boolean | number;
|
|
752
|
+
__scalar?: boolean | number;
|
|
753
|
+
}
|
|
754
|
+
export interface SportsQualificationGenqlSelection {
|
|
755
|
+
type?: boolean | number;
|
|
756
|
+
sports?: boolean | number;
|
|
757
|
+
operator?: boolean | number;
|
|
758
|
+
__typename?: boolean | number;
|
|
759
|
+
__scalar?: boolean | number;
|
|
760
|
+
}
|
|
761
|
+
export interface SportsLevelQualificationGenqlSelection {
|
|
762
|
+
type?: boolean | number;
|
|
763
|
+
operator?: boolean | number;
|
|
764
|
+
level?: boolean | number;
|
|
765
|
+
__typename?: boolean | number;
|
|
766
|
+
__scalar?: boolean | number;
|
|
767
|
+
}
|
|
768
|
+
export interface AthleteCriteriaGenqlSelection {
|
|
769
|
+
_id?: boolean | number;
|
|
770
|
+
label?: boolean | number;
|
|
771
|
+
qualifications?: QualificationGenqlSelection;
|
|
772
|
+
__typename?: boolean | number;
|
|
773
|
+
__scalar?: boolean | number;
|
|
774
|
+
}
|
|
775
|
+
export interface SponsorshipStatsGenqlSelection {
|
|
776
|
+
totalApplications?: boolean | number;
|
|
777
|
+
newApplications?: boolean | number;
|
|
778
|
+
discardedApplications?: boolean | number;
|
|
779
|
+
selectedApplications?: boolean | number;
|
|
780
|
+
approvedApplications?: boolean | number;
|
|
781
|
+
grantedSponsorships?: boolean | number;
|
|
782
|
+
remainingSponsorships?: boolean | number;
|
|
783
|
+
__typename?: boolean | number;
|
|
784
|
+
__scalar?: boolean | number;
|
|
785
|
+
}
|
|
786
|
+
export interface SponsorshipTranslationGenqlSelection {
|
|
787
|
+
_id?: boolean | number;
|
|
788
|
+
sponsorshipId?: boolean | number;
|
|
789
|
+
language?: boolean | number;
|
|
790
|
+
title?: boolean | number;
|
|
791
|
+
description?: boolean | number;
|
|
792
|
+
terms?: boolean | number;
|
|
793
|
+
banner?: AWSS3FileGenqlSelection;
|
|
794
|
+
__typename?: boolean | number;
|
|
795
|
+
__scalar?: boolean | number;
|
|
796
|
+
}
|
|
797
|
+
export interface SponsorshipGenqlSelection {
|
|
798
|
+
_id?: boolean | number;
|
|
799
|
+
title?: boolean | number;
|
|
800
|
+
description?: boolean | number;
|
|
801
|
+
terms?: boolean | number;
|
|
802
|
+
banner?: AWSS3FileGenqlSelection;
|
|
803
|
+
stats?: SponsorshipStatsGenqlSelection;
|
|
804
|
+
translations?: SponsorshipTranslationGenqlSelection;
|
|
805
|
+
approved?: boolean | number;
|
|
806
|
+
published?: boolean | number;
|
|
807
|
+
criteria?: AthleteCriteriaGenqlSelection;
|
|
636
808
|
__typename?: boolean | number;
|
|
637
809
|
__scalar?: boolean | number;
|
|
638
810
|
}
|
|
@@ -645,36 +817,93 @@ export interface AthleteGenqlSelection {
|
|
|
645
817
|
__typename?: boolean | number;
|
|
646
818
|
__scalar?: boolean | number;
|
|
647
819
|
}
|
|
820
|
+
export interface IndustryGenqlSelection {
|
|
821
|
+
_id?: boolean | number;
|
|
822
|
+
name?: boolean | number;
|
|
823
|
+
__typename?: boolean | number;
|
|
824
|
+
__scalar?: boolean | number;
|
|
825
|
+
}
|
|
826
|
+
export interface SponsorGenqlSelection {
|
|
827
|
+
_id?: boolean | number;
|
|
828
|
+
name?: boolean | number;
|
|
829
|
+
description?: boolean | number;
|
|
830
|
+
__typename?: boolean | number;
|
|
831
|
+
__scalar?: boolean | number;
|
|
832
|
+
}
|
|
648
833
|
export interface SportGenqlSelection {
|
|
649
834
|
_id?: boolean | number;
|
|
650
835
|
name?: boolean | number;
|
|
651
836
|
__typename?: boolean | number;
|
|
652
837
|
__scalar?: boolean | number;
|
|
653
838
|
}
|
|
839
|
+
export interface ScoreQualificationDto {
|
|
840
|
+
type: Scalars['String'];
|
|
841
|
+
scoreType: Scalars['String'];
|
|
842
|
+
operator: Scalars['String'];
|
|
843
|
+
value: Scalars['Float'];
|
|
844
|
+
}
|
|
845
|
+
export interface LocationQualificationDto {
|
|
846
|
+
type: Scalars['String'];
|
|
847
|
+
operator: Scalars['String'];
|
|
848
|
+
countries: CountryReferenceDto[];
|
|
849
|
+
states: StateReferenceDto[];
|
|
850
|
+
cities: CityReferenceDto[];
|
|
851
|
+
}
|
|
852
|
+
export interface CountryReferenceDto {
|
|
853
|
+
_id: Scalars['String'];
|
|
854
|
+
name: Scalars['String'];
|
|
855
|
+
}
|
|
856
|
+
export interface StateReferenceDto {
|
|
857
|
+
_id: Scalars['String'];
|
|
858
|
+
name: Scalars['String'];
|
|
859
|
+
country?: (CountryReferenceDto | null);
|
|
860
|
+
}
|
|
861
|
+
export interface CityReferenceDto {
|
|
862
|
+
_id: Scalars['String'];
|
|
863
|
+
name: Scalars['String'];
|
|
864
|
+
state?: (StateReferenceDto | null);
|
|
865
|
+
}
|
|
866
|
+
export interface DistanceQualificationDto {
|
|
867
|
+
type: Scalars['String'];
|
|
868
|
+
maxDistance: Scalars['Float'];
|
|
869
|
+
latitude?: (Scalars['Float'] | null);
|
|
870
|
+
longitude?: (Scalars['Float'] | null);
|
|
871
|
+
cityId?: (Scalars['String'] | null);
|
|
872
|
+
}
|
|
873
|
+
export interface SportsQualificationDto {
|
|
874
|
+
type: Scalars['String'];
|
|
875
|
+
sports: Scalars['String'][];
|
|
876
|
+
operator: Scalars['String'];
|
|
877
|
+
}
|
|
878
|
+
export interface SportsLevelQualificationDto {
|
|
879
|
+
type: Scalars['String'];
|
|
880
|
+
operator: Scalars['String'];
|
|
881
|
+
level: Scalars['String'];
|
|
882
|
+
}
|
|
654
883
|
export interface QueryGenqlSelection {
|
|
655
|
-
|
|
884
|
+
findTenantById?: (TenantGenqlSelection & {
|
|
656
885
|
__args: {
|
|
657
886
|
_id: Scalars['String'];
|
|
658
887
|
};
|
|
659
888
|
});
|
|
660
|
-
|
|
889
|
+
findTenantByEmail?: (TenantGenqlSelection & {
|
|
661
890
|
__args: {
|
|
662
891
|
email: Scalars['String'];
|
|
892
|
+
domainId: Scalars['String'];
|
|
663
893
|
};
|
|
664
894
|
});
|
|
665
|
-
|
|
895
|
+
getTenants?: TenantGenqlSelection;
|
|
666
896
|
isTenantUriAvailable?: (UriAvailableTypeGenqlSelection & {
|
|
667
897
|
__args: {
|
|
668
898
|
tenant_uri: Scalars['String'];
|
|
669
899
|
};
|
|
670
900
|
});
|
|
671
|
-
|
|
672
|
-
nontenantedUserById?: (UserGenqlSelection & {
|
|
901
|
+
findUserById?: (UserGenqlSelection & {
|
|
673
902
|
__args: {
|
|
674
903
|
_id: Scalars['String'];
|
|
675
904
|
};
|
|
676
905
|
});
|
|
677
|
-
|
|
906
|
+
findUserByEmail?: (UserGenqlSelection & {
|
|
678
907
|
__args: {
|
|
679
908
|
email: Scalars['String'];
|
|
680
909
|
};
|
|
@@ -721,6 +950,11 @@ export interface QueryGenqlSelection {
|
|
|
721
950
|
sportId: Scalars['String'];
|
|
722
951
|
};
|
|
723
952
|
});
|
|
953
|
+
getSponsorships?: (SponsorshipGenqlSelection & {
|
|
954
|
+
__args: {
|
|
955
|
+
sponsorId: Scalars['String'];
|
|
956
|
+
};
|
|
957
|
+
});
|
|
724
958
|
__typename?: boolean | number;
|
|
725
959
|
__scalar?: boolean | number;
|
|
726
960
|
}
|
|
@@ -729,49 +963,29 @@ export interface AWSS3GetUploadDto {
|
|
|
729
963
|
name?: (Scalars['String'] | null);
|
|
730
964
|
}
|
|
731
965
|
export interface MutationGenqlSelection {
|
|
732
|
-
|
|
966
|
+
registerNewDomainTenant?: (TenantGenqlSelection & {
|
|
733
967
|
__args: {
|
|
734
968
|
tenant: CreateTenantInput;
|
|
735
969
|
};
|
|
736
970
|
});
|
|
737
|
-
|
|
738
|
-
__args: {
|
|
739
|
-
newKeyInfo: CreateApiKeyInput;
|
|
740
|
-
};
|
|
741
|
-
});
|
|
742
|
-
createTenantApiKeyWithSystemKey?: (ApiKeyWithValueGenqlSelection & {
|
|
743
|
-
__args: {
|
|
744
|
-
newKeyInfo: CreateApiKeyInput;
|
|
745
|
-
};
|
|
746
|
-
});
|
|
747
|
-
createTenantWithLogin?: (TenantWithUserLoginGenqlSelection & {
|
|
971
|
+
registerNewDomainTenantWithLogin?: (TenantWithUserLoginGenqlSelection & {
|
|
748
972
|
__args: {
|
|
749
973
|
tenant: CreateTenantInput;
|
|
750
974
|
};
|
|
751
975
|
});
|
|
752
|
-
|
|
753
|
-
__args: {
|
|
754
|
-
requestTokenDto: CreateTenantUserTokenDto;
|
|
755
|
-
};
|
|
756
|
-
});
|
|
757
|
-
createTenantUserTokenFromEmailAndUri?: (TenantUserTokenWithInfoGenqlSelection & {
|
|
976
|
+
createUserAndLogin?: (UserWithTokenGenqlSelection & {
|
|
758
977
|
__args: {
|
|
759
|
-
|
|
760
|
-
};
|
|
761
|
-
});
|
|
762
|
-
refreshTenantToken?: (UserTokenGenqlSelection & {
|
|
763
|
-
__args: {
|
|
764
|
-
dto: RefreshTokenInput;
|
|
978
|
+
user: CreateActiveUserInput;
|
|
765
979
|
};
|
|
766
980
|
});
|
|
767
|
-
|
|
981
|
+
loginUserFromEmail?: (UserTokenGenqlSelection & {
|
|
768
982
|
__args: {
|
|
769
|
-
|
|
983
|
+
email: Scalars['String'];
|
|
770
984
|
};
|
|
771
985
|
});
|
|
772
|
-
|
|
986
|
+
registerUserToDomainFromEmail?: (UserGenqlSelection & {
|
|
773
987
|
__args: {
|
|
774
|
-
|
|
988
|
+
input: RegisterUserToDomainFromEmailInput;
|
|
775
989
|
};
|
|
776
990
|
});
|
|
777
991
|
refreshToken?: (UserTokenGenqlSelection & {
|
|
@@ -830,6 +1044,11 @@ export interface MutationGenqlSelection {
|
|
|
830
1044
|
input: UpdateSportDto;
|
|
831
1045
|
};
|
|
832
1046
|
});
|
|
1047
|
+
createSponsorwhip?: (SponsorshipGenqlSelection & {
|
|
1048
|
+
__args: {
|
|
1049
|
+
input: CreateSponsorshipDto;
|
|
1050
|
+
};
|
|
1051
|
+
});
|
|
833
1052
|
__typename?: boolean | number;
|
|
834
1053
|
__scalar?: boolean | number;
|
|
835
1054
|
}
|
|
@@ -837,27 +1056,21 @@ export interface CreateTenantInput {
|
|
|
837
1056
|
name: Scalars['String'];
|
|
838
1057
|
email: Scalars['String'];
|
|
839
1058
|
tenant_uri: Scalars['String'];
|
|
1059
|
+
domain: Scalars['String'];
|
|
840
1060
|
}
|
|
841
|
-
export interface
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
readAccess: Scalars['Boolean'];
|
|
845
|
-
writeAccess: Scalars['Boolean'];
|
|
846
|
-
}
|
|
847
|
-
export interface CreateTenantUserTokenDto {
|
|
848
|
-
requestToken: Scalars['String'];
|
|
1061
|
+
export interface CreateActiveUserInput {
|
|
1062
|
+
loginEmail: Scalars['String'];
|
|
1063
|
+
password?: (Scalars['String'] | null);
|
|
849
1064
|
}
|
|
850
|
-
export interface
|
|
1065
|
+
export interface RegisterUserToDomainFromEmailInput {
|
|
851
1066
|
email: Scalars['String'];
|
|
852
|
-
|
|
1067
|
+
domainId: Scalars['String'];
|
|
1068
|
+
tenantId?: (Scalars['String'] | null);
|
|
1069
|
+
createUserIfNotExist?: (Scalars['Boolean'] | null);
|
|
853
1070
|
}
|
|
854
1071
|
export interface RefreshTokenInput {
|
|
855
1072
|
refreshToken: Scalars['String'];
|
|
856
1073
|
}
|
|
857
|
-
export interface CreateActiveUserInput {
|
|
858
|
-
loginEmail: Scalars['String'];
|
|
859
|
-
password?: (Scalars['String'] | null);
|
|
860
|
-
}
|
|
861
1074
|
export interface AWSS3DeleteUseTypeFileDto {
|
|
862
1075
|
name: Scalars['String'];
|
|
863
1076
|
useType: Scalars['String'];
|
|
@@ -930,36 +1143,69 @@ export interface CreateSportDto {
|
|
|
930
1143
|
export interface UpdateSportDto {
|
|
931
1144
|
name: Scalars['String'];
|
|
932
1145
|
}
|
|
933
|
-
export
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
1146
|
+
export interface CreateSponsorshipDto {
|
|
1147
|
+
title: Scalars['String'];
|
|
1148
|
+
brandId: Scalars['String'];
|
|
1149
|
+
description?: (Scalars['String'] | null);
|
|
1150
|
+
cashValue?: (Scalars['Float'] | null);
|
|
1151
|
+
otherValue?: (Scalars['Float'] | null);
|
|
1152
|
+
banner?: (AWSS3UploadedFileDto | null);
|
|
1153
|
+
criteria?: (AthleteCriteriaDto | null);
|
|
1154
|
+
sponsorshipItems?: (SponsorshipItemDto[] | null);
|
|
1155
|
+
commitments?: (SponsorshipCommitmentDto[] | null);
|
|
1156
|
+
terms?: (Scalars['String'] | null);
|
|
1157
|
+
published?: (Scalars['Boolean'] | null);
|
|
1158
|
+
translations?: (SponsorshipTranslationDto[] | null);
|
|
1159
|
+
}
|
|
1160
|
+
export interface AthleteCriteriaDto {
|
|
1161
|
+
_id: Scalars['String'];
|
|
1162
|
+
label?: (Scalars['String'] | null);
|
|
1163
|
+
qualifications?: (QualificationDto[] | null);
|
|
1164
|
+
}
|
|
1165
|
+
export interface QualificationDto {
|
|
1166
|
+
type: Scalars['String'];
|
|
1167
|
+
}
|
|
1168
|
+
export interface SponsorshipItemDto {
|
|
1169
|
+
_id: Scalars['String'];
|
|
1170
|
+
name: Scalars['String'];
|
|
1171
|
+
}
|
|
1172
|
+
export interface SponsorshipCommitmentDto {
|
|
1173
|
+
_id: Scalars['String'];
|
|
1174
|
+
name: Scalars['String'];
|
|
1175
|
+
}
|
|
1176
|
+
export interface SponsorshipTranslationDto {
|
|
1177
|
+
title?: (Scalars['String'] | null);
|
|
1178
|
+
description?: (Scalars['String'] | null);
|
|
1179
|
+
banner?: (AWSS3UploadedFileDto | null);
|
|
1180
|
+
terms?: (Scalars['String'] | null);
|
|
1181
|
+
}
|
|
945
1182
|
export declare const isUser: (obj?: {
|
|
946
1183
|
__typename?: any;
|
|
947
1184
|
} | null) => obj is User;
|
|
948
1185
|
export declare const isUserWithToken: (obj?: {
|
|
949
1186
|
__typename?: any;
|
|
950
1187
|
} | null) => obj is UserWithToken;
|
|
1188
|
+
export declare const isBaseTenant: (obj?: {
|
|
1189
|
+
__typename?: any;
|
|
1190
|
+
} | null) => obj is BaseTenant;
|
|
951
1191
|
export declare const isTenant: (obj?: {
|
|
952
1192
|
__typename?: any;
|
|
953
1193
|
} | null) => obj is Tenant;
|
|
954
|
-
export declare const
|
|
1194
|
+
export declare const isDomain: (obj?: {
|
|
955
1195
|
__typename?: any;
|
|
956
|
-
} | null) => obj is
|
|
1196
|
+
} | null) => obj is Domain;
|
|
1197
|
+
export declare const isDomainCredential: (obj?: {
|
|
1198
|
+
__typename?: any;
|
|
1199
|
+
} | null) => obj is DomainCredential;
|
|
1200
|
+
export declare const isUserToken: (obj?: {
|
|
1201
|
+
__typename?: any;
|
|
1202
|
+
} | null) => obj is UserToken;
|
|
957
1203
|
export declare const isTenantWithUserLogin: (obj?: {
|
|
958
1204
|
__typename?: any;
|
|
959
1205
|
} | null) => obj is TenantWithUserLogin;
|
|
960
|
-
export declare const
|
|
1206
|
+
export declare const isUriAvailableType: (obj?: {
|
|
961
1207
|
__typename?: any;
|
|
962
|
-
} | null) => obj is
|
|
1208
|
+
} | null) => obj is UriAvailableType;
|
|
963
1209
|
export declare const isAgreement: (obj?: {
|
|
964
1210
|
__typename?: any;
|
|
965
1211
|
} | null) => obj is Agreement;
|
|
@@ -1014,15 +1260,54 @@ export declare const isBrandTranslation: (obj?: {
|
|
|
1014
1260
|
export declare const isBrand: (obj?: {
|
|
1015
1261
|
__typename?: any;
|
|
1016
1262
|
} | null) => obj is Brand;
|
|
1017
|
-
export declare const
|
|
1263
|
+
export declare const isCountryReference: (obj?: {
|
|
1018
1264
|
__typename?: any;
|
|
1019
|
-
} | null) => obj is
|
|
1020
|
-
export declare const
|
|
1265
|
+
} | null) => obj is CountryReference;
|
|
1266
|
+
export declare const isStateReference: (obj?: {
|
|
1021
1267
|
__typename?: any;
|
|
1022
|
-
} | null) => obj is
|
|
1268
|
+
} | null) => obj is StateReference;
|
|
1269
|
+
export declare const isCityReference: (obj?: {
|
|
1270
|
+
__typename?: any;
|
|
1271
|
+
} | null) => obj is CityReference;
|
|
1272
|
+
export declare const isQualification: (obj?: {
|
|
1273
|
+
__typename?: any;
|
|
1274
|
+
} | null) => obj is Qualification;
|
|
1275
|
+
export declare const isScoreQualification: (obj?: {
|
|
1276
|
+
__typename?: any;
|
|
1277
|
+
} | null) => obj is ScoreQualification;
|
|
1278
|
+
export declare const isLocationQualification: (obj?: {
|
|
1279
|
+
__typename?: any;
|
|
1280
|
+
} | null) => obj is LocationQualification;
|
|
1281
|
+
export declare const isDistanceQualification: (obj?: {
|
|
1282
|
+
__typename?: any;
|
|
1283
|
+
} | null) => obj is DistanceQualification;
|
|
1284
|
+
export declare const isSportsQualification: (obj?: {
|
|
1285
|
+
__typename?: any;
|
|
1286
|
+
} | null) => obj is SportsQualification;
|
|
1287
|
+
export declare const isSportsLevelQualification: (obj?: {
|
|
1288
|
+
__typename?: any;
|
|
1289
|
+
} | null) => obj is SportsLevelQualification;
|
|
1290
|
+
export declare const isAthleteCriteria: (obj?: {
|
|
1291
|
+
__typename?: any;
|
|
1292
|
+
} | null) => obj is AthleteCriteria;
|
|
1293
|
+
export declare const isSponsorshipStats: (obj?: {
|
|
1294
|
+
__typename?: any;
|
|
1295
|
+
} | null) => obj is SponsorshipStats;
|
|
1296
|
+
export declare const isSponsorshipTranslation: (obj?: {
|
|
1297
|
+
__typename?: any;
|
|
1298
|
+
} | null) => obj is SponsorshipTranslation;
|
|
1299
|
+
export declare const isSponsorship: (obj?: {
|
|
1300
|
+
__typename?: any;
|
|
1301
|
+
} | null) => obj is Sponsorship;
|
|
1023
1302
|
export declare const isAthlete: (obj?: {
|
|
1024
1303
|
__typename?: any;
|
|
1025
1304
|
} | null) => obj is Athlete;
|
|
1305
|
+
export declare const isIndustry: (obj?: {
|
|
1306
|
+
__typename?: any;
|
|
1307
|
+
} | null) => obj is Industry;
|
|
1308
|
+
export declare const isSponsor: (obj?: {
|
|
1309
|
+
__typename?: any;
|
|
1310
|
+
} | null) => obj is Sponsor;
|
|
1026
1311
|
export declare const isSport: (obj?: {
|
|
1027
1312
|
__typename?: any;
|
|
1028
1313
|
} | null) => obj is Sport;
|