Skip to content

Commit

Permalink
En ny lokal kjenning fra json
Browse files Browse the repository at this point in the history
  • Loading branch information
Simenullern committed Aug 22, 2024
1 parent c6b0b4a commit 88bfcb5
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 4 deletions.
2 changes: 1 addition & 1 deletion frontend/src/external/backend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export const useBackend = () => useContext(BackendContext)
export const maskertRequestFactory = (personId: string, backend: Backend) => {
if (personId.length == 11) {
return backend.uuidForFnr(personId)
} else if (personId.length == 13 || personId.length == 2) {
} else if (personId.length == 13 || personId.length == 2 || personId==="lokal") {
return backend.uuidForAktørId(personId)
} else {
throw Error('Ikke gyldig fnr eller aktør-id')
Expand Down
16 changes: 14 additions & 2 deletions frontend/src/external/jsonBackend.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,39 @@
import {Backend} from './backend'
import {MaskertDto, MeldingDto, PersonDto} from '../state/dto'
import {AktivitetsloggDto, MaskertDto, MeldingDto, PersonDto} from '../state/dto'
import {jsonHendelse} from './jsonHendelse'
import {jsonPerson} from './jsonPerson1'
import {jsonPerson2} from './jsonPerson2'
import json from "./jsonPersonLokalFraSpleis.json"
import {lagfinnesIkkeFeil} from './feil'

const person1 = "0c48a7da-dab6-4a6c-b116-b24eec896933"
const person2 = "ac427542-11e0-4f84-bb7e-1343b6103fa5"
const personLokal = "fde700bb-997c-43e2-a7d7-ec60647421c2"

export let hardCodedBackend: Backend = {
uuidForFnr(fnr: string): Promise<MaskertDto> {
return Promise.resolve({ id: person1 })
},
uuidForAktørId(aktorid: string): Promise<MaskertDto> {
if (aktorid === '43') return Promise.resolve({ id: person2 })
if (aktorid === '42') return Promise.resolve({ id: person1 })
if (aktorid === 'lokal') return Promise.resolve({ id: personLokal })
else return Promise.reject(lagfinnesIkkeFeil())
},
personForUUID(uuid: string): Promise<PersonDto> {
if (uuid === person2) return Promise.resolve(jsonPerson2)
if (uuid === person1) return Promise.resolve(jsonPerson)
if (uuid === personLokal) {
try {
return Promise.resolve(json)
} catch (e) {
// Catch error in case file doesn't exist or isn't valid JSON
throw e
}
};
return Promise.reject(lagfinnesIkkeFeil())
},
hendelseForRef: function (_: string): Promise<MeldingDto> {
return Promise.resolve(jsonHendelse)
},
}
}
1 change: 1 addition & 0 deletions frontend/src/external/jsonPersonLokalFraSpleis.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"aktørId":"42","fødselsnummer":"12029240045","fødselsdato":"1992-02-12","arbeidsgivere":[{"organisasjonsnummer":"987654321","id":"ace24176-766a-4aa5-b67b-1c51e9446a5d","inntektshistorikk":[{"id":"f412815a-eb46-4fb0-baed-c081c27b28a4","dato":"2018-01-01","hendelseId":"849bac5d-6b32-4957-ab18-e3efd1af37de","beløp":{"årlig":372000.0,"månedligDouble":31000.0,"dagligDouble":1430.7692307692307,"dagligInt":1430},"tidsstempel":"2024-08-22T15:47:32.101226"}],"sykdomshistorikk":[{"tidsstempel":"2024-08-22T15:47:32.191899","id":"88385483-5b34-48ff-b8c9-4fa833a93b39","hendelseId":"716c392b-3b1c-49b1-b131-2dbbfe19760e","hendelseSykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"716c392b-3b1c-49b1-b131-2dbbfe19760e","tidsstempel":"2018-02-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-02-01","tom":"2018-02-28","dato":null}],"periode":{"fom":"2018-02-01","tom":"2018-02-28"},"låstePerioder":[]},"beregnetSykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"61ad6b21-c5ee-4110-8091-7410b4176432","tidsstempel":"2018-01-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-31","dato":null},{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"716c392b-3b1c-49b1-b131-2dbbfe19760e","tidsstempel":"2018-02-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-02-01","tom":"2018-02-28","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-02-28"},"låstePerioder":[{"fom":"2018-01-01","tom":"2018-01-31"}]}},{"tidsstempel":"2024-08-22T15:47:32.098741","id":"7a2524a9-4ccc-4ff4-9a44-2c55cb153f9d","hendelseId":"849bac5d-6b32-4957-ab18-e3efd1af37de","hendelseSykdomstidslinje":{"dager":[{"type":"ARBEIDSGIVERDAG","kilde":{"type":"Inntektsmelding","id":"849bac5d-6b32-4957-ab18-e3efd1af37de","tidsstempel":"2024-08-22T15:47:32.095408"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-16","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-01-16"},"låstePerioder":[]},"beregnetSykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"61ad6b21-c5ee-4110-8091-7410b4176432","tidsstempel":"2018-01-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-31","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-01-31"},"låstePerioder":[{"fom":"2018-01-01","tom":"2018-01-31"}]}},{"tidsstempel":"2024-08-22T15:47:32.054799","id":"fd110b4a-9459-46fe-82b6-143f833a1f17","hendelseId":"61ad6b21-c5ee-4110-8091-7410b4176432","hendelseSykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"61ad6b21-c5ee-4110-8091-7410b4176432","tidsstempel":"2018-01-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-31","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-01-31"},"låstePerioder":[]},"beregnetSykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"61ad6b21-c5ee-4110-8091-7410b4176432","tidsstempel":"2018-01-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-31","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-01-31"},"låstePerioder":[]}}],"sykmeldingsperioder":[],"vedtaksperioder":[{"id":"b4b64502-1b6f-481e-8914-a9548cba9391","tilstand":"AVSLUTTET","skjæringstidspunkt":"2018-01-01","fom":"2018-01-01","tom":"2018-01-31","sykmeldingFom":"2018-01-01","sykmeldingTom":"2018-01-31","behandlinger":[{"id":"545ec74e-e9da-4fb3-acd9-ac04887b88f7","tilstand":"VEDTAK_IVERKSATT","vedtakFattet":"2024-08-22T15:47:32.175213","avsluttet":"2024-08-22T15:47:32.183974","kilde":{"meldingsreferanseId":"61ad6b21-c5ee-4110-8091-7410b4176432","innsendt":"2018-01-31T00:00:00","registrert":"2024-08-22T15:47:31.961568","avsender":"SYKMELDT"},"endringer":[{"id":"a0cef22d-7d77-4e64-a07a-d298ce2fd141","tidsstempel":"2024-08-22T15:47:32.051837","sykmeldingsperiodeFom":"2018-01-01","sykmeldingsperiodeTom":"2018-01-31","fom":"2018-01-01","tom":"2018-01-31","utbetalingId":null,"skjæringstidspunkt":"-999999999-01-01","utbetalingstatus":null,"vilkårsgrunnlagId":null,"sykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"61ad6b21-c5ee-4110-8091-7410b4176432","tidsstempel":"2018-01-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-31","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-01-31"},"låstePerioder":[]},"dokumentsporing":{"dokumentId":"61ad6b21-c5ee-4110-8091-7410b4176432","dokumenttype":"Søknad"},"arbeidsgiverperiode":[]},{"id":"7931045d-5fff-45ed-9a1b-4b2d20316329","tidsstempel":"2024-08-22T15:47:32.062018","sykmeldingsperiodeFom":"2018-01-01","sykmeldingsperiodeTom":"2018-01-31","fom":"2018-01-01","tom":"2018-01-31","utbetalingId":null,"skjæringstidspunkt":"2018-01-01","utbetalingstatus":null,"vilkårsgrunnlagId":null,"sykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"61ad6b21-c5ee-4110-8091-7410b4176432","tidsstempel":"2018-01-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-31","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-01-31"},"låstePerioder":[]},"dokumentsporing":{"dokumentId":"61ad6b21-c5ee-4110-8091-7410b4176432","dokumenttype":"Søknad"},"arbeidsgiverperiode":[{"fom":"2018-01-01","tom":"2018-01-16"}]},{"id":"e2296131-7485-45fd-8b6d-11f7425716ba","tidsstempel":"2024-08-22T15:47:32.09946","sykmeldingsperiodeFom":"2018-01-01","sykmeldingsperiodeTom":"2018-01-31","fom":"2018-01-01","tom":"2018-01-31","utbetalingId":null,"skjæringstidspunkt":"2018-01-01","utbetalingstatus":null,"vilkårsgrunnlagId":null,"sykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"61ad6b21-c5ee-4110-8091-7410b4176432","tidsstempel":"2018-01-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-31","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-01-31"},"låstePerioder":[]},"dokumentsporing":{"dokumentId":"849bac5d-6b32-4957-ab18-e3efd1af37de","dokumenttype":"InntektsmeldingDager"},"arbeidsgiverperiode":[{"fom":"2018-01-01","tom":"2018-01-16"}]},{"id":"401eba7d-2dd5-4490-bf79-9fed80ed52ba","tidsstempel":"2024-08-22T15:47:32.105021","sykmeldingsperiodeFom":"2018-01-01","sykmeldingsperiodeTom":"2018-01-31","fom":"2018-01-01","tom":"2018-01-31","utbetalingId":null,"skjæringstidspunkt":"2018-01-01","utbetalingstatus":null,"vilkårsgrunnlagId":null,"sykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"61ad6b21-c5ee-4110-8091-7410b4176432","tidsstempel":"2018-01-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-31","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-01-31"},"låstePerioder":[]},"dokumentsporing":{"dokumentId":"849bac5d-6b32-4957-ab18-e3efd1af37de","dokumenttype":"InntektsmeldingInntekt"},"arbeidsgiverperiode":[{"fom":"2018-01-01","tom":"2018-01-16"}]},{"id":"7046767a-1942-4049-a881-2641ba123c62","tidsstempel":"2024-08-22T15:47:32.158454","sykmeldingsperiodeFom":"2018-01-01","sykmeldingsperiodeTom":"2018-01-31","fom":"2018-01-01","tom":"2018-01-31","utbetalingId":"13fb7181-ecac-4611-87b1-614d9f7b9a56","skjæringstidspunkt":"2018-01-01","utbetalingstatus":"UTBETALT","vilkårsgrunnlagId":"9931cb75-ff5a-4515-baba-68816eb01ea4","sykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"61ad6b21-c5ee-4110-8091-7410b4176432","tidsstempel":"2018-01-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-01-01","tom":"2018-01-31","dato":null}],"periode":{"fom":"2018-01-01","tom":"2018-01-31"},"låstePerioder":[]},"dokumentsporing":{"dokumentId":"849bac5d-6b32-4957-ab18-e3efd1af37de","dokumenttype":"InntektsmeldingInntekt"},"arbeidsgiverperiode":[{"fom":"2018-01-01","tom":"2018-01-16"}]}]}],"venteårsak":null,"opprettet":"2024-08-22T15:47:32.049773","oppdatert":"2024-08-22T15:47:32.18521"},{"id":"d1b442d4-dcf4-4f2c-b0c5-feff1f3c1d66","tilstand":"AVVENTER_HISTORIKK","skjæringstidspunkt":"2018-01-01","fom":"2018-02-01","tom":"2018-02-28","sykmeldingFom":"2018-02-01","sykmeldingTom":"2018-02-28","behandlinger":[{"id":"ce50891f-ffeb-4f9d-85f9-257cc9e35a2d","tilstand":"UBEREGNET","vedtakFattet":null,"avsluttet":null,"kilde":{"meldingsreferanseId":"716c392b-3b1c-49b1-b131-2dbbfe19760e","innsendt":"2018-02-28T00:00:00","registrert":"2024-08-22T15:47:32.191026","avsender":"SYKMELDT"},"endringer":[{"id":"fecea2e6-2734-4e3b-8294-5c914c31ee2d","tidsstempel":"2024-08-22T15:47:32.191331","sykmeldingsperiodeFom":"2018-02-01","sykmeldingsperiodeTom":"2018-02-28","fom":"2018-02-01","tom":"2018-02-28","utbetalingId":null,"skjæringstidspunkt":"-999999999-01-01","utbetalingstatus":null,"vilkårsgrunnlagId":null,"sykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"716c392b-3b1c-49b1-b131-2dbbfe19760e","tidsstempel":"2018-02-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-02-01","tom":"2018-02-28","dato":null}],"periode":{"fom":"2018-02-01","tom":"2018-02-28"},"låstePerioder":[]},"dokumentsporing":{"dokumentId":"716c392b-3b1c-49b1-b131-2dbbfe19760e","dokumenttype":"Søknad"},"arbeidsgiverperiode":[]},{"id":"47d9aeca-5a54-47e6-a857-fd7844525e83","tidsstempel":"2024-08-22T15:47:32.192442","sykmeldingsperiodeFom":"2018-02-01","sykmeldingsperiodeTom":"2018-02-28","fom":"2018-02-01","tom":"2018-02-28","utbetalingId":null,"skjæringstidspunkt":"2018-01-01","utbetalingstatus":null,"vilkårsgrunnlagId":null,"sykdomstidslinje":{"dager":[{"type":"SYKEDAG","kilde":{"type":"Søknad","id":"716c392b-3b1c-49b1-b131-2dbbfe19760e","tidsstempel":"2018-02-01T00:00:00"},"grad":100.0,"other":null,"melding":null,"fom":"2018-02-01","tom":"2018-02-28","dato":null}],"periode":{"fom":"2018-02-01","tom":"2018-02-28"},"låstePerioder":[]},"dokumentsporing":{"dokumentId":"716c392b-3b1c-49b1-b131-2dbbfe19760e","dokumenttype":"Søknad"},"arbeidsgiverperiode":[{"fom":"2018-01-01","tom":"2018-01-16"}]}]}],"venteårsak":{"ventetSiden":"2024-08-22T15:47:32.193419","venterTil":"+999999999-12-31T23:59:59.999999999","venterPå":{"vedtaksperiodeId":"d1b442d4-dcf4-4f2c-b0c5-feff1f3c1d66","organisasjonsnummer":"987654321","venteårsak":{"hva":"BEREGNING","hvorfor":null}}},"opprettet":"2024-08-22T15:47:32.191295","oppdatert":"2024-08-22T15:47:32.193419"}],"forkastede":[],"utbetalinger":[{"id":"13fb7181-ecac-4611-87b1-614d9f7b9a56","korrelasjonsId":"7823a8c3-e87b-407e-8057-8f6255e8ccd2","fom":"2018-01-01","tom":"2018-01-31","annulleringer":[],"utbetalingstidslinje":{"dager":[{"type":"ArbeidsgiverperiodeDag","aktuellDagsinntekt":1430.7692307692307,"beregningsgrunnlag":1430.7692307692307,"dekningsgrunnlag":1430.7692307692307,"grunnbeløpgrense":2160.7846153846153,"begrunnelser":null,"grad":100.0,"totalGrad":100.0,"arbeidsgiverRefusjonsbeløp":1430.7692307692307,"arbeidsgiverbeløp":0.0,"personbeløp":0.0,"er6GBegrenset":false,"dato":null,"fom":"2018-01-01","tom":"2018-01-16"},{"type":"NavDag","aktuellDagsinntekt":1430.7692307692307,"beregningsgrunnlag":1430.7692307692307,"dekningsgrunnlag":1430.7692307692307,"grunnbeløpgrense":2160.7846153846153,"begrunnelser":null,"grad":100.0,"totalGrad":100.0,"arbeidsgiverRefusjonsbeløp":1430.7692307692307,"arbeidsgiverbeløp":1431.0,"personbeløp":0.0,"er6GBegrenset":false,"dato":null,"fom":"2018-01-17","tom":"2018-01-19"},{"type":"NavHelgDag","aktuellDagsinntekt":1430.7692307692307,"beregningsgrunnlag":1430.7692307692307,"dekningsgrunnlag":1430.7692307692307,"grunnbeløpgrense":2160.7846153846153,"begrunnelser":null,"grad":100.0,"totalGrad":100.0,"arbeidsgiverRefusjonsbeløp":1430.7692307692307,"arbeidsgiverbeløp":0.0,"personbeløp":0.0,"er6GBegrenset":false,"dato":null,"fom":"2018-01-20","tom":"2018-01-21"},{"type":"NavDag","aktuellDagsinntekt":1430.7692307692307,"beregningsgrunnlag":1430.7692307692307,"dekningsgrunnlag":1430.7692307692307,"grunnbeløpgrense":2160.7846153846153,"begrunnelser":null,"grad":100.0,"totalGrad":100.0,"arbeidsgiverRefusjonsbeløp":1430.7692307692307,"arbeidsgiverbeløp":1431.0,"personbeløp":0.0,"er6GBegrenset":false,"dato":null,"fom":"2018-01-22","tom":"2018-01-26"},{"type":"NavHelgDag","aktuellDagsinntekt":1430.7692307692307,"beregningsgrunnlag":1430.7692307692307,"dekningsgrunnlag":1430.7692307692307,"grunnbeløpgrense":2160.7846153846153,"begrunnelser":null,"grad":100.0,"totalGrad":100.0,"arbeidsgiverRefusjonsbeløp":1430.7692307692307,"arbeidsgiverbeløp":0.0,"personbeløp":0.0,"er6GBegrenset":false,"dato":null,"fom":"2018-01-27","tom":"2018-01-28"},{"type":"NavDag","aktuellDagsinntekt":1430.7692307692307,"beregningsgrunnlag":1430.7692307692307,"dekningsgrunnlag":1430.7692307692307,"grunnbeløpgrense":2160.7846153846153,"begrunnelser":null,"grad":100.0,"totalGrad":100.0,"arbeidsgiverRefusjonsbeløp":1430.7692307692307,"arbeidsgiverbeløp":1431.0,"personbeløp":0.0,"er6GBegrenset":false,"dato":null,"fom":"2018-01-29","tom":"2018-01-31"}]},"arbeidsgiverOppdrag":{"mottaker":"987654321","fagområde":"SPREF","linjer":[{"fom":"2018-01-17","tom":"2018-01-31","satstype":"DAG","sats":1431,"grad":100,"stønadsdager":11,"totalbeløp":15741,"refFagsystemId":null,"delytelseId":1,"refDelytelseId":null,"endringskode":"NY","klassekode":"SPREFAG-IOP","datoStatusFom":null,"statuskode":null}],"fagsystemId":"SP7Q4EF3G5EHLEJRUTXBPY2NLY","endringskode":"NY","tidsstempel":"2024-08-22T15:47:32.156938","nettoBeløp":15741,"stønadsdager":11,"totalbeløp":15741,"avstemmingsnøkkel":123456,"status":"AKSEPTERT","overføringstidspunkt":"2024-08-22T15:47:32.181561","erSimulert":true,"simuleringsResultat":{"totalbeløp":2000,"perioder":[{"fom":"2018-01-17","tom":"2018-01-20","utbetalinger":[{"forfallsdato":"2018-01-21","utbetalesTil":{"id":"987654321","navn":"Org Orgesen AS"},"feilkonto":false,"detaljer":[{"fom":"2018-01-17","tom":"2018-01-20","konto":"81549300","beløp":2000,"klassekode":{"kode":"SPREFAG-IOP","beskrivelse":"Sykepenger, Refusjon arbeidsgiver"},"uføregrad":100,"utbetalingstype":"YTEL","tilbakeføring":false,"sats":{"sats":1000.0,"antall":2,"type":"DAG"},"refunderesOrgnummer":"987654321"}]}]}]}},"personOppdrag":{"mottaker":"12029240045","fagområde":"SP","linjer":[],"fagsystemId":"VAJ3FZKQIZBIBLKTRBWV6I74NA","endringskode":"NY","tidsstempel":"2024-08-22T15:47:32.156966","nettoBeløp":0,"stønadsdager":0,"totalbeløp":0,"avstemmingsnøkkel":null,"status":null,"overføringstidspunkt":null,"erSimulert":false,"simuleringsResultat":null},"tidsstempel":"2024-08-22T15:47:32.157407","type":"UTBETALING","status":"UTBETALT","maksdato":"2018-12-28","forbrukteSykedager":11,"gjenståendeSykedager":237,"vurdering":{"godkjent":true,"ident":"Ola Nordmann","epost":"ola.nordmann@nav.no","tidspunkt":"2024-08-22T15:47:32.175213","automatiskBehandling":false},"overføringstidspunkt":"2024-08-22T15:47:32.181561","avstemmingsnøkkel":123456,"avsluttet":"2024-08-22T15:47:32.183772","oppdatert":"2024-08-22T15:47:32.182901"}],"feriepengeutbetalinger":[],"refusjonshistorikk":[{"meldingsreferanseId":"849bac5d-6b32-4957-ab18-e3efd1af37de","førsteFraværsdag":"2018-01-01","arbeidsgiverperioder":[{"fom":"2018-01-01","tom":"2018-01-16"}],"beløp":{"årlig":372000.0,"månedligDouble":31000.0,"dagligDouble":1430.7692307692307,"dagligInt":1430},"sisteRefusjonsdag":null,"endringerIRefusjon":[],"tidsstempel":"2024-08-22T15:47:32.101649"}]}],"opprettet":"2024-08-22T15:47:31.917072","infotrygdhistorikk":[{"id":"a90505f3-5017-4edb-a4f4-8935d5a88b40","tidsstempel":"2024-08-22T15:47:32.077609","hendelseId":"fde59a9a-d564-4dc3-b475-9e5d82e3ec8f","ferieperioder":[],"arbeidsgiverutbetalingsperioder":[],"personutbetalingsperioder":[],"inntekter":[],"arbeidskategorikoder":{},"oppdatert":"2024-08-22T15:47:32.075145"}],"vilkårsgrunnlagHistorikk":[{"id":"4e7cf001-f1a0-44ee-a848-c1fd65500476","opprettet":"2024-08-22T15:47:32.126751","vilkårsgrunnlag":[{"skjæringstidspunkt":"2018-01-01","type":"Vilkårsprøving","sykepengegrunnlag":{"grunnbeløp":561804.0,"arbeidsgiverInntektsopplysninger":[{"orgnummer":"987654321","fom":"2018-01-01","tom":"+999999999-12-31","inntektsopplysning":{"id":"f412815a-eb46-4fb0-baed-c081c27b28a4","dato":"2018-01-01","hendelseId":"849bac5d-6b32-4957-ab18-e3efd1af37de","beløp":{"årlig":372000.0,"månedligDouble":31000.0,"dagligDouble":1430.7692307692307,"dagligInt":1430},"kilde":"INNTEKTSMELDING","forklaring":null,"subsumsjon":null,"tidsstempel":"2024-08-22T15:47:32.101226","overstyrtInntektId":null,"skatteopplysninger":null},"refusjonsopplysninger":[{"meldingsreferanseId":"849bac5d-6b32-4957-ab18-e3efd1af37de","fom":"2018-01-01","tom":null,"beløp":{"årlig":372000.0,"månedligDouble":31000.0,"dagligDouble":1430.7692307692307,"dagligInt":1430}}]}],"sammenligningsgrunnlag":{"sammenligningsgrunnlag":0.0,"arbeidsgiverInntektsopplysninger":[]},"deaktiverteArbeidsforhold":[],"vurdertInfotrygd":false,"totalOmregnetÅrsinntekt":{"beløp":372000.0},"beregningsgrunnlag":{"beløp":372000.0},"er6GBegrenset":false,"forhøyetInntektskrav":false,"minsteinntekt":{"beløp":46817.0},"oppfyllerMinsteinntektskrav":true},"opptjening":{"opptjeningFom":"1970-01-01","opptjeningTom":"2017-12-31","arbeidsforhold":[{"orgnummer":"987654321","ansattPerioder":[{"ansattFom":"1970-01-01","ansattTom":null,"deaktivert":false}]}]},"medlemskapstatus":"JA","vurdertOk":true,"meldingsreferanseId":"6ac1ff04-45c8-4fc8-874c-ef6b839923a6","vilkårsgrunnlagId":"9931cb75-ff5a-4515-baba-68816eb01ea4"}]}],"minimumSykdomsgradVurdering":[],"dødsdato":null}
2 changes: 1 addition & 1 deletion frontend/src/state/dto.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ export type PersonDto = {
aktørId: string
fødselsnummer: string
opprettet: string
aktivitetslogg: AktivitetsloggDto
aktivitetslogg?: AktivitetsloggDto
aktivitetsloggV2?: AktivitetsloggV2Dto
infotrygdhistorikk: InfotrygdhistorikkDto[]
[x: string]: any
Expand Down

0 comments on commit 88bfcb5

Please sign in to comment.