| | | 1 | | namespace Elsa.Connections.Models; |
| | | 2 | | |
| | | 3 | | /// <summary>Durable metadata for one local disconnect or provider offboarding action. It never contains credential valu |
| | | 4 | | public sealed class ConnectionOffboardingOperation |
| | | 5 | | { |
| | 135 | 6 | | public string Id { get; set; } = default!; |
| | 70 | 7 | | public string TenantId { get; set; } = default!; |
| | 70 | 8 | | public string EnvironmentId { get; set; } = default!; |
| | 70 | 9 | | public string ConnectionId { get; set; } = default!; |
| | 44 | 10 | | public string ProviderId { get; set; } = default!; |
| | 44 | 11 | | public string ProviderAccountId { get; set; } = default!; |
| | 66 | 12 | | public ConnectionOffboardingOperationKind Kind { get; set; } |
| | 57 | 13 | | public string? GenerationId { get; set; } |
| | 89 | 14 | | public ConnectionOffboardingOperationStatus Status { get; set; } |
| | 0 | 15 | | public int AttemptCount { get; set; } |
| | 68 | 16 | | public long Fence { get; set; } |
| | 35 | 17 | | public DateTimeOffset CreatedAt { get; set; } |
| | 35 | 18 | | public DateTimeOffset UpdatedAt { get; set; } |
| | 1 | 19 | | public DateTimeOffset? NextAttemptAt { get; set; } |
| | 3 | 20 | | public DateTimeOffset? LeaseExpiresAt { get; set; } |
| | 0 | 21 | | public string? LastSafeErrorCode { get; set; } |
| | | 22 | | |
| | 0 | 23 | | public override string ToString() => $"ConnectionOffboardingOperation {{ Id = {Id}, Kind = {Kind}, Status = {Status} |
| | | 24 | | } |
| | | 25 | | |
| | | 26 | | public enum ConnectionOffboardingOperationKind |
| | | 27 | | { |
| | | 28 | | LocalDisconnect, |
| | | 29 | | TokenPairRevocation, |
| | | 30 | | InstallationUninstall |
| | | 31 | | } |
| | | 32 | | |
| | | 33 | | public enum ConnectionOffboardingOperationStatus |
| | | 34 | | { |
| | | 35 | | Pending, |
| | | 36 | | Claimed, |
| | | 37 | | ProviderCallStarted, |
| | | 38 | | RetryScheduled, |
| | | 39 | | UnknownOutcome, |
| | | 40 | | Completed, |
| | | 41 | | TerminalFailure |
| | | 42 | | } |