@vertikalx/vtx-backend-client 1.0.0-dev-daniel.247 → 1.0.0-dev-max.63
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/LICENSE.md +0 -0
- package/package.json +1 -1
- package/src/api/vtx-base-api.d.ts +3 -5
- package/src/api/vtx-base-api.js +77 -579
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +224 -24
- package/src/client/schema.js +62 -2
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +104 -12
- package/src/client/types.js +419 -190
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
package/src/client/schema.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ export type Scalars = {
|
|
|
3
3
|
Boolean: boolean;
|
|
4
4
|
DateTime: any;
|
|
5
5
|
Float: number;
|
|
6
|
+
ID: string;
|
|
6
7
|
JSONObject: any;
|
|
7
8
|
};
|
|
8
9
|
export interface User {
|
|
@@ -939,6 +940,11 @@ export interface HistoricalScoreType {
|
|
|
939
940
|
athleteId: Scalars['String'];
|
|
940
941
|
__typename: 'HistoricalScoreType';
|
|
941
942
|
}
|
|
943
|
+
export interface UserDomain {
|
|
944
|
+
_id: Scalars['String'];
|
|
945
|
+
user: (User | null);
|
|
946
|
+
__typename: 'UserDomain';
|
|
947
|
+
}
|
|
942
948
|
export interface AthleteReference {
|
|
943
949
|
_id: Scalars['String'];
|
|
944
950
|
firstName: Scalars['String'];
|
|
@@ -963,6 +969,7 @@ export interface AthleteReference {
|
|
|
963
969
|
bannerPicture: (AWSS3File | null);
|
|
964
970
|
aboutMe: (Scalars['String'] | null);
|
|
965
971
|
preferences: AthletePreferences;
|
|
972
|
+
userDomain: UserDomain;
|
|
966
973
|
__typename: 'AthleteReference';
|
|
967
974
|
}
|
|
968
975
|
export interface Athlete {
|
|
@@ -989,6 +996,7 @@ export interface Athlete {
|
|
|
989
996
|
bannerPicture: (AWSS3File | null);
|
|
990
997
|
aboutMe: (Scalars['String'] | null);
|
|
991
998
|
preferences: AthletePreferences;
|
|
999
|
+
userDomain: UserDomain;
|
|
992
1000
|
allSports: (Sport[] | null);
|
|
993
1001
|
teams: (Team[] | null);
|
|
994
1002
|
sponsorBrands: (Brand[] | null);
|
|
@@ -1004,6 +1012,34 @@ export interface Athlete {
|
|
|
1004
1012
|
signedAgreements: (SignedAgreement[] | null);
|
|
1005
1013
|
__typename: 'Athlete';
|
|
1006
1014
|
}
|
|
1015
|
+
export interface CheckoutSession {
|
|
1016
|
+
_id: Scalars['ID'];
|
|
1017
|
+
type: (Scalars['String'] | null);
|
|
1018
|
+
estimatedStripeComission: (Scalars['Float'] | null);
|
|
1019
|
+
stripeSessionId: Scalars['String'];
|
|
1020
|
+
stripeAccountId: Scalars['String'];
|
|
1021
|
+
donationAmount: Scalars['Float'];
|
|
1022
|
+
fromEmail: (Scalars['String'] | null);
|
|
1023
|
+
confirmed: Scalars['Boolean'];
|
|
1024
|
+
completed: Scalars['Boolean'];
|
|
1025
|
+
completedDate: (Scalars['DateTime'] | null);
|
|
1026
|
+
createdDate: Scalars['DateTime'];
|
|
1027
|
+
__typename: 'CheckoutSession';
|
|
1028
|
+
}
|
|
1029
|
+
export interface FundingCheckoutSessionData {
|
|
1030
|
+
_id: Scalars['ID'];
|
|
1031
|
+
session: (CheckoutSession | null);
|
|
1032
|
+
fromName: (Scalars['String'] | null);
|
|
1033
|
+
paidToAthlete: (Scalars['Float'] | null);
|
|
1034
|
+
paidToVtx: (Scalars['Float'] | null);
|
|
1035
|
+
fundingCampaign: (FundRaisingCampaign | null);
|
|
1036
|
+
mode: DonationMode;
|
|
1037
|
+
athleteId: Scalars['String'];
|
|
1038
|
+
athleteName: Scalars['String'];
|
|
1039
|
+
fromPhone: (Scalars['String'] | null);
|
|
1040
|
+
message: (Scalars['String'] | null);
|
|
1041
|
+
__typename: 'FundingCheckoutSessionData';
|
|
1042
|
+
}
|
|
1007
1043
|
export interface SponsorAthleteInvitation {
|
|
1008
1044
|
_id: Scalars['String'];
|
|
1009
1045
|
name: (Scalars['String'] | null);
|
|
@@ -1112,6 +1148,22 @@ export interface AthleteIntegrationReference {
|
|
|
1112
1148
|
instagramMediaData: (InstagramMediaData | null);
|
|
1113
1149
|
__typename: 'AthleteIntegrationReference';
|
|
1114
1150
|
}
|
|
1151
|
+
export interface Receipt {
|
|
1152
|
+
receiptId: Scalars['String'];
|
|
1153
|
+
campaignName: (Scalars['String'] | null);
|
|
1154
|
+
athleteName: (Scalars['String'] | null);
|
|
1155
|
+
donorName: Scalars['String'];
|
|
1156
|
+
amount: Scalars['Float'];
|
|
1157
|
+
currency: Scalars['String'];
|
|
1158
|
+
dateIssued: Scalars['DateTime'];
|
|
1159
|
+
confirmed: Scalars['Boolean'];
|
|
1160
|
+
message: (Scalars['String'] | null);
|
|
1161
|
+
__typename: 'Receipt';
|
|
1162
|
+
}
|
|
1163
|
+
export interface ReceiptUrl {
|
|
1164
|
+
receiptId: Scalars['String'];
|
|
1165
|
+
__typename: 'ReceiptUrl';
|
|
1166
|
+
}
|
|
1115
1167
|
export interface EditValueResponse {
|
|
1116
1168
|
field: Scalars['String'];
|
|
1117
1169
|
oldValue: (Scalars['String'] | null);
|
|
@@ -1176,6 +1228,12 @@ export interface ExistValueResponse {
|
|
|
1176
1228
|
exist: Scalars['Boolean'];
|
|
1177
1229
|
__typename: 'ExistValueResponse';
|
|
1178
1230
|
}
|
|
1231
|
+
export interface DeleteUserResponse {
|
|
1232
|
+
deletedUser: (User | null);
|
|
1233
|
+
deletedAthlete: (AthleteReference | null);
|
|
1234
|
+
success: Scalars['Boolean'];
|
|
1235
|
+
__typename: 'DeleteUserResponse';
|
|
1236
|
+
}
|
|
1179
1237
|
export interface StripeObject {
|
|
1180
1238
|
type: Scalars['String'];
|
|
1181
1239
|
json: Scalars['JSONObject'];
|
|
@@ -1187,6 +1245,24 @@ export interface UserImages {
|
|
|
1187
1245
|
bannerPictureUrl: (Scalars['String'] | null);
|
|
1188
1246
|
__typename: 'UserImages';
|
|
1189
1247
|
}
|
|
1248
|
+
export interface StripeTransfer {
|
|
1249
|
+
_id: Scalars['ID'];
|
|
1250
|
+
stripeId: (Scalars['String'] | null);
|
|
1251
|
+
amount: Scalars['Float'];
|
|
1252
|
+
amount_reversed: Scalars['Float'];
|
|
1253
|
+
currency: Scalars['String'];
|
|
1254
|
+
destination: (Scalars['String'] | null);
|
|
1255
|
+
description: (Scalars['String'] | null);
|
|
1256
|
+
reversed: Scalars['Boolean'];
|
|
1257
|
+
livemode: Scalars['Boolean'];
|
|
1258
|
+
transfer_group: (Scalars['String'] | null);
|
|
1259
|
+
status: StripeTransferStatus;
|
|
1260
|
+
lastError: (Scalars['String'] | null);
|
|
1261
|
+
json: Scalars['String'];
|
|
1262
|
+
__typename: 'StripeTransfer';
|
|
1263
|
+
}
|
|
1264
|
+
export type StripeTransferStatus = 'not_applicable' | 'pending' | 'failed' | 'completed';
|
|
1265
|
+
export type DonationMode = 'PUBLIC' | 'PRIVATE' | 'ANONYMOUS';
|
|
1190
1266
|
export interface Query {
|
|
1191
1267
|
findTenantById: Tenant;
|
|
1192
1268
|
findTenantByEmail: Tenant;
|
|
@@ -1227,13 +1303,9 @@ export interface Query {
|
|
|
1227
1303
|
getSportLevels: SportLevel[];
|
|
1228
1304
|
getPublicSponsorships: Sponsorship[];
|
|
1229
1305
|
getTenantSponsorships: Sponsorship[];
|
|
1230
|
-
findCountriesStartingWith: Country[];
|
|
1231
1306
|
getCountries: Country[];
|
|
1232
|
-
findCountryById: Country;
|
|
1233
|
-
findStatesStartingWith: State[];
|
|
1234
1307
|
getCountryStates: State[];
|
|
1235
1308
|
getStates: State[];
|
|
1236
|
-
findStateById: State;
|
|
1237
1309
|
getStateCities: City[];
|
|
1238
1310
|
findCitiesStartingWith: City[];
|
|
1239
1311
|
findCityById: City;
|
|
@@ -1250,6 +1322,8 @@ export interface Query {
|
|
|
1250
1322
|
getAthleteIntegrations: AthleteIntegrationReference;
|
|
1251
1323
|
stripeQuery: StripeObject;
|
|
1252
1324
|
getDatabaseTextFile: TextDatabaseFile;
|
|
1325
|
+
getReceipt: Receipt;
|
|
1326
|
+
getReceiptUrl: ReceiptUrl;
|
|
1253
1327
|
__typename: 'Query';
|
|
1254
1328
|
}
|
|
1255
1329
|
export interface Mutation {
|
|
@@ -1281,6 +1355,7 @@ export interface Mutation {
|
|
|
1281
1355
|
deleteAthletePhotos: DeleteValuesResponse;
|
|
1282
1356
|
saveAthleteCompetitionResult: AthleteCompetitionResult;
|
|
1283
1357
|
updateAthleteScores: Athlete;
|
|
1358
|
+
deleteAthleteUser: DeleteUserResponse;
|
|
1284
1359
|
createSport: Sport;
|
|
1285
1360
|
updateSport: Sport;
|
|
1286
1361
|
createSportLevel: SportLevel;
|
|
@@ -1296,6 +1371,7 @@ export interface Mutation {
|
|
|
1296
1371
|
loginUserFromCredentialsVtx: UserWithToken;
|
|
1297
1372
|
createResetPasswordCode: EditValueResponse;
|
|
1298
1373
|
resetUserPassword: EditValueResponse;
|
|
1374
|
+
updateUserSuspendedStatus: User;
|
|
1299
1375
|
handleStravaCallback: StravaToken;
|
|
1300
1376
|
refreshStravaToken: StravaToken;
|
|
1301
1377
|
createSportsEvent: SportsEvent;
|
|
@@ -2345,6 +2421,12 @@ export interface HistoricalScoreTypeGenqlSelection {
|
|
|
2345
2421
|
__typename?: boolean | number;
|
|
2346
2422
|
__scalar?: boolean | number;
|
|
2347
2423
|
}
|
|
2424
|
+
export interface UserDomainGenqlSelection {
|
|
2425
|
+
_id?: boolean | number;
|
|
2426
|
+
user?: UserGenqlSelection;
|
|
2427
|
+
__typename?: boolean | number;
|
|
2428
|
+
__scalar?: boolean | number;
|
|
2429
|
+
}
|
|
2348
2430
|
export interface AthleteReferenceGenqlSelection {
|
|
2349
2431
|
_id?: boolean | number;
|
|
2350
2432
|
firstName?: boolean | number;
|
|
@@ -2369,6 +2451,7 @@ export interface AthleteReferenceGenqlSelection {
|
|
|
2369
2451
|
bannerPicture?: AWSS3FileGenqlSelection;
|
|
2370
2452
|
aboutMe?: boolean | number;
|
|
2371
2453
|
preferences?: AthletePreferencesGenqlSelection;
|
|
2454
|
+
userDomain?: UserDomainGenqlSelection;
|
|
2372
2455
|
__typename?: boolean | number;
|
|
2373
2456
|
__scalar?: boolean | number;
|
|
2374
2457
|
}
|
|
@@ -2396,6 +2479,7 @@ export interface AthleteGenqlSelection {
|
|
|
2396
2479
|
bannerPicture?: AWSS3FileGenqlSelection;
|
|
2397
2480
|
aboutMe?: boolean | number;
|
|
2398
2481
|
preferences?: AthletePreferencesGenqlSelection;
|
|
2482
|
+
userDomain?: UserDomainGenqlSelection;
|
|
2399
2483
|
allSports?: SportGenqlSelection;
|
|
2400
2484
|
teams?: TeamGenqlSelection;
|
|
2401
2485
|
sponsorBrands?: BrandGenqlSelection;
|
|
@@ -2412,6 +2496,36 @@ export interface AthleteGenqlSelection {
|
|
|
2412
2496
|
__typename?: boolean | number;
|
|
2413
2497
|
__scalar?: boolean | number;
|
|
2414
2498
|
}
|
|
2499
|
+
export interface CheckoutSessionGenqlSelection {
|
|
2500
|
+
_id?: boolean | number;
|
|
2501
|
+
type?: boolean | number;
|
|
2502
|
+
estimatedStripeComission?: boolean | number;
|
|
2503
|
+
stripeSessionId?: boolean | number;
|
|
2504
|
+
stripeAccountId?: boolean | number;
|
|
2505
|
+
donationAmount?: boolean | number;
|
|
2506
|
+
fromEmail?: boolean | number;
|
|
2507
|
+
confirmed?: boolean | number;
|
|
2508
|
+
completed?: boolean | number;
|
|
2509
|
+
completedDate?: boolean | number;
|
|
2510
|
+
createdDate?: boolean | number;
|
|
2511
|
+
__typename?: boolean | number;
|
|
2512
|
+
__scalar?: boolean | number;
|
|
2513
|
+
}
|
|
2514
|
+
export interface FundingCheckoutSessionDataGenqlSelection {
|
|
2515
|
+
_id?: boolean | number;
|
|
2516
|
+
session?: CheckoutSessionGenqlSelection;
|
|
2517
|
+
fromName?: boolean | number;
|
|
2518
|
+
paidToAthlete?: boolean | number;
|
|
2519
|
+
paidToVtx?: boolean | number;
|
|
2520
|
+
fundingCampaign?: FundRaisingCampaignGenqlSelection;
|
|
2521
|
+
mode?: boolean | number;
|
|
2522
|
+
athleteId?: boolean | number;
|
|
2523
|
+
athleteName?: boolean | number;
|
|
2524
|
+
fromPhone?: boolean | number;
|
|
2525
|
+
message?: boolean | number;
|
|
2526
|
+
__typename?: boolean | number;
|
|
2527
|
+
__scalar?: boolean | number;
|
|
2528
|
+
}
|
|
2415
2529
|
export interface SponsorAthleteInvitationGenqlSelection {
|
|
2416
2530
|
_id?: boolean | number;
|
|
2417
2531
|
name?: boolean | number;
|
|
@@ -2533,6 +2647,24 @@ export interface AthleteIntegrationReferenceGenqlSelection {
|
|
|
2533
2647
|
__typename?: boolean | number;
|
|
2534
2648
|
__scalar?: boolean | number;
|
|
2535
2649
|
}
|
|
2650
|
+
export interface ReceiptGenqlSelection {
|
|
2651
|
+
receiptId?: boolean | number;
|
|
2652
|
+
campaignName?: boolean | number;
|
|
2653
|
+
athleteName?: boolean | number;
|
|
2654
|
+
donorName?: boolean | number;
|
|
2655
|
+
amount?: boolean | number;
|
|
2656
|
+
currency?: boolean | number;
|
|
2657
|
+
dateIssued?: boolean | number;
|
|
2658
|
+
confirmed?: boolean | number;
|
|
2659
|
+
message?: boolean | number;
|
|
2660
|
+
__typename?: boolean | number;
|
|
2661
|
+
__scalar?: boolean | number;
|
|
2662
|
+
}
|
|
2663
|
+
export interface ReceiptUrlGenqlSelection {
|
|
2664
|
+
receiptId?: boolean | number;
|
|
2665
|
+
__typename?: boolean | number;
|
|
2666
|
+
__scalar?: boolean | number;
|
|
2667
|
+
}
|
|
2536
2668
|
export interface EditValueResponseGenqlSelection {
|
|
2537
2669
|
field?: boolean | number;
|
|
2538
2670
|
oldValue?: boolean | number;
|
|
@@ -2607,6 +2739,13 @@ export interface ExistValueResponseGenqlSelection {
|
|
|
2607
2739
|
__typename?: boolean | number;
|
|
2608
2740
|
__scalar?: boolean | number;
|
|
2609
2741
|
}
|
|
2742
|
+
export interface DeleteUserResponseGenqlSelection {
|
|
2743
|
+
deletedUser?: UserGenqlSelection;
|
|
2744
|
+
deletedAthlete?: AthleteReferenceGenqlSelection;
|
|
2745
|
+
success?: boolean | number;
|
|
2746
|
+
__typename?: boolean | number;
|
|
2747
|
+
__scalar?: boolean | number;
|
|
2748
|
+
}
|
|
2610
2749
|
export interface StripeObjectGenqlSelection {
|
|
2611
2750
|
type?: boolean | number;
|
|
2612
2751
|
json?: boolean | number;
|
|
@@ -2620,6 +2759,23 @@ export interface UserImagesGenqlSelection {
|
|
|
2620
2759
|
__typename?: boolean | number;
|
|
2621
2760
|
__scalar?: boolean | number;
|
|
2622
2761
|
}
|
|
2762
|
+
export interface StripeTransferGenqlSelection {
|
|
2763
|
+
_id?: boolean | number;
|
|
2764
|
+
stripeId?: boolean | number;
|
|
2765
|
+
amount?: boolean | number;
|
|
2766
|
+
amount_reversed?: boolean | number;
|
|
2767
|
+
currency?: boolean | number;
|
|
2768
|
+
destination?: boolean | number;
|
|
2769
|
+
description?: boolean | number;
|
|
2770
|
+
reversed?: boolean | number;
|
|
2771
|
+
livemode?: boolean | number;
|
|
2772
|
+
transfer_group?: boolean | number;
|
|
2773
|
+
status?: boolean | number;
|
|
2774
|
+
lastError?: boolean | number;
|
|
2775
|
+
json?: boolean | number;
|
|
2776
|
+
__typename?: boolean | number;
|
|
2777
|
+
__scalar?: boolean | number;
|
|
2778
|
+
}
|
|
2623
2779
|
export interface CreateDatabaseFileDto {
|
|
2624
2780
|
identifier: Scalars['String'];
|
|
2625
2781
|
version?: Scalars['String'];
|
|
@@ -2811,6 +2967,9 @@ export interface GetHistoricalScoresDto {
|
|
|
2811
2967
|
scoreTypes: Scalars['String'][];
|
|
2812
2968
|
athleteIdOrEmail: Scalars['String'];
|
|
2813
2969
|
}
|
|
2970
|
+
export interface DeleteUserDto {
|
|
2971
|
+
userIdentifier: Scalars['String'];
|
|
2972
|
+
}
|
|
2814
2973
|
export interface QualificationDto {
|
|
2815
2974
|
type: Scalars['String'];
|
|
2816
2975
|
}
|
|
@@ -2868,6 +3027,9 @@ export interface resetPasswordDto {
|
|
|
2868
3027
|
code: VerifyCodeDto;
|
|
2869
3028
|
newPassword?: (Scalars['String'] | null);
|
|
2870
3029
|
}
|
|
3030
|
+
export interface GetReceiptDto {
|
|
3031
|
+
_id: Scalars['String'];
|
|
3032
|
+
}
|
|
2871
3033
|
export interface BudgetItemDto {
|
|
2872
3034
|
quantity: Scalars['Float'];
|
|
2873
3035
|
concept: Scalars['String'];
|
|
@@ -2956,6 +3118,9 @@ export interface CreateAthleteIntegrationDto {
|
|
|
2956
3118
|
expiresIn: Scalars['Float'];
|
|
2957
3119
|
refreshExpiresIn?: (Scalars['Float'] | null);
|
|
2958
3120
|
}
|
|
3121
|
+
export interface GetFundingCheckoutSessionDataDto {
|
|
3122
|
+
_id: Scalars['String'];
|
|
3123
|
+
}
|
|
2959
3124
|
export interface QueryGenqlSelection {
|
|
2960
3125
|
findTenantById?: (TenantGenqlSelection & {
|
|
2961
3126
|
__args: {
|
|
@@ -3112,33 +3277,13 @@ export interface QueryGenqlSelection {
|
|
|
3112
3277
|
getSportLevels?: SportLevelGenqlSelection;
|
|
3113
3278
|
getPublicSponsorships?: SponsorshipGenqlSelection;
|
|
3114
3279
|
getTenantSponsorships?: SponsorshipGenqlSelection;
|
|
3115
|
-
findCountriesStartingWith?: (CountryGenqlSelection & {
|
|
3116
|
-
__args: {
|
|
3117
|
-
text: Scalars['String'];
|
|
3118
|
-
};
|
|
3119
|
-
});
|
|
3120
3280
|
getCountries?: CountryGenqlSelection;
|
|
3121
|
-
findCountryById?: (CountryGenqlSelection & {
|
|
3122
|
-
__args: {
|
|
3123
|
-
countryId: Scalars['String'];
|
|
3124
|
-
};
|
|
3125
|
-
});
|
|
3126
|
-
findStatesStartingWith?: (StateGenqlSelection & {
|
|
3127
|
-
__args: {
|
|
3128
|
-
text: Scalars['String'];
|
|
3129
|
-
};
|
|
3130
|
-
});
|
|
3131
3281
|
getCountryStates?: (StateGenqlSelection & {
|
|
3132
3282
|
__args: {
|
|
3133
3283
|
countryId: Scalars['String'];
|
|
3134
3284
|
};
|
|
3135
3285
|
});
|
|
3136
3286
|
getStates?: StateGenqlSelection;
|
|
3137
|
-
findStateById?: (StateGenqlSelection & {
|
|
3138
|
-
__args: {
|
|
3139
|
-
stateId: Scalars['String'];
|
|
3140
|
-
};
|
|
3141
|
-
});
|
|
3142
3287
|
getStateCities?: (CityGenqlSelection & {
|
|
3143
3288
|
__args: {
|
|
3144
3289
|
stateId: Scalars['String'];
|
|
@@ -3200,6 +3345,16 @@ export interface QueryGenqlSelection {
|
|
|
3200
3345
|
input: GetDatabaseFileDto;
|
|
3201
3346
|
};
|
|
3202
3347
|
});
|
|
3348
|
+
getReceipt?: (ReceiptGenqlSelection & {
|
|
3349
|
+
__args: {
|
|
3350
|
+
input: GetReceiptDto;
|
|
3351
|
+
};
|
|
3352
|
+
});
|
|
3353
|
+
getReceiptUrl?: (ReceiptUrlGenqlSelection & {
|
|
3354
|
+
__args: {
|
|
3355
|
+
input: GetReceiptDto;
|
|
3356
|
+
};
|
|
3357
|
+
});
|
|
3203
3358
|
__typename?: boolean | number;
|
|
3204
3359
|
__scalar?: boolean | number;
|
|
3205
3360
|
}
|
|
@@ -3361,6 +3516,11 @@ export interface MutationGenqlSelection {
|
|
|
3361
3516
|
};
|
|
3362
3517
|
});
|
|
3363
3518
|
updateAthleteScores?: AthleteGenqlSelection;
|
|
3519
|
+
deleteAthleteUser?: (DeleteUserResponseGenqlSelection & {
|
|
3520
|
+
__args: {
|
|
3521
|
+
input: DeleteUserDto;
|
|
3522
|
+
};
|
|
3523
|
+
});
|
|
3364
3524
|
createSport?: (SportGenqlSelection & {
|
|
3365
3525
|
__args: {
|
|
3366
3526
|
input: CreateSportDto;
|
|
@@ -3437,6 +3597,11 @@ export interface MutationGenqlSelection {
|
|
|
3437
3597
|
input: resetPasswordDto;
|
|
3438
3598
|
};
|
|
3439
3599
|
});
|
|
3600
|
+
updateUserSuspendedStatus?: (UserGenqlSelection & {
|
|
3601
|
+
__args: {
|
|
3602
|
+
input: UpdateUserSuspendedStatusDto;
|
|
3603
|
+
};
|
|
3604
|
+
});
|
|
3440
3605
|
handleStravaCallback?: (StravaTokenGenqlSelection & {
|
|
3441
3606
|
__args: {
|
|
3442
3607
|
data: RegisterStravaDto;
|
|
@@ -3699,6 +3864,9 @@ export interface CreateCityDto {
|
|
|
3699
3864
|
ranking?: (Scalars['Float'] | null);
|
|
3700
3865
|
same_name?: (Scalars['String'] | null);
|
|
3701
3866
|
}
|
|
3867
|
+
export interface UpdateUserSuspendedStatusDto {
|
|
3868
|
+
userId: Scalars['String'];
|
|
3869
|
+
}
|
|
3702
3870
|
export interface RegisterStravaDto {
|
|
3703
3871
|
idAthlete: Scalars['String'];
|
|
3704
3872
|
code: Scalars['String'];
|
|
@@ -4000,12 +4168,21 @@ export declare const isStripeAccountReference: (obj?: {
|
|
|
4000
4168
|
export declare const isHistoricalScoreType: (obj?: {
|
|
4001
4169
|
__typename?: any;
|
|
4002
4170
|
} | null) => obj is HistoricalScoreType;
|
|
4171
|
+
export declare const isUserDomain: (obj?: {
|
|
4172
|
+
__typename?: any;
|
|
4173
|
+
} | null) => obj is UserDomain;
|
|
4003
4174
|
export declare const isAthleteReference: (obj?: {
|
|
4004
4175
|
__typename?: any;
|
|
4005
4176
|
} | null) => obj is AthleteReference;
|
|
4006
4177
|
export declare const isAthlete: (obj?: {
|
|
4007
4178
|
__typename?: any;
|
|
4008
4179
|
} | null) => obj is Athlete;
|
|
4180
|
+
export declare const isCheckoutSession: (obj?: {
|
|
4181
|
+
__typename?: any;
|
|
4182
|
+
} | null) => obj is CheckoutSession;
|
|
4183
|
+
export declare const isFundingCheckoutSessionData: (obj?: {
|
|
4184
|
+
__typename?: any;
|
|
4185
|
+
} | null) => obj is FundingCheckoutSessionData;
|
|
4009
4186
|
export declare const isSponsorAthleteInvitation: (obj?: {
|
|
4010
4187
|
__typename?: any;
|
|
4011
4188
|
} | null) => obj is SponsorAthleteInvitation;
|
|
@@ -4045,6 +4222,12 @@ export declare const isInstagramUserData: (obj?: {
|
|
|
4045
4222
|
export declare const isAthleteIntegrationReference: (obj?: {
|
|
4046
4223
|
__typename?: any;
|
|
4047
4224
|
} | null) => obj is AthleteIntegrationReference;
|
|
4225
|
+
export declare const isReceipt: (obj?: {
|
|
4226
|
+
__typename?: any;
|
|
4227
|
+
} | null) => obj is Receipt;
|
|
4228
|
+
export declare const isReceiptUrl: (obj?: {
|
|
4229
|
+
__typename?: any;
|
|
4230
|
+
} | null) => obj is ReceiptUrl;
|
|
4048
4231
|
export declare const isEditValueResponse: (obj?: {
|
|
4049
4232
|
__typename?: any;
|
|
4050
4233
|
} | null) => obj is EditValueResponse;
|
|
@@ -4075,15 +4258,32 @@ export declare const isAddValuesResponse: (obj?: {
|
|
|
4075
4258
|
export declare const isExistValueResponse: (obj?: {
|
|
4076
4259
|
__typename?: any;
|
|
4077
4260
|
} | null) => obj is ExistValueResponse;
|
|
4261
|
+
export declare const isDeleteUserResponse: (obj?: {
|
|
4262
|
+
__typename?: any;
|
|
4263
|
+
} | null) => obj is DeleteUserResponse;
|
|
4078
4264
|
export declare const isStripeObject: (obj?: {
|
|
4079
4265
|
__typename?: any;
|
|
4080
4266
|
} | null) => obj is StripeObject;
|
|
4081
4267
|
export declare const isUserImages: (obj?: {
|
|
4082
4268
|
__typename?: any;
|
|
4083
4269
|
} | null) => obj is UserImages;
|
|
4270
|
+
export declare const isStripeTransfer: (obj?: {
|
|
4271
|
+
__typename?: any;
|
|
4272
|
+
} | null) => obj is StripeTransfer;
|
|
4084
4273
|
export declare const isQuery: (obj?: {
|
|
4085
4274
|
__typename?: any;
|
|
4086
4275
|
} | null) => obj is Query;
|
|
4087
4276
|
export declare const isMutation: (obj?: {
|
|
4088
4277
|
__typename?: any;
|
|
4089
4278
|
} | null) => obj is Mutation;
|
|
4279
|
+
export declare const enumStripeTransferStatus: {
|
|
4280
|
+
not_applicable: "not_applicable";
|
|
4281
|
+
pending: "pending";
|
|
4282
|
+
failed: "failed";
|
|
4283
|
+
completed: "completed";
|
|
4284
|
+
};
|
|
4285
|
+
export declare const enumDonationMode: {
|
|
4286
|
+
PUBLIC: "PUBLIC";
|
|
4287
|
+
PRIVATE: "PRIVATE";
|
|
4288
|
+
ANONYMOUS: "ANONYMOUS";
|
|
4289
|
+
};
|
package/src/client/schema.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.isSportsLevelQualification = exports.isSportsQualification = exports.isDistanceQualification = exports.isNationalityQualification = exports.isLocationQualification = exports.isScoreQualification = exports.isGenderQualification = exports.isAgeQualification = exports.isCountry = exports.isState = exports.isCity = exports.isStravaTpiSwimDto = exports.isStravaTpiRunDto = exports.isStravaTpiRideDto = 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.isSignedAgreement = 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.
|
|
5
|
-
exports.isMutation = exports.isQuery = exports.isUserImages = exports.isStripeObject = exports.isExistValueResponse = exports.isAddValuesResponse = exports.isEditPictureResponse = exports.isAthleteQueryResponse = exports.isCursorPaginationResponse = exports.isSortOrder = exports.isDeleteSingleValueResponse = exports.isDeleteValuesResponse = exports.isErrorType = exports.isEditValueResponse = exports.isAthleteIntegrationReference = exports.isInstagramUserData = exports.isInstagramMediaData = exports.isInstagramMediaItem = exports.isInstagramInsights = exports.isInstagramMetric = exports.isInstagramPaging = exports.isInstagramCursors = exports.isStravaAthleteData = void 0;
|
|
4
|
+
exports.isSponsorAthleteInvitation = exports.isFundingCheckoutSessionData = exports.isCheckoutSession = exports.isAthlete = exports.isAthleteReference = exports.isUserDomain = exports.isHistoricalScoreType = exports.isStripeAccountReference = exports.isStripeAccount = exports.isStripeFutureRequirementType = exports.isStripeRequirementType = exports.isStripeErrorType = exports.isStripeFutureRequirementAlternativeType = exports.isStripeRequirementAlternativeType = exports.isStripeCapabilityType = exports.isFundRaisingCampaign = exports.isAthletePreferences = exports.isAlbum = exports.isPhotoAlbum = 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 = exports.isSponsorStats = exports.isIndustry = exports.isQualificationTypeUnion = exports.isAthleteCriteria = void 0;
|
|
5
|
+
exports.enumDonationMode = exports.enumStripeTransferStatus = exports.isMutation = exports.isQuery = exports.isStripeTransfer = exports.isUserImages = exports.isStripeObject = exports.isDeleteUserResponse = exports.isExistValueResponse = exports.isAddValuesResponse = exports.isEditPictureResponse = exports.isAthleteQueryResponse = exports.isCursorPaginationResponse = exports.isSortOrder = exports.isDeleteSingleValueResponse = exports.isDeleteValuesResponse = exports.isErrorType = exports.isEditValueResponse = exports.isReceiptUrl = exports.isReceipt = exports.isAthleteIntegrationReference = exports.isInstagramUserData = exports.isInstagramMediaData = exports.isInstagramMediaItem = exports.isInstagramInsights = exports.isInstagramMetric = exports.isInstagramPaging = exports.isInstagramCursors = exports.isStravaAthleteData = exports.isStripeCheckoutSession = exports.isStripeSession = exports.isStravaToken = void 0;
|
|
6
6
|
const User_possibleTypes = ['User'];
|
|
7
7
|
const isUser = (obj) => {
|
|
8
8
|
if (!obj?.__typename)
|
|
@@ -661,6 +661,13 @@ const isHistoricalScoreType = (obj) => {
|
|
|
661
661
|
return HistoricalScoreType_possibleTypes.includes(obj.__typename);
|
|
662
662
|
};
|
|
663
663
|
exports.isHistoricalScoreType = isHistoricalScoreType;
|
|
664
|
+
const UserDomain_possibleTypes = ['UserDomain'];
|
|
665
|
+
const isUserDomain = (obj) => {
|
|
666
|
+
if (!obj?.__typename)
|
|
667
|
+
throw new Error('__typename is missing in "isUserDomain"');
|
|
668
|
+
return UserDomain_possibleTypes.includes(obj.__typename);
|
|
669
|
+
};
|
|
670
|
+
exports.isUserDomain = isUserDomain;
|
|
664
671
|
const AthleteReference_possibleTypes = ['AthleteReference'];
|
|
665
672
|
const isAthleteReference = (obj) => {
|
|
666
673
|
if (!obj?.__typename)
|
|
@@ -675,6 +682,20 @@ const isAthlete = (obj) => {
|
|
|
675
682
|
return Athlete_possibleTypes.includes(obj.__typename);
|
|
676
683
|
};
|
|
677
684
|
exports.isAthlete = isAthlete;
|
|
685
|
+
const CheckoutSession_possibleTypes = ['CheckoutSession'];
|
|
686
|
+
const isCheckoutSession = (obj) => {
|
|
687
|
+
if (!obj?.__typename)
|
|
688
|
+
throw new Error('__typename is missing in "isCheckoutSession"');
|
|
689
|
+
return CheckoutSession_possibleTypes.includes(obj.__typename);
|
|
690
|
+
};
|
|
691
|
+
exports.isCheckoutSession = isCheckoutSession;
|
|
692
|
+
const FundingCheckoutSessionData_possibleTypes = ['FundingCheckoutSessionData'];
|
|
693
|
+
const isFundingCheckoutSessionData = (obj) => {
|
|
694
|
+
if (!obj?.__typename)
|
|
695
|
+
throw new Error('__typename is missing in "isFundingCheckoutSessionData"');
|
|
696
|
+
return FundingCheckoutSessionData_possibleTypes.includes(obj.__typename);
|
|
697
|
+
};
|
|
698
|
+
exports.isFundingCheckoutSessionData = isFundingCheckoutSessionData;
|
|
678
699
|
const SponsorAthleteInvitation_possibleTypes = ['SponsorAthleteInvitation'];
|
|
679
700
|
const isSponsorAthleteInvitation = (obj) => {
|
|
680
701
|
if (!obj?.__typename)
|
|
@@ -766,6 +787,20 @@ const isAthleteIntegrationReference = (obj) => {
|
|
|
766
787
|
return AthleteIntegrationReference_possibleTypes.includes(obj.__typename);
|
|
767
788
|
};
|
|
768
789
|
exports.isAthleteIntegrationReference = isAthleteIntegrationReference;
|
|
790
|
+
const Receipt_possibleTypes = ['Receipt'];
|
|
791
|
+
const isReceipt = (obj) => {
|
|
792
|
+
if (!obj?.__typename)
|
|
793
|
+
throw new Error('__typename is missing in "isReceipt"');
|
|
794
|
+
return Receipt_possibleTypes.includes(obj.__typename);
|
|
795
|
+
};
|
|
796
|
+
exports.isReceipt = isReceipt;
|
|
797
|
+
const ReceiptUrl_possibleTypes = ['ReceiptUrl'];
|
|
798
|
+
const isReceiptUrl = (obj) => {
|
|
799
|
+
if (!obj?.__typename)
|
|
800
|
+
throw new Error('__typename is missing in "isReceiptUrl"');
|
|
801
|
+
return ReceiptUrl_possibleTypes.includes(obj.__typename);
|
|
802
|
+
};
|
|
803
|
+
exports.isReceiptUrl = isReceiptUrl;
|
|
769
804
|
const EditValueResponse_possibleTypes = ['EditValueResponse'];
|
|
770
805
|
const isEditValueResponse = (obj) => {
|
|
771
806
|
if (!obj?.__typename)
|
|
@@ -836,6 +871,13 @@ const isExistValueResponse = (obj) => {
|
|
|
836
871
|
return ExistValueResponse_possibleTypes.includes(obj.__typename);
|
|
837
872
|
};
|
|
838
873
|
exports.isExistValueResponse = isExistValueResponse;
|
|
874
|
+
const DeleteUserResponse_possibleTypes = ['DeleteUserResponse'];
|
|
875
|
+
const isDeleteUserResponse = (obj) => {
|
|
876
|
+
if (!obj?.__typename)
|
|
877
|
+
throw new Error('__typename is missing in "isDeleteUserResponse"');
|
|
878
|
+
return DeleteUserResponse_possibleTypes.includes(obj.__typename);
|
|
879
|
+
};
|
|
880
|
+
exports.isDeleteUserResponse = isDeleteUserResponse;
|
|
839
881
|
const StripeObject_possibleTypes = ['StripeObject'];
|
|
840
882
|
const isStripeObject = (obj) => {
|
|
841
883
|
if (!obj?.__typename)
|
|
@@ -850,6 +892,13 @@ const isUserImages = (obj) => {
|
|
|
850
892
|
return UserImages_possibleTypes.includes(obj.__typename);
|
|
851
893
|
};
|
|
852
894
|
exports.isUserImages = isUserImages;
|
|
895
|
+
const StripeTransfer_possibleTypes = ['StripeTransfer'];
|
|
896
|
+
const isStripeTransfer = (obj) => {
|
|
897
|
+
if (!obj?.__typename)
|
|
898
|
+
throw new Error('__typename is missing in "isStripeTransfer"');
|
|
899
|
+
return StripeTransfer_possibleTypes.includes(obj.__typename);
|
|
900
|
+
};
|
|
901
|
+
exports.isStripeTransfer = isStripeTransfer;
|
|
853
902
|
const Query_possibleTypes = ['Query'];
|
|
854
903
|
const isQuery = (obj) => {
|
|
855
904
|
if (!obj?.__typename)
|
|
@@ -864,4 +913,15 @@ const isMutation = (obj) => {
|
|
|
864
913
|
return Mutation_possibleTypes.includes(obj.__typename);
|
|
865
914
|
};
|
|
866
915
|
exports.isMutation = isMutation;
|
|
916
|
+
exports.enumStripeTransferStatus = {
|
|
917
|
+
not_applicable: 'not_applicable',
|
|
918
|
+
pending: 'pending',
|
|
919
|
+
failed: 'failed',
|
|
920
|
+
completed: 'completed'
|
|
921
|
+
};
|
|
922
|
+
exports.enumDonationMode = {
|
|
923
|
+
PUBLIC: 'PUBLIC',
|
|
924
|
+
PRIVATE: 'PRIVATE',
|
|
925
|
+
ANONYMOUS: 'ANONYMOUS'
|
|
926
|
+
};
|
|
867
927
|
//# sourceMappingURL=schema.js.map
|