refactor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import type { SessionType } from '@gridpilot/racing/domain/types/SessionType';
|
||||
import { PointsTable } from '@gridpilot/racing/domain/value-objects/PointsTable';
|
||||
import type { BonusRule } from '@gridpilot/racing/domain/types/BonusRule';
|
||||
import type { ChampionshipConfig } from '@gridpilot/racing/domain/types/ChampionshipConfig';
|
||||
import type { SessionType } from '@core/racing/domain/types/SessionType';
|
||||
import { PointsTable } from '@core/racing/domain/value-objects/PointsTable';
|
||||
import type { BonusRule } from '@core/racing/domain/types/BonusRule';
|
||||
import type { ChampionshipConfig } from '@core/racing/domain/types/ChampionshipConfig';
|
||||
import { makePointsTable } from './PointsTableFactory';
|
||||
|
||||
export const makeChampionshipConfig = (params: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ParticipantRef } from '@gridpilot/racing/domain/types/ParticipantRef';
|
||||
import type { ChampionshipType } from '@gridpilot/racing/domain/types/ChampionshipType';
|
||||
import type { ParticipantRef } from '@core/racing/domain/types/ParticipantRef';
|
||||
import type { ChampionshipType } from '@core/racing/domain/types/ChampionshipType';
|
||||
|
||||
export const makeDriverRef = (id: string): ParticipantRef => ({
|
||||
type: 'driver' as ChampionshipType,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { PointsTable } from '@gridpilot/racing/domain/value-objects/PointsTable';
|
||||
import { PointsTable } from '@core/racing/domain/value-objects/PointsTable';
|
||||
|
||||
export const makePointsTable = (points: number[]): PointsTable => {
|
||||
const pointsByPosition: Record<number, number> = {};
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Season } from '@gridpilot/racing/domain/entities/Season';
|
||||
import type { SeasonStatus } from '@gridpilot/racing/domain/entities/Season';
|
||||
import { Season } from '@core/racing/domain/entities/Season';
|
||||
import type { SeasonStatus } from '@core/racing/domain/entities/Season';
|
||||
|
||||
export const createMinimalSeason = (overrides?: { status?: SeasonStatus }) =>
|
||||
Season.create({
|
||||
|
||||
Reference in New Issue
Block a user