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

Dev #25

Merged
merged 4 commits into from
Feb 12, 2025
Merged

Dev #25

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
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