@vertikalx/vtx-backend-client 1.0.0-dev-carlos.41 → 1.0.0-dev-daniel.238

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vertikalx/vtx-backend-client",
3
- "version": "1.0.0-dev-carlos.41",
3
+ "version": "1.0.0-dev-daniel.238",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -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
- updateAthleteScores(): Promise<ITypedBackendResponse<Athlete>>;
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>>;
@@ -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,
@@ -5311,22 +5310,6 @@ class VTXBaseAPI {
5311
5310
  timezone: true,
5312
5311
  }
5313
5312
  },
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
- },
5330
5313
  trainer: true,
5331
5314
  trainerUrl: true,
5332
5315
  aboutMe: true,
@@ -5537,9 +5520,23 @@ class VTXBaseAPI {
5537
5520
  url: true,
5538
5521
  key: true
5539
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
+ },
5540
5532
  preferences: {
5541
5533
  _id: true,
5542
- showProfileHelper: true
5534
+ showProfileHelper: true,
5535
+ defaultAlbum: {
5536
+ _id: true,
5537
+ label: true,
5538
+ description: true,
5539
+ }
5543
5540
  },
5544
5541
  currentCampaign: {
5545
5542
  _id: true,
@@ -5650,7 +5647,7 @@ class VTXBaseAPI {
5650
5647
  resultWebLink: true
5651
5648
  }
5652
5649
  }
5653
- }
5650
+ },
5654
5651
  };
5655
5652
  try {
5656
5653
  let response = null;
@@ -6730,9 +6727,6 @@ class VTXBaseAPI {
6730
6727
  score: true,
6731
6728
  finishTimeMS: true,
6732
6729
  resultWebLink: true,
6733
- totalParticipants: true,
6734
- outcome: true,
6735
- adversary: true
6736
6730
  };
6737
6731
  try {
6738
6732
  const response = await client.mutation({
@@ -6757,7 +6751,7 @@ class VTXBaseAPI {
6757
6751
  }
6758
6752
  return retValue;
6759
6753
  }
6760
- async updateAthleteScores() {
6754
+ async updateAthleteTpiScore() {
6761
6755
  const client = (0, client_1.createClient)({
6762
6756
  url: this.backendUrl + '/graphql',
6763
6757
  headers: this.headers,
@@ -6765,7 +6759,7 @@ class VTXBaseAPI {
6765
6759
  let retValue = {};
6766
6760
  try {
6767
6761
  const response = await client.mutation({
6768
- updateAthleteScores: {
6762
+ updateAthleteTpiScore: {
6769
6763
  _id: true,
6770
6764
  firstName: true,
6771
6765
  lastName: true,
@@ -6776,8 +6770,8 @@ class VTXBaseAPI {
6776
6770
  }
6777
6771
  },
6778
6772
  });
6779
- retValue = (0, response_builder_1.buildResponse)(response, 'updateAthleteScores', (r) => {
6780
- const isResponseOk = !!response?.updateAthleteScores?._id;
6773
+ retValue = (0, response_builder_1.buildResponse)(response, 'updateAthleteTpiScore', (r) => {
6774
+ const isResponseOk = !!response?.updateAthleteTpiScore?._id;
6781
6775
  return isResponseOk;
6782
6776
  });
6783
6777
  }