@vertikalx/vtx-backend-client 1.0.0-dev-carlos.42 → 1.0.0-dev-daniel.239
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 +22 -31
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +30 -16
- package/src/client/schema.js +9 -2
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +17 -11
- package/src/client/types.js +191 -181
- 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
|
+
updateAthleteTpiScore(): 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,8 +3951,7 @@ class VTXBaseAPI {
|
|
|
3951
3951
|
name: true,
|
|
3952
3952
|
mainSport: {
|
|
3953
3953
|
_id: true,
|
|
3954
|
-
name: true
|
|
3955
|
-
resultType: true,
|
|
3954
|
+
name: true
|
|
3956
3955
|
},
|
|
3957
3956
|
eventWebSite: true,
|
|
3958
3957
|
startDate: true,
|
|
@@ -4002,10 +4001,7 @@ class VTXBaseAPI {
|
|
|
4002
4001
|
position: true,
|
|
4003
4002
|
score: true,
|
|
4004
4003
|
finishTimeMS: true,
|
|
4005
|
-
resultWebLink: true
|
|
4006
|
-
outcome: true,
|
|
4007
|
-
totalParticipants: true,
|
|
4008
|
-
adversary: true,
|
|
4004
|
+
resultWebLink: true
|
|
4009
4005
|
},
|
|
4010
4006
|
fundRaisingCampaignIds: true,
|
|
4011
4007
|
budget: {
|
|
@@ -5314,22 +5310,6 @@ class VTXBaseAPI {
|
|
|
5314
5310
|
timezone: true,
|
|
5315
5311
|
}
|
|
5316
5312
|
},
|
|
5317
|
-
albums: {
|
|
5318
|
-
_id: true,
|
|
5319
|
-
label: true,
|
|
5320
|
-
description: true,
|
|
5321
|
-
photos: {
|
|
5322
|
-
photo: {
|
|
5323
|
-
_id: true,
|
|
5324
|
-
name: true,
|
|
5325
|
-
contentType: true,
|
|
5326
|
-
size: true,
|
|
5327
|
-
useType: true,
|
|
5328
|
-
url: true,
|
|
5329
|
-
key: true,
|
|
5330
|
-
},
|
|
5331
|
-
},
|
|
5332
|
-
},
|
|
5333
5313
|
trainer: true,
|
|
5334
5314
|
trainerUrl: true,
|
|
5335
5315
|
aboutMe: true,
|
|
@@ -5540,9 +5520,23 @@ class VTXBaseAPI {
|
|
|
5540
5520
|
url: true,
|
|
5541
5521
|
key: true
|
|
5542
5522
|
},
|
|
5523
|
+
bannerPicture: {
|
|
5524
|
+
_id: true,
|
|
5525
|
+
name: true,
|
|
5526
|
+
contentType: true,
|
|
5527
|
+
size: true,
|
|
5528
|
+
useType: true,
|
|
5529
|
+
url: true,
|
|
5530
|
+
key: true
|
|
5531
|
+
},
|
|
5543
5532
|
preferences: {
|
|
5544
5533
|
_id: true,
|
|
5545
|
-
showProfileHelper: true
|
|
5534
|
+
showProfileHelper: true,
|
|
5535
|
+
defaultAlbum: {
|
|
5536
|
+
_id: true,
|
|
5537
|
+
label: true,
|
|
5538
|
+
description: true,
|
|
5539
|
+
}
|
|
5546
5540
|
},
|
|
5547
5541
|
currentCampaign: {
|
|
5548
5542
|
_id: true,
|
|
@@ -5653,7 +5647,7 @@ class VTXBaseAPI {
|
|
|
5653
5647
|
resultWebLink: true
|
|
5654
5648
|
}
|
|
5655
5649
|
}
|
|
5656
|
-
}
|
|
5650
|
+
},
|
|
5657
5651
|
};
|
|
5658
5652
|
try {
|
|
5659
5653
|
let response = null;
|
|
@@ -6733,9 +6727,6 @@ class VTXBaseAPI {
|
|
|
6733
6727
|
score: true,
|
|
6734
6728
|
finishTimeMS: true,
|
|
6735
6729
|
resultWebLink: true,
|
|
6736
|
-
totalParticipants: true,
|
|
6737
|
-
outcome: true,
|
|
6738
|
-
adversary: true
|
|
6739
6730
|
};
|
|
6740
6731
|
try {
|
|
6741
6732
|
const response = await client.mutation({
|
|
@@ -6760,7 +6751,7 @@ class VTXBaseAPI {
|
|
|
6760
6751
|
}
|
|
6761
6752
|
return retValue;
|
|
6762
6753
|
}
|
|
6763
|
-
async
|
|
6754
|
+
async updateAthleteTpiScore() {
|
|
6764
6755
|
const client = (0, client_1.createClient)({
|
|
6765
6756
|
url: this.backendUrl + '/graphql',
|
|
6766
6757
|
headers: this.headers,
|
|
@@ -6768,7 +6759,7 @@ class VTXBaseAPI {
|
|
|
6768
6759
|
let retValue = {};
|
|
6769
6760
|
try {
|
|
6770
6761
|
const response = await client.mutation({
|
|
6771
|
-
|
|
6762
|
+
updateAthleteTpiScore: {
|
|
6772
6763
|
_id: true,
|
|
6773
6764
|
firstName: true,
|
|
6774
6765
|
lastName: true,
|
|
@@ -6779,8 +6770,8 @@ class VTXBaseAPI {
|
|
|
6779
6770
|
}
|
|
6780
6771
|
},
|
|
6781
6772
|
});
|
|
6782
|
-
retValue = (0, response_builder_1.buildResponse)(response, '
|
|
6783
|
-
const isResponseOk = !!response?.
|
|
6773
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'updateAthleteTpiScore', (r) => {
|
|
6774
|
+
const isResponseOk = !!response?.updateAthleteTpiScore?._id;
|
|
6784
6775
|
return isResponseOk;
|
|
6785
6776
|
});
|
|
6786
6777
|
}
|