-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into j-s/indictment-view-tag
- Loading branch information
Showing
11 changed files
with
223 additions
and
32 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
apps/judicial-system/backend/src/app/modules/case/dto/internalCases.dto.ts
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,10 @@ | ||
import { IsNotEmpty, IsString } from 'class-validator' | ||
|
||
import { ApiProperty } from '@nestjs/swagger' | ||
|
||
export class InternalCasesDto { | ||
@IsNotEmpty() | ||
@IsString() | ||
@ApiProperty({ type: String }) | ||
readonly nationalId!: string | ||
} |
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
18 changes: 18 additions & 0 deletions
18
apps/judicial-system/digital-mailbox-api/src/app/models/cases.response.ts
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,18 @@ | ||
import { ApiProperty } from '@nestjs/swagger' | ||
|
||
export class CasesResponse { | ||
@ApiProperty({ type: String }) | ||
id!: string | ||
|
||
@ApiProperty({ type: String }) | ||
caseNumber!: string | ||
|
||
@ApiProperty({ type: String }) | ||
type!: string | ||
|
||
@ApiProperty({ type: Object }) | ||
state!: { | ||
color: string | ||
label: string | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
apps/judicial-system/digital-mailbox-api/src/app/models/internalCases.response.ts
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 { ApiProperty } from '@nestjs/swagger' | ||
|
||
import { CaseState } from '@island.is/judicial-system/types' | ||
|
||
export class InternalCasesResponse { | ||
@ApiProperty({ type: String }) | ||
id!: string | ||
|
||
@ApiProperty({ type: String }) | ||
courtCaseNumber!: string | ||
|
||
@ApiProperty({ type: String }) | ||
type!: string | ||
|
||
@ApiProperty({ type: String }) | ||
state!: CaseState | ||
} |
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