From e4f4de9995ac4c8485092680aea6f954f4ad4dd2 Mon Sep 17 00:00:00 2001 From: unakb Date: Wed, 4 Sep 2024 11:45:01 +0000 Subject: [PATCH] feat(j-s): Add "acknowledged" to case and subpoena (#15860) * 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> --- .../src/app/modules/cases/models/case.response.ts | 4 ++++ .../src/app/modules/cases/models/subpoena.response.ts | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/apps/judicial-system/digital-mailbox-api/src/app/modules/cases/models/case.response.ts b/apps/judicial-system/digital-mailbox-api/src/app/modules/cases/models/case.response.ts index b300b0074575..4f8159657381 100644 --- a/apps/judicial-system/digital-mailbox-api/src/app/modules/cases/models/case.response.ts +++ b/apps/judicial-system/digital-mailbox-api/src/app/modules/cases/models/case.response.ts @@ -11,6 +11,9 @@ class IndictmentCaseData { @ApiProperty({ type: String }) caseNumber!: string + @ApiProperty({ type: Boolean }) + acknowledged?: boolean + @ApiProperty({ type: [Groups] }) groups!: Groups[] } @@ -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, diff --git a/apps/judicial-system/digital-mailbox-api/src/app/modules/cases/models/subpoena.response.ts b/apps/judicial-system/digital-mailbox-api/src/app/modules/cases/models/subpoena.response.ts index c6c022006edc..a39933df0f9f 100644 --- a/apps/judicial-system/digital-mailbox-api/src/app/modules/cases/models/subpoena.response.ts +++ b/apps/judicial-system/digital-mailbox-api/src/app/modules/cases/models/subpoena.response.ts @@ -25,6 +25,9 @@ class SubpoenaData { @ApiProperty({ type: () => String }) title!: string + @ApiProperty({ type: Boolean }) + acknowledged?: boolean + @ApiProperty({ type: () => [Groups] }) groups!: Groups[] } @@ -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}`,