@vertikalx/vtx-backend-client 1.0.1-dev-daniel.10 → 1.0.1-dev-max.10
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/libs/vtx-backend-client/package.json +16 -0
- package/libs/vtx-backend-client/src/api/api-call-headers.d.ts +12 -0
- package/libs/vtx-backend-client/src/api/api-call-headers.js +16 -0
- package/libs/vtx-backend-client/src/api/api-call-headers.js.map +1 -0
- package/libs/vtx-backend-client/src/api/backend-response.d.ts +10 -0
- package/libs/vtx-backend-client/src/api/backend-response.js +3 -0
- package/libs/vtx-backend-client/src/api/backend-response.js.map +1 -0
- package/libs/vtx-backend-client/src/api/domains.d.ts +3 -0
- package/libs/vtx-backend-client/src/api/domains.js +7 -0
- package/libs/vtx-backend-client/src/api/domains.js.map +1 -0
- package/libs/vtx-backend-client/src/api/response-builder.d.ts +4 -0
- package/libs/vtx-backend-client/src/api/response-builder.js +123 -0
- package/libs/vtx-backend-client/src/api/response-builder.js.map +1 -0
- package/libs/vtx-backend-client/src/api/types.d.ts +2 -0
- package/libs/vtx-backend-client/src/api/types.js +3 -0
- package/libs/vtx-backend-client/src/api/types.js.map +1 -0
- package/libs/vtx-backend-client/src/api/vtx-apikey-api.d.ts +6 -0
- package/libs/vtx-backend-client/src/api/vtx-apikey-api.js +19 -0
- package/libs/vtx-backend-client/src/api/vtx-apikey-api.js.map +1 -0
- package/libs/vtx-backend-client/src/api/vtx-base-api.d.ts +111 -0
- package/libs/vtx-backend-client/src/api/vtx-base-api.js +7115 -0
- package/libs/vtx-backend-client/src/api/vtx-base-api.js.map +1 -0
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.d.ts +6 -0
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.js +27 -0
- package/libs/vtx-backend-client/src/api/vtx-mobile-api.js.map +1 -0
- package/libs/vtx-backend-client/src/api/vtx-web-browser-api.d.ts +7 -0
- package/libs/vtx-backend-client/src/api/vtx-web-browser-api.js +36 -0
- package/libs/vtx-backend-client/src/api/vtx-web-browser-api.js.map +1 -0
- package/libs/vtx-backend-client/src/api/vtx-web-server-api.d.ts +7 -0
- package/libs/vtx-backend-client/src/api/vtx-web-server-api.js +33 -0
- package/libs/vtx-backend-client/src/api/vtx-web-server-api.js.map +1 -0
- package/libs/vtx-backend-client/src/client/index.d.ts +25 -0
- package/libs/vtx-backend-client/src/client/index.js +44 -0
- package/libs/vtx-backend-client/src/client/index.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/batcher.d.ts +36 -0
- package/libs/vtx-backend-client/src/client/runtime/batcher.js +123 -0
- package/libs/vtx-backend-client/src/client/runtime/batcher.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/createClient.d.ts +17 -0
- package/libs/vtx-backend-client/src/client/runtime/createClient.js +28 -0
- package/libs/vtx-backend-client/src/client/runtime/createClient.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/error.d.ts +15 -0
- package/libs/vtx-backend-client/src/client/runtime/error.js +19 -0
- package/libs/vtx-backend-client/src/client/runtime/error.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/fetcher.d.ts +10 -0
- package/libs/vtx-backend-client/src/client/runtime/fetcher.js +68 -0
- package/libs/vtx-backend-client/src/client/runtime/fetcher.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.d.ts +30 -0
- package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.js +134 -0
- package/libs/vtx-backend-client/src/client/runtime/generateGraphqlOperation.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/index.d.ts +11 -0
- package/libs/vtx-backend-client/src/client/runtime/index.js +17 -0
- package/libs/vtx-backend-client/src/client/runtime/index.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.d.ts +9 -0
- package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.js +95 -0
- package/libs/vtx-backend-client/src/client/runtime/linkTypeMap.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/typeSelection.d.ts +28 -0
- package/libs/vtx-backend-client/src/client/runtime/typeSelection.js +3 -0
- package/libs/vtx-backend-client/src/client/runtime/typeSelection.js.map +1 -0
- package/libs/vtx-backend-client/src/client/runtime/types.d.ts +55 -0
- package/libs/vtx-backend-client/src/client/runtime/types.js +3 -0
- package/libs/vtx-backend-client/src/client/runtime/types.js.map +1 -0
- package/libs/vtx-backend-client/src/client/schema.d.ts +4331 -0
- package/libs/vtx-backend-client/src/client/schema.js +927 -0
- package/libs/vtx-backend-client/src/client/schema.js.map +1 -0
- package/libs/vtx-backend-client/src/client/types.d.ts +2315 -0
- package/libs/vtx-backend-client/src/client/types.js +6040 -0
- package/libs/vtx-backend-client/src/client/types.js.map +1 -0
- package/libs/vtx-backend-client/src/index.d.ts +11 -0
- package/libs/vtx-backend-client/src/index.js +28 -0
- package/libs/vtx-backend-client/src/index.js.map +1 -0
- package/package.json +1 -1
- package/src/api/dto/create-budget.dto.d.ts +15 -0
- package/src/api/dto/create-budget.dto.js +72 -0
- package/src/api/dto/create-budget.dto.js.map +1 -0
- package/src/api/dto/create-funding-campaign.dto.d.ts +21 -0
- package/src/api/dto/create-funding-campaign.dto.js +97 -0
- package/src/api/dto/create-funding-campaign.dto.js.map +1 -0
- package/src/api/dto/get-athlete-campaigns.dto.d.ts +3 -0
- package/src/api/dto/get-athlete-campaigns.dto.js +26 -0
- package/src/api/dto/get-athlete-campaigns.dto.js.map +1 -0
- package/src/api/response-builder.js +3 -2
- package/src/api/response-builder.js.map +1 -1
- package/src/api/vtx-base-api.d.ts +5 -0
- package/src/api/vtx-base-api.js +371 -1
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/runtime/generateGraphqlOperation.d.ts +1 -1
- package/src/client/schema.d.ts +124 -62
- package/src/client/schema.js +30 -16
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +68 -30
- package/src/client/types.js +360 -270
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
|
@@ -26,5 +26,5 @@ export interface GraphqlOperation {
|
|
|
26
26
|
};
|
|
27
27
|
operationName?: string;
|
|
28
28
|
}
|
|
29
|
-
export declare const generateGraphqlOperation: (operation:
|
|
29
|
+
export declare const generateGraphqlOperation: (operation: 'query' | 'mutation' | 'subscription', root: LinkedType, fields?: Fields) => GraphqlOperation;
|
|
30
30
|
export declare const getFieldFromPath: (root: LinkedType | undefined, path: string[]) => LinkedField;
|
package/src/client/schema.d.ts
CHANGED
|
@@ -701,13 +701,8 @@ export interface AthleteCompetitionResult {
|
|
|
701
701
|
score: (Scalars['String'] | null);
|
|
702
702
|
finishTimeMS: (Scalars['Float'] | null);
|
|
703
703
|
resultWebLink: (Scalars['String'] | null);
|
|
704
|
-
outcome: Scalars['String'];
|
|
704
|
+
outcome: (Scalars['String'] | null);
|
|
705
705
|
adversary: (Scalars['String'] | null);
|
|
706
|
-
genderPosition: (Scalars['Float'] | null);
|
|
707
|
-
genderParticipants: (Scalars['Float'] | null);
|
|
708
|
-
categoryPosition: (Scalars['Float'] | null);
|
|
709
|
-
categoryParticipants: (Scalars['Float'] | null);
|
|
710
|
-
categoryName: (Scalars['String'] | null);
|
|
711
706
|
__typename: 'AthleteCompetitionResult';
|
|
712
707
|
}
|
|
713
708
|
export interface BudgetItem {
|
|
@@ -724,20 +719,6 @@ export interface Budget {
|
|
|
724
719
|
items: (BudgetItem[] | null);
|
|
725
720
|
__typename: 'Budget';
|
|
726
721
|
}
|
|
727
|
-
export interface PhotoAlbum {
|
|
728
|
-
_id: Scalars['String'];
|
|
729
|
-
photo: (AWSS3File | null);
|
|
730
|
-
__typename: 'PhotoAlbum';
|
|
731
|
-
}
|
|
732
|
-
export interface Album {
|
|
733
|
-
_id: Scalars['String'];
|
|
734
|
-
label: Scalars['String'];
|
|
735
|
-
description: (Scalars['String'] | null);
|
|
736
|
-
photos: (PhotoAlbum[] | null);
|
|
737
|
-
displayIndex: Scalars['Float'];
|
|
738
|
-
competitionId: (Scalars['String'] | null);
|
|
739
|
-
__typename: 'Album';
|
|
740
|
-
}
|
|
741
722
|
export interface AthleteCompetition {
|
|
742
723
|
_id: Scalars['String'];
|
|
743
724
|
event: SportsEvent;
|
|
@@ -746,7 +727,6 @@ export interface AthleteCompetition {
|
|
|
746
727
|
result: (AthleteCompetitionResult | null);
|
|
747
728
|
fundRaisingCampaignIds: (Scalars['String'][] | null);
|
|
748
729
|
budget: (Budget | null);
|
|
749
|
-
albums: (Album[] | null);
|
|
750
730
|
__typename: 'AthleteCompetition';
|
|
751
731
|
}
|
|
752
732
|
export interface MembershipOrganizationReference {
|
|
@@ -799,6 +779,18 @@ export interface Channel {
|
|
|
799
779
|
linked: Scalars['Boolean'];
|
|
800
780
|
__typename: 'Channel';
|
|
801
781
|
}
|
|
782
|
+
export interface PhotoAlbum {
|
|
783
|
+
_id: Scalars['String'];
|
|
784
|
+
photo: (AWSS3File | null);
|
|
785
|
+
__typename: 'PhotoAlbum';
|
|
786
|
+
}
|
|
787
|
+
export interface Album {
|
|
788
|
+
_id: Scalars['String'];
|
|
789
|
+
label: Scalars['String'];
|
|
790
|
+
description: (Scalars['String'] | null);
|
|
791
|
+
photos: (PhotoAlbum[] | null);
|
|
792
|
+
__typename: 'Album';
|
|
793
|
+
}
|
|
802
794
|
export interface AthletePreferences {
|
|
803
795
|
_id: Scalars['String'];
|
|
804
796
|
showProfileHelper: Scalars['Boolean'];
|
|
@@ -817,6 +809,7 @@ export interface FundRaisingCampaign {
|
|
|
817
809
|
initialFundsObtained: Scalars['Float'];
|
|
818
810
|
fundsObtained: Scalars['Float'];
|
|
819
811
|
location: (WorldLocation | null);
|
|
812
|
+
createdDate: Scalars['DateTime'];
|
|
820
813
|
endingDate: Scalars['DateTime'];
|
|
821
814
|
budget: (Budget | null);
|
|
822
815
|
competitions: (AthleteCompetition[] | null);
|
|
@@ -948,6 +941,11 @@ export interface HistoricalScoreType {
|
|
|
948
941
|
athleteId: Scalars['String'];
|
|
949
942
|
__typename: 'HistoricalScoreType';
|
|
950
943
|
}
|
|
944
|
+
export interface UserDomain {
|
|
945
|
+
_id: Scalars['String'];
|
|
946
|
+
user: (User | null);
|
|
947
|
+
__typename: 'UserDomain';
|
|
948
|
+
}
|
|
951
949
|
export interface AthleteReference {
|
|
952
950
|
_id: Scalars['String'];
|
|
953
951
|
firstName: Scalars['String'];
|
|
@@ -972,6 +970,7 @@ export interface AthleteReference {
|
|
|
972
970
|
bannerPicture: (AWSS3File | null);
|
|
973
971
|
aboutMe: (Scalars['String'] | null);
|
|
974
972
|
preferences: AthletePreferences;
|
|
973
|
+
userDomain: UserDomain;
|
|
975
974
|
__typename: 'AthleteReference';
|
|
976
975
|
}
|
|
977
976
|
export interface Athlete {
|
|
@@ -998,6 +997,7 @@ export interface Athlete {
|
|
|
998
997
|
bannerPicture: (AWSS3File | null);
|
|
999
998
|
aboutMe: (Scalars['String'] | null);
|
|
1000
999
|
preferences: AthletePreferences;
|
|
1000
|
+
userDomain: UserDomain;
|
|
1001
1001
|
allSports: (Sport[] | null);
|
|
1002
1002
|
teams: (Team[] | null);
|
|
1003
1003
|
sponsorBrands: (Brand[] | null);
|
|
@@ -1151,7 +1151,7 @@ export interface AthleteIntegrationReference {
|
|
|
1151
1151
|
}
|
|
1152
1152
|
export interface Receipt {
|
|
1153
1153
|
receiptId: Scalars['String'];
|
|
1154
|
-
campaignName: Scalars['String'];
|
|
1154
|
+
campaignName: (Scalars['String'] | null);
|
|
1155
1155
|
athleteName: (Scalars['String'] | null);
|
|
1156
1156
|
donorName: Scalars['String'];
|
|
1157
1157
|
amount: Scalars['Float'];
|
|
@@ -1229,6 +1229,11 @@ export interface ExistValueResponse {
|
|
|
1229
1229
|
exist: Scalars['Boolean'];
|
|
1230
1230
|
__typename: 'ExistValueResponse';
|
|
1231
1231
|
}
|
|
1232
|
+
export interface DeleteAthleteResponse {
|
|
1233
|
+
deletedAthlete: (AthleteReference | null);
|
|
1234
|
+
success: Scalars['Boolean'];
|
|
1235
|
+
__typename: 'DeleteAthleteResponse';
|
|
1236
|
+
}
|
|
1232
1237
|
export interface StripeObject {
|
|
1233
1238
|
type: Scalars['String'];
|
|
1234
1239
|
json: Scalars['JSONObject'];
|
|
@@ -1293,6 +1298,7 @@ export interface Query {
|
|
|
1293
1298
|
screenNameAvailability: ExistValueResponse;
|
|
1294
1299
|
getAthleteHistoricalScores: HistoricalScoreType[];
|
|
1295
1300
|
getMyHistoricalScores: HistoricalScoreType[];
|
|
1301
|
+
getAthleteCampaigns: FundRaisingCampaign[];
|
|
1296
1302
|
getSports: Sport[];
|
|
1297
1303
|
findSportById: Sport;
|
|
1298
1304
|
getSportLevels: SportLevel[];
|
|
@@ -1350,6 +1356,7 @@ export interface Mutation {
|
|
|
1350
1356
|
deleteAthletePhotos: DeleteValuesResponse;
|
|
1351
1357
|
saveAthleteCompetitionResult: AthleteCompetitionResult;
|
|
1352
1358
|
updateAthleteScores: Athlete;
|
|
1359
|
+
deleteAthleteUser: DeleteAthleteResponse;
|
|
1353
1360
|
createSport: Sport;
|
|
1354
1361
|
updateSport: Sport;
|
|
1355
1362
|
createSportLevel: SportLevel;
|
|
@@ -1365,11 +1372,14 @@ export interface Mutation {
|
|
|
1365
1372
|
loginUserFromCredentialsVtx: UserWithToken;
|
|
1366
1373
|
createResetPasswordCode: EditValueResponse;
|
|
1367
1374
|
resetUserPassword: EditValueResponse;
|
|
1375
|
+
updateUserSuspendedStatus: User;
|
|
1368
1376
|
handleStravaCallback: StravaToken;
|
|
1369
1377
|
refreshStravaToken: StravaToken;
|
|
1370
1378
|
createSportsEvent: SportsEvent;
|
|
1371
1379
|
setFundingStatus: FundRaisingCampaign;
|
|
1372
1380
|
createFundingCampaign: FundRaisingCampaign;
|
|
1381
|
+
updateFundingCampaign: FundRaisingCampaign;
|
|
1382
|
+
deleteFundingCampaign: DeleteSingleValueResponse;
|
|
1373
1383
|
createMembershipOrganization: MembershipOrganizationReference;
|
|
1374
1384
|
createAthleteMembershipAffilation: AthleteMembership;
|
|
1375
1385
|
deleteAthleteMembershipAffilation: DeleteSingleValueResponse;
|
|
@@ -2155,11 +2165,6 @@ export interface AthleteCompetitionResultGenqlSelection {
|
|
|
2155
2165
|
resultWebLink?: boolean | number;
|
|
2156
2166
|
outcome?: boolean | number;
|
|
2157
2167
|
adversary?: boolean | number;
|
|
2158
|
-
genderPosition?: boolean | number;
|
|
2159
|
-
genderParticipants?: boolean | number;
|
|
2160
|
-
categoryPosition?: boolean | number;
|
|
2161
|
-
categoryParticipants?: boolean | number;
|
|
2162
|
-
categoryName?: boolean | number;
|
|
2163
2168
|
__typename?: boolean | number;
|
|
2164
2169
|
__scalar?: boolean | number;
|
|
2165
2170
|
}
|
|
@@ -2179,22 +2184,6 @@ export interface BudgetGenqlSelection {
|
|
|
2179
2184
|
__typename?: boolean | number;
|
|
2180
2185
|
__scalar?: boolean | number;
|
|
2181
2186
|
}
|
|
2182
|
-
export interface PhotoAlbumGenqlSelection {
|
|
2183
|
-
_id?: boolean | number;
|
|
2184
|
-
photo?: AWSS3FileGenqlSelection;
|
|
2185
|
-
__typename?: boolean | number;
|
|
2186
|
-
__scalar?: boolean | number;
|
|
2187
|
-
}
|
|
2188
|
-
export interface AlbumGenqlSelection {
|
|
2189
|
-
_id?: boolean | number;
|
|
2190
|
-
label?: boolean | number;
|
|
2191
|
-
description?: boolean | number;
|
|
2192
|
-
photos?: PhotoAlbumGenqlSelection;
|
|
2193
|
-
displayIndex?: boolean | number;
|
|
2194
|
-
competitionId?: boolean | number;
|
|
2195
|
-
__typename?: boolean | number;
|
|
2196
|
-
__scalar?: boolean | number;
|
|
2197
|
-
}
|
|
2198
2187
|
export interface AthleteCompetitionGenqlSelection {
|
|
2199
2188
|
_id?: boolean | number;
|
|
2200
2189
|
event?: SportsEventGenqlSelection;
|
|
@@ -2203,7 +2192,6 @@ export interface AthleteCompetitionGenqlSelection {
|
|
|
2203
2192
|
result?: AthleteCompetitionResultGenqlSelection;
|
|
2204
2193
|
fundRaisingCampaignIds?: boolean | number;
|
|
2205
2194
|
budget?: BudgetGenqlSelection;
|
|
2206
|
-
albums?: AlbumGenqlSelection;
|
|
2207
2195
|
__typename?: boolean | number;
|
|
2208
2196
|
__scalar?: boolean | number;
|
|
2209
2197
|
}
|
|
@@ -2262,6 +2250,20 @@ export interface ChannelGenqlSelection {
|
|
|
2262
2250
|
__typename?: boolean | number;
|
|
2263
2251
|
__scalar?: boolean | number;
|
|
2264
2252
|
}
|
|
2253
|
+
export interface PhotoAlbumGenqlSelection {
|
|
2254
|
+
_id?: boolean | number;
|
|
2255
|
+
photo?: AWSS3FileGenqlSelection;
|
|
2256
|
+
__typename?: boolean | number;
|
|
2257
|
+
__scalar?: boolean | number;
|
|
2258
|
+
}
|
|
2259
|
+
export interface AlbumGenqlSelection {
|
|
2260
|
+
_id?: boolean | number;
|
|
2261
|
+
label?: boolean | number;
|
|
2262
|
+
description?: boolean | number;
|
|
2263
|
+
photos?: PhotoAlbumGenqlSelection;
|
|
2264
|
+
__typename?: boolean | number;
|
|
2265
|
+
__scalar?: boolean | number;
|
|
2266
|
+
}
|
|
2265
2267
|
export interface AthletePreferencesGenqlSelection {
|
|
2266
2268
|
_id?: boolean | number;
|
|
2267
2269
|
showProfileHelper?: boolean | number;
|
|
@@ -2281,6 +2283,7 @@ export interface FundRaisingCampaignGenqlSelection {
|
|
|
2281
2283
|
initialFundsObtained?: boolean | number;
|
|
2282
2284
|
fundsObtained?: boolean | number;
|
|
2283
2285
|
location?: WorldLocationGenqlSelection;
|
|
2286
|
+
createdDate?: boolean | number;
|
|
2284
2287
|
endingDate?: boolean | number;
|
|
2285
2288
|
budget?: BudgetGenqlSelection;
|
|
2286
2289
|
competitions?: AthleteCompetitionGenqlSelection;
|
|
@@ -2422,6 +2425,12 @@ export interface HistoricalScoreTypeGenqlSelection {
|
|
|
2422
2425
|
__typename?: boolean | number;
|
|
2423
2426
|
__scalar?: boolean | number;
|
|
2424
2427
|
}
|
|
2428
|
+
export interface UserDomainGenqlSelection {
|
|
2429
|
+
_id?: boolean | number;
|
|
2430
|
+
user?: UserGenqlSelection;
|
|
2431
|
+
__typename?: boolean | number;
|
|
2432
|
+
__scalar?: boolean | number;
|
|
2433
|
+
}
|
|
2425
2434
|
export interface AthleteReferenceGenqlSelection {
|
|
2426
2435
|
_id?: boolean | number;
|
|
2427
2436
|
firstName?: boolean | number;
|
|
@@ -2446,6 +2455,7 @@ export interface AthleteReferenceGenqlSelection {
|
|
|
2446
2455
|
bannerPicture?: AWSS3FileGenqlSelection;
|
|
2447
2456
|
aboutMe?: boolean | number;
|
|
2448
2457
|
preferences?: AthletePreferencesGenqlSelection;
|
|
2458
|
+
userDomain?: UserDomainGenqlSelection;
|
|
2449
2459
|
__typename?: boolean | number;
|
|
2450
2460
|
__scalar?: boolean | number;
|
|
2451
2461
|
}
|
|
@@ -2473,6 +2483,7 @@ export interface AthleteGenqlSelection {
|
|
|
2473
2483
|
bannerPicture?: AWSS3FileGenqlSelection;
|
|
2474
2484
|
aboutMe?: boolean | number;
|
|
2475
2485
|
preferences?: AthletePreferencesGenqlSelection;
|
|
2486
|
+
userDomain?: UserDomainGenqlSelection;
|
|
2476
2487
|
allSports?: SportGenqlSelection;
|
|
2477
2488
|
teams?: TeamGenqlSelection;
|
|
2478
2489
|
sponsorBrands?: BrandGenqlSelection;
|
|
@@ -2732,6 +2743,12 @@ export interface ExistValueResponseGenqlSelection {
|
|
|
2732
2743
|
__typename?: boolean | number;
|
|
2733
2744
|
__scalar?: boolean | number;
|
|
2734
2745
|
}
|
|
2746
|
+
export interface DeleteAthleteResponseGenqlSelection {
|
|
2747
|
+
deletedAthlete?: AthleteReferenceGenqlSelection;
|
|
2748
|
+
success?: boolean | number;
|
|
2749
|
+
__typename?: boolean | number;
|
|
2750
|
+
__scalar?: boolean | number;
|
|
2751
|
+
}
|
|
2735
2752
|
export interface StripeObjectGenqlSelection {
|
|
2736
2753
|
type?: boolean | number;
|
|
2737
2754
|
json?: boolean | number;
|
|
@@ -2828,13 +2845,8 @@ export interface CompetitionResultDto {
|
|
|
2828
2845
|
finishTimeMS?: (Scalars['Float'] | null);
|
|
2829
2846
|
resultWebLink?: (Scalars['String'] | null);
|
|
2830
2847
|
totalParticipants?: (Scalars['Float'] | null);
|
|
2831
|
-
outcome
|
|
2848
|
+
outcome?: (Scalars['String'] | null);
|
|
2832
2849
|
adversary?: (Scalars['String'] | null);
|
|
2833
|
-
genderPosition?: (Scalars['Float'] | null);
|
|
2834
|
-
genderParticipants?: (Scalars['Float'] | null);
|
|
2835
|
-
categoryPosition?: (Scalars['Float'] | null);
|
|
2836
|
-
categoryParticipants?: (Scalars['Float'] | null);
|
|
2837
|
-
categoryName?: (Scalars['String'] | null);
|
|
2838
2850
|
}
|
|
2839
2851
|
export interface SetCompetitionResultDto {
|
|
2840
2852
|
resultType: Scalars['String'];
|
|
@@ -2843,13 +2855,8 @@ export interface SetCompetitionResultDto {
|
|
|
2843
2855
|
finishTimeMS?: (Scalars['Float'] | null);
|
|
2844
2856
|
resultWebLink?: (Scalars['String'] | null);
|
|
2845
2857
|
totalParticipants?: (Scalars['Float'] | null);
|
|
2846
|
-
outcome
|
|
2858
|
+
outcome?: (Scalars['String'] | null);
|
|
2847
2859
|
adversary?: (Scalars['String'] | null);
|
|
2848
|
-
genderPosition?: (Scalars['Float'] | null);
|
|
2849
|
-
genderParticipants?: (Scalars['Float'] | null);
|
|
2850
|
-
categoryPosition?: (Scalars['Float'] | null);
|
|
2851
|
-
categoryParticipants?: (Scalars['Float'] | null);
|
|
2852
|
-
categoryName?: (Scalars['String'] | null);
|
|
2853
2860
|
competitionId: Scalars['String'];
|
|
2854
2861
|
}
|
|
2855
2862
|
export interface CreateAthleteCompetitionDto {
|
|
@@ -2963,6 +2970,12 @@ export interface GetHistoricalScoresDto {
|
|
|
2963
2970
|
scoreTypes: Scalars['String'][];
|
|
2964
2971
|
athleteIdOrEmail: Scalars['String'];
|
|
2965
2972
|
}
|
|
2973
|
+
export interface DeleteAthleteDto {
|
|
2974
|
+
userIdentifier: Scalars['String'];
|
|
2975
|
+
}
|
|
2976
|
+
export interface GetAthleteCampaignsDto {
|
|
2977
|
+
athleteId: Scalars['String'];
|
|
2978
|
+
}
|
|
2966
2979
|
export interface QualificationDto {
|
|
2967
2980
|
type: Scalars['String'];
|
|
2968
2981
|
}
|
|
@@ -3070,6 +3083,20 @@ export interface CreateFundingCampaignForDto {
|
|
|
3070
3083
|
competitionIds?: (Scalars['String'][] | null);
|
|
3071
3084
|
loginEmail: Scalars['String'];
|
|
3072
3085
|
}
|
|
3086
|
+
export interface UpdateFundingCampaignDto {
|
|
3087
|
+
budgetMode: Scalars['String'];
|
|
3088
|
+
title: Scalars['String'];
|
|
3089
|
+
motivation: Scalars['String'];
|
|
3090
|
+
website?: (Scalars['String'] | null);
|
|
3091
|
+
fundsRequired: Scalars['Float'];
|
|
3092
|
+
initialFundsObtained?: Scalars['Float'];
|
|
3093
|
+
cityId?: (Scalars['String'] | null);
|
|
3094
|
+
endingDate: Scalars['DateTime'];
|
|
3095
|
+
budget?: (CreateBudgetDto | null);
|
|
3096
|
+
competitionBudgets?: (CreateCompetitionBudgetDto[] | null);
|
|
3097
|
+
competitionIds?: (Scalars['String'][] | null);
|
|
3098
|
+
_id: Scalars['String'];
|
|
3099
|
+
}
|
|
3073
3100
|
export interface SetFundingStatusDto {
|
|
3074
3101
|
fundingCampaignId: Scalars['String'];
|
|
3075
3102
|
newStatus: Scalars['String'];
|
|
@@ -3261,6 +3288,11 @@ export interface QueryGenqlSelection {
|
|
|
3261
3288
|
input: GetMyHistoricalScoresDto;
|
|
3262
3289
|
};
|
|
3263
3290
|
});
|
|
3291
|
+
getAthleteCampaigns?: (FundRaisingCampaignGenqlSelection & {
|
|
3292
|
+
__args: {
|
|
3293
|
+
input: GetAthleteCampaignsDto;
|
|
3294
|
+
};
|
|
3295
|
+
});
|
|
3264
3296
|
getSports?: SportGenqlSelection;
|
|
3265
3297
|
findSportById?: (SportGenqlSelection & {
|
|
3266
3298
|
__args: {
|
|
@@ -3509,6 +3541,11 @@ export interface MutationGenqlSelection {
|
|
|
3509
3541
|
};
|
|
3510
3542
|
});
|
|
3511
3543
|
updateAthleteScores?: AthleteGenqlSelection;
|
|
3544
|
+
deleteAthleteUser?: (DeleteAthleteResponseGenqlSelection & {
|
|
3545
|
+
__args: {
|
|
3546
|
+
input: DeleteAthleteDto;
|
|
3547
|
+
};
|
|
3548
|
+
});
|
|
3512
3549
|
createSport?: (SportGenqlSelection & {
|
|
3513
3550
|
__args: {
|
|
3514
3551
|
input: CreateSportDto;
|
|
@@ -3585,6 +3622,11 @@ export interface MutationGenqlSelection {
|
|
|
3585
3622
|
input: resetPasswordDto;
|
|
3586
3623
|
};
|
|
3587
3624
|
});
|
|
3625
|
+
updateUserSuspendedStatus?: (UserGenqlSelection & {
|
|
3626
|
+
__args: {
|
|
3627
|
+
input: UpdateUserSuspendedStatusDto;
|
|
3628
|
+
};
|
|
3629
|
+
});
|
|
3588
3630
|
handleStravaCallback?: (StravaTokenGenqlSelection & {
|
|
3589
3631
|
__args: {
|
|
3590
3632
|
data: RegisterStravaDto;
|
|
@@ -3610,6 +3652,16 @@ export interface MutationGenqlSelection {
|
|
|
3610
3652
|
input: CreateFundingCampaignDto;
|
|
3611
3653
|
};
|
|
3612
3654
|
});
|
|
3655
|
+
updateFundingCampaign?: (FundRaisingCampaignGenqlSelection & {
|
|
3656
|
+
__args: {
|
|
3657
|
+
input: UpdateFundingCampaignDto;
|
|
3658
|
+
};
|
|
3659
|
+
});
|
|
3660
|
+
deleteFundingCampaign?: (DeleteSingleValueResponseGenqlSelection & {
|
|
3661
|
+
__args: {
|
|
3662
|
+
input: DeleteSingleValueDto;
|
|
3663
|
+
};
|
|
3664
|
+
});
|
|
3613
3665
|
createMembershipOrganization?: (MembershipOrganizationReferenceGenqlSelection & {
|
|
3614
3666
|
__args: {
|
|
3615
3667
|
input: CreateMembershipOrganizationDto;
|
|
@@ -3847,6 +3899,10 @@ export interface CreateCityDto {
|
|
|
3847
3899
|
ranking?: (Scalars['Float'] | null);
|
|
3848
3900
|
same_name?: (Scalars['String'] | null);
|
|
3849
3901
|
}
|
|
3902
|
+
export interface UpdateUserSuspendedStatusDto {
|
|
3903
|
+
userId: Scalars['String'];
|
|
3904
|
+
suspended: Scalars['Boolean'];
|
|
3905
|
+
}
|
|
3850
3906
|
export interface RegisterStravaDto {
|
|
3851
3907
|
idAthlete: Scalars['String'];
|
|
3852
3908
|
code: Scalars['String'];
|
|
@@ -4091,12 +4147,6 @@ export declare const isBudgetItem: (obj?: {
|
|
|
4091
4147
|
export declare const isBudget: (obj?: {
|
|
4092
4148
|
__typename?: any;
|
|
4093
4149
|
} | null) => obj is Budget;
|
|
4094
|
-
export declare const isPhotoAlbum: (obj?: {
|
|
4095
|
-
__typename?: any;
|
|
4096
|
-
} | null) => obj is PhotoAlbum;
|
|
4097
|
-
export declare const isAlbum: (obj?: {
|
|
4098
|
-
__typename?: any;
|
|
4099
|
-
} | null) => obj is Album;
|
|
4100
4150
|
export declare const isAthleteCompetition: (obj?: {
|
|
4101
4151
|
__typename?: any;
|
|
4102
4152
|
} | null) => obj is AthleteCompetition;
|
|
@@ -4115,6 +4165,12 @@ export declare const isNewsLink: (obj?: {
|
|
|
4115
4165
|
export declare const isChannel: (obj?: {
|
|
4116
4166
|
__typename?: any;
|
|
4117
4167
|
} | null) => obj is Channel;
|
|
4168
|
+
export declare const isPhotoAlbum: (obj?: {
|
|
4169
|
+
__typename?: any;
|
|
4170
|
+
} | null) => obj is PhotoAlbum;
|
|
4171
|
+
export declare const isAlbum: (obj?: {
|
|
4172
|
+
__typename?: any;
|
|
4173
|
+
} | null) => obj is Album;
|
|
4118
4174
|
export declare const isAthletePreferences: (obj?: {
|
|
4119
4175
|
__typename?: any;
|
|
4120
4176
|
} | null) => obj is AthletePreferences;
|
|
@@ -4148,6 +4204,9 @@ export declare const isStripeAccountReference: (obj?: {
|
|
|
4148
4204
|
export declare const isHistoricalScoreType: (obj?: {
|
|
4149
4205
|
__typename?: any;
|
|
4150
4206
|
} | null) => obj is HistoricalScoreType;
|
|
4207
|
+
export declare const isUserDomain: (obj?: {
|
|
4208
|
+
__typename?: any;
|
|
4209
|
+
} | null) => obj is UserDomain;
|
|
4151
4210
|
export declare const isAthleteReference: (obj?: {
|
|
4152
4211
|
__typename?: any;
|
|
4153
4212
|
} | null) => obj is AthleteReference;
|
|
@@ -4235,6 +4294,9 @@ export declare const isAddValuesResponse: (obj?: {
|
|
|
4235
4294
|
export declare const isExistValueResponse: (obj?: {
|
|
4236
4295
|
__typename?: any;
|
|
4237
4296
|
} | null) => obj is ExistValueResponse;
|
|
4297
|
+
export declare const isDeleteAthleteResponse: (obj?: {
|
|
4298
|
+
__typename?: any;
|
|
4299
|
+
} | null) => obj is DeleteAthleteResponse;
|
|
4238
4300
|
export declare const isStripeObject: (obj?: {
|
|
4239
4301
|
__typename?: any;
|
|
4240
4302
|
} | null) => obj is StripeObject;
|
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.enumDonationMode = exports.enumStripeTransferStatus = exports.isMutation = exports.isQuery = exports.isStripeTransfer = 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.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 = 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.isDeleteAthleteResponse = 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)
|
|
@@ -528,20 +528,6 @@ const isBudget = (obj) => {
|
|
|
528
528
|
return Budget_possibleTypes.includes(obj.__typename);
|
|
529
529
|
};
|
|
530
530
|
exports.isBudget = isBudget;
|
|
531
|
-
const PhotoAlbum_possibleTypes = ['PhotoAlbum'];
|
|
532
|
-
const isPhotoAlbum = (obj) => {
|
|
533
|
-
if (!obj?.__typename)
|
|
534
|
-
throw new Error('__typename is missing in "isPhotoAlbum"');
|
|
535
|
-
return PhotoAlbum_possibleTypes.includes(obj.__typename);
|
|
536
|
-
};
|
|
537
|
-
exports.isPhotoAlbum = isPhotoAlbum;
|
|
538
|
-
const Album_possibleTypes = ['Album'];
|
|
539
|
-
const isAlbum = (obj) => {
|
|
540
|
-
if (!obj?.__typename)
|
|
541
|
-
throw new Error('__typename is missing in "isAlbum"');
|
|
542
|
-
return Album_possibleTypes.includes(obj.__typename);
|
|
543
|
-
};
|
|
544
|
-
exports.isAlbum = isAlbum;
|
|
545
531
|
const AthleteCompetition_possibleTypes = ['AthleteCompetition'];
|
|
546
532
|
const isAthleteCompetition = (obj) => {
|
|
547
533
|
if (!obj?.__typename)
|
|
@@ -584,6 +570,20 @@ const isChannel = (obj) => {
|
|
|
584
570
|
return Channel_possibleTypes.includes(obj.__typename);
|
|
585
571
|
};
|
|
586
572
|
exports.isChannel = isChannel;
|
|
573
|
+
const PhotoAlbum_possibleTypes = ['PhotoAlbum'];
|
|
574
|
+
const isPhotoAlbum = (obj) => {
|
|
575
|
+
if (!obj?.__typename)
|
|
576
|
+
throw new Error('__typename is missing in "isPhotoAlbum"');
|
|
577
|
+
return PhotoAlbum_possibleTypes.includes(obj.__typename);
|
|
578
|
+
};
|
|
579
|
+
exports.isPhotoAlbum = isPhotoAlbum;
|
|
580
|
+
const Album_possibleTypes = ['Album'];
|
|
581
|
+
const isAlbum = (obj) => {
|
|
582
|
+
if (!obj?.__typename)
|
|
583
|
+
throw new Error('__typename is missing in "isAlbum"');
|
|
584
|
+
return Album_possibleTypes.includes(obj.__typename);
|
|
585
|
+
};
|
|
586
|
+
exports.isAlbum = isAlbum;
|
|
587
587
|
const AthletePreferences_possibleTypes = ['AthletePreferences'];
|
|
588
588
|
const isAthletePreferences = (obj) => {
|
|
589
589
|
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)
|
|
@@ -864,6 +871,13 @@ const isExistValueResponse = (obj) => {
|
|
|
864
871
|
return ExistValueResponse_possibleTypes.includes(obj.__typename);
|
|
865
872
|
};
|
|
866
873
|
exports.isExistValueResponse = isExistValueResponse;
|
|
874
|
+
const DeleteAthleteResponse_possibleTypes = ['DeleteAthleteResponse'];
|
|
875
|
+
const isDeleteAthleteResponse = (obj) => {
|
|
876
|
+
if (!obj?.__typename)
|
|
877
|
+
throw new Error('__typename is missing in "isDeleteAthleteResponse"');
|
|
878
|
+
return DeleteAthleteResponse_possibleTypes.includes(obj.__typename);
|
|
879
|
+
};
|
|
880
|
+
exports.isDeleteAthleteResponse = isDeleteAthleteResponse;
|
|
867
881
|
const StripeObject_possibleTypes = ['StripeObject'];
|
|
868
882
|
const isStripeObject = (obj) => {
|
|
869
883
|
if (!obj?.__typename)
|