@vertikalx/vtx-backend-client 1.0.0-dev-carlos.2 → 1.0.0-dev-carlos.4

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.2",
3
+ "version": "1.0.0-dev-carlos.4",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -81,5 +81,5 @@ export declare class VTXBaseAPI {
81
81
  getAthleteAlbums(): Promise<ITypedBackendResponse<Album[]>>;
82
82
  getAthleteAlbumsById(): Promise<ITypedBackendResponse<Album>>;
83
83
  queryAthletesWithFilters(dto: AthleteQueryDto): Promise<ITypedBackendResponse<AthleteQueryResponse>>;
84
- getAthleteIntegrationsByAthleteId(athleteId: string): Promise<ITypedBackendResponse<any>>;
84
+ getAthleteIntegrationsByAthlete(): Promise<ITypedBackendResponse<any>>;
85
85
  }
@@ -6190,7 +6190,7 @@ class VTXBaseAPI {
6190
6190
  }
6191
6191
  return retValue;
6192
6192
  }
6193
- async getAthleteIntegrationsByAthleteId(athleteId) {
6193
+ async getAthleteIntegrationsByAthlete() {
6194
6194
  console.log('HEADERS:');
6195
6195
  console.log(JSON.stringify(this.headers, null, 2));
6196
6196
  const client = (0, client_1.createClient)({
@@ -6224,22 +6224,19 @@ class VTXBaseAPI {
6224
6224
  };
6225
6225
  try {
6226
6226
  const response = await client.query({
6227
- getAthleteIntegrationsByAthleteId: {
6228
- __args: {
6229
- athleteId: athleteId
6230
- },
6227
+ getAthleteIntegrationsByAthlete: {
6231
6228
  ...fields
6232
6229
  },
6233
6230
  });
6234
- console.log('getAthleteIntegrationsByAthleteId Response:');
6231
+ console.log('getAthleteIntegrationsByAthlete Response:');
6235
6232
  console.log(JSON.stringify(response, null, 2));
6236
- retValue = (0, response_builder_1.buildResponse)(response, 'getAthleteIntegrationsByAthleteId', (r) => {
6237
- const isResponseOk = !!response?.getAthleteIntegrationsByAthleteId?._id;
6233
+ retValue = (0, response_builder_1.buildResponse)(response, 'getAthleteIntegrationsByAthlete', (r) => {
6234
+ const isResponseOk = !!response?.getAthleteIntegrationsByAthlete?._id;
6238
6235
  return isResponseOk;
6239
6236
  });
6240
6237
  }
6241
6238
  catch (err1) {
6242
- console.error('getAthleteIntegrationsByAthleteId err1:');
6239
+ console.error('getAthleteIntegrationsByAthlete err1:');
6243
6240
  console.error(err1);
6244
6241
  retValue = (0, response_builder_1.buildErrorResponse)(err1);
6245
6242
  }