-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dui3/alpha with changes from
dev
through temp branch (#3444)
- Loading branch information
Showing
66 changed files
with
805 additions
and
647 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,16 @@ | ||
using Speckle.Automate.Sdk.Schema.Triggers; | ||
|
||
namespace Speckle.Automate.Sdk.Schema; | ||
|
||
///<summary> | ||
///Values of the project, model and automation that triggered this function run. | ||
/// Values of the project, model and automation that triggered this function run. | ||
///</summary> | ||
public struct AutomationRunData | ||
{ | ||
public string ProjectId { get; set; } | ||
public string ModelId { get; set; } | ||
public string BranchName { get; set; } | ||
public string VersionId { get; set; } | ||
public string SpeckleServerUrl { get; set; } | ||
public string AutomationId { get; set; } | ||
public string AutomationRevisionId { get; set; } | ||
public string AutomationRunId { get; set; } | ||
public string FunctionId { get; set; } | ||
public string FunctionRelease { get; set; } | ||
public string FunctionName { get; set; } | ||
public string? FunctionLogo { get; set; } | ||
public string FunctionRunId { get; set; } | ||
public List<AutomationRunTriggerBase> Triggers { get; set; } | ||
} |
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
6 changes: 6 additions & 0 deletions
6
Automate/Speckle.Automate.Sdk/Schema/Triggers/AutomationRunTriggerBase.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,6 @@ | ||
namespace Speckle.Automate.Sdk.Schema.Triggers; | ||
|
||
public class AutomationRunTriggerBase | ||
{ | ||
public string TriggerType { get; set; } | ||
} |
24 changes: 24 additions & 0 deletions
24
Automate/Speckle.Automate.Sdk/Schema/Triggers/VersionCreationTrigger.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,24 @@ | ||
namespace Speckle.Automate.Sdk.Schema.Triggers; | ||
|
||
/// <summary> | ||
/// Represents a single version creation trigger for the automation run. | ||
/// </summary> | ||
public class VersionCreationTrigger : AutomationRunTriggerBase | ||
{ | ||
public VersionCreationTriggerPayload Payload { get; set; } | ||
|
||
public VersionCreationTrigger(string modelId, string versionId) | ||
{ | ||
TriggerType = "versionCreation"; | ||
Payload = new VersionCreationTriggerPayload() { ModelId = modelId, VersionId = versionId }; | ||
} | ||
} | ||
|
||
/// <summary> | ||
/// Represents the version creation trigger payload. | ||
/// </summary> | ||
public class VersionCreationTriggerPayload | ||
{ | ||
public string ModelId { get; set; } | ||
public string VersionId { get; set; } | ||
} |
Oops, something went wrong.