@vertikalx/vtx-backend-client 1.0.0-dev-daniel.51 → 1.0.0-dev-daniel.52
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 +344 -12
- package/src/client/schema.graphql +193 -3
- package/src/client/schema.js +102 -11
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +197 -3
- package/src/client/types.js +512 -38
- 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
|
@@ -258,16 +258,99 @@ export interface Brand {
|
|
|
258
258
|
translations: (BrandTranslation[] | null);
|
|
259
259
|
__typename: 'Brand';
|
|
260
260
|
}
|
|
261
|
-
export interface
|
|
261
|
+
export interface CountryReference {
|
|
262
262
|
_id: Scalars['String'];
|
|
263
263
|
name: Scalars['String'];
|
|
264
|
-
|
|
265
|
-
__typename: 'Sponsor';
|
|
264
|
+
__typename: 'CountryReference';
|
|
266
265
|
}
|
|
267
|
-
export interface
|
|
266
|
+
export interface StateReference {
|
|
268
267
|
_id: Scalars['String'];
|
|
269
268
|
name: Scalars['String'];
|
|
270
|
-
|
|
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
|
+
banner: (AWSS3File | null);
|
|
348
|
+
stats: (SponsorshipStats | null);
|
|
349
|
+
translations: (SponsorshipTranslation[] | null);
|
|
350
|
+
approved: Scalars['Boolean'];
|
|
351
|
+
published: Scalars['Boolean'];
|
|
352
|
+
criteria: (AthleteCriteria | null);
|
|
353
|
+
__typename: 'Sponsorship';
|
|
271
354
|
}
|
|
272
355
|
export interface Athlete {
|
|
273
356
|
_id: Scalars['String'];
|
|
@@ -277,6 +360,17 @@ export interface Athlete {
|
|
|
277
360
|
nationalityIso2: (Scalars['String'] | null);
|
|
278
361
|
__typename: 'Athlete';
|
|
279
362
|
}
|
|
363
|
+
export interface Industry {
|
|
364
|
+
_id: Scalars['String'];
|
|
365
|
+
name: Scalars['String'];
|
|
366
|
+
__typename: 'Industry';
|
|
367
|
+
}
|
|
368
|
+
export interface Sponsor {
|
|
369
|
+
_id: Scalars['String'];
|
|
370
|
+
name: Scalars['String'];
|
|
371
|
+
description: Scalars['String'];
|
|
372
|
+
__typename: 'Sponsor';
|
|
373
|
+
}
|
|
280
374
|
export interface Sport {
|
|
281
375
|
_id: Scalars['String'];
|
|
282
376
|
name: Scalars['String'];
|
|
@@ -301,6 +395,7 @@ export interface Query {
|
|
|
301
395
|
findAthleteById: Athlete;
|
|
302
396
|
sports: Sport[];
|
|
303
397
|
findSportById: Sport;
|
|
398
|
+
getSponsorships: Sponsorship[];
|
|
304
399
|
__typename: 'Query';
|
|
305
400
|
}
|
|
306
401
|
export interface Mutation {
|
|
@@ -320,6 +415,7 @@ export interface Mutation {
|
|
|
320
415
|
registerAthlete: Athlete;
|
|
321
416
|
createSport: Sport;
|
|
322
417
|
updateSport: Sport;
|
|
418
|
+
createSponsorwhip: Sponsorship;
|
|
323
419
|
__typename: 'Mutation';
|
|
324
420
|
}
|
|
325
421
|
export interface UserGenqlSelection {
|
|
@@ -603,16 +699,110 @@ export interface BrandGenqlSelection {
|
|
|
603
699
|
__typename?: boolean | number;
|
|
604
700
|
__scalar?: boolean | number;
|
|
605
701
|
}
|
|
606
|
-
export interface
|
|
702
|
+
export interface CountryReferenceGenqlSelection {
|
|
607
703
|
_id?: boolean | number;
|
|
608
704
|
name?: boolean | number;
|
|
609
|
-
description?: boolean | number;
|
|
610
705
|
__typename?: boolean | number;
|
|
611
706
|
__scalar?: boolean | number;
|
|
612
707
|
}
|
|
613
|
-
export interface
|
|
708
|
+
export interface StateReferenceGenqlSelection {
|
|
709
|
+
_id?: boolean | number;
|
|
710
|
+
name?: boolean | number;
|
|
711
|
+
country?: CountryReferenceGenqlSelection;
|
|
712
|
+
__typename?: boolean | number;
|
|
713
|
+
__scalar?: boolean | number;
|
|
714
|
+
}
|
|
715
|
+
export interface CityReferenceGenqlSelection {
|
|
614
716
|
_id?: boolean | number;
|
|
615
717
|
name?: boolean | number;
|
|
718
|
+
state?: StateReferenceGenqlSelection;
|
|
719
|
+
__typename?: boolean | number;
|
|
720
|
+
__scalar?: boolean | number;
|
|
721
|
+
}
|
|
722
|
+
export interface QualificationGenqlSelection {
|
|
723
|
+
type?: boolean | number;
|
|
724
|
+
__typename?: boolean | number;
|
|
725
|
+
__scalar?: boolean | number;
|
|
726
|
+
}
|
|
727
|
+
export interface ScoreQualificationGenqlSelection {
|
|
728
|
+
type?: boolean | number;
|
|
729
|
+
scoreType?: boolean | number;
|
|
730
|
+
operator?: boolean | number;
|
|
731
|
+
value?: boolean | number;
|
|
732
|
+
__typename?: boolean | number;
|
|
733
|
+
__scalar?: boolean | number;
|
|
734
|
+
}
|
|
735
|
+
export interface LocationQualificationGenqlSelection {
|
|
736
|
+
type?: boolean | number;
|
|
737
|
+
operator?: boolean | number;
|
|
738
|
+
countries?: CountryReferenceGenqlSelection;
|
|
739
|
+
states?: StateReferenceGenqlSelection;
|
|
740
|
+
cities?: CityReferenceGenqlSelection;
|
|
741
|
+
__typename?: boolean | number;
|
|
742
|
+
__scalar?: boolean | number;
|
|
743
|
+
}
|
|
744
|
+
export interface DistanceQualificationGenqlSelection {
|
|
745
|
+
type?: boolean | number;
|
|
746
|
+
maxDistance?: boolean | number;
|
|
747
|
+
latitude?: boolean | number;
|
|
748
|
+
longitude?: boolean | number;
|
|
749
|
+
cityId?: boolean | number;
|
|
750
|
+
__typename?: boolean | number;
|
|
751
|
+
__scalar?: boolean | number;
|
|
752
|
+
}
|
|
753
|
+
export interface SportsQualificationGenqlSelection {
|
|
754
|
+
type?: boolean | number;
|
|
755
|
+
sports?: boolean | number;
|
|
756
|
+
operator?: boolean | number;
|
|
757
|
+
__typename?: boolean | number;
|
|
758
|
+
__scalar?: boolean | number;
|
|
759
|
+
}
|
|
760
|
+
export interface SportsLevelQualificationGenqlSelection {
|
|
761
|
+
type?: boolean | number;
|
|
762
|
+
operator?: boolean | number;
|
|
763
|
+
level?: boolean | number;
|
|
764
|
+
__typename?: boolean | number;
|
|
765
|
+
__scalar?: boolean | number;
|
|
766
|
+
}
|
|
767
|
+
export interface AthleteCriteriaGenqlSelection {
|
|
768
|
+
_id?: boolean | number;
|
|
769
|
+
label?: boolean | number;
|
|
770
|
+
qualifications?: QualificationGenqlSelection;
|
|
771
|
+
__typename?: boolean | number;
|
|
772
|
+
__scalar?: boolean | number;
|
|
773
|
+
}
|
|
774
|
+
export interface SponsorshipStatsGenqlSelection {
|
|
775
|
+
totalApplications?: boolean | number;
|
|
776
|
+
newApplications?: boolean | number;
|
|
777
|
+
discardedApplications?: boolean | number;
|
|
778
|
+
selectedApplications?: boolean | number;
|
|
779
|
+
approvedApplications?: boolean | number;
|
|
780
|
+
grantedSponsorships?: boolean | number;
|
|
781
|
+
remainingSponsorships?: boolean | number;
|
|
782
|
+
__typename?: boolean | number;
|
|
783
|
+
__scalar?: boolean | number;
|
|
784
|
+
}
|
|
785
|
+
export interface SponsorshipTranslationGenqlSelection {
|
|
786
|
+
_id?: boolean | number;
|
|
787
|
+
sponsorshipId?: boolean | number;
|
|
788
|
+
language?: boolean | number;
|
|
789
|
+
title?: boolean | number;
|
|
790
|
+
description?: boolean | number;
|
|
791
|
+
terms?: boolean | number;
|
|
792
|
+
banner?: AWSS3FileGenqlSelection;
|
|
793
|
+
__typename?: boolean | number;
|
|
794
|
+
__scalar?: boolean | number;
|
|
795
|
+
}
|
|
796
|
+
export interface SponsorshipGenqlSelection {
|
|
797
|
+
_id?: boolean | number;
|
|
798
|
+
title?: boolean | number;
|
|
799
|
+
description?: boolean | number;
|
|
800
|
+
banner?: AWSS3FileGenqlSelection;
|
|
801
|
+
stats?: SponsorshipStatsGenqlSelection;
|
|
802
|
+
translations?: SponsorshipTranslationGenqlSelection;
|
|
803
|
+
approved?: boolean | number;
|
|
804
|
+
published?: boolean | number;
|
|
805
|
+
criteria?: AthleteCriteriaGenqlSelection;
|
|
616
806
|
__typename?: boolean | number;
|
|
617
807
|
__scalar?: boolean | number;
|
|
618
808
|
}
|
|
@@ -625,12 +815,69 @@ export interface AthleteGenqlSelection {
|
|
|
625
815
|
__typename?: boolean | number;
|
|
626
816
|
__scalar?: boolean | number;
|
|
627
817
|
}
|
|
818
|
+
export interface IndustryGenqlSelection {
|
|
819
|
+
_id?: boolean | number;
|
|
820
|
+
name?: boolean | number;
|
|
821
|
+
__typename?: boolean | number;
|
|
822
|
+
__scalar?: boolean | number;
|
|
823
|
+
}
|
|
824
|
+
export interface SponsorGenqlSelection {
|
|
825
|
+
_id?: boolean | number;
|
|
826
|
+
name?: boolean | number;
|
|
827
|
+
description?: boolean | number;
|
|
828
|
+
__typename?: boolean | number;
|
|
829
|
+
__scalar?: boolean | number;
|
|
830
|
+
}
|
|
628
831
|
export interface SportGenqlSelection {
|
|
629
832
|
_id?: boolean | number;
|
|
630
833
|
name?: boolean | number;
|
|
631
834
|
__typename?: boolean | number;
|
|
632
835
|
__scalar?: boolean | number;
|
|
633
836
|
}
|
|
837
|
+
export interface ScoreQualificationDto {
|
|
838
|
+
type: Scalars['String'];
|
|
839
|
+
scoreType: Scalars['String'];
|
|
840
|
+
operator: Scalars['String'];
|
|
841
|
+
value: Scalars['Float'];
|
|
842
|
+
}
|
|
843
|
+
export interface LocationQualificationDto {
|
|
844
|
+
type: Scalars['String'];
|
|
845
|
+
operator: Scalars['String'];
|
|
846
|
+
countries: CountryReferenceDto[];
|
|
847
|
+
states: StateReferenceDto[];
|
|
848
|
+
cities: CityReferenceDto[];
|
|
849
|
+
}
|
|
850
|
+
export interface CountryReferenceDto {
|
|
851
|
+
_id: Scalars['String'];
|
|
852
|
+
name: Scalars['String'];
|
|
853
|
+
}
|
|
854
|
+
export interface StateReferenceDto {
|
|
855
|
+
_id: Scalars['String'];
|
|
856
|
+
name: Scalars['String'];
|
|
857
|
+
country?: (CountryReferenceDto | null);
|
|
858
|
+
}
|
|
859
|
+
export interface CityReferenceDto {
|
|
860
|
+
_id: Scalars['String'];
|
|
861
|
+
name: Scalars['String'];
|
|
862
|
+
state?: (StateReferenceDto | null);
|
|
863
|
+
}
|
|
864
|
+
export interface DistanceQualificationDto {
|
|
865
|
+
type: Scalars['String'];
|
|
866
|
+
maxDistance: Scalars['Float'];
|
|
867
|
+
latitude?: (Scalars['Float'] | null);
|
|
868
|
+
longitude?: (Scalars['Float'] | null);
|
|
869
|
+
cityId?: (Scalars['String'] | null);
|
|
870
|
+
}
|
|
871
|
+
export interface SportsQualificationDto {
|
|
872
|
+
type: Scalars['String'];
|
|
873
|
+
sports: Scalars['String'][];
|
|
874
|
+
operator: Scalars['String'];
|
|
875
|
+
}
|
|
876
|
+
export interface SportsLevelQualificationDto {
|
|
877
|
+
type: Scalars['String'];
|
|
878
|
+
operator: Scalars['String'];
|
|
879
|
+
level: Scalars['String'];
|
|
880
|
+
}
|
|
634
881
|
export interface QueryGenqlSelection {
|
|
635
882
|
findTenantById?: (TenantGenqlSelection & {
|
|
636
883
|
__args: {
|
|
@@ -701,6 +948,11 @@ export interface QueryGenqlSelection {
|
|
|
701
948
|
sportId: Scalars['String'];
|
|
702
949
|
};
|
|
703
950
|
});
|
|
951
|
+
getSponsorships?: (SponsorshipGenqlSelection & {
|
|
952
|
+
__args: {
|
|
953
|
+
sponsorId: Scalars['String'];
|
|
954
|
+
};
|
|
955
|
+
});
|
|
704
956
|
__typename?: boolean | number;
|
|
705
957
|
__scalar?: boolean | number;
|
|
706
958
|
}
|
|
@@ -790,6 +1042,11 @@ export interface MutationGenqlSelection {
|
|
|
790
1042
|
input: UpdateSportDto;
|
|
791
1043
|
};
|
|
792
1044
|
});
|
|
1045
|
+
createSponsorwhip?: (SponsorshipGenqlSelection & {
|
|
1046
|
+
__args: {
|
|
1047
|
+
input: CreateSponsorshipDto;
|
|
1048
|
+
};
|
|
1049
|
+
});
|
|
793
1050
|
__typename?: boolean | number;
|
|
794
1051
|
__scalar?: boolean | number;
|
|
795
1052
|
}
|
|
@@ -884,6 +1141,42 @@ export interface CreateSportDto {
|
|
|
884
1141
|
export interface UpdateSportDto {
|
|
885
1142
|
name: Scalars['String'];
|
|
886
1143
|
}
|
|
1144
|
+
export interface CreateSponsorshipDto {
|
|
1145
|
+
title: Scalars['String'];
|
|
1146
|
+
brandId: Scalars['String'];
|
|
1147
|
+
description?: (Scalars['String'] | null);
|
|
1148
|
+
cashValue?: (Scalars['Float'] | null);
|
|
1149
|
+
otherValue?: (Scalars['Float'] | null);
|
|
1150
|
+
banner?: (AWSS3UploadedFileDto | null);
|
|
1151
|
+
criteria?: (AthleteCriteriaDto | null);
|
|
1152
|
+
sponsorshipItems?: (SponsorshipItemDto[] | null);
|
|
1153
|
+
commitments?: (SponsorshipCommitmentDto[] | null);
|
|
1154
|
+
terms?: (Scalars['String'] | null);
|
|
1155
|
+
published?: (Scalars['Boolean'] | null);
|
|
1156
|
+
translations?: (SponsorshipTranslationDto[] | null);
|
|
1157
|
+
}
|
|
1158
|
+
export interface AthleteCriteriaDto {
|
|
1159
|
+
_id: Scalars['String'];
|
|
1160
|
+
label?: (Scalars['String'] | null);
|
|
1161
|
+
qualifications?: (QualificationDto[] | null);
|
|
1162
|
+
}
|
|
1163
|
+
export interface QualificationDto {
|
|
1164
|
+
type: Scalars['String'];
|
|
1165
|
+
}
|
|
1166
|
+
export interface SponsorshipItemDto {
|
|
1167
|
+
_id: Scalars['String'];
|
|
1168
|
+
name: Scalars['String'];
|
|
1169
|
+
}
|
|
1170
|
+
export interface SponsorshipCommitmentDto {
|
|
1171
|
+
_id: Scalars['String'];
|
|
1172
|
+
name: Scalars['String'];
|
|
1173
|
+
}
|
|
1174
|
+
export interface SponsorshipTranslationDto {
|
|
1175
|
+
title?: (Scalars['String'] | null);
|
|
1176
|
+
description?: (Scalars['String'] | null);
|
|
1177
|
+
banner?: (AWSS3UploadedFileDto | null);
|
|
1178
|
+
terms?: (Scalars['String'] | null);
|
|
1179
|
+
}
|
|
887
1180
|
export declare const isUser: (obj?: {
|
|
888
1181
|
__typename?: any;
|
|
889
1182
|
} | null) => obj is User;
|
|
@@ -965,15 +1258,54 @@ export declare const isBrandTranslation: (obj?: {
|
|
|
965
1258
|
export declare const isBrand: (obj?: {
|
|
966
1259
|
__typename?: any;
|
|
967
1260
|
} | null) => obj is Brand;
|
|
968
|
-
export declare const
|
|
1261
|
+
export declare const isCountryReference: (obj?: {
|
|
969
1262
|
__typename?: any;
|
|
970
|
-
} | null) => obj is
|
|
971
|
-
export declare const
|
|
1263
|
+
} | null) => obj is CountryReference;
|
|
1264
|
+
export declare const isStateReference: (obj?: {
|
|
972
1265
|
__typename?: any;
|
|
973
|
-
} | null) => obj is
|
|
1266
|
+
} | null) => obj is StateReference;
|
|
1267
|
+
export declare const isCityReference: (obj?: {
|
|
1268
|
+
__typename?: any;
|
|
1269
|
+
} | null) => obj is CityReference;
|
|
1270
|
+
export declare const isQualification: (obj?: {
|
|
1271
|
+
__typename?: any;
|
|
1272
|
+
} | null) => obj is Qualification;
|
|
1273
|
+
export declare const isScoreQualification: (obj?: {
|
|
1274
|
+
__typename?: any;
|
|
1275
|
+
} | null) => obj is ScoreQualification;
|
|
1276
|
+
export declare const isLocationQualification: (obj?: {
|
|
1277
|
+
__typename?: any;
|
|
1278
|
+
} | null) => obj is LocationQualification;
|
|
1279
|
+
export declare const isDistanceQualification: (obj?: {
|
|
1280
|
+
__typename?: any;
|
|
1281
|
+
} | null) => obj is DistanceQualification;
|
|
1282
|
+
export declare const isSportsQualification: (obj?: {
|
|
1283
|
+
__typename?: any;
|
|
1284
|
+
} | null) => obj is SportsQualification;
|
|
1285
|
+
export declare const isSportsLevelQualification: (obj?: {
|
|
1286
|
+
__typename?: any;
|
|
1287
|
+
} | null) => obj is SportsLevelQualification;
|
|
1288
|
+
export declare const isAthleteCriteria: (obj?: {
|
|
1289
|
+
__typename?: any;
|
|
1290
|
+
} | null) => obj is AthleteCriteria;
|
|
1291
|
+
export declare const isSponsorshipStats: (obj?: {
|
|
1292
|
+
__typename?: any;
|
|
1293
|
+
} | null) => obj is SponsorshipStats;
|
|
1294
|
+
export declare const isSponsorshipTranslation: (obj?: {
|
|
1295
|
+
__typename?: any;
|
|
1296
|
+
} | null) => obj is SponsorshipTranslation;
|
|
1297
|
+
export declare const isSponsorship: (obj?: {
|
|
1298
|
+
__typename?: any;
|
|
1299
|
+
} | null) => obj is Sponsorship;
|
|
974
1300
|
export declare const isAthlete: (obj?: {
|
|
975
1301
|
__typename?: any;
|
|
976
1302
|
} | null) => obj is Athlete;
|
|
1303
|
+
export declare const isIndustry: (obj?: {
|
|
1304
|
+
__typename?: any;
|
|
1305
|
+
} | null) => obj is Industry;
|
|
1306
|
+
export declare const isSponsor: (obj?: {
|
|
1307
|
+
__typename?: any;
|
|
1308
|
+
} | null) => obj is Sponsor;
|
|
977
1309
|
export declare const isSport: (obj?: {
|
|
978
1310
|
__typename?: any;
|
|
979
1311
|
} | null) => obj is Sport;
|
|
@@ -257,15 +257,98 @@ type Brand {
|
|
|
257
257
|
translations: [BrandTranslation!]
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
type
|
|
260
|
+
type CountryReference {
|
|
261
261
|
_id: String!
|
|
262
262
|
name: String!
|
|
263
|
-
description: String!
|
|
264
263
|
}
|
|
265
264
|
|
|
266
|
-
type
|
|
265
|
+
type StateReference {
|
|
266
|
+
_id: String!
|
|
267
|
+
name: String!
|
|
268
|
+
country: CountryReference
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
type CityReference {
|
|
267
272
|
_id: String!
|
|
268
273
|
name: String!
|
|
274
|
+
state: StateReference
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
type Qualification {
|
|
278
|
+
type: String!
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
type ScoreQualification {
|
|
282
|
+
type: String!
|
|
283
|
+
scoreType: String!
|
|
284
|
+
operator: String!
|
|
285
|
+
value: Float!
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
type LocationQualification {
|
|
289
|
+
type: String!
|
|
290
|
+
operator: String!
|
|
291
|
+
countries: [CountryReference!]!
|
|
292
|
+
states: [StateReference!]!
|
|
293
|
+
cities: [CityReference!]!
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
type DistanceQualification {
|
|
297
|
+
type: String!
|
|
298
|
+
maxDistance: Float!
|
|
299
|
+
latitude: Float
|
|
300
|
+
longitude: Float
|
|
301
|
+
cityId: String
|
|
302
|
+
}
|
|
303
|
+
|
|
304
|
+
type SportsQualification {
|
|
305
|
+
type: String!
|
|
306
|
+
sports: [String!]!
|
|
307
|
+
operator: String!
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
type SportsLevelQualification {
|
|
311
|
+
type: String!
|
|
312
|
+
operator: String!
|
|
313
|
+
level: String!
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
type AthleteCriteria {
|
|
317
|
+
_id: String!
|
|
318
|
+
label: String
|
|
319
|
+
qualifications: [Qualification!]
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
type SponsorshipStats {
|
|
323
|
+
totalApplications: Float
|
|
324
|
+
newApplications: Float
|
|
325
|
+
discardedApplications: Float
|
|
326
|
+
selectedApplications: Float
|
|
327
|
+
approvedApplications: Float
|
|
328
|
+
grantedSponsorships: Float
|
|
329
|
+
remainingSponsorships: Float
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
type SponsorshipTranslation {
|
|
333
|
+
_id: String!
|
|
334
|
+
sponsorshipId: String!
|
|
335
|
+
language: String!
|
|
336
|
+
title: String
|
|
337
|
+
description: String
|
|
338
|
+
terms: String
|
|
339
|
+
banner: AWSS3File
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
type Sponsorship {
|
|
343
|
+
_id: String!
|
|
344
|
+
title: String!
|
|
345
|
+
description: String
|
|
346
|
+
banner: AWSS3File
|
|
347
|
+
stats: SponsorshipStats
|
|
348
|
+
translations: [SponsorshipTranslation!]
|
|
349
|
+
approved: Boolean!
|
|
350
|
+
published: Boolean!
|
|
351
|
+
criteria: AthleteCriteria
|
|
269
352
|
}
|
|
270
353
|
|
|
271
354
|
type Athlete {
|
|
@@ -276,11 +359,74 @@ type Athlete {
|
|
|
276
359
|
nationalityIso2: String
|
|
277
360
|
}
|
|
278
361
|
|
|
362
|
+
type Industry {
|
|
363
|
+
_id: String!
|
|
364
|
+
name: String!
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
type Sponsor {
|
|
368
|
+
_id: String!
|
|
369
|
+
name: String!
|
|
370
|
+
description: String!
|
|
371
|
+
}
|
|
372
|
+
|
|
279
373
|
type Sport {
|
|
280
374
|
_id: String!
|
|
281
375
|
name: String!
|
|
282
376
|
}
|
|
283
377
|
|
|
378
|
+
input ScoreQualificationDto {
|
|
379
|
+
type: String!
|
|
380
|
+
scoreType: String!
|
|
381
|
+
operator: String!
|
|
382
|
+
value: Float!
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
input LocationQualificationDto {
|
|
386
|
+
type: String!
|
|
387
|
+
operator: String!
|
|
388
|
+
countries: [CountryReferenceDto!]!
|
|
389
|
+
states: [StateReferenceDto!]!
|
|
390
|
+
cities: [CityReferenceDto!]!
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
input CountryReferenceDto {
|
|
394
|
+
_id: String!
|
|
395
|
+
name: String!
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
input StateReferenceDto {
|
|
399
|
+
_id: String!
|
|
400
|
+
name: String!
|
|
401
|
+
country: CountryReferenceDto
|
|
402
|
+
}
|
|
403
|
+
|
|
404
|
+
input CityReferenceDto {
|
|
405
|
+
_id: String!
|
|
406
|
+
name: String!
|
|
407
|
+
state: StateReferenceDto
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
input DistanceQualificationDto {
|
|
411
|
+
type: String!
|
|
412
|
+
maxDistance: Float!
|
|
413
|
+
latitude: Float
|
|
414
|
+
longitude: Float
|
|
415
|
+
cityId: String
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
input SportsQualificationDto {
|
|
419
|
+
type: String!
|
|
420
|
+
sports: [String!]!
|
|
421
|
+
operator: String!
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
input SportsLevelQualificationDto {
|
|
425
|
+
type: String!
|
|
426
|
+
operator: String!
|
|
427
|
+
level: String!
|
|
428
|
+
}
|
|
429
|
+
|
|
284
430
|
type Query {
|
|
285
431
|
findTenantById(_id: String!): Tenant!
|
|
286
432
|
findTenantByEmail(email: String!, domainId: String!): Tenant!
|
|
@@ -300,6 +446,7 @@ type Query {
|
|
|
300
446
|
findAthleteById(athleteId: String!): Athlete!
|
|
301
447
|
sports: [Sport!]!
|
|
302
448
|
findSportById(sportId: String!): Sport!
|
|
449
|
+
getSponsorships(sponsorId: String!): [Sponsorship!]!
|
|
303
450
|
}
|
|
304
451
|
|
|
305
452
|
input AWSS3GetUploadDto {
|
|
@@ -324,6 +471,7 @@ type Mutation {
|
|
|
324
471
|
registerAthlete(input: RegisterAthleteDto!): Athlete!
|
|
325
472
|
createSport(input: CreateSportDto!): Sport!
|
|
326
473
|
updateSport(sportId: String!, input: UpdateSportDto!): Sport!
|
|
474
|
+
createSponsorwhip(input: CreateSponsorshipDto!): Sponsorship!
|
|
327
475
|
}
|
|
328
476
|
|
|
329
477
|
input CreateTenantInput {
|
|
@@ -430,4 +578,46 @@ input CreateSportDto {
|
|
|
430
578
|
|
|
431
579
|
input UpdateSportDto {
|
|
432
580
|
name: String!
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
input CreateSponsorshipDto {
|
|
584
|
+
title: String!
|
|
585
|
+
brandId: String!
|
|
586
|
+
description: String
|
|
587
|
+
cashValue: Float = 0
|
|
588
|
+
otherValue: Float = 0
|
|
589
|
+
banner: AWSS3UploadedFileDto
|
|
590
|
+
criteria: AthleteCriteriaDto
|
|
591
|
+
sponsorshipItems: [SponsorshipItemDto!]
|
|
592
|
+
commitments: [SponsorshipCommitmentDto!]
|
|
593
|
+
terms: String
|
|
594
|
+
published: Boolean = true
|
|
595
|
+
translations: [SponsorshipTranslationDto!]
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
input AthleteCriteriaDto {
|
|
599
|
+
_id: String!
|
|
600
|
+
label: String
|
|
601
|
+
qualifications: [QualificationDto!]
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
input QualificationDto {
|
|
605
|
+
type: String!
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
input SponsorshipItemDto {
|
|
609
|
+
_id: String!
|
|
610
|
+
name: String!
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
input SponsorshipCommitmentDto {
|
|
614
|
+
_id: String!
|
|
615
|
+
name: String!
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
input SponsorshipTranslationDto {
|
|
619
|
+
title: String
|
|
620
|
+
description: String
|
|
621
|
+
banner: AWSS3UploadedFileDto
|
|
622
|
+
terms: String
|
|
433
623
|
}
|