-
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.
Merge pull request #420 from BaseAdresseNationale/fufeck_correct-open…
…api-dto Correct openapi dto
- Loading branch information
Showing
30 changed files
with
664 additions
and
98 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export const printMemoryUsage = () => { | ||
const formatMemoryUsage = (data) => | ||
`${Math.round((data / 1024 / 1024) * 100) / 100} MB`; | ||
|
||
const memoryData = process.memoryUsage(); | ||
|
||
const memoryUsage = { | ||
rss: `${formatMemoryUsage( | ||
memoryData.rss, | ||
)} -> Resident Set Size - total memory allocated for the process execution`, | ||
heapTotal: `${formatMemoryUsage( | ||
memoryData.heapTotal, | ||
)} -> total size of the allocated heap`, | ||
heapUsed: `${formatMemoryUsage( | ||
memoryData.heapUsed, | ||
)} -> actual memory used during the execution`, | ||
external: `${formatMemoryUsage(memoryData.external)} -> V8 external memory`, | ||
}; | ||
|
||
console.log(memoryUsage); | ||
}; |
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/api/src/modules/base_locale/sub_modules/commune/dto/commune.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,18 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class CommuneExtraDTO { | ||
@ApiProperty() | ||
isCOM: boolean; | ||
|
||
@ApiProperty() | ||
hasCadastre: boolean; | ||
|
||
@ApiProperty() | ||
hasOpenMapTiles: boolean; | ||
|
||
@ApiProperty() | ||
hasOrtho: boolean; | ||
|
||
@ApiProperty() | ||
hasPlanIGN: boolean; | ||
} |
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
9 changes: 9 additions & 0 deletions
9
apps/api/src/modules/base_locale/sub_modules/habilitation/dto/send-pin-code.response.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,9 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class SendPinCodeResponseDTO { | ||
@ApiProperty({ required: true, nullable: false }) | ||
code: number; | ||
|
||
@ApiProperty({ required: true, nullable: false }) | ||
message: string; | ||
} |
9 changes: 9 additions & 0 deletions
9
...pi/src/modules/base_locale/sub_modules/habilitation/dto/validate-pin-code.response.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,9 @@ | ||
import { ApiProperty } from '@nestjs/swagger'; | ||
|
||
export class ValidatePinCodeResponseDTO { | ||
@ApiProperty({ required: true, nullable: false }) | ||
validated: boolean; | ||
|
||
@ApiProperty({ required: false, nullable: true }) | ||
message?: 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
Oops, something went wrong.