@vertikalx/vtx-backend-client 1.0.0-dev-daniel.66 → 1.0.0-dev-daniel.67
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/domains.d.ts +3 -0
- package/src/api/domains.js +7 -0
- package/src/api/domains.js.map +1 -0
- package/src/api/vtx-base-api.d.ts +4 -1
- package/src/api/vtx-base-api.js +144 -0
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +209 -112
- package/src/client/schema.graphql +87 -46
- package/src/client/schema.js +58 -30
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +90 -48
- package/src/client/types.js +308 -198
- package/src/client/types.js.map +1 -1
- package/src/index.d.ts +1 -0
- package/src/index.js +1 -0
- package/src/index.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
package/src/client/schema.d.ts
CHANGED
|
@@ -341,7 +341,57 @@ 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 {
|
|
394
|
+
totalSponsorships: (Scalars['Float'] | null);
|
|
345
395
|
totalApplications: (Scalars['Float'] | null);
|
|
346
396
|
newApplications: (Scalars['Float'] | null);
|
|
347
397
|
discardedApplications: (Scalars['Float'] | null);
|
|
@@ -365,15 +415,48 @@ export interface Sponsorship {
|
|
|
365
415
|
_id: Scalars['String'];
|
|
366
416
|
title: Scalars['String'];
|
|
367
417
|
description: (Scalars['String'] | null);
|
|
368
|
-
|
|
418
|
+
cashValue: Scalars['Float'];
|
|
419
|
+
otherValue: Scalars['Float'];
|
|
420
|
+
brand: (Brand | null);
|
|
369
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);
|
|
370
427
|
stats: (SponsorshipStats | null);
|
|
371
|
-
translations: (SponsorshipTranslation[] | null);
|
|
372
428
|
approved: Scalars['Boolean'];
|
|
373
429
|
published: Scalars['Boolean'];
|
|
374
|
-
|
|
430
|
+
translations: (SponsorshipTranslation[] | null);
|
|
375
431
|
__typename: 'Sponsorship';
|
|
376
432
|
}
|
|
433
|
+
export type CommitmentType = (SponsorshipCommitment | DatedSponsorshipCommitment) & {
|
|
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
|
+
}
|
|
377
460
|
export interface FollowStats {
|
|
378
461
|
followers: Scalars['Float'];
|
|
379
462
|
followed: Scalars['Float'];
|
|
@@ -496,48 +579,6 @@ export interface Athlete {
|
|
|
496
579
|
totalPastCompetitions: (Scalars['Float'] | null);
|
|
497
580
|
__typename: 'Athlete';
|
|
498
581
|
}
|
|
499
|
-
export interface Industry {
|
|
500
|
-
_id: Scalars['String'];
|
|
501
|
-
name: Scalars['String'];
|
|
502
|
-
__typename: 'Industry';
|
|
503
|
-
}
|
|
504
|
-
export interface SponsorStats {
|
|
505
|
-
sponsoredAthletes: Scalars['Float'];
|
|
506
|
-
totalBrands: Scalars['Float'];
|
|
507
|
-
activeCampaigns: Scalars['Float'];
|
|
508
|
-
activeSponsorships: Scalars['Float'];
|
|
509
|
-
__typename: 'SponsorStats';
|
|
510
|
-
}
|
|
511
|
-
export interface SponsorBrand {
|
|
512
|
-
_id: Scalars['String'];
|
|
513
|
-
name: Scalars['String'];
|
|
514
|
-
slogan: (Scalars['String'] | null);
|
|
515
|
-
website: (Scalars['String'] | null);
|
|
516
|
-
description: (Scalars['String'] | null);
|
|
517
|
-
approved: Scalars['Boolean'];
|
|
518
|
-
published: Scalars['Boolean'];
|
|
519
|
-
logo: (AWSS3File | null);
|
|
520
|
-
banner: (AWSS3File | null);
|
|
521
|
-
stats: (BrandStats | null);
|
|
522
|
-
operatorIds: (Scalars['String'][] | null);
|
|
523
|
-
translations: (BrandTranslation[] | null);
|
|
524
|
-
sponsorBrandId: Scalars['String'];
|
|
525
|
-
authorizedUse: Scalars['Boolean'];
|
|
526
|
-
isAuthorizer: Scalars['Boolean'];
|
|
527
|
-
__typename: 'SponsorBrand';
|
|
528
|
-
}
|
|
529
|
-
export interface Sponsor {
|
|
530
|
-
_id: Scalars['String'];
|
|
531
|
-
name: Scalars['String'];
|
|
532
|
-
description: Scalars['String'];
|
|
533
|
-
tenant: Tenant;
|
|
534
|
-
industry: (Industry | null);
|
|
535
|
-
stats: (SponsorStats | null);
|
|
536
|
-
brands: (SponsorBrand[] | null);
|
|
537
|
-
sponsorships: (Sponsorship[] | null);
|
|
538
|
-
approved: Scalars['Boolean'];
|
|
539
|
-
__typename: 'Sponsor';
|
|
540
|
-
}
|
|
541
582
|
export interface Query {
|
|
542
583
|
findTenantById: Tenant;
|
|
543
584
|
findTenantByEmail: Tenant;
|
|
@@ -558,7 +599,8 @@ export interface Query {
|
|
|
558
599
|
getSports: Sport[];
|
|
559
600
|
findSportById: Sport;
|
|
560
601
|
getSportLevels: SportLevel[];
|
|
561
|
-
|
|
602
|
+
getPublicSponsorships: Sponsorship[];
|
|
603
|
+
getTenantSponsorships: Sponsorship[];
|
|
562
604
|
getCountries: Country[];
|
|
563
605
|
getCountryStates: State[];
|
|
564
606
|
getStateCities: City[];
|
|
@@ -965,7 +1007,62 @@ export interface AthleteCriteriaGenqlSelection {
|
|
|
965
1007
|
__typename?: boolean | number;
|
|
966
1008
|
__scalar?: boolean | number;
|
|
967
1009
|
}
|
|
1010
|
+
export interface IndustryGenqlSelection {
|
|
1011
|
+
_id?: boolean | number;
|
|
1012
|
+
name?: boolean | number;
|
|
1013
|
+
__typename?: boolean | number;
|
|
1014
|
+
__scalar?: boolean | number;
|
|
1015
|
+
}
|
|
1016
|
+
export interface SponsorStatsGenqlSelection {
|
|
1017
|
+
sponsoredAthletes?: boolean | number;
|
|
1018
|
+
totalBrands?: boolean | number;
|
|
1019
|
+
activeCampaigns?: boolean | number;
|
|
1020
|
+
activeSponsorships?: boolean | number;
|
|
1021
|
+
__typename?: boolean | number;
|
|
1022
|
+
__scalar?: boolean | number;
|
|
1023
|
+
}
|
|
1024
|
+
export interface SponsorBrandGenqlSelection {
|
|
1025
|
+
_id?: boolean | number;
|
|
1026
|
+
name?: boolean | number;
|
|
1027
|
+
slogan?: boolean | number;
|
|
1028
|
+
website?: boolean | number;
|
|
1029
|
+
description?: boolean | number;
|
|
1030
|
+
approved?: boolean | number;
|
|
1031
|
+
published?: boolean | number;
|
|
1032
|
+
logo?: AWSS3FileGenqlSelection;
|
|
1033
|
+
banner?: AWSS3FileGenqlSelection;
|
|
1034
|
+
stats?: BrandStatsGenqlSelection;
|
|
1035
|
+
operatorIds?: boolean | number;
|
|
1036
|
+
translations?: BrandTranslationGenqlSelection;
|
|
1037
|
+
sponsorBrandId?: boolean | number;
|
|
1038
|
+
authorizedUse?: boolean | number;
|
|
1039
|
+
isAuthorizer?: boolean | number;
|
|
1040
|
+
__typename?: boolean | number;
|
|
1041
|
+
__scalar?: boolean | number;
|
|
1042
|
+
}
|
|
1043
|
+
export interface SponsorGenqlSelection {
|
|
1044
|
+
_id?: boolean | number;
|
|
1045
|
+
name?: boolean | number;
|
|
1046
|
+
description?: boolean | number;
|
|
1047
|
+
tenant?: TenantGenqlSelection;
|
|
1048
|
+
industry?: IndustryGenqlSelection;
|
|
1049
|
+
stats?: SponsorStatsGenqlSelection;
|
|
1050
|
+
brands?: SponsorBrandGenqlSelection;
|
|
1051
|
+
sponsorships?: SponsorshipGenqlSelection;
|
|
1052
|
+
approved?: boolean | number;
|
|
1053
|
+
__typename?: boolean | number;
|
|
1054
|
+
__scalar?: boolean | number;
|
|
1055
|
+
}
|
|
1056
|
+
export interface SponsorshipItemGenqlSelection {
|
|
1057
|
+
_id?: boolean | number;
|
|
1058
|
+
title?: boolean | number;
|
|
1059
|
+
value?: boolean | number;
|
|
1060
|
+
type?: boolean | number;
|
|
1061
|
+
__typename?: boolean | number;
|
|
1062
|
+
__scalar?: boolean | number;
|
|
1063
|
+
}
|
|
968
1064
|
export interface SponsorshipStatsGenqlSelection {
|
|
1065
|
+
totalSponsorships?: boolean | number;
|
|
969
1066
|
totalApplications?: boolean | number;
|
|
970
1067
|
newApplications?: boolean | number;
|
|
971
1068
|
discardedApplications?: boolean | number;
|
|
@@ -991,13 +1088,50 @@ export interface SponsorshipGenqlSelection {
|
|
|
991
1088
|
_id?: boolean | number;
|
|
992
1089
|
title?: boolean | number;
|
|
993
1090
|
description?: boolean | number;
|
|
994
|
-
|
|
1091
|
+
cashValue?: boolean | number;
|
|
1092
|
+
otherValue?: boolean | number;
|
|
1093
|
+
brand?: BrandGenqlSelection;
|
|
995
1094
|
banner?: AWSS3FileGenqlSelection;
|
|
1095
|
+
criteria?: AthleteCriteriaGenqlSelection;
|
|
1096
|
+
sponsor?: SponsorGenqlSelection;
|
|
1097
|
+
sponsorshipItems?: SponsorshipItemGenqlSelection;
|
|
1098
|
+
commitments?: CommitmentTypeGenqlSelection;
|
|
1099
|
+
terms?: boolean | number;
|
|
996
1100
|
stats?: SponsorshipStatsGenqlSelection;
|
|
997
|
-
translations?: SponsorshipTranslationGenqlSelection;
|
|
998
1101
|
approved?: boolean | number;
|
|
999
1102
|
published?: boolean | number;
|
|
1000
|
-
|
|
1103
|
+
translations?: SponsorshipTranslationGenqlSelection;
|
|
1104
|
+
__typename?: boolean | number;
|
|
1105
|
+
__scalar?: boolean | number;
|
|
1106
|
+
}
|
|
1107
|
+
export interface CommitmentTypeGenqlSelection {
|
|
1108
|
+
on_SponsorshipCommitment?: SponsorshipCommitmentGenqlSelection;
|
|
1109
|
+
on_DatedSponsorshipCommitment?: DatedSponsorshipCommitmentGenqlSelection;
|
|
1110
|
+
__typename?: boolean | number;
|
|
1111
|
+
}
|
|
1112
|
+
export interface SponsorshipCommitmentGenqlSelection {
|
|
1113
|
+
_id?: boolean | number;
|
|
1114
|
+
title?: boolean | number;
|
|
1115
|
+
details?: boolean | number;
|
|
1116
|
+
type?: boolean | number;
|
|
1117
|
+
hashTags?: boolean | number;
|
|
1118
|
+
media?: boolean | number;
|
|
1119
|
+
actionType?: boolean | number;
|
|
1120
|
+
autoMeasurable?: boolean | number;
|
|
1121
|
+
__typename?: boolean | number;
|
|
1122
|
+
__scalar?: boolean | number;
|
|
1123
|
+
}
|
|
1124
|
+
export interface DatedSponsorshipCommitmentGenqlSelection {
|
|
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
|
+
usesTime?: boolean | number;
|
|
1134
|
+
date?: boolean | number;
|
|
1001
1135
|
__typename?: boolean | number;
|
|
1002
1136
|
__scalar?: boolean | number;
|
|
1003
1137
|
}
|
|
@@ -1136,52 +1270,6 @@ export interface AthleteGenqlSelection {
|
|
|
1136
1270
|
__typename?: boolean | number;
|
|
1137
1271
|
__scalar?: boolean | number;
|
|
1138
1272
|
}
|
|
1139
|
-
export interface IndustryGenqlSelection {
|
|
1140
|
-
_id?: boolean | number;
|
|
1141
|
-
name?: boolean | number;
|
|
1142
|
-
__typename?: boolean | number;
|
|
1143
|
-
__scalar?: boolean | number;
|
|
1144
|
-
}
|
|
1145
|
-
export interface SponsorStatsGenqlSelection {
|
|
1146
|
-
sponsoredAthletes?: boolean | number;
|
|
1147
|
-
totalBrands?: boolean | number;
|
|
1148
|
-
activeCampaigns?: boolean | number;
|
|
1149
|
-
activeSponsorships?: boolean | number;
|
|
1150
|
-
__typename?: boolean | number;
|
|
1151
|
-
__scalar?: boolean | number;
|
|
1152
|
-
}
|
|
1153
|
-
export interface SponsorBrandGenqlSelection {
|
|
1154
|
-
_id?: boolean | number;
|
|
1155
|
-
name?: boolean | number;
|
|
1156
|
-
slogan?: boolean | number;
|
|
1157
|
-
website?: boolean | number;
|
|
1158
|
-
description?: boolean | number;
|
|
1159
|
-
approved?: boolean | number;
|
|
1160
|
-
published?: boolean | number;
|
|
1161
|
-
logo?: AWSS3FileGenqlSelection;
|
|
1162
|
-
banner?: AWSS3FileGenqlSelection;
|
|
1163
|
-
stats?: BrandStatsGenqlSelection;
|
|
1164
|
-
operatorIds?: boolean | number;
|
|
1165
|
-
translations?: BrandTranslationGenqlSelection;
|
|
1166
|
-
sponsorBrandId?: boolean | number;
|
|
1167
|
-
authorizedUse?: boolean | number;
|
|
1168
|
-
isAuthorizer?: boolean | number;
|
|
1169
|
-
__typename?: boolean | number;
|
|
1170
|
-
__scalar?: boolean | number;
|
|
1171
|
-
}
|
|
1172
|
-
export interface SponsorGenqlSelection {
|
|
1173
|
-
_id?: boolean | number;
|
|
1174
|
-
name?: boolean | number;
|
|
1175
|
-
description?: boolean | number;
|
|
1176
|
-
tenant?: TenantGenqlSelection;
|
|
1177
|
-
industry?: IndustryGenqlSelection;
|
|
1178
|
-
stats?: SponsorStatsGenqlSelection;
|
|
1179
|
-
brands?: SponsorBrandGenqlSelection;
|
|
1180
|
-
sponsorships?: SponsorshipGenqlSelection;
|
|
1181
|
-
approved?: boolean | number;
|
|
1182
|
-
__typename?: boolean | number;
|
|
1183
|
-
__scalar?: boolean | number;
|
|
1184
|
-
}
|
|
1185
1273
|
export interface ScoreQualificationDto {
|
|
1186
1274
|
type: Scalars['String'];
|
|
1187
1275
|
scoreType: Scalars['String'];
|
|
@@ -1297,11 +1385,8 @@ export interface QueryGenqlSelection {
|
|
|
1297
1385
|
};
|
|
1298
1386
|
});
|
|
1299
1387
|
getSportLevels?: SportLevelGenqlSelection;
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
sponsorId: Scalars['String'];
|
|
1303
|
-
};
|
|
1304
|
-
});
|
|
1388
|
+
getPublicSponsorships?: SponsorshipGenqlSelection;
|
|
1389
|
+
getTenantSponsorships?: SponsorshipGenqlSelection;
|
|
1305
1390
|
getCountries?: CountryGenqlSelection;
|
|
1306
1391
|
getCountryStates?: (StateGenqlSelection & {
|
|
1307
1392
|
__args: {
|
|
@@ -1718,6 +1803,21 @@ export declare const isSportsLevelQualification: (obj?: {
|
|
|
1718
1803
|
export declare const isAthleteCriteria: (obj?: {
|
|
1719
1804
|
__typename?: any;
|
|
1720
1805
|
} | null) => obj is AthleteCriteria;
|
|
1806
|
+
export declare const isIndustry: (obj?: {
|
|
1807
|
+
__typename?: any;
|
|
1808
|
+
} | null) => obj is Industry;
|
|
1809
|
+
export declare const isSponsorStats: (obj?: {
|
|
1810
|
+
__typename?: any;
|
|
1811
|
+
} | null) => obj is SponsorStats;
|
|
1812
|
+
export declare const isSponsorBrand: (obj?: {
|
|
1813
|
+
__typename?: any;
|
|
1814
|
+
} | null) => obj is SponsorBrand;
|
|
1815
|
+
export declare const isSponsor: (obj?: {
|
|
1816
|
+
__typename?: any;
|
|
1817
|
+
} | null) => obj is Sponsor;
|
|
1818
|
+
export declare const isSponsorshipItem: (obj?: {
|
|
1819
|
+
__typename?: any;
|
|
1820
|
+
} | null) => obj is SponsorshipItem;
|
|
1721
1821
|
export declare const isSponsorshipStats: (obj?: {
|
|
1722
1822
|
__typename?: any;
|
|
1723
1823
|
} | null) => obj is SponsorshipStats;
|
|
@@ -1727,6 +1827,15 @@ export declare const isSponsorshipTranslation: (obj?: {
|
|
|
1727
1827
|
export declare const isSponsorship: (obj?: {
|
|
1728
1828
|
__typename?: any;
|
|
1729
1829
|
} | null) => obj is Sponsorship;
|
|
1830
|
+
export declare const isCommitmentType: (obj?: {
|
|
1831
|
+
__typename?: any;
|
|
1832
|
+
} | null) => obj is CommitmentType;
|
|
1833
|
+
export declare const isSponsorshipCommitment: (obj?: {
|
|
1834
|
+
__typename?: any;
|
|
1835
|
+
} | null) => obj is SponsorshipCommitment;
|
|
1836
|
+
export declare const isDatedSponsorshipCommitment: (obj?: {
|
|
1837
|
+
__typename?: any;
|
|
1838
|
+
} | null) => obj is DatedSponsorshipCommitment;
|
|
1730
1839
|
export declare const isFollowStats: (obj?: {
|
|
1731
1840
|
__typename?: any;
|
|
1732
1841
|
} | null) => obj is FollowStats;
|
|
@@ -1766,18 +1875,6 @@ export declare const isWorldLocation: (obj?: {
|
|
|
1766
1875
|
export declare const isAthlete: (obj?: {
|
|
1767
1876
|
__typename?: any;
|
|
1768
1877
|
} | null) => obj is Athlete;
|
|
1769
|
-
export declare const isIndustry: (obj?: {
|
|
1770
|
-
__typename?: any;
|
|
1771
|
-
} | null) => obj is Industry;
|
|
1772
|
-
export declare const isSponsorStats: (obj?: {
|
|
1773
|
-
__typename?: any;
|
|
1774
|
-
} | null) => obj is SponsorStats;
|
|
1775
|
-
export declare const isSponsorBrand: (obj?: {
|
|
1776
|
-
__typename?: any;
|
|
1777
|
-
} | null) => obj is SponsorBrand;
|
|
1778
|
-
export declare const isSponsor: (obj?: {
|
|
1779
|
-
__typename?: any;
|
|
1780
|
-
} | null) => obj is Sponsor;
|
|
1781
1878
|
export declare const isQuery: (obj?: {
|
|
1782
1879
|
__typename?: any;
|
|
1783
1880
|
} | null) => obj is Query;
|
|
@@ -340,7 +340,57 @@ 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 {
|
|
393
|
+
totalSponsorships: Float
|
|
344
394
|
totalApplications: Float
|
|
345
395
|
newApplications: Float
|
|
346
396
|
discardedApplications: Float
|
|
@@ -364,13 +414,45 @@ type Sponsorship {
|
|
|
364
414
|
_id: String!
|
|
365
415
|
title: String!
|
|
366
416
|
description: String
|
|
367
|
-
|
|
417
|
+
cashValue: Float!
|
|
418
|
+
otherValue: Float!
|
|
419
|
+
brand: Brand
|
|
368
420
|
banner: AWSS3File
|
|
421
|
+
criteria: AthleteCriteria
|
|
422
|
+
sponsor: Sponsor
|
|
423
|
+
sponsorshipItems: [SponsorshipItem!]
|
|
424
|
+
commitments: [CommitmentType!]
|
|
425
|
+
terms: String
|
|
369
426
|
stats: SponsorshipStats
|
|
370
|
-
translations: [SponsorshipTranslation!]
|
|
371
427
|
approved: Boolean!
|
|
372
428
|
published: Boolean!
|
|
373
|
-
|
|
429
|
+
translations: [SponsorshipTranslation!]
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
union CommitmentType = SponsorshipCommitment | DatedSponsorshipCommitment
|
|
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!
|
|
374
456
|
}
|
|
375
457
|
|
|
376
458
|
type FollowStats {
|
|
@@ -495,48 +577,6 @@ type Athlete {
|
|
|
495
577
|
totalPastCompetitions: Float
|
|
496
578
|
}
|
|
497
579
|
|
|
498
|
-
type Industry {
|
|
499
|
-
_id: String!
|
|
500
|
-
name: String!
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
type SponsorStats {
|
|
504
|
-
sponsoredAthletes: Float!
|
|
505
|
-
totalBrands: Float!
|
|
506
|
-
activeCampaigns: Float!
|
|
507
|
-
activeSponsorships: Float!
|
|
508
|
-
}
|
|
509
|
-
|
|
510
|
-
type SponsorBrand {
|
|
511
|
-
_id: String!
|
|
512
|
-
name: String!
|
|
513
|
-
slogan: String
|
|
514
|
-
website: String
|
|
515
|
-
description: String
|
|
516
|
-
approved: Boolean!
|
|
517
|
-
published: Boolean!
|
|
518
|
-
logo: AWSS3File
|
|
519
|
-
banner: AWSS3File
|
|
520
|
-
stats: BrandStats
|
|
521
|
-
operatorIds: [String!]
|
|
522
|
-
translations: [BrandTranslation!]
|
|
523
|
-
sponsorBrandId: String!
|
|
524
|
-
authorizedUse: Boolean!
|
|
525
|
-
isAuthorizer: Boolean!
|
|
526
|
-
}
|
|
527
|
-
|
|
528
|
-
type Sponsor {
|
|
529
|
-
_id: String!
|
|
530
|
-
name: String!
|
|
531
|
-
description: String!
|
|
532
|
-
tenant: Tenant!
|
|
533
|
-
industry: Industry
|
|
534
|
-
stats: SponsorStats
|
|
535
|
-
brands: [SponsorBrand!]
|
|
536
|
-
sponsorships: [Sponsorship!]
|
|
537
|
-
approved: Boolean!
|
|
538
|
-
}
|
|
539
|
-
|
|
540
580
|
input ScoreQualificationDto {
|
|
541
581
|
type: String!
|
|
542
582
|
scoreType: String!
|
|
@@ -609,7 +649,8 @@ type Query {
|
|
|
609
649
|
getSports: [Sport!]!
|
|
610
650
|
findSportById(sportId: String!): Sport!
|
|
611
651
|
getSportLevels: [SportLevel!]!
|
|
612
|
-
|
|
652
|
+
getPublicSponsorships: [Sponsorship!]!
|
|
653
|
+
getTenantSponsorships: [Sponsorship!]!
|
|
613
654
|
getCountries: [Country!]!
|
|
614
655
|
getCountryStates(countryId: String!): [State!]!
|
|
615
656
|
getStateCities(stateId: String!): [City!]!
|
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 = 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,27 @@ const isSponsorship = (obj) => {
|
|
|
296
331
|
return Sponsorship_possibleTypes.includes(obj.__typename);
|
|
297
332
|
};
|
|
298
333
|
exports.isSponsorship = isSponsorship;
|
|
334
|
+
const CommitmentType_possibleTypes = ['SponsorshipCommitment', 'DatedSponsorshipCommitment'];
|
|
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;
|
|
299
355
|
const FollowStats_possibleTypes = ['FollowStats'];
|
|
300
356
|
const isFollowStats = (obj) => {
|
|
301
357
|
if (!obj?.__typename)
|
|
@@ -387,34 +443,6 @@ const isAthlete = (obj) => {
|
|
|
387
443
|
return Athlete_possibleTypes.includes(obj.__typename);
|
|
388
444
|
};
|
|
389
445
|
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
446
|
const Query_possibleTypes = ['Query'];
|
|
419
447
|
const isQuery = (obj) => {
|
|
420
448
|
if (!obj?.__typename)
|