@vertikalx/vtx-backend-client 1.0.0-dev.82 → 1.0.0-dev.84
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/api/vtx-base-api.d.ts +12 -1
- package/src/api/vtx-base-api.js +1066 -0
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +577 -8
- package/src/client/schema.graphql +291 -9
- package/src/client/schema.js +122 -2
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +307 -9
- package/src/client/types.js +1076 -303
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -266,6 +266,25 @@ type AWSS3CallResult {
|
|
|
266
266
|
errors: [String!]
|
|
267
267
|
}
|
|
268
268
|
|
|
269
|
+
type DatabaseFile {
|
|
270
|
+
_id: String!
|
|
271
|
+
identifier: String!
|
|
272
|
+
version: String!
|
|
273
|
+
contentType: String!
|
|
274
|
+
updated: DateTime!
|
|
275
|
+
created: DateTime!
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
type TextDatabaseFile {
|
|
279
|
+
_id: String!
|
|
280
|
+
identifier: String!
|
|
281
|
+
version: String!
|
|
282
|
+
contentType: String!
|
|
283
|
+
updated: DateTime!
|
|
284
|
+
created: DateTime!
|
|
285
|
+
content: String!
|
|
286
|
+
}
|
|
287
|
+
|
|
269
288
|
type CodeVerificationResponse {
|
|
270
289
|
result: String!
|
|
271
290
|
code: VerificationCode
|
|
@@ -687,6 +706,135 @@ type FundRaisingCampaign {
|
|
|
687
706
|
competitions: [AthleteCompetition!]
|
|
688
707
|
}
|
|
689
708
|
|
|
709
|
+
type StripeCapabilityType {
|
|
710
|
+
acss_debit_payments: String
|
|
711
|
+
affirm_payments: String
|
|
712
|
+
afterpay_clearpay_payments: String
|
|
713
|
+
alma_payments: String
|
|
714
|
+
amazon_pay_payments: String
|
|
715
|
+
au_becs_debit_payments: String
|
|
716
|
+
bacs_debit_payments: String
|
|
717
|
+
bancontact_payments: String
|
|
718
|
+
bank_transfer_payments: String
|
|
719
|
+
blik_payments: String
|
|
720
|
+
boleto_payments: String
|
|
721
|
+
card_issuing: String
|
|
722
|
+
card_payments: String
|
|
723
|
+
cartes_bancaires_payments: String
|
|
724
|
+
cashapp_payments: String
|
|
725
|
+
eps_payments: String
|
|
726
|
+
fpx_payments: String
|
|
727
|
+
gb_bank_transfer_payments: String
|
|
728
|
+
giropay_payments: String
|
|
729
|
+
grabpay_payments: String
|
|
730
|
+
ideal_payments: String
|
|
731
|
+
india_international_payments: String
|
|
732
|
+
jcb_payments: String
|
|
733
|
+
jp_bank_transfer_payments: String
|
|
734
|
+
kakao_pay_payments: String
|
|
735
|
+
klarna_payments: String
|
|
736
|
+
konbini_payments: String
|
|
737
|
+
kr_card_payments: String
|
|
738
|
+
legacy_payments: String
|
|
739
|
+
link_payments: String
|
|
740
|
+
mobilepay_payments: String
|
|
741
|
+
multibanco_payments: String
|
|
742
|
+
mx_bank_transfer_payments: String
|
|
743
|
+
naver_pay_payments: String
|
|
744
|
+
oxxo_payments: String
|
|
745
|
+
p24_payments: String
|
|
746
|
+
pay_by_bank_payments: String
|
|
747
|
+
payco_payments: String
|
|
748
|
+
paynow_payments: String
|
|
749
|
+
promptpay_payments: String
|
|
750
|
+
revolut_pay_payments: String
|
|
751
|
+
samsung_pay_payments: String
|
|
752
|
+
sepa_bank_transfer_payments: String
|
|
753
|
+
sepa_debit_payments: String
|
|
754
|
+
sofort_payments: String
|
|
755
|
+
swish_payments: String
|
|
756
|
+
tax_reporting_us_1099_k: String
|
|
757
|
+
tax_reporting_us_1099_misc: String
|
|
758
|
+
transfers: String
|
|
759
|
+
treasury: String
|
|
760
|
+
twint_payments: String
|
|
761
|
+
us_bank_account_ach_payments: String
|
|
762
|
+
us_bank_transfer_payments: String
|
|
763
|
+
zip_payments: String
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
type StripeRequirementAlternativeType {
|
|
767
|
+
alternative_fields_due: [String!]!
|
|
768
|
+
original_fields_due: [String!]!
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
type StripeFutureRequirementAlternativeType {
|
|
772
|
+
alternative_fields_due: [String!]!
|
|
773
|
+
original_fields_due: [String!]!
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
type StripeErrorType {
|
|
777
|
+
code: String!
|
|
778
|
+
reason: String!
|
|
779
|
+
requirement: String!
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
type StripeRequirementType {
|
|
783
|
+
alternatives: [StripeRequirementAlternativeType!]
|
|
784
|
+
current_deadline: DateTime
|
|
785
|
+
currently_due: [String!]
|
|
786
|
+
disabled_reason: String
|
|
787
|
+
errors: [StripeErrorType!]
|
|
788
|
+
eventually_due: [String!]
|
|
789
|
+
past_due: [String!]
|
|
790
|
+
pending_verification: [String!]
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
type StripeFutureRequirementType {
|
|
794
|
+
alternatives: [StripeFutureRequirementAlternativeType!]
|
|
795
|
+
current_deadline: DateTime
|
|
796
|
+
currently_due: [String!]
|
|
797
|
+
disabled_reason: String
|
|
798
|
+
errors: [StripeErrorType!]
|
|
799
|
+
eventually_due: [String!]
|
|
800
|
+
past_due: [String!]
|
|
801
|
+
pending_verification: [String!]
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
type StripeAccount {
|
|
805
|
+
id: String!
|
|
806
|
+
object: String!
|
|
807
|
+
business_type: String
|
|
808
|
+
country: String!
|
|
809
|
+
email: String
|
|
810
|
+
capabilities: StripeCapabilityType
|
|
811
|
+
requirements: StripeRequirementType
|
|
812
|
+
future_requirements: StripeFutureRequirementType
|
|
813
|
+
type: String!
|
|
814
|
+
charges_enabled: Boolean!
|
|
815
|
+
payouts_enabled: Boolean!
|
|
816
|
+
created: DateTime
|
|
817
|
+
default_currency: String
|
|
818
|
+
}
|
|
819
|
+
|
|
820
|
+
type StripeAccountReference {
|
|
821
|
+
_id: String!
|
|
822
|
+
stripeAccountId: String!
|
|
823
|
+
account: StripeAccount
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
type PhotoAlbum {
|
|
827
|
+
_id: String!
|
|
828
|
+
photo: AWSS3File
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
type Album {
|
|
832
|
+
_id: String!
|
|
833
|
+
label: String!
|
|
834
|
+
description: String
|
|
835
|
+
photos: [PhotoAlbum!]
|
|
836
|
+
}
|
|
837
|
+
|
|
690
838
|
type AthleteReference {
|
|
691
839
|
_id: String!
|
|
692
840
|
firstName: String!
|
|
@@ -708,6 +856,7 @@ type AthleteReference {
|
|
|
708
856
|
totalPastCompetitions: Float
|
|
709
857
|
profilePicture: AWSS3File
|
|
710
858
|
cardPicture: AWSS3File
|
|
859
|
+
bannerPicture: AWSS3File
|
|
711
860
|
aboutMe: String
|
|
712
861
|
preferences: AthletePreferences!
|
|
713
862
|
}
|
|
@@ -733,6 +882,7 @@ type Athlete {
|
|
|
733
882
|
totalPastCompetitions: Float
|
|
734
883
|
profilePicture: AWSS3File
|
|
735
884
|
cardPicture: AWSS3File
|
|
885
|
+
bannerPicture: AWSS3File
|
|
736
886
|
aboutMe: String
|
|
737
887
|
preferences: AthletePreferences!
|
|
738
888
|
allSports: [Sport!]
|
|
@@ -744,6 +894,8 @@ type Athlete {
|
|
|
744
894
|
channels: [Channel!]
|
|
745
895
|
currentCampaign: FundRaisingCampaign
|
|
746
896
|
fundingCampaigns: [FundRaisingCampaign!]
|
|
897
|
+
stripeAccountReference: StripeAccountReference
|
|
898
|
+
albums: [Album!]
|
|
747
899
|
}
|
|
748
900
|
|
|
749
901
|
type SponsorAthleteInvitation {
|
|
@@ -764,6 +916,19 @@ type StravaToken {
|
|
|
764
916
|
access_token: String!
|
|
765
917
|
}
|
|
766
918
|
|
|
919
|
+
type StripeSession {
|
|
920
|
+
account: String!
|
|
921
|
+
client_secret: String!
|
|
922
|
+
expires_at: Float!
|
|
923
|
+
livemode: Boolean!
|
|
924
|
+
}
|
|
925
|
+
|
|
926
|
+
type StripeCheckoutSession {
|
|
927
|
+
client_secret: String!
|
|
928
|
+
expires_at: Float!
|
|
929
|
+
livemode: Boolean!
|
|
930
|
+
}
|
|
931
|
+
|
|
767
932
|
type EditValueResponse {
|
|
768
933
|
field: String!
|
|
769
934
|
oldValue: String
|
|
@@ -803,6 +968,30 @@ type AthleteQueryResponse {
|
|
|
803
968
|
cursor: CursorPaginationResponse!
|
|
804
969
|
}
|
|
805
970
|
|
|
971
|
+
type EditPictureResponse {
|
|
972
|
+
field: String!
|
|
973
|
+
oldValue: AWSS3File
|
|
974
|
+
newValue: AWSS3File
|
|
975
|
+
changed: Boolean!
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
type AddValuesResponse {
|
|
979
|
+
added: [String!]!
|
|
980
|
+
failedToAdd: [String!]
|
|
981
|
+
failureReason: [ErrorType!]
|
|
982
|
+
result: String!
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
type StripeObject {
|
|
986
|
+
type: String!
|
|
987
|
+
json: JSONObject!
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
"""
|
|
991
|
+
The `JSONObject` scalar type represents JSON objects as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf).
|
|
992
|
+
"""
|
|
993
|
+
scalar JSONObject
|
|
994
|
+
|
|
806
995
|
type UserImages {
|
|
807
996
|
profilePictureUrl: String
|
|
808
997
|
cardPictureUrl: String
|
|
@@ -816,6 +1005,50 @@ type DeleteValuesResponse {
|
|
|
816
1005
|
result: String!
|
|
817
1006
|
}
|
|
818
1007
|
|
|
1008
|
+
input CreateDatabaseFileDto {
|
|
1009
|
+
identifier: String!
|
|
1010
|
+
version: String! = "1.0.0"
|
|
1011
|
+
contentType: String!
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
input CreateTextDatabaseFileDto {
|
|
1015
|
+
identifier: String!
|
|
1016
|
+
version: String! = "1.0.0"
|
|
1017
|
+
contentType: String!
|
|
1018
|
+
content: String! = ""
|
|
1019
|
+
}
|
|
1020
|
+
|
|
1021
|
+
input UpdateDatabaseFileDto {
|
|
1022
|
+
_id: String!
|
|
1023
|
+
identifier: String
|
|
1024
|
+
version: String
|
|
1025
|
+
contentType: String
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
input UpdateTextDatabaseFileDto {
|
|
1029
|
+
_id: String!
|
|
1030
|
+
identifier: String
|
|
1031
|
+
version: String
|
|
1032
|
+
contentType: String
|
|
1033
|
+
content: String
|
|
1034
|
+
}
|
|
1035
|
+
|
|
1036
|
+
input CloneDatabaseFileDto {
|
|
1037
|
+
_id: String!
|
|
1038
|
+
version: String
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
input FindDatabaseFilesDto {
|
|
1042
|
+
_id: String
|
|
1043
|
+
identifier: String
|
|
1044
|
+
version: String
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
input GetDatabaseFileDto {
|
|
1048
|
+
identifier: String!
|
|
1049
|
+
version: String!
|
|
1050
|
+
}
|
|
1051
|
+
|
|
819
1052
|
input CreateVerificationCodeDto {
|
|
820
1053
|
type: String
|
|
821
1054
|
recipient: String
|
|
@@ -942,6 +1175,25 @@ input AthleteQueryDto {
|
|
|
942
1175
|
filters: AthleteFilterDto
|
|
943
1176
|
}
|
|
944
1177
|
|
|
1178
|
+
input EditPictureDto {
|
|
1179
|
+
field: String!
|
|
1180
|
+
newPicture: AWSS3UploadedFileDto
|
|
1181
|
+
}
|
|
1182
|
+
|
|
1183
|
+
input AWSS3UploadedFileDto {
|
|
1184
|
+
key: String!
|
|
1185
|
+
useType: String!
|
|
1186
|
+
contentType: String!
|
|
1187
|
+
originalFileName: String
|
|
1188
|
+
fileSize: Float
|
|
1189
|
+
}
|
|
1190
|
+
|
|
1191
|
+
input UploadAlbumsPicturesDto {
|
|
1192
|
+
label: String!
|
|
1193
|
+
description: String
|
|
1194
|
+
pictures: [AWSS3UploadedFileDto!]
|
|
1195
|
+
}
|
|
1196
|
+
|
|
945
1197
|
input QualificationDto {
|
|
946
1198
|
type: String!
|
|
947
1199
|
}
|
|
@@ -1063,6 +1315,11 @@ input CreateFundingCampaignForDto {
|
|
|
1063
1315
|
loginEmail: String!
|
|
1064
1316
|
}
|
|
1065
1317
|
|
|
1318
|
+
input SetFundingStatusDto {
|
|
1319
|
+
fundingCampaignId: String!
|
|
1320
|
+
newStatus: String!
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1066
1323
|
input CreateMembershipOrganizationDto {
|
|
1067
1324
|
shortName: String!
|
|
1068
1325
|
acronym: String
|
|
@@ -1073,23 +1330,30 @@ input CreateMembershipOrganizationDto {
|
|
|
1073
1330
|
sportId: String
|
|
1074
1331
|
}
|
|
1075
1332
|
|
|
1076
|
-
input AWSS3UploadedFileDto {
|
|
1077
|
-
key: String!
|
|
1078
|
-
useType: String!
|
|
1079
|
-
contentType: String!
|
|
1080
|
-
originalFileName: String
|
|
1081
|
-
fileSize: Float
|
|
1082
|
-
}
|
|
1083
|
-
|
|
1084
1333
|
input CreateAthleteMembershipDto {
|
|
1085
1334
|
organizationId: String!
|
|
1086
|
-
athleteId: String!
|
|
1087
1335
|
membershipNumber: String
|
|
1088
1336
|
membershipType: String
|
|
1089
1337
|
issueDate: DateTime
|
|
1090
1338
|
expirationDate: DateTime
|
|
1091
1339
|
}
|
|
1092
1340
|
|
|
1341
|
+
input DonationCheckoutDto {
|
|
1342
|
+
fundingCampaignId: String!
|
|
1343
|
+
donationAmount: Float!
|
|
1344
|
+
mode: String! = "private"
|
|
1345
|
+
fromName: String
|
|
1346
|
+
fromEmail: String
|
|
1347
|
+
fromPhone: String
|
|
1348
|
+
message: String
|
|
1349
|
+
}
|
|
1350
|
+
|
|
1351
|
+
input StripeQueryDto {
|
|
1352
|
+
operation: String!
|
|
1353
|
+
id: String!
|
|
1354
|
+
params: String
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1093
1357
|
type Query {
|
|
1094
1358
|
findTenantById(_id: String!): Tenant!
|
|
1095
1359
|
findTenantByEmail(email: String!, domainId: String!): Tenant!
|
|
@@ -1116,6 +1380,8 @@ type Query {
|
|
|
1116
1380
|
getSponsorAthletesForTenant: [Athlete!]!
|
|
1117
1381
|
getAthleteCompetitions(input: GetAthleteCompetitionsDto!): [AthleteCompetition!]!
|
|
1118
1382
|
getAthleteMemberships(athleteId: String!): [AthleteMembership!]!
|
|
1383
|
+
findAthletebyIdpublic(athleteId: String!): Athlete!
|
|
1384
|
+
getAthleteAlbums: Album!
|
|
1119
1385
|
getSports: [Sport!]!
|
|
1120
1386
|
findSportById(sportId: String!): Sport!
|
|
1121
1387
|
getSportLevels: [SportLevel!]!
|
|
@@ -1132,6 +1398,8 @@ type Query {
|
|
|
1132
1398
|
getStravaLoginUrl: String!
|
|
1133
1399
|
getSportsEvents(input: GetSportEventsDto!): [SportsEvent!]!
|
|
1134
1400
|
getMembershipOrganizations: [MembershipOrganizationReference!]!
|
|
1401
|
+
stripeQuery(input: StripeQueryDto!): StripeObject!
|
|
1402
|
+
getDatabaseTextFile(input: GetDatabaseFileDto!): TextDatabaseFile!
|
|
1135
1403
|
}
|
|
1136
1404
|
|
|
1137
1405
|
input AWSS3GetUploadDto {
|
|
@@ -1176,8 +1444,12 @@ type Mutation {
|
|
|
1176
1444
|
sendAthleteInvitations(input: InviteAthletesDto!): [SponsorAthleteInvitation!]!
|
|
1177
1445
|
registerAthlete(input: RegisterAthleteDto!): Athlete!
|
|
1178
1446
|
editProfileValue(input: EditValueDto!): EditValueResponse!
|
|
1447
|
+
editPicture(input: EditPictureDto!): EditPictureResponse!
|
|
1448
|
+
AddAlbumPictures(input: UploadAlbumsPicturesDto!): AddValuesResponse!
|
|
1449
|
+
DeletePictureBuket(input: AWSS3DeleteUseTypeFileDto!): DeleteSingleValueResponse!
|
|
1179
1450
|
addAthleteCompetition(input: CreateAthleteCompetitionDto!): AthleteCompetition!
|
|
1180
1451
|
deleteAthleteCompetition(input: DeleteSingleValueDto!): DeleteSingleValueResponse!
|
|
1452
|
+
createAthleteAlbum(input: DeleteSingleValueDto!): Album!
|
|
1181
1453
|
createSport(input: CreateSportDto!): Sport!
|
|
1182
1454
|
updateSport(input: UpdateSportDto!): Sport!
|
|
1183
1455
|
createSportLevel(input: CreateSportLevelDto!): SportLevel!
|
|
@@ -1194,10 +1466,14 @@ type Mutation {
|
|
|
1194
1466
|
handleStravaCallback(data: RegisterStravaDto!): StravaToken!
|
|
1195
1467
|
refreshStravaToken(input: String!): StravaToken!
|
|
1196
1468
|
createSportsEvent(input: CreateSportEventDto!): SportsEvent!
|
|
1469
|
+
setFundingStatus(input: SetFundingStatusDto!): FundRaisingCampaign!
|
|
1197
1470
|
createFundingCampaign(input: CreateFundingCampaignDto!): FundRaisingCampaign!
|
|
1198
1471
|
createMembershipOrganization(input: CreateMembershipOrganizationDto!): MembershipOrganizationReference!
|
|
1199
1472
|
createAthleteMembershipAffilation(input: CreateAthleteMembershipDto!): AthleteMembership!
|
|
1200
1473
|
deleteAthleteMembershipAffilation(input: DeleteSingleValueDto!): DeleteSingleValueResponse!
|
|
1474
|
+
createStripeAccount(input: CreateStripeAccountDto!): StripeAccountReference!
|
|
1475
|
+
createAthleteStripeSession: StripeSession!
|
|
1476
|
+
createStripeCheckoutSession(input: DonationCheckoutDto!): StripeCheckoutSession!
|
|
1201
1477
|
}
|
|
1202
1478
|
|
|
1203
1479
|
input CreateTenantInput {
|
|
@@ -1437,4 +1713,10 @@ input CreateSportEventDto {
|
|
|
1437
1713
|
endDate: DateTime
|
|
1438
1714
|
website: String
|
|
1439
1715
|
banner: AWSS3UploadedFileDto
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
input CreateStripeAccountDto {
|
|
1719
|
+
countryId: String!
|
|
1720
|
+
acceptedTermsId: String!
|
|
1721
|
+
acceptedPrivacyId: String!
|
|
1440
1722
|
}
|
package/src/client/schema.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.isSponsorStats = exports.isIndustry = exports.isQualificationTypeUnion = exports.isAthleteCriteria = exports.isSportsLevelQualification = exports.isSportsQualification = exports.isDistanceQualification = exports.isNationalityQualification = exports.isLocationQualification = exports.isScoreQualification = exports.isGenderQualification = exports.isAgeQualification = exports.isCountry = exports.isState = exports.isCity = exports.isBrand = exports.isBrandTranslation = exports.isBrandStats = exports.isCodeVerificationResponse = exports.isTextDatabaseFile = exports.isDatabaseFile = exports.isAWSS3CallResult = exports.isAWSS3UploadUrl = exports.isHttpRequestField = exports.isErrorInfo = exports.isVerificationCode = exports.isMagicLink = 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.isCursorPaginationResponse = exports.isSortOrder = exports.isDeleteSingleValueResponse = exports.isErrorType = exports.isEditValueResponse = exports.isStripeCheckoutSession = exports.isStripeSession = exports.isStravaToken = exports.isSponsorAthleteInvitation = exports.isAthlete = exports.isAthleteReference = exports.isAlbum = exports.isPhotoAlbum = exports.isStripeAccountReference = exports.isStripeAccount = exports.isStripeFutureRequirementType = exports.isStripeRequirementType = exports.isStripeErrorType = exports.isStripeFutureRequirementAlternativeType = exports.isStripeRequirementAlternativeType = exports.isStripeCapabilityType = exports.isFundRaisingCampaign = exports.isAthletePreferences = exports.isChannel = exports.isNewsLink = exports.isAthleteMembership = exports.isMembershipOrganization = exports.isMembershipOrganizationReference = exports.isAthleteCompetition = exports.isBudget = exports.isBudgetItem = exports.isAthleteCompetitionResult = exports.isSportsEvent = exports.isWorldLocation = exports.isTeam = exports.isAthleteRankings = exports.isRanking = exports.isSportLevel = exports.isSportLevelTranslation = exports.isVtxScores = exports.isSport = exports.isFollowStats = exports.isSponsorship = exports.isSponsorshipTranslation = exports.isSponsorshipStats = exports.isDuration = exports.isSponsorshipCommitment = exports.isSponsorshipItem = exports.isSponsor = exports.isSponsorBrand = void 0;
|
|
5
|
+
exports.isMutation = exports.isQuery = exports.isDeleteValuesResponse = exports.isUserImages = exports.isStripeObject = exports.isAddValuesResponse = exports.isEditPictureResponse = exports.isAthleteQueryResponse = void 0;
|
|
5
6
|
const User_possibleTypes = ['User'];
|
|
6
7
|
const isUser = (obj) => {
|
|
7
8
|
if (!obj?.__typename)
|
|
@@ -205,6 +206,20 @@ const isAWSS3CallResult = (obj) => {
|
|
|
205
206
|
return AWSS3CallResult_possibleTypes.includes(obj.__typename);
|
|
206
207
|
};
|
|
207
208
|
exports.isAWSS3CallResult = isAWSS3CallResult;
|
|
209
|
+
const DatabaseFile_possibleTypes = ['DatabaseFile'];
|
|
210
|
+
const isDatabaseFile = (obj) => {
|
|
211
|
+
if (!obj?.__typename)
|
|
212
|
+
throw new Error('__typename is missing in "isDatabaseFile"');
|
|
213
|
+
return DatabaseFile_possibleTypes.includes(obj.__typename);
|
|
214
|
+
};
|
|
215
|
+
exports.isDatabaseFile = isDatabaseFile;
|
|
216
|
+
const TextDatabaseFile_possibleTypes = ['TextDatabaseFile'];
|
|
217
|
+
const isTextDatabaseFile = (obj) => {
|
|
218
|
+
if (!obj?.__typename)
|
|
219
|
+
throw new Error('__typename is missing in "isTextDatabaseFile"');
|
|
220
|
+
return TextDatabaseFile_possibleTypes.includes(obj.__typename);
|
|
221
|
+
};
|
|
222
|
+
exports.isTextDatabaseFile = isTextDatabaseFile;
|
|
208
223
|
const CodeVerificationResponse_possibleTypes = ['CodeVerificationResponse'];
|
|
209
224
|
const isCodeVerificationResponse = (obj) => {
|
|
210
225
|
if (!obj?.__typename)
|
|
@@ -541,6 +556,76 @@ const isFundRaisingCampaign = (obj) => {
|
|
|
541
556
|
return FundRaisingCampaign_possibleTypes.includes(obj.__typename);
|
|
542
557
|
};
|
|
543
558
|
exports.isFundRaisingCampaign = isFundRaisingCampaign;
|
|
559
|
+
const StripeCapabilityType_possibleTypes = ['StripeCapabilityType'];
|
|
560
|
+
const isStripeCapabilityType = (obj) => {
|
|
561
|
+
if (!obj?.__typename)
|
|
562
|
+
throw new Error('__typename is missing in "isStripeCapabilityType"');
|
|
563
|
+
return StripeCapabilityType_possibleTypes.includes(obj.__typename);
|
|
564
|
+
};
|
|
565
|
+
exports.isStripeCapabilityType = isStripeCapabilityType;
|
|
566
|
+
const StripeRequirementAlternativeType_possibleTypes = ['StripeRequirementAlternativeType'];
|
|
567
|
+
const isStripeRequirementAlternativeType = (obj) => {
|
|
568
|
+
if (!obj?.__typename)
|
|
569
|
+
throw new Error('__typename is missing in "isStripeRequirementAlternativeType"');
|
|
570
|
+
return StripeRequirementAlternativeType_possibleTypes.includes(obj.__typename);
|
|
571
|
+
};
|
|
572
|
+
exports.isStripeRequirementAlternativeType = isStripeRequirementAlternativeType;
|
|
573
|
+
const StripeFutureRequirementAlternativeType_possibleTypes = ['StripeFutureRequirementAlternativeType'];
|
|
574
|
+
const isStripeFutureRequirementAlternativeType = (obj) => {
|
|
575
|
+
if (!obj?.__typename)
|
|
576
|
+
throw new Error('__typename is missing in "isStripeFutureRequirementAlternativeType"');
|
|
577
|
+
return StripeFutureRequirementAlternativeType_possibleTypes.includes(obj.__typename);
|
|
578
|
+
};
|
|
579
|
+
exports.isStripeFutureRequirementAlternativeType = isStripeFutureRequirementAlternativeType;
|
|
580
|
+
const StripeErrorType_possibleTypes = ['StripeErrorType'];
|
|
581
|
+
const isStripeErrorType = (obj) => {
|
|
582
|
+
if (!obj?.__typename)
|
|
583
|
+
throw new Error('__typename is missing in "isStripeErrorType"');
|
|
584
|
+
return StripeErrorType_possibleTypes.includes(obj.__typename);
|
|
585
|
+
};
|
|
586
|
+
exports.isStripeErrorType = isStripeErrorType;
|
|
587
|
+
const StripeRequirementType_possibleTypes = ['StripeRequirementType'];
|
|
588
|
+
const isStripeRequirementType = (obj) => {
|
|
589
|
+
if (!obj?.__typename)
|
|
590
|
+
throw new Error('__typename is missing in "isStripeRequirementType"');
|
|
591
|
+
return StripeRequirementType_possibleTypes.includes(obj.__typename);
|
|
592
|
+
};
|
|
593
|
+
exports.isStripeRequirementType = isStripeRequirementType;
|
|
594
|
+
const StripeFutureRequirementType_possibleTypes = ['StripeFutureRequirementType'];
|
|
595
|
+
const isStripeFutureRequirementType = (obj) => {
|
|
596
|
+
if (!obj?.__typename)
|
|
597
|
+
throw new Error('__typename is missing in "isStripeFutureRequirementType"');
|
|
598
|
+
return StripeFutureRequirementType_possibleTypes.includes(obj.__typename);
|
|
599
|
+
};
|
|
600
|
+
exports.isStripeFutureRequirementType = isStripeFutureRequirementType;
|
|
601
|
+
const StripeAccount_possibleTypes = ['StripeAccount'];
|
|
602
|
+
const isStripeAccount = (obj) => {
|
|
603
|
+
if (!obj?.__typename)
|
|
604
|
+
throw new Error('__typename is missing in "isStripeAccount"');
|
|
605
|
+
return StripeAccount_possibleTypes.includes(obj.__typename);
|
|
606
|
+
};
|
|
607
|
+
exports.isStripeAccount = isStripeAccount;
|
|
608
|
+
const StripeAccountReference_possibleTypes = ['StripeAccountReference'];
|
|
609
|
+
const isStripeAccountReference = (obj) => {
|
|
610
|
+
if (!obj?.__typename)
|
|
611
|
+
throw new Error('__typename is missing in "isStripeAccountReference"');
|
|
612
|
+
return StripeAccountReference_possibleTypes.includes(obj.__typename);
|
|
613
|
+
};
|
|
614
|
+
exports.isStripeAccountReference = isStripeAccountReference;
|
|
615
|
+
const PhotoAlbum_possibleTypes = ['PhotoAlbum'];
|
|
616
|
+
const isPhotoAlbum = (obj) => {
|
|
617
|
+
if (!obj?.__typename)
|
|
618
|
+
throw new Error('__typename is missing in "isPhotoAlbum"');
|
|
619
|
+
return PhotoAlbum_possibleTypes.includes(obj.__typename);
|
|
620
|
+
};
|
|
621
|
+
exports.isPhotoAlbum = isPhotoAlbum;
|
|
622
|
+
const Album_possibleTypes = ['Album'];
|
|
623
|
+
const isAlbum = (obj) => {
|
|
624
|
+
if (!obj?.__typename)
|
|
625
|
+
throw new Error('__typename is missing in "isAlbum"');
|
|
626
|
+
return Album_possibleTypes.includes(obj.__typename);
|
|
627
|
+
};
|
|
628
|
+
exports.isAlbum = isAlbum;
|
|
544
629
|
const AthleteReference_possibleTypes = ['AthleteReference'];
|
|
545
630
|
const isAthleteReference = (obj) => {
|
|
546
631
|
if (!obj?.__typename)
|
|
@@ -569,6 +654,20 @@ const isStravaToken = (obj) => {
|
|
|
569
654
|
return StravaToken_possibleTypes.includes(obj.__typename);
|
|
570
655
|
};
|
|
571
656
|
exports.isStravaToken = isStravaToken;
|
|
657
|
+
const StripeSession_possibleTypes = ['StripeSession'];
|
|
658
|
+
const isStripeSession = (obj) => {
|
|
659
|
+
if (!obj?.__typename)
|
|
660
|
+
throw new Error('__typename is missing in "isStripeSession"');
|
|
661
|
+
return StripeSession_possibleTypes.includes(obj.__typename);
|
|
662
|
+
};
|
|
663
|
+
exports.isStripeSession = isStripeSession;
|
|
664
|
+
const StripeCheckoutSession_possibleTypes = ['StripeCheckoutSession'];
|
|
665
|
+
const isStripeCheckoutSession = (obj) => {
|
|
666
|
+
if (!obj?.__typename)
|
|
667
|
+
throw new Error('__typename is missing in "isStripeCheckoutSession"');
|
|
668
|
+
return StripeCheckoutSession_possibleTypes.includes(obj.__typename);
|
|
669
|
+
};
|
|
670
|
+
exports.isStripeCheckoutSession = isStripeCheckoutSession;
|
|
572
671
|
const EditValueResponse_possibleTypes = ['EditValueResponse'];
|
|
573
672
|
const isEditValueResponse = (obj) => {
|
|
574
673
|
if (!obj?.__typename)
|
|
@@ -611,6 +710,27 @@ const isAthleteQueryResponse = (obj) => {
|
|
|
611
710
|
return AthleteQueryResponse_possibleTypes.includes(obj.__typename);
|
|
612
711
|
};
|
|
613
712
|
exports.isAthleteQueryResponse = isAthleteQueryResponse;
|
|
713
|
+
const EditPictureResponse_possibleTypes = ['EditPictureResponse'];
|
|
714
|
+
const isEditPictureResponse = (obj) => {
|
|
715
|
+
if (!obj?.__typename)
|
|
716
|
+
throw new Error('__typename is missing in "isEditPictureResponse"');
|
|
717
|
+
return EditPictureResponse_possibleTypes.includes(obj.__typename);
|
|
718
|
+
};
|
|
719
|
+
exports.isEditPictureResponse = isEditPictureResponse;
|
|
720
|
+
const AddValuesResponse_possibleTypes = ['AddValuesResponse'];
|
|
721
|
+
const isAddValuesResponse = (obj) => {
|
|
722
|
+
if (!obj?.__typename)
|
|
723
|
+
throw new Error('__typename is missing in "isAddValuesResponse"');
|
|
724
|
+
return AddValuesResponse_possibleTypes.includes(obj.__typename);
|
|
725
|
+
};
|
|
726
|
+
exports.isAddValuesResponse = isAddValuesResponse;
|
|
727
|
+
const StripeObject_possibleTypes = ['StripeObject'];
|
|
728
|
+
const isStripeObject = (obj) => {
|
|
729
|
+
if (!obj?.__typename)
|
|
730
|
+
throw new Error('__typename is missing in "isStripeObject"');
|
|
731
|
+
return StripeObject_possibleTypes.includes(obj.__typename);
|
|
732
|
+
};
|
|
733
|
+
exports.isStripeObject = isStripeObject;
|
|
614
734
|
const UserImages_possibleTypes = ['UserImages'];
|
|
615
735
|
const isUserImages = (obj) => {
|
|
616
736
|
if (!obj?.__typename)
|