-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Openapi enum naming og undefined istadenfor null (#7015)
* Fikser breaking changes ved endring av k9-sak openapi json generering. k9-sak openapi spesifikasjon blir generert med betre enum type namn og property namn som stemmer med java kjeldekoden. Så skriver om all bruk av disse til å stemme med nye definisjoner. Endrer også til å returnere undefined istadenfor null for properties som ikkje er "required", slik at ein slepp å sjekke både for null og undefined. Endrer derfor frå null til undefined i der det trengs (testdata). * Oppdater generert typescript kode til nye enum definisjoner.
- Loading branch information
Showing
62 changed files
with
146 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,8 @@ | ||
import { type definisjon as generatedAksjonspunktCodeEnumUnion } from '../generated'; | ||
import { | ||
type AksjonspunktDtoDefinisjon as generatedAksjonspunktCodeEnumUnion, | ||
AksjonspunktDtoDefinisjon, | ||
} from '../generated'; | ||
|
||
export type AksjonspunktCodes = generatedAksjonspunktCodeEnumUnion; | ||
|
||
export const aksjonspunktCodes = AksjonspunktDtoDefinisjon; |
15 changes: 3 additions & 12 deletions
15
packages/v2/backend/src/k9sak/kodeverk/AksjonspunktStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,5 @@ | ||
import { | ||
type status as GeneratedAksjonspunktStatusEnumUnion, | ||
status as generatedAksjonspunktStatus, | ||
} from '../generated'; | ||
import { type AksjonspunktDtoStatus as typeUnion, AksjonspunktDtoStatus as enumObj } from '../generated'; | ||
|
||
export type AksjonspunktStatus = GeneratedAksjonspunktStatusEnumUnion; | ||
export type AksjonspunktStatus = typeUnion; | ||
|
||
export type AksjonspunktStatusName = 'AVBRUTT' | 'OPPRETTET' | 'UTFORT'; | ||
|
||
export const aksjonspunktStatus: Readonly<Record<AksjonspunktStatusName, AksjonspunktStatus>> = { | ||
OPPRETTET: generatedAksjonspunktStatus.OPPR, | ||
UTFORT: generatedAksjonspunktStatus.UTFO, | ||
AVBRUTT: generatedAksjonspunktStatus.AVBR, | ||
}; | ||
export const aksjonspunktStatus = enumObj; |
21 changes: 4 additions & 17 deletions
21
packages/v2/backend/src/k9sak/kodeverk/BehandlingStatus.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
import { | ||
behandlingStatus as generatedBehandlingStatus, | ||
type behandlingStatus as generatedBehandlingStatusType, | ||
} from '@navikt/k9-sak-typescript-client'; | ||
BehandlingDtoStatus as generatedBehandlingStatus, | ||
type BehandlingDtoStatus as generatedBehandlingStatusType, | ||
} from '../generated'; | ||
|
||
export type BehandlingStatus = generatedBehandlingStatusType; | ||
|
||
export type BehandlingStatusName = | ||
| 'OPPRETTET' | ||
| 'BEHANDLING_UTREDES' | ||
| 'AVSLUTTET' | ||
| 'IVERKSETTER_VEDTAK' | ||
| 'FATTER_VEDTAK'; | ||
|
||
export const BehandlingStatus: Readonly<Record<BehandlingStatusName, BehandlingStatus>> = { | ||
OPPRETTET: generatedBehandlingStatus.OPPRE, | ||
BEHANDLING_UTREDES: generatedBehandlingStatus.UTRED, | ||
AVSLUTTET: generatedBehandlingStatus.AVSLU, | ||
IVERKSETTER_VEDTAK: generatedBehandlingStatus.IVED, | ||
FATTER_VEDTAK: generatedBehandlingStatus.FVED, | ||
}; | ||
export const BehandlingStatus = generatedBehandlingStatus; |
Oops, something went wrong.