@vertikalx/vtx-backend-client 1.0.0-dev.35 → 1.0.0-dev.36
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/client/schema.d.ts +224 -106
- package/src/client/schema.graphql +92 -45
- package/src/client/schema.js +65 -30
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +96 -45
- package/src/client/types.js +327 -194
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
package/package.json
CHANGED
package/src/client/schema.d.ts
CHANGED
|
@@ -341,6 +341,55 @@ export interface AthleteCriteria {
|
|
|
341
341
|
qualifications: (Qualification[] | null);
|
|
342
342
|
__typename: 'AthleteCriteria';
|
|
343
343
|
}
|
|
344
|
+
export interface Industry {
|
|
345
|
+
_id: Scalars['String'];
|
|
346
|
+
name: Scalars['String'];
|
|
347
|
+
__typename: 'Industry';
|
|
348
|
+
}
|
|
349
|
+
export interface SponsorStats {
|
|
350
|
+
sponsoredAthletes: Scalars['Float'];
|
|
351
|
+
totalBrands: Scalars['Float'];
|
|
352
|
+
activeCampaigns: Scalars['Float'];
|
|
353
|
+
activeSponsorships: Scalars['Float'];
|
|
354
|
+
__typename: 'SponsorStats';
|
|
355
|
+
}
|
|
356
|
+
export interface SponsorBrand {
|
|
357
|
+
_id: Scalars['String'];
|
|
358
|
+
name: Scalars['String'];
|
|
359
|
+
slogan: (Scalars['String'] | null);
|
|
360
|
+
website: (Scalars['String'] | null);
|
|
361
|
+
description: (Scalars['String'] | null);
|
|
362
|
+
approved: Scalars['Boolean'];
|
|
363
|
+
published: Scalars['Boolean'];
|
|
364
|
+
logo: (AWSS3File | null);
|
|
365
|
+
banner: (AWSS3File | null);
|
|
366
|
+
stats: (BrandStats | null);
|
|
367
|
+
operatorIds: (Scalars['String'][] | null);
|
|
368
|
+
translations: (BrandTranslation[] | null);
|
|
369
|
+
sponsorBrandId: Scalars['String'];
|
|
370
|
+
authorizedUse: Scalars['Boolean'];
|
|
371
|
+
isAuthorizer: Scalars['Boolean'];
|
|
372
|
+
__typename: 'SponsorBrand';
|
|
373
|
+
}
|
|
374
|
+
export interface Sponsor {
|
|
375
|
+
_id: Scalars['String'];
|
|
376
|
+
name: Scalars['String'];
|
|
377
|
+
description: Scalars['String'];
|
|
378
|
+
tenant: Tenant;
|
|
379
|
+
industry: (Industry | null);
|
|
380
|
+
stats: (SponsorStats | null);
|
|
381
|
+
brands: (SponsorBrand[] | null);
|
|
382
|
+
sponsorships: (Sponsorship[] | null);
|
|
383
|
+
approved: Scalars['Boolean'];
|
|
384
|
+
__typename: 'Sponsor';
|
|
385
|
+
}
|
|
386
|
+
export interface SponsorshipItem {
|
|
387
|
+
_id: Scalars['String'];
|
|
388
|
+
title: Scalars['String'];
|
|
389
|
+
value: Scalars['Float'];
|
|
390
|
+
type: Scalars['String'];
|
|
391
|
+
__typename: 'SponsorshipItem';
|
|
392
|
+
}
|
|
344
393
|
export interface SponsorshipStats {
|
|
345
394
|
totalSponsorships: (Scalars['Float'] | null);
|
|
346
395
|
totalApplications: (Scalars['Float'] | null);
|
|
@@ -369,15 +418,56 @@ export interface Sponsorship {
|
|
|
369
418
|
cashValue: Scalars['Float'];
|
|
370
419
|
otherValue: Scalars['Float'];
|
|
371
420
|
brand: (Brand | null);
|
|
372
|
-
terms: (Scalars['String'] | null);
|
|
373
421
|
banner: (AWSS3File | null);
|
|
422
|
+
criteria: (AthleteCriteria | null);
|
|
423
|
+
sponsor: (Sponsor | null);
|
|
424
|
+
sponsorshipItems: (SponsorshipItem[] | null);
|
|
425
|
+
commitments: (CommitmentType[] | null);
|
|
426
|
+
terms: (Scalars['String'] | null);
|
|
374
427
|
stats: (SponsorshipStats | null);
|
|
375
|
-
translations: (SponsorshipTranslation[] | null);
|
|
376
428
|
approved: Scalars['Boolean'];
|
|
377
429
|
published: Scalars['Boolean'];
|
|
378
|
-
|
|
430
|
+
translations: (SponsorshipTranslation[] | null);
|
|
379
431
|
__typename: 'Sponsorship';
|
|
380
432
|
}
|
|
433
|
+
export type CommitmentType = (SponsorshipCommitment | DatedSponsorshipCommitment | RecurrentSponsorshipCommitment) & {
|
|
434
|
+
__isUnion?: true;
|
|
435
|
+
};
|
|
436
|
+
export interface SponsorshipCommitment {
|
|
437
|
+
_id: Scalars['String'];
|
|
438
|
+
title: Scalars['String'];
|
|
439
|
+
details: (Scalars['String'] | null);
|
|
440
|
+
type: Scalars['String'];
|
|
441
|
+
hashTags: Scalars['String'];
|
|
442
|
+
media: Scalars['String'];
|
|
443
|
+
actionType: Scalars['String'];
|
|
444
|
+
autoMeasurable: Scalars['Boolean'];
|
|
445
|
+
__typename: 'SponsorshipCommitment';
|
|
446
|
+
}
|
|
447
|
+
export interface DatedSponsorshipCommitment {
|
|
448
|
+
_id: Scalars['String'];
|
|
449
|
+
title: Scalars['String'];
|
|
450
|
+
details: (Scalars['String'] | null);
|
|
451
|
+
type: Scalars['String'];
|
|
452
|
+
hashTags: Scalars['String'];
|
|
453
|
+
media: Scalars['String'];
|
|
454
|
+
actionType: Scalars['String'];
|
|
455
|
+
autoMeasurable: Scalars['Boolean'];
|
|
456
|
+
usesTime: Scalars['Boolean'];
|
|
457
|
+
date: Scalars['DateTime'];
|
|
458
|
+
__typename: 'DatedSponsorshipCommitment';
|
|
459
|
+
}
|
|
460
|
+
export interface RecurrentSponsorshipCommitment {
|
|
461
|
+
_id: Scalars['String'];
|
|
462
|
+
title: Scalars['String'];
|
|
463
|
+
details: (Scalars['String'] | null);
|
|
464
|
+
type: Scalars['String'];
|
|
465
|
+
hashTags: Scalars['String'];
|
|
466
|
+
media: Scalars['String'];
|
|
467
|
+
actionType: Scalars['String'];
|
|
468
|
+
autoMeasurable: Scalars['Boolean'];
|
|
469
|
+
__typename: 'RecurrentSponsorshipCommitment';
|
|
470
|
+
}
|
|
381
471
|
export interface FollowStats {
|
|
382
472
|
followers: Scalars['Float'];
|
|
383
473
|
followed: Scalars['Float'];
|
|
@@ -500,48 +590,6 @@ export interface Athlete {
|
|
|
500
590
|
totalPastCompetitions: (Scalars['Float'] | null);
|
|
501
591
|
__typename: 'Athlete';
|
|
502
592
|
}
|
|
503
|
-
export interface Industry {
|
|
504
|
-
_id: Scalars['String'];
|
|
505
|
-
name: Scalars['String'];
|
|
506
|
-
__typename: 'Industry';
|
|
507
|
-
}
|
|
508
|
-
export interface SponsorStats {
|
|
509
|
-
sponsoredAthletes: Scalars['Float'];
|
|
510
|
-
totalBrands: Scalars['Float'];
|
|
511
|
-
activeCampaigns: Scalars['Float'];
|
|
512
|
-
activeSponsorships: Scalars['Float'];
|
|
513
|
-
__typename: 'SponsorStats';
|
|
514
|
-
}
|
|
515
|
-
export interface SponsorBrand {
|
|
516
|
-
_id: Scalars['String'];
|
|
517
|
-
name: Scalars['String'];
|
|
518
|
-
slogan: (Scalars['String'] | null);
|
|
519
|
-
website: (Scalars['String'] | null);
|
|
520
|
-
description: (Scalars['String'] | null);
|
|
521
|
-
approved: Scalars['Boolean'];
|
|
522
|
-
published: Scalars['Boolean'];
|
|
523
|
-
logo: (AWSS3File | null);
|
|
524
|
-
banner: (AWSS3File | null);
|
|
525
|
-
stats: (BrandStats | null);
|
|
526
|
-
operatorIds: (Scalars['String'][] | null);
|
|
527
|
-
translations: (BrandTranslation[] | null);
|
|
528
|
-
sponsorBrandId: Scalars['String'];
|
|
529
|
-
authorizedUse: Scalars['Boolean'];
|
|
530
|
-
isAuthorizer: Scalars['Boolean'];
|
|
531
|
-
__typename: 'SponsorBrand';
|
|
532
|
-
}
|
|
533
|
-
export interface Sponsor {
|
|
534
|
-
_id: Scalars['String'];
|
|
535
|
-
name: Scalars['String'];
|
|
536
|
-
description: Scalars['String'];
|
|
537
|
-
tenant: Tenant;
|
|
538
|
-
industry: (Industry | null);
|
|
539
|
-
stats: (SponsorStats | null);
|
|
540
|
-
brands: (SponsorBrand[] | null);
|
|
541
|
-
sponsorships: (Sponsorship[] | null);
|
|
542
|
-
approved: Scalars['Boolean'];
|
|
543
|
-
__typename: 'Sponsor';
|
|
544
|
-
}
|
|
545
593
|
export interface Query {
|
|
546
594
|
findTenantById: Tenant;
|
|
547
595
|
findTenantByEmail: Tenant;
|
|
@@ -970,6 +1018,60 @@ export interface AthleteCriteriaGenqlSelection {
|
|
|
970
1018
|
__typename?: boolean | number;
|
|
971
1019
|
__scalar?: boolean | number;
|
|
972
1020
|
}
|
|
1021
|
+
export interface IndustryGenqlSelection {
|
|
1022
|
+
_id?: boolean | number;
|
|
1023
|
+
name?: boolean | number;
|
|
1024
|
+
__typename?: boolean | number;
|
|
1025
|
+
__scalar?: boolean | number;
|
|
1026
|
+
}
|
|
1027
|
+
export interface SponsorStatsGenqlSelection {
|
|
1028
|
+
sponsoredAthletes?: boolean | number;
|
|
1029
|
+
totalBrands?: boolean | number;
|
|
1030
|
+
activeCampaigns?: boolean | number;
|
|
1031
|
+
activeSponsorships?: boolean | number;
|
|
1032
|
+
__typename?: boolean | number;
|
|
1033
|
+
__scalar?: boolean | number;
|
|
1034
|
+
}
|
|
1035
|
+
export interface SponsorBrandGenqlSelection {
|
|
1036
|
+
_id?: boolean | number;
|
|
1037
|
+
name?: boolean | number;
|
|
1038
|
+
slogan?: boolean | number;
|
|
1039
|
+
website?: boolean | number;
|
|
1040
|
+
description?: boolean | number;
|
|
1041
|
+
approved?: boolean | number;
|
|
1042
|
+
published?: boolean | number;
|
|
1043
|
+
logo?: AWSS3FileGenqlSelection;
|
|
1044
|
+
banner?: AWSS3FileGenqlSelection;
|
|
1045
|
+
stats?: BrandStatsGenqlSelection;
|
|
1046
|
+
operatorIds?: boolean | number;
|
|
1047
|
+
translations?: BrandTranslationGenqlSelection;
|
|
1048
|
+
sponsorBrandId?: boolean | number;
|
|
1049
|
+
authorizedUse?: boolean | number;
|
|
1050
|
+
isAuthorizer?: boolean | number;
|
|
1051
|
+
__typename?: boolean | number;
|
|
1052
|
+
__scalar?: boolean | number;
|
|
1053
|
+
}
|
|
1054
|
+
export interface SponsorGenqlSelection {
|
|
1055
|
+
_id?: boolean | number;
|
|
1056
|
+
name?: boolean | number;
|
|
1057
|
+
description?: boolean | number;
|
|
1058
|
+
tenant?: TenantGenqlSelection;
|
|
1059
|
+
industry?: IndustryGenqlSelection;
|
|
1060
|
+
stats?: SponsorStatsGenqlSelection;
|
|
1061
|
+
brands?: SponsorBrandGenqlSelection;
|
|
1062
|
+
sponsorships?: SponsorshipGenqlSelection;
|
|
1063
|
+
approved?: boolean | number;
|
|
1064
|
+
__typename?: boolean | number;
|
|
1065
|
+
__scalar?: boolean | number;
|
|
1066
|
+
}
|
|
1067
|
+
export interface SponsorshipItemGenqlSelection {
|
|
1068
|
+
_id?: boolean | number;
|
|
1069
|
+
title?: boolean | number;
|
|
1070
|
+
value?: boolean | number;
|
|
1071
|
+
type?: boolean | number;
|
|
1072
|
+
__typename?: boolean | number;
|
|
1073
|
+
__scalar?: boolean | number;
|
|
1074
|
+
}
|
|
973
1075
|
export interface SponsorshipStatsGenqlSelection {
|
|
974
1076
|
totalSponsorships?: boolean | number;
|
|
975
1077
|
totalApplications?: boolean | number;
|
|
@@ -1000,13 +1102,60 @@ export interface SponsorshipGenqlSelection {
|
|
|
1000
1102
|
cashValue?: boolean | number;
|
|
1001
1103
|
otherValue?: boolean | number;
|
|
1002
1104
|
brand?: BrandGenqlSelection;
|
|
1003
|
-
terms?: boolean | number;
|
|
1004
1105
|
banner?: AWSS3FileGenqlSelection;
|
|
1106
|
+
criteria?: AthleteCriteriaGenqlSelection;
|
|
1107
|
+
sponsor?: SponsorGenqlSelection;
|
|
1108
|
+
sponsorshipItems?: SponsorshipItemGenqlSelection;
|
|
1109
|
+
commitments?: CommitmentTypeGenqlSelection;
|
|
1110
|
+
terms?: boolean | number;
|
|
1005
1111
|
stats?: SponsorshipStatsGenqlSelection;
|
|
1006
|
-
translations?: SponsorshipTranslationGenqlSelection;
|
|
1007
1112
|
approved?: boolean | number;
|
|
1008
1113
|
published?: boolean | number;
|
|
1009
|
-
|
|
1114
|
+
translations?: SponsorshipTranslationGenqlSelection;
|
|
1115
|
+
__typename?: boolean | number;
|
|
1116
|
+
__scalar?: boolean | number;
|
|
1117
|
+
}
|
|
1118
|
+
export interface CommitmentTypeGenqlSelection {
|
|
1119
|
+
on_SponsorshipCommitment?: SponsorshipCommitmentGenqlSelection;
|
|
1120
|
+
on_DatedSponsorshipCommitment?: DatedSponsorshipCommitmentGenqlSelection;
|
|
1121
|
+
on_RecurrentSponsorshipCommitment?: RecurrentSponsorshipCommitmentGenqlSelection;
|
|
1122
|
+
__typename?: boolean | number;
|
|
1123
|
+
}
|
|
1124
|
+
export interface SponsorshipCommitmentGenqlSelection {
|
|
1125
|
+
_id?: boolean | number;
|
|
1126
|
+
title?: boolean | number;
|
|
1127
|
+
details?: boolean | number;
|
|
1128
|
+
type?: boolean | number;
|
|
1129
|
+
hashTags?: boolean | number;
|
|
1130
|
+
media?: boolean | number;
|
|
1131
|
+
actionType?: boolean | number;
|
|
1132
|
+
autoMeasurable?: boolean | number;
|
|
1133
|
+
__typename?: boolean | number;
|
|
1134
|
+
__scalar?: boolean | number;
|
|
1135
|
+
}
|
|
1136
|
+
export interface DatedSponsorshipCommitmentGenqlSelection {
|
|
1137
|
+
_id?: boolean | number;
|
|
1138
|
+
title?: boolean | number;
|
|
1139
|
+
details?: boolean | number;
|
|
1140
|
+
type?: boolean | number;
|
|
1141
|
+
hashTags?: boolean | number;
|
|
1142
|
+
media?: boolean | number;
|
|
1143
|
+
actionType?: boolean | number;
|
|
1144
|
+
autoMeasurable?: boolean | number;
|
|
1145
|
+
usesTime?: boolean | number;
|
|
1146
|
+
date?: boolean | number;
|
|
1147
|
+
__typename?: boolean | number;
|
|
1148
|
+
__scalar?: boolean | number;
|
|
1149
|
+
}
|
|
1150
|
+
export interface RecurrentSponsorshipCommitmentGenqlSelection {
|
|
1151
|
+
_id?: boolean | number;
|
|
1152
|
+
title?: boolean | number;
|
|
1153
|
+
details?: boolean | number;
|
|
1154
|
+
type?: boolean | number;
|
|
1155
|
+
hashTags?: boolean | number;
|
|
1156
|
+
media?: boolean | number;
|
|
1157
|
+
actionType?: boolean | number;
|
|
1158
|
+
autoMeasurable?: boolean | number;
|
|
1010
1159
|
__typename?: boolean | number;
|
|
1011
1160
|
__scalar?: boolean | number;
|
|
1012
1161
|
}
|
|
@@ -1145,52 +1294,6 @@ export interface AthleteGenqlSelection {
|
|
|
1145
1294
|
__typename?: boolean | number;
|
|
1146
1295
|
__scalar?: boolean | number;
|
|
1147
1296
|
}
|
|
1148
|
-
export interface IndustryGenqlSelection {
|
|
1149
|
-
_id?: boolean | number;
|
|
1150
|
-
name?: boolean | number;
|
|
1151
|
-
__typename?: boolean | number;
|
|
1152
|
-
__scalar?: boolean | number;
|
|
1153
|
-
}
|
|
1154
|
-
export interface SponsorStatsGenqlSelection {
|
|
1155
|
-
sponsoredAthletes?: boolean | number;
|
|
1156
|
-
totalBrands?: boolean | number;
|
|
1157
|
-
activeCampaigns?: boolean | number;
|
|
1158
|
-
activeSponsorships?: boolean | number;
|
|
1159
|
-
__typename?: boolean | number;
|
|
1160
|
-
__scalar?: boolean | number;
|
|
1161
|
-
}
|
|
1162
|
-
export interface SponsorBrandGenqlSelection {
|
|
1163
|
-
_id?: boolean | number;
|
|
1164
|
-
name?: boolean | number;
|
|
1165
|
-
slogan?: boolean | number;
|
|
1166
|
-
website?: boolean | number;
|
|
1167
|
-
description?: boolean | number;
|
|
1168
|
-
approved?: boolean | number;
|
|
1169
|
-
published?: boolean | number;
|
|
1170
|
-
logo?: AWSS3FileGenqlSelection;
|
|
1171
|
-
banner?: AWSS3FileGenqlSelection;
|
|
1172
|
-
stats?: BrandStatsGenqlSelection;
|
|
1173
|
-
operatorIds?: boolean | number;
|
|
1174
|
-
translations?: BrandTranslationGenqlSelection;
|
|
1175
|
-
sponsorBrandId?: boolean | number;
|
|
1176
|
-
authorizedUse?: boolean | number;
|
|
1177
|
-
isAuthorizer?: boolean | number;
|
|
1178
|
-
__typename?: boolean | number;
|
|
1179
|
-
__scalar?: boolean | number;
|
|
1180
|
-
}
|
|
1181
|
-
export interface SponsorGenqlSelection {
|
|
1182
|
-
_id?: boolean | number;
|
|
1183
|
-
name?: boolean | number;
|
|
1184
|
-
description?: boolean | number;
|
|
1185
|
-
tenant?: TenantGenqlSelection;
|
|
1186
|
-
industry?: IndustryGenqlSelection;
|
|
1187
|
-
stats?: SponsorStatsGenqlSelection;
|
|
1188
|
-
brands?: SponsorBrandGenqlSelection;
|
|
1189
|
-
sponsorships?: SponsorshipGenqlSelection;
|
|
1190
|
-
approved?: boolean | number;
|
|
1191
|
-
__typename?: boolean | number;
|
|
1192
|
-
__scalar?: boolean | number;
|
|
1193
|
-
}
|
|
1194
1297
|
export interface ScoreQualificationDto {
|
|
1195
1298
|
type: Scalars['String'];
|
|
1196
1299
|
scoreType: Scalars['String'];
|
|
@@ -1724,6 +1827,21 @@ export declare const isSportsLevelQualification: (obj?: {
|
|
|
1724
1827
|
export declare const isAthleteCriteria: (obj?: {
|
|
1725
1828
|
__typename?: any;
|
|
1726
1829
|
} | null) => obj is AthleteCriteria;
|
|
1830
|
+
export declare const isIndustry: (obj?: {
|
|
1831
|
+
__typename?: any;
|
|
1832
|
+
} | null) => obj is Industry;
|
|
1833
|
+
export declare const isSponsorStats: (obj?: {
|
|
1834
|
+
__typename?: any;
|
|
1835
|
+
} | null) => obj is SponsorStats;
|
|
1836
|
+
export declare const isSponsorBrand: (obj?: {
|
|
1837
|
+
__typename?: any;
|
|
1838
|
+
} | null) => obj is SponsorBrand;
|
|
1839
|
+
export declare const isSponsor: (obj?: {
|
|
1840
|
+
__typename?: any;
|
|
1841
|
+
} | null) => obj is Sponsor;
|
|
1842
|
+
export declare const isSponsorshipItem: (obj?: {
|
|
1843
|
+
__typename?: any;
|
|
1844
|
+
} | null) => obj is SponsorshipItem;
|
|
1727
1845
|
export declare const isSponsorshipStats: (obj?: {
|
|
1728
1846
|
__typename?: any;
|
|
1729
1847
|
} | null) => obj is SponsorshipStats;
|
|
@@ -1733,6 +1851,18 @@ export declare const isSponsorshipTranslation: (obj?: {
|
|
|
1733
1851
|
export declare const isSponsorship: (obj?: {
|
|
1734
1852
|
__typename?: any;
|
|
1735
1853
|
} | null) => obj is Sponsorship;
|
|
1854
|
+
export declare const isCommitmentType: (obj?: {
|
|
1855
|
+
__typename?: any;
|
|
1856
|
+
} | null) => obj is CommitmentType;
|
|
1857
|
+
export declare const isSponsorshipCommitment: (obj?: {
|
|
1858
|
+
__typename?: any;
|
|
1859
|
+
} | null) => obj is SponsorshipCommitment;
|
|
1860
|
+
export declare const isDatedSponsorshipCommitment: (obj?: {
|
|
1861
|
+
__typename?: any;
|
|
1862
|
+
} | null) => obj is DatedSponsorshipCommitment;
|
|
1863
|
+
export declare const isRecurrentSponsorshipCommitment: (obj?: {
|
|
1864
|
+
__typename?: any;
|
|
1865
|
+
} | null) => obj is RecurrentSponsorshipCommitment;
|
|
1736
1866
|
export declare const isFollowStats: (obj?: {
|
|
1737
1867
|
__typename?: any;
|
|
1738
1868
|
} | null) => obj is FollowStats;
|
|
@@ -1772,18 +1902,6 @@ export declare const isWorldLocation: (obj?: {
|
|
|
1772
1902
|
export declare const isAthlete: (obj?: {
|
|
1773
1903
|
__typename?: any;
|
|
1774
1904
|
} | null) => obj is Athlete;
|
|
1775
|
-
export declare const isIndustry: (obj?: {
|
|
1776
|
-
__typename?: any;
|
|
1777
|
-
} | null) => obj is Industry;
|
|
1778
|
-
export declare const isSponsorStats: (obj?: {
|
|
1779
|
-
__typename?: any;
|
|
1780
|
-
} | null) => obj is SponsorStats;
|
|
1781
|
-
export declare const isSponsorBrand: (obj?: {
|
|
1782
|
-
__typename?: any;
|
|
1783
|
-
} | null) => obj is SponsorBrand;
|
|
1784
|
-
export declare const isSponsor: (obj?: {
|
|
1785
|
-
__typename?: any;
|
|
1786
|
-
} | null) => obj is Sponsor;
|
|
1787
1905
|
export declare const isQuery: (obj?: {
|
|
1788
1906
|
__typename?: any;
|
|
1789
1907
|
} | null) => obj is Query;
|
|
@@ -340,6 +340,55 @@ type AthleteCriteria {
|
|
|
340
340
|
qualifications: [Qualification!]
|
|
341
341
|
}
|
|
342
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
|
+
title: String!
|
|
388
|
+
value: Float!
|
|
389
|
+
type: String!
|
|
390
|
+
}
|
|
391
|
+
|
|
343
392
|
type SponsorshipStats {
|
|
344
393
|
totalSponsorships: Float
|
|
345
394
|
totalApplications: Float
|
|
@@ -368,13 +417,53 @@ type Sponsorship {
|
|
|
368
417
|
cashValue: Float!
|
|
369
418
|
otherValue: Float!
|
|
370
419
|
brand: Brand
|
|
371
|
-
terms: String
|
|
372
420
|
banner: AWSS3File
|
|
421
|
+
criteria: AthleteCriteria
|
|
422
|
+
sponsor: Sponsor
|
|
423
|
+
sponsorshipItems: [SponsorshipItem!]
|
|
424
|
+
commitments: [CommitmentType!]
|
|
425
|
+
terms: String
|
|
373
426
|
stats: SponsorshipStats
|
|
374
|
-
translations: [SponsorshipTranslation!]
|
|
375
427
|
approved: Boolean!
|
|
376
428
|
published: Boolean!
|
|
377
|
-
|
|
429
|
+
translations: [SponsorshipTranslation!]
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
union CommitmentType = SponsorshipCommitment | DatedSponsorshipCommitment | RecurrentSponsorshipCommitment
|
|
433
|
+
|
|
434
|
+
type SponsorshipCommitment {
|
|
435
|
+
_id: String!
|
|
436
|
+
title: String!
|
|
437
|
+
details: String
|
|
438
|
+
type: String!
|
|
439
|
+
hashTags: String!
|
|
440
|
+
media: String!
|
|
441
|
+
actionType: String!
|
|
442
|
+
autoMeasurable: Boolean!
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
type DatedSponsorshipCommitment {
|
|
446
|
+
_id: String!
|
|
447
|
+
title: String!
|
|
448
|
+
details: String
|
|
449
|
+
type: String!
|
|
450
|
+
hashTags: String!
|
|
451
|
+
media: String!
|
|
452
|
+
actionType: String!
|
|
453
|
+
autoMeasurable: Boolean!
|
|
454
|
+
usesTime: Boolean!
|
|
455
|
+
date: DateTime!
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
type RecurrentSponsorshipCommitment {
|
|
459
|
+
_id: String!
|
|
460
|
+
title: String!
|
|
461
|
+
details: String
|
|
462
|
+
type: String!
|
|
463
|
+
hashTags: String!
|
|
464
|
+
media: String!
|
|
465
|
+
actionType: String!
|
|
466
|
+
autoMeasurable: Boolean!
|
|
378
467
|
}
|
|
379
468
|
|
|
380
469
|
type FollowStats {
|
|
@@ -499,48 +588,6 @@ type Athlete {
|
|
|
499
588
|
totalPastCompetitions: Float
|
|
500
589
|
}
|
|
501
590
|
|
|
502
|
-
type Industry {
|
|
503
|
-
_id: String!
|
|
504
|
-
name: String!
|
|
505
|
-
}
|
|
506
|
-
|
|
507
|
-
type SponsorStats {
|
|
508
|
-
sponsoredAthletes: Float!
|
|
509
|
-
totalBrands: Float!
|
|
510
|
-
activeCampaigns: Float!
|
|
511
|
-
activeSponsorships: Float!
|
|
512
|
-
}
|
|
513
|
-
|
|
514
|
-
type SponsorBrand {
|
|
515
|
-
_id: String!
|
|
516
|
-
name: String!
|
|
517
|
-
slogan: String
|
|
518
|
-
website: String
|
|
519
|
-
description: String
|
|
520
|
-
approved: Boolean!
|
|
521
|
-
published: Boolean!
|
|
522
|
-
logo: AWSS3File
|
|
523
|
-
banner: AWSS3File
|
|
524
|
-
stats: BrandStats
|
|
525
|
-
operatorIds: [String!]
|
|
526
|
-
translations: [BrandTranslation!]
|
|
527
|
-
sponsorBrandId: String!
|
|
528
|
-
authorizedUse: Boolean!
|
|
529
|
-
isAuthorizer: Boolean!
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
type Sponsor {
|
|
533
|
-
_id: String!
|
|
534
|
-
name: String!
|
|
535
|
-
description: String!
|
|
536
|
-
tenant: Tenant!
|
|
537
|
-
industry: Industry
|
|
538
|
-
stats: SponsorStats
|
|
539
|
-
brands: [SponsorBrand!]
|
|
540
|
-
sponsorships: [Sponsorship!]
|
|
541
|
-
approved: Boolean!
|
|
542
|
-
}
|
|
543
|
-
|
|
544
591
|
input ScoreQualificationDto {
|
|
545
592
|
type: String!
|
|
546
593
|
scoreType: String!
|
package/src/client/schema.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.isMutation = exports.isQuery = exports.
|
|
3
|
+
exports.isDatedSponsorshipCommitment = exports.isSponsorshipCommitment = exports.isCommitmentType = exports.isSponsorship = exports.isSponsorshipTranslation = exports.isSponsorshipStats = exports.isSponsorshipItem = exports.isSponsor = exports.isSponsorBrand = exports.isSponsorStats = exports.isIndustry = exports.isAthleteCriteria = exports.isSportsLevelQualification = exports.isSportsQualification = exports.isDistanceQualification = exports.isLocationQualification = exports.isScoreQualification = exports.isQualification = exports.isCountry = exports.isState = exports.isCity = exports.isBrand = exports.isBrandTranslation = exports.isBrandStats = exports.isAWSS3CallResult = exports.isAWSS3UploadUrl = exports.isHttpRequestField = exports.isAWSS3File = exports.isSubscriptionPayment = exports.isPlanSubscription = exports.isSubscriptionInvoice = exports.isInvoice = exports.isPlanPrice = exports.isPlan = exports.isPlaFeature = exports.isPayment = exports.isInvoiceItem = exports.isBillEntity = exports.isAgreement = exports.isUriAvailableType = exports.isTenantWithUserLogin = exports.isDecodedRefreshToken = exports.isDecodedToken = exports.isUserToken = exports.isDomainCredential = exports.isDomain = exports.isTenant = exports.isBaseTenant = exports.isUserWithToken = exports.isUser = void 0;
|
|
4
|
+
exports.isMutation = exports.isQuery = exports.isAthlete = exports.isWorldLocation = exports.isAthleteCompetition = exports.isAthleteCompetitionResult = exports.isSportsEvent = exports.isTeam = exports.isAthleteRankings = exports.isRanking = exports.isSportLevel = exports.isSportLevelTranslation = exports.isVtxScores = exports.isSport = exports.isFollowStats = exports.isRecurrentSponsorshipCommitment = void 0;
|
|
5
5
|
const User_possibleTypes = ['User'];
|
|
6
6
|
const isUser = (obj) => {
|
|
7
7
|
if (!obj?.__typename)
|
|
@@ -275,6 +275,41 @@ const isAthleteCriteria = (obj) => {
|
|
|
275
275
|
return AthleteCriteria_possibleTypes.includes(obj.__typename);
|
|
276
276
|
};
|
|
277
277
|
exports.isAthleteCriteria = isAthleteCriteria;
|
|
278
|
+
const Industry_possibleTypes = ['Industry'];
|
|
279
|
+
const isIndustry = (obj) => {
|
|
280
|
+
if (!obj?.__typename)
|
|
281
|
+
throw new Error('__typename is missing in "isIndustry"');
|
|
282
|
+
return Industry_possibleTypes.includes(obj.__typename);
|
|
283
|
+
};
|
|
284
|
+
exports.isIndustry = isIndustry;
|
|
285
|
+
const SponsorStats_possibleTypes = ['SponsorStats'];
|
|
286
|
+
const isSponsorStats = (obj) => {
|
|
287
|
+
if (!obj?.__typename)
|
|
288
|
+
throw new Error('__typename is missing in "isSponsorStats"');
|
|
289
|
+
return SponsorStats_possibleTypes.includes(obj.__typename);
|
|
290
|
+
};
|
|
291
|
+
exports.isSponsorStats = isSponsorStats;
|
|
292
|
+
const SponsorBrand_possibleTypes = ['SponsorBrand'];
|
|
293
|
+
const isSponsorBrand = (obj) => {
|
|
294
|
+
if (!obj?.__typename)
|
|
295
|
+
throw new Error('__typename is missing in "isSponsorBrand"');
|
|
296
|
+
return SponsorBrand_possibleTypes.includes(obj.__typename);
|
|
297
|
+
};
|
|
298
|
+
exports.isSponsorBrand = isSponsorBrand;
|
|
299
|
+
const Sponsor_possibleTypes = ['Sponsor'];
|
|
300
|
+
const isSponsor = (obj) => {
|
|
301
|
+
if (!obj?.__typename)
|
|
302
|
+
throw new Error('__typename is missing in "isSponsor"');
|
|
303
|
+
return Sponsor_possibleTypes.includes(obj.__typename);
|
|
304
|
+
};
|
|
305
|
+
exports.isSponsor = isSponsor;
|
|
306
|
+
const SponsorshipItem_possibleTypes = ['SponsorshipItem'];
|
|
307
|
+
const isSponsorshipItem = (obj) => {
|
|
308
|
+
if (!obj?.__typename)
|
|
309
|
+
throw new Error('__typename is missing in "isSponsorshipItem"');
|
|
310
|
+
return SponsorshipItem_possibleTypes.includes(obj.__typename);
|
|
311
|
+
};
|
|
312
|
+
exports.isSponsorshipItem = isSponsorshipItem;
|
|
278
313
|
const SponsorshipStats_possibleTypes = ['SponsorshipStats'];
|
|
279
314
|
const isSponsorshipStats = (obj) => {
|
|
280
315
|
if (!obj?.__typename)
|
|
@@ -296,6 +331,34 @@ const isSponsorship = (obj) => {
|
|
|
296
331
|
return Sponsorship_possibleTypes.includes(obj.__typename);
|
|
297
332
|
};
|
|
298
333
|
exports.isSponsorship = isSponsorship;
|
|
334
|
+
const CommitmentType_possibleTypes = ['SponsorshipCommitment', 'DatedSponsorshipCommitment', 'RecurrentSponsorshipCommitment'];
|
|
335
|
+
const isCommitmentType = (obj) => {
|
|
336
|
+
if (!obj?.__typename)
|
|
337
|
+
throw new Error('__typename is missing in "isCommitmentType"');
|
|
338
|
+
return CommitmentType_possibleTypes.includes(obj.__typename);
|
|
339
|
+
};
|
|
340
|
+
exports.isCommitmentType = isCommitmentType;
|
|
341
|
+
const SponsorshipCommitment_possibleTypes = ['SponsorshipCommitment'];
|
|
342
|
+
const isSponsorshipCommitment = (obj) => {
|
|
343
|
+
if (!obj?.__typename)
|
|
344
|
+
throw new Error('__typename is missing in "isSponsorshipCommitment"');
|
|
345
|
+
return SponsorshipCommitment_possibleTypes.includes(obj.__typename);
|
|
346
|
+
};
|
|
347
|
+
exports.isSponsorshipCommitment = isSponsorshipCommitment;
|
|
348
|
+
const DatedSponsorshipCommitment_possibleTypes = ['DatedSponsorshipCommitment'];
|
|
349
|
+
const isDatedSponsorshipCommitment = (obj) => {
|
|
350
|
+
if (!obj?.__typename)
|
|
351
|
+
throw new Error('__typename is missing in "isDatedSponsorshipCommitment"');
|
|
352
|
+
return DatedSponsorshipCommitment_possibleTypes.includes(obj.__typename);
|
|
353
|
+
};
|
|
354
|
+
exports.isDatedSponsorshipCommitment = isDatedSponsorshipCommitment;
|
|
355
|
+
const RecurrentSponsorshipCommitment_possibleTypes = ['RecurrentSponsorshipCommitment'];
|
|
356
|
+
const isRecurrentSponsorshipCommitment = (obj) => {
|
|
357
|
+
if (!obj?.__typename)
|
|
358
|
+
throw new Error('__typename is missing in "isRecurrentSponsorshipCommitment"');
|
|
359
|
+
return RecurrentSponsorshipCommitment_possibleTypes.includes(obj.__typename);
|
|
360
|
+
};
|
|
361
|
+
exports.isRecurrentSponsorshipCommitment = isRecurrentSponsorshipCommitment;
|
|
299
362
|
const FollowStats_possibleTypes = ['FollowStats'];
|
|
300
363
|
const isFollowStats = (obj) => {
|
|
301
364
|
if (!obj?.__typename)
|
|
@@ -387,34 +450,6 @@ const isAthlete = (obj) => {
|
|
|
387
450
|
return Athlete_possibleTypes.includes(obj.__typename);
|
|
388
451
|
};
|
|
389
452
|
exports.isAthlete = isAthlete;
|
|
390
|
-
const Industry_possibleTypes = ['Industry'];
|
|
391
|
-
const isIndustry = (obj) => {
|
|
392
|
-
if (!obj?.__typename)
|
|
393
|
-
throw new Error('__typename is missing in "isIndustry"');
|
|
394
|
-
return Industry_possibleTypes.includes(obj.__typename);
|
|
395
|
-
};
|
|
396
|
-
exports.isIndustry = isIndustry;
|
|
397
|
-
const SponsorStats_possibleTypes = ['SponsorStats'];
|
|
398
|
-
const isSponsorStats = (obj) => {
|
|
399
|
-
if (!obj?.__typename)
|
|
400
|
-
throw new Error('__typename is missing in "isSponsorStats"');
|
|
401
|
-
return SponsorStats_possibleTypes.includes(obj.__typename);
|
|
402
|
-
};
|
|
403
|
-
exports.isSponsorStats = isSponsorStats;
|
|
404
|
-
const SponsorBrand_possibleTypes = ['SponsorBrand'];
|
|
405
|
-
const isSponsorBrand = (obj) => {
|
|
406
|
-
if (!obj?.__typename)
|
|
407
|
-
throw new Error('__typename is missing in "isSponsorBrand"');
|
|
408
|
-
return SponsorBrand_possibleTypes.includes(obj.__typename);
|
|
409
|
-
};
|
|
410
|
-
exports.isSponsorBrand = isSponsorBrand;
|
|
411
|
-
const Sponsor_possibleTypes = ['Sponsor'];
|
|
412
|
-
const isSponsor = (obj) => {
|
|
413
|
-
if (!obj?.__typename)
|
|
414
|
-
throw new Error('__typename is missing in "isSponsor"');
|
|
415
|
-
return Sponsor_possibleTypes.includes(obj.__typename);
|
|
416
|
-
};
|
|
417
|
-
exports.isSponsor = isSponsor;
|
|
418
453
|
const Query_possibleTypes = ['Query'];
|
|
419
454
|
const isQuery = (obj) => {
|
|
420
455
|
if (!obj?.__typename)
|