@vertikalx/vtx-backend-client 2.0.0-dev-carlos.12 → 2.0.0-dev-daniel.2
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.js +48 -6
- package/src/api/vtx-base-api.js.map +1 -1
- package/src/client/schema.d.ts +6 -0
- package/src/client/schema.js.map +1 -1
- package/src/client/types.d.ts +3 -0
- package/src/client/types.js +9 -0
- package/src/client/types.js.map +1 -1
- package/tsconfig.lib.tsbuildinfo +1 -1
package/package.json
CHANGED
package/src/api/vtx-base-api.js
CHANGED
|
@@ -1989,6 +1989,7 @@ class VTXBaseAPI {
|
|
|
1989
1989
|
trainer: true,
|
|
1990
1990
|
trainerUrl: true,
|
|
1991
1991
|
aboutMe: true,
|
|
1992
|
+
biography: true,
|
|
1992
1993
|
followStats: {
|
|
1993
1994
|
followers: true,
|
|
1994
1995
|
followed: true,
|
|
@@ -4599,7 +4600,7 @@ class VTXBaseAPI {
|
|
|
4599
4600
|
scores: {
|
|
4600
4601
|
vtxScore: true,
|
|
4601
4602
|
},
|
|
4602
|
-
|
|
4603
|
+
profilePicture: {
|
|
4603
4604
|
url: true,
|
|
4604
4605
|
},
|
|
4605
4606
|
currentCampaign: {
|
|
@@ -5152,6 +5153,7 @@ class VTXBaseAPI {
|
|
|
5152
5153
|
trainer: true,
|
|
5153
5154
|
trainerUrl: true,
|
|
5154
5155
|
aboutMe: true,
|
|
5156
|
+
biography: true,
|
|
5155
5157
|
followStats: {
|
|
5156
5158
|
followers: true,
|
|
5157
5159
|
followed: true,
|
|
@@ -5647,8 +5649,12 @@ class VTXBaseAPI {
|
|
|
5647
5649
|
});
|
|
5648
5650
|
let retValue = {};
|
|
5649
5651
|
const fields = {
|
|
5652
|
+
_id: true,
|
|
5650
5653
|
label: true,
|
|
5651
5654
|
description: true,
|
|
5655
|
+
displayIndex: true,
|
|
5656
|
+
competitionId: true,
|
|
5657
|
+
visibility: true,
|
|
5652
5658
|
photos: {
|
|
5653
5659
|
_id: true,
|
|
5654
5660
|
photo: {
|
|
@@ -5695,8 +5701,12 @@ class VTXBaseAPI {
|
|
|
5695
5701
|
});
|
|
5696
5702
|
let retValue = {};
|
|
5697
5703
|
const fields = {
|
|
5704
|
+
_id: true,
|
|
5698
5705
|
label: true,
|
|
5699
5706
|
description: true,
|
|
5707
|
+
displayIndex: true,
|
|
5708
|
+
competitionId: true,
|
|
5709
|
+
visibility: true,
|
|
5700
5710
|
photos: {
|
|
5701
5711
|
_id: true,
|
|
5702
5712
|
photo: {
|
|
@@ -6156,6 +6166,9 @@ class VTXBaseAPI {
|
|
|
6156
6166
|
_id: true,
|
|
6157
6167
|
label: true,
|
|
6158
6168
|
description: true,
|
|
6169
|
+
displayIndex: true,
|
|
6170
|
+
competitionId: true,
|
|
6171
|
+
visibility: true,
|
|
6159
6172
|
photos: {
|
|
6160
6173
|
_id: true,
|
|
6161
6174
|
photo: {
|
|
@@ -6203,6 +6216,9 @@ class VTXBaseAPI {
|
|
|
6203
6216
|
_id: true,
|
|
6204
6217
|
label: true,
|
|
6205
6218
|
description: true,
|
|
6219
|
+
displayIndex: true,
|
|
6220
|
+
competitionId: true,
|
|
6221
|
+
visibility: true,
|
|
6206
6222
|
photos: {
|
|
6207
6223
|
_id: true,
|
|
6208
6224
|
photo: {
|
|
@@ -6249,8 +6265,12 @@ class VTXBaseAPI {
|
|
|
6249
6265
|
});
|
|
6250
6266
|
let retValue = {};
|
|
6251
6267
|
const fields = {
|
|
6268
|
+
_id: true,
|
|
6252
6269
|
label: true,
|
|
6253
6270
|
description: true,
|
|
6271
|
+
displayIndex: true,
|
|
6272
|
+
competitionId: true,
|
|
6273
|
+
visibility: true,
|
|
6254
6274
|
photos: {
|
|
6255
6275
|
_id: true,
|
|
6256
6276
|
photo: {
|
|
@@ -6300,6 +6320,9 @@ class VTXBaseAPI {
|
|
|
6300
6320
|
_id: true,
|
|
6301
6321
|
label: true,
|
|
6302
6322
|
description: true,
|
|
6323
|
+
displayIndex: true,
|
|
6324
|
+
competitionId: true,
|
|
6325
|
+
visibility: true,
|
|
6303
6326
|
photos: {
|
|
6304
6327
|
_id: true,
|
|
6305
6328
|
photo: {
|
|
@@ -6343,6 +6366,7 @@ class VTXBaseAPI {
|
|
|
6343
6366
|
headers: this.headers,
|
|
6344
6367
|
});
|
|
6345
6368
|
const fieldsAthlete = {
|
|
6369
|
+
_id: true,
|
|
6346
6370
|
firstName: true,
|
|
6347
6371
|
lastName: true,
|
|
6348
6372
|
screenName: true,
|
|
@@ -6352,7 +6376,9 @@ class VTXBaseAPI {
|
|
|
6352
6376
|
_id: true,
|
|
6353
6377
|
},
|
|
6354
6378
|
location: {
|
|
6379
|
+
_id: true,
|
|
6355
6380
|
city: {
|
|
6381
|
+
_id: true,
|
|
6356
6382
|
name: true,
|
|
6357
6383
|
state: {
|
|
6358
6384
|
name: true,
|
|
@@ -6364,23 +6390,39 @@ class VTXBaseAPI {
|
|
|
6364
6390
|
},
|
|
6365
6391
|
aboutMe: true,
|
|
6366
6392
|
mainSport: {
|
|
6393
|
+
_id: true,
|
|
6367
6394
|
name: true
|
|
6368
6395
|
},
|
|
6369
6396
|
mainSportLevel: {
|
|
6397
|
+
_id: true,
|
|
6370
6398
|
label: true,
|
|
6371
6399
|
},
|
|
6372
6400
|
scores: {
|
|
6373
6401
|
vtxScore: true,
|
|
6402
|
+
socialScore: true,
|
|
6403
|
+
trainingScore: true,
|
|
6404
|
+
competitionScore: true
|
|
6374
6405
|
},
|
|
6375
6406
|
competitions: {
|
|
6407
|
+
_id: true,
|
|
6376
6408
|
event: {
|
|
6409
|
+
_id: true,
|
|
6377
6410
|
name: true,
|
|
6378
6411
|
},
|
|
6379
6412
|
participationDate: true,
|
|
6380
6413
|
},
|
|
6381
|
-
|
|
6414
|
+
profilePicture: {
|
|
6382
6415
|
url: true,
|
|
6383
6416
|
},
|
|
6417
|
+
currentCampaign: {
|
|
6418
|
+
_id: true,
|
|
6419
|
+
budgetMode: true,
|
|
6420
|
+
status: true,
|
|
6421
|
+
title: true,
|
|
6422
|
+
motivation: true,
|
|
6423
|
+
website: true,
|
|
6424
|
+
endingDate: true,
|
|
6425
|
+
}
|
|
6384
6426
|
};
|
|
6385
6427
|
const fields = {
|
|
6386
6428
|
athletes: fieldsAthlete,
|
|
@@ -6960,16 +7002,16 @@ class VTXBaseAPI {
|
|
|
6960
7002
|
...fields
|
|
6961
7003
|
},
|
|
6962
7004
|
});
|
|
6963
|
-
VTXBaseAPI.Logger.
|
|
6964
|
-
VTXBaseAPI.Logger.
|
|
7005
|
+
VTXBaseAPI.Logger.log('saveAthleteCompetitionResult Response:');
|
|
7006
|
+
VTXBaseAPI.Logger.log(JSON.stringify(response, null, 2));
|
|
6965
7007
|
retValue = (0, response_builder_1.buildResponse)(response, 'saveAthleteCompetitionResult', (r) => {
|
|
6966
7008
|
const isResponseOk = true && response?.saveAthleteCompetitionResult?._id;
|
|
6967
7009
|
return isResponseOk;
|
|
6968
7010
|
});
|
|
6969
7011
|
}
|
|
6970
7012
|
catch (err1) {
|
|
6971
|
-
VTXBaseAPI.Logger.
|
|
6972
|
-
VTXBaseAPI.Logger.
|
|
7013
|
+
VTXBaseAPI.Logger.log('saveAthleteCompetitionResult err1:');
|
|
7014
|
+
VTXBaseAPI.Logger.log(err1);
|
|
6973
7015
|
retValue = (0, response_builder_1.buildErrorResponse)(err1);
|
|
6974
7016
|
}
|
|
6975
7017
|
return retValue;
|