generated from ministryofjustice/hmpps-template-typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Code to call the new endpoint - getReleaseDatesForACalcReqId (#701)
* Code to call the new endpoint - getReleaseDatesForACalcReqId * Add missed file for getReleaseDatesForACalcReqId * Update package.json to use the latest calc card design * Update package-lock.json to fix npm error [Error in desc] npm error `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing. npm error npm error Invalid: lock file's hmpps-court-cases-release-dates-design@2.3.6 does not satisfy hmpps-court-cases-release-dates-design@2.5.0 * Update ViewRouteSentenceAndOffenceViewModel to generateAdjustmentArray as required by PrintNotificationSlip * PrintNotificationSlip Page design elements * Updated Routes and ReleaseDateType in CalculationSummaryDatesCardModel * Updating test cases to assert for the length * Scenario to cover custodial term * Relocating files to printNotification partials to correct folder - Re-structuring * Correcting path typo * Addressing as per code review comments * Tests to cover the sentence length (Terms)
- Loading branch information
Showing
22 changed files
with
1,128 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import PrisonerContextViewModel from './PrisonerContextViewModel' | ||
import ViewRouteSentenceAndOffenceViewModel from './ViewRouteSentenceAndOffenceViewModel' | ||
|
||
export default class PrintNotificationSlipViewModel extends PrisonerContextViewModel { | ||
constructor( | ||
public model: ViewRouteSentenceAndOffenceViewModel, | ||
public calculationRequestId: number, | ||
public nomsId: string, | ||
public calculationDate: string, | ||
public keyDatesArray: { date: string; description: string }[], | ||
public fromPage: string, | ||
public pageType: string, | ||
public calculationReason: string, | ||
) { | ||
super(model.prisonerDetail) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.