Skip to content

Add received and receivedOn to ApiDocumentGet #92

@nadavosa

Description

@nadavosa

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions