Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions typespec/einnsyn.arkiv.models.tsp
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,12 @@ namespace Enhet {
@extension("x-idPrefix", "enh")
model Enhet extends Base.Base {
@visibility(Lifecycle.Read) entity: "Enhet";

/**
* A URL-friendly unique slug for the resource.
*/
@pattern("^[a-z0-9\\-]+$") slug?: string;

navn: string;
navnNynorsk?: string;
navnEngelsk?: string;
Expand Down Expand Up @@ -233,7 +239,9 @@ namespace Journalpost {
legacyFoelgsakenReferanse?: string[];
administrativEnhet?: string;
administrativEnhetObjekt?: ExpandableField<Enhet.Enhet>;
@visibility(Lifecycle.Read, Lifecycle.Update) saksmappe?: ExpandableField<Saksmappe.Saksmappe>;

@visibility(Lifecycle.Read, Lifecycle.Update)
saksmappe?: ExpandableField<Saksmappe.Saksmappe>;
}
}

Expand Down Expand Up @@ -336,6 +344,11 @@ namespace Mappe {
* Mappe
*/
model Mappe extends ArkivBase.ArkivBase {
/**
* A URL-friendly unique slug for the resource.
*/
@pattern("^[a-z0-9\\-]+$") slug?: string;

/**
* The title of the Mappe, with sensitive information redacted.
*/
Expand All @@ -347,7 +360,6 @@ namespace Mappe {
offentligTittelSensitiv: string;

@maxLength(1000) beskrivelse?: string;

noekkelord?: string;

/**
Expand Down Expand Up @@ -477,6 +489,11 @@ namespace Registrering {
* Registrering
*/
model Registrering extends ArkivBase.ArkivBase {
/**
* A URL-friendly unique slug for the resource.
*/
@pattern("^[a-z0-9\\-]+$") slug?: string;

/**
* The title of the resource, with sensitive information redacted.
*/
Expand Down
Loading