Skip to content

Commit

Permalink
feat: Add additional types to DialogActivity (#1629)
Browse files Browse the repository at this point in the history
<!--- Provide a general summary of your changes in the Title above -->

## Description

<!--- Describe your changes in detail -->

## Related Issue(s)

- #1588 

## Verification

- [x] **Your** code builds clean without any errors or warnings
- [x] Manual testing done (required)
- [ ] Relevant automated test added (if you find this hard, leave it and
we'll help out)

## Documentation

- [ ] Documentation is updated (either in `docs`-directory, Altinnpedia
or a separate linked PR in
[altinn-studio-docs.](https://github.com/Altinn/altinn-studio-docs), if
applicable)
  • Loading branch information
oskogstad authored Jan 6, 2025
1 parent 1486da6 commit feb1347
Show file tree
Hide file tree
Showing 7 changed files with 2,358 additions and 9 deletions.
16 changes: 14 additions & 2 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
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

0 comments on commit feb1347

Please sign in to comment.