Summary
Add `received` and `receivedOn` fields to `ApiDocumentGet` to support the EFZ document received checkbox on the volunteer profile.
Change
In `src/types/api/document.ts` (or wherever `ApiDocumentGet` is defined):
```ts
export interface ApiDocumentGet {
id: number;
type: DocumentType;
originalName: string;
url: string;
mimeType: string;
createdAt: Date;
received: boolean;
receivedOn: Date | null;
}
```
Also add patch body type
```ts
export interface ApiDocumentPatch {
received: boolean;
}
```
Depends on
- BE issue (adds the columns and PATCH endpoint)
Unblocks
- FE PR #351 (EFZ document received checkbox)
Summary
Add `received` and `receivedOn` fields to `ApiDocumentGet` to support the EFZ document received checkbox on the volunteer profile.
Change
In `src/types/api/document.ts` (or wherever `ApiDocumentGet` is defined):
```ts
export interface ApiDocumentGet {
id: number;
type: DocumentType;
originalName: string;
url: string;
mimeType: string;
createdAt: Date;
received: boolean;
receivedOn: Date | null;
}
```
Also add patch body type
```ts
export interface ApiDocumentPatch {
received: boolean;
}
```
Depends on
Unblocks