-
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 feat/bff-my-pages
- Loading branch information
Showing
26 changed files
with
606 additions
and
73 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,37 @@ | ||
node_modules/ | ||
dist/ | ||
scripts/ci/ | ||
# vi: ft=gitignore | ||
|
||
# Known ignores | ||
/.github/ | ||
/.git/ | ||
/scripts/ci/ | ||
/.env.* | ||
/.envrc* | ||
/.nx/ | ||
|
||
# Cache and packages | ||
**/node_modules/ | ||
# Ignoring _all_ cache folders dosen't work, because we have libraries named `cache` | ||
# **/cache/ | ||
/.yarn/cache/ | ||
/.yarn/install-state* | ||
# Ignores e.g. `cache/` and `cache_outptut/` | ||
/cache* | ||
cache/ | ||
.git/ | ||
log/ | ||
*.log | ||
/.cache*/ | ||
|
||
# Logs and temporaries | ||
**/log/ | ||
**/*.log | ||
**/tmp/ | ||
**/temp/ | ||
|
||
# Outputs | ||
**/dist/ | ||
**/out/ | ||
|
||
# Docker-stuff | ||
**/Dockerfile | ||
**/Dockerfile.* | ||
**/Containerfile | ||
**/Containerfile.* | ||
**/*-compose.yaml | ||
**/*-compose.yml |
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
12 changes: 12 additions & 0 deletions
12
apps/judicial-system/api/src/app/modules/file/dto/createCivilClaimantFile.input.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,12 @@ | ||
import { Allow } from 'class-validator' | ||
|
||
import { Field, ID, InputType } from '@nestjs/graphql' | ||
|
||
import { CreateFileInput } from './createFile.input' | ||
|
||
@InputType() | ||
export class CreateCivilClaimantFileInput extends CreateFileInput { | ||
@Allow() | ||
@Field(() => ID) | ||
readonly civilClaimantId!: string | ||
} |
12 changes: 12 additions & 0 deletions
12
apps/judicial-system/api/src/app/modules/file/dto/createDefendantFile.input.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,12 @@ | ||
import { Allow } from 'class-validator' | ||
|
||
import { Field, ID, InputType } from '@nestjs/graphql' | ||
|
||
import { CreateFileInput } from './createFile.input' | ||
|
||
@InputType() | ||
export class CreateDefendantFileInput extends CreateFileInput { | ||
@Allow() | ||
@Field(() => ID) | ||
readonly defendantId!: 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
44 changes: 44 additions & 0 deletions
44
apps/judicial-system/backend/migrations/20241122091513-update-case-file.js
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,44 @@ | ||
'use strict' | ||
|
||
module.exports = { | ||
up: (queryInterface, Sequelize) => { | ||
return queryInterface.sequelize.transaction(async (t) => { | ||
await queryInterface.addColumn( | ||
'case_file', | ||
'defendant_id', | ||
{ | ||
type: Sequelize.UUID, | ||
references: { | ||
model: 'defendant', | ||
key: 'id', | ||
}, | ||
allowNull: true, | ||
}, | ||
{ transaction: t }, | ||
) | ||
await queryInterface.addColumn( | ||
'case_file', | ||
'civil_claimant_id', | ||
{ | ||
type: Sequelize.UUID, | ||
references: { | ||
model: 'civil_claimant', | ||
key: 'id', | ||
}, | ||
allowNull: true, | ||
}, | ||
{ transaction: t }, | ||
) | ||
}) | ||
}, | ||
down: (queryInterface) => { | ||
return queryInterface.sequelize.transaction(async (t) => { | ||
await queryInterface.removeColumn('case_file', 'civil_claimant_id', { | ||
transaction: t, | ||
}) | ||
await queryInterface.removeColumn('case_file', 'defendant_id', { | ||
transaction: t, | ||
}) | ||
}) | ||
}, | ||
} |
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.