move static data
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import { PenaltiesApiClient } from '../../api/penalties/PenaltiesApiClient';
|
||||
import type { PenaltyTypesReferenceDTO } from '../../types/PenaltyTypesReferenceDTO';
|
||||
|
||||
/**
|
||||
* Penalty Service
|
||||
@@ -19,6 +20,13 @@ export class PenaltyService {
|
||||
return dto.penalties;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get allowed penalty types and semantics
|
||||
*/
|
||||
async getPenaltyTypesReference(): Promise<PenaltyTypesReferenceDTO> {
|
||||
return this.apiClient.getPenaltyTypesReference();
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply a penalty
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user