@@ -3,7 +3,7 @@ import { http, HttpResponse } from 'msw';
33import { action } from 'storybook/actions' ;
44
55import { ApiPollingStatus } from '@navikt/fp-konstanter' ;
6- import { type Oppgave } from '@navikt/fp-los-felles' ;
6+ import { type Oppgave , type OppgaveMedStatus } from '@navikt/fp-los-felles' ;
77import { alleKodeverkLos , withQueryClient } from '@navikt/fp-storybook-utils' ;
88import type { NavAnsatt } from '@navikt/fp-types' ;
99
@@ -54,7 +54,6 @@ const OPPGAVER_TIL_BEHANDLING = [
5454 erTilSaksbehandling : true ,
5555 behandlingId : '12' ,
5656 andreKriterier : [ 'REVURDERING_INNTEKTSMELDING' ] ,
57- oppgaveBehandlingStatus : 'UNDER_ARBEID' ,
5857 } ,
5958 {
6059 id : 4 ,
@@ -72,7 +71,6 @@ const OPPGAVER_TIL_BEHANDLING = [
7271 erTilSaksbehandling : true ,
7372 behandlingId : '12' ,
7473 andreKriterier : [ ] ,
75- oppgaveBehandlingStatus : 'UNDER_ARBEID' ,
7674 } ,
7775 {
7876 id : 3 ,
@@ -90,7 +88,6 @@ const OPPGAVER_TIL_BEHANDLING = [
9088 erTilSaksbehandling : true ,
9189 behandlingId : '34' ,
9290 andreKriterier : [ ] ,
93- oppgaveBehandlingStatus : 'UNDER_ARBEID' ,
9491 } ,
9592] satisfies Oppgave [ ] ;
9693
@@ -118,7 +115,6 @@ const RESERVERTE_OPPGAVER = [
118115 erTilSaksbehandling : true ,
119116 behandlingId : '2' ,
120117 andreKriterier : [ 'REVURDERING_INNTEKTSMELDING' ] ,
121- oppgaveBehandlingStatus : 'UNDER_ARBEID' ,
122118 } ,
123119] satisfies Oppgave [ ] ;
124120
@@ -149,7 +145,7 @@ const BEHANDLEDE_OPPGAVER = [
149145 erReservert : false ,
150146 } ,
151147 oppgaveBehandlingStatus : 'UNDER_ARBEID' ,
152- } as Oppgave ,
148+ } as OppgaveMedStatus ,
153149 {
154150 id : 2 ,
155151 personnummer : '334342323' ,
@@ -159,7 +155,7 @@ const BEHANDLEDE_OPPGAVER = [
159155 erReservert : false ,
160156 } ,
161157 oppgaveBehandlingStatus : 'UNDER_ARBEID' ,
162- } as Oppgave ,
158+ } as OppgaveMedStatus ,
163159] ;
164160
165161const meta = {
@@ -194,7 +190,7 @@ const meta = {
194190 ) ,
195191 http . get ( 'https://www.test.com/api/result' , ( ) => HttpResponse . json ( OPPGAVER_TIL_BEHANDLING ) ) ,
196192 http . get ( LosUrl . HENT_RESERVASJONSSTATUS , ( ) => new HttpResponse ( null , { status : 200 } ) ) ,
197- http . get ( LosUrl . BEHANDLEDE_OPPGAVER , ( ) => HttpResponse . json ( BEHANDLEDE_OPPGAVER ) ) ,
193+ http . get ( LosUrl . TIDLIGERE_RESERVERTE , ( ) => HttpResponse . json ( BEHANDLEDE_OPPGAVER ) ) ,
198194 http . get ( LosUrl . FORLENG_OPPGAVERESERVASJON , ( ) => new HttpResponse ( null , { status : 200 } ) ) ,
199195 ] ,
200196 } ,
0 commit comments