From d48c875d92d2ad8e9418182407b2eabab55ee61a Mon Sep 17 00:00:00 2001 From: John Cruz Date: Mon, 9 Dec 2024 16:53:01 -0700 Subject: [PATCH] 10434: Fix Typing errors; --- .../trialSessionPlanningReport.test.ts | 24 ++++++++++++------- .../getTrialSessionPlanningReportProxy.ts | 2 +- web-client/src/presenter/state.ts | 6 +++-- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/shared/src/business/utilities/documentGenerators/trialSessionPlanningReport.test.ts b/shared/src/business/utilities/documentGenerators/trialSessionPlanningReport.test.ts index a6505e53091..d16f5802e59 100644 --- a/shared/src/business/utilities/documentGenerators/trialSessionPlanningReport.test.ts +++ b/shared/src/business/utilities/documentGenerators/trialSessionPlanningReport.test.ts @@ -1,3 +1,7 @@ +import { + PreviousTerm, + TrialLocationData, +} from '@web-api/business/useCases/trialSessions/getTrialSessionPlanningReportDataInteractor'; import { applicationContext } from '../../test/createTestApplicationContext'; import { generateAndVerifyPdfDiff } from './generateAndVerifyPdfDiff'; import { trialSessionPlanningReport } from './trialSessionPlanningReport'; @@ -13,38 +17,42 @@ describe('trialSessionPlanningReport', () => { locationData: [ { allCaseCount: 5, + blockedCaseCount: 0, previousTermsData: [['(S) Buch', '(R) Cohen'], [], []], regularCaseCount: 3, smallCaseCount: 2, + specialCaseCount: 0, stateAbbreviation: 'AR', trialCityState: 'Little Rock, AR', }, { allCaseCount: 2, + blockedCaseCount: 0, previousTermsData: [[], ['(HS) Colvin'], ['(H) Guy']], regularCaseCount: 1, smallCaseCount: 1, + specialCaseCount: 0, stateAbbreviation: 'AL', trialCityState: 'Mobile, AL', }, - ], + ] as TrialLocationData[], previousTerms: [ { - name: 'fall', + term: 'fall', termDisplay: 'Fall 2019', - year: '2019', + year: 2019, }, { - name: 'spring', + term: 'spring', termDisplay: 'Spring 2019', - year: '2019', + year: 2019, }, { - name: 'winter', + term: 'winter', termDisplay: 'Winter 2019', - year: '2019', + year: 2019, }, - ], + ] as PreviousTerm[], term: 'Winter 2020', }, }), diff --git a/shared/src/proxies/trialSessions/getTrialSessionPlanningReportProxy.ts b/shared/src/proxies/trialSessions/getTrialSessionPlanningReportProxy.ts index 41127b0df04..08be71da54e 100644 --- a/shared/src/proxies/trialSessions/getTrialSessionPlanningReportProxy.ts +++ b/shared/src/proxies/trialSessions/getTrialSessionPlanningReportProxy.ts @@ -2,7 +2,7 @@ import { ClientApplicationContext } from '@web-client/applicationContext'; import { PreviousTerm, TrialLocationData, -} from '@web-api/business/useCases/trialSessions/runTrialSessionPlanningReportInteractor'; +} from '@web-api/business/useCases/trialSessions/getTrialSessionPlanningReportDataInteractor'; import { get } from '../requests'; export const getTrialSessionPlanningReportDataInteractor = ( diff --git a/web-client/src/presenter/state.ts b/web-client/src/presenter/state.ts index 5fe99444f40..ea0ef90d08e 100644 --- a/web-client/src/presenter/state.ts +++ b/web-client/src/presenter/state.ts @@ -11,12 +11,14 @@ import { import { IrsNoticeForm } from '@shared/business/entities/startCase/IrsNoticeForm'; import { JudgeActivityReportState } from '@web-client/ustc-ui/Utils/types'; import { JudgeChambersInfo } from '@web-client/presenter/actions/getJudgesChambersAction'; -import { PreviousTerm } from '@web-api/business/useCases/trialSessions/runTrialSessionPlanningReportInteractor'; +import { + PreviousTerm, + TrialLocationData, +} from '@web-api/business/useCases/trialSessions/getTrialSessionPlanningReportDataInteractor'; import { RawCaseDeadline } from '@shared/business/entities/CaseDeadline'; import { RawMessage } from '@shared/business/entities/Message'; import { RawUser, UserContact } from '@shared/business/entities/User'; import { TAssociatedCase } from '@shared/business/useCases/getCasesForUserInteractor'; -import { TrialLocationData } from '@web-api/business/useCases/trialSessions/getTrialSessionPlanningReportDataInteractor'; import { TroubleshootingLinkInfo } from '@web-client/presenter/sequences/showFileUploadErrorModalSequence'; import { addCourtIssuedDocketEntryHelper } from './computeds/addCourtIssuedDocketEntryHelper'; import { addCourtIssuedDocketEntryNonstandardHelper } from './computeds/addCourtIssuedDocketEntryNonstandardHelper';