-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into raspberry
- Loading branch information
Showing
9 changed files
with
161 additions
and
78 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: "nuget" # See documentation for possible values | ||
directory: "/" # Location of package manifests | ||
schedule: | ||
interval: "weekly" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/modules/Elsa.Studio.Workflows.Core/Domain/Models/ImportOptions.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Elsa.Api.Client.Resources.WorkflowDefinitions.Models; | ||
|
||
namespace Elsa.Studio.Workflows.Domain.Models; | ||
|
||
public class ImportOptions | ||
{ | ||
public int MaxAllowedSize { get; set; } = 1024 * 1024 * 10; // 10 MB | ||
public string? DefinitionId { get; set; } | ||
public Func<WorkflowDefinition, Task>? ImportedCallback { get; set; } | ||
public Func<Exception, Task> ErrorCallback { get; set; } | ||
} |
3 changes: 3 additions & 0 deletions
3
src/modules/Elsa.Studio.Workflows.Core/Domain/Models/WorkflowImportFailure.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
namespace Elsa.Studio.Workflows.Domain.Models; | ||
|
||
public record WorkflowImportFailure(string ErrorMessage, WorkflowImportFailureType FailureType); |
7 changes: 7 additions & 0 deletions
7
src/modules/Elsa.Studio.Workflows.Core/Domain/Models/WorkflowImportFailureType.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
namespace Elsa.Studio.Workflows.Domain.Models; | ||
|
||
public enum WorkflowImportFailureType | ||
{ | ||
Exception, | ||
InvalidSchema | ||
} |
11 changes: 11 additions & 0 deletions
11
src/modules/Elsa.Studio.Workflows.Core/Domain/Models/WorkflowImportResult.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using Elsa.Api.Client.Resources.WorkflowDefinitions.Models; | ||
|
||
namespace Elsa.Studio.Workflows.Domain.Models; | ||
|
||
public class WorkflowImportResult | ||
{ | ||
public string FileName { get; set; } | ||
public WorkflowDefinition? WorkflowDefinition { get; set; } | ||
public WorkflowImportFailure? Failure { get; set; } | ||
public bool IsSuccess => Failure == null; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters