@vertikalx/vtx-backend-client 1.0.0-dev-david.3 → 1.0.0-dev-carlos.38
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 +1 -1
- package/src/api/vtx-base-api.js +27 -33
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +14 -2
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +10 -1
- package/src/client/types.js +28 -1
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
package/package.json
CHANGED
|
@@ -93,7 +93,7 @@ export declare class VTXBaseAPI {
|
|
|
93
93
|
updateAthleteIntegration(type: string): Promise<ITypedBackendResponse<boolean>>;
|
|
94
94
|
deleteUploadedTypeKeyFile(dto: AWSS3DeleteUseTypeKeyDto): Promise<ITypedBackendResponse<AWSS3CallResult>>;
|
|
95
95
|
saveAthleteCompetitionResult(dto: SetCompetitionResultDto): Promise<ITypedBackendResponse<AthleteCompetitionResult>>;
|
|
96
|
-
|
|
96
|
+
updateAthleteScores(): Promise<ITypedBackendResponse<Athlete>>;
|
|
97
97
|
createResetPasswordCode(email: string): Promise<ITypedBackendResponse<EditValueResponse>>;
|
|
98
98
|
getResetVerificationCode(id: string): Promise<ITypedBackendResponse<VerificationCodeType>>;
|
|
99
99
|
verifyCode(input: VerifyCodeDto): Promise<ITypedBackendResponse<CodeVerificationResponse>>;
|
package/src/api/vtx-base-api.js
CHANGED
|
@@ -3951,7 +3951,8 @@ class VTXBaseAPI {
|
|
|
3951
3951
|
name: true,
|
|
3952
3952
|
mainSport: {
|
|
3953
3953
|
_id: true,
|
|
3954
|
-
name: true
|
|
3954
|
+
name: true,
|
|
3955
|
+
resultType: true,
|
|
3955
3956
|
},
|
|
3956
3957
|
eventWebSite: true,
|
|
3957
3958
|
startDate: true,
|
|
@@ -5310,6 +5311,22 @@ class VTXBaseAPI {
|
|
|
5310
5311
|
timezone: true,
|
|
5311
5312
|
}
|
|
5312
5313
|
},
|
|
5314
|
+
albums: {
|
|
5315
|
+
_id: true,
|
|
5316
|
+
label: true,
|
|
5317
|
+
description: true,
|
|
5318
|
+
photos: {
|
|
5319
|
+
photo: {
|
|
5320
|
+
_id: true,
|
|
5321
|
+
name: true,
|
|
5322
|
+
contentType: true,
|
|
5323
|
+
size: true,
|
|
5324
|
+
useType: true,
|
|
5325
|
+
url: true,
|
|
5326
|
+
key: true,
|
|
5327
|
+
},
|
|
5328
|
+
},
|
|
5329
|
+
},
|
|
5313
5330
|
trainer: true,
|
|
5314
5331
|
trainerUrl: true,
|
|
5315
5332
|
aboutMe: true,
|
|
@@ -5520,35 +5537,9 @@ class VTXBaseAPI {
|
|
|
5520
5537
|
url: true,
|
|
5521
5538
|
key: true
|
|
5522
5539
|
},
|
|
5523
|
-
bannerPicture: {
|
|
5524
|
-
_id: true,
|
|
5525
|
-
name: true,
|
|
5526
|
-
contentType: true,
|
|
5527
|
-
size: true,
|
|
5528
|
-
useType: true,
|
|
5529
|
-
url: true,
|
|
5530
|
-
key: true
|
|
5531
|
-
},
|
|
5532
5540
|
preferences: {
|
|
5533
5541
|
_id: true,
|
|
5534
|
-
showProfileHelper: true
|
|
5535
|
-
defaultAlbum: {
|
|
5536
|
-
_id: true,
|
|
5537
|
-
label: true,
|
|
5538
|
-
description: true,
|
|
5539
|
-
photos: {
|
|
5540
|
-
_id: true,
|
|
5541
|
-
photo: {
|
|
5542
|
-
_id: true,
|
|
5543
|
-
name: true,
|
|
5544
|
-
contentType: true,
|
|
5545
|
-
size: true,
|
|
5546
|
-
useType: true,
|
|
5547
|
-
url: true,
|
|
5548
|
-
key: true
|
|
5549
|
-
},
|
|
5550
|
-
}
|
|
5551
|
-
}
|
|
5542
|
+
showProfileHelper: true
|
|
5552
5543
|
},
|
|
5553
5544
|
currentCampaign: {
|
|
5554
5545
|
_id: true,
|
|
@@ -5659,7 +5650,7 @@ class VTXBaseAPI {
|
|
|
5659
5650
|
resultWebLink: true
|
|
5660
5651
|
}
|
|
5661
5652
|
}
|
|
5662
|
-
}
|
|
5653
|
+
}
|
|
5663
5654
|
};
|
|
5664
5655
|
try {
|
|
5665
5656
|
let response = null;
|
|
@@ -6739,6 +6730,9 @@ class VTXBaseAPI {
|
|
|
6739
6730
|
score: true,
|
|
6740
6731
|
finishTimeMS: true,
|
|
6741
6732
|
resultWebLink: true,
|
|
6733
|
+
totalParticipants: true,
|
|
6734
|
+
outcome: true,
|
|
6735
|
+
adversary: true
|
|
6742
6736
|
};
|
|
6743
6737
|
try {
|
|
6744
6738
|
const response = await client.mutation({
|
|
@@ -6763,7 +6757,7 @@ class VTXBaseAPI {
|
|
|
6763
6757
|
}
|
|
6764
6758
|
return retValue;
|
|
6765
6759
|
}
|
|
6766
|
-
async
|
|
6760
|
+
async updateAthleteScores() {
|
|
6767
6761
|
const client = (0, client_1.createClient)({
|
|
6768
6762
|
url: this.backendUrl + '/graphql',
|
|
6769
6763
|
headers: this.headers,
|
|
@@ -6771,7 +6765,7 @@ class VTXBaseAPI {
|
|
|
6771
6765
|
let retValue = {};
|
|
6772
6766
|
try {
|
|
6773
6767
|
const response = await client.mutation({
|
|
6774
|
-
|
|
6768
|
+
updateAthleteScores: {
|
|
6775
6769
|
_id: true,
|
|
6776
6770
|
firstName: true,
|
|
6777
6771
|
lastName: true,
|
|
@@ -6782,8 +6776,8 @@ class VTXBaseAPI {
|
|
|
6782
6776
|
}
|
|
6783
6777
|
},
|
|
6784
6778
|
});
|
|
6785
|
-
retValue = (0, response_builder_1.buildResponse)(response, '
|
|
6786
|
-
const isResponseOk = !!response?.
|
|
6779
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'updateAthleteScores', (r) => {
|
|
6780
|
+
const isResponseOk = !!response?.updateAthleteScores?._id;
|
|
6787
6781
|
return isResponseOk;
|
|
6788
6782
|
});
|
|
6789
6783
|
}
|