Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add additional types to DialogActivity #1629

Merged
merged 3 commits into from
Jan 6, 2025
Merged
Show file tree
Hide file tree
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
18 changes: 15 additions & 3 deletions docs/schema/V1/swagger.verified.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,13 @@
"TransmissionOpened",
"PaymentMade",
"SignatureProvided",
"DialogOpened"
"DialogOpened",
"DialogDeleted",
"DialogRestored",
"SentToSigning",
"SentToFormFill",
"SentToSendIn",
"SentToPayment"
],
"type": "string",
"x-enumNames": [
Expand All @@ -93,7 +99,13 @@
"TransmissionOpened",
"PaymentMade",
"SignatureProvided",
"DialogOpened"
"DialogOpened",
"DialogDeleted",
"DialogRestored",
"SentToSigning",
"SentToFormFill",
"SentToSendIn",
"SentToPayment"
]
},
"DialogsEntitiesTransmissions_DialogTransmissionType": {
Expand Down Expand Up @@ -6970,4 +6982,4 @@
"url": "https://altinn-dev-api.azure-api.net/dialogporten"
}
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@ internal static class CloudEventTypes
nameof(DialogActivityType.Values.PaymentMade) => "dialogporten.dialog.activity.payment-made.v1",
nameof(DialogActivityType.Values.SignatureProvided) => "dialogporten.dialog.activity.signature-provided.v1",
nameof(DialogActivityType.Values.DialogOpened) => "dialogporten.dialog.activity.dialog-opened.v1",
nameof(DialogActivityType.Values.DialogDeleted) => "dialogporten.dialog.activity.dialog-deleted.v1",
nameof(DialogActivityType.Values.DialogRestored) => "dialogporten.dialog.activity.dialog-restored.v1",
nameof(DialogActivityType.Values.SentToSigning) => "dialogporten.dialog.activity.sent-to-signing.v1",
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",

_ => throw new ArgumentOutOfRangeException(nameof(eventName), eventName, null)
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ public DialogActivityType(Values id) : base(id) { }
public enum Values
{
/// <summary>
/// Refers to a dialog that has been created.
/// Indicates that a dialog has been created.
/// </summary>
DialogCreated = 1,

/// <summary>
/// Refers to a dialog that has been closed.
/// Indicates that a dialog has been closed.
/// </summary>
DialogClosed = 2,

Expand All @@ -25,7 +25,7 @@ public enum Values
Information = 3,

/// <summary>
/// Refers to a transmission that has been opened.
/// Indicates that a transmission has been opened.
/// </summary>
TransmissionOpened = 4,

Expand All @@ -40,8 +40,38 @@ public enum Values
SignatureProvided = 6,

/// <summary>
/// Refers to a dialog that has been opened.
/// Indicates that a dialog has been opened.
/// </summary>
DialogOpened = 7,

/// <summary>
/// Indicates that a dialog has been deleted.
/// </summary>
DialogDeleted = 8,

/// <summary>
/// Indicates that a dialog has been restored.
/// </summary>
DialogRestored = 9,

/// <summary>
/// Indicates that a dialog has been sent to signing.
/// </summary>
SentToSigning = 10,

/// <summary>
/// Indicates that a dialog has been sent to form fill.
/// </summary>
SentToFormFill = 11,

/// <summary>
/// Indicates that a dialog has been sent to send in.
/// </summary>
SentToSendIn = 12,

/// <summary>
/// Indicates that a dialog has been sent to payment.
/// </summary>
SentToPayment = 13,
}
}
Loading
Loading