@vertikalx/vtx-backend-client 1.0.0-dev-geo.85 → 1.0.0-dev-carlos.37
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 +26 -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,7 @@ class VTXBaseAPI {
|
|
|
3951
3951
|
name: true,
|
|
3952
3952
|
mainSport: {
|
|
3953
3953
|
_id: true,
|
|
3954
|
-
name: true
|
|
3954
|
+
name: true,
|
|
3955
3955
|
},
|
|
3956
3956
|
eventWebSite: true,
|
|
3957
3957
|
startDate: true,
|
|
@@ -5310,6 +5310,22 @@ class VTXBaseAPI {
|
|
|
5310
5310
|
timezone: true,
|
|
5311
5311
|
}
|
|
5312
5312
|
},
|
|
5313
|
+
albums: {
|
|
5314
|
+
_id: true,
|
|
5315
|
+
label: true,
|
|
5316
|
+
description: true,
|
|
5317
|
+
photos: {
|
|
5318
|
+
photo: {
|
|
5319
|
+
_id: true,
|
|
5320
|
+
name: true,
|
|
5321
|
+
contentType: true,
|
|
5322
|
+
size: true,
|
|
5323
|
+
useType: true,
|
|
5324
|
+
url: true,
|
|
5325
|
+
key: true,
|
|
5326
|
+
},
|
|
5327
|
+
},
|
|
5328
|
+
},
|
|
5313
5329
|
trainer: true,
|
|
5314
5330
|
trainerUrl: true,
|
|
5315
5331
|
aboutMe: true,
|
|
@@ -5520,35 +5536,9 @@ class VTXBaseAPI {
|
|
|
5520
5536
|
url: true,
|
|
5521
5537
|
key: true
|
|
5522
5538
|
},
|
|
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
5539
|
preferences: {
|
|
5533
5540
|
_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
|
-
}
|
|
5541
|
+
showProfileHelper: true
|
|
5552
5542
|
},
|
|
5553
5543
|
currentCampaign: {
|
|
5554
5544
|
_id: true,
|
|
@@ -5659,7 +5649,7 @@ class VTXBaseAPI {
|
|
|
5659
5649
|
resultWebLink: true
|
|
5660
5650
|
}
|
|
5661
5651
|
}
|
|
5662
|
-
}
|
|
5652
|
+
}
|
|
5663
5653
|
};
|
|
5664
5654
|
try {
|
|
5665
5655
|
let response = null;
|
|
@@ -6739,6 +6729,9 @@ class VTXBaseAPI {
|
|
|
6739
6729
|
score: true,
|
|
6740
6730
|
finishTimeMS: true,
|
|
6741
6731
|
resultWebLink: true,
|
|
6732
|
+
totalParticipants: true,
|
|
6733
|
+
outcome: true,
|
|
6734
|
+
adversary: true
|
|
6742
6735
|
};
|
|
6743
6736
|
try {
|
|
6744
6737
|
const response = await client.mutation({
|
|
@@ -6763,7 +6756,7 @@ class VTXBaseAPI {
|
|
|
6763
6756
|
}
|
|
6764
6757
|
return retValue;
|
|
6765
6758
|
}
|
|
6766
|
-
async
|
|
6759
|
+
async updateAthleteScores() {
|
|
6767
6760
|
const client = (0, client_1.createClient)({
|
|
6768
6761
|
url: this.backendUrl + '/graphql',
|
|
6769
6762
|
headers: this.headers,
|
|
@@ -6771,7 +6764,7 @@ class VTXBaseAPI {
|
|
|
6771
6764
|
let retValue = {};
|
|
6772
6765
|
try {
|
|
6773
6766
|
const response = await client.mutation({
|
|
6774
|
-
|
|
6767
|
+
updateAthleteScores: {
|
|
6775
6768
|
_id: true,
|
|
6776
6769
|
firstName: true,
|
|
6777
6770
|
lastName: true,
|
|
@@ -6782,8 +6775,8 @@ class VTXBaseAPI {
|
|
|
6782
6775
|
}
|
|
6783
6776
|
},
|
|
6784
6777
|
});
|
|
6785
|
-
retValue = (0, response_builder_1.buildResponse)(response, '
|
|
6786
|
-
const isResponseOk = !!response?.
|
|
6778
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'updateAthleteScores', (r) => {
|
|
6779
|
+
const isResponseOk = !!response?.updateAthleteScores?._id;
|
|
6787
6780
|
return isResponseOk;
|
|
6788
6781
|
});
|
|
6789
6782
|
}
|