Skip to content

Commit

Permalink
feat(j-s): Add "acknowledged" to case and subpoena (#15860)
Browse files Browse the repository at this point in the history
* feat(j-s): Added acknowledged to case and subpoena response

* fix(j-s): Add mock to response

* Update subpoena.response.ts

---------

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
  • Loading branch information
2 people authored and jonnigs committed Sep 12, 2024
1 parent 3e7fb7c commit e4f4de9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class IndictmentCaseData {
@ApiProperty({ type: String })
caseNumber!: string

@ApiProperty({ type: Boolean })
acknowledged?: boolean

@ApiProperty({ type: [Groups] })
groups!: Groups[]
}
Expand All @@ -37,6 +40,7 @@ export class CaseResponse {
caseId: res.id,
data: {
caseNumber: `${t.caseNumber} ${res.courtCaseNumber}`,
acknowledged: false, // TODO: Connect to real data
groups: [
{
label: t.defendant,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ class SubpoenaData {
@ApiProperty({ type: () => String })
title!: string

@ApiProperty({ type: Boolean })
acknowledged?: boolean

@ApiProperty({ type: () => [Groups] })
groups!: Groups[]
}
Expand Down Expand Up @@ -60,12 +63,13 @@ export class SubpoenaResponse {
(dateLog) => dateLog.dateType === DateType.ARRAIGNMENT_DATE,
)
const arraignmentDate = subpoenaDateLog?.date ?? ''
const subpoenaCreatedDate = subpoenaDateLog?.created ?? ''
const subpoenaCreatedDate = subpoenaDateLog?.created ?? '' //TODO: Change to subpoena created in RLS

return {
caseId: internalCase.id,
data: {
title: t.subpoena,
acknowledged: false, // TODO: Connect to real data
groups: [
{
label: `${t.caseNumber} ${internalCase.courtCaseNumber}`,
Expand Down

0 comments on commit e4f4de9

Please sign in to comment.