From e66e8a047e3d0fe440b734871c5f16ce31a2bc37 Mon Sep 17 00:00:00 2001 From: Matt Carroll Date: Wed, 20 Nov 2024 10:14:31 +1100 Subject: [PATCH] ON-44920 # Added nodes to approval steps --- CHANGELOG.md | 4 ++++ .../models/FormApprovalFlowInstanceStep.cs | 20 +++++++++++++++++- .../models/FormApprovalFlowStepBase.cs | 4 ---- OneBlink.SDK/models/FormApprovalStep.cs | 21 ++++++++++++++++++- 4 files changed, 43 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6afcefa9..7c088595 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Added + +- `nodes` and `type` to `FormApprovalFlowInstanceStep` and `FormApprovalStep` + ## [9.0.0] - 2024-11-13 ### Added diff --git a/OneBlink.SDK/models/FormApprovalFlowInstanceStep.cs b/OneBlink.SDK/models/FormApprovalFlowInstanceStep.cs index b276b97d..2153073f 100644 --- a/OneBlink.SDK/models/FormApprovalFlowInstanceStep.cs +++ b/OneBlink.SDK/models/FormApprovalFlowInstanceStep.cs @@ -1,11 +1,29 @@ using System.Collections.Generic; namespace OneBlink.SDK.Model { - public class FormApprovalFlowInstanceStep : FormApprovalFlowStepBase + public class FormApprovalFlowInstanceStepNode : FormApprovalFlowStepBase { public bool isSkipped { get; set; } } + + public class FormApprovalFlowInstanceStep : FormApprovalFlowInstanceStepNode + { + public string type + { + get; set; + } + + public long? clarificationRequestEmailTemplateId + { + get; set; + } + + public List nodes + { + get; set; + } + } } \ No newline at end of file diff --git a/OneBlink.SDK/models/FormApprovalFlowStepBase.cs b/OneBlink.SDK/models/FormApprovalFlowStepBase.cs index 88bab525..c6da1559 100644 --- a/OneBlink.SDK/models/FormApprovalFlowStepBase.cs +++ b/OneBlink.SDK/models/FormApprovalFlowStepBase.cs @@ -15,9 +15,5 @@ public long? approvalFormId { get; set; } - public long? clarificationRequestEmailTemplateId - { - get; set; - } } } \ No newline at end of file diff --git a/OneBlink.SDK/models/FormApprovalStep.cs b/OneBlink.SDK/models/FormApprovalStep.cs index a995d3c6..33f58097 100644 --- a/OneBlink.SDK/models/FormApprovalStep.cs +++ b/OneBlink.SDK/models/FormApprovalStep.cs @@ -1,7 +1,7 @@ using System.Collections.Generic; namespace OneBlink.SDK.Model { - public class FormApprovalStep : FormApprovalFlowStepBase + public class FormApprovalStepNode : FormApprovalFlowStepBase { public bool? isConditional { @@ -16,4 +16,23 @@ public List conditionalPredicates get; set; } } + + public class FormApprovalStep : FormApprovalStepNode + { + public string type + { + get; set; + } + + public long? clarificationRequestEmailTemplateId + { + get; set; + } + + public List nodes + { + get; set; + } + } + } \ No newline at end of file