Skip to content

Commit

Permalink
Merge pull request #25 from bsandmann/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ndigirigijohn authored Feb 12, 2025
2 parents 44c5253 + fc93af2 commit 350c1e0
Show file tree
Hide file tree
Showing 22 changed files with 2,019 additions and 307 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ public enum ETriggerType
HttpRequest,
RecurringTimer,
WalletInteraction,
ManualTrigger
ManualTrigger,
Form
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ public enum ParameterType
{
String,
Number,
Boolean
Boolean,
Date
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using System.Text.Json.Serialization;

namespace Blocktrust.CredentialWorkflow.Core.Domain.ProcessFlow.Triggers;

[JsonPolymorphic(TypeDiscriminatorPropertyName = "$type")]
[JsonDerivedType(typeof(TriggerInputHttpRequest), typeDiscriminator: "incomingRequest")]
[JsonDerivedType(typeof(TriggerInputRecurringTimer), typeDiscriminator: "recurringTimer")]
[JsonDerivedType(typeof(TriggerInputOnDemand), typeDiscriminator: "onDemand")]
[JsonDerivedType(typeof(TriggerInputForm), typeDiscriminator: "form")]
public class TriggerInput
{
[JsonPropertyName("id")] public Guid Id { get; set; }
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
// namespace Blocktrust.CredentialWorkflow.Core.Domain.ProcessFlow.Triggers;
//
// public class TriggerInputForm : TriggerInput
// {
// public TriggerInputForm()
// {
// Id = Guid.NewGuid();
// Parameters = new Dictionary<string, ParameterDefinition>();
// }
//
// public Dictionary<string, ParameterDefinition> Parameters { get; set; }
// }
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,16 @@ public class TriggerInputManual : TriggerInput

[JsonPropertyName("requiredParameters")]
public Dictionary<string, ParameterDefinition> RequiredParameters { get; set; } = new();
}

public class TriggerInputForm : TriggerInput
{
[JsonPropertyName("parameters")]
public Dictionary<string, ParameterDefinition> Parameters { get; set; }

public TriggerInputForm()
{
Id = Guid.NewGuid();
Parameters = new Dictionary<string, ParameterDefinition>();
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using Blocktrust.CredentialWorkflow.Core.Domain.Common;

namespace Blocktrust.CredentialWorkflow.Core.Domain.ProcessFlow;
namespace Blocktrust.CredentialWorkflow.Core.Domain.ProcessFlow;

using Actions;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
namespace Blocktrust.CredentialWorkflow.Core.Entities.Identity
{
using Microsoft.AspNetCore.Identity;
using Tenant;
namespace Blocktrust.CredentialWorkflow.Core.Entities.Identity;

// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
[PersonalData] public string? SomeOtherData { get; set; }
using Microsoft.AspNetCore.Identity;
using Tenant;

public Guid? TenantEntityId { get; set; }
public TenantEntity? TenantEntity { get; set; } = null!;
}
}
// Add profile data for application users by adding properties to the ApplicationUser class
public class ApplicationUser : IdentityUser
{
[PersonalData] public string? SomeOtherData { get; set; }

public Guid? TenantEntityId { get; set; }
public TenantEntity? TenantEntity { get; set; } = null!;
}
Loading

0 comments on commit 350c1e0

Please sign in to comment.