@vertikalx/vtx-backend-client 3.0.0-dev-max.122 → 3.0.0-dev-max.124

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": "3.0.0-dev-max.122",
3
+ "version": "3.0.0-dev-max.124",
4
4
  "description": "GraphQL API generated client for VTX",
5
5
  "types": "src/index.d.ts",
6
6
  "main": "src/index.js",
@@ -124,7 +124,10 @@ export declare class VTXBaseAPI {
124
124
  saveAthleteCompetitionResult(dto: SetCompetitionResultDto): Promise<ITypedBackendResponse<AthleteCompetitionResult>>;
125
125
  updateAthleteScores(): Promise<ITypedBackendResponse<Athlete>>;
126
126
  updateAthleteCompetitionScores(): Promise<ITypedBackendResponse<Athlete>>;
127
- forceRefreshAthleteScores(athleteIds: string[]): Promise<ITypedBackendResponse<ForceScoreRefreshResponse>>;
127
+ forceRefreshAthleteScores(athleteIds: string[], options?: {
128
+ rebuildHistorical?: boolean;
129
+ historicalDays?: number;
130
+ }): Promise<ITypedBackendResponse<ForceScoreRefreshResponse>>;
128
131
  checkScoreRefreshCapabilities(input: {
129
132
  athleteIds: string[];
130
133
  }): Promise<ITypedBackendResponse<any>>;
@@ -7941,18 +7941,22 @@ class VTXBaseAPI {
7941
7941
  }
7942
7942
  return retValue;
7943
7943
  }
7944
- async forceRefreshAthleteScores(athleteIds) {
7944
+ async forceRefreshAthleteScores(athleteIds, options) {
7945
7945
  const client = (0, client_1.createClient)({
7946
7946
  url: this.backendUrl + '/graphql',
7947
7947
  headers: this.headers,
7948
7948
  });
7949
7949
  let retValue = {};
7950
+ const rebuildHistorical = options?.rebuildHistorical ?? true;
7951
+ const historicalDays = options?.historicalDays ?? 365;
7950
7952
  try {
7951
7953
  const response = await client.mutation({
7952
7954
  forceRefreshAthleteScores: {
7953
7955
  __args: {
7954
7956
  input: {
7955
7957
  athleteIds,
7958
+ rebuildHistorical,
7959
+ historicalDays,
7956
7960
  },
7957
7961
  },
7958
7962
  results: {
@@ -7972,6 +7976,14 @@ class VTXBaseAPI {
7972
7976
  status: true,
7973
7977
  message: true,
7974
7978
  },
7979
+ diagnostics: {
7980
+ activitiesDeleted: true,
7981
+ activitiesFetched: true,
7982
+ activitiesDateRange: true,
7983
+ activityRefsSaved: true,
7984
+ historicalDatesProcessed: true,
7985
+ historicalRebuildStatus: true,
7986
+ },
7975
7987
  },
7976
7988
  successCount: true,
7977
7989
  failureCount: true,