feature(Periodisk redovisning): Man kan nu bara göra periodisk redovisning ifall Gemensam planering är gjord (TV-808)

Squashed commit of the following:

commit b2f7ac185f7cbd1725627201e533bc3508b5c174
Author: Daniel Appelgren <daniel.appelgren@arbetsformedlingen.se>
Date:   Tue Oct 26 17:01:40 2021 +0200

    En Gemensam planering måste ha mottagits för att en Periodisk redovisning ska kunna skapas.
This commit is contained in:
Daniel Appelgren
2021-10-27 09:11:16 +02:00
parent 84af5924d3
commit 3971ea419c
4 changed files with 224 additions and 194 deletions

View File

@@ -30,6 +30,7 @@ export interface AvropResponse {
handledareCiamUserId: string;
handledare: string;
recievedTimestamp: Date;
hasGemensamPlanering: boolean;
}
export interface AvropApiResponse {

View File

@@ -26,6 +26,7 @@ export interface Avrop extends AvropCompact {
handledareCiamUserId: string;
handledare: string;
receivedTimestamp: Date;
hasGemensamPlanering: boolean;
}
export interface AvropCompactData {
@@ -52,6 +53,7 @@ export function mapAvropResponseToAvrop(data: AvropResponse): Avrop {
handledareCiamUserId,
handledare,
recievedTimestamp,
hasGemensamPlanering,
} = data;
return {
@@ -73,5 +75,6 @@ export function mapAvropResponseToAvrop(data: AvropResponse): Avrop {
handledareCiamUserId: handledareCiamUserId,
handledare,
receivedTimestamp: new Date(recievedTimestamp),
hasGemensamPlanering,
};
}