Skip to content

Commit

Permalink
Migrate beacon malfunctions apis to RTK
Browse files Browse the repository at this point in the history
  • Loading branch information
louptheron committed Feb 3, 2025
1 parent c76e194 commit 47a7df3
Show file tree
Hide file tree
Showing 29 changed files with 393 additions and 374 deletions.
6 changes: 3 additions & 3 deletions frontend/src/api/APIWorker.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { getAllBeaconMalfunctions } from '@features/BeaconMalfunction/useCases/getAllBeaconMalfunctions'
import { getVesselBeaconMalfunctions } from '@features/BeaconMalfunction/useCases/getVesselBeaconMalfunctions'
import { openBeaconMalfunctionInKanban } from '@features/BeaconMalfunction/useCases/openBeaconMalfunctionInKanban'
import { fleetSegmentApi } from '@features/FleetSegment/apis'
import { getAllRegulatoryLayers } from '@features/Regulation/useCases/getAllRegulatoryLayers'
import { reportingApi } from '@features/Reporting/reportingApi'
Expand All @@ -9,9 +12,6 @@ import { VesselSidebarTab } from '../domain/entities/vessel/vessel'
import { setIsUpdatingVessels } from '../domain/shared_slices/Global'
import { getOperationalAlerts } from '../domain/use_cases/alert/getOperationalAlerts'
import { getSilencedAlerts } from '../domain/use_cases/alert/getSilencedAlerts'
import { getAllBeaconMalfunctions } from '../domain/use_cases/beaconMalfunction/getAllBeaconMalfunctions'
import { getVesselBeaconMalfunctions } from '../domain/use_cases/beaconMalfunction/getVesselBeaconMalfunctions'
import { openBeaconMalfunctionInKanban } from '../domain/use_cases/beaconMalfunction/openBeaconMalfunctionInKanban'
import { getAllGearCodes } from '../domain/use_cases/gearCode/getAllGearCodes'
import { getInfractions } from '../domain/use_cases/infraction/getInfractions'
import { getVesselControls } from '../domain/use_cases/mission/getVesselControls'
Expand Down
133 changes: 0 additions & 133 deletions frontend/src/api/beaconMalfunction.ts

This file was deleted.

Empty file removed frontend/src/api/reporting.ts
Empty file.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ describe('domain/entities/beaconMalfunction/index.getMalfunctionStartDateText()'
id: 5,
internalReferenceNumber: 'FR263465414',
ircs: 'IR123',
malfunctionEndDateTime: null,
malfunctionEndDateTime: undefined,
malfunctionStartDateTime: '2023-08-21T11:17:22.997231Z',
notificationRequested: null,
riskFactor: null,
notificationRequested: undefined,
riskFactor: undefined,
stage: 'ARCHIVED',
vesselId: 12,
vesselIdentifier: 'EXTERNAL_REFERENCE_NUMBER',
Expand Down
Loading

0 comments on commit 47a7df3

Please sign in to comment.