Skip to content

Commit

Permalink
feat: Rename DialogStatus enum values (#915)
Browse files Browse the repository at this point in the history
  • Loading branch information
oskogstad authored Jul 23, 2024
1 parent 11b761c commit 5aea32b
Show file tree
Hide file tree
Showing 7 changed files with 1,482 additions and 36 deletions.
16 changes: 8 additions & 8 deletions docs/schema/V1/schema.verified.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -255,17 +255,17 @@ enum ContentType {
}

enum DialogStatus {
"New"
"The dialogue is considered new. Typically used for simple messages that do not require any interaction, or as an initial step for dialogues. This is the default."
NEW
"In progress. General status used for dialog services where further user input is expected."
"Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing."
IN_PROGRESS
"Waiting for feedback from the service provider"
WAITING
"The dialog is in a state where it is waiting for signing. Typically the last step after all completion is carried out and validated."
"Equivalent to \"InProgress\", but will be used by the workspace\/frontend for display purposes."
SIGNING
"The dialog was cancelled. This typically removes the dialog from normal GUI views."
CANCELLED
"The dialog was completed. This typically moves the dialog to a GUI archive or similar."
"For processing by the service owner. In a serial process, this is used after a submission is made."
PROCESSING
"Used to indicate that the dialogue is in progress\/under work, but is in a state where the user must do something - for example, correct an error, or other conditions that hinder further processing."
REQUIRES_ATTENTION
"The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar."
COMPLETED
}

Expand Down
8 changes: 4 additions & 4 deletions docs/schema/V1/swagger.verified.json
Original file line number Diff line number Diff line change
Expand Up @@ -1992,17 +1992,17 @@
"x-enumNames": [
"New",
"InProgress",
"Waiting",
"Signing",
"Cancelled",
"Processing",
"RequiresAttention",
"Completed"
],
"enum": [
"New",
"InProgress",
"Waiting",
"Signing",
"Cancelled",
"Processing",
"RequiresAttention",
"Completed"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,33 @@ public DialogStatus(Values id) : base(id) { }
public enum Values
{
/// <summary>
/// Dialogen er å regne som ny. Brukes typisk for enkle meldinger som ikke krever noe
/// interaksjon, eller som et initielt steg for dialoger. Dette er default.
/// The dialogue is considered new. Typically used for simple messages that do not require any interaction,
/// or as an initial step for dialogues. This is the default.
/// </summary>
New = 1,

/// <summary>
/// Under arbeid. Generell status som brukes for dialogtjenester der ytterligere bruker-input er
/// forventet.
/// Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing.
/// </summary>
InProgress = 2,

/// <summary>
/// Venter på tilbakemelding fra tjenesteeier
/// Equivalent to "InProgress", but will be used by the workspace/frontend for display purposes.
/// </summary>
Waiting = 3,
Signing = 3,

/// <summary>
/// Dialogen er i en tilstand hvor den venter på signering. Typisk siste steg etter at all
/// utfylling er gjennomført og validert.
/// For processing by the service owner. In a serial process, this is used after a submission is made.
/// </summary>
Signing = 4,
Processing = 4,

/// <summary>
/// Dialogen ble avbrutt. Dette gjør at dialogen typisk fjernes fra normale GUI-visninger.
/// Used to indicate that the dialogue is in progress/under work, but is in a state where the user must do something - for example, correct an error, or other conditions that hinder further processing.
/// </summary>
Cancelled = 5,
RequiresAttention = 5,

/// <summary>
/// Dialigen ble fullført. Dette gjør at dialogen typisk flyttes til et GUI-arkiv eller lignende.
/// The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar.
/// </summary>
Completed = 6
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,21 @@ public enum ActivityType

public enum DialogStatus
{
[GraphQLDescription("New")]
[GraphQLDescription("The dialogue is considered new. Typically used for simple messages that do not require any interaction, or as an initial step for dialogues. This is the default.")]
New = 1,

[GraphQLDescription("In progress. General status used for dialog services where further user input is expected.")]
[GraphQLDescription("Started. In a serial process, this is used to indicate that, for example, a form filling is ongoing.")]
InProgress = 2,

[GraphQLDescription("Waiting for feedback from the service provider")]
Waiting = 3,
[GraphQLDescription("Equivalent to \"InProgress\", but will be used by the workspace/frontend for display purposes.")]
Signing = 3,

[GraphQLDescription("The dialog is in a state where it is waiting for signing. Typically the last step after all completion is carried out and validated.")]
Signing = 4,
[GraphQLDescription("For processing by the service owner. In a serial process, this is used after a submission is made.")]
Processing = 4,

[GraphQLDescription("The dialog was cancelled. This typically removes the dialog from normal GUI views.")]
Cancelled = 5,
[GraphQLDescription("Used to indicate that the dialogue is in progress/under work, but is in a state where the user must do something - for example, correct an error, or other conditions that hinder further processing.")]
RequiresAttention = 5,

[GraphQLDescription("The dialog was completed. This typically moves the dialog to a GUI archive or similar.")]
[GraphQLDescription("The dialogue was completed. This typically means that the dialogue is moved to a GUI archive or similar.")]
Completed = 6
}
Loading

0 comments on commit 5aea32b

Please sign in to comment.