diff --git a/generated/activitysmith_openapi/models/content_state_end.rb b/generated/activitysmith_openapi/models/content_state_end.rb index 21e384b..150a269 100644 --- a/generated/activitysmith_openapi/models/content_state_end.rb +++ b/generated/activitysmith_openapi/models/content_state_end.rb @@ -23,7 +23,7 @@ class ContentStateEnd # Total number of steps. Use for type=segmented_progress. Optional on end, and safe to change if the final workflow used more or fewer steps than originally planned. attr_accessor :number_of_steps - # Current step. Use for type=segmented_progress. + # Current completed step count. Use for type=segmented_progress. Must be less than or equal to number_of_steps when number_of_steps is provided. attr_accessor :current_step # Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided. @@ -240,8 +240,8 @@ def list_invalid_properties invalid_properties.push('invalid value for "number_of_steps", must be greater than or equal to 1.') end - if !@current_step.nil? && @current_step < 1 - invalid_properties.push('invalid value for "current_step", must be greater than or equal to 1.') + if !@current_step.nil? && @current_step < 0 + invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.') end if !@percentage.nil? && @percentage > 100 @@ -277,7 +277,7 @@ def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @title.nil? return false if !@number_of_steps.nil? && @number_of_steps < 1 - return false if !@current_step.nil? && @current_step < 1 + return false if !@current_step.nil? && @current_step < 0 return false if !@percentage.nil? && @percentage > 100 return false if !@percentage.nil? && @percentage < 0 return false if !@metrics.nil? && @metrics.length > 8 @@ -314,8 +314,8 @@ def current_step=(current_step) fail ArgumentError, 'current_step cannot be nil' end - if current_step < 1 - fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 1.' + if current_step < 0 + fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.' end @current_step = current_step diff --git a/generated/activitysmith_openapi/models/content_state_start.rb b/generated/activitysmith_openapi/models/content_state_start.rb index 5e9a76c..2b73e6b 100644 --- a/generated/activitysmith_openapi/models/content_state_start.rb +++ b/generated/activitysmith_openapi/models/content_state_start.rb @@ -23,7 +23,7 @@ class ContentStateStart # Total number of steps. Use for type=segmented_progress. This value can be increased or decreased later when updating or ending the same activity. attr_accessor :number_of_steps - # Current step. Use for type=segmented_progress. + # Current completed step count. Use for type=segmented_progress. Set 0 when the activity has started but no segment is complete yet. Must be less than or equal to number_of_steps. attr_accessor :current_step # Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided. @@ -230,8 +230,8 @@ def list_invalid_properties invalid_properties.push('invalid value for "number_of_steps", must be greater than or equal to 1.') end - if !@current_step.nil? && @current_step < 1 - invalid_properties.push('invalid value for "current_step", must be greater than or equal to 1.') + if !@current_step.nil? && @current_step < 0 + invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.') end if !@percentage.nil? && @percentage > 100 @@ -267,7 +267,7 @@ def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @title.nil? return false if !@number_of_steps.nil? && @number_of_steps < 1 - return false if !@current_step.nil? && @current_step < 1 + return false if !@current_step.nil? && @current_step < 0 return false if !@percentage.nil? && @percentage > 100 return false if !@percentage.nil? && @percentage < 0 return false if !@metrics.nil? && @metrics.length > 8 @@ -304,8 +304,8 @@ def current_step=(current_step) fail ArgumentError, 'current_step cannot be nil' end - if current_step < 1 - fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 1.' + if current_step < 0 + fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.' end @current_step = current_step diff --git a/generated/activitysmith_openapi/models/content_state_update.rb b/generated/activitysmith_openapi/models/content_state_update.rb index 728d275..454a640 100644 --- a/generated/activitysmith_openapi/models/content_state_update.rb +++ b/generated/activitysmith_openapi/models/content_state_update.rb @@ -23,7 +23,7 @@ class ContentStateUpdate # Total number of steps. Use for type=segmented_progress. Optional on update, and safe to change if the workflow gains or loses steps. attr_accessor :number_of_steps - # Current step. Use for type=segmented_progress. + # Current completed step count. Use for type=segmented_progress. Set 0 when no segment is complete yet. Must be less than or equal to number_of_steps when number_of_steps is provided. attr_accessor :current_step # Progress percentage (0–100). Use for type=progress. Takes precedence over value/upper_limit if both are provided. @@ -229,8 +229,8 @@ def list_invalid_properties invalid_properties.push('invalid value for "number_of_steps", must be greater than or equal to 1.') end - if !@current_step.nil? && @current_step < 1 - invalid_properties.push('invalid value for "current_step", must be greater than or equal to 1.') + if !@current_step.nil? && @current_step < 0 + invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.') end if !@percentage.nil? && @percentage > 100 @@ -262,7 +262,7 @@ def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @title.nil? return false if !@number_of_steps.nil? && @number_of_steps < 1 - return false if !@current_step.nil? && @current_step < 1 + return false if !@current_step.nil? && @current_step < 0 return false if !@percentage.nil? && @percentage > 100 return false if !@percentage.nil? && @percentage < 0 return false if !@metrics.nil? && @metrics.length > 8 @@ -298,8 +298,8 @@ def current_step=(current_step) fail ArgumentError, 'current_step cannot be nil' end - if current_step < 1 - fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 1.' + if current_step < 0 + fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.' end @current_step = current_step diff --git a/generated/activitysmith_openapi/models/stream_content_state.rb b/generated/activitysmith_openapi/models/stream_content_state.rb index d6d66f3..b0da70c 100644 --- a/generated/activitysmith_openapi/models/stream_content_state.rb +++ b/generated/activitysmith_openapi/models/stream_content_state.rb @@ -23,7 +23,7 @@ class StreamContentState # Use for segmented_progress. attr_accessor :number_of_steps - # Use for segmented_progress. + # Use for segmented_progress. Set 0 when no segment is complete yet. Must be less than or equal to number_of_steps when number_of_steps is provided. attr_accessor :current_step # Use for progress. Takes precedence over value/upper_limit if both are provided. @@ -247,8 +247,8 @@ def list_invalid_properties invalid_properties.push('invalid value for "number_of_steps", must be greater than or equal to 1.') end - if !@current_step.nil? && @current_step < 1 - invalid_properties.push('invalid value for "current_step", must be greater than or equal to 1.') + if !@current_step.nil? && @current_step < 0 + invalid_properties.push('invalid value for "current_step", must be greater than or equal to 0.') end if !@percentage.nil? && @percentage > 100 @@ -288,7 +288,7 @@ def valid? warn '[DEPRECATED] the `valid?` method is obsolete' return false if @title.nil? return false if !@number_of_steps.nil? && @number_of_steps < 1 - return false if !@current_step.nil? && @current_step < 1 + return false if !@current_step.nil? && @current_step < 0 return false if !@percentage.nil? && @percentage > 100 return false if !@percentage.nil? && @percentage < 0 type_validator = EnumAttributeValidator.new('String', ["segmented_progress", "progress", "metrics", "stats", "alert"]) @@ -326,8 +326,8 @@ def current_step=(current_step) fail ArgumentError, 'current_step cannot be nil' end - if current_step < 1 - fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 1.' + if current_step < 0 + fail ArgumentError, 'invalid value for "current_step", must be greater than or equal to 0.' end @current_step = current_step diff --git a/generated/activitysmith_openapi/version.rb b/generated/activitysmith_openapi/version.rb index b47bc56..dbef9d9 100644 --- a/generated/activitysmith_openapi/version.rb +++ b/generated/activitysmith_openapi/version.rb @@ -11,5 +11,5 @@ =end module OpenapiClient - VERSION = '1.3.1' + VERSION = '1.4.0' end