@vertikalx/vtx-backend-client 3.0.0-dev-max.42 → 3.0.0-dev-max.43
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
|
@@ -133,6 +133,9 @@ export declare class VTXBaseAPI {
|
|
|
133
133
|
updateAthleteScores(): Promise<ITypedBackendResponse<Athlete>>;
|
|
134
134
|
updateAthleteCompetitionScores(): Promise<ITypedBackendResponse<Athlete>>;
|
|
135
135
|
forceRefreshAthleteScores(athleteIds: string[]): Promise<ITypedBackendResponse<ForceScoreRefreshResponse>>;
|
|
136
|
+
checkScoreRefreshCapabilities(input: {
|
|
137
|
+
athleteIds: string[];
|
|
138
|
+
}): Promise<ITypedBackendResponse<any>>;
|
|
136
139
|
createResetPasswordCode(email: string): Promise<ITypedBackendResponse<EditValueResponse>>;
|
|
137
140
|
getResetVerificationCode(id: string): Promise<ITypedBackendResponse<VerificationCodeType>>;
|
|
138
141
|
verifyCode(input: VerifyCodeDto): Promise<ITypedBackendResponse<CodeVerificationResponse>>;
|
package/src/api/vtx-base-api.js
CHANGED
|
@@ -7834,6 +7834,18 @@ class VTXBaseAPI {
|
|
|
7834
7834
|
athleteName: true,
|
|
7835
7835
|
status: true,
|
|
7836
7836
|
message: true,
|
|
7837
|
+
tpi: {
|
|
7838
|
+
status: true,
|
|
7839
|
+
message: true,
|
|
7840
|
+
},
|
|
7841
|
+
spi: {
|
|
7842
|
+
status: true,
|
|
7843
|
+
message: true,
|
|
7844
|
+
},
|
|
7845
|
+
api: {
|
|
7846
|
+
status: true,
|
|
7847
|
+
message: true,
|
|
7848
|
+
},
|
|
7837
7849
|
},
|
|
7838
7850
|
successCount: true,
|
|
7839
7851
|
failureCount: true,
|
|
@@ -7847,6 +7859,39 @@ class VTXBaseAPI {
|
|
|
7847
7859
|
}
|
|
7848
7860
|
return retValue;
|
|
7849
7861
|
}
|
|
7862
|
+
async checkScoreRefreshCapabilities(input) {
|
|
7863
|
+
const client = (0, client_1.createClient)({
|
|
7864
|
+
url: this.backendUrl + '/graphql',
|
|
7865
|
+
headers: this.headers,
|
|
7866
|
+
});
|
|
7867
|
+
let retValue = {};
|
|
7868
|
+
try {
|
|
7869
|
+
const response = await client.query({
|
|
7870
|
+
checkScoreRefreshCapabilities: {
|
|
7871
|
+
__args: {
|
|
7872
|
+
input: {
|
|
7873
|
+
athleteIds: input.athleteIds,
|
|
7874
|
+
},
|
|
7875
|
+
},
|
|
7876
|
+
capabilities: {
|
|
7877
|
+
athleteId: true,
|
|
7878
|
+
athleteName: true,
|
|
7879
|
+
canRefreshTpi: true,
|
|
7880
|
+
canRefreshSpi: true,
|
|
7881
|
+
canRefreshApi: true,
|
|
7882
|
+
tpiReason: true,
|
|
7883
|
+
spiReason: true,
|
|
7884
|
+
apiReason: true,
|
|
7885
|
+
},
|
|
7886
|
+
},
|
|
7887
|
+
});
|
|
7888
|
+
retValue = (0, response_builder_1.buildResponse)(response, 'checkScoreRefreshCapabilities', () => !!response?.checkScoreRefreshCapabilities);
|
|
7889
|
+
}
|
|
7890
|
+
catch (err) {
|
|
7891
|
+
retValue = (0, response_builder_1.buildErrorResponse)(err);
|
|
7892
|
+
}
|
|
7893
|
+
return retValue;
|
|
7894
|
+
}
|
|
7850
7895
|
async createResetPasswordCode(email) {
|
|
7851
7896
|
console.log('HEADERS:');
|
|
7852
7897
|
console.log(JSON.stringify(this.headers, null, 2));
|