Skip to content

Commit

Permalink
chore: Add FormSubmitted and FormSaved to ActivityType (#1742)
Browse files Browse the repository at this point in the history
As part of #1138
  • Loading branch information
MagnusSandgren authored Jan 29, 2025
1 parent 166d53d commit 4b9bad0
Show file tree
Hide file tree
Showing 8 changed files with 2,284 additions and 5 deletions.
6 changes: 5 additions & 1 deletion docs/schema/V1/schema.verified.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ enum ActivityType {
SENT_TO_SEND_IN
"Indicates that a dialog has been sent to payment."
SENT_TO_PAYMENT
"Indicates that a form associated with the dialog has been submitted."
FORM_SUBMITTED
"Indicates that a form associated with the dialog has been saved."
FORM_SAVED
}

enum ActorType {
Expand Down Expand Up @@ -452,4 +456,4 @@ scalar DateTime @specifiedBy(url: "https:\/\/www.graphql-scalars.com\/date-time"

scalar URL @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc3986")

scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
scalar UUID @specifiedBy(url: "https:\/\/tools.ietf.org\/html\/rfc4122")
10 changes: 7 additions & 3 deletions docs/schema/V1/swagger.verified.json
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@
"SentToSigning",
"SentToFormFill",
"SentToSendIn",
"SentToPayment"
"SentToPayment",
"FormSubmitted",
"FormSaved"
],
"type": "string",
"x-enumNames": [
Expand All @@ -105,7 +107,9 @@
"SentToSigning",
"SentToFormFill",
"SentToSendIn",
"SentToPayment"
"SentToPayment",
"FormSubmitted",
"FormSaved"
]
},
"DialogsEntitiesTransmissions_DialogTransmissionType": {
Expand Down Expand Up @@ -7063,4 +7067,4 @@
"url": "https://altinn-dev-api.azure-api.net/dialogporten"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ internal static class CloudEventTypes
nameof(DialogActivityType.Values.SentToFormFill) => "dialogporten.dialog.activity.sent-to-form-fill.v1",
nameof(DialogActivityType.Values.SentToSendIn) => "dialogporten.dialog.activity.sent-to-send-in.v1",
nameof(DialogActivityType.Values.SentToPayment) => "dialogporten.dialog.activity.sent-to-payment.v1",
nameof(DialogActivityType.Values.FormSubmitted) => "dialogporten.dialog.activity.form-submitted.v1",
nameof(DialogActivityType.Values.FormSaved) => "dialogporten.dialog.activity.form-saved.v1",

_ => throw new ArgumentOutOfRangeException(nameof(eventName), eventName, null)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,5 +73,15 @@ public enum Values
/// Indicates that a dialog has been sent to payment.
/// </summary>
SentToPayment = 13,

/// <summary>
/// Indicates that a form associated with the dialog has been submitted.
/// </summary>
FormSubmitted = 14,

/// <summary>
/// Indicates that a form associated with the dialog has been saved.
/// </summary>
FormSaved = 15,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ public enum ActivityType

[GraphQLDescription("Indicates that a dialog has been sent to payment.")]
SentToPayment = 13,

[GraphQLDescription("Indicates that a form associated with the dialog has been submitted.")]
FormSubmitted = 14,

[GraphQLDescription("Indicates that a form associated with the dialog has been saved.")]
FormSaved = 15,
}

public enum DialogStatus
Expand Down
Loading

0 comments on commit 4b9bad0

Please sign in to comment.