@vertikalx/vtx-backend-client 1.0.0-dev.21 → 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/client/schema.d.ts +346 -12
- package/src/client/schema.graphql +194 -3
- package/src/client/schema.js +102 -11
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +198 -3
- package/src/client/types.js +515 -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,100 @@ 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
|
+
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';
|
|
271
355
|
}
|
|
272
356
|
export interface Athlete {
|
|
273
357
|
_id: Scalars['String'];
|
|
@@ -277,6 +361,17 @@ export interface Athlete {
|
|
|
277
361
|
nationalityIso2: (Scalars['String'] | null);
|
|
278
362
|
__typename: 'Athlete';
|
|
279
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
|
+
}
|
|
280
375
|
export interface Sport {
|
|
281
376
|
_id: Scalars['String'];
|
|
282
377
|
name: Scalars['String'];
|
|
@@ -301,6 +396,7 @@ export interface Query {
|
|
|
301
396
|
findAthleteById: Athlete;
|
|
302
397
|
sports: Sport[];
|
|
303
398
|
findSportById: Sport;
|
|
399
|
+
getSponsorships: Sponsorship[];
|
|
304
400
|
__typename: 'Query';
|
|
305
401
|
}
|
|
306
402
|
export interface Mutation {
|
|
@@ -320,6 +416,7 @@ export interface Mutation {
|
|
|
320
416
|
registerAthlete: Athlete;
|
|
321
417
|
createSport: Sport;
|
|
322
418
|
updateSport: Sport;
|
|
419
|
+
createSponsorwhip: Sponsorship;
|
|
323
420
|
__typename: 'Mutation';
|
|
324
421
|
}
|
|
325
422
|
export interface UserGenqlSelection {
|
|
@@ -603,16 +700,111 @@ export interface BrandGenqlSelection {
|
|
|
603
700
|
__typename?: boolean | number;
|
|
604
701
|
__scalar?: boolean | number;
|
|
605
702
|
}
|
|
606
|
-
export interface
|
|
703
|
+
export interface CountryReferenceGenqlSelection {
|
|
607
704
|
_id?: boolean | number;
|
|
608
705
|
name?: boolean | number;
|
|
609
|
-
description?: boolean | number;
|
|
610
706
|
__typename?: boolean | number;
|
|
611
707
|
__scalar?: boolean | number;
|
|
612
708
|
}
|
|
613
|
-
export interface
|
|
709
|
+
export interface StateReferenceGenqlSelection {
|
|
710
|
+
_id?: boolean | number;
|
|
711
|
+
name?: boolean | number;
|
|
712
|
+
country?: CountryReferenceGenqlSelection;
|
|
713
|
+
__typename?: boolean | number;
|
|
714
|
+
__scalar?: boolean | number;
|
|
715
|
+
}
|
|
716
|
+
export interface CityReferenceGenqlSelection {
|
|
614
717
|
_id?: boolean | number;
|
|
615
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;
|
|
616
808
|
__typename?: boolean | number;
|
|
617
809
|
__scalar?: boolean | number;
|
|
618
810
|
}
|
|
@@ -625,12 +817,69 @@ export interface AthleteGenqlSelection {
|
|
|
625
817
|
__typename?: boolean | number;
|
|
626
818
|
__scalar?: boolean | number;
|
|
627
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
|
+
}
|
|
628
833
|
export interface SportGenqlSelection {
|
|
629
834
|
_id?: boolean | number;
|
|
630
835
|
name?: boolean | number;
|
|
631
836
|
__typename?: boolean | number;
|
|
632
837
|
__scalar?: boolean | number;
|
|
633
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
|
+
}
|
|
634
883
|
export interface QueryGenqlSelection {
|
|
635
884
|
findTenantById?: (TenantGenqlSelection & {
|
|
636
885
|
__args: {
|
|
@@ -701,6 +950,11 @@ export interface QueryGenqlSelection {
|
|
|
701
950
|
sportId: Scalars['String'];
|
|
702
951
|
};
|
|
703
952
|
});
|
|
953
|
+
getSponsorships?: (SponsorshipGenqlSelection & {
|
|
954
|
+
__args: {
|
|
955
|
+
sponsorId: Scalars['String'];
|
|
956
|
+
};
|
|
957
|
+
});
|
|
704
958
|
__typename?: boolean | number;
|
|
705
959
|
__scalar?: boolean | number;
|
|
706
960
|
}
|
|
@@ -790,6 +1044,11 @@ export interface MutationGenqlSelection {
|
|
|
790
1044
|
input: UpdateSportDto;
|
|
791
1045
|
};
|
|
792
1046
|
});
|
|
1047
|
+
createSponsorwhip?: (SponsorshipGenqlSelection & {
|
|
1048
|
+
__args: {
|
|
1049
|
+
input: CreateSponsorshipDto;
|
|
1050
|
+
};
|
|
1051
|
+
});
|
|
793
1052
|
__typename?: boolean | number;
|
|
794
1053
|
__scalar?: boolean | number;
|
|
795
1054
|
}
|
|
@@ -884,6 +1143,42 @@ export interface CreateSportDto {
|
|
|
884
1143
|
export interface UpdateSportDto {
|
|
885
1144
|
name: Scalars['String'];
|
|
886
1145
|
}
|
|
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
|
+
}
|
|
887
1182
|
export declare const isUser: (obj?: {
|
|
888
1183
|
__typename?: any;
|
|
889
1184
|
} | null) => obj is User;
|
|
@@ -965,15 +1260,54 @@ export declare const isBrandTranslation: (obj?: {
|
|
|
965
1260
|
export declare const isBrand: (obj?: {
|
|
966
1261
|
__typename?: any;
|
|
967
1262
|
} | null) => obj is Brand;
|
|
968
|
-
export declare const
|
|
1263
|
+
export declare const isCountryReference: (obj?: {
|
|
969
1264
|
__typename?: any;
|
|
970
|
-
} | null) => obj is
|
|
971
|
-
export declare const
|
|
1265
|
+
} | null) => obj is CountryReference;
|
|
1266
|
+
export declare const isStateReference: (obj?: {
|
|
972
1267
|
__typename?: any;
|
|
973
|
-
} | 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;
|
|
974
1302
|
export declare const isAthlete: (obj?: {
|
|
975
1303
|
__typename?: any;
|
|
976
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;
|
|
977
1311
|
export declare const isSport: (obj?: {
|
|
978
1312
|
__typename?: any;
|
|
979
1313
|
} | null) => obj is Sport;
|
|
@@ -257,15 +257,99 @@ 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
|
+
terms: String
|
|
347
|
+
banner: AWSS3File
|
|
348
|
+
stats: SponsorshipStats
|
|
349
|
+
translations: [SponsorshipTranslation!]
|
|
350
|
+
approved: Boolean!
|
|
351
|
+
published: Boolean!
|
|
352
|
+
criteria: AthleteCriteria
|
|
269
353
|
}
|
|
270
354
|
|
|
271
355
|
type Athlete {
|
|
@@ -276,11 +360,74 @@ type Athlete {
|
|
|
276
360
|
nationalityIso2: String
|
|
277
361
|
}
|
|
278
362
|
|
|
363
|
+
type Industry {
|
|
364
|
+
_id: String!
|
|
365
|
+
name: String!
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
type Sponsor {
|
|
369
|
+
_id: String!
|
|
370
|
+
name: String!
|
|
371
|
+
description: String!
|
|
372
|
+
}
|
|
373
|
+
|
|
279
374
|
type Sport {
|
|
280
375
|
_id: String!
|
|
281
376
|
name: String!
|
|
282
377
|
}
|
|
283
378
|
|
|
379
|
+
input ScoreQualificationDto {
|
|
380
|
+
type: String!
|
|
381
|
+
scoreType: String!
|
|
382
|
+
operator: String!
|
|
383
|
+
value: Float!
|
|
384
|
+
}
|
|
385
|
+
|
|
386
|
+
input LocationQualificationDto {
|
|
387
|
+
type: String!
|
|
388
|
+
operator: String!
|
|
389
|
+
countries: [CountryReferenceDto!]!
|
|
390
|
+
states: [StateReferenceDto!]!
|
|
391
|
+
cities: [CityReferenceDto!]!
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
input CountryReferenceDto {
|
|
395
|
+
_id: String!
|
|
396
|
+
name: String!
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
input StateReferenceDto {
|
|
400
|
+
_id: String!
|
|
401
|
+
name: String!
|
|
402
|
+
country: CountryReferenceDto
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
input CityReferenceDto {
|
|
406
|
+
_id: String!
|
|
407
|
+
name: String!
|
|
408
|
+
state: StateReferenceDto
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
input DistanceQualificationDto {
|
|
412
|
+
type: String!
|
|
413
|
+
maxDistance: Float!
|
|
414
|
+
latitude: Float
|
|
415
|
+
longitude: Float
|
|
416
|
+
cityId: String
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
input SportsQualificationDto {
|
|
420
|
+
type: String!
|
|
421
|
+
sports: [String!]!
|
|
422
|
+
operator: String!
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
input SportsLevelQualificationDto {
|
|
426
|
+
type: String!
|
|
427
|
+
operator: String!
|
|
428
|
+
level: String!
|
|
429
|
+
}
|
|
430
|
+
|
|
284
431
|
type Query {
|
|
285
432
|
findTenantById(_id: String!): Tenant!
|
|
286
433
|
findTenantByEmail(email: String!, domainId: String!): Tenant!
|
|
@@ -300,6 +447,7 @@ type Query {
|
|
|
300
447
|
findAthleteById(athleteId: String!): Athlete!
|
|
301
448
|
sports: [Sport!]!
|
|
302
449
|
findSportById(sportId: String!): Sport!
|
|
450
|
+
getSponsorships(sponsorId: String!): [Sponsorship!]!
|
|
303
451
|
}
|
|
304
452
|
|
|
305
453
|
input AWSS3GetUploadDto {
|
|
@@ -324,6 +472,7 @@ type Mutation {
|
|
|
324
472
|
registerAthlete(input: RegisterAthleteDto!): Athlete!
|
|
325
473
|
createSport(input: CreateSportDto!): Sport!
|
|
326
474
|
updateSport(sportId: String!, input: UpdateSportDto!): Sport!
|
|
475
|
+
createSponsorwhip(input: CreateSponsorshipDto!): Sponsorship!
|
|
327
476
|
}
|
|
328
477
|
|
|
329
478
|
input CreateTenantInput {
|
|
@@ -430,4 +579,46 @@ input CreateSportDto {
|
|
|
430
579
|
|
|
431
580
|
input UpdateSportDto {
|
|
432
581
|
name: String!
|
|
582
|
+
}
|
|
583
|
+
|
|
584
|
+
input CreateSponsorshipDto {
|
|
585
|
+
title: String!
|
|
586
|
+
brandId: String!
|
|
587
|
+
description: String
|
|
588
|
+
cashValue: Float = 0
|
|
589
|
+
otherValue: Float = 0
|
|
590
|
+
banner: AWSS3UploadedFileDto
|
|
591
|
+
criteria: AthleteCriteriaDto
|
|
592
|
+
sponsorshipItems: [SponsorshipItemDto!]
|
|
593
|
+
commitments: [SponsorshipCommitmentDto!]
|
|
594
|
+
terms: String
|
|
595
|
+
published: Boolean = true
|
|
596
|
+
translations: [SponsorshipTranslationDto!]
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
input AthleteCriteriaDto {
|
|
600
|
+
_id: String!
|
|
601
|
+
label: String
|
|
602
|
+
qualifications: [QualificationDto!]
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
input QualificationDto {
|
|
606
|
+
type: String!
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
input SponsorshipItemDto {
|
|
610
|
+
_id: String!
|
|
611
|
+
name: String!
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
input SponsorshipCommitmentDto {
|
|
615
|
+
_id: String!
|
|
616
|
+
name: String!
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
input SponsorshipTranslationDto {
|
|
620
|
+
title: String
|
|
621
|
+
description: String
|
|
622
|
+
banner: AWSS3UploadedFileDto
|
|
623
|
+
terms: String
|
|
433
624
|
}
|